1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for gmpc-discogs 0.20.0.
4#
5# Report bugs to <qball@sarine.nl>.
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 qball@sarine.nl
234$0: about your system, including any error possibly output
235$0: before this message. Then install a modern shell, or
236$0: manually run the script under such a shell if you do
237$0: have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$?; test $as_status -eq 0 && as_status=1
370  if test "$3"; then
371    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373  fi
374  $as_echo "$as_me: error: $1" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545  # Discard the --no-reexec flag, and continue.
546  shift
547elif test "X$1" = X--fallback-echo; then
548  # Avoid inline document here, it may be left over
549  :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551  # Yippee, $ECHO works!
552  :
553else
554  # Restart under the correct shell.
555  exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559  # used as fallback echo
560  shift
561  cat <<_LT_EOF
562$*
563_LT_EOF
564  exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572  if test "X${echo_test_string+set}" != Xset; then
573    # find a string as large as possible, as long as the shell can cope with it
574    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578      then
579        break
580      fi
581    done
582  fi
583
584  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586     test "X$echo_testing_string" = "X$echo_test_string"; then
587    :
588  else
589    # The Solaris, AIX, and Digital Unix default echo programs unquote
590    # backslashes.  This makes it impossible to quote backslashes using
591    #   echo "$something" | sed 's/\\/\\\\/g'
592    #
593    # So, first we look for a working echo in the user's PATH.
594
595    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596    for dir in $PATH /usr/ucb; do
597      IFS="$lt_save_ifs"
598      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601         test "X$echo_testing_string" = "X$echo_test_string"; then
602        ECHO="$dir/echo"
603        break
604      fi
605    done
606    IFS="$lt_save_ifs"
607
608    if test "X$ECHO" = Xecho; then
609      # We didn't find a better echo, so look for alternatives.
610      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612         test "X$echo_testing_string" = "X$echo_test_string"; then
613        # This shell has a builtin print -r that does the trick.
614        ECHO='print -r'
615      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616	   test "X$CONFIG_SHELL" != X/bin/ksh; then
617        # If we have ksh, try running configure again with it.
618        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619        export ORIGINAL_CONFIG_SHELL
620        CONFIG_SHELL=/bin/ksh
621        export CONFIG_SHELL
622        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623      else
624        # Try using printf.
625        ECHO='printf %s\n'
626        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628	   test "X$echo_testing_string" = "X$echo_test_string"; then
629	  # Cool, printf works
630	  :
631        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632	     test "X$echo_testing_string" = 'X\t' &&
633	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634	     test "X$echo_testing_string" = "X$echo_test_string"; then
635	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636	  export CONFIG_SHELL
637	  SHELL="$CONFIG_SHELL"
638	  export SHELL
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641	     test "X$echo_testing_string" = 'X\t' &&
642	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643	     test "X$echo_testing_string" = "X$echo_test_string"; then
644	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
645        else
646	  # maybe with a smaller string...
647	  prev=:
648
649	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651	    then
652	      break
653	    fi
654	    prev="$cmd"
655	  done
656
657	  if test "$prev" != 'sed 50q "$0"'; then
658	    echo_test_string=`eval $prev`
659	    export echo_test_string
660	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661	  else
662	    # Oops.  We lost completely, so just stick with echo.
663	    ECHO=echo
664	  fi
665        fi
666      fi
667    fi
668  fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
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='gmpc-discogs'
703PACKAGE_TARNAME='gmpc-discogs'
704PACKAGE_VERSION='0.20.0'
705PACKAGE_STRING='gmpc-discogs 0.20.0'
706PACKAGE_BUGREPORT='qball@sarine.nl'
707PACKAGE_URL=''
708
709# Factoring default headers for most tests.
710ac_includes_default="\
711#include <stdio.h>
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef STDC_HEADERS
719# include <stdlib.h>
720# include <stddef.h>
721#else
722# ifdef HAVE_STDLIB_H
723#  include <stdlib.h>
724# endif
725#endif
726#ifdef HAVE_STRING_H
727# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728#  include <memory.h>
729# endif
730# include <string.h>
731#endif
732#ifdef HAVE_STRINGS_H
733# include <strings.h>
734#endif
735#ifdef HAVE_INTTYPES_H
736# include <inttypes.h>
737#endif
738#ifdef HAVE_STDINT_H
739# include <stdint.h>
740#endif
741#ifdef HAVE_UNISTD_H
742# include <unistd.h>
743#endif"
744
745ac_subst_vars='am__EXEEXT_FALSE
746am__EXEEXT_TRUE
747LTLIBOBJS
748LIBOBJS
749gmpcdiscogs_LIBS
750gmpcdiscogs_CFLAGS
751PKG_CONFIG
752OTOOL64
753OTOOL
754LIPO
755NMEDIT
756DSYMUTIL
757lt_ECHO
758RANLIB
759AR
760OBJDUMP
761LN_S
762NM
763ac_ct_DUMPBIN
764DUMPBIN
765LD
766FGREP
767SED
768host_os
769host_vendor
770host_cpu
771host
772build_os
773build_vendor
774build_cpu
775build
776LIBTOOL
777MKINSTALLDIRS
778POSUB
779POFILES
780PO_IN_DATADIR_FALSE
781PO_IN_DATADIR_TRUE
782INTLLIBS
783INSTOBJEXT
784GMOFILES
785CATOBJEXT
786CATALOGS
787MSGFMT_OPTS
788EGREP
789GREP
790CPP
791GETTEXT_PACKAGE
792DATADIRNAME
793am__fastdepCC_FALSE
794am__fastdepCC_TRUE
795CCDEPMODE
796AMDEPBACKSLASH
797AMDEP_FALSE
798AMDEP_TRUE
799am__quote
800am__include
801DEPDIR
802OBJEXT
803EXEEXT
804ac_ct_CC
805CPPFLAGS
806LDFLAGS
807CFLAGS
808CC
809ALL_LINGUAS
810INTLTOOL_PERL
811GMSGFMT
812MSGFMT
813MSGMERGE
814XGETTEXT
815INTLTOOL_POLICY_RULE
816INTLTOOL_SERVICE_RULE
817INTLTOOL_THEME_RULE
818INTLTOOL_SCHEMAS_RULE
819INTLTOOL_CAVES_RULE
820INTLTOOL_XML_NOMERGE_RULE
821INTLTOOL_XML_RULE
822INTLTOOL_KBD_RULE
823INTLTOOL_XAM_RULE
824INTLTOOL_UI_RULE
825INTLTOOL_SOUNDLIST_RULE
826INTLTOOL_SHEET_RULE
827INTLTOOL_SERVER_RULE
828INTLTOOL_PONG_RULE
829INTLTOOL_OAF_RULE
830INTLTOOL_PROP_RULE
831INTLTOOL_KEYS_RULE
832INTLTOOL_DIRECTORY_RULE
833INTLTOOL_DESKTOP_RULE
834INTLTOOL_EXTRACT
835INTLTOOL_MERGE
836INTLTOOL_UPDATE
837USE_NLS
838am__untar
839am__tar
840AMTAR
841am__leading_dot
842SET_MAKE
843AWK
844mkdir_p
845MKDIR_P
846INSTALL_STRIP_PROGRAM
847STRIP
848install_sh
849MAKEINFO
850AUTOHEADER
851AUTOMAKE
852AUTOCONF
853ACLOCAL
854VERSION
855PACKAGE
856CYGPATH_W
857am__isrc
858INSTALL_DATA
859INSTALL_SCRIPT
860INSTALL_PROGRAM
861target_alias
862host_alias
863build_alias
864LIBS
865ECHO_T
866ECHO_N
867ECHO_C
868DEFS
869mandir
870localedir
871libdir
872psdir
873pdfdir
874dvidir
875htmldir
876infodir
877docdir
878oldincludedir
879includedir
880localstatedir
881sharedstatedir
882sysconfdir
883datadir
884datarootdir
885libexecdir
886sbindir
887bindir
888program_transform_name
889prefix
890exec_prefix
891PACKAGE_URL
892PACKAGE_BUGREPORT
893PACKAGE_STRING
894PACKAGE_VERSION
895PACKAGE_TARNAME
896PACKAGE_NAME
897PATH_SEPARATOR
898SHELL'
899ac_subst_files=''
900ac_user_opts='
901enable_option_checking
902enable_nls
903enable_dependency_tracking
904enable_static
905enable_shared
906with_pic
907enable_fast_install
908with_gnu_ld
909enable_libtool_lock
910'
911      ac_precious_vars='build_alias
912host_alias
913target_alias
914CC
915CFLAGS
916LDFLAGS
917LIBS
918CPPFLAGS
919CPP
920PKG_CONFIG
921gmpcdiscogs_CFLAGS
922gmpcdiscogs_LIBS'
923
924
925# Initialize some variables set by options.
926ac_init_help=
927ac_init_version=false
928ac_unrecognized_opts=
929ac_unrecognized_sep=
930# The variables have the same names as the options, with
931# dashes changed to underlines.
932cache_file=/dev/null
933exec_prefix=NONE
934no_create=
935no_recursion=
936prefix=NONE
937program_prefix=NONE
938program_suffix=NONE
939program_transform_name=s,x,x,
940silent=
941site=
942srcdir=
943verbose=
944x_includes=NONE
945x_libraries=NONE
946
947# Installation directory options.
948# These are left unexpanded so users can "make install exec_prefix=/foo"
949# and all the variables that are supposed to be based on exec_prefix
950# by default will actually change.
951# Use braces instead of parens because sh, perl, etc. also accept them.
952# (The list follows the same order as the GNU Coding Standards.)
953bindir='${exec_prefix}/bin'
954sbindir='${exec_prefix}/sbin'
955libexecdir='${exec_prefix}/libexec'
956datarootdir='${prefix}/share'
957datadir='${datarootdir}'
958sysconfdir='${prefix}/etc'
959sharedstatedir='${prefix}/com'
960localstatedir='${prefix}/var'
961includedir='${prefix}/include'
962oldincludedir='/usr/include'
963docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964infodir='${datarootdir}/info'
965htmldir='${docdir}'
966dvidir='${docdir}'
967pdfdir='${docdir}'
968psdir='${docdir}'
969libdir='${exec_prefix}/lib'
970localedir='${datarootdir}/locale'
971mandir='${datarootdir}/man'
972
973ac_prev=
974ac_dashdash=
975for ac_option
976do
977  # If the previous option needs an argument, assign it.
978  if test -n "$ac_prev"; then
979    eval $ac_prev=\$ac_option
980    ac_prev=
981    continue
982  fi
983
984  case $ac_option in
985  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986  *)	ac_optarg=yes ;;
987  esac
988
989  # Accept the important Cygnus configure options, so we can diagnose typos.
990
991  case $ac_dashdash$ac_option in
992  --)
993    ac_dashdash=yes ;;
994
995  -bindir | --bindir | --bindi | --bind | --bin | --bi)
996    ac_prev=bindir ;;
997  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998    bindir=$ac_optarg ;;
999
1000  -build | --build | --buil | --bui | --bu)
1001    ac_prev=build_alias ;;
1002  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003    build_alias=$ac_optarg ;;
1004
1005  -cache-file | --cache-file | --cache-fil | --cache-fi \
1006  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007    ac_prev=cache_file ;;
1008  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010    cache_file=$ac_optarg ;;
1011
1012  --config-cache | -C)
1013    cache_file=config.cache ;;
1014
1015  -datadir | --datadir | --datadi | --datad)
1016    ac_prev=datadir ;;
1017  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018    datadir=$ac_optarg ;;
1019
1020  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021  | --dataroo | --dataro | --datar)
1022    ac_prev=datarootdir ;;
1023  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025    datarootdir=$ac_optarg ;;
1026
1027  -disable-* | --disable-*)
1028    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029    # Reject names that are not valid shell variable names.
1030    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031      as_fn_error "invalid feature name: $ac_useropt"
1032    ac_useropt_orig=$ac_useropt
1033    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034    case $ac_user_opts in
1035      *"
1036"enable_$ac_useropt"
1037"*) ;;
1038      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039	 ac_unrecognized_sep=', ';;
1040    esac
1041    eval enable_$ac_useropt=no ;;
1042
1043  -docdir | --docdir | --docdi | --doc | --do)
1044    ac_prev=docdir ;;
1045  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046    docdir=$ac_optarg ;;
1047
1048  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049    ac_prev=dvidir ;;
1050  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051    dvidir=$ac_optarg ;;
1052
1053  -enable-* | --enable-*)
1054    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055    # Reject names that are not valid shell variable names.
1056    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057      as_fn_error "invalid feature name: $ac_useropt"
1058    ac_useropt_orig=$ac_useropt
1059    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060    case $ac_user_opts in
1061      *"
1062"enable_$ac_useropt"
1063"*) ;;
1064      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065	 ac_unrecognized_sep=', ';;
1066    esac
1067    eval enable_$ac_useropt=\$ac_optarg ;;
1068
1069  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071  | --exec | --exe | --ex)
1072    ac_prev=exec_prefix ;;
1073  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075  | --exec=* | --exe=* | --ex=*)
1076    exec_prefix=$ac_optarg ;;
1077
1078  -gas | --gas | --ga | --g)
1079    # Obsolete; use --with-gas.
1080    with_gas=yes ;;
1081
1082  -help | --help | --hel | --he | -h)
1083    ac_init_help=long ;;
1084  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085    ac_init_help=recursive ;;
1086  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087    ac_init_help=short ;;
1088
1089  -host | --host | --hos | --ho)
1090    ac_prev=host_alias ;;
1091  -host=* | --host=* | --hos=* | --ho=*)
1092    host_alias=$ac_optarg ;;
1093
1094  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095    ac_prev=htmldir ;;
1096  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097  | --ht=*)
1098    htmldir=$ac_optarg ;;
1099
1100  -includedir | --includedir | --includedi | --included | --include \
1101  | --includ | --inclu | --incl | --inc)
1102    ac_prev=includedir ;;
1103  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104  | --includ=* | --inclu=* | --incl=* | --inc=*)
1105    includedir=$ac_optarg ;;
1106
1107  -infodir | --infodir | --infodi | --infod | --info | --inf)
1108    ac_prev=infodir ;;
1109  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110    infodir=$ac_optarg ;;
1111
1112  -libdir | --libdir | --libdi | --libd)
1113    ac_prev=libdir ;;
1114  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115    libdir=$ac_optarg ;;
1116
1117  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118  | --libexe | --libex | --libe)
1119    ac_prev=libexecdir ;;
1120  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121  | --libexe=* | --libex=* | --libe=*)
1122    libexecdir=$ac_optarg ;;
1123
1124  -localedir | --localedir | --localedi | --localed | --locale)
1125    ac_prev=localedir ;;
1126  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127    localedir=$ac_optarg ;;
1128
1129  -localstatedir | --localstatedir | --localstatedi | --localstated \
1130  | --localstate | --localstat | --localsta | --localst | --locals)
1131    ac_prev=localstatedir ;;
1132  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134    localstatedir=$ac_optarg ;;
1135
1136  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137    ac_prev=mandir ;;
1138  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139    mandir=$ac_optarg ;;
1140
1141  -nfp | --nfp | --nf)
1142    # Obsolete; use --without-fp.
1143    with_fp=no ;;
1144
1145  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146  | --no-cr | --no-c | -n)
1147    no_create=yes ;;
1148
1149  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151    no_recursion=yes ;;
1152
1153  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155  | --oldin | --oldi | --old | --ol | --o)
1156    ac_prev=oldincludedir ;;
1157  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160    oldincludedir=$ac_optarg ;;
1161
1162  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163    ac_prev=prefix ;;
1164  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165    prefix=$ac_optarg ;;
1166
1167  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168  | --program-pre | --program-pr | --program-p)
1169    ac_prev=program_prefix ;;
1170  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172    program_prefix=$ac_optarg ;;
1173
1174  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175  | --program-suf | --program-su | --program-s)
1176    ac_prev=program_suffix ;;
1177  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179    program_suffix=$ac_optarg ;;
1180
1181  -program-transform-name | --program-transform-name \
1182  | --program-transform-nam | --program-transform-na \
1183  | --program-transform-n | --program-transform- \
1184  | --program-transform | --program-transfor \
1185  | --program-transfo | --program-transf \
1186  | --program-trans | --program-tran \
1187  | --progr-tra | --program-tr | --program-t)
1188    ac_prev=program_transform_name ;;
1189  -program-transform-name=* | --program-transform-name=* \
1190  | --program-transform-nam=* | --program-transform-na=* \
1191  | --program-transform-n=* | --program-transform-=* \
1192  | --program-transform=* | --program-transfor=* \
1193  | --program-transfo=* | --program-transf=* \
1194  | --program-trans=* | --program-tran=* \
1195  | --progr-tra=* | --program-tr=* | --program-t=*)
1196    program_transform_name=$ac_optarg ;;
1197
1198  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199    ac_prev=pdfdir ;;
1200  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201    pdfdir=$ac_optarg ;;
1202
1203  -psdir | --psdir | --psdi | --psd | --ps)
1204    ac_prev=psdir ;;
1205  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206    psdir=$ac_optarg ;;
1207
1208  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209  | -silent | --silent | --silen | --sile | --sil)
1210    silent=yes ;;
1211
1212  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213    ac_prev=sbindir ;;
1214  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215  | --sbi=* | --sb=*)
1216    sbindir=$ac_optarg ;;
1217
1218  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220  | --sharedst | --shareds | --shared | --share | --shar \
1221  | --sha | --sh)
1222    ac_prev=sharedstatedir ;;
1223  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226  | --sha=* | --sh=*)
1227    sharedstatedir=$ac_optarg ;;
1228
1229  -site | --site | --sit)
1230    ac_prev=site ;;
1231  -site=* | --site=* | --sit=*)
1232    site=$ac_optarg ;;
1233
1234  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235    ac_prev=srcdir ;;
1236  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237    srcdir=$ac_optarg ;;
1238
1239  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240  | --syscon | --sysco | --sysc | --sys | --sy)
1241    ac_prev=sysconfdir ;;
1242  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244    sysconfdir=$ac_optarg ;;
1245
1246  -target | --target | --targe | --targ | --tar | --ta | --t)
1247    ac_prev=target_alias ;;
1248  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249    target_alias=$ac_optarg ;;
1250
1251  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252    verbose=yes ;;
1253
1254  -version | --version | --versio | --versi | --vers | -V)
1255    ac_init_version=: ;;
1256
1257  -with-* | --with-*)
1258    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259    # Reject names that are not valid shell variable names.
1260    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261      as_fn_error "invalid package name: $ac_useropt"
1262    ac_useropt_orig=$ac_useropt
1263    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264    case $ac_user_opts in
1265      *"
1266"with_$ac_useropt"
1267"*) ;;
1268      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269	 ac_unrecognized_sep=', ';;
1270    esac
1271    eval with_$ac_useropt=\$ac_optarg ;;
1272
1273  -without-* | --without-*)
1274    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275    # Reject names that are not valid shell variable names.
1276    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277      as_fn_error "invalid package name: $ac_useropt"
1278    ac_useropt_orig=$ac_useropt
1279    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280    case $ac_user_opts in
1281      *"
1282"with_$ac_useropt"
1283"*) ;;
1284      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285	 ac_unrecognized_sep=', ';;
1286    esac
1287    eval with_$ac_useropt=no ;;
1288
1289  --x)
1290    # Obsolete; use --with-x.
1291    with_x=yes ;;
1292
1293  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294  | --x-incl | --x-inc | --x-in | --x-i)
1295    ac_prev=x_includes ;;
1296  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298    x_includes=$ac_optarg ;;
1299
1300  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302    ac_prev=x_libraries ;;
1303  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305    x_libraries=$ac_optarg ;;
1306
1307  -*) as_fn_error "unrecognized option: \`$ac_option'
1308Try \`$0 --help' for more information."
1309    ;;
1310
1311  *=*)
1312    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313    # Reject names that are not valid shell variable names.
1314    case $ac_envvar in #(
1315      '' | [0-9]* | *[!_$as_cr_alnum]* )
1316      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1317    esac
1318    eval $ac_envvar=\$ac_optarg
1319    export $ac_envvar ;;
1320
1321  *)
1322    # FIXME: should be removed in autoconf 3.0.
1323    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327    ;;
1328
1329  esac
1330done
1331
1332if test -n "$ac_prev"; then
1333  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334  as_fn_error "missing argument to $ac_option"
1335fi
1336
1337if test -n "$ac_unrecognized_opts"; then
1338  case $enable_option_checking in
1339    no) ;;
1340    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1341    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342  esac
1343fi
1344
1345# Check all directory arguments for consistency.
1346for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347		datadir sysconfdir sharedstatedir localstatedir includedir \
1348		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349		libdir localedir mandir
1350do
1351  eval ac_val=\$$ac_var
1352  # Remove trailing slashes.
1353  case $ac_val in
1354    */ )
1355      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356      eval $ac_var=\$ac_val;;
1357  esac
1358  # Be sure to have absolute directory names.
1359  case $ac_val in
1360    [\\/$]* | ?:[\\/]* )  continue;;
1361    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362  esac
1363  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1364done
1365
1366# There might be people who depend on the old broken behavior: `$host'
1367# used to hold the argument of --host etc.
1368# FIXME: To remove some day.
1369build=$build_alias
1370host=$host_alias
1371target=$target_alias
1372
1373# FIXME: To remove some day.
1374if test "x$host_alias" != x; then
1375  if test "x$build_alias" = x; then
1376    cross_compiling=maybe
1377    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1378    If a cross compiler is detected then cross compile mode will be used." >&2
1379  elif test "x$build_alias" != "x$host_alias"; then
1380    cross_compiling=yes
1381  fi
1382fi
1383
1384ac_tool_prefix=
1385test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386
1387test "$silent" = yes && exec 6>/dev/null
1388
1389
1390ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391ac_ls_di=`ls -di .` &&
1392ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393  as_fn_error "working directory cannot be determined"
1394test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395  as_fn_error "pwd does not report name of working directory"
1396
1397
1398# Find the source files, if location was not specified.
1399if test -z "$srcdir"; then
1400  ac_srcdir_defaulted=yes
1401  # Try the directory containing this script, then the parent directory.
1402  ac_confdir=`$as_dirname -- "$as_myself" ||
1403$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404	 X"$as_myself" : 'X\(//\)[^/]' \| \
1405	 X"$as_myself" : 'X\(//\)$' \| \
1406	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407$as_echo X"$as_myself" |
1408    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409	    s//\1/
1410	    q
1411	  }
1412	  /^X\(\/\/\)[^/].*/{
1413	    s//\1/
1414	    q
1415	  }
1416	  /^X\(\/\/\)$/{
1417	    s//\1/
1418	    q
1419	  }
1420	  /^X\(\/\).*/{
1421	    s//\1/
1422	    q
1423	  }
1424	  s/.*/./; q'`
1425  srcdir=$ac_confdir
1426  if test ! -r "$srcdir/$ac_unique_file"; then
1427    srcdir=..
1428  fi
1429else
1430  ac_srcdir_defaulted=no
1431fi
1432if test ! -r "$srcdir/$ac_unique_file"; then
1433  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1435fi
1436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437ac_abs_confdir=`(
1438	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1439	pwd)`
1440# When building in place, set srcdir=.
1441if test "$ac_abs_confdir" = "$ac_pwd"; then
1442  srcdir=.
1443fi
1444# Remove unnecessary trailing slashes from srcdir.
1445# Double slashes in file names in object file debugging info
1446# mess up M-x gdb in Emacs.
1447case $srcdir in
1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449esac
1450for ac_var in $ac_precious_vars; do
1451  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452  eval ac_env_${ac_var}_value=\$${ac_var}
1453  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455done
1456
1457#
1458# Report the --help message.
1459#
1460if test "$ac_init_help" = "long"; then
1461  # Omit some internal or obsolete options to make the list less imposing.
1462  # This message is too long to be a string in the A/UX 3.1 sh.
1463  cat <<_ACEOF
1464\`configure' configures gmpc-discogs 0.20.0 to adapt to many kinds of systems.
1465
1466Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469VAR=VALUE.  See below for descriptions of some of the useful variables.
1470
1471Defaults for the options are specified in brackets.
1472
1473Configuration:
1474  -h, --help              display this help and exit
1475      --help=short        display options specific to this package
1476      --help=recursive    display the short help of all the included packages
1477  -V, --version           display version information and exit
1478  -q, --quiet, --silent   do not print \`checking...' messages
1479      --cache-file=FILE   cache test results in FILE [disabled]
1480  -C, --config-cache      alias for \`--cache-file=config.cache'
1481  -n, --no-create         do not create output files
1482      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1483
1484Installation directories:
1485  --prefix=PREFIX         install architecture-independent files in PREFIX
1486                          [$ac_default_prefix]
1487  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1488                          [PREFIX]
1489
1490By default, \`make install' will install all the files in
1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1492an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493for instance \`--prefix=\$HOME'.
1494
1495For better control, use the options below.
1496
1497Fine tuning of the installation directories:
1498  --bindir=DIR            user executables [EPREFIX/bin]
1499  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1500  --libexecdir=DIR        program executables [EPREFIX/libexec]
1501  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1502  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1503  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1504  --libdir=DIR            object code libraries [EPREFIX/lib]
1505  --includedir=DIR        C header files [PREFIX/include]
1506  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1507  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1508  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1509  --infodir=DIR           info documentation [DATAROOTDIR/info]
1510  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1511  --mandir=DIR            man documentation [DATAROOTDIR/man]
1512  --docdir=DIR            documentation root [DATAROOTDIR/doc/gmpc-discogs]
1513  --htmldir=DIR           html documentation [DOCDIR]
1514  --dvidir=DIR            dvi documentation [DOCDIR]
1515  --pdfdir=DIR            pdf documentation [DOCDIR]
1516  --psdir=DIR             ps documentation [DOCDIR]
1517_ACEOF
1518
1519  cat <<\_ACEOF
1520
1521Program names:
1522  --program-prefix=PREFIX            prepend PREFIX to installed program names
1523  --program-suffix=SUFFIX            append SUFFIX to installed program names
1524  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1525
1526System types:
1527  --build=BUILD     configure for building on BUILD [guessed]
1528  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1529_ACEOF
1530fi
1531
1532if test -n "$ac_init_help"; then
1533  case $ac_init_help in
1534     short | recursive ) echo "Configuration of gmpc-discogs 0.20.0:";;
1535   esac
1536  cat <<\_ACEOF
1537
1538Optional Features:
1539  --disable-option-checking  ignore unrecognized --enable/--with options
1540  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1541  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1542  --disable-nls           do not use Native Language Support
1543  --disable-dependency-tracking  speeds up one-time build
1544  --enable-dependency-tracking   do not reject slow dependency extractors
1545  --enable-static[=PKGS]  build static libraries [default=no]
1546  --enable-shared[=PKGS]  build shared libraries [default=yes]
1547  --enable-fast-install[=PKGS]
1548                          optimize for fast installation [default=yes]
1549  --disable-libtool-lock  avoid locking (might break parallel builds)
1550
1551Optional Packages:
1552  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1553  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1554  --with-pic              try to use only PIC/non-PIC objects [default=use
1555                          both]
1556  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1557
1558Some influential environment variables:
1559  CC          C compiler command
1560  CFLAGS      C compiler flags
1561  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1562              nonstandard directory <lib dir>
1563  LIBS        libraries to pass to the linker, e.g. -l<library>
1564  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1565              you have headers in a nonstandard directory <include dir>
1566  CPP         C preprocessor
1567  PKG_CONFIG  path to pkg-config utility
1568  gmpcdiscogs_CFLAGS
1569              C compiler flags for gmpcdiscogs, overriding pkg-config
1570  gmpcdiscogs_LIBS
1571              linker flags for gmpcdiscogs, overriding pkg-config
1572
1573Use these variables to override the choices made by `configure' or to help
1574it to find libraries and programs with nonstandard names/locations.
1575
1576Report bugs to <qball@sarine.nl>.
1577_ACEOF
1578ac_status=$?
1579fi
1580
1581if test "$ac_init_help" = "recursive"; then
1582  # If there are subdirs, report their specific --help.
1583  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584    test -d "$ac_dir" ||
1585      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586      continue
1587    ac_builddir=.
1588
1589case "$ac_dir" in
1590.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591*)
1592  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1593  # A ".." for each directory in $ac_dir_suffix.
1594  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1595  case $ac_top_builddir_sub in
1596  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598  esac ;;
1599esac
1600ac_abs_top_builddir=$ac_pwd
1601ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602# for backward compatibility:
1603ac_top_builddir=$ac_top_build_prefix
1604
1605case $srcdir in
1606  .)  # We are building in place.
1607    ac_srcdir=.
1608    ac_top_srcdir=$ac_top_builddir_sub
1609    ac_abs_top_srcdir=$ac_pwd ;;
1610  [\\/]* | ?:[\\/]* )  # Absolute name.
1611    ac_srcdir=$srcdir$ac_dir_suffix;
1612    ac_top_srcdir=$srcdir
1613    ac_abs_top_srcdir=$srcdir ;;
1614  *) # Relative name.
1615    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616    ac_top_srcdir=$ac_top_build_prefix$srcdir
1617    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618esac
1619ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620
1621    cd "$ac_dir" || { ac_status=$?; continue; }
1622    # Check for guested configure.
1623    if test -f "$ac_srcdir/configure.gnu"; then
1624      echo &&
1625      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626    elif test -f "$ac_srcdir/configure"; then
1627      echo &&
1628      $SHELL "$ac_srcdir/configure" --help=recursive
1629    else
1630      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631    fi || ac_status=$?
1632    cd "$ac_pwd" || { ac_status=$?; break; }
1633  done
1634fi
1635
1636test -n "$ac_init_help" && exit $ac_status
1637if $ac_init_version; then
1638  cat <<\_ACEOF
1639gmpc-discogs configure 0.20.0
1640generated by GNU Autoconf 2.65
1641
1642Copyright (C) 2009 Free Software Foundation, Inc.
1643This configure script is free software; the Free Software Foundation
1644gives unlimited permission to copy, distribute and modify it.
1645_ACEOF
1646  exit
1647fi
1648
1649## ------------------------ ##
1650## Autoconf initialization. ##
1651## ------------------------ ##
1652
1653# ac_fn_c_try_compile LINENO
1654# --------------------------
1655# Try to compile conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_c_try_compile ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  rm -f conftest.$ac_objext
1660  if { { ac_try="$ac_compile"
1661case "(($ac_try" in
1662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663  *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667  (eval "$ac_compile") 2>conftest.err
1668  ac_status=$?
1669  if test -s conftest.err; then
1670    grep -v '^ *+' conftest.err >conftest.er1
1671    cat conftest.er1 >&5
1672    mv -f conftest.er1 conftest.err
1673  fi
1674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675  test $ac_status = 0; } && {
1676	 test -z "$ac_c_werror_flag" ||
1677	 test ! -s conftest.err
1678       } && test -s conftest.$ac_objext; then :
1679  ac_retval=0
1680else
1681  $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684	ac_retval=1
1685fi
1686  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687  as_fn_set_status $ac_retval
1688
1689} # ac_fn_c_try_compile
1690
1691# ac_fn_c_try_link LINENO
1692# -----------------------
1693# Try to link conftest.$ac_ext, and return whether this succeeded.
1694ac_fn_c_try_link ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  rm -f conftest.$ac_objext conftest$ac_exeext
1698  if { { ac_try="$ac_link"
1699case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_link") 2>conftest.err
1706  ac_status=$?
1707  if test -s conftest.err; then
1708    grep -v '^ *+' conftest.err >conftest.er1
1709    cat conftest.er1 >&5
1710    mv -f conftest.er1 conftest.err
1711  fi
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; } && {
1714	 test -z "$ac_c_werror_flag" ||
1715	 test ! -s conftest.err
1716       } && test -s conftest$ac_exeext && {
1717	 test "$cross_compiling" = yes ||
1718	 $as_test_x conftest$ac_exeext
1719       }; then :
1720  ac_retval=0
1721else
1722  $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725	ac_retval=1
1726fi
1727  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729  # interfere with the next link command; also delete a directory that is
1730  # left behind by Apple's compiler.  We do this before executing the actions.
1731  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733  as_fn_set_status $ac_retval
1734
1735} # ac_fn_c_try_link
1736
1737# ac_fn_c_check_func LINENO FUNC VAR
1738# ----------------------------------
1739# Tests whether FUNC exists, setting the cache variable VAR accordingly
1740ac_fn_c_check_func ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746  $as_echo_n "(cached) " >&6
1747else
1748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1752#define $2 innocuous_$2
1753
1754/* System header to define __stub macros and hopefully few prototypes,
1755    which can conflict with char $2 (); below.
1756    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757    <limits.h> exists even on freestanding compilers.  */
1758
1759#ifdef __STDC__
1760# include <limits.h>
1761#else
1762# include <assert.h>
1763#endif
1764
1765#undef $2
1766
1767/* Override any GCC internal prototype to avoid an error.
1768   Use char because int might match the return type of a GCC
1769   builtin and then its argument prototype would still apply.  */
1770#ifdef __cplusplus
1771extern "C"
1772#endif
1773char $2 ();
1774/* The GNU C library defines this for functions which it implements
1775    to always fail with ENOSYS.  Some functions are actually named
1776    something starting with __ and the normal name is an alias.  */
1777#if defined __stub_$2 || defined __stub___$2
1778choke me
1779#endif
1780
1781int
1782main ()
1783{
1784return $2 ();
1785  ;
1786  return 0;
1787}
1788_ACEOF
1789if ac_fn_c_try_link "$LINENO"; then :
1790  eval "$3=yes"
1791else
1792  eval "$3=no"
1793fi
1794rm -f core conftest.err conftest.$ac_objext \
1795    conftest$ac_exeext conftest.$ac_ext
1796fi
1797eval ac_res=\$$3
1798	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799$as_echo "$ac_res" >&6; }
1800  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
1802} # ac_fn_c_check_func
1803
1804# ac_fn_c_try_cpp LINENO
1805# ----------------------
1806# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807ac_fn_c_try_cpp ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  if { { ac_try="$ac_cpp conftest.$ac_ext"
1811case "(($ac_try" in
1812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813  *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818  ac_status=$?
1819  if test -s conftest.err; then
1820    grep -v '^ *+' conftest.err >conftest.er1
1821    cat conftest.er1 >&5
1822    mv -f conftest.er1 conftest.err
1823  fi
1824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825  test $ac_status = 0; } >/dev/null && {
1826	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1827	 test ! -s conftest.err
1828       }; then :
1829  ac_retval=0
1830else
1831  $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834    ac_retval=1
1835fi
1836  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837  as_fn_set_status $ac_retval
1838
1839} # ac_fn_c_try_cpp
1840
1841# ac_fn_c_try_run LINENO
1842# ----------------------
1843# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844# that executables *can* be run.
1845ac_fn_c_try_run ()
1846{
1847  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848  if { { ac_try="$ac_link"
1849case "(($ac_try" in
1850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851  *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855  (eval "$ac_link") 2>&5
1856  ac_status=$?
1857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859  { { case "(($ac_try" in
1860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861  *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865  (eval "$ac_try") 2>&5
1866  ac_status=$?
1867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868  test $ac_status = 0; }; }; then :
1869  ac_retval=0
1870else
1871  $as_echo "$as_me: program exited with status $ac_status" >&5
1872       $as_echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875       ac_retval=$ac_status
1876fi
1877  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879  as_fn_set_status $ac_retval
1880
1881} # ac_fn_c_try_run
1882
1883# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1884# -------------------------------------------------------
1885# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1886# the include files in INCLUDES and setting the cache variable VAR
1887# accordingly.
1888ac_fn_c_check_header_mongrel ()
1889{
1890  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893$as_echo_n "checking for $2... " >&6; }
1894if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895  $as_echo_n "(cached) " >&6
1896fi
1897eval ac_res=\$$3
1898	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900else
1901  # Is the header compilable?
1902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1903$as_echo_n "checking $2 usability... " >&6; }
1904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906$4
1907#include <$2>
1908_ACEOF
1909if ac_fn_c_try_compile "$LINENO"; then :
1910  ac_header_compiler=yes
1911else
1912  ac_header_compiler=no
1913fi
1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1916$as_echo "$ac_header_compiler" >&6; }
1917
1918# Is the header present?
1919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1920$as_echo_n "checking $2 presence... " >&6; }
1921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h.  */
1923#include <$2>
1924_ACEOF
1925if ac_fn_c_try_cpp "$LINENO"; then :
1926  ac_header_preproc=yes
1927else
1928  ac_header_preproc=no
1929fi
1930rm -f conftest.err conftest.$ac_ext
1931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1932$as_echo "$ac_header_preproc" >&6; }
1933
1934# So?  What about this header?
1935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1936  yes:no: )
1937    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1938$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1940$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1941    ;;
1942  no:yes:* )
1943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1944$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1945    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1946$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1947    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1948$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1949    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1950$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1952$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953( cat <<\_ASBOX
1954## ------------------------------ ##
1955## Report this to qball@sarine.nl ##
1956## ------------------------------ ##
1957_ASBOX
1958     ) | sed "s/^/$as_me: WARNING:     /" >&2
1959    ;;
1960esac
1961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962$as_echo_n "checking for $2... " >&6; }
1963if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964  $as_echo_n "(cached) " >&6
1965else
1966  eval "$3=\$ac_header_compiler"
1967fi
1968eval ac_res=\$$3
1969	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971fi
1972  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973
1974} # ac_fn_c_check_header_mongrel
1975
1976# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1977# -------------------------------------------------------
1978# Tests whether HEADER exists and can be compiled using the include files in
1979# INCLUDES, setting the cache variable VAR accordingly.
1980ac_fn_c_check_header_compile ()
1981{
1982  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984$as_echo_n "checking for $2... " >&6; }
1985if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1986  $as_echo_n "(cached) " >&6
1987else
1988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h.  */
1990$4
1991#include <$2>
1992_ACEOF
1993if ac_fn_c_try_compile "$LINENO"; then :
1994  eval "$3=yes"
1995else
1996  eval "$3=no"
1997fi
1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999fi
2000eval ac_res=\$$3
2001	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004
2005} # ac_fn_c_check_header_compile
2006cat >config.log <<_ACEOF
2007This file contains any messages produced by compilers while
2008running configure, to aid debugging if configure makes a mistake.
2009
2010It was created by gmpc-discogs $as_me 0.20.0, which was
2011generated by GNU Autoconf 2.65.  Invocation command line was
2012
2013  $ $0 $@
2014
2015_ACEOF
2016exec 5>>config.log
2017{
2018cat <<_ASUNAME
2019## --------- ##
2020## Platform. ##
2021## --------- ##
2022
2023hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2031
2032/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2033/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2034/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2036/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2037/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2038/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2039
2040_ASUNAME
2041
2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045  IFS=$as_save_IFS
2046  test -z "$as_dir" && as_dir=.
2047    $as_echo "PATH: $as_dir"
2048  done
2049IFS=$as_save_IFS
2050
2051} >&5
2052
2053cat >&5 <<_ACEOF
2054
2055
2056## ----------- ##
2057## Core tests. ##
2058## ----------- ##
2059
2060_ACEOF
2061
2062
2063# Keep a trace of the command line.
2064# Strip out --no-create and --no-recursion so they do not pile up.
2065# Strip out --silent because we don't want to record it for future runs.
2066# Also quote any args containing shell meta-characters.
2067# Make two passes to allow for proper duplicate-argument suppression.
2068ac_configure_args=
2069ac_configure_args0=
2070ac_configure_args1=
2071ac_must_keep_next=false
2072for ac_pass in 1 2
2073do
2074  for ac_arg
2075  do
2076    case $ac_arg in
2077    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2078    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2079    | -silent | --silent | --silen | --sile | --sil)
2080      continue ;;
2081    *\'*)
2082      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083    esac
2084    case $ac_pass in
2085    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2086    2)
2087      as_fn_append ac_configure_args1 " '$ac_arg'"
2088      if test $ac_must_keep_next = true; then
2089	ac_must_keep_next=false # Got value, back to normal.
2090      else
2091	case $ac_arg in
2092	  *=* | --config-cache | -C | -disable-* | --disable-* \
2093	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2094	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2095	  | -with-* | --with-* | -without-* | --without-* | --x)
2096	    case "$ac_configure_args0 " in
2097	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098	    esac
2099	    ;;
2100	  -* ) ac_must_keep_next=true ;;
2101	esac
2102      fi
2103      as_fn_append ac_configure_args " '$ac_arg'"
2104      ;;
2105    esac
2106  done
2107done
2108{ ac_configure_args0=; unset ac_configure_args0;}
2109{ ac_configure_args1=; unset ac_configure_args1;}
2110
2111# When interrupted or exit'd, cleanup temporary files, and complete
2112# config.log.  We remove comments because anyway the quotes in there
2113# would cause problems or look ugly.
2114# WARNING: Use '\'' to represent an apostrophe within the trap.
2115# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2116trap 'exit_status=$?
2117  # Save into config.log some information that might help in debugging.
2118  {
2119    echo
2120
2121    cat <<\_ASBOX
2122## ---------------- ##
2123## Cache variables. ##
2124## ---------------- ##
2125_ASBOX
2126    echo
2127    # The following way of writing the cache mishandles newlines in values,
2128(
2129  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2130    eval ac_val=\$$ac_var
2131    case $ac_val in #(
2132    *${as_nl}*)
2133      case $ac_var in #(
2134      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2135$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2136      esac
2137      case $ac_var in #(
2138      _ | IFS | as_nl) ;; #(
2139      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2140      *) { eval $ac_var=; unset $ac_var;} ;;
2141      esac ;;
2142    esac
2143  done
2144  (set) 2>&1 |
2145    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2146    *${as_nl}ac_space=\ *)
2147      sed -n \
2148	"s/'\''/'\''\\\\'\'''\''/g;
2149	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2150      ;; #(
2151    *)
2152      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2153      ;;
2154    esac |
2155    sort
2156)
2157    echo
2158
2159    cat <<\_ASBOX
2160## ----------------- ##
2161## Output variables. ##
2162## ----------------- ##
2163_ASBOX
2164    echo
2165    for ac_var in $ac_subst_vars
2166    do
2167      eval ac_val=\$$ac_var
2168      case $ac_val in
2169      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170      esac
2171      $as_echo "$ac_var='\''$ac_val'\''"
2172    done | sort
2173    echo
2174
2175    if test -n "$ac_subst_files"; then
2176      cat <<\_ASBOX
2177## ------------------- ##
2178## File substitutions. ##
2179## ------------------- ##
2180_ASBOX
2181      echo
2182      for ac_var in $ac_subst_files
2183      do
2184	eval ac_val=\$$ac_var
2185	case $ac_val in
2186	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187	esac
2188	$as_echo "$ac_var='\''$ac_val'\''"
2189      done | sort
2190      echo
2191    fi
2192
2193    if test -s confdefs.h; then
2194      cat <<\_ASBOX
2195## ----------- ##
2196## confdefs.h. ##
2197## ----------- ##
2198_ASBOX
2199      echo
2200      cat confdefs.h
2201      echo
2202    fi
2203    test "$ac_signal" != 0 &&
2204      $as_echo "$as_me: caught signal $ac_signal"
2205    $as_echo "$as_me: exit $exit_status"
2206  } >&5
2207  rm -f core *.core core.conftest.* &&
2208    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2209    exit $exit_status
2210' 0
2211for ac_signal in 1 2 13 15; do
2212  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2213done
2214ac_signal=0
2215
2216# confdefs.h avoids OS command line length limits that DEFS can exceed.
2217rm -f -r conftest* confdefs.h
2218
2219$as_echo "/* confdefs.h */" > confdefs.h
2220
2221# Predefined preprocessor variables.
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_NAME "$PACKAGE_NAME"
2225_ACEOF
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229_ACEOF
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_VERSION "$PACKAGE_VERSION"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_STRING "$PACKAGE_STRING"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_URL "$PACKAGE_URL"
2245_ACEOF
2246
2247
2248# Let the site file select an alternate cache file if it wants to.
2249# Prefer an explicitly selected file to automatically selected ones.
2250ac_site_file1=NONE
2251ac_site_file2=NONE
2252if test -n "$CONFIG_SITE"; then
2253  ac_site_file1=$CONFIG_SITE
2254elif test "x$prefix" != xNONE; then
2255  ac_site_file1=$prefix/share/config.site
2256  ac_site_file2=$prefix/etc/config.site
2257else
2258  ac_site_file1=$ac_default_prefix/share/config.site
2259  ac_site_file2=$ac_default_prefix/etc/config.site
2260fi
2261for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2262do
2263  test "x$ac_site_file" = xNONE && continue
2264  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2265    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2266$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2267    sed 's/^/| /' "$ac_site_file" >&5
2268    . "$ac_site_file"
2269  fi
2270done
2271
2272if test -r "$cache_file"; then
2273  # Some versions of bash will fail to source /dev/null (special files
2274  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2275  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2276    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2277$as_echo "$as_me: loading cache $cache_file" >&6;}
2278    case $cache_file in
2279      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2280      *)                      . "./$cache_file";;
2281    esac
2282  fi
2283else
2284  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2285$as_echo "$as_me: creating cache $cache_file" >&6;}
2286  >$cache_file
2287fi
2288
2289# Check that the precious variables saved in the cache have kept the same
2290# value.
2291ac_cache_corrupted=false
2292for ac_var in $ac_precious_vars; do
2293  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2294  eval ac_new_set=\$ac_env_${ac_var}_set
2295  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2296  eval ac_new_val=\$ac_env_${ac_var}_value
2297  case $ac_old_set,$ac_new_set in
2298    set,)
2299      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2300$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2301      ac_cache_corrupted=: ;;
2302    ,set)
2303      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2304$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2305      ac_cache_corrupted=: ;;
2306    ,);;
2307    *)
2308      if test "x$ac_old_val" != "x$ac_new_val"; then
2309	# differences in whitespace do not lead to failure.
2310	ac_old_val_w=`echo x $ac_old_val`
2311	ac_new_val_w=`echo x $ac_new_val`
2312	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2313	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2314$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2315	  ac_cache_corrupted=:
2316	else
2317	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2318$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2319	  eval $ac_var=\$ac_old_val
2320	fi
2321	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2322$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2323	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2324$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2325      fi;;
2326  esac
2327  # Pass precious variables to config.status.
2328  if test "$ac_new_set" = set; then
2329    case $ac_new_val in
2330    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2331    *) ac_arg=$ac_var=$ac_new_val ;;
2332    esac
2333    case " $ac_configure_args " in
2334      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2335      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2336    esac
2337  fi
2338done
2339if $ac_cache_corrupted; then
2340  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2343$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2344  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2345fi
2346## -------------------- ##
2347## Main body of script. ##
2348## -------------------- ##
2349
2350ac_ext=c
2351ac_cpp='$CPP $CPPFLAGS'
2352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
2357
2358
2359
2360
2361
2362
2363# so in metapackage it builds standalone
2364ac_aux_dir=
2365for ac_dir in . "$srcdir"/.; do
2366  for ac_t in install-sh install.sh shtool; do
2367    if test -f "$ac_dir/$ac_t"; then
2368      ac_aux_dir=$ac_dir
2369      ac_install_sh="$ac_aux_dir/$ac_t -c"
2370      break 2
2371    fi
2372  done
2373done
2374if test -z "$ac_aux_dir"; then
2375  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2376fi
2377
2378# These three variables are undocumented and unsupported,
2379# and are intended to be withdrawn in a future Autoconf release.
2380# They can cause serious problems if a builder's source tree is in a directory
2381# whose full name contains unusual characters.
2382ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2383ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2384ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2385
2386
2387ac_config_headers="$ac_config_headers config.h"
2388
2389am__api_version='1.11'
2390
2391# Find a good install program.  We prefer a C program (faster),
2392# so one script is as good as another.  But avoid the broken or
2393# incompatible versions:
2394# SysV /etc/install, /usr/sbin/install
2395# SunOS /usr/etc/install
2396# IRIX /sbin/install
2397# AIX /bin/install
2398# AmigaOS /C/install, which installs bootblocks on floppy discs
2399# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2400# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2401# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2402# OS/2's system install, which has a completely different semantic
2403# ./install, which can be erroneously created by make from ./install.sh.
2404# Reject install programs that cannot install multiple files.
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2406$as_echo_n "checking for a BSD-compatible install... " >&6; }
2407if test -z "$INSTALL"; then
2408if test "${ac_cv_path_install+set}" = set; then :
2409  $as_echo_n "(cached) " >&6
2410else
2411  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412for as_dir in $PATH
2413do
2414  IFS=$as_save_IFS
2415  test -z "$as_dir" && as_dir=.
2416    # Account for people who put trailing slashes in PATH elements.
2417case $as_dir/ in #((
2418  ./ | .// | /[cC]/* | \
2419  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2420  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2421  /usr/ucb/* ) ;;
2422  *)
2423    # OSF1 and SCO ODT 3.0 have their own names for install.
2424    # Don't use installbsd from OSF since it installs stuff as root
2425    # by default.
2426    for ac_prog in ginstall scoinst install; do
2427      for ac_exec_ext in '' $ac_executable_extensions; do
2428	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2429	  if test $ac_prog = install &&
2430	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2431	    # AIX install.  It has an incompatible calling convention.
2432	    :
2433	  elif test $ac_prog = install &&
2434	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2435	    # program-specific install script used by HP pwplus--don't use.
2436	    :
2437	  else
2438	    rm -rf conftest.one conftest.two conftest.dir
2439	    echo one > conftest.one
2440	    echo two > conftest.two
2441	    mkdir conftest.dir
2442	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2443	      test -s conftest.one && test -s conftest.two &&
2444	      test -s conftest.dir/conftest.one &&
2445	      test -s conftest.dir/conftest.two
2446	    then
2447	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2448	      break 3
2449	    fi
2450	  fi
2451	fi
2452      done
2453    done
2454    ;;
2455esac
2456
2457  done
2458IFS=$as_save_IFS
2459
2460rm -rf conftest.one conftest.two conftest.dir
2461
2462fi
2463  if test "${ac_cv_path_install+set}" = set; then
2464    INSTALL=$ac_cv_path_install
2465  else
2466    # As a last resort, use the slow shell script.  Don't cache a
2467    # value for INSTALL within a source directory, because that will
2468    # break other packages using the cache if that directory is
2469    # removed, or if the value is a relative name.
2470    INSTALL=$ac_install_sh
2471  fi
2472fi
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2474$as_echo "$INSTALL" >&6; }
2475
2476# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2477# It thinks the first close brace ends the variable substitution.
2478test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2479
2480test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2481
2482test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2483
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2485$as_echo_n "checking whether build environment is sane... " >&6; }
2486# Just in case
2487sleep 1
2488echo timestamp > conftest.file
2489# Reject unsafe characters in $srcdir or the absolute working directory
2490# name.  Accept space and tab only in the latter.
2491am_lf='
2492'
2493case `pwd` in
2494  *[\\\"\#\$\&\'\`$am_lf]*)
2495    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2496esac
2497case $srcdir in
2498  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2499    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2500esac
2501
2502# Do `set' in a subshell so we don't clobber the current shell's
2503# arguments.  Must try -L first in case configure is actually a
2504# symlink; some systems play weird games with the mod time of symlinks
2505# (eg FreeBSD returns the mod time of the symlink's containing
2506# directory).
2507if (
2508   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2509   if test "$*" = "X"; then
2510      # -L didn't work.
2511      set X `ls -t "$srcdir/configure" conftest.file`
2512   fi
2513   rm -f conftest.file
2514   if test "$*" != "X $srcdir/configure conftest.file" \
2515      && test "$*" != "X conftest.file $srcdir/configure"; then
2516
2517      # If neither matched, then we have a broken ls.  This can happen
2518      # if, for instance, CONFIG_SHELL is bash and it inherits a
2519      # broken ls alias from the environment.  This has actually
2520      # happened.  Such a system could not be considered "sane".
2521      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2522alias in your environment" "$LINENO" 5
2523   fi
2524
2525   test "$2" = conftest.file
2526   )
2527then
2528   # Ok.
2529   :
2530else
2531   as_fn_error "newly created file is older than distributed files!
2532Check your system clock" "$LINENO" 5
2533fi
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2535$as_echo "yes" >&6; }
2536test "$program_prefix" != NONE &&
2537  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2538# Use a double $ so make ignores it.
2539test "$program_suffix" != NONE &&
2540  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2541# Double any \ or $.
2542# By default was `s,x,x', remove it if useless.
2543ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2544program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2545
2546# expand $ac_aux_dir to an absolute path
2547am_aux_dir=`cd $ac_aux_dir && pwd`
2548
2549if test x"${MISSING+set}" != xset; then
2550  case $am_aux_dir in
2551  *\ * | *\	*)
2552    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2553  *)
2554    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2555  esac
2556fi
2557# Use eval to expand $SHELL
2558if eval "$MISSING --run true"; then
2559  am_missing_run="$MISSING --run "
2560else
2561  am_missing_run=
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2563$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2564fi
2565
2566if test x"${install_sh}" != xset; then
2567  case $am_aux_dir in
2568  *\ * | *\	*)
2569    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2570  *)
2571    install_sh="\${SHELL} $am_aux_dir/install-sh"
2572  esac
2573fi
2574
2575# Installed binaries are usually stripped using `strip' when the user
2576# run `make install-strip'.  However `strip' might not be the right
2577# tool to use in cross-compilation environments, therefore Automake
2578# will honor the `STRIP' environment variable to overrule this program.
2579if test "$cross_compiling" != no; then
2580  if test -n "$ac_tool_prefix"; then
2581  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2582set dummy ${ac_tool_prefix}strip; ac_word=$2
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584$as_echo_n "checking for $ac_word... " >&6; }
2585if test "${ac_cv_prog_STRIP+set}" = set; then :
2586  $as_echo_n "(cached) " >&6
2587else
2588  if test -n "$STRIP"; then
2589  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2590else
2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592for as_dir in $PATH
2593do
2594  IFS=$as_save_IFS
2595  test -z "$as_dir" && as_dir=.
2596    for ac_exec_ext in '' $ac_executable_extensions; do
2597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600    break 2
2601  fi
2602done
2603  done
2604IFS=$as_save_IFS
2605
2606fi
2607fi
2608STRIP=$ac_cv_prog_STRIP
2609if test -n "$STRIP"; then
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2611$as_echo "$STRIP" >&6; }
2612else
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614$as_echo "no" >&6; }
2615fi
2616
2617
2618fi
2619if test -z "$ac_cv_prog_STRIP"; then
2620  ac_ct_STRIP=$STRIP
2621  # Extract the first word of "strip", so it can be a program name with args.
2622set dummy strip; ac_word=$2
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624$as_echo_n "checking for $ac_word... " >&6; }
2625if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2626  $as_echo_n "(cached) " >&6
2627else
2628  if test -n "$ac_ct_STRIP"; then
2629  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2630else
2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634  IFS=$as_save_IFS
2635  test -z "$as_dir" && as_dir=.
2636    for ac_exec_ext in '' $ac_executable_extensions; do
2637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638    ac_cv_prog_ac_ct_STRIP="strip"
2639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640    break 2
2641  fi
2642done
2643  done
2644IFS=$as_save_IFS
2645
2646fi
2647fi
2648ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2649if test -n "$ac_ct_STRIP"; then
2650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2651$as_echo "$ac_ct_STRIP" >&6; }
2652else
2653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
2655fi
2656
2657  if test "x$ac_ct_STRIP" = x; then
2658    STRIP=":"
2659  else
2660    case $cross_compiling:$ac_tool_warned in
2661yes:)
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2664ac_tool_warned=yes ;;
2665esac
2666    STRIP=$ac_ct_STRIP
2667  fi
2668else
2669  STRIP="$ac_cv_prog_STRIP"
2670fi
2671
2672fi
2673INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2674
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2676$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2677if test -z "$MKDIR_P"; then
2678  if test "${ac_cv_path_mkdir+set}" = set; then :
2679  $as_echo_n "(cached) " >&6
2680else
2681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2683do
2684  IFS=$as_save_IFS
2685  test -z "$as_dir" && as_dir=.
2686    for ac_prog in mkdir gmkdir; do
2687	 for ac_exec_ext in '' $ac_executable_extensions; do
2688	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2689	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2690	     'mkdir (GNU coreutils) '* | \
2691	     'mkdir (coreutils) '* | \
2692	     'mkdir (fileutils) '4.1*)
2693	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2694	       break 3;;
2695	   esac
2696	 done
2697       done
2698  done
2699IFS=$as_save_IFS
2700
2701fi
2702
2703  test -d ./--version && rmdir ./--version
2704  if test "${ac_cv_path_mkdir+set}" = set; then
2705    MKDIR_P="$ac_cv_path_mkdir -p"
2706  else
2707    # As a last resort, use the slow shell script.  Don't cache a
2708    # value for MKDIR_P within a source directory, because that will
2709    # break other packages using the cache if that directory is
2710    # removed, or if the value is a relative name.
2711    MKDIR_P="$ac_install_sh -d"
2712  fi
2713fi
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2715$as_echo "$MKDIR_P" >&6; }
2716
2717mkdir_p="$MKDIR_P"
2718case $mkdir_p in
2719  [\\/$]* | ?:[\\/]*) ;;
2720  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2721esac
2722
2723for ac_prog in gawk mawk nawk awk
2724do
2725  # Extract the first word of "$ac_prog", so it can be a program name with args.
2726set dummy $ac_prog; ac_word=$2
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; }
2729if test "${ac_cv_prog_AWK+set}" = set; then :
2730  $as_echo_n "(cached) " >&6
2731else
2732  if test -n "$AWK"; then
2733  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738  IFS=$as_save_IFS
2739  test -z "$as_dir" && as_dir=.
2740    for ac_exec_ext in '' $ac_executable_extensions; do
2741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742    ac_cv_prog_AWK="$ac_prog"
2743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744    break 2
2745  fi
2746done
2747  done
2748IFS=$as_save_IFS
2749
2750fi
2751fi
2752AWK=$ac_cv_prog_AWK
2753if test -n "$AWK"; then
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2755$as_echo "$AWK" >&6; }
2756else
2757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758$as_echo "no" >&6; }
2759fi
2760
2761
2762  test -n "$AWK" && break
2763done
2764
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2766$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2767set x ${MAKE-make}
2768ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2769if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  cat >conftest.make <<\_ACEOF
2773SHELL = /bin/sh
2774all:
2775	@echo '@@@%%%=$(MAKE)=@@@%%%'
2776_ACEOF
2777# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2778case `${MAKE-make} -f conftest.make 2>/dev/null` in
2779  *@@@%%%=?*=@@@%%%*)
2780    eval ac_cv_prog_make_${ac_make}_set=yes;;
2781  *)
2782    eval ac_cv_prog_make_${ac_make}_set=no;;
2783esac
2784rm -f conftest.make
2785fi
2786if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2788$as_echo "yes" >&6; }
2789  SET_MAKE=
2790else
2791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792$as_echo "no" >&6; }
2793  SET_MAKE="MAKE=${MAKE-make}"
2794fi
2795
2796rm -rf .tst 2>/dev/null
2797mkdir .tst 2>/dev/null
2798if test -d .tst; then
2799  am__leading_dot=.
2800else
2801  am__leading_dot=_
2802fi
2803rmdir .tst 2>/dev/null
2804
2805if test "`cd $srcdir && pwd`" != "`pwd`"; then
2806  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2807  # is not polluted with repeated "-I."
2808  am__isrc=' -I$(srcdir)'
2809  # test to see if srcdir already configured
2810  if test -f $srcdir/config.status; then
2811    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2812  fi
2813fi
2814
2815# test whether we have cygpath
2816if test -z "$CYGPATH_W"; then
2817  if (cygpath --version) >/dev/null 2>/dev/null; then
2818    CYGPATH_W='cygpath -w'
2819  else
2820    CYGPATH_W=echo
2821  fi
2822fi
2823
2824
2825# Define the identity of the package.
2826 PACKAGE='gmpc-discogs'
2827 VERSION='0.20.0'
2828
2829
2830cat >>confdefs.h <<_ACEOF
2831#define PACKAGE "$PACKAGE"
2832_ACEOF
2833
2834
2835cat >>confdefs.h <<_ACEOF
2836#define VERSION "$VERSION"
2837_ACEOF
2838
2839# Some tools Automake needs.
2840
2841ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2842
2843
2844AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2845
2846
2847AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2848
2849
2850AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2851
2852
2853MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2854
2855# We need awk for the "check" target.  The system "awk" is bad on
2856# some platforms.
2857# Always define AMTAR for backward compatibility.
2858
2859AMTAR=${AMTAR-"${am_missing_run}tar"}
2860
2861am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2862
2863
2864
2865
2866
2867
2868
2869$as_echo "#define PLUGIN_MAJOR_VERSION 0" >>confdefs.h
2870
2871
2872$as_echo "#define PLUGIN_MINOR_VERSION 20" >>confdefs.h
2873
2874
2875$as_echo "#define PLUGIN_MICRO_VERSION 0" >>confdefs.h
2876
2877
2878#intltool, libtool. Check for CC compiler
2879
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2881$as_echo_n "checking whether NLS is requested... " >&6; }
2882    # Check whether --enable-nls was given.
2883if test "${enable_nls+set}" = set; then :
2884  enableval=$enable_nls; USE_NLS=$enableval
2885else
2886  USE_NLS=yes
2887fi
2888
2889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2890$as_echo "$USE_NLS" >&6; }
2891
2892
2893DEPDIR="${am__leading_dot}deps"
2894
2895ac_config_commands="$ac_config_commands depfiles"
2896
2897
2898am_make=${MAKE-make}
2899cat > confinc << 'END'
2900am__doit:
2901	@echo this is the am__doit target
2902.PHONY: am__doit
2903END
2904# If we don't find an include directive, just comment out the code.
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2906$as_echo_n "checking for style of include used by $am_make... " >&6; }
2907am__include="#"
2908am__quote=
2909_am_result=none
2910# First try GNU make style include.
2911echo "include confinc" > confmf
2912# Ignore all kinds of additional output from `make'.
2913case `$am_make -s -f confmf 2> /dev/null` in #(
2914*the\ am__doit\ target*)
2915  am__include=include
2916  am__quote=
2917  _am_result=GNU
2918  ;;
2919esac
2920# Now try BSD make style include.
2921if test "$am__include" = "#"; then
2922   echo '.include "confinc"' > confmf
2923   case `$am_make -s -f confmf 2> /dev/null` in #(
2924   *the\ am__doit\ target*)
2925     am__include=.include
2926     am__quote="\""
2927     _am_result=BSD
2928     ;;
2929   esac
2930fi
2931
2932
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2934$as_echo "$_am_result" >&6; }
2935rm -f confinc confmf
2936
2937# Check whether --enable-dependency-tracking was given.
2938if test "${enable_dependency_tracking+set}" = set; then :
2939  enableval=$enable_dependency_tracking;
2940fi
2941
2942if test "x$enable_dependency_tracking" != xno; then
2943  am_depcomp="$ac_aux_dir/depcomp"
2944  AMDEPBACKSLASH='\'
2945fi
2946 if test "x$enable_dependency_tracking" != xno; then
2947  AMDEP_TRUE=
2948  AMDEP_FALSE='#'
2949else
2950  AMDEP_TRUE='#'
2951  AMDEP_FALSE=
2952fi
2953
2954
2955ac_ext=c
2956ac_cpp='$CPP $CPPFLAGS'
2957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960if test -n "$ac_tool_prefix"; then
2961  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2962set dummy ${ac_tool_prefix}gcc; ac_word=$2
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964$as_echo_n "checking for $ac_word... " >&6; }
2965if test "${ac_cv_prog_CC+set}" = set; then :
2966  $as_echo_n "(cached) " >&6
2967else
2968  if test -n "$CC"; then
2969  ac_cv_prog_CC="$CC" # Let the user override the test.
2970else
2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974  IFS=$as_save_IFS
2975  test -z "$as_dir" && as_dir=.
2976    for ac_exec_ext in '' $ac_executable_extensions; do
2977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980    break 2
2981  fi
2982done
2983  done
2984IFS=$as_save_IFS
2985
2986fi
2987fi
2988CC=$ac_cv_prog_CC
2989if test -n "$CC"; then
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991$as_echo "$CC" >&6; }
2992else
2993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994$as_echo "no" >&6; }
2995fi
2996
2997
2998fi
2999if test -z "$ac_cv_prog_CC"; then
3000  ac_ct_CC=$CC
3001  # Extract the first word of "gcc", so it can be a program name with args.
3002set dummy gcc; ac_word=$2
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004$as_echo_n "checking for $ac_word... " >&6; }
3005if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3006  $as_echo_n "(cached) " >&6
3007else
3008  if test -n "$ac_ct_CC"; then
3009  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010else
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014  IFS=$as_save_IFS
3015  test -z "$as_dir" && as_dir=.
3016    for ac_exec_ext in '' $ac_executable_extensions; do
3017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018    ac_cv_prog_ac_ct_CC="gcc"
3019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020    break 2
3021  fi
3022done
3023  done
3024IFS=$as_save_IFS
3025
3026fi
3027fi
3028ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029if test -n "$ac_ct_CC"; then
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3031$as_echo "$ac_ct_CC" >&6; }
3032else
3033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034$as_echo "no" >&6; }
3035fi
3036
3037  if test "x$ac_ct_CC" = x; then
3038    CC=""
3039  else
3040    case $cross_compiling:$ac_tool_warned in
3041yes:)
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044ac_tool_warned=yes ;;
3045esac
3046    CC=$ac_ct_CC
3047  fi
3048else
3049  CC="$ac_cv_prog_CC"
3050fi
3051
3052if test -z "$CC"; then
3053          if test -n "$ac_tool_prefix"; then
3054    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3055set dummy ${ac_tool_prefix}cc; ac_word=$2
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057$as_echo_n "checking for $ac_word... " >&6; }
3058if test "${ac_cv_prog_CC+set}" = set; then :
3059  $as_echo_n "(cached) " >&6
3060else
3061  if test -n "$CC"; then
3062  ac_cv_prog_CC="$CC" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  test -z "$as_dir" && as_dir=.
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071    ac_cv_prog_CC="${ac_tool_prefix}cc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi
3080fi
3081CC=$ac_cv_prog_CC
3082if test -n "$CC"; then
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084$as_echo "$CC" >&6; }
3085else
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087$as_echo "no" >&6; }
3088fi
3089
3090
3091  fi
3092fi
3093if test -z "$CC"; then
3094  # Extract the first word of "cc", so it can be a program name with args.
3095set dummy cc; ac_word=$2
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097$as_echo_n "checking for $ac_word... " >&6; }
3098if test "${ac_cv_prog_CC+set}" = set; then :
3099  $as_echo_n "(cached) " >&6
3100else
3101  if test -n "$CC"; then
3102  ac_cv_prog_CC="$CC" # Let the user override the test.
3103else
3104  ac_prog_rejected=no
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108  IFS=$as_save_IFS
3109  test -z "$as_dir" && as_dir=.
3110    for ac_exec_ext in '' $ac_executable_extensions; do
3111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113       ac_prog_rejected=yes
3114       continue
3115     fi
3116    ac_cv_prog_CC="cc"
3117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118    break 2
3119  fi
3120done
3121  done
3122IFS=$as_save_IFS
3123
3124if test $ac_prog_rejected = yes; then
3125  # We found a bogon in the path, so make sure we never use it.
3126  set dummy $ac_cv_prog_CC
3127  shift
3128  if test $# != 0; then
3129    # We chose a different compiler from the bogus one.
3130    # However, it has the same basename, so the bogon will be chosen
3131    # first if we set CC to just the basename; use the full file name.
3132    shift
3133    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3134  fi
3135fi
3136fi
3137fi
3138CC=$ac_cv_prog_CC
3139if test -n "$CC"; then
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141$as_echo "$CC" >&6; }
3142else
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144$as_echo "no" >&6; }
3145fi
3146
3147
3148fi
3149if test -z "$CC"; then
3150  if test -n "$ac_tool_prefix"; then
3151  for ac_prog in cl.exe
3152  do
3153    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156$as_echo_n "checking for $ac_word... " >&6; }
3157if test "${ac_cv_prog_CC+set}" = set; then :
3158  $as_echo_n "(cached) " >&6
3159else
3160  if test -n "$CC"; then
3161  ac_cv_prog_CC="$CC" # Let the user override the test.
3162else
3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164for as_dir in $PATH
3165do
3166  IFS=$as_save_IFS
3167  test -z "$as_dir" && as_dir=.
3168    for ac_exec_ext in '' $ac_executable_extensions; do
3169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172    break 2
3173  fi
3174done
3175  done
3176IFS=$as_save_IFS
3177
3178fi
3179fi
3180CC=$ac_cv_prog_CC
3181if test -n "$CC"; then
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183$as_echo "$CC" >&6; }
3184else
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186$as_echo "no" >&6; }
3187fi
3188
3189
3190    test -n "$CC" && break
3191  done
3192fi
3193if test -z "$CC"; then
3194  ac_ct_CC=$CC
3195  for ac_prog in cl.exe
3196do
3197  # Extract the first word of "$ac_prog", so it can be a program name with args.
3198set dummy $ac_prog; ac_word=$2
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200$as_echo_n "checking for $ac_word... " >&6; }
3201if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3202  $as_echo_n "(cached) " >&6
3203else
3204  if test -n "$ac_ct_CC"; then
3205  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206else
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210  IFS=$as_save_IFS
3211  test -z "$as_dir" && as_dir=.
3212    for ac_exec_ext in '' $ac_executable_extensions; do
3213  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214    ac_cv_prog_ac_ct_CC="$ac_prog"
3215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216    break 2
3217  fi
3218done
3219  done
3220IFS=$as_save_IFS
3221
3222fi
3223fi
3224ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225if test -n "$ac_ct_CC"; then
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3227$as_echo "$ac_ct_CC" >&6; }
3228else
3229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
3231fi
3232
3233
3234  test -n "$ac_ct_CC" && break
3235done
3236
3237  if test "x$ac_ct_CC" = x; then
3238    CC=""
3239  else
3240    case $cross_compiling:$ac_tool_warned in
3241yes:)
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244ac_tool_warned=yes ;;
3245esac
3246    CC=$ac_ct_CC
3247  fi
3248fi
3249
3250fi
3251
3252
3253test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255as_fn_error "no acceptable C compiler found in \$PATH
3256See \`config.log' for more details." "$LINENO" 5; }
3257
3258# Provide some information about the compiler.
3259$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3260set X $ac_compile
3261ac_compiler=$2
3262for ac_option in --version -v -V -qversion; do
3263  { { ac_try="$ac_compiler $ac_option >&5"
3264case "(($ac_try" in
3265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266  *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3271  ac_status=$?
3272  if test -s conftest.err; then
3273    sed '10a\
3274... rest of stderr output deleted ...
3275         10q' conftest.err >conftest.er1
3276    cat conftest.er1 >&5
3277  fi
3278  rm -f conftest.er1 conftest.err
3279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280  test $ac_status = 0; }
3281done
3282
3283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284/* end confdefs.h.  */
3285
3286int
3287main ()
3288{
3289
3290  ;
3291  return 0;
3292}
3293_ACEOF
3294ac_clean_files_save=$ac_clean_files
3295ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3296# Try to create an executable without -o first, disregard a.out.
3297# It will help us diagnose broken compilers, and finding out an intuition
3298# of exeext.
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3300$as_echo_n "checking whether the C compiler works... " >&6; }
3301ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3302
3303# The possible output files:
3304ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3305
3306ac_rmfiles=
3307for ac_file in $ac_files
3308do
3309  case $ac_file in
3310    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3311    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3312  esac
3313done
3314rm -f $ac_rmfiles
3315
3316if { { ac_try="$ac_link_default"
3317case "(($ac_try" in
3318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319  *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323  (eval "$ac_link_default") 2>&5
3324  ac_status=$?
3325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326  test $ac_status = 0; }; then :
3327  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3328# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3329# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3330# so that the user can short-circuit this test for compilers unknown to
3331# Autoconf.
3332for ac_file in $ac_files ''
3333do
3334  test -f "$ac_file" || continue
3335  case $ac_file in
3336    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3337	;;
3338    [ab].out )
3339	# We found the default executable, but exeext='' is most
3340	# certainly right.
3341	break;;
3342    *.* )
3343	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3344	then :; else
3345	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346	fi
3347	# We set ac_cv_exeext here because the later test for it is not
3348	# safe: cross compilers may not add the suffix if given an `-o'
3349	# argument, so we may need to know it at that point already.
3350	# Even if this section looks crufty: it has the advantage of
3351	# actually working.
3352	break;;
3353    * )
3354	break;;
3355  esac
3356done
3357test "$ac_cv_exeext" = no && ac_cv_exeext=
3358
3359else
3360  ac_file=''
3361fi
3362if test -z "$ac_file"; then :
3363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364$as_echo "no" >&6; }
3365$as_echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370{ as_fn_set_status 77
3371as_fn_error "C compiler cannot create executables
3372See \`config.log' for more details." "$LINENO" 5; }; }
3373else
3374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3375$as_echo "yes" >&6; }
3376fi
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3378$as_echo_n "checking for C compiler default output file name... " >&6; }
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3380$as_echo "$ac_file" >&6; }
3381ac_exeext=$ac_cv_exeext
3382
3383rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3384ac_clean_files=$ac_clean_files_save
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3386$as_echo_n "checking for suffix of executables... " >&6; }
3387if { { ac_try="$ac_link"
3388case "(($ac_try" in
3389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390  *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
3394  (eval "$ac_link") 2>&5
3395  ac_status=$?
3396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397  test $ac_status = 0; }; then :
3398  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3399# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3400# work properly (i.e., refer to `conftest.exe'), while it won't with
3401# `rm'.
3402for ac_file in conftest.exe conftest conftest.*; do
3403  test -f "$ac_file" || continue
3404  case $ac_file in
3405    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407	  break;;
3408    * ) break;;
3409  esac
3410done
3411else
3412  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414as_fn_error "cannot compute suffix of executables: cannot compile and link
3415See \`config.log' for more details." "$LINENO" 5; }
3416fi
3417rm -f conftest conftest$ac_cv_exeext
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3419$as_echo "$ac_cv_exeext" >&6; }
3420
3421rm -f conftest.$ac_ext
3422EXEEXT=$ac_cv_exeext
3423ac_exeext=$EXEEXT
3424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425/* end confdefs.h.  */
3426#include <stdio.h>
3427int
3428main ()
3429{
3430FILE *f = fopen ("conftest.out", "w");
3431 return ferror (f) || fclose (f) != 0;
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437ac_clean_files="$ac_clean_files conftest.out"
3438# Check that the compiler produces executables we can run.  If not, either
3439# the compiler is broken, or we cross compile.
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3441$as_echo_n "checking whether we are cross compiling... " >&6; }
3442if test "$cross_compiling" != yes; then
3443  { { ac_try="$ac_link"
3444case "(($ac_try" in
3445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446  *) ac_try_echo=$ac_try;;
3447esac
3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
3450  (eval "$ac_link") 2>&5
3451  ac_status=$?
3452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453  test $ac_status = 0; }
3454  if { ac_try='./conftest$ac_cv_exeext'
3455  { { case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461  (eval "$ac_try") 2>&5
3462  ac_status=$?
3463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464  test $ac_status = 0; }; }; then
3465    cross_compiling=no
3466  else
3467    if test "$cross_compiling" = maybe; then
3468	cross_compiling=yes
3469    else
3470	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472as_fn_error "cannot run C compiled programs.
3473If you meant to cross compile, use \`--host'.
3474See \`config.log' for more details." "$LINENO" 5; }
3475    fi
3476  fi
3477fi
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3479$as_echo "$cross_compiling" >&6; }
3480
3481rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3482ac_clean_files=$ac_clean_files_save
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3484$as_echo_n "checking for suffix of object files... " >&6; }
3485if test "${ac_cv_objext+set}" = set; then :
3486  $as_echo_n "(cached) " >&6
3487else
3488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489/* end confdefs.h.  */
3490
3491int
3492main ()
3493{
3494
3495  ;
3496  return 0;
3497}
3498_ACEOF
3499rm -f conftest.o conftest.obj
3500if { { ac_try="$ac_compile"
3501case "(($ac_try" in
3502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503  *) ac_try_echo=$ac_try;;
3504esac
3505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506$as_echo "$ac_try_echo"; } >&5
3507  (eval "$ac_compile") 2>&5
3508  ac_status=$?
3509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510  test $ac_status = 0; }; then :
3511  for ac_file in conftest.o conftest.obj conftest.*; do
3512  test -f "$ac_file" || continue;
3513  case $ac_file in
3514    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3515    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3516       break;;
3517  esac
3518done
3519else
3520  $as_echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525as_fn_error "cannot compute suffix of object files: cannot compile
3526See \`config.log' for more details." "$LINENO" 5; }
3527fi
3528rm -f conftest.$ac_cv_objext conftest.$ac_ext
3529fi
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3531$as_echo "$ac_cv_objext" >&6; }
3532OBJEXT=$ac_cv_objext
3533ac_objext=$OBJEXT
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3535$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3536if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3537  $as_echo_n "(cached) " >&6
3538else
3539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541
3542int
3543main ()
3544{
3545#ifndef __GNUC__
3546       choke me
3547#endif
3548
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553if ac_fn_c_try_compile "$LINENO"; then :
3554  ac_compiler_gnu=yes
3555else
3556  ac_compiler_gnu=no
3557fi
3558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559ac_cv_c_compiler_gnu=$ac_compiler_gnu
3560
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3563$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3564if test $ac_compiler_gnu = yes; then
3565  GCC=yes
3566else
3567  GCC=
3568fi
3569ac_test_CFLAGS=${CFLAGS+set}
3570ac_save_CFLAGS=$CFLAGS
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3572$as_echo_n "checking whether $CC accepts -g... " >&6; }
3573if test "${ac_cv_prog_cc_g+set}" = set; then :
3574  $as_echo_n "(cached) " >&6
3575else
3576  ac_save_c_werror_flag=$ac_c_werror_flag
3577   ac_c_werror_flag=yes
3578   ac_cv_prog_cc_g=no
3579   CFLAGS="-g"
3580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582
3583int
3584main ()
3585{
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591if ac_fn_c_try_compile "$LINENO"; then :
3592  ac_cv_prog_cc_g=yes
3593else
3594  CFLAGS=""
3595      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h.  */
3597
3598int
3599main ()
3600{
3601
3602  ;
3603  return 0;
3604}
3605_ACEOF
3606if ac_fn_c_try_compile "$LINENO"; then :
3607
3608else
3609  ac_c_werror_flag=$ac_save_c_werror_flag
3610	 CFLAGS="-g"
3611	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h.  */
3613
3614int
3615main ()
3616{
3617
3618  ;
3619  return 0;
3620}
3621_ACEOF
3622if ac_fn_c_try_compile "$LINENO"; then :
3623  ac_cv_prog_cc_g=yes
3624fi
3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626fi
3627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628fi
3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630   ac_c_werror_flag=$ac_save_c_werror_flag
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3633$as_echo "$ac_cv_prog_cc_g" >&6; }
3634if test "$ac_test_CFLAGS" = set; then
3635  CFLAGS=$ac_save_CFLAGS
3636elif test $ac_cv_prog_cc_g = yes; then
3637  if test "$GCC" = yes; then
3638    CFLAGS="-g -O2"
3639  else
3640    CFLAGS="-g"
3641  fi
3642else
3643  if test "$GCC" = yes; then
3644    CFLAGS="-O2"
3645  else
3646    CFLAGS=
3647  fi
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3650$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3651if test "${ac_cv_prog_cc_c89+set}" = set; then :
3652  $as_echo_n "(cached) " >&6
3653else
3654  ac_cv_prog_cc_c89=no
3655ac_save_CC=$CC
3656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657/* end confdefs.h.  */
3658#include <stdarg.h>
3659#include <stdio.h>
3660#include <sys/types.h>
3661#include <sys/stat.h>
3662/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3663struct buf { int x; };
3664FILE * (*rcsopen) (struct buf *, struct stat *, int);
3665static char *e (p, i)
3666     char **p;
3667     int i;
3668{
3669  return p[i];
3670}
3671static char *f (char * (*g) (char **, int), char **p, ...)
3672{
3673  char *s;
3674  va_list v;
3675  va_start (v,p);
3676  s = g (p, va_arg (v,int));
3677  va_end (v);
3678  return s;
3679}
3680
3681/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3682   function prototypes and stuff, but not '\xHH' hex character constants.
3683   These don't provoke an error unfortunately, instead are silently treated
3684   as 'x'.  The following induces an error, until -std is added to get
3685   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3686   array size at least.  It's necessary to write '\x00'==0 to get something
3687   that's true only with -std.  */
3688int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689
3690/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3691   inside strings and character constants.  */
3692#define FOO(x) 'x'
3693int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694
3695int test (int i, double x);
3696struct s1 {int (*f) (int a);};
3697struct s2 {int (*f) (double a);};
3698int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3699int argc;
3700char **argv;
3701int
3702main ()
3703{
3704return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3710	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711do
3712  CC="$ac_save_CC $ac_arg"
3713  if ac_fn_c_try_compile "$LINENO"; then :
3714  ac_cv_prog_cc_c89=$ac_arg
3715fi
3716rm -f core conftest.err conftest.$ac_objext
3717  test "x$ac_cv_prog_cc_c89" != "xno" && break
3718done
3719rm -f conftest.$ac_ext
3720CC=$ac_save_CC
3721
3722fi
3723# AC_CACHE_VAL
3724case "x$ac_cv_prog_cc_c89" in
3725  x)
3726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3727$as_echo "none needed" >&6; } ;;
3728  xno)
3729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730$as_echo "unsupported" >&6; } ;;
3731  *)
3732    CC="$CC $ac_cv_prog_cc_c89"
3733    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3734$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3735esac
3736if test "x$ac_cv_prog_cc_c89" != xno; then :
3737
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746depcc="$CC"   am_compiler_list=
3747
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3749$as_echo_n "checking dependency style of $depcc... " >&6; }
3750if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3751  $as_echo_n "(cached) " >&6
3752else
3753  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3754  # We make a subdir and do the tests there.  Otherwise we can end up
3755  # making bogus files that we don't know about and never remove.  For
3756  # instance it was reported that on HP-UX the gcc test will end up
3757  # making a dummy file named `D' -- because `-MD' means `put the output
3758  # in D'.
3759  mkdir conftest.dir
3760  # Copy depcomp to subdir because otherwise we won't find it if we're
3761  # using a relative directory.
3762  cp "$am_depcomp" conftest.dir
3763  cd conftest.dir
3764  # We will build objects and dependencies in a subdirectory because
3765  # it helps to detect inapplicable dependency modes.  For instance
3766  # both Tru64's cc and ICC support -MD to output dependencies as a
3767  # side effect of compilation, but ICC will put the dependencies in
3768  # the current directory while Tru64 will put them in the object
3769  # directory.
3770  mkdir sub
3771
3772  am_cv_CC_dependencies_compiler_type=none
3773  if test "$am_compiler_list" = ""; then
3774     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3775  fi
3776  am__universal=false
3777  case " $depcc " in #(
3778     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3779     esac
3780
3781  for depmode in $am_compiler_list; do
3782    # Setup a source with many dependencies, because some compilers
3783    # like to wrap large dependency lists on column 80 (with \), and
3784    # we should not choose a depcomp mode which is confused by this.
3785    #
3786    # We need to recreate these files for each test, as the compiler may
3787    # overwrite some of them when testing with obscure command lines.
3788    # This happens at least with the AIX C compiler.
3789    : > sub/conftest.c
3790    for i in 1 2 3 4 5 6; do
3791      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3792      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3793      # Solaris 8's {/usr,}/bin/sh.
3794      touch sub/conftst$i.h
3795    done
3796    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3797
3798    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3799    # mode.  It turns out that the SunPro C++ compiler does not properly
3800    # handle `-M -o', and we need to detect this.  Also, some Intel
3801    # versions had trouble with output in subdirs
3802    am__obj=sub/conftest.${OBJEXT-o}
3803    am__minus_obj="-o $am__obj"
3804    case $depmode in
3805    gcc)
3806      # This depmode causes a compiler race in universal mode.
3807      test "$am__universal" = false || continue
3808      ;;
3809    nosideeffect)
3810      # after this tag, mechanisms are not by side-effect, so they'll
3811      # only be used when explicitly requested
3812      if test "x$enable_dependency_tracking" = xyes; then
3813	continue
3814      else
3815	break
3816      fi
3817      ;;
3818    msvisualcpp | msvcmsys)
3819      # This compiler won't grok `-c -o', but also, the minuso test has
3820      # not run yet.  These depmodes are late enough in the game, and
3821      # so weak that their functioning should not be impacted.
3822      am__obj=conftest.${OBJEXT-o}
3823      am__minus_obj=
3824      ;;
3825    none) break ;;
3826    esac
3827    if depmode=$depmode \
3828       source=sub/conftest.c object=$am__obj \
3829       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3830       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3831         >/dev/null 2>conftest.err &&
3832       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3833       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3834       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3835       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3836      # icc doesn't choke on unknown options, it will just issue warnings
3837      # or remarks (even with -Werror).  So we grep stderr for any message
3838      # that says an option was ignored or not supported.
3839      # When given -MP, icc 7.0 and 7.1 complain thusly:
3840      #   icc: Command line warning: ignoring option '-M'; no argument required
3841      # The diagnosis changed in icc 8.0:
3842      #   icc: Command line remark: option '-MP' not supported
3843      if (grep 'ignoring option' conftest.err ||
3844          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3845        am_cv_CC_dependencies_compiler_type=$depmode
3846        break
3847      fi
3848    fi
3849  done
3850
3851  cd ..
3852  rm -rf conftest.dir
3853else
3854  am_cv_CC_dependencies_compiler_type=none
3855fi
3856
3857fi
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3859$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3860CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3861
3862 if
3863  test "x$enable_dependency_tracking" != xno \
3864  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3865  am__fastdepCC_TRUE=
3866  am__fastdepCC_FALSE='#'
3867else
3868  am__fastdepCC_TRUE='#'
3869  am__fastdepCC_FALSE=
3870fi
3871
3872
3873
3874
3875
3876case "$am__api_version" in
3877    1.01234)
3878	as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
3879    ;;
3880    *)
3881    ;;
3882esac
3883
3884if test -n "0.21"; then
3885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.21" >&5
3886$as_echo_n "checking for intltool >= 0.21... " >&6; }
3887
3888    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.21 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
3889    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
3890    INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
3891
3892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
3893$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
3894    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
3895	as_fn_error "Your intltool is too old.  You need intltool 0.21 or later." "$LINENO" 5
3896fi
3897
3898# Extract the first word of "intltool-update", so it can be a program name with args.
3899set dummy intltool-update; ac_word=$2
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901$as_echo_n "checking for $ac_word... " >&6; }
3902if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
3903  $as_echo_n "(cached) " >&6
3904else
3905  case $INTLTOOL_UPDATE in
3906  [\\/]* | ?:[\\/]*)
3907  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
3908  ;;
3909  *)
3910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913  IFS=$as_save_IFS
3914  test -z "$as_dir" && as_dir=.
3915    for ac_exec_ext in '' $ac_executable_extensions; do
3916  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
3918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919    break 2
3920  fi
3921done
3922  done
3923IFS=$as_save_IFS
3924
3925  ;;
3926esac
3927fi
3928INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
3929if test -n "$INTLTOOL_UPDATE"; then
3930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
3931$as_echo "$INTLTOOL_UPDATE" >&6; }
3932else
3933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
3935fi
3936
3937
3938# Extract the first word of "intltool-merge", so it can be a program name with args.
3939set dummy intltool-merge; ac_word=$2
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941$as_echo_n "checking for $ac_word... " >&6; }
3942if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
3943  $as_echo_n "(cached) " >&6
3944else
3945  case $INTLTOOL_MERGE in
3946  [\\/]* | ?:[\\/]*)
3947  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
3948  ;;
3949  *)
3950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951for as_dir in $PATH
3952do
3953  IFS=$as_save_IFS
3954  test -z "$as_dir" && as_dir=.
3955    for ac_exec_ext in '' $ac_executable_extensions; do
3956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
3958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959    break 2
3960  fi
3961done
3962  done
3963IFS=$as_save_IFS
3964
3965  ;;
3966esac
3967fi
3968INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
3969if test -n "$INTLTOOL_MERGE"; then
3970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
3971$as_echo "$INTLTOOL_MERGE" >&6; }
3972else
3973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974$as_echo "no" >&6; }
3975fi
3976
3977
3978# Extract the first word of "intltool-extract", so it can be a program name with args.
3979set dummy intltool-extract; ac_word=$2
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981$as_echo_n "checking for $ac_word... " >&6; }
3982if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
3983  $as_echo_n "(cached) " >&6
3984else
3985  case $INTLTOOL_EXTRACT in
3986  [\\/]* | ?:[\\/]*)
3987  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
3988  ;;
3989  *)
3990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH
3992do
3993  IFS=$as_save_IFS
3994  test -z "$as_dir" && as_dir=.
3995    for ac_exec_ext in '' $ac_executable_extensions; do
3996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
3998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999    break 2
4000  fi
4001done
4002  done
4003IFS=$as_save_IFS
4004
4005  ;;
4006esac
4007fi
4008INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
4009if test -n "$INTLTOOL_EXTRACT"; then
4010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
4011$as_echo "$INTLTOOL_EXTRACT" >&6; }
4012else
4013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014$as_echo "no" >&6; }
4015fi
4016
4017
4018if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
4019    as_fn_error "The intltool scripts were not found. Please install intltool." "$LINENO" 5
4020fi
4021
4022  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4023INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4024     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4025     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4026      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
4027     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4028   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4029    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4030INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4031       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4032      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4033      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
4034      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4035      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4036    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4037  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4038    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4039    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4040   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138# Check the gettext tools to make sure they are GNU
4139# Extract the first word of "xgettext", so it can be a program name with args.
4140set dummy xgettext; ac_word=$2
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142$as_echo_n "checking for $ac_word... " >&6; }
4143if test "${ac_cv_path_XGETTEXT+set}" = set; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146  case $XGETTEXT in
4147  [\\/]* | ?:[\\/]*)
4148  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4149  ;;
4150  *)
4151  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154  IFS=$as_save_IFS
4155  test -z "$as_dir" && as_dir=.
4156    for ac_exec_ext in '' $ac_executable_extensions; do
4157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
4159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160    break 2
4161  fi
4162done
4163  done
4164IFS=$as_save_IFS
4165
4166  ;;
4167esac
4168fi
4169XGETTEXT=$ac_cv_path_XGETTEXT
4170if test -n "$XGETTEXT"; then
4171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4172$as_echo "$XGETTEXT" >&6; }
4173else
4174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175$as_echo "no" >&6; }
4176fi
4177
4178
4179# Extract the first word of "msgmerge", so it can be a program name with args.
4180set dummy msgmerge; ac_word=$2
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182$as_echo_n "checking for $ac_word... " >&6; }
4183if test "${ac_cv_path_MSGMERGE+set}" = set; then :
4184  $as_echo_n "(cached) " >&6
4185else
4186  case $MSGMERGE in
4187  [\\/]* | ?:[\\/]*)
4188  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4189  ;;
4190  *)
4191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH
4193do
4194  IFS=$as_save_IFS
4195  test -z "$as_dir" && as_dir=.
4196    for ac_exec_ext in '' $ac_executable_extensions; do
4197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
4199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200    break 2
4201  fi
4202done
4203  done
4204IFS=$as_save_IFS
4205
4206  ;;
4207esac
4208fi
4209MSGMERGE=$ac_cv_path_MSGMERGE
4210if test -n "$MSGMERGE"; then
4211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4212$as_echo "$MSGMERGE" >&6; }
4213else
4214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215$as_echo "no" >&6; }
4216fi
4217
4218
4219# Extract the first word of "msgfmt", so it can be a program name with args.
4220set dummy msgfmt; ac_word=$2
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222$as_echo_n "checking for $ac_word... " >&6; }
4223if test "${ac_cv_path_MSGFMT+set}" = set; then :
4224  $as_echo_n "(cached) " >&6
4225else
4226  case $MSGFMT in
4227  [\\/]* | ?:[\\/]*)
4228  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4229  ;;
4230  *)
4231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234  IFS=$as_save_IFS
4235  test -z "$as_dir" && as_dir=.
4236    for ac_exec_ext in '' $ac_executable_extensions; do
4237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240    break 2
4241  fi
4242done
4243  done
4244IFS=$as_save_IFS
4245
4246  ;;
4247esac
4248fi
4249MSGFMT=$ac_cv_path_MSGFMT
4250if test -n "$MSGFMT"; then
4251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4252$as_echo "$MSGFMT" >&6; }
4253else
4254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255$as_echo "no" >&6; }
4256fi
4257
4258
4259# Extract the first word of "gmsgfmt", so it can be a program name with args.
4260set dummy gmsgfmt; ac_word=$2
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262$as_echo_n "checking for $ac_word... " >&6; }
4263if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  case $GMSGFMT in
4267  [\\/]* | ?:[\\/]*)
4268  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4269  ;;
4270  *)
4271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274  IFS=$as_save_IFS
4275  test -z "$as_dir" && as_dir=.
4276    for ac_exec_ext in '' $ac_executable_extensions; do
4277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280    break 2
4281  fi
4282done
4283  done
4284IFS=$as_save_IFS
4285
4286  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4287  ;;
4288esac
4289fi
4290GMSGFMT=$ac_cv_path_GMSGFMT
4291if test -n "$GMSGFMT"; then
4292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4293$as_echo "$GMSGFMT" >&6; }
4294else
4295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296$as_echo "no" >&6; }
4297fi
4298
4299
4300if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
4301    as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
4302fi
4303xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
4304mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
4305mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
4306if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
4307    as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
4308fi
4309
4310# Extract the first word of "perl", so it can be a program name with args.
4311set dummy perl; ac_word=$2
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313$as_echo_n "checking for $ac_word... " >&6; }
4314if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
4315  $as_echo_n "(cached) " >&6
4316else
4317  case $INTLTOOL_PERL in
4318  [\\/]* | ?:[\\/]*)
4319  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
4320  ;;
4321  *)
4322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325  IFS=$as_save_IFS
4326  test -z "$as_dir" && as_dir=.
4327    for ac_exec_ext in '' $ac_executable_extensions; do
4328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331    break 2
4332  fi
4333done
4334  done
4335IFS=$as_save_IFS
4336
4337  ;;
4338esac
4339fi
4340INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
4341if test -n "$INTLTOOL_PERL"; then
4342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
4343$as_echo "$INTLTOOL_PERL" >&6; }
4344else
4345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346$as_echo "no" >&6; }
4347fi
4348
4349
4350if test -z "$INTLTOOL_PERL"; then
4351   as_fn_error "perl not found" "$LINENO" 5
4352fi
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
4354$as_echo_n "checking for perl >= 5.8.1... " >&6; }
4355$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
4356if test $? -ne 0; then
4357   as_fn_error "perl 5.8.1 is required for intltool" "$LINENO" 5
4358else
4359   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
4361$as_echo "$IT_PERL_VERSION" >&6; }
4362fi
4363if test "x" != "xno-xml"; then
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
4365$as_echo_n "checking for XML::Parser... " >&6; }
4366   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
4367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4368$as_echo "ok" >&6; }
4369   else
4370       as_fn_error "XML::Parser perl module is required for intltool" "$LINENO" 5
4371   fi
4372fi
4373
4374# Substitute ALL_LINGUAS so we can use it in po/Makefile
4375
4376
4377# Set DATADIRNAME correctly if it is not set yet
4378# (copied from glib-gettext.m4)
4379if test -z "$DATADIRNAME"; then
4380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382
4383int
4384main ()
4385{
4386extern int _nl_msg_cat_cntr;
4387                       return _nl_msg_cat_cntr
4388  ;
4389  return 0;
4390}
4391_ACEOF
4392if ac_fn_c_try_link "$LINENO"; then :
4393  DATADIRNAME=share
4394else
4395  case $host in
4396    *-*-solaris*)
4397                        ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
4398if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
4399  DATADIRNAME=share
4400else
4401  DATADIRNAME=lib
4402fi
4403
4404    ;;
4405    *)
4406    DATADIRNAME=lib
4407    ;;
4408    esac
4409fi
4410rm -f core conftest.err conftest.$ac_objext \
4411    conftest$ac_exeext conftest.$ac_ext
4412fi
4413
4414
4415
4416
4417
4418
4419# i18n support
4420ALL_LINGUAS="bs de es fr hu nb nl pl ro ru sq sv zh_CN"
4421
4422GETTEXT_PACKAGE=gmpc-discogs
4423
4424
4425cat >>confdefs.h <<_ACEOF
4426#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
4427_ACEOF
4428
4429ac_ext=c
4430ac_cpp='$CPP $CPPFLAGS'
4431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4435$as_echo_n "checking how to run the C preprocessor... " >&6; }
4436# On Suns, sometimes $CPP names a directory.
4437if test -n "$CPP" && test -d "$CPP"; then
4438  CPP=
4439fi
4440if test -z "$CPP"; then
4441  if test "${ac_cv_prog_CPP+set}" = set; then :
4442  $as_echo_n "(cached) " >&6
4443else
4444      # Double quotes because CPP needs to be expanded
4445    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4446    do
4447      ac_preproc_ok=false
4448for ac_c_preproc_warn_flag in '' yes
4449do
4450  # Use a header file that comes with gcc, so configuring glibc
4451  # with a fresh cross-compiler works.
4452  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4453  # <limits.h> exists even on freestanding compilers.
4454  # On the NeXT, cc -E runs the code through the compiler's parser,
4455  # not just through cpp. "Syntax error" is here to catch this case.
4456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h.  */
4458#ifdef __STDC__
4459# include <limits.h>
4460#else
4461# include <assert.h>
4462#endif
4463		     Syntax error
4464_ACEOF
4465if ac_fn_c_try_cpp "$LINENO"; then :
4466
4467else
4468  # Broken: fails on valid input.
4469continue
4470fi
4471rm -f conftest.err conftest.$ac_ext
4472
4473  # OK, works on sane cases.  Now check whether nonexistent headers
4474  # can be detected and how.
4475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477#include <ac_nonexistent.h>
4478_ACEOF
4479if ac_fn_c_try_cpp "$LINENO"; then :
4480  # Broken: success on invalid input.
4481continue
4482else
4483  # Passes both tests.
4484ac_preproc_ok=:
4485break
4486fi
4487rm -f conftest.err conftest.$ac_ext
4488
4489done
4490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4491rm -f conftest.err conftest.$ac_ext
4492if $ac_preproc_ok; then :
4493  break
4494fi
4495
4496    done
4497    ac_cv_prog_CPP=$CPP
4498
4499fi
4500  CPP=$ac_cv_prog_CPP
4501else
4502  ac_cv_prog_CPP=$CPP
4503fi
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4505$as_echo "$CPP" >&6; }
4506ac_preproc_ok=false
4507for ac_c_preproc_warn_flag in '' yes
4508do
4509  # Use a header file that comes with gcc, so configuring glibc
4510  # with a fresh cross-compiler works.
4511  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4512  # <limits.h> exists even on freestanding compilers.
4513  # On the NeXT, cc -E runs the code through the compiler's parser,
4514  # not just through cpp. "Syntax error" is here to catch this case.
4515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516/* end confdefs.h.  */
4517#ifdef __STDC__
4518# include <limits.h>
4519#else
4520# include <assert.h>
4521#endif
4522		     Syntax error
4523_ACEOF
4524if ac_fn_c_try_cpp "$LINENO"; then :
4525
4526else
4527  # Broken: fails on valid input.
4528continue
4529fi
4530rm -f conftest.err conftest.$ac_ext
4531
4532  # OK, works on sane cases.  Now check whether nonexistent headers
4533  # can be detected and how.
4534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h.  */
4536#include <ac_nonexistent.h>
4537_ACEOF
4538if ac_fn_c_try_cpp "$LINENO"; then :
4539  # Broken: success on invalid input.
4540continue
4541else
4542  # Passes both tests.
4543ac_preproc_ok=:
4544break
4545fi
4546rm -f conftest.err conftest.$ac_ext
4547
4548done
4549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4550rm -f conftest.err conftest.$ac_ext
4551if $ac_preproc_ok; then :
4552
4553else
4554  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556as_fn_error "C preprocessor \"$CPP\" fails sanity check
4557See \`config.log' for more details." "$LINENO" 5; }
4558fi
4559
4560ac_ext=c
4561ac_cpp='$CPP $CPPFLAGS'
4562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565
4566
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4568$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4569if test "${ac_cv_path_GREP+set}" = set; then :
4570  $as_echo_n "(cached) " >&6
4571else
4572  if test -z "$GREP"; then
4573  ac_path_GREP_found=false
4574  # Loop through the user's path and test for each of PROGNAME-LIST
4575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577do
4578  IFS=$as_save_IFS
4579  test -z "$as_dir" && as_dir=.
4580    for ac_prog in grep ggrep; do
4581    for ac_exec_ext in '' $ac_executable_extensions; do
4582      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4583      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4584# Check for GNU ac_path_GREP and select it if it is found.
4585  # Check for GNU $ac_path_GREP
4586case `"$ac_path_GREP" --version 2>&1` in
4587*GNU*)
4588  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4589*)
4590  ac_count=0
4591  $as_echo_n 0123456789 >"conftest.in"
4592  while :
4593  do
4594    cat "conftest.in" "conftest.in" >"conftest.tmp"
4595    mv "conftest.tmp" "conftest.in"
4596    cp "conftest.in" "conftest.nl"
4597    $as_echo 'GREP' >> "conftest.nl"
4598    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600    as_fn_arith $ac_count + 1 && ac_count=$as_val
4601    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4602      # Best one so far, save it but keep looking for a better one
4603      ac_cv_path_GREP="$ac_path_GREP"
4604      ac_path_GREP_max=$ac_count
4605    fi
4606    # 10*(2^10) chars as input seems more than enough
4607    test $ac_count -gt 10 && break
4608  done
4609  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610esac
4611
4612      $ac_path_GREP_found && break 3
4613    done
4614  done
4615  done
4616IFS=$as_save_IFS
4617  if test -z "$ac_cv_path_GREP"; then
4618    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619  fi
4620else
4621  ac_cv_path_GREP=$GREP
4622fi
4623
4624fi
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4626$as_echo "$ac_cv_path_GREP" >&6; }
4627 GREP="$ac_cv_path_GREP"
4628
4629
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4631$as_echo_n "checking for egrep... " >&6; }
4632if test "${ac_cv_path_EGREP+set}" = set; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4636   then ac_cv_path_EGREP="$GREP -E"
4637   else
4638     if test -z "$EGREP"; then
4639  ac_path_EGREP_found=false
4640  # Loop through the user's path and test for each of PROGNAME-LIST
4641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4643do
4644  IFS=$as_save_IFS
4645  test -z "$as_dir" && as_dir=.
4646    for ac_prog in egrep; do
4647    for ac_exec_ext in '' $ac_executable_extensions; do
4648      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4649      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4650# Check for GNU ac_path_EGREP and select it if it is found.
4651  # Check for GNU $ac_path_EGREP
4652case `"$ac_path_EGREP" --version 2>&1` in
4653*GNU*)
4654  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4655*)
4656  ac_count=0
4657  $as_echo_n 0123456789 >"conftest.in"
4658  while :
4659  do
4660    cat "conftest.in" "conftest.in" >"conftest.tmp"
4661    mv "conftest.tmp" "conftest.in"
4662    cp "conftest.in" "conftest.nl"
4663    $as_echo 'EGREP' >> "conftest.nl"
4664    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4665    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4666    as_fn_arith $ac_count + 1 && ac_count=$as_val
4667    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4668      # Best one so far, save it but keep looking for a better one
4669      ac_cv_path_EGREP="$ac_path_EGREP"
4670      ac_path_EGREP_max=$ac_count
4671    fi
4672    # 10*(2^10) chars as input seems more than enough
4673    test $ac_count -gt 10 && break
4674  done
4675  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4676esac
4677
4678      $ac_path_EGREP_found && break 3
4679    done
4680  done
4681  done
4682IFS=$as_save_IFS
4683  if test -z "$ac_cv_path_EGREP"; then
4684    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4685  fi
4686else
4687  ac_cv_path_EGREP=$EGREP
4688fi
4689
4690   fi
4691fi
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4693$as_echo "$ac_cv_path_EGREP" >&6; }
4694 EGREP="$ac_cv_path_EGREP"
4695
4696
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4698$as_echo_n "checking for ANSI C header files... " >&6; }
4699if test "${ac_cv_header_stdc+set}" = set; then :
4700  $as_echo_n "(cached) " >&6
4701else
4702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703/* end confdefs.h.  */
4704#include <stdlib.h>
4705#include <stdarg.h>
4706#include <string.h>
4707#include <float.h>
4708
4709int
4710main ()
4711{
4712
4713  ;
4714  return 0;
4715}
4716_ACEOF
4717if ac_fn_c_try_compile "$LINENO"; then :
4718  ac_cv_header_stdc=yes
4719else
4720  ac_cv_header_stdc=no
4721fi
4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723
4724if test $ac_cv_header_stdc = yes; then
4725  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h.  */
4728#include <string.h>
4729
4730_ACEOF
4731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732  $EGREP "memchr" >/dev/null 2>&1; then :
4733
4734else
4735  ac_cv_header_stdc=no
4736fi
4737rm -f conftest*
4738
4739fi
4740
4741if test $ac_cv_header_stdc = yes; then
4742  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h.  */
4745#include <stdlib.h>
4746
4747_ACEOF
4748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749  $EGREP "free" >/dev/null 2>&1; then :
4750
4751else
4752  ac_cv_header_stdc=no
4753fi
4754rm -f conftest*
4755
4756fi
4757
4758if test $ac_cv_header_stdc = yes; then
4759  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4760  if test "$cross_compiling" = yes; then :
4761  :
4762else
4763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h.  */
4765#include <ctype.h>
4766#include <stdlib.h>
4767#if ((' ' & 0x0FF) == 0x020)
4768# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4769# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4770#else
4771# define ISLOWER(c) \
4772		   (('a' <= (c) && (c) <= 'i') \
4773		     || ('j' <= (c) && (c) <= 'r') \
4774		     || ('s' <= (c) && (c) <= 'z'))
4775# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4776#endif
4777
4778#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4779int
4780main ()
4781{
4782  int i;
4783  for (i = 0; i < 256; i++)
4784    if (XOR (islower (i), ISLOWER (i))
4785	|| toupper (i) != TOUPPER (i))
4786      return 2;
4787  return 0;
4788}
4789_ACEOF
4790if ac_fn_c_try_run "$LINENO"; then :
4791
4792else
4793  ac_cv_header_stdc=no
4794fi
4795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4796  conftest.$ac_objext conftest.beam conftest.$ac_ext
4797fi
4798
4799fi
4800fi
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4802$as_echo "$ac_cv_header_stdc" >&6; }
4803if test $ac_cv_header_stdc = yes; then
4804
4805$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4806
4807fi
4808
4809# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4810for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4811		  inttypes.h stdint.h unistd.h
4812do :
4813  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4814ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4815"
4816eval as_val=\$$as_ac_Header
4817   if test "x$as_val" = x""yes; then :
4818  cat >>confdefs.h <<_ACEOF
4819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4820_ACEOF
4821
4822fi
4823
4824done
4825
4826
4827
4828   for ac_header in locale.h
4829do :
4830  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
4831if test "x$ac_cv_header_locale_h" = x""yes; then :
4832  cat >>confdefs.h <<_ACEOF
4833#define HAVE_LOCALE_H 1
4834_ACEOF
4835
4836fi
4837
4838done
4839
4840    if test $ac_cv_header_locale_h = yes; then
4841    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
4842$as_echo_n "checking for LC_MESSAGES... " >&6; }
4843if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
4844  $as_echo_n "(cached) " >&6
4845else
4846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847/* end confdefs.h.  */
4848#include <locale.h>
4849int
4850main ()
4851{
4852return LC_MESSAGES
4853  ;
4854  return 0;
4855}
4856_ACEOF
4857if ac_fn_c_try_link "$LINENO"; then :
4858  am_cv_val_LC_MESSAGES=yes
4859else
4860  am_cv_val_LC_MESSAGES=no
4861fi
4862rm -f core conftest.err conftest.$ac_objext \
4863    conftest$ac_exeext conftest.$ac_ext
4864fi
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
4866$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
4867    if test $am_cv_val_LC_MESSAGES = yes; then
4868
4869$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
4870
4871    fi
4872  fi
4873     USE_NLS=yes
4874
4875
4876    gt_cv_have_gettext=no
4877
4878    CATOBJEXT=NONE
4879    XGETTEXT=:
4880    INTLLIBS=
4881
4882    ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4883if test "x$ac_cv_header_libintl_h" = x""yes; then :
4884  gt_cv_func_dgettext_libintl="no"
4885      libintl_extra_libs=""
4886
4887      #
4888      # First check in libc
4889      #
4890      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
4891$as_echo_n "checking for ngettext in libc... " >&6; }
4892if test "${gt_cv_func_ngettext_libc+set}" = set; then :
4893  $as_echo_n "(cached) " >&6
4894else
4895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h.  */
4897
4898#include <libintl.h>
4899
4900int
4901main ()
4902{
4903return !ngettext ("","", 1)
4904  ;
4905  return 0;
4906}
4907_ACEOF
4908if ac_fn_c_try_link "$LINENO"; then :
4909  gt_cv_func_ngettext_libc=yes
4910else
4911  gt_cv_func_ngettext_libc=no
4912fi
4913rm -f core conftest.err conftest.$ac_objext \
4914    conftest$ac_exeext conftest.$ac_ext
4915
4916fi
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
4918$as_echo "$gt_cv_func_ngettext_libc" >&6; }
4919
4920      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4921	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
4922$as_echo_n "checking for dgettext in libc... " >&6; }
4923if test "${gt_cv_func_dgettext_libc+set}" = set; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928
4929#include <libintl.h>
4930
4931int
4932main ()
4933{
4934return !dgettext ("","")
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939if ac_fn_c_try_link "$LINENO"; then :
4940  gt_cv_func_dgettext_libc=yes
4941else
4942  gt_cv_func_dgettext_libc=no
4943fi
4944rm -f core conftest.err conftest.$ac_objext \
4945    conftest$ac_exeext conftest.$ac_ext
4946
4947fi
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
4949$as_echo "$gt_cv_func_dgettext_libc" >&6; }
4950      fi
4951
4952      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4953        for ac_func in bind_textdomain_codeset
4954do :
4955  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
4956if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
4957  cat >>confdefs.h <<_ACEOF
4958#define HAVE_BIND_TEXTDOMAIN_CODESET 1
4959_ACEOF
4960
4961fi
4962done
4963
4964      fi
4965
4966      #
4967      # If we don't have everything we want, check in libintl
4968      #
4969      if test "$gt_cv_func_dgettext_libc" != "yes" \
4970	 || test "$gt_cv_func_ngettext_libc" != "yes" \
4971         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
4972
4973        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
4974$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
4975if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  ac_check_lib_save_LIBS=$LIBS
4979LIBS="-lintl  $LIBS"
4980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981/* end confdefs.h.  */
4982
4983/* Override any GCC internal prototype to avoid an error.
4984   Use char because int might match the return type of a GCC
4985   builtin and then its argument prototype would still apply.  */
4986#ifdef __cplusplus
4987extern "C"
4988#endif
4989char bindtextdomain ();
4990int
4991main ()
4992{
4993return bindtextdomain ();
4994  ;
4995  return 0;
4996}
4997_ACEOF
4998if ac_fn_c_try_link "$LINENO"; then :
4999  ac_cv_lib_intl_bindtextdomain=yes
5000else
5001  ac_cv_lib_intl_bindtextdomain=no
5002fi
5003rm -f core conftest.err conftest.$ac_objext \
5004    conftest$ac_exeext conftest.$ac_ext
5005LIBS=$ac_check_lib_save_LIBS
5006fi
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
5008$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
5009if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
5010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
5011$as_echo_n "checking for ngettext in -lintl... " >&6; }
5012if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
5013  $as_echo_n "(cached) " >&6
5014else
5015  ac_check_lib_save_LIBS=$LIBS
5016LIBS="-lintl  $LIBS"
5017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018/* end confdefs.h.  */
5019
5020/* Override any GCC internal prototype to avoid an error.
5021   Use char because int might match the return type of a GCC
5022   builtin and then its argument prototype would still apply.  */
5023#ifdef __cplusplus
5024extern "C"
5025#endif
5026char ngettext ();
5027int
5028main ()
5029{
5030return ngettext ();
5031  ;
5032  return 0;
5033}
5034_ACEOF
5035if ac_fn_c_try_link "$LINENO"; then :
5036  ac_cv_lib_intl_ngettext=yes
5037else
5038  ac_cv_lib_intl_ngettext=no
5039fi
5040rm -f core conftest.err conftest.$ac_objext \
5041    conftest$ac_exeext conftest.$ac_ext
5042LIBS=$ac_check_lib_save_LIBS
5043fi
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
5045$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
5046if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
5047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
5048$as_echo_n "checking for dgettext in -lintl... " >&6; }
5049if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  ac_check_lib_save_LIBS=$LIBS
5053LIBS="-lintl  $LIBS"
5054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055/* end confdefs.h.  */
5056
5057/* Override any GCC internal prototype to avoid an error.
5058   Use char because int might match the return type of a GCC
5059   builtin and then its argument prototype would still apply.  */
5060#ifdef __cplusplus
5061extern "C"
5062#endif
5063char dgettext ();
5064int
5065main ()
5066{
5067return dgettext ();
5068  ;
5069  return 0;
5070}
5071_ACEOF
5072if ac_fn_c_try_link "$LINENO"; then :
5073  ac_cv_lib_intl_dgettext=yes
5074else
5075  ac_cv_lib_intl_dgettext=no
5076fi
5077rm -f core conftest.err conftest.$ac_objext \
5078    conftest$ac_exeext conftest.$ac_ext
5079LIBS=$ac_check_lib_save_LIBS
5080fi
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
5082$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
5083if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
5084  gt_cv_func_dgettext_libintl=yes
5085fi
5086
5087fi
5088
5089fi
5090
5091
5092	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
5093	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
5094$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
5095	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
5096$as_echo "" >&6; }
5097  	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
5098$as_echo_n "checking for ngettext in -lintl... " >&6; }
5099if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
5100  $as_echo_n "(cached) " >&6
5101else
5102  ac_check_lib_save_LIBS=$LIBS
5103LIBS="-lintl -liconv $LIBS"
5104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h.  */
5106
5107/* Override any GCC internal prototype to avoid an error.
5108   Use char because int might match the return type of a GCC
5109   builtin and then its argument prototype would still apply.  */
5110#ifdef __cplusplus
5111extern "C"
5112#endif
5113char ngettext ();
5114int
5115main ()
5116{
5117return ngettext ();
5118  ;
5119  return 0;
5120}
5121_ACEOF
5122if ac_fn_c_try_link "$LINENO"; then :
5123  ac_cv_lib_intl_ngettext=yes
5124else
5125  ac_cv_lib_intl_ngettext=no
5126fi
5127rm -f core conftest.err conftest.$ac_objext \
5128    conftest$ac_exeext conftest.$ac_ext
5129LIBS=$ac_check_lib_save_LIBS
5130fi
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
5132$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
5133if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
5134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
5135$as_echo_n "checking for dcgettext in -lintl... " >&6; }
5136if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
5137  $as_echo_n "(cached) " >&6
5138else
5139  ac_check_lib_save_LIBS=$LIBS
5140LIBS="-lintl -liconv $LIBS"
5141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142/* end confdefs.h.  */
5143
5144/* Override any GCC internal prototype to avoid an error.
5145   Use char because int might match the return type of a GCC
5146   builtin and then its argument prototype would still apply.  */
5147#ifdef __cplusplus
5148extern "C"
5149#endif
5150char dcgettext ();
5151int
5152main ()
5153{
5154return dcgettext ();
5155  ;
5156  return 0;
5157}
5158_ACEOF
5159if ac_fn_c_try_link "$LINENO"; then :
5160  ac_cv_lib_intl_dcgettext=yes
5161else
5162  ac_cv_lib_intl_dcgettext=no
5163fi
5164rm -f core conftest.err conftest.$ac_objext \
5165    conftest$ac_exeext conftest.$ac_ext
5166LIBS=$ac_check_lib_save_LIBS
5167fi
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
5169$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
5170if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
5171  gt_cv_func_dgettext_libintl=yes
5172			libintl_extra_libs=-liconv
5173else
5174  :
5175fi
5176
5177else
5178  :
5179fi
5180
5181        fi
5182
5183        #
5184        # If we found libintl, then check in it for bind_textdomain_codeset();
5185        # we'll prefer libc if neither have bind_textdomain_codeset(),
5186        # and both have dgettext and ngettext
5187        #
5188        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
5189          glib_save_LIBS="$LIBS"
5190          LIBS="$LIBS -lintl $libintl_extra_libs"
5191          unset ac_cv_func_bind_textdomain_codeset
5192          for ac_func in bind_textdomain_codeset
5193do :
5194  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5195if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
5196  cat >>confdefs.h <<_ACEOF
5197#define HAVE_BIND_TEXTDOMAIN_CODESET 1
5198_ACEOF
5199
5200fi
5201done
5202
5203          LIBS="$glib_save_LIBS"
5204
5205          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
5206            gt_cv_func_dgettext_libc=no
5207          else
5208            if test "$gt_cv_func_dgettext_libc" = "yes" \
5209		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
5210              gt_cv_func_dgettext_libintl=no
5211            fi
5212          fi
5213        fi
5214      fi
5215
5216      if test "$gt_cv_func_dgettext_libc" = "yes" \
5217	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
5218        gt_cv_have_gettext=yes
5219      fi
5220
5221      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5222        INTLLIBS="-lintl $libintl_extra_libs"
5223      fi
5224
5225      if test "$gt_cv_have_gettext" = "yes"; then
5226
5227$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5228
5229	# Extract the first word of "msgfmt", so it can be a program name with args.
5230set dummy msgfmt; ac_word=$2
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232$as_echo_n "checking for $ac_word... " >&6; }
5233if test "${ac_cv_path_MSGFMT+set}" = set; then :
5234  $as_echo_n "(cached) " >&6
5235else
5236  case "$MSGFMT" in
5237  /*)
5238  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5239  ;;
5240  *)
5241  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5242  for ac_dir in $PATH; do
5243    test -z "$ac_dir" && ac_dir=.
5244    if test -f $ac_dir/$ac_word; then
5245      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5246	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5247	break
5248      fi
5249    fi
5250  done
5251  IFS="$ac_save_ifs"
5252  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5253  ;;
5254esac
5255fi
5256MSGFMT="$ac_cv_path_MSGFMT"
5257if test "$MSGFMT" != "no"; then
5258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5259$as_echo "$MSGFMT" >&6; }
5260else
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262$as_echo "no" >&6; }
5263fi
5264	if test "$MSGFMT" != "no"; then
5265          glib_save_LIBS="$LIBS"
5266          LIBS="$LIBS $INTLLIBS"
5267	  for ac_func in dcgettext
5268do :
5269  ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
5270if test "x$ac_cv_func_dcgettext" = x""yes; then :
5271  cat >>confdefs.h <<_ACEOF
5272#define HAVE_DCGETTEXT 1
5273_ACEOF
5274
5275fi
5276done
5277
5278	  MSGFMT_OPTS=
5279	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
5280$as_echo_n "checking if msgfmt accepts -c... " >&6; }
5281	  cat >conftest.foo <<_ACEOF
5282
5283msgid ""
5284msgstr ""
5285"Content-Type: text/plain; charset=UTF-8\n"
5286"Project-Id-Version: test 1.0\n"
5287"PO-Revision-Date: 2007-02-15 12:01+0100\n"
5288"Last-Translator: test <foo@bar.xx>\n"
5289"Language-Team: C <LL@li.org>\n"
5290"MIME-Version: 1.0\n"
5291"Content-Transfer-Encoding: 8bit\n"
5292
5293_ACEOF
5294if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
5295  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
5296  ac_status=$?
5297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5298  test $ac_status = 0; }; then
5299  MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5300$as_echo "yes" >&6; }
5301else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302$as_echo "no" >&6; }
5303echo "$as_me: failed input was:" >&5
5304sed 's/^/| /' conftest.foo >&5
5305fi
5306
5307	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
5308set dummy gmsgfmt; ac_word=$2
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310$as_echo_n "checking for $ac_word... " >&6; }
5311if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314  case $GMSGFMT in
5315  [\\/]* | ?:[\\/]*)
5316  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5317  ;;
5318  *)
5319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322  IFS=$as_save_IFS
5323  test -z "$as_dir" && as_dir=.
5324    for ac_exec_ext in '' $ac_executable_extensions; do
5325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328    break 2
5329  fi
5330done
5331  done
5332IFS=$as_save_IFS
5333
5334  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5335  ;;
5336esac
5337fi
5338GMSGFMT=$ac_cv_path_GMSGFMT
5339if test -n "$GMSGFMT"; then
5340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5341$as_echo "$GMSGFMT" >&6; }
5342else
5343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344$as_echo "no" >&6; }
5345fi
5346
5347
5348	  # Extract the first word of "xgettext", so it can be a program name with args.
5349set dummy xgettext; ac_word=$2
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351$as_echo_n "checking for $ac_word... " >&6; }
5352if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355  case "$XGETTEXT" in
5356  /*)
5357  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5358  ;;
5359  *)
5360  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5361  for ac_dir in $PATH; do
5362    test -z "$ac_dir" && ac_dir=.
5363    if test -f $ac_dir/$ac_word; then
5364      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5365	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5366	break
5367      fi
5368    fi
5369  done
5370  IFS="$ac_save_ifs"
5371  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5372  ;;
5373esac
5374fi
5375XGETTEXT="$ac_cv_path_XGETTEXT"
5376if test "$XGETTEXT" != ":"; then
5377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5378$as_echo "$XGETTEXT" >&6; }
5379else
5380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381$as_echo "no" >&6; }
5382fi
5383
5384	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h.  */
5386
5387int
5388main ()
5389{
5390extern int _nl_msg_cat_cntr;
5391			 return _nl_msg_cat_cntr
5392  ;
5393  return 0;
5394}
5395_ACEOF
5396if ac_fn_c_try_link "$LINENO"; then :
5397  CATOBJEXT=.gmo
5398             DATADIRNAME=share
5399else
5400  case $host in
5401	    *-*-solaris*)
5402	    	                	    	                ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5403if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
5404  CATOBJEXT=.gmo
5405               DATADIRNAME=share
5406else
5407  CATOBJEXT=.mo
5408               DATADIRNAME=lib
5409fi
5410
5411	    ;;
5412	    *)
5413	    CATOBJEXT=.mo
5414            DATADIRNAME=lib
5415	    ;;
5416	    esac
5417fi
5418rm -f core conftest.err conftest.$ac_objext \
5419    conftest$ac_exeext conftest.$ac_ext
5420          LIBS="$glib_save_LIBS"
5421	  INSTOBJEXT=.mo
5422	else
5423	  gt_cv_have_gettext=no
5424	fi
5425      fi
5426
5427fi
5428
5429
5430
5431    if test "$gt_cv_have_gettext" = "yes" ; then
5432
5433$as_echo "#define ENABLE_NLS 1" >>confdefs.h
5434
5435    fi
5436
5437        if test "$XGETTEXT" != ":"; then
5438                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5439        : ;
5440      else
5441        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5442$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5443        XGETTEXT=":"
5444      fi
5445    fi
5446
5447    # We need to process the po/ directory.
5448    POSUB=po
5449
5450    ac_config_commands="$ac_config_commands default-1"
5451
5452
5453                for lang in $ALL_LINGUAS; do
5454      GMOFILES="$GMOFILES $lang.gmo"
5455      POFILES="$POFILES $lang.po"
5456    done
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470   if test "$gt_cv_have_gettext" = "yes"; then
5471     if test "x$ALL_LINGUAS" = "x"; then
5472       LINGUAS=
5473     else
5474       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5475$as_echo_n "checking for catalogs to be installed... " >&6; }
5476       NEW_LINGUAS=
5477       for presentlang in $ALL_LINGUAS; do
5478         useit=no
5479         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
5480           desiredlanguages="$LINGUAS"
5481         else
5482           desiredlanguages="$ALL_LINGUAS"
5483         fi
5484         for desiredlang in $desiredlanguages; do
5485 	   # Use the presentlang catalog if desiredlang is
5486           #   a. equal to presentlang, or
5487           #   b. a variant of presentlang (because in this case,
5488           #      presentlang can be used as a fallback for messages
5489           #      which are not translated in the desiredlang catalog).
5490           case "$desiredlang" in
5491             "$presentlang"*) useit=yes;;
5492           esac
5493         done
5494         if test $useit = yes; then
5495           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5496         fi
5497       done
5498       LINGUAS=$NEW_LINGUAS
5499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5500$as_echo "$LINGUAS" >&6; }
5501     fi
5502
5503          if test -n "$LINGUAS"; then
5504       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5505     fi
5506   fi
5507
5508            MKINSTALLDIRS=
5509   if test -n "$ac_aux_dir"; then
5510     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5511   fi
5512   if test -z "$MKINSTALLDIRS"; then
5513     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5514   fi
5515
5516
5517         test -d po || mkdir po
5518   if test "x$srcdir" != "x."; then
5519     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5520       posrcprefix="$srcdir/"
5521     else
5522       posrcprefix="../$srcdir/"
5523     fi
5524   else
5525     posrcprefix="../"
5526   fi
5527   rm -f po/POTFILES
5528   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5529	< $srcdir/po/POTFILES.in > po/POTFILES
5530
5531
5532
5533if test "x${prefix}" = "xNONE"; then
5534	PACKAGE_PREFIX="${ac_default_prefix}"
5535else
5536	PACKAGE_PREFIX="${prefix}"
5537fi
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_PREFIX" >&5
5539$as_echo "$PACKAGE_PREFIX" >&6; }
5540PACKAGE_LOCALE_DIR="${PACKAGE_PREFIX}/${DATADIRNAME}/locale"
5541
5542cat >>confdefs.h <<_ACEOF
5543#define PACKAGE_LOCALE_DIR "$PACKAGE_LOCALE_DIR"
5544_ACEOF
5545
5546
5547
5548ac_ext=c
5549ac_cpp='$CPP $CPPFLAGS'
5550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552ac_compiler_gnu=$ac_cv_c_compiler_gnu
5553if test -n "$ac_tool_prefix"; then
5554  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5555set dummy ${ac_tool_prefix}gcc; ac_word=$2
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
5558if test "${ac_cv_prog_CC+set}" = set; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561  if test -n "$CC"; then
5562  ac_cv_prog_CC="$CC" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567  IFS=$as_save_IFS
5568  test -z "$as_dir" && as_dir=.
5569    for ac_exec_ext in '' $ac_executable_extensions; do
5570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573    break 2
5574  fi
5575done
5576  done
5577IFS=$as_save_IFS
5578
5579fi
5580fi
5581CC=$ac_cv_prog_CC
5582if test -n "$CC"; then
5583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5584$as_echo "$CC" >&6; }
5585else
5586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589
5590
5591fi
5592if test -z "$ac_cv_prog_CC"; then
5593  ac_ct_CC=$CC
5594  # Extract the first word of "gcc", so it can be a program name with args.
5595set dummy gcc; ac_word=$2
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597$as_echo_n "checking for $ac_word... " >&6; }
5598if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5599  $as_echo_n "(cached) " >&6
5600else
5601  if test -n "$ac_ct_CC"; then
5602  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607  IFS=$as_save_IFS
5608  test -z "$as_dir" && as_dir=.
5609    for ac_exec_ext in '' $ac_executable_extensions; do
5610  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5611    ac_cv_prog_ac_ct_CC="gcc"
5612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613    break 2
5614  fi
5615done
5616  done
5617IFS=$as_save_IFS
5618
5619fi
5620fi
5621ac_ct_CC=$ac_cv_prog_ac_ct_CC
5622if test -n "$ac_ct_CC"; then
5623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5624$as_echo "$ac_ct_CC" >&6; }
5625else
5626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }
5628fi
5629
5630  if test "x$ac_ct_CC" = x; then
5631    CC=""
5632  else
5633    case $cross_compiling:$ac_tool_warned in
5634yes:)
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5637ac_tool_warned=yes ;;
5638esac
5639    CC=$ac_ct_CC
5640  fi
5641else
5642  CC="$ac_cv_prog_CC"
5643fi
5644
5645if test -z "$CC"; then
5646          if test -n "$ac_tool_prefix"; then
5647    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5648set dummy ${ac_tool_prefix}cc; ac_word=$2
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650$as_echo_n "checking for $ac_word... " >&6; }
5651if test "${ac_cv_prog_CC+set}" = set; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  if test -n "$CC"; then
5655  ac_cv_prog_CC="$CC" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660  IFS=$as_save_IFS
5661  test -z "$as_dir" && as_dir=.
5662    for ac_exec_ext in '' $ac_executable_extensions; do
5663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664    ac_cv_prog_CC="${ac_tool_prefix}cc"
5665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666    break 2
5667  fi
5668done
5669  done
5670IFS=$as_save_IFS
5671
5672fi
5673fi
5674CC=$ac_cv_prog_CC
5675if test -n "$CC"; then
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5677$as_echo "$CC" >&6; }
5678else
5679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681fi
5682
5683
5684  fi
5685fi
5686if test -z "$CC"; then
5687  # Extract the first word of "cc", so it can be a program name with args.
5688set dummy cc; ac_word=$2
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690$as_echo_n "checking for $ac_word... " >&6; }
5691if test "${ac_cv_prog_CC+set}" = set; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694  if test -n "$CC"; then
5695  ac_cv_prog_CC="$CC" # Let the user override the test.
5696else
5697  ac_prog_rejected=no
5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH
5700do
5701  IFS=$as_save_IFS
5702  test -z "$as_dir" && as_dir=.
5703    for ac_exec_ext in '' $ac_executable_extensions; do
5704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5706       ac_prog_rejected=yes
5707       continue
5708     fi
5709    ac_cv_prog_CC="cc"
5710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711    break 2
5712  fi
5713done
5714  done
5715IFS=$as_save_IFS
5716
5717if test $ac_prog_rejected = yes; then
5718  # We found a bogon in the path, so make sure we never use it.
5719  set dummy $ac_cv_prog_CC
5720  shift
5721  if test $# != 0; then
5722    # We chose a different compiler from the bogus one.
5723    # However, it has the same basename, so the bogon will be chosen
5724    # first if we set CC to just the basename; use the full file name.
5725    shift
5726    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5727  fi
5728fi
5729fi
5730fi
5731CC=$ac_cv_prog_CC
5732if test -n "$CC"; then
5733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5734$as_echo "$CC" >&6; }
5735else
5736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737$as_echo "no" >&6; }
5738fi
5739
5740
5741fi
5742if test -z "$CC"; then
5743  if test -n "$ac_tool_prefix"; then
5744  for ac_prog in cl.exe
5745  do
5746    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749$as_echo_n "checking for $ac_word... " >&6; }
5750if test "${ac_cv_prog_CC+set}" = set; then :
5751  $as_echo_n "(cached) " >&6
5752else
5753  if test -n "$CC"; then
5754  ac_cv_prog_CC="$CC" # Let the user override the test.
5755else
5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759  IFS=$as_save_IFS
5760  test -z "$as_dir" && as_dir=.
5761    for ac_exec_ext in '' $ac_executable_extensions; do
5762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765    break 2
5766  fi
5767done
5768  done
5769IFS=$as_save_IFS
5770
5771fi
5772fi
5773CC=$ac_cv_prog_CC
5774if test -n "$CC"; then
5775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5776$as_echo "$CC" >&6; }
5777else
5778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779$as_echo "no" >&6; }
5780fi
5781
5782
5783    test -n "$CC" && break
5784  done
5785fi
5786if test -z "$CC"; then
5787  ac_ct_CC=$CC
5788  for ac_prog in cl.exe
5789do
5790  # Extract the first word of "$ac_prog", so it can be a program name with args.
5791set dummy $ac_prog; ac_word=$2
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793$as_echo_n "checking for $ac_word... " >&6; }
5794if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5795  $as_echo_n "(cached) " >&6
5796else
5797  if test -n "$ac_ct_CC"; then
5798  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803  IFS=$as_save_IFS
5804  test -z "$as_dir" && as_dir=.
5805    for ac_exec_ext in '' $ac_executable_extensions; do
5806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807    ac_cv_prog_ac_ct_CC="$ac_prog"
5808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809    break 2
5810  fi
5811done
5812  done
5813IFS=$as_save_IFS
5814
5815fi
5816fi
5817ac_ct_CC=$ac_cv_prog_ac_ct_CC
5818if test -n "$ac_ct_CC"; then
5819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5820$as_echo "$ac_ct_CC" >&6; }
5821else
5822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }
5824fi
5825
5826
5827  test -n "$ac_ct_CC" && break
5828done
5829
5830  if test "x$ac_ct_CC" = x; then
5831    CC=""
5832  else
5833    case $cross_compiling:$ac_tool_warned in
5834yes:)
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837ac_tool_warned=yes ;;
5838esac
5839    CC=$ac_ct_CC
5840  fi
5841fi
5842
5843fi
5844
5845
5846test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5848as_fn_error "no acceptable C compiler found in \$PATH
5849See \`config.log' for more details." "$LINENO" 5; }
5850
5851# Provide some information about the compiler.
5852$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5853set X $ac_compile
5854ac_compiler=$2
5855for ac_option in --version -v -V -qversion; do
5856  { { ac_try="$ac_compiler $ac_option >&5"
5857case "(($ac_try" in
5858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859  *) ac_try_echo=$ac_try;;
5860esac
5861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5862$as_echo "$ac_try_echo"; } >&5
5863  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5864  ac_status=$?
5865  if test -s conftest.err; then
5866    sed '10a\
5867... rest of stderr output deleted ...
5868         10q' conftest.err >conftest.er1
5869    cat conftest.er1 >&5
5870  fi
5871  rm -f conftest.er1 conftest.err
5872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5873  test $ac_status = 0; }
5874done
5875
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5877$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5878if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5879  $as_echo_n "(cached) " >&6
5880else
5881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882/* end confdefs.h.  */
5883
5884int
5885main ()
5886{
5887#ifndef __GNUC__
5888       choke me
5889#endif
5890
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895if ac_fn_c_try_compile "$LINENO"; then :
5896  ac_compiler_gnu=yes
5897else
5898  ac_compiler_gnu=no
5899fi
5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901ac_cv_c_compiler_gnu=$ac_compiler_gnu
5902
5903fi
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5905$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5906if test $ac_compiler_gnu = yes; then
5907  GCC=yes
5908else
5909  GCC=
5910fi
5911ac_test_CFLAGS=${CFLAGS+set}
5912ac_save_CFLAGS=$CFLAGS
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5914$as_echo_n "checking whether $CC accepts -g... " >&6; }
5915if test "${ac_cv_prog_cc_g+set}" = set; then :
5916  $as_echo_n "(cached) " >&6
5917else
5918  ac_save_c_werror_flag=$ac_c_werror_flag
5919   ac_c_werror_flag=yes
5920   ac_cv_prog_cc_g=no
5921   CFLAGS="-g"
5922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h.  */
5924
5925int
5926main ()
5927{
5928
5929  ;
5930  return 0;
5931}
5932_ACEOF
5933if ac_fn_c_try_compile "$LINENO"; then :
5934  ac_cv_prog_cc_g=yes
5935else
5936  CFLAGS=""
5937      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938/* end confdefs.h.  */
5939
5940int
5941main ()
5942{
5943
5944  ;
5945  return 0;
5946}
5947_ACEOF
5948if ac_fn_c_try_compile "$LINENO"; then :
5949
5950else
5951  ac_c_werror_flag=$ac_save_c_werror_flag
5952	 CFLAGS="-g"
5953	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h.  */
5955
5956int
5957main ()
5958{
5959
5960  ;
5961  return 0;
5962}
5963_ACEOF
5964if ac_fn_c_try_compile "$LINENO"; then :
5965  ac_cv_prog_cc_g=yes
5966fi
5967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968fi
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970fi
5971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972   ac_c_werror_flag=$ac_save_c_werror_flag
5973fi
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5975$as_echo "$ac_cv_prog_cc_g" >&6; }
5976if test "$ac_test_CFLAGS" = set; then
5977  CFLAGS=$ac_save_CFLAGS
5978elif test $ac_cv_prog_cc_g = yes; then
5979  if test "$GCC" = yes; then
5980    CFLAGS="-g -O2"
5981  else
5982    CFLAGS="-g"
5983  fi
5984else
5985  if test "$GCC" = yes; then
5986    CFLAGS="-O2"
5987  else
5988    CFLAGS=
5989  fi
5990fi
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5992$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5993if test "${ac_cv_prog_cc_c89+set}" = set; then :
5994  $as_echo_n "(cached) " >&6
5995else
5996  ac_cv_prog_cc_c89=no
5997ac_save_CC=$CC
5998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999/* end confdefs.h.  */
6000#include <stdarg.h>
6001#include <stdio.h>
6002#include <sys/types.h>
6003#include <sys/stat.h>
6004/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6005struct buf { int x; };
6006FILE * (*rcsopen) (struct buf *, struct stat *, int);
6007static char *e (p, i)
6008     char **p;
6009     int i;
6010{
6011  return p[i];
6012}
6013static char *f (char * (*g) (char **, int), char **p, ...)
6014{
6015  char *s;
6016  va_list v;
6017  va_start (v,p);
6018  s = g (p, va_arg (v,int));
6019  va_end (v);
6020  return s;
6021}
6022
6023/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6024   function prototypes and stuff, but not '\xHH' hex character constants.
6025   These don't provoke an error unfortunately, instead are silently treated
6026   as 'x'.  The following induces an error, until -std is added to get
6027   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6028   array size at least.  It's necessary to write '\x00'==0 to get something
6029   that's true only with -std.  */
6030int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6031
6032/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6033   inside strings and character constants.  */
6034#define FOO(x) 'x'
6035int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6036
6037int test (int i, double x);
6038struct s1 {int (*f) (int a);};
6039struct s2 {int (*f) (double a);};
6040int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6041int argc;
6042char **argv;
6043int
6044main ()
6045{
6046return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6047  ;
6048  return 0;
6049}
6050_ACEOF
6051for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6052	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6053do
6054  CC="$ac_save_CC $ac_arg"
6055  if ac_fn_c_try_compile "$LINENO"; then :
6056  ac_cv_prog_cc_c89=$ac_arg
6057fi
6058rm -f core conftest.err conftest.$ac_objext
6059  test "x$ac_cv_prog_cc_c89" != "xno" && break
6060done
6061rm -f conftest.$ac_ext
6062CC=$ac_save_CC
6063
6064fi
6065# AC_CACHE_VAL
6066case "x$ac_cv_prog_cc_c89" in
6067  x)
6068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6069$as_echo "none needed" >&6; } ;;
6070  xno)
6071    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6072$as_echo "unsupported" >&6; } ;;
6073  *)
6074    CC="$CC $ac_cv_prog_cc_c89"
6075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6076$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6077esac
6078if test "x$ac_cv_prog_cc_c89" != xno; then :
6079
6080fi
6081
6082ac_ext=c
6083ac_cpp='$CPP $CPPFLAGS'
6084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086ac_compiler_gnu=$ac_cv_c_compiler_gnu
6087
6088depcc="$CC"   am_compiler_list=
6089
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6091$as_echo_n "checking dependency style of $depcc... " >&6; }
6092if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6093  $as_echo_n "(cached) " >&6
6094else
6095  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6096  # We make a subdir and do the tests there.  Otherwise we can end up
6097  # making bogus files that we don't know about and never remove.  For
6098  # instance it was reported that on HP-UX the gcc test will end up
6099  # making a dummy file named `D' -- because `-MD' means `put the output
6100  # in D'.
6101  mkdir conftest.dir
6102  # Copy depcomp to subdir because otherwise we won't find it if we're
6103  # using a relative directory.
6104  cp "$am_depcomp" conftest.dir
6105  cd conftest.dir
6106  # We will build objects and dependencies in a subdirectory because
6107  # it helps to detect inapplicable dependency modes.  For instance
6108  # both Tru64's cc and ICC support -MD to output dependencies as a
6109  # side effect of compilation, but ICC will put the dependencies in
6110  # the current directory while Tru64 will put them in the object
6111  # directory.
6112  mkdir sub
6113
6114  am_cv_CC_dependencies_compiler_type=none
6115  if test "$am_compiler_list" = ""; then
6116     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6117  fi
6118  am__universal=false
6119  case " $depcc " in #(
6120     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6121     esac
6122
6123  for depmode in $am_compiler_list; do
6124    # Setup a source with many dependencies, because some compilers
6125    # like to wrap large dependency lists on column 80 (with \), and
6126    # we should not choose a depcomp mode which is confused by this.
6127    #
6128    # We need to recreate these files for each test, as the compiler may
6129    # overwrite some of them when testing with obscure command lines.
6130    # This happens at least with the AIX C compiler.
6131    : > sub/conftest.c
6132    for i in 1 2 3 4 5 6; do
6133      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6134      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6135      # Solaris 8's {/usr,}/bin/sh.
6136      touch sub/conftst$i.h
6137    done
6138    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6139
6140    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6141    # mode.  It turns out that the SunPro C++ compiler does not properly
6142    # handle `-M -o', and we need to detect this.  Also, some Intel
6143    # versions had trouble with output in subdirs
6144    am__obj=sub/conftest.${OBJEXT-o}
6145    am__minus_obj="-o $am__obj"
6146    case $depmode in
6147    gcc)
6148      # This depmode causes a compiler race in universal mode.
6149      test "$am__universal" = false || continue
6150      ;;
6151    nosideeffect)
6152      # after this tag, mechanisms are not by side-effect, so they'll
6153      # only be used when explicitly requested
6154      if test "x$enable_dependency_tracking" = xyes; then
6155	continue
6156      else
6157	break
6158      fi
6159      ;;
6160    msvisualcpp | msvcmsys)
6161      # This compiler won't grok `-c -o', but also, the minuso test has
6162      # not run yet.  These depmodes are late enough in the game, and
6163      # so weak that their functioning should not be impacted.
6164      am__obj=conftest.${OBJEXT-o}
6165      am__minus_obj=
6166      ;;
6167    none) break ;;
6168    esac
6169    if depmode=$depmode \
6170       source=sub/conftest.c object=$am__obj \
6171       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6172       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6173         >/dev/null 2>conftest.err &&
6174       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6175       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6176       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6177       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6178      # icc doesn't choke on unknown options, it will just issue warnings
6179      # or remarks (even with -Werror).  So we grep stderr for any message
6180      # that says an option was ignored or not supported.
6181      # When given -MP, icc 7.0 and 7.1 complain thusly:
6182      #   icc: Command line warning: ignoring option '-M'; no argument required
6183      # The diagnosis changed in icc 8.0:
6184      #   icc: Command line remark: option '-MP' not supported
6185      if (grep 'ignoring option' conftest.err ||
6186          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6187        am_cv_CC_dependencies_compiler_type=$depmode
6188        break
6189      fi
6190    fi
6191  done
6192
6193  cd ..
6194  rm -rf conftest.dir
6195else
6196  am_cv_CC_dependencies_compiler_type=none
6197fi
6198
6199fi
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6201$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6202CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6203
6204 if
6205  test "x$enable_dependency_tracking" != xno \
6206  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6207  am__fastdepCC_TRUE=
6208  am__fastdepCC_FALSE='#'
6209else
6210  am__fastdepCC_TRUE='#'
6211  am__fastdepCC_FALSE=
6212fi
6213
6214
6215# Check whether --enable-static was given.
6216if test "${enable_static+set}" = set; then :
6217  enableval=$enable_static; p=${PACKAGE-default}
6218    case $enableval in
6219    yes) enable_static=yes ;;
6220    no) enable_static=no ;;
6221    *)
6222     enable_static=no
6223      # Look at the argument we got.  We use all the common list separators.
6224      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6225      for pkg in $enableval; do
6226	IFS="$lt_save_ifs"
6227	if test "X$pkg" = "X$p"; then
6228	  enable_static=yes
6229	fi
6230      done
6231      IFS="$lt_save_ifs"
6232      ;;
6233    esac
6234else
6235  enable_static=no
6236fi
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246enable_dlopen=yes
6247
6248
6249
6250case `pwd` in
6251  *\ * | *\	*)
6252    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6253$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6254esac
6255
6256
6257
6258macro_version='2.2.6b'
6259macro_revision='1.3017'
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273ltmain="$ac_aux_dir/ltmain.sh"
6274
6275# Make sure we can run config.sub.
6276$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6277  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6278
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6280$as_echo_n "checking build system type... " >&6; }
6281if test "${ac_cv_build+set}" = set; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  ac_build_alias=$build_alias
6285test "x$ac_build_alias" = x &&
6286  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6287test "x$ac_build_alias" = x &&
6288  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6289ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6290  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6291
6292fi
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6294$as_echo "$ac_cv_build" >&6; }
6295case $ac_cv_build in
6296*-*-*) ;;
6297*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6298esac
6299build=$ac_cv_build
6300ac_save_IFS=$IFS; IFS='-'
6301set x $ac_cv_build
6302shift
6303build_cpu=$1
6304build_vendor=$2
6305shift; shift
6306# Remember, the first character of IFS is used to create $*,
6307# except with old shells:
6308build_os=$*
6309IFS=$ac_save_IFS
6310case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6311
6312
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6314$as_echo_n "checking host system type... " >&6; }
6315if test "${ac_cv_host+set}" = set; then :
6316  $as_echo_n "(cached) " >&6
6317else
6318  if test "x$host_alias" = x; then
6319  ac_cv_host=$ac_cv_build
6320else
6321  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6322    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6323fi
6324
6325fi
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6327$as_echo "$ac_cv_host" >&6; }
6328case $ac_cv_host in
6329*-*-*) ;;
6330*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6331esac
6332host=$ac_cv_host
6333ac_save_IFS=$IFS; IFS='-'
6334set x $ac_cv_host
6335shift
6336host_cpu=$1
6337host_vendor=$2
6338shift; shift
6339# Remember, the first character of IFS is used to create $*,
6340# except with old shells:
6341host_os=$*
6342IFS=$ac_save_IFS
6343case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6344
6345
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6347$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6348if test "${ac_cv_path_SED+set}" = set; then :
6349  $as_echo_n "(cached) " >&6
6350else
6351            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6352     for ac_i in 1 2 3 4 5 6 7; do
6353       ac_script="$ac_script$as_nl$ac_script"
6354     done
6355     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6356     { ac_script=; unset ac_script;}
6357     if test -z "$SED"; then
6358  ac_path_SED_found=false
6359  # Loop through the user's path and test for each of PROGNAME-LIST
6360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363  IFS=$as_save_IFS
6364  test -z "$as_dir" && as_dir=.
6365    for ac_prog in sed gsed; do
6366    for ac_exec_ext in '' $ac_executable_extensions; do
6367      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6368      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6369# Check for GNU ac_path_SED and select it if it is found.
6370  # Check for GNU $ac_path_SED
6371case `"$ac_path_SED" --version 2>&1` in
6372*GNU*)
6373  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6374*)
6375  ac_count=0
6376  $as_echo_n 0123456789 >"conftest.in"
6377  while :
6378  do
6379    cat "conftest.in" "conftest.in" >"conftest.tmp"
6380    mv "conftest.tmp" "conftest.in"
6381    cp "conftest.in" "conftest.nl"
6382    $as_echo '' >> "conftest.nl"
6383    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6384    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6385    as_fn_arith $ac_count + 1 && ac_count=$as_val
6386    if test $ac_count -gt ${ac_path_SED_max-0}; then
6387      # Best one so far, save it but keep looking for a better one
6388      ac_cv_path_SED="$ac_path_SED"
6389      ac_path_SED_max=$ac_count
6390    fi
6391    # 10*(2^10) chars as input seems more than enough
6392    test $ac_count -gt 10 && break
6393  done
6394  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6395esac
6396
6397      $ac_path_SED_found && break 3
6398    done
6399  done
6400  done
6401IFS=$as_save_IFS
6402  if test -z "$ac_cv_path_SED"; then
6403    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6404  fi
6405else
6406  ac_cv_path_SED=$SED
6407fi
6408
6409fi
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6411$as_echo "$ac_cv_path_SED" >&6; }
6412 SED="$ac_cv_path_SED"
6413  rm -f conftest.sed
6414
6415test -z "$SED" && SED=sed
6416Xsed="$SED -e 1s/^X//"
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6429$as_echo_n "checking for fgrep... " >&6; }
6430if test "${ac_cv_path_FGREP+set}" = set; then :
6431  $as_echo_n "(cached) " >&6
6432else
6433  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6434   then ac_cv_path_FGREP="$GREP -F"
6435   else
6436     if test -z "$FGREP"; then
6437  ac_path_FGREP_found=false
6438  # Loop through the user's path and test for each of PROGNAME-LIST
6439  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6441do
6442  IFS=$as_save_IFS
6443  test -z "$as_dir" && as_dir=.
6444    for ac_prog in fgrep; do
6445    for ac_exec_ext in '' $ac_executable_extensions; do
6446      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6447      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6448# Check for GNU ac_path_FGREP and select it if it is found.
6449  # Check for GNU $ac_path_FGREP
6450case `"$ac_path_FGREP" --version 2>&1` in
6451*GNU*)
6452  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6453*)
6454  ac_count=0
6455  $as_echo_n 0123456789 >"conftest.in"
6456  while :
6457  do
6458    cat "conftest.in" "conftest.in" >"conftest.tmp"
6459    mv "conftest.tmp" "conftest.in"
6460    cp "conftest.in" "conftest.nl"
6461    $as_echo 'FGREP' >> "conftest.nl"
6462    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6463    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6464    as_fn_arith $ac_count + 1 && ac_count=$as_val
6465    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6466      # Best one so far, save it but keep looking for a better one
6467      ac_cv_path_FGREP="$ac_path_FGREP"
6468      ac_path_FGREP_max=$ac_count
6469    fi
6470    # 10*(2^10) chars as input seems more than enough
6471    test $ac_count -gt 10 && break
6472  done
6473  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6474esac
6475
6476      $ac_path_FGREP_found && break 3
6477    done
6478  done
6479  done
6480IFS=$as_save_IFS
6481  if test -z "$ac_cv_path_FGREP"; then
6482    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6483  fi
6484else
6485  ac_cv_path_FGREP=$FGREP
6486fi
6487
6488   fi
6489fi
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6491$as_echo "$ac_cv_path_FGREP" >&6; }
6492 FGREP="$ac_cv_path_FGREP"
6493
6494
6495test -z "$GREP" && GREP=grep
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515# Check whether --with-gnu-ld was given.
6516if test "${with_gnu_ld+set}" = set; then :
6517  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6518else
6519  with_gnu_ld=no
6520fi
6521
6522ac_prog=ld
6523if test "$GCC" = yes; then
6524  # Check if gcc -print-prog-name=ld gives a path.
6525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6526$as_echo_n "checking for ld used by $CC... " >&6; }
6527  case $host in
6528  *-*-mingw*)
6529    # gcc leaves a trailing carriage return which upsets mingw
6530    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6531  *)
6532    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6533  esac
6534  case $ac_prog in
6535    # Accept absolute paths.
6536    [\\/]* | ?:[\\/]*)
6537      re_direlt='/[^/][^/]*/\.\./'
6538      # Canonicalize the pathname of ld
6539      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6540      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6541	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6542      done
6543      test -z "$LD" && LD="$ac_prog"
6544      ;;
6545  "")
6546    # If it fails, then pretend we aren't using GCC.
6547    ac_prog=ld
6548    ;;
6549  *)
6550    # If it is relative, then search for the first ld in PATH.
6551    with_gnu_ld=unknown
6552    ;;
6553  esac
6554elif test "$with_gnu_ld" = yes; then
6555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6556$as_echo_n "checking for GNU ld... " >&6; }
6557else
6558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6559$as_echo_n "checking for non-GNU ld... " >&6; }
6560fi
6561if test "${lt_cv_path_LD+set}" = set; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  if test -z "$LD"; then
6565  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6566  for ac_dir in $PATH; do
6567    IFS="$lt_save_ifs"
6568    test -z "$ac_dir" && ac_dir=.
6569    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6570      lt_cv_path_LD="$ac_dir/$ac_prog"
6571      # Check to see if the program is GNU ld.  I'd rather use --version,
6572      # but apparently some variants of GNU ld only accept -v.
6573      # Break only if it was the GNU/non-GNU ld that we prefer.
6574      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6575      *GNU* | *'with BFD'*)
6576	test "$with_gnu_ld" != no && break
6577	;;
6578      *)
6579	test "$with_gnu_ld" != yes && break
6580	;;
6581      esac
6582    fi
6583  done
6584  IFS="$lt_save_ifs"
6585else
6586  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6587fi
6588fi
6589
6590LD="$lt_cv_path_LD"
6591if test -n "$LD"; then
6592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6593$as_echo "$LD" >&6; }
6594else
6595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596$as_echo "no" >&6; }
6597fi
6598test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6600$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6601if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6602  $as_echo_n "(cached) " >&6
6603else
6604  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6605case `$LD -v 2>&1 </dev/null` in
6606*GNU* | *'with BFD'*)
6607  lt_cv_prog_gnu_ld=yes
6608  ;;
6609*)
6610  lt_cv_prog_gnu_ld=no
6611  ;;
6612esac
6613fi
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6615$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6616with_gnu_ld=$lt_cv_prog_gnu_ld
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6627$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6628if test "${lt_cv_path_NM+set}" = set; then :
6629  $as_echo_n "(cached) " >&6
6630else
6631  if test -n "$NM"; then
6632  # Let the user override the test.
6633  lt_cv_path_NM="$NM"
6634else
6635  lt_nm_to_check="${ac_tool_prefix}nm"
6636  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6637    lt_nm_to_check="$lt_nm_to_check nm"
6638  fi
6639  for lt_tmp_nm in $lt_nm_to_check; do
6640    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6641    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6642      IFS="$lt_save_ifs"
6643      test -z "$ac_dir" && ac_dir=.
6644      tmp_nm="$ac_dir/$lt_tmp_nm"
6645      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6646	# Check to see if the nm accepts a BSD-compat flag.
6647	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6648	#   nm: unknown option "B" ignored
6649	# Tru64's nm complains that /dev/null is an invalid object file
6650	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6651	*/dev/null* | *'Invalid file or object type'*)
6652	  lt_cv_path_NM="$tmp_nm -B"
6653	  break
6654	  ;;
6655	*)
6656	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6657	  */dev/null*)
6658	    lt_cv_path_NM="$tmp_nm -p"
6659	    break
6660	    ;;
6661	  *)
6662	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6663	    continue # so that we can try to find one that supports BSD flags
6664	    ;;
6665	  esac
6666	  ;;
6667	esac
6668      fi
6669    done
6670    IFS="$lt_save_ifs"
6671  done
6672  : ${lt_cv_path_NM=no}
6673fi
6674fi
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6676$as_echo "$lt_cv_path_NM" >&6; }
6677if test "$lt_cv_path_NM" != "no"; then
6678  NM="$lt_cv_path_NM"
6679else
6680  # Didn't find any BSD compatible name lister, look for dumpbin.
6681  if test -n "$ac_tool_prefix"; then
6682  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6683  do
6684    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6685set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687$as_echo_n "checking for $ac_word... " >&6; }
6688if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6689  $as_echo_n "(cached) " >&6
6690else
6691  if test -n "$DUMPBIN"; then
6692  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6693else
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697  IFS=$as_save_IFS
6698  test -z "$as_dir" && as_dir=.
6699    for ac_exec_ext in '' $ac_executable_extensions; do
6700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6701    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703    break 2
6704  fi
6705done
6706  done
6707IFS=$as_save_IFS
6708
6709fi
6710fi
6711DUMPBIN=$ac_cv_prog_DUMPBIN
6712if test -n "$DUMPBIN"; then
6713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6714$as_echo "$DUMPBIN" >&6; }
6715else
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717$as_echo "no" >&6; }
6718fi
6719
6720
6721    test -n "$DUMPBIN" && break
6722  done
6723fi
6724if test -z "$DUMPBIN"; then
6725  ac_ct_DUMPBIN=$DUMPBIN
6726  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6727do
6728  # Extract the first word of "$ac_prog", so it can be a program name with args.
6729set dummy $ac_prog; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  if test -n "$ac_ct_DUMPBIN"; then
6736  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741  IFS=$as_save_IFS
6742  test -z "$as_dir" && as_dir=.
6743    for ac_exec_ext in '' $ac_executable_extensions; do
6744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750  done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6756if test -n "$ac_ct_DUMPBIN"; then
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6758$as_echo "$ac_ct_DUMPBIN" >&6; }
6759else
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764
6765  test -n "$ac_ct_DUMPBIN" && break
6766done
6767
6768  if test "x$ac_ct_DUMPBIN" = x; then
6769    DUMPBIN=":"
6770  else
6771    case $cross_compiling:$ac_tool_warned in
6772yes:)
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775ac_tool_warned=yes ;;
6776esac
6777    DUMPBIN=$ac_ct_DUMPBIN
6778  fi
6779fi
6780
6781
6782  if test "$DUMPBIN" != ":"; then
6783    NM="$DUMPBIN"
6784  fi
6785fi
6786test -z "$NM" && NM=nm
6787
6788
6789
6790
6791
6792
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6794$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6795if test "${lt_cv_nm_interface+set}" = set; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  lt_cv_nm_interface="BSD nm"
6799  echo "int some_variable = 0;" > conftest.$ac_ext
6800  (eval echo "\"\$as_me:6800: $ac_compile\"" >&5)
6801  (eval "$ac_compile" 2>conftest.err)
6802  cat conftest.err >&5
6803  (eval echo "\"\$as_me:6803: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6804  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6805  cat conftest.err >&5
6806  (eval echo "\"\$as_me:6806: output\"" >&5)
6807  cat conftest.out >&5
6808  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6809    lt_cv_nm_interface="MS dumpbin"
6810  fi
6811  rm -f conftest*
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6814$as_echo "$lt_cv_nm_interface" >&6; }
6815
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6817$as_echo_n "checking whether ln -s works... " >&6; }
6818LN_S=$as_ln_s
6819if test "$LN_S" = "ln -s"; then
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6821$as_echo "yes" >&6; }
6822else
6823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6824$as_echo "no, using $LN_S" >&6; }
6825fi
6826
6827# find the maximum length of command line arguments
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6829$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6830if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6831  $as_echo_n "(cached) " >&6
6832else
6833    i=0
6834  teststring="ABCD"
6835
6836  case $build_os in
6837  msdosdjgpp*)
6838    # On DJGPP, this test can blow up pretty badly due to problems in libc
6839    # (any single argument exceeding 2000 bytes causes a buffer overrun
6840    # during glob expansion).  Even if it were fixed, the result of this
6841    # check would be larger than it should be.
6842    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6843    ;;
6844
6845  gnu*)
6846    # Under GNU Hurd, this test is not required because there is
6847    # no limit to the length of command line arguments.
6848    # Libtool will interpret -1 as no limit whatsoever
6849    lt_cv_sys_max_cmd_len=-1;
6850    ;;
6851
6852  cygwin* | mingw* | cegcc*)
6853    # On Win9x/ME, this test blows up -- it succeeds, but takes
6854    # about 5 minutes as the teststring grows exponentially.
6855    # Worse, since 9x/ME are not pre-emptively multitasking,
6856    # you end up with a "frozen" computer, even though with patience
6857    # the test eventually succeeds (with a max line length of 256k).
6858    # Instead, let's just punt: use the minimum linelength reported by
6859    # all of the supported platforms: 8192 (on NT/2K/XP).
6860    lt_cv_sys_max_cmd_len=8192;
6861    ;;
6862
6863  amigaos*)
6864    # On AmigaOS with pdksh, this test takes hours, literally.
6865    # So we just punt and use a minimum line length of 8192.
6866    lt_cv_sys_max_cmd_len=8192;
6867    ;;
6868
6869  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6870    # This has been around since 386BSD, at least.  Likely further.
6871    if test -x /sbin/sysctl; then
6872      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6873    elif test -x /usr/sbin/sysctl; then
6874      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6875    else
6876      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6877    fi
6878    # And add a safety zone
6879    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6880    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6881    ;;
6882
6883  interix*)
6884    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6885    lt_cv_sys_max_cmd_len=196608
6886    ;;
6887
6888  osf*)
6889    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6890    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6891    # nice to cause kernel panics so lets avoid the loop below.
6892    # First set a reasonable default.
6893    lt_cv_sys_max_cmd_len=16384
6894    #
6895    if test -x /sbin/sysconfig; then
6896      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6897        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6898      esac
6899    fi
6900    ;;
6901  sco3.2v5*)
6902    lt_cv_sys_max_cmd_len=102400
6903    ;;
6904  sysv5* | sco5v6* | sysv4.2uw2*)
6905    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6906    if test -n "$kargmax"; then
6907      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6908    else
6909      lt_cv_sys_max_cmd_len=32768
6910    fi
6911    ;;
6912  *)
6913    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6914    if test -n "$lt_cv_sys_max_cmd_len"; then
6915      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6916      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6917    else
6918      # Make teststring a little bigger before we do anything with it.
6919      # a 1K string should be a reasonable start.
6920      for i in 1 2 3 4 5 6 7 8 ; do
6921        teststring=$teststring$teststring
6922      done
6923      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6924      # If test is not a shell built-in, we'll probably end up computing a
6925      # maximum length that is only half of the actual maximum length, but
6926      # we can't tell.
6927      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6928	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6929	      test $i != 17 # 1/2 MB should be enough
6930      do
6931        i=`expr $i + 1`
6932        teststring=$teststring$teststring
6933      done
6934      # Only check the string length outside the loop.
6935      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6936      teststring=
6937      # Add a significant safety factor because C++ compilers can tack on
6938      # massive amounts of additional arguments before passing them to the
6939      # linker.  It appears as though 1/2 is a usable value.
6940      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6941    fi
6942    ;;
6943  esac
6944
6945fi
6946
6947if test -n $lt_cv_sys_max_cmd_len ; then
6948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6949$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6950else
6951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6952$as_echo "none" >&6; }
6953fi
6954max_cmd_len=$lt_cv_sys_max_cmd_len
6955
6956
6957
6958
6959
6960
6961: ${CP="cp -f"}
6962: ${MV="mv -f"}
6963: ${RM="rm -f"}
6964
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6966$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6967# Try some XSI features
6968xsi_shell=no
6969( _lt_dummy="a/b/c"
6970  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6971      = c,a/b,, \
6972    && eval 'test $(( 1 + 1 )) -eq 2 \
6973    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6974  && xsi_shell=yes
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6976$as_echo "$xsi_shell" >&6; }
6977
6978
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6980$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6981lt_shell_append=no
6982( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6983    >/dev/null 2>&1 \
6984  && lt_shell_append=yes
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6986$as_echo "$lt_shell_append" >&6; }
6987
6988
6989if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6990  lt_unset=unset
6991else
6992  lt_unset=false
6993fi
6994
6995
6996
6997
6998
6999# test EBCDIC or ASCII
7000case `echo X|tr X '\101'` in
7001 A) # ASCII based system
7002    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7003  lt_SP2NL='tr \040 \012'
7004  lt_NL2SP='tr \015\012 \040\040'
7005  ;;
7006 *) # EBCDIC based system
7007  lt_SP2NL='tr \100 \n'
7008  lt_NL2SP='tr \r\n \100\100'
7009  ;;
7010esac
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7021$as_echo_n "checking for $LD option to reload object files... " >&6; }
7022if test "${lt_cv_ld_reload_flag+set}" = set; then :
7023  $as_echo_n "(cached) " >&6
7024else
7025  lt_cv_ld_reload_flag='-r'
7026fi
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7028$as_echo "$lt_cv_ld_reload_flag" >&6; }
7029reload_flag=$lt_cv_ld_reload_flag
7030case $reload_flag in
7031"" | " "*) ;;
7032*) reload_flag=" $reload_flag" ;;
7033esac
7034reload_cmds='$LD$reload_flag -o $output$reload_objs'
7035case $host_os in
7036  darwin*)
7037    if test "$GCC" = yes; then
7038      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7039    else
7040      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7041    fi
7042    ;;
7043esac
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053if test -n "$ac_tool_prefix"; then
7054  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7055set dummy ${ac_tool_prefix}objdump; ac_word=$2
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057$as_echo_n "checking for $ac_word... " >&6; }
7058if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7059  $as_echo_n "(cached) " >&6
7060else
7061  if test -n "$OBJDUMP"; then
7062  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7063else
7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067  IFS=$as_save_IFS
7068  test -z "$as_dir" && as_dir=.
7069    for ac_exec_ext in '' $ac_executable_extensions; do
7070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073    break 2
7074  fi
7075done
7076  done
7077IFS=$as_save_IFS
7078
7079fi
7080fi
7081OBJDUMP=$ac_cv_prog_OBJDUMP
7082if test -n "$OBJDUMP"; then
7083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7084$as_echo "$OBJDUMP" >&6; }
7085else
7086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087$as_echo "no" >&6; }
7088fi
7089
7090
7091fi
7092if test -z "$ac_cv_prog_OBJDUMP"; then
7093  ac_ct_OBJDUMP=$OBJDUMP
7094  # Extract the first word of "objdump", so it can be a program name with args.
7095set dummy objdump; ac_word=$2
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
7098if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7099  $as_echo_n "(cached) " >&6
7100else
7101  if test -n "$ac_ct_OBJDUMP"; then
7102  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107  IFS=$as_save_IFS
7108  test -z "$as_dir" && as_dir=.
7109    for ac_exec_ext in '' $ac_executable_extensions; do
7110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113    break 2
7114  fi
7115done
7116  done
7117IFS=$as_save_IFS
7118
7119fi
7120fi
7121ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7122if test -n "$ac_ct_OBJDUMP"; then
7123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7124$as_echo "$ac_ct_OBJDUMP" >&6; }
7125else
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
7128fi
7129
7130  if test "x$ac_ct_OBJDUMP" = x; then
7131    OBJDUMP="false"
7132  else
7133    case $cross_compiling:$ac_tool_warned in
7134yes:)
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137ac_tool_warned=yes ;;
7138esac
7139    OBJDUMP=$ac_ct_OBJDUMP
7140  fi
7141else
7142  OBJDUMP="$ac_cv_prog_OBJDUMP"
7143fi
7144
7145test -z "$OBJDUMP" && OBJDUMP=objdump
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7156$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7157if test "${lt_cv_deplibs_check_method+set}" = set; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  lt_cv_file_magic_cmd='$MAGIC_CMD'
7161lt_cv_file_magic_test_file=
7162lt_cv_deplibs_check_method='unknown'
7163# Need to set the preceding variable on all platforms that support
7164# interlibrary dependencies.
7165# 'none' -- dependencies not supported.
7166# `unknown' -- same as none, but documents that we really don't know.
7167# 'pass_all' -- all dependencies passed with no checks.
7168# 'test_compile' -- check by making test program.
7169# 'file_magic [[regex]]' -- check by looking for files in library path
7170# which responds to the $file_magic_cmd with a given extended regex.
7171# If you have `file' or equivalent on your system and you're not sure
7172# whether `pass_all' will *always* work, you probably want this one.
7173
7174case $host_os in
7175aix[4-9]*)
7176  lt_cv_deplibs_check_method=pass_all
7177  ;;
7178
7179beos*)
7180  lt_cv_deplibs_check_method=pass_all
7181  ;;
7182
7183bsdi[45]*)
7184  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7185  lt_cv_file_magic_cmd='/usr/bin/file -L'
7186  lt_cv_file_magic_test_file=/shlib/libc.so
7187  ;;
7188
7189cygwin*)
7190  # func_win32_libid is a shell function defined in ltmain.sh
7191  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7192  lt_cv_file_magic_cmd='func_win32_libid'
7193  ;;
7194
7195mingw* | pw32*)
7196  # Base MSYS/MinGW do not provide the 'file' command needed by
7197  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7198  # unless we find 'file', for example because we are cross-compiling.
7199  if ( file / ) >/dev/null 2>&1; then
7200    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7201    lt_cv_file_magic_cmd='func_win32_libid'
7202  else
7203    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7204    lt_cv_file_magic_cmd='$OBJDUMP -f'
7205  fi
7206  ;;
7207
7208cegcc)
7209  # use the weaker test based on 'objdump'. See mingw*.
7210  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7211  lt_cv_file_magic_cmd='$OBJDUMP -f'
7212  ;;
7213
7214darwin* | rhapsody*)
7215  lt_cv_deplibs_check_method=pass_all
7216  ;;
7217
7218freebsd* | dragonfly*)
7219  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7220    case $host_cpu in
7221    i*86 )
7222      # Not sure whether the presence of OpenBSD here was a mistake.
7223      # Let's accept both of them until this is cleared up.
7224      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7225      lt_cv_file_magic_cmd=/usr/bin/file
7226      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7227      ;;
7228    esac
7229  else
7230    lt_cv_deplibs_check_method=pass_all
7231  fi
7232  ;;
7233
7234gnu*)
7235  lt_cv_deplibs_check_method=pass_all
7236  ;;
7237
7238hpux10.20* | hpux11*)
7239  lt_cv_file_magic_cmd=/usr/bin/file
7240  case $host_cpu in
7241  ia64*)
7242    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7243    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7244    ;;
7245  hppa*64*)
7246    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]'
7247    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7248    ;;
7249  *)
7250    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7251    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7252    ;;
7253  esac
7254  ;;
7255
7256interix[3-9]*)
7257  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7258  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7259  ;;
7260
7261irix5* | irix6* | nonstopux*)
7262  case $LD in
7263  *-32|*"-32 ") libmagic=32-bit;;
7264  *-n32|*"-n32 ") libmagic=N32;;
7265  *-64|*"-64 ") libmagic=64-bit;;
7266  *) libmagic=never-match;;
7267  esac
7268  lt_cv_deplibs_check_method=pass_all
7269  ;;
7270
7271# This must be Linux ELF.
7272linux* | k*bsd*-gnu | kopensolaris*-gnu)
7273  lt_cv_deplibs_check_method=pass_all
7274  ;;
7275
7276netbsd* | netbsdelf*-gnu)
7277  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7278    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7279  else
7280    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7281  fi
7282  ;;
7283
7284newos6*)
7285  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7286  lt_cv_file_magic_cmd=/usr/bin/file
7287  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7288  ;;
7289
7290*nto* | *qnx*)
7291  lt_cv_deplibs_check_method=pass_all
7292  ;;
7293
7294openbsd*)
7295  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7296    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7297  else
7298    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7299  fi
7300  ;;
7301
7302osf3* | osf4* | osf5*)
7303  lt_cv_deplibs_check_method=pass_all
7304  ;;
7305
7306rdos*)
7307  lt_cv_deplibs_check_method=pass_all
7308  ;;
7309
7310solaris*)
7311  lt_cv_deplibs_check_method=pass_all
7312  ;;
7313
7314sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7315  lt_cv_deplibs_check_method=pass_all
7316  ;;
7317
7318sysv4 | sysv4.3*)
7319  case $host_vendor in
7320  motorola)
7321    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]'
7322    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7323    ;;
7324  ncr)
7325    lt_cv_deplibs_check_method=pass_all
7326    ;;
7327  sequent)
7328    lt_cv_file_magic_cmd='/bin/file'
7329    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7330    ;;
7331  sni)
7332    lt_cv_file_magic_cmd='/bin/file'
7333    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7334    lt_cv_file_magic_test_file=/lib/libc.so
7335    ;;
7336  siemens)
7337    lt_cv_deplibs_check_method=pass_all
7338    ;;
7339  pc)
7340    lt_cv_deplibs_check_method=pass_all
7341    ;;
7342  esac
7343  ;;
7344
7345tpf*)
7346  lt_cv_deplibs_check_method=pass_all
7347  ;;
7348esac
7349
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7352$as_echo "$lt_cv_deplibs_check_method" >&6; }
7353file_magic_cmd=$lt_cv_file_magic_cmd
7354deplibs_check_method=$lt_cv_deplibs_check_method
7355test -z "$deplibs_check_method" && deplibs_check_method=unknown
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368if test -n "$ac_tool_prefix"; then
7369  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7370set dummy ${ac_tool_prefix}ar; ac_word=$2
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372$as_echo_n "checking for $ac_word... " >&6; }
7373if test "${ac_cv_prog_AR+set}" = set; then :
7374  $as_echo_n "(cached) " >&6
7375else
7376  if test -n "$AR"; then
7377  ac_cv_prog_AR="$AR" # Let the user override the test.
7378else
7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH
7381do
7382  IFS=$as_save_IFS
7383  test -z "$as_dir" && as_dir=.
7384    for ac_exec_ext in '' $ac_executable_extensions; do
7385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386    ac_cv_prog_AR="${ac_tool_prefix}ar"
7387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388    break 2
7389  fi
7390done
7391  done
7392IFS=$as_save_IFS
7393
7394fi
7395fi
7396AR=$ac_cv_prog_AR
7397if test -n "$AR"; then
7398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7399$as_echo "$AR" >&6; }
7400else
7401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402$as_echo "no" >&6; }
7403fi
7404
7405
7406fi
7407if test -z "$ac_cv_prog_AR"; then
7408  ac_ct_AR=$AR
7409  # Extract the first word of "ar", so it can be a program name with args.
7410set dummy ar; ac_word=$2
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412$as_echo_n "checking for $ac_word... " >&6; }
7413if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7414  $as_echo_n "(cached) " >&6
7415else
7416  if test -n "$ac_ct_AR"; then
7417  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7418else
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422  IFS=$as_save_IFS
7423  test -z "$as_dir" && as_dir=.
7424    for ac_exec_ext in '' $ac_executable_extensions; do
7425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426    ac_cv_prog_ac_ct_AR="ar"
7427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428    break 2
7429  fi
7430done
7431  done
7432IFS=$as_save_IFS
7433
7434fi
7435fi
7436ac_ct_AR=$ac_cv_prog_ac_ct_AR
7437if test -n "$ac_ct_AR"; then
7438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7439$as_echo "$ac_ct_AR" >&6; }
7440else
7441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442$as_echo "no" >&6; }
7443fi
7444
7445  if test "x$ac_ct_AR" = x; then
7446    AR="false"
7447  else
7448    case $cross_compiling:$ac_tool_warned in
7449yes:)
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452ac_tool_warned=yes ;;
7453esac
7454    AR=$ac_ct_AR
7455  fi
7456else
7457  AR="$ac_cv_prog_AR"
7458fi
7459
7460test -z "$AR" && AR=ar
7461test -z "$AR_FLAGS" && AR_FLAGS=cru
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473if test -n "$ac_tool_prefix"; then
7474  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7475set dummy ${ac_tool_prefix}strip; ac_word=$2
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477$as_echo_n "checking for $ac_word... " >&6; }
7478if test "${ac_cv_prog_STRIP+set}" = set; then :
7479  $as_echo_n "(cached) " >&6
7480else
7481  if test -n "$STRIP"; then
7482  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7483else
7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH
7486do
7487  IFS=$as_save_IFS
7488  test -z "$as_dir" && as_dir=.
7489    for ac_exec_ext in '' $ac_executable_extensions; do
7490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493    break 2
7494  fi
7495done
7496  done
7497IFS=$as_save_IFS
7498
7499fi
7500fi
7501STRIP=$ac_cv_prog_STRIP
7502if test -n "$STRIP"; then
7503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7504$as_echo "$STRIP" >&6; }
7505else
7506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507$as_echo "no" >&6; }
7508fi
7509
7510
7511fi
7512if test -z "$ac_cv_prog_STRIP"; then
7513  ac_ct_STRIP=$STRIP
7514  # Extract the first word of "strip", so it can be a program name with args.
7515set dummy strip; ac_word=$2
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517$as_echo_n "checking for $ac_word... " >&6; }
7518if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7519  $as_echo_n "(cached) " >&6
7520else
7521  if test -n "$ac_ct_STRIP"; then
7522  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527  IFS=$as_save_IFS
7528  test -z "$as_dir" && as_dir=.
7529    for ac_exec_ext in '' $ac_executable_extensions; do
7530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531    ac_cv_prog_ac_ct_STRIP="strip"
7532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533    break 2
7534  fi
7535done
7536  done
7537IFS=$as_save_IFS
7538
7539fi
7540fi
7541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7542if test -n "$ac_ct_STRIP"; then
7543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7544$as_echo "$ac_ct_STRIP" >&6; }
7545else
7546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547$as_echo "no" >&6; }
7548fi
7549
7550  if test "x$ac_ct_STRIP" = x; then
7551    STRIP=":"
7552  else
7553    case $cross_compiling:$ac_tool_warned in
7554yes:)
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557ac_tool_warned=yes ;;
7558esac
7559    STRIP=$ac_ct_STRIP
7560  fi
7561else
7562  STRIP="$ac_cv_prog_STRIP"
7563fi
7564
7565test -z "$STRIP" && STRIP=:
7566
7567
7568
7569
7570
7571
7572if test -n "$ac_tool_prefix"; then
7573  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7574set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576$as_echo_n "checking for $ac_word... " >&6; }
7577if test "${ac_cv_prog_RANLIB+set}" = set; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  if test -n "$RANLIB"; then
7581  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586  IFS=$as_save_IFS
7587  test -z "$as_dir" && as_dir=.
7588    for ac_exec_ext in '' $ac_executable_extensions; do
7589  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592    break 2
7593  fi
7594done
7595  done
7596IFS=$as_save_IFS
7597
7598fi
7599fi
7600RANLIB=$ac_cv_prog_RANLIB
7601if test -n "$RANLIB"; then
7602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7603$as_echo "$RANLIB" >&6; }
7604else
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
7607fi
7608
7609
7610fi
7611if test -z "$ac_cv_prog_RANLIB"; then
7612  ac_ct_RANLIB=$RANLIB
7613  # Extract the first word of "ranlib", so it can be a program name with args.
7614set dummy ranlib; ac_word=$2
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616$as_echo_n "checking for $ac_word... " >&6; }
7617if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  if test -n "$ac_ct_RANLIB"; then
7621  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626  IFS=$as_save_IFS
7627  test -z "$as_dir" && as_dir=.
7628    for ac_exec_ext in '' $ac_executable_extensions; do
7629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630    ac_cv_prog_ac_ct_RANLIB="ranlib"
7631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632    break 2
7633  fi
7634done
7635  done
7636IFS=$as_save_IFS
7637
7638fi
7639fi
7640ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7641if test -n "$ac_ct_RANLIB"; then
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7643$as_echo "$ac_ct_RANLIB" >&6; }
7644else
7645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647fi
7648
7649  if test "x$ac_ct_RANLIB" = x; then
7650    RANLIB=":"
7651  else
7652    case $cross_compiling:$ac_tool_warned in
7653yes:)
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656ac_tool_warned=yes ;;
7657esac
7658    RANLIB=$ac_ct_RANLIB
7659  fi
7660else
7661  RANLIB="$ac_cv_prog_RANLIB"
7662fi
7663
7664test -z "$RANLIB" && RANLIB=:
7665
7666
7667
7668
7669
7670
7671# Determine commands to create old-style static archives.
7672old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7673old_postinstall_cmds='chmod 644 $oldlib'
7674old_postuninstall_cmds=
7675
7676if test -n "$RANLIB"; then
7677  case $host_os in
7678  openbsd*)
7679    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7680    ;;
7681  *)
7682    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7683    ;;
7684  esac
7685  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7686fi
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721# If no C compiler was specified, use CC.
7722LTCC=${LTCC-"$CC"}
7723
7724# If no C compiler flags were specified, use CFLAGS.
7725LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7726
7727# Allow CC to be a program name with arguments.
7728compiler=$CC
7729
7730
7731# Check for command to grab the raw symbol name followed by C symbol from nm.
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7733$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7734if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737
7738# These are sane defaults that work on at least a few old systems.
7739# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7740
7741# Character class describing NM global symbol codes.
7742symcode='[BCDEGRST]'
7743
7744# Regexp to match symbols that can be accessed directly from C.
7745sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7746
7747# Define system-specific variables.
7748case $host_os in
7749aix*)
7750  symcode='[BCDT]'
7751  ;;
7752cygwin* | mingw* | pw32* | cegcc*)
7753  symcode='[ABCDGISTW]'
7754  ;;
7755hpux*)
7756  if test "$host_cpu" = ia64; then
7757    symcode='[ABCDEGRST]'
7758  fi
7759  ;;
7760irix* | nonstopux*)
7761  symcode='[BCDEGRST]'
7762  ;;
7763osf*)
7764  symcode='[BCDEGQRST]'
7765  ;;
7766solaris*)
7767  symcode='[BDRT]'
7768  ;;
7769sco3.2v5*)
7770  symcode='[DT]'
7771  ;;
7772sysv4.2uw2*)
7773  symcode='[DT]'
7774  ;;
7775sysv5* | sco5v6* | unixware* | OpenUNIX*)
7776  symcode='[ABDT]'
7777  ;;
7778sysv4)
7779  symcode='[DFNSTU]'
7780  ;;
7781esac
7782
7783# If we're using GNU nm, then use its standard symbol codes.
7784case `$NM -V 2>&1` in
7785*GNU* | *'with BFD'*)
7786  symcode='[ABCDGIRSTW]' ;;
7787esac
7788
7789# Transform an extracted symbol line into a proper C declaration.
7790# Some systems (esp. on ia64) link data and code symbols differently,
7791# so use this general approach.
7792lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7793
7794# Transform an extracted symbol line into symbol name and symbol address
7795lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7796lt_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'"
7797
7798# Handle CRLF in mingw tool chain
7799opt_cr=
7800case $build_os in
7801mingw*)
7802  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7803  ;;
7804esac
7805
7806# Try without a prefix underscore, then with it.
7807for ac_symprfx in "" "_"; do
7808
7809  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7810  symxfrm="\\1 $ac_symprfx\\2 \\2"
7811
7812  # Write the raw and C identifiers.
7813  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7814    # Fake it for dumpbin and say T for any non-static function
7815    # and D for any global variable.
7816    # Also find C++ and __fastcall symbols from MSVC++,
7817    # which start with @ or ?.
7818    lt_cv_sys_global_symbol_pipe="$AWK '"\
7819"     {last_section=section; section=\$ 3};"\
7820"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7821"     \$ 0!~/External *\|/{next};"\
7822"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7823"     {if(hide[section]) next};"\
7824"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7825"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7826"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7827"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7828"     ' prfx=^$ac_symprfx"
7829  else
7830    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7831  fi
7832
7833  # Check to see that the pipe works correctly.
7834  pipe_works=no
7835
7836  rm -f conftest*
7837  cat > conftest.$ac_ext <<_LT_EOF
7838#ifdef __cplusplus
7839extern "C" {
7840#endif
7841char nm_test_var;
7842void nm_test_func(void);
7843void nm_test_func(void){}
7844#ifdef __cplusplus
7845}
7846#endif
7847int main(){nm_test_var='a';nm_test_func();return(0);}
7848_LT_EOF
7849
7850  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7851  (eval $ac_compile) 2>&5
7852  ac_status=$?
7853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7854  test $ac_status = 0; }; then
7855    # Now try to grab the symbols.
7856    nlist=conftest.nm
7857    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7858  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7859  ac_status=$?
7860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861  test $ac_status = 0; } && test -s "$nlist"; then
7862      # Try sorting and uniquifying the output.
7863      if sort "$nlist" | uniq > "$nlist"T; then
7864	mv -f "$nlist"T "$nlist"
7865      else
7866	rm -f "$nlist"T
7867      fi
7868
7869      # Make sure that we snagged all the symbols we need.
7870      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7871	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7872	  cat <<_LT_EOF > conftest.$ac_ext
7873#ifdef __cplusplus
7874extern "C" {
7875#endif
7876
7877_LT_EOF
7878	  # Now generate the symbol file.
7879	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7880
7881	  cat <<_LT_EOF >> conftest.$ac_ext
7882
7883/* The mapping between symbol names and symbols.  */
7884const struct {
7885  const char *name;
7886  void       *address;
7887}
7888lt__PROGRAM__LTX_preloaded_symbols[] =
7889{
7890  { "@PROGRAM@", (void *) 0 },
7891_LT_EOF
7892	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7893	  cat <<\_LT_EOF >> conftest.$ac_ext
7894  {0, (void *) 0}
7895};
7896
7897/* This works around a problem in FreeBSD linker */
7898#ifdef FREEBSD_WORKAROUND
7899static const void *lt_preloaded_setup() {
7900  return lt__PROGRAM__LTX_preloaded_symbols;
7901}
7902#endif
7903
7904#ifdef __cplusplus
7905}
7906#endif
7907_LT_EOF
7908	  # Now try linking the two files.
7909	  mv conftest.$ac_objext conftstm.$ac_objext
7910	  lt_save_LIBS="$LIBS"
7911	  lt_save_CFLAGS="$CFLAGS"
7912	  LIBS="conftstm.$ac_objext"
7913	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7914	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7915  (eval $ac_link) 2>&5
7916  ac_status=$?
7917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7918  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7919	    pipe_works=yes
7920	  fi
7921	  LIBS="$lt_save_LIBS"
7922	  CFLAGS="$lt_save_CFLAGS"
7923	else
7924	  echo "cannot find nm_test_func in $nlist" >&5
7925	fi
7926      else
7927	echo "cannot find nm_test_var in $nlist" >&5
7928      fi
7929    else
7930      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7931    fi
7932  else
7933    echo "$progname: failed program was:" >&5
7934    cat conftest.$ac_ext >&5
7935  fi
7936  rm -rf conftest* conftst*
7937
7938  # Do not use the global_symbol_pipe unless it works.
7939  if test "$pipe_works" = yes; then
7940    break
7941  else
7942    lt_cv_sys_global_symbol_pipe=
7943  fi
7944done
7945
7946fi
7947
7948if test -z "$lt_cv_sys_global_symbol_pipe"; then
7949  lt_cv_sys_global_symbol_to_cdecl=
7950fi
7951if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7953$as_echo "failed" >&6; }
7954else
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7956$as_echo "ok" >&6; }
7957fi
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980# Check whether --enable-libtool-lock was given.
7981if test "${enable_libtool_lock+set}" = set; then :
7982  enableval=$enable_libtool_lock;
7983fi
7984
7985test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7986
7987# Some flags need to be propagated to the compiler or linker for good
7988# libtool support.
7989case $host in
7990ia64-*-hpux*)
7991  # Find out which ABI we are using.
7992  echo 'int i;' > conftest.$ac_ext
7993  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7994  (eval $ac_compile) 2>&5
7995  ac_status=$?
7996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7997  test $ac_status = 0; }; then
7998    case `/usr/bin/file conftest.$ac_objext` in
7999      *ELF-32*)
8000	HPUX_IA64_MODE="32"
8001	;;
8002      *ELF-64*)
8003	HPUX_IA64_MODE="64"
8004	;;
8005    esac
8006  fi
8007  rm -rf conftest*
8008  ;;
8009*-*-irix6*)
8010  # Find out which ABI we are using.
8011  echo '#line 8011 "configure"' > conftest.$ac_ext
8012  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8013  (eval $ac_compile) 2>&5
8014  ac_status=$?
8015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8016  test $ac_status = 0; }; then
8017    if test "$lt_cv_prog_gnu_ld" = yes; then
8018      case `/usr/bin/file conftest.$ac_objext` in
8019	*32-bit*)
8020	  LD="${LD-ld} -melf32bsmip"
8021	  ;;
8022	*N32*)
8023	  LD="${LD-ld} -melf32bmipn32"
8024	  ;;
8025	*64-bit*)
8026	  LD="${LD-ld} -melf64bmip"
8027	;;
8028      esac
8029    else
8030      case `/usr/bin/file conftest.$ac_objext` in
8031	*32-bit*)
8032	  LD="${LD-ld} -32"
8033	  ;;
8034	*N32*)
8035	  LD="${LD-ld} -n32"
8036	  ;;
8037	*64-bit*)
8038	  LD="${LD-ld} -64"
8039	  ;;
8040      esac
8041    fi
8042  fi
8043  rm -rf conftest*
8044  ;;
8045
8046x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8047s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8048  # Find out which ABI we are using.
8049  echo 'int i;' > conftest.$ac_ext
8050  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8051  (eval $ac_compile) 2>&5
8052  ac_status=$?
8053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8054  test $ac_status = 0; }; then
8055    case `/usr/bin/file conftest.o` in
8056      *32-bit*)
8057	case $host in
8058	  x86_64-*kfreebsd*-gnu)
8059	    LD="${LD-ld} -m elf_i386_fbsd"
8060	    ;;
8061	  x86_64-*linux*)
8062	    LD="${LD-ld} -m elf_i386"
8063	    ;;
8064	  ppc64-*linux*|powerpc64-*linux*)
8065	    LD="${LD-ld} -m elf32ppclinux"
8066	    ;;
8067	  s390x-*linux*)
8068	    LD="${LD-ld} -m elf_s390"
8069	    ;;
8070	  sparc64-*linux*)
8071	    LD="${LD-ld} -m elf32_sparc"
8072	    ;;
8073	esac
8074	;;
8075      *64-bit*)
8076	case $host in
8077	  x86_64-*kfreebsd*-gnu)
8078	    LD="${LD-ld} -m elf_x86_64_fbsd"
8079	    ;;
8080	  x86_64-*linux*)
8081	    LD="${LD-ld} -m elf_x86_64"
8082	    ;;
8083	  ppc*-*linux*|powerpc*-*linux*)
8084	    LD="${LD-ld} -m elf64ppc"
8085	    ;;
8086	  s390*-*linux*|s390*-*tpf*)
8087	    LD="${LD-ld} -m elf64_s390"
8088	    ;;
8089	  sparc*-*linux*)
8090	    LD="${LD-ld} -m elf64_sparc"
8091	    ;;
8092	esac
8093	;;
8094    esac
8095  fi
8096  rm -rf conftest*
8097  ;;
8098
8099*-*-sco3.2v5*)
8100  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8101  SAVE_CFLAGS="$CFLAGS"
8102  CFLAGS="$CFLAGS -belf"
8103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8104$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8105if test "${lt_cv_cc_needs_belf+set}" = set; then :
8106  $as_echo_n "(cached) " >&6
8107else
8108  ac_ext=c
8109ac_cpp='$CPP $CPPFLAGS'
8110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8112ac_compiler_gnu=$ac_cv_c_compiler_gnu
8113
8114     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116
8117int
8118main ()
8119{
8120
8121  ;
8122  return 0;
8123}
8124_ACEOF
8125if ac_fn_c_try_link "$LINENO"; then :
8126  lt_cv_cc_needs_belf=yes
8127else
8128  lt_cv_cc_needs_belf=no
8129fi
8130rm -f core conftest.err conftest.$ac_objext \
8131    conftest$ac_exeext conftest.$ac_ext
8132     ac_ext=c
8133ac_cpp='$CPP $CPPFLAGS'
8134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136ac_compiler_gnu=$ac_cv_c_compiler_gnu
8137
8138fi
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8140$as_echo "$lt_cv_cc_needs_belf" >&6; }
8141  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8142    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8143    CFLAGS="$SAVE_CFLAGS"
8144  fi
8145  ;;
8146sparc*-*solaris*)
8147  # Find out which ABI we are using.
8148  echo 'int i;' > conftest.$ac_ext
8149  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8150  (eval $ac_compile) 2>&5
8151  ac_status=$?
8152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8153  test $ac_status = 0; }; then
8154    case `/usr/bin/file conftest.o` in
8155    *64-bit*)
8156      case $lt_cv_prog_gnu_ld in
8157      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8158      *)
8159	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8160	  LD="${LD-ld} -64"
8161	fi
8162	;;
8163      esac
8164      ;;
8165    esac
8166  fi
8167  rm -rf conftest*
8168  ;;
8169esac
8170
8171need_locks="$enable_libtool_lock"
8172
8173
8174  case $host_os in
8175    rhapsody* | darwin*)
8176    if test -n "$ac_tool_prefix"; then
8177  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8178set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180$as_echo_n "checking for $ac_word... " >&6; }
8181if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8182  $as_echo_n "(cached) " >&6
8183else
8184  if test -n "$DSYMUTIL"; then
8185  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8186else
8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190  IFS=$as_save_IFS
8191  test -z "$as_dir" && as_dir=.
8192    for ac_exec_ext in '' $ac_executable_extensions; do
8193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8194    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196    break 2
8197  fi
8198done
8199  done
8200IFS=$as_save_IFS
8201
8202fi
8203fi
8204DSYMUTIL=$ac_cv_prog_DSYMUTIL
8205if test -n "$DSYMUTIL"; then
8206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8207$as_echo "$DSYMUTIL" >&6; }
8208else
8209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210$as_echo "no" >&6; }
8211fi
8212
8213
8214fi
8215if test -z "$ac_cv_prog_DSYMUTIL"; then
8216  ac_ct_DSYMUTIL=$DSYMUTIL
8217  # Extract the first word of "dsymutil", so it can be a program name with args.
8218set dummy dsymutil; ac_word=$2
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220$as_echo_n "checking for $ac_word... " >&6; }
8221if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8222  $as_echo_n "(cached) " >&6
8223else
8224  if test -n "$ac_ct_DSYMUTIL"; then
8225  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8226else
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230  IFS=$as_save_IFS
8231  test -z "$as_dir" && as_dir=.
8232    for ac_exec_ext in '' $ac_executable_extensions; do
8233  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236    break 2
8237  fi
8238done
8239  done
8240IFS=$as_save_IFS
8241
8242fi
8243fi
8244ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8245if test -n "$ac_ct_DSYMUTIL"; then
8246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8247$as_echo "$ac_ct_DSYMUTIL" >&6; }
8248else
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
8251fi
8252
8253  if test "x$ac_ct_DSYMUTIL" = x; then
8254    DSYMUTIL=":"
8255  else
8256    case $cross_compiling:$ac_tool_warned in
8257yes:)
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8260ac_tool_warned=yes ;;
8261esac
8262    DSYMUTIL=$ac_ct_DSYMUTIL
8263  fi
8264else
8265  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8266fi
8267
8268    if test -n "$ac_tool_prefix"; then
8269  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8270set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272$as_echo_n "checking for $ac_word... " >&6; }
8273if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8274  $as_echo_n "(cached) " >&6
8275else
8276  if test -n "$NMEDIT"; then
8277  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8278else
8279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280for as_dir in $PATH
8281do
8282  IFS=$as_save_IFS
8283  test -z "$as_dir" && as_dir=.
8284    for ac_exec_ext in '' $ac_executable_extensions; do
8285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288    break 2
8289  fi
8290done
8291  done
8292IFS=$as_save_IFS
8293
8294fi
8295fi
8296NMEDIT=$ac_cv_prog_NMEDIT
8297if test -n "$NMEDIT"; then
8298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8299$as_echo "$NMEDIT" >&6; }
8300else
8301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302$as_echo "no" >&6; }
8303fi
8304
8305
8306fi
8307if test -z "$ac_cv_prog_NMEDIT"; then
8308  ac_ct_NMEDIT=$NMEDIT
8309  # Extract the first word of "nmedit", so it can be a program name with args.
8310set dummy nmedit; ac_word=$2
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312$as_echo_n "checking for $ac_word... " >&6; }
8313if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8314  $as_echo_n "(cached) " >&6
8315else
8316  if test -n "$ac_ct_NMEDIT"; then
8317  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8318else
8319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322  IFS=$as_save_IFS
8323  test -z "$as_dir" && as_dir=.
8324    for ac_exec_ext in '' $ac_executable_extensions; do
8325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328    break 2
8329  fi
8330done
8331  done
8332IFS=$as_save_IFS
8333
8334fi
8335fi
8336ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8337if test -n "$ac_ct_NMEDIT"; then
8338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8339$as_echo "$ac_ct_NMEDIT" >&6; }
8340else
8341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342$as_echo "no" >&6; }
8343fi
8344
8345  if test "x$ac_ct_NMEDIT" = x; then
8346    NMEDIT=":"
8347  else
8348    case $cross_compiling:$ac_tool_warned in
8349yes:)
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8352ac_tool_warned=yes ;;
8353esac
8354    NMEDIT=$ac_ct_NMEDIT
8355  fi
8356else
8357  NMEDIT="$ac_cv_prog_NMEDIT"
8358fi
8359
8360    if test -n "$ac_tool_prefix"; then
8361  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8362set dummy ${ac_tool_prefix}lipo; ac_word=$2
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364$as_echo_n "checking for $ac_word... " >&6; }
8365if test "${ac_cv_prog_LIPO+set}" = set; then :
8366  $as_echo_n "(cached) " >&6
8367else
8368  if test -n "$LIPO"; then
8369  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8370else
8371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374  IFS=$as_save_IFS
8375  test -z "$as_dir" && as_dir=.
8376    for ac_exec_ext in '' $ac_executable_extensions; do
8377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8378    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380    break 2
8381  fi
8382done
8383  done
8384IFS=$as_save_IFS
8385
8386fi
8387fi
8388LIPO=$ac_cv_prog_LIPO
8389if test -n "$LIPO"; then
8390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8391$as_echo "$LIPO" >&6; }
8392else
8393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394$as_echo "no" >&6; }
8395fi
8396
8397
8398fi
8399if test -z "$ac_cv_prog_LIPO"; then
8400  ac_ct_LIPO=$LIPO
8401  # Extract the first word of "lipo", so it can be a program name with args.
8402set dummy lipo; ac_word=$2
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404$as_echo_n "checking for $ac_word... " >&6; }
8405if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8406  $as_echo_n "(cached) " >&6
8407else
8408  if test -n "$ac_ct_LIPO"; then
8409  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8410else
8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412for as_dir in $PATH
8413do
8414  IFS=$as_save_IFS
8415  test -z "$as_dir" && as_dir=.
8416    for ac_exec_ext in '' $ac_executable_extensions; do
8417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418    ac_cv_prog_ac_ct_LIPO="lipo"
8419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420    break 2
8421  fi
8422done
8423  done
8424IFS=$as_save_IFS
8425
8426fi
8427fi
8428ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8429if test -n "$ac_ct_LIPO"; then
8430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8431$as_echo "$ac_ct_LIPO" >&6; }
8432else
8433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434$as_echo "no" >&6; }
8435fi
8436
8437  if test "x$ac_ct_LIPO" = x; then
8438    LIPO=":"
8439  else
8440    case $cross_compiling:$ac_tool_warned in
8441yes:)
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8444ac_tool_warned=yes ;;
8445esac
8446    LIPO=$ac_ct_LIPO
8447  fi
8448else
8449  LIPO="$ac_cv_prog_LIPO"
8450fi
8451
8452    if test -n "$ac_tool_prefix"; then
8453  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8454set dummy ${ac_tool_prefix}otool; ac_word=$2
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456$as_echo_n "checking for $ac_word... " >&6; }
8457if test "${ac_cv_prog_OTOOL+set}" = set; then :
8458  $as_echo_n "(cached) " >&6
8459else
8460  if test -n "$OTOOL"; then
8461  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8462else
8463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464for as_dir in $PATH
8465do
8466  IFS=$as_save_IFS
8467  test -z "$as_dir" && as_dir=.
8468    for ac_exec_ext in '' $ac_executable_extensions; do
8469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472    break 2
8473  fi
8474done
8475  done
8476IFS=$as_save_IFS
8477
8478fi
8479fi
8480OTOOL=$ac_cv_prog_OTOOL
8481if test -n "$OTOOL"; then
8482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8483$as_echo "$OTOOL" >&6; }
8484else
8485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486$as_echo "no" >&6; }
8487fi
8488
8489
8490fi
8491if test -z "$ac_cv_prog_OTOOL"; then
8492  ac_ct_OTOOL=$OTOOL
8493  # Extract the first word of "otool", so it can be a program name with args.
8494set dummy otool; ac_word=$2
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496$as_echo_n "checking for $ac_word... " >&6; }
8497if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8498  $as_echo_n "(cached) " >&6
8499else
8500  if test -n "$ac_ct_OTOOL"; then
8501  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8502else
8503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504for as_dir in $PATH
8505do
8506  IFS=$as_save_IFS
8507  test -z "$as_dir" && as_dir=.
8508    for ac_exec_ext in '' $ac_executable_extensions; do
8509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510    ac_cv_prog_ac_ct_OTOOL="otool"
8511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512    break 2
8513  fi
8514done
8515  done
8516IFS=$as_save_IFS
8517
8518fi
8519fi
8520ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8521if test -n "$ac_ct_OTOOL"; then
8522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8523$as_echo "$ac_ct_OTOOL" >&6; }
8524else
8525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
8527fi
8528
8529  if test "x$ac_ct_OTOOL" = x; then
8530    OTOOL=":"
8531  else
8532    case $cross_compiling:$ac_tool_warned in
8533yes:)
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8536ac_tool_warned=yes ;;
8537esac
8538    OTOOL=$ac_ct_OTOOL
8539  fi
8540else
8541  OTOOL="$ac_cv_prog_OTOOL"
8542fi
8543
8544    if test -n "$ac_tool_prefix"; then
8545  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8546set dummy ${ac_tool_prefix}otool64; ac_word=$2
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548$as_echo_n "checking for $ac_word... " >&6; }
8549if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8550  $as_echo_n "(cached) " >&6
8551else
8552  if test -n "$OTOOL64"; then
8553  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8554else
8555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556for as_dir in $PATH
8557do
8558  IFS=$as_save_IFS
8559  test -z "$as_dir" && as_dir=.
8560    for ac_exec_ext in '' $ac_executable_extensions; do
8561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8562    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564    break 2
8565  fi
8566done
8567  done
8568IFS=$as_save_IFS
8569
8570fi
8571fi
8572OTOOL64=$ac_cv_prog_OTOOL64
8573if test -n "$OTOOL64"; then
8574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8575$as_echo "$OTOOL64" >&6; }
8576else
8577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578$as_echo "no" >&6; }
8579fi
8580
8581
8582fi
8583if test -z "$ac_cv_prog_OTOOL64"; then
8584  ac_ct_OTOOL64=$OTOOL64
8585  # Extract the first word of "otool64", so it can be a program name with args.
8586set dummy otool64; ac_word=$2
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
8589if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8590  $as_echo_n "(cached) " >&6
8591else
8592  if test -n "$ac_ct_OTOOL64"; then
8593  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8594else
8595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596for as_dir in $PATH
8597do
8598  IFS=$as_save_IFS
8599  test -z "$as_dir" && as_dir=.
8600    for ac_exec_ext in '' $ac_executable_extensions; do
8601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602    ac_cv_prog_ac_ct_OTOOL64="otool64"
8603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604    break 2
8605  fi
8606done
8607  done
8608IFS=$as_save_IFS
8609
8610fi
8611fi
8612ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8613if test -n "$ac_ct_OTOOL64"; then
8614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8615$as_echo "$ac_ct_OTOOL64" >&6; }
8616else
8617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
8619fi
8620
8621  if test "x$ac_ct_OTOOL64" = x; then
8622    OTOOL64=":"
8623  else
8624    case $cross_compiling:$ac_tool_warned in
8625yes:)
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8628ac_tool_warned=yes ;;
8629esac
8630    OTOOL64=$ac_ct_OTOOL64
8631  fi
8632else
8633  OTOOL64="$ac_cv_prog_OTOOL64"
8634fi
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8663$as_echo_n "checking for -single_module linker flag... " >&6; }
8664if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8665  $as_echo_n "(cached) " >&6
8666else
8667  lt_cv_apple_cc_single_mod=no
8668      if test -z "${LT_MULTI_MODULE}"; then
8669	# By default we will add the -single_module flag. You can override
8670	# by either setting the environment variable LT_MULTI_MODULE
8671	# non-empty at configure time, or by adding -multi_module to the
8672	# link flags.
8673	rm -rf libconftest.dylib*
8674	echo "int foo(void){return 1;}" > conftest.c
8675	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8676-dynamiclib -Wl,-single_module conftest.c" >&5
8677	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8678	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8679        _lt_result=$?
8680	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8681	  lt_cv_apple_cc_single_mod=yes
8682	else
8683	  cat conftest.err >&5
8684	fi
8685	rm -rf libconftest.dylib*
8686	rm -f conftest.*
8687      fi
8688fi
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8690$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8692$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8693if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8694  $as_echo_n "(cached) " >&6
8695else
8696  lt_cv_ld_exported_symbols_list=no
8697      save_LDFLAGS=$LDFLAGS
8698      echo "_main" > conftest.sym
8699      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8700      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701/* end confdefs.h.  */
8702
8703int
8704main ()
8705{
8706
8707  ;
8708  return 0;
8709}
8710_ACEOF
8711if ac_fn_c_try_link "$LINENO"; then :
8712  lt_cv_ld_exported_symbols_list=yes
8713else
8714  lt_cv_ld_exported_symbols_list=no
8715fi
8716rm -f core conftest.err conftest.$ac_objext \
8717    conftest$ac_exeext conftest.$ac_ext
8718	LDFLAGS="$save_LDFLAGS"
8719
8720fi
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8722$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8723    case $host_os in
8724    rhapsody* | darwin1.[012])
8725      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8726    darwin1.*)
8727      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8728    darwin*) # darwin 5.x on
8729      # if running on 10.5 or later, the deployment target defaults
8730      # to the OS version, if on x86, and 10.4, the deployment
8731      # target defaults to 10.4. Don't you love it?
8732      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8733	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8734	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8735	10.[012]*)
8736	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8737	10.*)
8738	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8739      esac
8740    ;;
8741  esac
8742    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8743      _lt_dar_single_mod='$single_module'
8744    fi
8745    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8746      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8747    else
8748      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8749    fi
8750    if test "$DSYMUTIL" != ":"; then
8751      _lt_dsymutil='~$DSYMUTIL $lib || :'
8752    else
8753      _lt_dsymutil=
8754    fi
8755    ;;
8756  esac
8757
8758for ac_header in dlfcn.h
8759do :
8760  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8761"
8762if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8763  cat >>confdefs.h <<_ACEOF
8764#define HAVE_DLFCN_H 1
8765_ACEOF
8766
8767fi
8768
8769done
8770
8771
8772
8773# Set options
8774
8775
8776
8777
8778  enable_win32_dll=no
8779
8780
8781            # Check whether --enable-shared was given.
8782if test "${enable_shared+set}" = set; then :
8783  enableval=$enable_shared; p=${PACKAGE-default}
8784    case $enableval in
8785    yes) enable_shared=yes ;;
8786    no) enable_shared=no ;;
8787    *)
8788      enable_shared=no
8789      # Look at the argument we got.  We use all the common list separators.
8790      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8791      for pkg in $enableval; do
8792	IFS="$lt_save_ifs"
8793	if test "X$pkg" = "X$p"; then
8794	  enable_shared=yes
8795	fi
8796      done
8797      IFS="$lt_save_ifs"
8798      ;;
8799    esac
8800else
8801  enable_shared=yes
8802fi
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814# Check whether --with-pic was given.
8815if test "${with_pic+set}" = set; then :
8816  withval=$with_pic; pic_mode="$withval"
8817else
8818  pic_mode=default
8819fi
8820
8821
8822test -z "$pic_mode" && pic_mode=default
8823
8824
8825
8826
8827
8828
8829
8830  # Check whether --enable-fast-install was given.
8831if test "${enable_fast_install+set}" = set; then :
8832  enableval=$enable_fast_install; p=${PACKAGE-default}
8833    case $enableval in
8834    yes) enable_fast_install=yes ;;
8835    no) enable_fast_install=no ;;
8836    *)
8837      enable_fast_install=no
8838      # Look at the argument we got.  We use all the common list separators.
8839      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8840      for pkg in $enableval; do
8841	IFS="$lt_save_ifs"
8842	if test "X$pkg" = "X$p"; then
8843	  enable_fast_install=yes
8844	fi
8845      done
8846      IFS="$lt_save_ifs"
8847      ;;
8848    esac
8849else
8850  enable_fast_install=yes
8851fi
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863# This can be used to rebuild libtool when needed
8864LIBTOOL_DEPS="$ltmain"
8865
8866# Always use our own libtool.
8867LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893test -z "$LN_S" && LN_S="ln -s"
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908if test -n "${ZSH_VERSION+set}" ; then
8909   setopt NO_GLOB_SUBST
8910fi
8911
8912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8913$as_echo_n "checking for objdir... " >&6; }
8914if test "${lt_cv_objdir+set}" = set; then :
8915  $as_echo_n "(cached) " >&6
8916else
8917  rm -f .libs 2>/dev/null
8918mkdir .libs 2>/dev/null
8919if test -d .libs; then
8920  lt_cv_objdir=.libs
8921else
8922  # MS-DOS does not allow filenames that begin with a dot.
8923  lt_cv_objdir=_libs
8924fi
8925rmdir .libs 2>/dev/null
8926fi
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8928$as_echo "$lt_cv_objdir" >&6; }
8929objdir=$lt_cv_objdir
8930
8931
8932
8933
8934
8935cat >>confdefs.h <<_ACEOF
8936#define LT_OBJDIR "$lt_cv_objdir/"
8937_ACEOF
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955case $host_os in
8956aix3*)
8957  # AIX sometimes has problems with the GCC collect2 program.  For some
8958  # reason, if we set the COLLECT_NAMES environment variable, the problems
8959  # vanish in a puff of smoke.
8960  if test "X${COLLECT_NAMES+set}" != Xset; then
8961    COLLECT_NAMES=
8962    export COLLECT_NAMES
8963  fi
8964  ;;
8965esac
8966
8967# Sed substitution that helps us do robust quoting.  It backslashifies
8968# metacharacters that are still active within double-quoted strings.
8969sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8970
8971# Same as above, but do not quote variable references.
8972double_quote_subst='s/\(["`\\]\)/\\\1/g'
8973
8974# Sed substitution to delay expansion of an escaped shell variable in a
8975# double_quote_subst'ed string.
8976delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8977
8978# Sed substitution to delay expansion of an escaped single quote.
8979delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8980
8981# Sed substitution to avoid accidental globbing in evaled expressions
8982no_glob_subst='s/\*/\\\*/g'
8983
8984# Global variables:
8985ofile=libtool
8986can_build_shared=yes
8987
8988# All known linkers require a `.a' archive for static linking (except MSVC,
8989# which needs '.lib').
8990libext=a
8991
8992with_gnu_ld="$lt_cv_prog_gnu_ld"
8993
8994old_CC="$CC"
8995old_CFLAGS="$CFLAGS"
8996
8997# Set sane defaults for various variables
8998test -z "$CC" && CC=cc
8999test -z "$LTCC" && LTCC=$CC
9000test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9001test -z "$LD" && LD=ld
9002test -z "$ac_objext" && ac_objext=o
9003
9004for cc_temp in $compiler""; do
9005  case $cc_temp in
9006    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9007    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9008    \-*) ;;
9009    *) break;;
9010  esac
9011done
9012cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9013
9014
9015# Only perform the check for file, if the check method requires it
9016test -z "$MAGIC_CMD" && MAGIC_CMD=file
9017case $deplibs_check_method in
9018file_magic*)
9019  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9021$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9022if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9023  $as_echo_n "(cached) " >&6
9024else
9025  case $MAGIC_CMD in
9026[\\/*] |  ?:[\\/]*)
9027  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9028  ;;
9029*)
9030  lt_save_MAGIC_CMD="$MAGIC_CMD"
9031  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9032  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9033  for ac_dir in $ac_dummy; do
9034    IFS="$lt_save_ifs"
9035    test -z "$ac_dir" && ac_dir=.
9036    if test -f $ac_dir/${ac_tool_prefix}file; then
9037      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9038      if test -n "$file_magic_test_file"; then
9039	case $deplibs_check_method in
9040	"file_magic "*)
9041	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9042	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9043	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9044	    $EGREP "$file_magic_regex" > /dev/null; then
9045	    :
9046	  else
9047	    cat <<_LT_EOF 1>&2
9048
9049*** Warning: the command libtool uses to detect shared libraries,
9050*** $file_magic_cmd, produces output that libtool cannot recognize.
9051*** The result is that libtool may fail to recognize shared libraries
9052*** as such.  This will affect the creation of libtool libraries that
9053*** depend on shared libraries, but programs linked with such libtool
9054*** libraries will work regardless of this problem.  Nevertheless, you
9055*** may want to report the problem to your system manager and/or to
9056*** bug-libtool@gnu.org
9057
9058_LT_EOF
9059	  fi ;;
9060	esac
9061      fi
9062      break
9063    fi
9064  done
9065  IFS="$lt_save_ifs"
9066  MAGIC_CMD="$lt_save_MAGIC_CMD"
9067  ;;
9068esac
9069fi
9070
9071MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9072if test -n "$MAGIC_CMD"; then
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9074$as_echo "$MAGIC_CMD" >&6; }
9075else
9076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077$as_echo "no" >&6; }
9078fi
9079
9080
9081
9082
9083
9084if test -z "$lt_cv_path_MAGIC_CMD"; then
9085  if test -n "$ac_tool_prefix"; then
9086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9087$as_echo_n "checking for file... " >&6; }
9088if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9089  $as_echo_n "(cached) " >&6
9090else
9091  case $MAGIC_CMD in
9092[\\/*] |  ?:[\\/]*)
9093  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9094  ;;
9095*)
9096  lt_save_MAGIC_CMD="$MAGIC_CMD"
9097  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9098  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9099  for ac_dir in $ac_dummy; do
9100    IFS="$lt_save_ifs"
9101    test -z "$ac_dir" && ac_dir=.
9102    if test -f $ac_dir/file; then
9103      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9104      if test -n "$file_magic_test_file"; then
9105	case $deplibs_check_method in
9106	"file_magic "*)
9107	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9108	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9109	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9110	    $EGREP "$file_magic_regex" > /dev/null; then
9111	    :
9112	  else
9113	    cat <<_LT_EOF 1>&2
9114
9115*** Warning: the command libtool uses to detect shared libraries,
9116*** $file_magic_cmd, produces output that libtool cannot recognize.
9117*** The result is that libtool may fail to recognize shared libraries
9118*** as such.  This will affect the creation of libtool libraries that
9119*** depend on shared libraries, but programs linked with such libtool
9120*** libraries will work regardless of this problem.  Nevertheless, you
9121*** may want to report the problem to your system manager and/or to
9122*** bug-libtool@gnu.org
9123
9124_LT_EOF
9125	  fi ;;
9126	esac
9127      fi
9128      break
9129    fi
9130  done
9131  IFS="$lt_save_ifs"
9132  MAGIC_CMD="$lt_save_MAGIC_CMD"
9133  ;;
9134esac
9135fi
9136
9137MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9138if test -n "$MAGIC_CMD"; then
9139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9140$as_echo "$MAGIC_CMD" >&6; }
9141else
9142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
9144fi
9145
9146
9147  else
9148    MAGIC_CMD=:
9149  fi
9150fi
9151
9152  fi
9153  ;;
9154esac
9155
9156# Use C for the default configuration in the libtool script
9157
9158lt_save_CC="$CC"
9159ac_ext=c
9160ac_cpp='$CPP $CPPFLAGS'
9161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9163ac_compiler_gnu=$ac_cv_c_compiler_gnu
9164
9165
9166# Source file extension for C test sources.
9167ac_ext=c
9168
9169# Object file extension for compiled C test sources.
9170objext=o
9171objext=$objext
9172
9173# Code to be used in simple compile tests
9174lt_simple_compile_test_code="int some_variable = 0;"
9175
9176# Code to be used in simple link tests
9177lt_simple_link_test_code='int main(){return(0);}'
9178
9179
9180
9181
9182
9183
9184
9185# If no C compiler was specified, use CC.
9186LTCC=${LTCC-"$CC"}
9187
9188# If no C compiler flags were specified, use CFLAGS.
9189LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9190
9191# Allow CC to be a program name with arguments.
9192compiler=$CC
9193
9194# Save the default compiler, since it gets overwritten when the other
9195# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9196compiler_DEFAULT=$CC
9197
9198# save warnings/boilerplate of simple test code
9199ac_outfile=conftest.$ac_objext
9200echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9201eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9202_lt_compiler_boilerplate=`cat conftest.err`
9203$RM conftest*
9204
9205ac_outfile=conftest.$ac_objext
9206echo "$lt_simple_link_test_code" >conftest.$ac_ext
9207eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9208_lt_linker_boilerplate=`cat conftest.err`
9209$RM -r conftest*
9210
9211
9212if test -n "$compiler"; then
9213
9214lt_prog_compiler_no_builtin_flag=
9215
9216if test "$GCC" = yes; then
9217  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9218
9219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9220$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9221if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9222  $as_echo_n "(cached) " >&6
9223else
9224  lt_cv_prog_compiler_rtti_exceptions=no
9225   ac_outfile=conftest.$ac_objext
9226   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9227   lt_compiler_flag="-fno-rtti -fno-exceptions"
9228   # Insert the option either (1) after the last *FLAGS variable, or
9229   # (2) before a word containing "conftest.", or (3) at the end.
9230   # Note that $ac_compile itself does not contain backslashes and begins
9231   # with a dollar sign (not a hyphen), so the echo should work correctly.
9232   # The option is referenced via a variable to avoid confusing sed.
9233   lt_compile=`echo "$ac_compile" | $SED \
9234   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9235   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9236   -e 's:$: $lt_compiler_flag:'`
9237   (eval echo "\"\$as_me:9237: $lt_compile\"" >&5)
9238   (eval "$lt_compile" 2>conftest.err)
9239   ac_status=$?
9240   cat conftest.err >&5
9241   echo "$as_me:9241: \$? = $ac_status" >&5
9242   if (exit $ac_status) && test -s "$ac_outfile"; then
9243     # The compiler can only warn and ignore the option if not recognized
9244     # So say no if there are warnings other than the usual output.
9245     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9246     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9247     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9248       lt_cv_prog_compiler_rtti_exceptions=yes
9249     fi
9250   fi
9251   $RM conftest*
9252
9253fi
9254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9255$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9256
9257if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9258    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9259else
9260    :
9261fi
9262
9263fi
9264
9265
9266
9267
9268
9269
9270  lt_prog_compiler_wl=
9271lt_prog_compiler_pic=
9272lt_prog_compiler_static=
9273
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9275$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9276
9277  if test "$GCC" = yes; then
9278    lt_prog_compiler_wl='-Wl,'
9279    lt_prog_compiler_static='-static'
9280
9281    case $host_os in
9282      aix*)
9283      # All AIX code is PIC.
9284      if test "$host_cpu" = ia64; then
9285	# AIX 5 now supports IA64 processor
9286	lt_prog_compiler_static='-Bstatic'
9287      fi
9288      ;;
9289
9290    amigaos*)
9291      case $host_cpu in
9292      powerpc)
9293            # see comment about AmigaOS4 .so support
9294            lt_prog_compiler_pic='-fPIC'
9295        ;;
9296      m68k)
9297            # FIXME: we need at least 68020 code to build shared libraries, but
9298            # adding the `-m68020' flag to GCC prevents building anything better,
9299            # like `-m68040'.
9300            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9301        ;;
9302      esac
9303      ;;
9304
9305    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9306      # PIC is the default for these OSes.
9307      ;;
9308
9309    mingw* | cygwin* | pw32* | os2* | cegcc*)
9310      # This hack is so that the source file can tell whether it is being
9311      # built for inclusion in a dll (and should export symbols for example).
9312      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9313      # (--disable-auto-import) libraries
9314      lt_prog_compiler_pic='-DDLL_EXPORT'
9315      ;;
9316
9317    darwin* | rhapsody*)
9318      # PIC is the default on this platform
9319      # Common symbols not allowed in MH_DYLIB files
9320      lt_prog_compiler_pic='-fno-common'
9321      ;;
9322
9323    hpux*)
9324      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9325      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9326      # sets the default TLS model and affects inlining.
9327      case $host_cpu in
9328      hppa*64*)
9329	# +Z the default
9330	;;
9331      *)
9332	lt_prog_compiler_pic='-fPIC'
9333	;;
9334      esac
9335      ;;
9336
9337    interix[3-9]*)
9338      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9339      # Instead, we relocate shared libraries at runtime.
9340      ;;
9341
9342    msdosdjgpp*)
9343      # Just because we use GCC doesn't mean we suddenly get shared libraries
9344      # on systems that don't support them.
9345      lt_prog_compiler_can_build_shared=no
9346      enable_shared=no
9347      ;;
9348
9349    *nto* | *qnx*)
9350      # QNX uses GNU C++, but need to define -shared option too, otherwise
9351      # it will coredump.
9352      lt_prog_compiler_pic='-fPIC -shared'
9353      ;;
9354
9355    sysv4*MP*)
9356      if test -d /usr/nec; then
9357	lt_prog_compiler_pic=-Kconform_pic
9358      fi
9359      ;;
9360
9361    *)
9362      lt_prog_compiler_pic='-fPIC'
9363      ;;
9364    esac
9365  else
9366    # PORTME Check for flag to pass linker flags through the system compiler.
9367    case $host_os in
9368    aix*)
9369      lt_prog_compiler_wl='-Wl,'
9370      if test "$host_cpu" = ia64; then
9371	# AIX 5 now supports IA64 processor
9372	lt_prog_compiler_static='-Bstatic'
9373      else
9374	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9375      fi
9376      ;;
9377
9378    mingw* | cygwin* | pw32* | os2* | cegcc*)
9379      # This hack is so that the source file can tell whether it is being
9380      # built for inclusion in a dll (and should export symbols for example).
9381      lt_prog_compiler_pic='-DDLL_EXPORT'
9382      ;;
9383
9384    hpux9* | hpux10* | hpux11*)
9385      lt_prog_compiler_wl='-Wl,'
9386      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9387      # not for PA HP-UX.
9388      case $host_cpu in
9389      hppa*64*|ia64*)
9390	# +Z the default
9391	;;
9392      *)
9393	lt_prog_compiler_pic='+Z'
9394	;;
9395      esac
9396      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9397      lt_prog_compiler_static='${wl}-a ${wl}archive'
9398      ;;
9399
9400    irix5* | irix6* | nonstopux*)
9401      lt_prog_compiler_wl='-Wl,'
9402      # PIC (with -KPIC) is the default.
9403      lt_prog_compiler_static='-non_shared'
9404      ;;
9405
9406    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9407      case $cc_basename in
9408      # old Intel for x86_64 which still supported -KPIC.
9409      ecc*)
9410	lt_prog_compiler_wl='-Wl,'
9411	lt_prog_compiler_pic='-KPIC'
9412	lt_prog_compiler_static='-static'
9413        ;;
9414      # icc used to be incompatible with GCC.
9415      # ICC 10 doesn't accept -KPIC any more.
9416      icc* | ifort*)
9417	lt_prog_compiler_wl='-Wl,'
9418	lt_prog_compiler_pic='-fPIC'
9419	lt_prog_compiler_static='-static'
9420        ;;
9421      # Lahey Fortran 8.1.
9422      lf95*)
9423	lt_prog_compiler_wl='-Wl,'
9424	lt_prog_compiler_pic='--shared'
9425	lt_prog_compiler_static='--static'
9426	;;
9427      pgcc* | pgf77* | pgf90* | pgf95*)
9428        # Portland Group compilers (*not* the Pentium gcc compiler,
9429	# which looks to be a dead project)
9430	lt_prog_compiler_wl='-Wl,'
9431	lt_prog_compiler_pic='-fpic'
9432	lt_prog_compiler_static='-Bstatic'
9433        ;;
9434      ccc*)
9435        lt_prog_compiler_wl='-Wl,'
9436        # All Alpha code is PIC.
9437        lt_prog_compiler_static='-non_shared'
9438        ;;
9439      xl*)
9440	# IBM XL C 8.0/Fortran 10.1 on PPC
9441	lt_prog_compiler_wl='-Wl,'
9442	lt_prog_compiler_pic='-qpic'
9443	lt_prog_compiler_static='-qstaticlink'
9444	;;
9445      *)
9446	case `$CC -V 2>&1 | sed 5q` in
9447	*Sun\ C*)
9448	  # Sun C 5.9
9449	  lt_prog_compiler_pic='-KPIC'
9450	  lt_prog_compiler_static='-Bstatic'
9451	  lt_prog_compiler_wl='-Wl,'
9452	  ;;
9453	*Sun\ F*)
9454	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9455	  lt_prog_compiler_pic='-KPIC'
9456	  lt_prog_compiler_static='-Bstatic'
9457	  lt_prog_compiler_wl=''
9458	  ;;
9459	esac
9460	;;
9461      esac
9462      ;;
9463
9464    newsos6)
9465      lt_prog_compiler_pic='-KPIC'
9466      lt_prog_compiler_static='-Bstatic'
9467      ;;
9468
9469    *nto* | *qnx*)
9470      # QNX uses GNU C++, but need to define -shared option too, otherwise
9471      # it will coredump.
9472      lt_prog_compiler_pic='-fPIC -shared'
9473      ;;
9474
9475    osf3* | osf4* | osf5*)
9476      lt_prog_compiler_wl='-Wl,'
9477      # All OSF/1 code is PIC.
9478      lt_prog_compiler_static='-non_shared'
9479      ;;
9480
9481    rdos*)
9482      lt_prog_compiler_static='-non_shared'
9483      ;;
9484
9485    solaris*)
9486      lt_prog_compiler_pic='-KPIC'
9487      lt_prog_compiler_static='-Bstatic'
9488      case $cc_basename in
9489      f77* | f90* | f95*)
9490	lt_prog_compiler_wl='-Qoption ld ';;
9491      *)
9492	lt_prog_compiler_wl='-Wl,';;
9493      esac
9494      ;;
9495
9496    sunos4*)
9497      lt_prog_compiler_wl='-Qoption ld '
9498      lt_prog_compiler_pic='-PIC'
9499      lt_prog_compiler_static='-Bstatic'
9500      ;;
9501
9502    sysv4 | sysv4.2uw2* | sysv4.3*)
9503      lt_prog_compiler_wl='-Wl,'
9504      lt_prog_compiler_pic='-KPIC'
9505      lt_prog_compiler_static='-Bstatic'
9506      ;;
9507
9508    sysv4*MP*)
9509      if test -d /usr/nec ;then
9510	lt_prog_compiler_pic='-Kconform_pic'
9511	lt_prog_compiler_static='-Bstatic'
9512      fi
9513      ;;
9514
9515    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9516      lt_prog_compiler_wl='-Wl,'
9517      lt_prog_compiler_pic='-KPIC'
9518      lt_prog_compiler_static='-Bstatic'
9519      ;;
9520
9521    unicos*)
9522      lt_prog_compiler_wl='-Wl,'
9523      lt_prog_compiler_can_build_shared=no
9524      ;;
9525
9526    uts4*)
9527      lt_prog_compiler_pic='-pic'
9528      lt_prog_compiler_static='-Bstatic'
9529      ;;
9530
9531    *)
9532      lt_prog_compiler_can_build_shared=no
9533      ;;
9534    esac
9535  fi
9536
9537case $host_os in
9538  # For platforms which do not support PIC, -DPIC is meaningless:
9539  *djgpp*)
9540    lt_prog_compiler_pic=
9541    ;;
9542  *)
9543    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9544    ;;
9545esac
9546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9547$as_echo "$lt_prog_compiler_pic" >&6; }
9548
9549
9550
9551
9552
9553
9554#
9555# Check to make sure the PIC flag actually works.
9556#
9557if test -n "$lt_prog_compiler_pic"; then
9558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9559$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9560if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9561  $as_echo_n "(cached) " >&6
9562else
9563  lt_cv_prog_compiler_pic_works=no
9564   ac_outfile=conftest.$ac_objext
9565   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9566   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9567   # Insert the option either (1) after the last *FLAGS variable, or
9568   # (2) before a word containing "conftest.", or (3) at the end.
9569   # Note that $ac_compile itself does not contain backslashes and begins
9570   # with a dollar sign (not a hyphen), so the echo should work correctly.
9571   # The option is referenced via a variable to avoid confusing sed.
9572   lt_compile=`echo "$ac_compile" | $SED \
9573   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9574   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9575   -e 's:$: $lt_compiler_flag:'`
9576   (eval echo "\"\$as_me:9576: $lt_compile\"" >&5)
9577   (eval "$lt_compile" 2>conftest.err)
9578   ac_status=$?
9579   cat conftest.err >&5
9580   echo "$as_me:9580: \$? = $ac_status" >&5
9581   if (exit $ac_status) && test -s "$ac_outfile"; then
9582     # The compiler can only warn and ignore the option if not recognized
9583     # So say no if there are warnings other than the usual output.
9584     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9585     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9586     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9587       lt_cv_prog_compiler_pic_works=yes
9588     fi
9589   fi
9590   $RM conftest*
9591
9592fi
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9594$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9595
9596if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9597    case $lt_prog_compiler_pic in
9598     "" | " "*) ;;
9599     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9600     esac
9601else
9602    lt_prog_compiler_pic=
9603     lt_prog_compiler_can_build_shared=no
9604fi
9605
9606fi
9607
9608
9609
9610
9611
9612
9613#
9614# Check to make sure the static flag actually works.
9615#
9616wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9618$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9619if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9620  $as_echo_n "(cached) " >&6
9621else
9622  lt_cv_prog_compiler_static_works=no
9623   save_LDFLAGS="$LDFLAGS"
9624   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9625   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9626   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9627     # The linker can only warn and ignore the option if not recognized
9628     # So say no if there are warnings
9629     if test -s conftest.err; then
9630       # Append any errors to the config.log.
9631       cat conftest.err 1>&5
9632       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9633       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9634       if diff conftest.exp conftest.er2 >/dev/null; then
9635         lt_cv_prog_compiler_static_works=yes
9636       fi
9637     else
9638       lt_cv_prog_compiler_static_works=yes
9639     fi
9640   fi
9641   $RM -r conftest*
9642   LDFLAGS="$save_LDFLAGS"
9643
9644fi
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9646$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9647
9648if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9649    :
9650else
9651    lt_prog_compiler_static=
9652fi
9653
9654
9655
9656
9657
9658
9659
9660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9661$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9662if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9663  $as_echo_n "(cached) " >&6
9664else
9665  lt_cv_prog_compiler_c_o=no
9666   $RM -r conftest 2>/dev/null
9667   mkdir conftest
9668   cd conftest
9669   mkdir out
9670   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9671
9672   lt_compiler_flag="-o out/conftest2.$ac_objext"
9673   # Insert the option either (1) after the last *FLAGS variable, or
9674   # (2) before a word containing "conftest.", or (3) at the end.
9675   # Note that $ac_compile itself does not contain backslashes and begins
9676   # with a dollar sign (not a hyphen), so the echo should work correctly.
9677   lt_compile=`echo "$ac_compile" | $SED \
9678   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9679   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9680   -e 's:$: $lt_compiler_flag:'`
9681   (eval echo "\"\$as_me:9681: $lt_compile\"" >&5)
9682   (eval "$lt_compile" 2>out/conftest.err)
9683   ac_status=$?
9684   cat out/conftest.err >&5
9685   echo "$as_me:9685: \$? = $ac_status" >&5
9686   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9687   then
9688     # The compiler can only warn and ignore the option if not recognized
9689     # So say no if there are warnings
9690     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9691     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9692     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9693       lt_cv_prog_compiler_c_o=yes
9694     fi
9695   fi
9696   chmod u+w . 2>&5
9697   $RM conftest*
9698   # SGI C++ compiler will create directory out/ii_files/ for
9699   # template instantiation
9700   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9701   $RM out/* && rmdir out
9702   cd ..
9703   $RM -r conftest
9704   $RM conftest*
9705
9706fi
9707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9708$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9709
9710
9711
9712
9713
9714
9715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9716$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9717if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9718  $as_echo_n "(cached) " >&6
9719else
9720  lt_cv_prog_compiler_c_o=no
9721   $RM -r conftest 2>/dev/null
9722   mkdir conftest
9723   cd conftest
9724   mkdir out
9725   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9726
9727   lt_compiler_flag="-o out/conftest2.$ac_objext"
9728   # Insert the option either (1) after the last *FLAGS variable, or
9729   # (2) before a word containing "conftest.", or (3) at the end.
9730   # Note that $ac_compile itself does not contain backslashes and begins
9731   # with a dollar sign (not a hyphen), so the echo should work correctly.
9732   lt_compile=`echo "$ac_compile" | $SED \
9733   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9734   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9735   -e 's:$: $lt_compiler_flag:'`
9736   (eval echo "\"\$as_me:9736: $lt_compile\"" >&5)
9737   (eval "$lt_compile" 2>out/conftest.err)
9738   ac_status=$?
9739   cat out/conftest.err >&5
9740   echo "$as_me:9740: \$? = $ac_status" >&5
9741   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9742   then
9743     # The compiler can only warn and ignore the option if not recognized
9744     # So say no if there are warnings
9745     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9746     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9747     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9748       lt_cv_prog_compiler_c_o=yes
9749     fi
9750   fi
9751   chmod u+w . 2>&5
9752   $RM conftest*
9753   # SGI C++ compiler will create directory out/ii_files/ for
9754   # template instantiation
9755   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9756   $RM out/* && rmdir out
9757   cd ..
9758   $RM -r conftest
9759   $RM conftest*
9760
9761fi
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9763$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9764
9765
9766
9767
9768hard_links="nottested"
9769if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9770  # do not overwrite the value of need_locks provided by the user
9771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9772$as_echo_n "checking if we can lock with hard links... " >&6; }
9773  hard_links=yes
9774  $RM conftest*
9775  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9776  touch conftest.a
9777  ln conftest.a conftest.b 2>&5 || hard_links=no
9778  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9780$as_echo "$hard_links" >&6; }
9781  if test "$hard_links" = no; then
9782    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9783$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9784    need_locks=warn
9785  fi
9786else
9787  need_locks=no
9788fi
9789
9790
9791
9792
9793
9794
9795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9796$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9797
9798  runpath_var=
9799  allow_undefined_flag=
9800  always_export_symbols=no
9801  archive_cmds=
9802  archive_expsym_cmds=
9803  compiler_needs_object=no
9804  enable_shared_with_static_runtimes=no
9805  export_dynamic_flag_spec=
9806  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9807  hardcode_automatic=no
9808  hardcode_direct=no
9809  hardcode_direct_absolute=no
9810  hardcode_libdir_flag_spec=
9811  hardcode_libdir_flag_spec_ld=
9812  hardcode_libdir_separator=
9813  hardcode_minus_L=no
9814  hardcode_shlibpath_var=unsupported
9815  inherit_rpath=no
9816  link_all_deplibs=unknown
9817  module_cmds=
9818  module_expsym_cmds=
9819  old_archive_from_new_cmds=
9820  old_archive_from_expsyms_cmds=
9821  thread_safe_flag_spec=
9822  whole_archive_flag_spec=
9823  # include_expsyms should be a list of space-separated symbols to be *always*
9824  # included in the symbol list
9825  include_expsyms=
9826  # exclude_expsyms can be an extended regexp of symbols to exclude
9827  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9828  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9829  # as well as any symbol that contains `d'.
9830  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9831  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9832  # platforms (ab)use it in PIC code, but their linkers get confused if
9833  # the symbol is explicitly referenced.  Since portable code cannot
9834  # rely on this symbol name, it's probably fine to never include it in
9835  # preloaded symbol tables.
9836  # Exclude shared library initialization/finalization symbols.
9837  extract_expsyms_cmds=
9838
9839  case $host_os in
9840  cygwin* | mingw* | pw32* | cegcc*)
9841    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9842    # When not using gcc, we currently assume that we are using
9843    # Microsoft Visual C++.
9844    if test "$GCC" != yes; then
9845      with_gnu_ld=no
9846    fi
9847    ;;
9848  interix*)
9849    # we just hope/assume this is gcc and not c89 (= MSVC++)
9850    with_gnu_ld=yes
9851    ;;
9852  openbsd*)
9853    with_gnu_ld=no
9854    ;;
9855  linux* | k*bsd*-gnu)
9856    link_all_deplibs=no
9857    ;;
9858  esac
9859
9860  ld_shlibs=yes
9861  if test "$with_gnu_ld" = yes; then
9862    # If archive_cmds runs LD, not CC, wlarc should be empty
9863    wlarc='${wl}'
9864
9865    # Set some defaults for GNU ld with shared library support. These
9866    # are reset later if shared libraries are not supported. Putting them
9867    # here allows them to be overridden if necessary.
9868    runpath_var=LD_RUN_PATH
9869    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9870    export_dynamic_flag_spec='${wl}--export-dynamic'
9871    # ancient GNU ld didn't support --whole-archive et. al.
9872    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9873      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9874    else
9875      whole_archive_flag_spec=
9876    fi
9877    supports_anon_versioning=no
9878    case `$LD -v 2>&1` in
9879      *GNU\ gold*) supports_anon_versioning=yes ;;
9880      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9881      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9882      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9883      *\ 2.11.*) ;; # other 2.11 versions
9884      *) supports_anon_versioning=yes ;;
9885    esac
9886
9887    # See if GNU ld supports shared libraries.
9888    case $host_os in
9889    aix[3-9]*)
9890      # On AIX/PPC, the GNU linker is very broken
9891      if test "$host_cpu" != ia64; then
9892	ld_shlibs=no
9893	cat <<_LT_EOF 1>&2
9894
9895*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9896*** to be unable to reliably create shared libraries on AIX.
9897*** Therefore, libtool is disabling shared libraries support.  If you
9898*** really care for shared libraries, you may want to modify your PATH
9899*** so that a non-GNU linker is found, and then restart.
9900
9901_LT_EOF
9902      fi
9903      ;;
9904
9905    amigaos*)
9906      case $host_cpu in
9907      powerpc)
9908            # see comment about AmigaOS4 .so support
9909            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9910            archive_expsym_cmds=''
9911        ;;
9912      m68k)
9913            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)'
9914            hardcode_libdir_flag_spec='-L$libdir'
9915            hardcode_minus_L=yes
9916        ;;
9917      esac
9918      ;;
9919
9920    beos*)
9921      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9922	allow_undefined_flag=unsupported
9923	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9924	# support --undefined.  This deserves some investigation.  FIXME
9925	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9926      else
9927	ld_shlibs=no
9928      fi
9929      ;;
9930
9931    cygwin* | mingw* | pw32* | cegcc*)
9932      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9933      # as there is no search path for DLLs.
9934      hardcode_libdir_flag_spec='-L$libdir'
9935      allow_undefined_flag=unsupported
9936      always_export_symbols=no
9937      enable_shared_with_static_runtimes=yes
9938      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9939
9940      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9941        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9942	# If the export-symbols file already is a .def file (1st line
9943	# is EXPORTS), use it as is; otherwise, prepend...
9944	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9945	  cp $export_symbols $output_objdir/$soname.def;
9946	else
9947	  echo EXPORTS > $output_objdir/$soname.def;
9948	  cat $export_symbols >> $output_objdir/$soname.def;
9949	fi~
9950	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9951      else
9952	ld_shlibs=no
9953      fi
9954      ;;
9955
9956    interix[3-9]*)
9957      hardcode_direct=no
9958      hardcode_shlibpath_var=no
9959      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9960      export_dynamic_flag_spec='${wl}-E'
9961      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9962      # Instead, shared libraries are loaded at an image base (0x10000000 by
9963      # default) and relocated if they conflict, which is a slow very memory
9964      # consuming and fragmenting process.  To avoid this, we pick a random,
9965      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9966      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9967      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9968      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'
9969      ;;
9970
9971    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9972      tmp_diet=no
9973      if test "$host_os" = linux-dietlibc; then
9974	case $cc_basename in
9975	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9976	esac
9977      fi
9978      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9979	 && test "$tmp_diet" = no
9980      then
9981	tmp_addflag=
9982	tmp_sharedflag='-shared'
9983	case $cc_basename,$host_cpu in
9984        pgcc*)				# Portland Group C compiler
9985	  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'
9986	  tmp_addflag=' $pic_flag'
9987	  ;;
9988	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9989	  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'
9990	  tmp_addflag=' $pic_flag -Mnomain' ;;
9991	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9992	  tmp_addflag=' -i_dynamic' ;;
9993	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9994	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9995	ifc* | ifort*)			# Intel Fortran compiler
9996	  tmp_addflag=' -nofor_main' ;;
9997	lf95*)				# Lahey Fortran 8.1
9998	  whole_archive_flag_spec=
9999	  tmp_sharedflag='--shared' ;;
10000	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
10001	  tmp_sharedflag='-qmkshrobj'
10002	  tmp_addflag= ;;
10003	esac
10004	case `$CC -V 2>&1 | sed 5q` in
10005	*Sun\ C*)			# Sun C 5.9
10006	  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'
10007	  compiler_needs_object=yes
10008	  tmp_sharedflag='-G' ;;
10009	*Sun\ F*)			# Sun Fortran 8.3
10010	  tmp_sharedflag='-G' ;;
10011	esac
10012	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10013
10014        if test "x$supports_anon_versioning" = xyes; then
10015          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10016	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10017	    echo "local: *; };" >> $output_objdir/$libname.ver~
10018	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10019        fi
10020
10021	case $cc_basename in
10022	xlf*)
10023	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10024	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10025	  hardcode_libdir_flag_spec=
10026	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10027	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10028	  if test "x$supports_anon_versioning" = xyes; then
10029	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10030	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10031	      echo "local: *; };" >> $output_objdir/$libname.ver~
10032	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10033	  fi
10034	  ;;
10035	esac
10036      else
10037        ld_shlibs=no
10038      fi
10039      ;;
10040
10041    netbsd* | netbsdelf*-gnu)
10042      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10043	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10044	wlarc=
10045      else
10046	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10047	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10048      fi
10049      ;;
10050
10051    solaris*)
10052      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10053	ld_shlibs=no
10054	cat <<_LT_EOF 1>&2
10055
10056*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10057*** create shared libraries on Solaris systems.  Therefore, libtool
10058*** is disabling shared libraries support.  We urge you to upgrade GNU
10059*** binutils to release 2.9.1 or newer.  Another option is to modify
10060*** your PATH or compiler configuration so that the native linker is
10061*** used, and then restart.
10062
10063_LT_EOF
10064      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10065	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10067      else
10068	ld_shlibs=no
10069      fi
10070      ;;
10071
10072    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10073      case `$LD -v 2>&1` in
10074        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10075	ld_shlibs=no
10076	cat <<_LT_EOF 1>&2
10077
10078*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10079*** reliably create shared libraries on SCO systems.  Therefore, libtool
10080*** is disabling shared libraries support.  We urge you to upgrade GNU
10081*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10082*** your PATH or compiler configuration so that the native linker is
10083*** used, and then restart.
10084
10085_LT_EOF
10086	;;
10087	*)
10088	  # For security reasons, it is highly recommended that you always
10089	  # use absolute paths for naming shared libraries, and exclude the
10090	  # DT_RUNPATH tag from executables and libraries.  But doing so
10091	  # requires that you compile everything twice, which is a pain.
10092	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10093	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10095	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10096	  else
10097	    ld_shlibs=no
10098	  fi
10099	;;
10100      esac
10101      ;;
10102
10103    sunos4*)
10104      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10105      wlarc=
10106      hardcode_direct=yes
10107      hardcode_shlibpath_var=no
10108      ;;
10109
10110    *)
10111      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10112	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10114      else
10115	ld_shlibs=no
10116      fi
10117      ;;
10118    esac
10119
10120    if test "$ld_shlibs" = no; then
10121      runpath_var=
10122      hardcode_libdir_flag_spec=
10123      export_dynamic_flag_spec=
10124      whole_archive_flag_spec=
10125    fi
10126  else
10127    # PORTME fill in a description of your system's linker (not GNU ld)
10128    case $host_os in
10129    aix3*)
10130      allow_undefined_flag=unsupported
10131      always_export_symbols=yes
10132      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'
10133      # Note: this linker hardcodes the directories in LIBPATH if there
10134      # are no directories specified by -L.
10135      hardcode_minus_L=yes
10136      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10137	# Neither direct hardcoding nor static linking is supported with a
10138	# broken collect2.
10139	hardcode_direct=unsupported
10140      fi
10141      ;;
10142
10143    aix[4-9]*)
10144      if test "$host_cpu" = ia64; then
10145	# On IA64, the linker does run time linking by default, so we don't
10146	# have to do anything special.
10147	aix_use_runtimelinking=no
10148	exp_sym_flag='-Bexport'
10149	no_entry_flag=""
10150      else
10151	# If we're using GNU nm, then we don't want the "-C" option.
10152	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10153	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10154	  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'
10155	else
10156	  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'
10157	fi
10158	aix_use_runtimelinking=no
10159
10160	# Test if we are trying to use run time linking or normal
10161	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10162	# need to do runtime linking.
10163	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10164	  for ld_flag in $LDFLAGS; do
10165	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10166	    aix_use_runtimelinking=yes
10167	    break
10168	  fi
10169	  done
10170	  ;;
10171	esac
10172
10173	exp_sym_flag='-bexport'
10174	no_entry_flag='-bnoentry'
10175      fi
10176
10177      # When large executables or shared objects are built, AIX ld can
10178      # have problems creating the table of contents.  If linking a library
10179      # or program results in "error TOC overflow" add -mminimal-toc to
10180      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10181      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10182
10183      archive_cmds=''
10184      hardcode_direct=yes
10185      hardcode_direct_absolute=yes
10186      hardcode_libdir_separator=':'
10187      link_all_deplibs=yes
10188      file_list_spec='${wl}-f,'
10189
10190      if test "$GCC" = yes; then
10191	case $host_os in aix4.[012]|aix4.[012].*)
10192	# We only want to do this on AIX 4.2 and lower, the check
10193	# below for broken collect2 doesn't work under 4.3+
10194	  collect2name=`${CC} -print-prog-name=collect2`
10195	  if test -f "$collect2name" &&
10196	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10197	  then
10198	  # We have reworked collect2
10199	  :
10200	  else
10201	  # We have old collect2
10202	  hardcode_direct=unsupported
10203	  # It fails to find uninstalled libraries when the uninstalled
10204	  # path is not listed in the libpath.  Setting hardcode_minus_L
10205	  # to unsupported forces relinking
10206	  hardcode_minus_L=yes
10207	  hardcode_libdir_flag_spec='-L$libdir'
10208	  hardcode_libdir_separator=
10209	  fi
10210	  ;;
10211	esac
10212	shared_flag='-shared'
10213	if test "$aix_use_runtimelinking" = yes; then
10214	  shared_flag="$shared_flag "'${wl}-G'
10215	fi
10216	link_all_deplibs=no
10217      else
10218	# not using gcc
10219	if test "$host_cpu" = ia64; then
10220	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10221	# chokes on -Wl,-G. The following line is correct:
10222	  shared_flag='-G'
10223	else
10224	  if test "$aix_use_runtimelinking" = yes; then
10225	    shared_flag='${wl}-G'
10226	  else
10227	    shared_flag='${wl}-bM:SRE'
10228	  fi
10229	fi
10230      fi
10231
10232      export_dynamic_flag_spec='${wl}-bexpall'
10233      # It seems that -bexpall does not export symbols beginning with
10234      # underscore (_), so it is better to generate a list of symbols to export.
10235      always_export_symbols=yes
10236      if test "$aix_use_runtimelinking" = yes; then
10237	# Warning - without using the other runtime loading flags (-brtl),
10238	# -berok will link without error, but may produce a broken library.
10239	allow_undefined_flag='-berok'
10240        # Determine the default libpath from the value encoded in an
10241        # empty executable.
10242        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243/* end confdefs.h.  */
10244
10245int
10246main ()
10247{
10248
10249  ;
10250  return 0;
10251}
10252_ACEOF
10253if ac_fn_c_try_link "$LINENO"; then :
10254
10255lt_aix_libpath_sed='
10256    /Import File Strings/,/^$/ {
10257	/^0/ {
10258	    s/^0  *\(.*\)$/\1/
10259	    p
10260	}
10261    }'
10262aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10263# Check for a 64-bit object if we didn't find anything.
10264if test -z "$aix_libpath"; then
10265  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10266fi
10267fi
10268rm -f core conftest.err conftest.$ac_objext \
10269    conftest$ac_exeext conftest.$ac_ext
10270if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10271
10272        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10273        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"
10274      else
10275	if test "$host_cpu" = ia64; then
10276	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10277	  allow_undefined_flag="-z nodefs"
10278	  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"
10279	else
10280	 # Determine the default libpath from the value encoded in an
10281	 # empty executable.
10282	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283/* end confdefs.h.  */
10284
10285int
10286main ()
10287{
10288
10289  ;
10290  return 0;
10291}
10292_ACEOF
10293if ac_fn_c_try_link "$LINENO"; then :
10294
10295lt_aix_libpath_sed='
10296    /Import File Strings/,/^$/ {
10297	/^0/ {
10298	    s/^0  *\(.*\)$/\1/
10299	    p
10300	}
10301    }'
10302aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10303# Check for a 64-bit object if we didn't find anything.
10304if test -z "$aix_libpath"; then
10305  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10306fi
10307fi
10308rm -f core conftest.err conftest.$ac_objext \
10309    conftest$ac_exeext conftest.$ac_ext
10310if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10311
10312	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10313	  # Warning - without using the other run time loading flags,
10314	  # -berok will link without error, but may produce a broken library.
10315	  no_undefined_flag=' ${wl}-bernotok'
10316	  allow_undefined_flag=' ${wl}-berok'
10317	  # Exported symbols can be pulled into shared objects from archives
10318	  whole_archive_flag_spec='$convenience'
10319	  archive_cmds_need_lc=yes
10320	  # This is similar to how AIX traditionally builds its shared libraries.
10321	  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'
10322	fi
10323      fi
10324      ;;
10325
10326    amigaos*)
10327      case $host_cpu in
10328      powerpc)
10329            # see comment about AmigaOS4 .so support
10330            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10331            archive_expsym_cmds=''
10332        ;;
10333      m68k)
10334            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)'
10335            hardcode_libdir_flag_spec='-L$libdir'
10336            hardcode_minus_L=yes
10337        ;;
10338      esac
10339      ;;
10340
10341    bsdi[45]*)
10342      export_dynamic_flag_spec=-rdynamic
10343      ;;
10344
10345    cygwin* | mingw* | pw32* | cegcc*)
10346      # When not using gcc, we currently assume that we are using
10347      # Microsoft Visual C++.
10348      # hardcode_libdir_flag_spec is actually meaningless, as there is
10349      # no search path for DLLs.
10350      hardcode_libdir_flag_spec=' '
10351      allow_undefined_flag=unsupported
10352      # Tell ltmain to make .lib files, not .a files.
10353      libext=lib
10354      # Tell ltmain to make .dll files, not .so files.
10355      shrext_cmds=".dll"
10356      # FIXME: Setting linknames here is a bad hack.
10357      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10358      # The linker will automatically build a .lib file if we build a DLL.
10359      old_archive_from_new_cmds='true'
10360      # FIXME: Should let the user specify the lib program.
10361      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10362      fix_srcfile_path='`cygpath -w "$srcfile"`'
10363      enable_shared_with_static_runtimes=yes
10364      ;;
10365
10366    darwin* | rhapsody*)
10367
10368
10369  archive_cmds_need_lc=no
10370  hardcode_direct=no
10371  hardcode_automatic=yes
10372  hardcode_shlibpath_var=unsupported
10373  whole_archive_flag_spec=''
10374  link_all_deplibs=yes
10375  allow_undefined_flag="$_lt_dar_allow_undefined"
10376  case $cc_basename in
10377     ifort*) _lt_dar_can_shared=yes ;;
10378     *) _lt_dar_can_shared=$GCC ;;
10379  esac
10380  if test "$_lt_dar_can_shared" = "yes"; then
10381    output_verbose_link_cmd=echo
10382    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10383    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10384    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}"
10385    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}"
10386
10387  else
10388  ld_shlibs=no
10389  fi
10390
10391      ;;
10392
10393    dgux*)
10394      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395      hardcode_libdir_flag_spec='-L$libdir'
10396      hardcode_shlibpath_var=no
10397      ;;
10398
10399    freebsd1*)
10400      ld_shlibs=no
10401      ;;
10402
10403    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10404    # support.  Future versions do this automatically, but an explicit c++rt0.o
10405    # does not break anything, and helps significantly (at the cost of a little
10406    # extra space).
10407    freebsd2.2*)
10408      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10409      hardcode_libdir_flag_spec='-R$libdir'
10410      hardcode_direct=yes
10411      hardcode_shlibpath_var=no
10412      ;;
10413
10414    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10415    freebsd2*)
10416      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10417      hardcode_direct=yes
10418      hardcode_minus_L=yes
10419      hardcode_shlibpath_var=no
10420      ;;
10421
10422    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10423    freebsd* | dragonfly*)
10424      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10425      hardcode_libdir_flag_spec='-R$libdir'
10426      hardcode_direct=yes
10427      hardcode_shlibpath_var=no
10428      ;;
10429
10430    hpux9*)
10431      if test "$GCC" = yes; then
10432	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'
10433      else
10434	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'
10435      fi
10436      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10437      hardcode_libdir_separator=:
10438      hardcode_direct=yes
10439
10440      # hardcode_minus_L: Not really in the search PATH,
10441      # but as the default location of the library.
10442      hardcode_minus_L=yes
10443      export_dynamic_flag_spec='${wl}-E'
10444      ;;
10445
10446    hpux10*)
10447      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10448	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10449      else
10450	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10451      fi
10452      if test "$with_gnu_ld" = no; then
10453	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10454	hardcode_libdir_flag_spec_ld='+b $libdir'
10455	hardcode_libdir_separator=:
10456	hardcode_direct=yes
10457	hardcode_direct_absolute=yes
10458	export_dynamic_flag_spec='${wl}-E'
10459	# hardcode_minus_L: Not really in the search PATH,
10460	# but as the default location of the library.
10461	hardcode_minus_L=yes
10462      fi
10463      ;;
10464
10465    hpux11*)
10466      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10467	case $host_cpu in
10468	hppa*64*)
10469	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10470	  ;;
10471	ia64*)
10472	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10473	  ;;
10474	*)
10475	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10476	  ;;
10477	esac
10478      else
10479	case $host_cpu in
10480	hppa*64*)
10481	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10482	  ;;
10483	ia64*)
10484	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10485	  ;;
10486	*)
10487	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10488	  ;;
10489	esac
10490      fi
10491      if test "$with_gnu_ld" = no; then
10492	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10493	hardcode_libdir_separator=:
10494
10495	case $host_cpu in
10496	hppa*64*|ia64*)
10497	  hardcode_direct=no
10498	  hardcode_shlibpath_var=no
10499	  ;;
10500	*)
10501	  hardcode_direct=yes
10502	  hardcode_direct_absolute=yes
10503	  export_dynamic_flag_spec='${wl}-E'
10504
10505	  # hardcode_minus_L: Not really in the search PATH,
10506	  # but as the default location of the library.
10507	  hardcode_minus_L=yes
10508	  ;;
10509	esac
10510      fi
10511      ;;
10512
10513    irix5* | irix6* | nonstopux*)
10514      if test "$GCC" = yes; then
10515	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'
10516	# Try to use the -exported_symbol ld option, if it does not
10517	# work, assume that -exports_file does not work either and
10518	# implicitly export all symbols.
10519        save_LDFLAGS="$LDFLAGS"
10520        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10521        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522/* end confdefs.h.  */
10523int foo(void) {}
10524_ACEOF
10525if ac_fn_c_try_link "$LINENO"; then :
10526  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'
10527
10528fi
10529rm -f core conftest.err conftest.$ac_objext \
10530    conftest$ac_exeext conftest.$ac_ext
10531        LDFLAGS="$save_LDFLAGS"
10532      else
10533	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'
10534	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'
10535      fi
10536      archive_cmds_need_lc='no'
10537      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10538      hardcode_libdir_separator=:
10539      inherit_rpath=yes
10540      link_all_deplibs=yes
10541      ;;
10542
10543    netbsd* | netbsdelf*-gnu)
10544      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10545	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10546      else
10547	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10548      fi
10549      hardcode_libdir_flag_spec='-R$libdir'
10550      hardcode_direct=yes
10551      hardcode_shlibpath_var=no
10552      ;;
10553
10554    newsos6)
10555      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556      hardcode_direct=yes
10557      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558      hardcode_libdir_separator=:
10559      hardcode_shlibpath_var=no
10560      ;;
10561
10562    *nto* | *qnx*)
10563      ;;
10564
10565    openbsd*)
10566      if test -f /usr/libexec/ld.so; then
10567	hardcode_direct=yes
10568	hardcode_shlibpath_var=no
10569	hardcode_direct_absolute=yes
10570	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10571	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10572	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10573	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10574	  export_dynamic_flag_spec='${wl}-E'
10575	else
10576	  case $host_os in
10577	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10578	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10579	     hardcode_libdir_flag_spec='-R$libdir'
10580	     ;;
10581	   *)
10582	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10583	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10584	     ;;
10585	  esac
10586	fi
10587      else
10588	ld_shlibs=no
10589      fi
10590      ;;
10591
10592    os2*)
10593      hardcode_libdir_flag_spec='-L$libdir'
10594      hardcode_minus_L=yes
10595      allow_undefined_flag=unsupported
10596      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'
10597      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10598      ;;
10599
10600    osf3*)
10601      if test "$GCC" = yes; then
10602	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10603	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'
10604      else
10605	allow_undefined_flag=' -expect_unresolved \*'
10606	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'
10607      fi
10608      archive_cmds_need_lc='no'
10609      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10610      hardcode_libdir_separator=:
10611      ;;
10612
10613    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10614      if test "$GCC" = yes; then
10615	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10616	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'
10617	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10618      else
10619	allow_undefined_flag=' -expect_unresolved \*'
10620	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'
10621	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~
10622	$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'
10623
10624	# Both c and cxx compiler support -rpath directly
10625	hardcode_libdir_flag_spec='-rpath $libdir'
10626      fi
10627      archive_cmds_need_lc='no'
10628      hardcode_libdir_separator=:
10629      ;;
10630
10631    solaris*)
10632      no_undefined_flag=' -z defs'
10633      if test "$GCC" = yes; then
10634	wlarc='${wl}'
10635	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10636	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10637	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10638      else
10639	case `$CC -V 2>&1` in
10640	*"Compilers 5.0"*)
10641	  wlarc=''
10642	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10644	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10645	  ;;
10646	*)
10647	  wlarc='${wl}'
10648	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10649	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10650	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10651	  ;;
10652	esac
10653      fi
10654      hardcode_libdir_flag_spec='-R$libdir'
10655      hardcode_shlibpath_var=no
10656      case $host_os in
10657      solaris2.[0-5] | solaris2.[0-5].*) ;;
10658      *)
10659	# The compiler driver will combine and reorder linker options,
10660	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10661	# but is careful enough not to reorder.
10662	# Supported since Solaris 2.6 (maybe 2.5.1?)
10663	if test "$GCC" = yes; then
10664	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10665	else
10666	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10667	fi
10668	;;
10669      esac
10670      link_all_deplibs=yes
10671      ;;
10672
10673    sunos4*)
10674      if test "x$host_vendor" = xsequent; then
10675	# Use $CC to link under sequent, because it throws in some extra .o
10676	# files that make .init and .fini sections work.
10677	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10678      else
10679	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10680      fi
10681      hardcode_libdir_flag_spec='-L$libdir'
10682      hardcode_direct=yes
10683      hardcode_minus_L=yes
10684      hardcode_shlibpath_var=no
10685      ;;
10686
10687    sysv4)
10688      case $host_vendor in
10689	sni)
10690	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691	  hardcode_direct=yes # is this really true???
10692	;;
10693	siemens)
10694	  ## LD is ld it makes a PLAMLIB
10695	  ## CC just makes a GrossModule.
10696	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10697	  reload_cmds='$CC -r -o $output$reload_objs'
10698	  hardcode_direct=no
10699        ;;
10700	motorola)
10701	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10702	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10703	;;
10704      esac
10705      runpath_var='LD_RUN_PATH'
10706      hardcode_shlibpath_var=no
10707      ;;
10708
10709    sysv4.3*)
10710      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711      hardcode_shlibpath_var=no
10712      export_dynamic_flag_spec='-Bexport'
10713      ;;
10714
10715    sysv4*MP*)
10716      if test -d /usr/nec; then
10717	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718	hardcode_shlibpath_var=no
10719	runpath_var=LD_RUN_PATH
10720	hardcode_runpath_var=yes
10721	ld_shlibs=yes
10722      fi
10723      ;;
10724
10725    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10726      no_undefined_flag='${wl}-z,text'
10727      archive_cmds_need_lc=no
10728      hardcode_shlibpath_var=no
10729      runpath_var='LD_RUN_PATH'
10730
10731      if test "$GCC" = yes; then
10732	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734      else
10735	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737      fi
10738      ;;
10739
10740    sysv5* | sco3.2v5* | sco5v6*)
10741      # Note: We can NOT use -z defs as we might desire, because we do not
10742      # link with -lc, and that would cause any symbols used from libc to
10743      # always be unresolved, which means just about no library would
10744      # ever link correctly.  If we're not using GNU ld we use -z text
10745      # though, which does catch some bad symbols but isn't as heavy-handed
10746      # as -z defs.
10747      no_undefined_flag='${wl}-z,text'
10748      allow_undefined_flag='${wl}-z,nodefs'
10749      archive_cmds_need_lc=no
10750      hardcode_shlibpath_var=no
10751      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10752      hardcode_libdir_separator=':'
10753      link_all_deplibs=yes
10754      export_dynamic_flag_spec='${wl}-Bexport'
10755      runpath_var='LD_RUN_PATH'
10756
10757      if test "$GCC" = yes; then
10758	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760      else
10761	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763      fi
10764      ;;
10765
10766    uts4*)
10767      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768      hardcode_libdir_flag_spec='-L$libdir'
10769      hardcode_shlibpath_var=no
10770      ;;
10771
10772    *)
10773      ld_shlibs=no
10774      ;;
10775    esac
10776
10777    if test x$host_vendor = xsni; then
10778      case $host in
10779      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10780	export_dynamic_flag_spec='${wl}-Blargedynsym'
10781	;;
10782      esac
10783    fi
10784  fi
10785
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10787$as_echo "$ld_shlibs" >&6; }
10788test "$ld_shlibs" = no && can_build_shared=no
10789
10790with_gnu_ld=$with_gnu_ld
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806#
10807# Do we need to explicitly link libc?
10808#
10809case "x$archive_cmds_need_lc" in
10810x|xyes)
10811  # Assume -lc should be added
10812  archive_cmds_need_lc=yes
10813
10814  if test "$enable_shared" = yes && test "$GCC" = yes; then
10815    case $archive_cmds in
10816    *'~'*)
10817      # FIXME: we may have to deal with multi-command sequences.
10818      ;;
10819    '$CC '*)
10820      # Test whether the compiler implicitly links with -lc since on some
10821      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10822      # to ld, don't add -lc before -lgcc.
10823      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10824$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10825      $RM conftest*
10826      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10827
10828      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10829  (eval $ac_compile) 2>&5
10830  ac_status=$?
10831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10832  test $ac_status = 0; } 2>conftest.err; then
10833        soname=conftest
10834        lib=conftest
10835        libobjs=conftest.$ac_objext
10836        deplibs=
10837        wl=$lt_prog_compiler_wl
10838	pic_flag=$lt_prog_compiler_pic
10839        compiler_flags=-v
10840        linker_flags=-v
10841        verstring=
10842        output_objdir=.
10843        libname=conftest
10844        lt_save_allow_undefined_flag=$allow_undefined_flag
10845        allow_undefined_flag=
10846        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10847  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10848  ac_status=$?
10849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850  test $ac_status = 0; }
10851        then
10852	  archive_cmds_need_lc=no
10853        else
10854	  archive_cmds_need_lc=yes
10855        fi
10856        allow_undefined_flag=$lt_save_allow_undefined_flag
10857      else
10858        cat conftest.err 1>&5
10859      fi
10860      $RM conftest*
10861      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10862$as_echo "$archive_cmds_need_lc" >&6; }
10863      ;;
10864    esac
10865  fi
10866  ;;
10867esac
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11026$as_echo_n "checking dynamic linker characteristics... " >&6; }
11027
11028if test "$GCC" = yes; then
11029  case $host_os in
11030    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11031    *) lt_awk_arg="/^libraries:/" ;;
11032  esac
11033  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11034  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11035    # if the path contains ";" then we assume it to be the separator
11036    # otherwise default to the standard path separator (i.e. ":") - it is
11037    # assumed that no part of a normal pathname contains ";" but that should
11038    # okay in the real world where ";" in dirpaths is itself problematic.
11039    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11040  else
11041    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11042  fi
11043  # Ok, now we have the path, separated by spaces, we can step through it
11044  # and add multilib dir if necessary.
11045  lt_tmp_lt_search_path_spec=
11046  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11047  for lt_sys_path in $lt_search_path_spec; do
11048    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11049      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11050    else
11051      test -d "$lt_sys_path" && \
11052	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11053    fi
11054  done
11055  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11056BEGIN {RS=" "; FS="/|\n";} {
11057  lt_foo="";
11058  lt_count=0;
11059  for (lt_i = NF; lt_i > 0; lt_i--) {
11060    if ($lt_i != "" && $lt_i != ".") {
11061      if ($lt_i == "..") {
11062        lt_count++;
11063      } else {
11064        if (lt_count == 0) {
11065          lt_foo="/" $lt_i lt_foo;
11066        } else {
11067          lt_count--;
11068        }
11069      }
11070    }
11071  }
11072  if (lt_foo != "") { lt_freq[lt_foo]++; }
11073  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11074}'`
11075  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11076else
11077  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11078fi
11079library_names_spec=
11080libname_spec='lib$name'
11081soname_spec=
11082shrext_cmds=".so"
11083postinstall_cmds=
11084postuninstall_cmds=
11085finish_cmds=
11086finish_eval=
11087shlibpath_var=
11088shlibpath_overrides_runpath=unknown
11089version_type=none
11090dynamic_linker="$host_os ld.so"
11091sys_lib_dlsearch_path_spec="/lib /usr/lib"
11092need_lib_prefix=unknown
11093hardcode_into_libs=no
11094
11095# when you set need_version to no, make sure it does not cause -set_version
11096# flags to be left without arguments
11097need_version=unknown
11098
11099case $host_os in
11100aix3*)
11101  version_type=linux
11102  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11103  shlibpath_var=LIBPATH
11104
11105  # AIX 3 has no versioning support, so we append a major version to the name.
11106  soname_spec='${libname}${release}${shared_ext}$major'
11107  ;;
11108
11109aix[4-9]*)
11110  version_type=linux
11111  need_lib_prefix=no
11112  need_version=no
11113  hardcode_into_libs=yes
11114  if test "$host_cpu" = ia64; then
11115    # AIX 5 supports IA64
11116    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11117    shlibpath_var=LD_LIBRARY_PATH
11118  else
11119    # With GCC up to 2.95.x, collect2 would create an import file
11120    # for dependence libraries.  The import file would start with
11121    # the line `#! .'.  This would cause the generated library to
11122    # depend on `.', always an invalid library.  This was fixed in
11123    # development snapshots of GCC prior to 3.0.
11124    case $host_os in
11125      aix4 | aix4.[01] | aix4.[01].*)
11126      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11127	   echo ' yes '
11128	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11129	:
11130      else
11131	can_build_shared=no
11132      fi
11133      ;;
11134    esac
11135    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11136    # soname into executable. Probably we can add versioning support to
11137    # collect2, so additional links can be useful in future.
11138    if test "$aix_use_runtimelinking" = yes; then
11139      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11140      # instead of lib<name>.a to let people know that these are not
11141      # typical AIX shared libraries.
11142      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143    else
11144      # We preserve .a as extension for shared libraries through AIX4.2
11145      # and later when we are not doing run time linking.
11146      library_names_spec='${libname}${release}.a $libname.a'
11147      soname_spec='${libname}${release}${shared_ext}$major'
11148    fi
11149    shlibpath_var=LIBPATH
11150  fi
11151  ;;
11152
11153amigaos*)
11154  case $host_cpu in
11155  powerpc)
11156    # Since July 2007 AmigaOS4 officially supports .so libraries.
11157    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11158    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159    ;;
11160  m68k)
11161    library_names_spec='$libname.ixlibrary $libname.a'
11162    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11163    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'
11164    ;;
11165  esac
11166  ;;
11167
11168beos*)
11169  library_names_spec='${libname}${shared_ext}'
11170  dynamic_linker="$host_os ld.so"
11171  shlibpath_var=LIBRARY_PATH
11172  ;;
11173
11174bsdi[45]*)
11175  version_type=linux
11176  need_version=no
11177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178  soname_spec='${libname}${release}${shared_ext}$major'
11179  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11180  shlibpath_var=LD_LIBRARY_PATH
11181  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11182  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11183  # the default ld.so.conf also contains /usr/contrib/lib and
11184  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11185  # libtool to hard-code these into programs
11186  ;;
11187
11188cygwin* | mingw* | pw32* | cegcc*)
11189  version_type=windows
11190  shrext_cmds=".dll"
11191  need_version=no
11192  need_lib_prefix=no
11193
11194  case $GCC,$host_os in
11195  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11196    library_names_spec='$libname.dll.a'
11197    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11198    postinstall_cmds='base_file=`basename \${file}`~
11199      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11200      dldir=$destdir/`dirname \$dlpath`~
11201      test -d \$dldir || mkdir -p \$dldir~
11202      $install_prog $dir/$dlname \$dldir/$dlname~
11203      chmod a+x \$dldir/$dlname~
11204      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11205        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11206      fi'
11207    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11208      dlpath=$dir/\$dldll~
11209       $RM \$dlpath'
11210    shlibpath_overrides_runpath=yes
11211
11212    case $host_os in
11213    cygwin*)
11214      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11215      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11216      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11217      ;;
11218    mingw* | cegcc*)
11219      # MinGW DLLs use traditional 'lib' prefix
11220      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11221      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11222      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11223        # It is most probably a Windows format PATH printed by
11224        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11225        # path with ; separators, and with drive letters. We can handle the
11226        # drive letters (cygwin fileutils understands them), so leave them,
11227        # especially as we might pass files found there to a mingw objdump,
11228        # which wouldn't understand a cygwinified path. Ahh.
11229        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11230      else
11231        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11232      fi
11233      ;;
11234    pw32*)
11235      # pw32 DLLs use 'pw' prefix rather than 'lib'
11236      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11237      ;;
11238    esac
11239    ;;
11240
11241  *)
11242    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11243    ;;
11244  esac
11245  dynamic_linker='Win32 ld.exe'
11246  # FIXME: first we should search . and the directory the executable is in
11247  shlibpath_var=PATH
11248  ;;
11249
11250darwin* | rhapsody*)
11251  dynamic_linker="$host_os dyld"
11252  version_type=darwin
11253  need_lib_prefix=no
11254  need_version=no
11255  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11256  soname_spec='${libname}${release}${major}$shared_ext'
11257  shlibpath_overrides_runpath=yes
11258  shlibpath_var=DYLD_LIBRARY_PATH
11259  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11260
11261  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11262  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11263  ;;
11264
11265dgux*)
11266  version_type=linux
11267  need_lib_prefix=no
11268  need_version=no
11269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11270  soname_spec='${libname}${release}${shared_ext}$major'
11271  shlibpath_var=LD_LIBRARY_PATH
11272  ;;
11273
11274freebsd1*)
11275  dynamic_linker=no
11276  ;;
11277
11278freebsd* | dragonfly*)
11279  # DragonFly does not have aout.  When/if they implement a new
11280  # versioning mechanism, adjust this.
11281  if test -x /usr/bin/objformat; then
11282    objformat=`/usr/bin/objformat`
11283  else
11284    case $host_os in
11285    freebsd[123]*) objformat=aout ;;
11286    *) objformat=elf ;;
11287    esac
11288  fi
11289  version_type=freebsd-$objformat
11290  case $version_type in
11291    freebsd-elf*)
11292      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11293      need_version=no
11294      need_lib_prefix=no
11295      ;;
11296    freebsd-*)
11297      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11298      need_version=yes
11299      ;;
11300  esac
11301  shlibpath_var=LD_LIBRARY_PATH
11302  case $host_os in
11303  freebsd2*)
11304    shlibpath_overrides_runpath=yes
11305    ;;
11306  freebsd3.[01]* | freebsdelf3.[01]*)
11307    shlibpath_overrides_runpath=yes
11308    hardcode_into_libs=yes
11309    ;;
11310  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11311  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11312    shlibpath_overrides_runpath=no
11313    hardcode_into_libs=yes
11314    ;;
11315  *) # from 4.6 on, and DragonFly
11316    shlibpath_overrides_runpath=yes
11317    hardcode_into_libs=yes
11318    ;;
11319  esac
11320  ;;
11321
11322gnu*)
11323  version_type=linux
11324  need_lib_prefix=no
11325  need_version=no
11326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11327  soname_spec='${libname}${release}${shared_ext}$major'
11328  shlibpath_var=LD_LIBRARY_PATH
11329  hardcode_into_libs=yes
11330  ;;
11331
11332hpux9* | hpux10* | hpux11*)
11333  # Give a soname corresponding to the major version so that dld.sl refuses to
11334  # link against other versions.
11335  version_type=sunos
11336  need_lib_prefix=no
11337  need_version=no
11338  case $host_cpu in
11339  ia64*)
11340    shrext_cmds='.so'
11341    hardcode_into_libs=yes
11342    dynamic_linker="$host_os dld.so"
11343    shlibpath_var=LD_LIBRARY_PATH
11344    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11345    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346    soname_spec='${libname}${release}${shared_ext}$major'
11347    if test "X$HPUX_IA64_MODE" = X32; then
11348      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11349    else
11350      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11351    fi
11352    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11353    ;;
11354  hppa*64*)
11355    shrext_cmds='.sl'
11356    hardcode_into_libs=yes
11357    dynamic_linker="$host_os dld.sl"
11358    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11359    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11360    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361    soname_spec='${libname}${release}${shared_ext}$major'
11362    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11363    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11364    ;;
11365  *)
11366    shrext_cmds='.sl'
11367    dynamic_linker="$host_os dld.sl"
11368    shlibpath_var=SHLIB_PATH
11369    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11370    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371    soname_spec='${libname}${release}${shared_ext}$major'
11372    ;;
11373  esac
11374  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11375  postinstall_cmds='chmod 555 $lib'
11376  ;;
11377
11378interix[3-9]*)
11379  version_type=linux
11380  need_lib_prefix=no
11381  need_version=no
11382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11383  soname_spec='${libname}${release}${shared_ext}$major'
11384  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11385  shlibpath_var=LD_LIBRARY_PATH
11386  shlibpath_overrides_runpath=no
11387  hardcode_into_libs=yes
11388  ;;
11389
11390irix5* | irix6* | nonstopux*)
11391  case $host_os in
11392    nonstopux*) version_type=nonstopux ;;
11393    *)
11394	if test "$lt_cv_prog_gnu_ld" = yes; then
11395		version_type=linux
11396	else
11397		version_type=irix
11398	fi ;;
11399  esac
11400  need_lib_prefix=no
11401  need_version=no
11402  soname_spec='${libname}${release}${shared_ext}$major'
11403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11404  case $host_os in
11405  irix5* | nonstopux*)
11406    libsuff= shlibsuff=
11407    ;;
11408  *)
11409    case $LD in # libtool.m4 will add one of these switches to LD
11410    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11411      libsuff= shlibsuff= libmagic=32-bit;;
11412    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11413      libsuff=32 shlibsuff=N32 libmagic=N32;;
11414    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11415      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11416    *) libsuff= shlibsuff= libmagic=never-match;;
11417    esac
11418    ;;
11419  esac
11420  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11421  shlibpath_overrides_runpath=no
11422  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11423  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11424  hardcode_into_libs=yes
11425  ;;
11426
11427# No shared lib support for Linux oldld, aout, or coff.
11428linux*oldld* | linux*aout* | linux*coff*)
11429  dynamic_linker=no
11430  ;;
11431
11432# This must be Linux ELF.
11433linux* | k*bsd*-gnu | kopensolaris*-gnu)
11434  version_type=linux
11435  need_lib_prefix=no
11436  need_version=no
11437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438  soname_spec='${libname}${release}${shared_ext}$major'
11439  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11440  shlibpath_var=LD_LIBRARY_PATH
11441  shlibpath_overrides_runpath=no
11442  # Some binutils ld are patched to set DT_RUNPATH
11443  save_LDFLAGS=$LDFLAGS
11444  save_libdir=$libdir
11445  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11446       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448/* end confdefs.h.  */
11449
11450int
11451main ()
11452{
11453
11454  ;
11455  return 0;
11456}
11457_ACEOF
11458if ac_fn_c_try_link "$LINENO"; then :
11459  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11460  shlibpath_overrides_runpath=yes
11461fi
11462fi
11463rm -f core conftest.err conftest.$ac_objext \
11464    conftest$ac_exeext conftest.$ac_ext
11465  LDFLAGS=$save_LDFLAGS
11466  libdir=$save_libdir
11467
11468  # This implies no fast_install, which is unacceptable.
11469  # Some rework will be needed to allow for fast_install
11470  # before this can be enabled.
11471  hardcode_into_libs=yes
11472
11473  # Append ld.so.conf contents to the search path
11474  if test -f /etc/ld.so.conf; then
11475    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' ' '`
11476    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11477  fi
11478
11479  # We used to test for /lib/ld.so.1 and disable shared libraries on
11480  # powerpc, because MkLinux only supported shared libraries with the
11481  # GNU dynamic linker.  Since this was broken with cross compilers,
11482  # most powerpc-linux boxes support dynamic linking these days and
11483  # people can always --disable-shared, the test was removed, and we
11484  # assume the GNU/Linux dynamic linker is in use.
11485  dynamic_linker='GNU/Linux ld.so'
11486  ;;
11487
11488netbsdelf*-gnu)
11489  version_type=linux
11490  need_lib_prefix=no
11491  need_version=no
11492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11493  soname_spec='${libname}${release}${shared_ext}$major'
11494  shlibpath_var=LD_LIBRARY_PATH
11495  shlibpath_overrides_runpath=no
11496  hardcode_into_libs=yes
11497  dynamic_linker='NetBSD ld.elf_so'
11498  ;;
11499
11500netbsd*)
11501  version_type=sunos
11502  need_lib_prefix=no
11503  need_version=no
11504  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11505    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11506    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11507    dynamic_linker='NetBSD (a.out) ld.so'
11508  else
11509    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11510    soname_spec='${libname}${release}${shared_ext}$major'
11511    dynamic_linker='NetBSD ld.elf_so'
11512  fi
11513  shlibpath_var=LD_LIBRARY_PATH
11514  shlibpath_overrides_runpath=yes
11515  hardcode_into_libs=yes
11516  ;;
11517
11518newsos6)
11519  version_type=linux
11520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521  shlibpath_var=LD_LIBRARY_PATH
11522  shlibpath_overrides_runpath=yes
11523  ;;
11524
11525*nto* | *qnx*)
11526  version_type=qnx
11527  need_lib_prefix=no
11528  need_version=no
11529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530  soname_spec='${libname}${release}${shared_ext}$major'
11531  shlibpath_var=LD_LIBRARY_PATH
11532  shlibpath_overrides_runpath=no
11533  hardcode_into_libs=yes
11534  dynamic_linker='ldqnx.so'
11535  ;;
11536
11537openbsd*)
11538  version_type=sunos
11539  sys_lib_dlsearch_path_spec="/usr/lib"
11540  need_lib_prefix=no
11541  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11542  case $host_os in
11543    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11544    *)				need_version=no  ;;
11545  esac
11546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11547  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11548  shlibpath_var=LD_LIBRARY_PATH
11549  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11550    case $host_os in
11551      openbsd2.[89] | openbsd2.[89].*)
11552	shlibpath_overrides_runpath=no
11553	;;
11554      *)
11555	shlibpath_overrides_runpath=yes
11556	;;
11557      esac
11558  else
11559    shlibpath_overrides_runpath=yes
11560  fi
11561  ;;
11562
11563os2*)
11564  libname_spec='$name'
11565  shrext_cmds=".dll"
11566  need_lib_prefix=no
11567  library_names_spec='$libname${shared_ext} $libname.a'
11568  dynamic_linker='OS/2 ld.exe'
11569  shlibpath_var=LIBPATH
11570  ;;
11571
11572osf3* | osf4* | osf5*)
11573  version_type=osf
11574  need_lib_prefix=no
11575  need_version=no
11576  soname_spec='${libname}${release}${shared_ext}$major'
11577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578  shlibpath_var=LD_LIBRARY_PATH
11579  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11580  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11581  ;;
11582
11583rdos*)
11584  dynamic_linker=no
11585  ;;
11586
11587solaris*)
11588  version_type=linux
11589  need_lib_prefix=no
11590  need_version=no
11591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592  soname_spec='${libname}${release}${shared_ext}$major'
11593  shlibpath_var=LD_LIBRARY_PATH
11594  shlibpath_overrides_runpath=yes
11595  hardcode_into_libs=yes
11596  # ldd complains unless libraries are executable
11597  postinstall_cmds='chmod +x $lib'
11598  ;;
11599
11600sunos4*)
11601  version_type=sunos
11602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11603  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11604  shlibpath_var=LD_LIBRARY_PATH
11605  shlibpath_overrides_runpath=yes
11606  if test "$with_gnu_ld" = yes; then
11607    need_lib_prefix=no
11608  fi
11609  need_version=yes
11610  ;;
11611
11612sysv4 | sysv4.3*)
11613  version_type=linux
11614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615  soname_spec='${libname}${release}${shared_ext}$major'
11616  shlibpath_var=LD_LIBRARY_PATH
11617  case $host_vendor in
11618    sni)
11619      shlibpath_overrides_runpath=no
11620      need_lib_prefix=no
11621      runpath_var=LD_RUN_PATH
11622      ;;
11623    siemens)
11624      need_lib_prefix=no
11625      ;;
11626    motorola)
11627      need_lib_prefix=no
11628      need_version=no
11629      shlibpath_overrides_runpath=no
11630      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11631      ;;
11632  esac
11633  ;;
11634
11635sysv4*MP*)
11636  if test -d /usr/nec ;then
11637    version_type=linux
11638    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11639    soname_spec='$libname${shared_ext}.$major'
11640    shlibpath_var=LD_LIBRARY_PATH
11641  fi
11642  ;;
11643
11644sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11645  version_type=freebsd-elf
11646  need_lib_prefix=no
11647  need_version=no
11648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11649  soname_spec='${libname}${release}${shared_ext}$major'
11650  shlibpath_var=LD_LIBRARY_PATH
11651  shlibpath_overrides_runpath=yes
11652  hardcode_into_libs=yes
11653  if test "$with_gnu_ld" = yes; then
11654    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11655  else
11656    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11657    case $host_os in
11658      sco3.2v5*)
11659        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11660	;;
11661    esac
11662  fi
11663  sys_lib_dlsearch_path_spec='/usr/lib'
11664  ;;
11665
11666tpf*)
11667  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11668  version_type=linux
11669  need_lib_prefix=no
11670  need_version=no
11671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672  shlibpath_var=LD_LIBRARY_PATH
11673  shlibpath_overrides_runpath=no
11674  hardcode_into_libs=yes
11675  ;;
11676
11677uts4*)
11678  version_type=linux
11679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680  soname_spec='${libname}${release}${shared_ext}$major'
11681  shlibpath_var=LD_LIBRARY_PATH
11682  ;;
11683
11684*)
11685  dynamic_linker=no
11686  ;;
11687esac
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11689$as_echo "$dynamic_linker" >&6; }
11690test "$dynamic_linker" = no && can_build_shared=no
11691
11692variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11693if test "$GCC" = yes; then
11694  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11695fi
11696
11697if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11698  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11699fi
11700if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11701  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11702fi
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11791$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11792hardcode_action=
11793if test -n "$hardcode_libdir_flag_spec" ||
11794   test -n "$runpath_var" ||
11795   test "X$hardcode_automatic" = "Xyes" ; then
11796
11797  # We can hardcode non-existent directories.
11798  if test "$hardcode_direct" != no &&
11799     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11800     # have to relink, otherwise we might link with an installed library
11801     # when we should be linking with a yet-to-be-installed one
11802     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11803     test "$hardcode_minus_L" != no; then
11804    # Linking always hardcodes the temporary library directory.
11805    hardcode_action=relink
11806  else
11807    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11808    hardcode_action=immediate
11809  fi
11810else
11811  # We cannot hardcode anything, or else we can only hardcode existing
11812  # directories.
11813  hardcode_action=unsupported
11814fi
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11816$as_echo "$hardcode_action" >&6; }
11817
11818if test "$hardcode_action" = relink ||
11819   test "$inherit_rpath" = yes; then
11820  # Fast installation is not supported
11821  enable_fast_install=no
11822elif test "$shlibpath_overrides_runpath" = yes ||
11823     test "$enable_shared" = no; then
11824  # Fast installation is not necessary
11825  enable_fast_install=needless
11826fi
11827
11828
11829
11830
11831
11832
11833  if test "x$enable_dlopen" != xyes; then
11834  enable_dlopen=unknown
11835  enable_dlopen_self=unknown
11836  enable_dlopen_self_static=unknown
11837else
11838  lt_cv_dlopen=no
11839  lt_cv_dlopen_libs=
11840
11841  case $host_os in
11842  beos*)
11843    lt_cv_dlopen="load_add_on"
11844    lt_cv_dlopen_libs=
11845    lt_cv_dlopen_self=yes
11846    ;;
11847
11848  mingw* | pw32* | cegcc*)
11849    lt_cv_dlopen="LoadLibrary"
11850    lt_cv_dlopen_libs=
11851    ;;
11852
11853  cygwin*)
11854    lt_cv_dlopen="dlopen"
11855    lt_cv_dlopen_libs=
11856    ;;
11857
11858  darwin*)
11859  # if libdl is installed we need to link against it
11860    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11861$as_echo_n "checking for dlopen in -ldl... " >&6; }
11862if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11863  $as_echo_n "(cached) " >&6
11864else
11865  ac_check_lib_save_LIBS=$LIBS
11866LIBS="-ldl  $LIBS"
11867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868/* end confdefs.h.  */
11869
11870/* Override any GCC internal prototype to avoid an error.
11871   Use char because int might match the return type of a GCC
11872   builtin and then its argument prototype would still apply.  */
11873#ifdef __cplusplus
11874extern "C"
11875#endif
11876char dlopen ();
11877int
11878main ()
11879{
11880return dlopen ();
11881  ;
11882  return 0;
11883}
11884_ACEOF
11885if ac_fn_c_try_link "$LINENO"; then :
11886  ac_cv_lib_dl_dlopen=yes
11887else
11888  ac_cv_lib_dl_dlopen=no
11889fi
11890rm -f core conftest.err conftest.$ac_objext \
11891    conftest$ac_exeext conftest.$ac_ext
11892LIBS=$ac_check_lib_save_LIBS
11893fi
11894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11895$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11896if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11897  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11898else
11899
11900    lt_cv_dlopen="dyld"
11901    lt_cv_dlopen_libs=
11902    lt_cv_dlopen_self=yes
11903
11904fi
11905
11906    ;;
11907
11908  *)
11909    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11910if test "x$ac_cv_func_shl_load" = x""yes; then :
11911  lt_cv_dlopen="shl_load"
11912else
11913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11914$as_echo_n "checking for shl_load in -ldld... " >&6; }
11915if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11916  $as_echo_n "(cached) " >&6
11917else
11918  ac_check_lib_save_LIBS=$LIBS
11919LIBS="-ldld  $LIBS"
11920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921/* end confdefs.h.  */
11922
11923/* Override any GCC internal prototype to avoid an error.
11924   Use char because int might match the return type of a GCC
11925   builtin and then its argument prototype would still apply.  */
11926#ifdef __cplusplus
11927extern "C"
11928#endif
11929char shl_load ();
11930int
11931main ()
11932{
11933return shl_load ();
11934  ;
11935  return 0;
11936}
11937_ACEOF
11938if ac_fn_c_try_link "$LINENO"; then :
11939  ac_cv_lib_dld_shl_load=yes
11940else
11941  ac_cv_lib_dld_shl_load=no
11942fi
11943rm -f core conftest.err conftest.$ac_objext \
11944    conftest$ac_exeext conftest.$ac_ext
11945LIBS=$ac_check_lib_save_LIBS
11946fi
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11948$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11949if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11950  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11951else
11952  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11953if test "x$ac_cv_func_dlopen" = x""yes; then :
11954  lt_cv_dlopen="dlopen"
11955else
11956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11957$as_echo_n "checking for dlopen in -ldl... " >&6; }
11958if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11959  $as_echo_n "(cached) " >&6
11960else
11961  ac_check_lib_save_LIBS=$LIBS
11962LIBS="-ldl  $LIBS"
11963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964/* end confdefs.h.  */
11965
11966/* Override any GCC internal prototype to avoid an error.
11967   Use char because int might match the return type of a GCC
11968   builtin and then its argument prototype would still apply.  */
11969#ifdef __cplusplus
11970extern "C"
11971#endif
11972char dlopen ();
11973int
11974main ()
11975{
11976return dlopen ();
11977  ;
11978  return 0;
11979}
11980_ACEOF
11981if ac_fn_c_try_link "$LINENO"; then :
11982  ac_cv_lib_dl_dlopen=yes
11983else
11984  ac_cv_lib_dl_dlopen=no
11985fi
11986rm -f core conftest.err conftest.$ac_objext \
11987    conftest$ac_exeext conftest.$ac_ext
11988LIBS=$ac_check_lib_save_LIBS
11989fi
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11991$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11992if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11993  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11994else
11995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11996$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11997if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11998  $as_echo_n "(cached) " >&6
11999else
12000  ac_check_lib_save_LIBS=$LIBS
12001LIBS="-lsvld  $LIBS"
12002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003/* end confdefs.h.  */
12004
12005/* Override any GCC internal prototype to avoid an error.
12006   Use char because int might match the return type of a GCC
12007   builtin and then its argument prototype would still apply.  */
12008#ifdef __cplusplus
12009extern "C"
12010#endif
12011char dlopen ();
12012int
12013main ()
12014{
12015return dlopen ();
12016  ;
12017  return 0;
12018}
12019_ACEOF
12020if ac_fn_c_try_link "$LINENO"; then :
12021  ac_cv_lib_svld_dlopen=yes
12022else
12023  ac_cv_lib_svld_dlopen=no
12024fi
12025rm -f core conftest.err conftest.$ac_objext \
12026    conftest$ac_exeext conftest.$ac_ext
12027LIBS=$ac_check_lib_save_LIBS
12028fi
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12030$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12031if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12032  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12033else
12034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12035$as_echo_n "checking for dld_link in -ldld... " >&6; }
12036if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12037  $as_echo_n "(cached) " >&6
12038else
12039  ac_check_lib_save_LIBS=$LIBS
12040LIBS="-ldld  $LIBS"
12041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042/* end confdefs.h.  */
12043
12044/* Override any GCC internal prototype to avoid an error.
12045   Use char because int might match the return type of a GCC
12046   builtin and then its argument prototype would still apply.  */
12047#ifdef __cplusplus
12048extern "C"
12049#endif
12050char dld_link ();
12051int
12052main ()
12053{
12054return dld_link ();
12055  ;
12056  return 0;
12057}
12058_ACEOF
12059if ac_fn_c_try_link "$LINENO"; then :
12060  ac_cv_lib_dld_dld_link=yes
12061else
12062  ac_cv_lib_dld_dld_link=no
12063fi
12064rm -f core conftest.err conftest.$ac_objext \
12065    conftest$ac_exeext conftest.$ac_ext
12066LIBS=$ac_check_lib_save_LIBS
12067fi
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12069$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12070if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12071  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12072fi
12073
12074
12075fi
12076
12077
12078fi
12079
12080
12081fi
12082
12083
12084fi
12085
12086
12087fi
12088
12089    ;;
12090  esac
12091
12092  if test "x$lt_cv_dlopen" != xno; then
12093    enable_dlopen=yes
12094  else
12095    enable_dlopen=no
12096  fi
12097
12098  case $lt_cv_dlopen in
12099  dlopen)
12100    save_CPPFLAGS="$CPPFLAGS"
12101    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12102
12103    save_LDFLAGS="$LDFLAGS"
12104    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12105
12106    save_LIBS="$LIBS"
12107    LIBS="$lt_cv_dlopen_libs $LIBS"
12108
12109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12110$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12111if test "${lt_cv_dlopen_self+set}" = set; then :
12112  $as_echo_n "(cached) " >&6
12113else
12114  	  if test "$cross_compiling" = yes; then :
12115  lt_cv_dlopen_self=cross
12116else
12117  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12118  lt_status=$lt_dlunknown
12119  cat > conftest.$ac_ext <<_LT_EOF
12120#line 12120 "configure"
12121#include "confdefs.h"
12122
12123#if HAVE_DLFCN_H
12124#include <dlfcn.h>
12125#endif
12126
12127#include <stdio.h>
12128
12129#ifdef RTLD_GLOBAL
12130#  define LT_DLGLOBAL		RTLD_GLOBAL
12131#else
12132#  ifdef DL_GLOBAL
12133#    define LT_DLGLOBAL		DL_GLOBAL
12134#  else
12135#    define LT_DLGLOBAL		0
12136#  endif
12137#endif
12138
12139/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12140   find out it does not work in some platform. */
12141#ifndef LT_DLLAZY_OR_NOW
12142#  ifdef RTLD_LAZY
12143#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12144#  else
12145#    ifdef DL_LAZY
12146#      define LT_DLLAZY_OR_NOW		DL_LAZY
12147#    else
12148#      ifdef RTLD_NOW
12149#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12150#      else
12151#        ifdef DL_NOW
12152#          define LT_DLLAZY_OR_NOW	DL_NOW
12153#        else
12154#          define LT_DLLAZY_OR_NOW	0
12155#        endif
12156#      endif
12157#    endif
12158#  endif
12159#endif
12160
12161void fnord() { int i=42;}
12162int main ()
12163{
12164  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12165  int status = $lt_dlunknown;
12166
12167  if (self)
12168    {
12169      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12170      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12171      /* dlclose (self); */
12172    }
12173  else
12174    puts (dlerror ());
12175
12176  return status;
12177}
12178_LT_EOF
12179  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12180  (eval $ac_link) 2>&5
12181  ac_status=$?
12182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12183  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12184    (./conftest; exit; ) >&5 2>/dev/null
12185    lt_status=$?
12186    case x$lt_status in
12187      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12188      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12189      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12190    esac
12191  else :
12192    # compilation failed
12193    lt_cv_dlopen_self=no
12194  fi
12195fi
12196rm -fr conftest*
12197
12198
12199fi
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12201$as_echo "$lt_cv_dlopen_self" >&6; }
12202
12203    if test "x$lt_cv_dlopen_self" = xyes; then
12204      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12205      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12206$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12207if test "${lt_cv_dlopen_self_static+set}" = set; then :
12208  $as_echo_n "(cached) " >&6
12209else
12210  	  if test "$cross_compiling" = yes; then :
12211  lt_cv_dlopen_self_static=cross
12212else
12213  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12214  lt_status=$lt_dlunknown
12215  cat > conftest.$ac_ext <<_LT_EOF
12216#line 12216 "configure"
12217#include "confdefs.h"
12218
12219#if HAVE_DLFCN_H
12220#include <dlfcn.h>
12221#endif
12222
12223#include <stdio.h>
12224
12225#ifdef RTLD_GLOBAL
12226#  define LT_DLGLOBAL		RTLD_GLOBAL
12227#else
12228#  ifdef DL_GLOBAL
12229#    define LT_DLGLOBAL		DL_GLOBAL
12230#  else
12231#    define LT_DLGLOBAL		0
12232#  endif
12233#endif
12234
12235/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12236   find out it does not work in some platform. */
12237#ifndef LT_DLLAZY_OR_NOW
12238#  ifdef RTLD_LAZY
12239#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12240#  else
12241#    ifdef DL_LAZY
12242#      define LT_DLLAZY_OR_NOW		DL_LAZY
12243#    else
12244#      ifdef RTLD_NOW
12245#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12246#      else
12247#        ifdef DL_NOW
12248#          define LT_DLLAZY_OR_NOW	DL_NOW
12249#        else
12250#          define LT_DLLAZY_OR_NOW	0
12251#        endif
12252#      endif
12253#    endif
12254#  endif
12255#endif
12256
12257void fnord() { int i=42;}
12258int main ()
12259{
12260  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12261  int status = $lt_dlunknown;
12262
12263  if (self)
12264    {
12265      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12266      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12267      /* dlclose (self); */
12268    }
12269  else
12270    puts (dlerror ());
12271
12272  return status;
12273}
12274_LT_EOF
12275  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12276  (eval $ac_link) 2>&5
12277  ac_status=$?
12278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12279  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12280    (./conftest; exit; ) >&5 2>/dev/null
12281    lt_status=$?
12282    case x$lt_status in
12283      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12284      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12285      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12286    esac
12287  else :
12288    # compilation failed
12289    lt_cv_dlopen_self_static=no
12290  fi
12291fi
12292rm -fr conftest*
12293
12294
12295fi
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12297$as_echo "$lt_cv_dlopen_self_static" >&6; }
12298    fi
12299
12300    CPPFLAGS="$save_CPPFLAGS"
12301    LDFLAGS="$save_LDFLAGS"
12302    LIBS="$save_LIBS"
12303    ;;
12304  esac
12305
12306  case $lt_cv_dlopen_self in
12307  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12308  *) enable_dlopen_self=unknown ;;
12309  esac
12310
12311  case $lt_cv_dlopen_self_static in
12312  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12313  *) enable_dlopen_self_static=unknown ;;
12314  esac
12315fi
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333striplib=
12334old_striplib=
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12336$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12337if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12338  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12339  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341$as_echo "yes" >&6; }
12342else
12343# FIXME - insert some real tests, host_os isn't really good enough
12344  case $host_os in
12345  darwin*)
12346    if test -n "$STRIP" ; then
12347      striplib="$STRIP -x"
12348      old_striplib="$STRIP -S"
12349      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12350$as_echo "yes" >&6; }
12351    else
12352      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353$as_echo "no" >&6; }
12354    fi
12355    ;;
12356  *)
12357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358$as_echo "no" >&6; }
12359    ;;
12360  esac
12361fi
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374  # Report which library types will actually be built
12375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12376$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12378$as_echo "$can_build_shared" >&6; }
12379
12380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12381$as_echo_n "checking whether to build shared libraries... " >&6; }
12382  test "$can_build_shared" = "no" && enable_shared=no
12383
12384  # On AIX, shared libraries and static libraries use the same namespace, and
12385  # are all built from PIC.
12386  case $host_os in
12387  aix3*)
12388    test "$enable_shared" = yes && enable_static=no
12389    if test -n "$RANLIB"; then
12390      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12391      postinstall_cmds='$RANLIB $lib'
12392    fi
12393    ;;
12394
12395  aix[4-9]*)
12396    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12397      test "$enable_shared" = yes && enable_static=no
12398    fi
12399    ;;
12400  esac
12401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12402$as_echo "$enable_shared" >&6; }
12403
12404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12405$as_echo_n "checking whether to build static libraries... " >&6; }
12406  # Make sure either enable_shared or enable_static is yes.
12407  test "$enable_shared" = yes || enable_static=yes
12408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12409$as_echo "$enable_static" >&6; }
12410
12411
12412
12413
12414fi
12415ac_ext=c
12416ac_cpp='$CPP $CPPFLAGS'
12417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12419ac_compiler_gnu=$ac_cv_c_compiler_gnu
12420
12421CC="$lt_save_CC"
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435        ac_config_commands="$ac_config_commands libtool"
12436
12437
12438
12439
12440# Only expand once:
12441
12442
12443
12444
12445
12446if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12447	if test -n "$ac_tool_prefix"; then
12448  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12449set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451$as_echo_n "checking for $ac_word... " >&6; }
12452if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12453  $as_echo_n "(cached) " >&6
12454else
12455  case $PKG_CONFIG in
12456  [\\/]* | ?:[\\/]*)
12457  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12458  ;;
12459  *)
12460  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461for as_dir in $PATH
12462do
12463  IFS=$as_save_IFS
12464  test -z "$as_dir" && as_dir=.
12465    for ac_exec_ext in '' $ac_executable_extensions; do
12466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12467    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469    break 2
12470  fi
12471done
12472  done
12473IFS=$as_save_IFS
12474
12475  ;;
12476esac
12477fi
12478PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12479if test -n "$PKG_CONFIG"; then
12480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12481$as_echo "$PKG_CONFIG" >&6; }
12482else
12483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484$as_echo "no" >&6; }
12485fi
12486
12487
12488fi
12489if test -z "$ac_cv_path_PKG_CONFIG"; then
12490  ac_pt_PKG_CONFIG=$PKG_CONFIG
12491  # Extract the first word of "pkg-config", so it can be a program name with args.
12492set dummy pkg-config; ac_word=$2
12493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494$as_echo_n "checking for $ac_word... " >&6; }
12495if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12496  $as_echo_n "(cached) " >&6
12497else
12498  case $ac_pt_PKG_CONFIG in
12499  [\\/]* | ?:[\\/]*)
12500  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12501  ;;
12502  *)
12503  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504for as_dir in $PATH
12505do
12506  IFS=$as_save_IFS
12507  test -z "$as_dir" && as_dir=.
12508    for ac_exec_ext in '' $ac_executable_extensions; do
12509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12510    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512    break 2
12513  fi
12514done
12515  done
12516IFS=$as_save_IFS
12517
12518  ;;
12519esac
12520fi
12521ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12522if test -n "$ac_pt_PKG_CONFIG"; then
12523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12524$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12525else
12526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530  if test "x$ac_pt_PKG_CONFIG" = x; then
12531    PKG_CONFIG=""
12532  else
12533    case $cross_compiling:$ac_tool_warned in
12534yes:)
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12537ac_tool_warned=yes ;;
12538esac
12539    PKG_CONFIG=$ac_pt_PKG_CONFIG
12540  fi
12541else
12542  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12543fi
12544
12545fi
12546if test -n "$PKG_CONFIG"; then
12547	_pkg_min_version=0.9.0
12548	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12549$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12550	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12551		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12552$as_echo "yes" >&6; }
12553	else
12554		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555$as_echo "no" >&6; }
12556		PKG_CONFIG=""
12557	fi
12558
12559fi
12560
12561pkg_failed=no
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmpcdiscogs" >&5
12563$as_echo_n "checking for gmpcdiscogs... " >&6; }
12564
12565if test -n "$PKG_CONFIG"; then
12566    if test -n "$gmpcdiscogs_CFLAGS"; then
12567        pkg_cv_gmpcdiscogs_CFLAGS="$gmpcdiscogs_CFLAGS"
12568    else
12569        if test -n "$PKG_CONFIG" && \
12570    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"	glib-2.0 >= 2.16
12571	gobject-2.0 >= 2.4
12572	gtk+-2.0 >= 2.8
12573	gmodule-2.0
12574	libxml-2.0
12575	gthread-2.0
12576	libmpd >= 0.15.98
12577	gmpc	>= 0.16.2
12578\""; } >&5
12579  ($PKG_CONFIG --exists --print-errors "	glib-2.0 >= 2.16
12580	gobject-2.0 >= 2.4
12581	gtk+-2.0 >= 2.8
12582	gmodule-2.0
12583	libxml-2.0
12584	gthread-2.0
12585	libmpd >= 0.15.98
12586	gmpc	>= 0.16.2
12587") 2>&5
12588  ac_status=$?
12589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590  test $ac_status = 0; }; then
12591  pkg_cv_gmpcdiscogs_CFLAGS=`$PKG_CONFIG --cflags "	glib-2.0 >= 2.16
12592	gobject-2.0 >= 2.4
12593	gtk+-2.0 >= 2.8
12594	gmodule-2.0
12595	libxml-2.0
12596	gthread-2.0
12597	libmpd >= 0.15.98
12598	gmpc	>= 0.16.2
12599" 2>/dev/null`
12600else
12601  pkg_failed=yes
12602fi
12603    fi
12604else
12605	pkg_failed=untried
12606fi
12607if test -n "$PKG_CONFIG"; then
12608    if test -n "$gmpcdiscogs_LIBS"; then
12609        pkg_cv_gmpcdiscogs_LIBS="$gmpcdiscogs_LIBS"
12610    else
12611        if test -n "$PKG_CONFIG" && \
12612    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"	glib-2.0 >= 2.16
12613	gobject-2.0 >= 2.4
12614	gtk+-2.0 >= 2.8
12615	gmodule-2.0
12616	libxml-2.0
12617	gthread-2.0
12618	libmpd >= 0.15.98
12619	gmpc	>= 0.16.2
12620\""; } >&5
12621  ($PKG_CONFIG --exists --print-errors "	glib-2.0 >= 2.16
12622	gobject-2.0 >= 2.4
12623	gtk+-2.0 >= 2.8
12624	gmodule-2.0
12625	libxml-2.0
12626	gthread-2.0
12627	libmpd >= 0.15.98
12628	gmpc	>= 0.16.2
12629") 2>&5
12630  ac_status=$?
12631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12632  test $ac_status = 0; }; then
12633  pkg_cv_gmpcdiscogs_LIBS=`$PKG_CONFIG --libs "	glib-2.0 >= 2.16
12634	gobject-2.0 >= 2.4
12635	gtk+-2.0 >= 2.8
12636	gmodule-2.0
12637	libxml-2.0
12638	gthread-2.0
12639	libmpd >= 0.15.98
12640	gmpc	>= 0.16.2
12641" 2>/dev/null`
12642else
12643  pkg_failed=yes
12644fi
12645    fi
12646else
12647	pkg_failed=untried
12648fi
12649
12650
12651
12652if test $pkg_failed = yes; then
12653
12654if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12655        _pkg_short_errors_supported=yes
12656else
12657        _pkg_short_errors_supported=no
12658fi
12659        if test $_pkg_short_errors_supported = yes; then
12660	        gmpcdiscogs_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "	glib-2.0 >= 2.16
12661	gobject-2.0 >= 2.4
12662	gtk+-2.0 >= 2.8
12663	gmodule-2.0
12664	libxml-2.0
12665	gthread-2.0
12666	libmpd >= 0.15.98
12667	gmpc	>= 0.16.2
12668"`
12669        else
12670	        gmpcdiscogs_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "	glib-2.0 >= 2.16
12671	gobject-2.0 >= 2.4
12672	gtk+-2.0 >= 2.8
12673	gmodule-2.0
12674	libxml-2.0
12675	gthread-2.0
12676	libmpd >= 0.15.98
12677	gmpc	>= 0.16.2
12678"`
12679        fi
12680	# Put the nasty error message in config.log where it belongs
12681	echo "$gmpcdiscogs_PKG_ERRORS" >&5
12682
12683	as_fn_error "Package requirements (	glib-2.0 >= 2.16
12684	gobject-2.0 >= 2.4
12685	gtk+-2.0 >= 2.8
12686	gmodule-2.0
12687	libxml-2.0
12688	gthread-2.0
12689	libmpd >= 0.15.98
12690	gmpc	>= 0.16.2
12691) were not met:
12692
12693$gmpcdiscogs_PKG_ERRORS
12694
12695Consider adjusting the PKG_CONFIG_PATH environment variable if you
12696installed software in a non-standard prefix.
12697
12698Alternatively, you may set the environment variables gmpcdiscogs_CFLAGS
12699and gmpcdiscogs_LIBS to avoid the need to call pkg-config.
12700See the pkg-config man page for more details.
12701" "$LINENO" 5
12702elif test $pkg_failed = untried; then
12703	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12705as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12706is in your PATH or set the PKG_CONFIG environment variable to the full
12707path to pkg-config.
12708
12709Alternatively, you may set the environment variables gmpcdiscogs_CFLAGS
12710and gmpcdiscogs_LIBS to avoid the need to call pkg-config.
12711See the pkg-config man page for more details.
12712
12713To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12714See \`config.log' for more details." "$LINENO" 5; }
12715else
12716	gmpcdiscogs_CFLAGS=$pkg_cv_gmpcdiscogs_CFLAGS
12717	gmpcdiscogs_LIBS=$pkg_cv_gmpcdiscogs_LIBS
12718        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12719$as_echo "yes" >&6; }
12720	:
12721fi
12722
12723
12724
12725
12726
12727ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
12728
12729cat >confcache <<\_ACEOF
12730# This file is a shell script that caches the results of configure
12731# tests run on this system so they can be shared between configure
12732# scripts and configure runs, see configure's option --config-cache.
12733# It is not useful on other systems.  If it contains results you don't
12734# want to keep, you may remove or edit it.
12735#
12736# config.status only pays attention to the cache file if you give it
12737# the --recheck option to rerun configure.
12738#
12739# `ac_cv_env_foo' variables (set or unset) will be overridden when
12740# loading this file, other *unset* `ac_cv_foo' will be assigned the
12741# following values.
12742
12743_ACEOF
12744
12745# The following way of writing the cache mishandles newlines in values,
12746# but we know of no workaround that is simple, portable, and efficient.
12747# So, we kill variables containing newlines.
12748# Ultrix sh set writes to stderr and can't be redirected directly,
12749# and sets the high bit in the cache file unless we assign to the vars.
12750(
12751  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12752    eval ac_val=\$$ac_var
12753    case $ac_val in #(
12754    *${as_nl}*)
12755      case $ac_var in #(
12756      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12757$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12758      esac
12759      case $ac_var in #(
12760      _ | IFS | as_nl) ;; #(
12761      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12762      *) { eval $ac_var=; unset $ac_var;} ;;
12763      esac ;;
12764    esac
12765  done
12766
12767  (set) 2>&1 |
12768    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12769    *${as_nl}ac_space=\ *)
12770      # `set' does not quote correctly, so add quotes: double-quote
12771      # substitution turns \\\\ into \\, and sed turns \\ into \.
12772      sed -n \
12773	"s/'/'\\\\''/g;
12774	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12775      ;; #(
12776    *)
12777      # `set' quotes correctly as required by POSIX, so do not add quotes.
12778      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12779      ;;
12780    esac |
12781    sort
12782) |
12783  sed '
12784     /^ac_cv_env_/b end
12785     t clear
12786     :clear
12787     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12788     t end
12789     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12790     :end' >>confcache
12791if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12792  if test -w "$cache_file"; then
12793    test "x$cache_file" != "x/dev/null" &&
12794      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12795$as_echo "$as_me: updating cache $cache_file" >&6;}
12796    cat confcache >$cache_file
12797  else
12798    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12799$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12800  fi
12801fi
12802rm -f confcache
12803
12804test "x$prefix" = xNONE && prefix=$ac_default_prefix
12805# Let make expand exec_prefix.
12806test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12807
12808DEFS=-DHAVE_CONFIG_H
12809
12810ac_libobjs=
12811ac_ltlibobjs=
12812for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12813  # 1. Remove the extension, and $U if already installed.
12814  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12815  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12816  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12817  #    will be set to the directory where LIBOBJS objects are built.
12818  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12819  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12820done
12821LIBOBJS=$ac_libobjs
12822
12823LTLIBOBJS=$ac_ltlibobjs
12824
12825
12826 if test -n "$EXEEXT"; then
12827  am__EXEEXT_TRUE=
12828  am__EXEEXT_FALSE='#'
12829else
12830  am__EXEEXT_TRUE='#'
12831  am__EXEEXT_FALSE=
12832fi
12833
12834if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12835  as_fn_error "conditional \"AMDEP\" was never defined.
12836Usually this means the macro was only invoked conditionally." "$LINENO" 5
12837fi
12838if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12839  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12840Usually this means the macro was only invoked conditionally." "$LINENO" 5
12841fi
12842
12843  ac_config_commands="$ac_config_commands po/stamp-it"
12844
12845
12846if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12847  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12848Usually this means the macro was only invoked conditionally." "$LINENO" 5
12849fi
12850
12851: ${CONFIG_STATUS=./config.status}
12852ac_write_fail=0
12853ac_clean_files_save=$ac_clean_files
12854ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12855{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12856$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12857as_write_fail=0
12858cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12859#! $SHELL
12860# Generated by $as_me.
12861# Run this file to recreate the current configuration.
12862# Compiler output produced by configure, useful for debugging
12863# configure, is in config.log if it exists.
12864
12865debug=false
12866ac_cs_recheck=false
12867ac_cs_silent=false
12868
12869SHELL=\${CONFIG_SHELL-$SHELL}
12870export SHELL
12871_ASEOF
12872cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12873## -------------------- ##
12874## M4sh Initialization. ##
12875## -------------------- ##
12876
12877# Be more Bourne compatible
12878DUALCASE=1; export DUALCASE # for MKS sh
12879if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12880  emulate sh
12881  NULLCMD=:
12882  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12883  # is contrary to our usage.  Disable this feature.
12884  alias -g '${1+"$@"}'='"$@"'
12885  setopt NO_GLOB_SUBST
12886else
12887  case `(set -o) 2>/dev/null` in #(
12888  *posix*) :
12889    set -o posix ;; #(
12890  *) :
12891     ;;
12892esac
12893fi
12894
12895
12896as_nl='
12897'
12898export as_nl
12899# Printing a long string crashes Solaris 7 /usr/bin/printf.
12900as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12902as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12903# Prefer a ksh shell builtin over an external printf program on Solaris,
12904# but without wasting forks for bash or zsh.
12905if test -z "$BASH_VERSION$ZSH_VERSION" \
12906    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12907  as_echo='print -r --'
12908  as_echo_n='print -rn --'
12909elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12910  as_echo='printf %s\n'
12911  as_echo_n='printf %s'
12912else
12913  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12914    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12915    as_echo_n='/usr/ucb/echo -n'
12916  else
12917    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12918    as_echo_n_body='eval
12919      arg=$1;
12920      case $arg in #(
12921      *"$as_nl"*)
12922	expr "X$arg" : "X\\(.*\\)$as_nl";
12923	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12924      esac;
12925      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12926    '
12927    export as_echo_n_body
12928    as_echo_n='sh -c $as_echo_n_body as_echo'
12929  fi
12930  export as_echo_body
12931  as_echo='sh -c $as_echo_body as_echo'
12932fi
12933
12934# The user is always right.
12935if test "${PATH_SEPARATOR+set}" != set; then
12936  PATH_SEPARATOR=:
12937  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12938    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12939      PATH_SEPARATOR=';'
12940  }
12941fi
12942
12943
12944# IFS
12945# We need space, tab and new line, in precisely that order.  Quoting is
12946# there to prevent editors from complaining about space-tab.
12947# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12948# splitting by setting IFS to empty value.)
12949IFS=" ""	$as_nl"
12950
12951# Find who we are.  Look in the path if we contain no directory separator.
12952case $0 in #((
12953  *[\\/]* ) as_myself=$0 ;;
12954  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955for as_dir in $PATH
12956do
12957  IFS=$as_save_IFS
12958  test -z "$as_dir" && as_dir=.
12959    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12960  done
12961IFS=$as_save_IFS
12962
12963     ;;
12964esac
12965# We did not find ourselves, most probably we were run as `sh COMMAND'
12966# in which case we are not to be found in the path.
12967if test "x$as_myself" = x; then
12968  as_myself=$0
12969fi
12970if test ! -f "$as_myself"; then
12971  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12972  exit 1
12973fi
12974
12975# Unset variables that we do not need and which cause bugs (e.g. in
12976# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12977# suppresses any "Segmentation fault" message there.  '((' could
12978# trigger a bug in pdksh 5.2.14.
12979for as_var in BASH_ENV ENV MAIL MAILPATH
12980do eval test x\${$as_var+set} = xset \
12981  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12982done
12983PS1='$ '
12984PS2='> '
12985PS4='+ '
12986
12987# NLS nuisances.
12988LC_ALL=C
12989export LC_ALL
12990LANGUAGE=C
12991export LANGUAGE
12992
12993# CDPATH.
12994(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12995
12996
12997# as_fn_error ERROR [LINENO LOG_FD]
12998# ---------------------------------
12999# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13000# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13001# script with status $?, using 1 if that was 0.
13002as_fn_error ()
13003{
13004  as_status=$?; test $as_status -eq 0 && as_status=1
13005  if test "$3"; then
13006    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13007    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13008  fi
13009  $as_echo "$as_me: error: $1" >&2
13010  as_fn_exit $as_status
13011} # as_fn_error
13012
13013
13014# as_fn_set_status STATUS
13015# -----------------------
13016# Set $? to STATUS, without forking.
13017as_fn_set_status ()
13018{
13019  return $1
13020} # as_fn_set_status
13021
13022# as_fn_exit STATUS
13023# -----------------
13024# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13025as_fn_exit ()
13026{
13027  set +e
13028  as_fn_set_status $1
13029  exit $1
13030} # as_fn_exit
13031
13032# as_fn_unset VAR
13033# ---------------
13034# Portably unset VAR.
13035as_fn_unset ()
13036{
13037  { eval $1=; unset $1;}
13038}
13039as_unset=as_fn_unset
13040# as_fn_append VAR VALUE
13041# ----------------------
13042# Append the text in VALUE to the end of the definition contained in VAR. Take
13043# advantage of any shell optimizations that allow amortized linear growth over
13044# repeated appends, instead of the typical quadratic growth present in naive
13045# implementations.
13046if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13047  eval 'as_fn_append ()
13048  {
13049    eval $1+=\$2
13050  }'
13051else
13052  as_fn_append ()
13053  {
13054    eval $1=\$$1\$2
13055  }
13056fi # as_fn_append
13057
13058# as_fn_arith ARG...
13059# ------------------
13060# Perform arithmetic evaluation on the ARGs, and store the result in the
13061# global $as_val. Take advantage of shells that can avoid forks. The arguments
13062# must be portable across $(()) and expr.
13063if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13064  eval 'as_fn_arith ()
13065  {
13066    as_val=$(( $* ))
13067  }'
13068else
13069  as_fn_arith ()
13070  {
13071    as_val=`expr "$@" || test $? -eq 1`
13072  }
13073fi # as_fn_arith
13074
13075
13076if expr a : '\(a\)' >/dev/null 2>&1 &&
13077   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13078  as_expr=expr
13079else
13080  as_expr=false
13081fi
13082
13083if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13084  as_basename=basename
13085else
13086  as_basename=false
13087fi
13088
13089if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13090  as_dirname=dirname
13091else
13092  as_dirname=false
13093fi
13094
13095as_me=`$as_basename -- "$0" ||
13096$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13097	 X"$0" : 'X\(//\)$' \| \
13098	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13099$as_echo X/"$0" |
13100    sed '/^.*\/\([^/][^/]*\)\/*$/{
13101	    s//\1/
13102	    q
13103	  }
13104	  /^X\/\(\/\/\)$/{
13105	    s//\1/
13106	    q
13107	  }
13108	  /^X\/\(\/\).*/{
13109	    s//\1/
13110	    q
13111	  }
13112	  s/.*/./; q'`
13113
13114# Avoid depending upon Character Ranges.
13115as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13117as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13118as_cr_digits='0123456789'
13119as_cr_alnum=$as_cr_Letters$as_cr_digits
13120
13121ECHO_C= ECHO_N= ECHO_T=
13122case `echo -n x` in #(((((
13123-n*)
13124  case `echo 'xy\c'` in
13125  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13126  xy)  ECHO_C='\c';;
13127  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13128       ECHO_T='	';;
13129  esac;;
13130*)
13131  ECHO_N='-n';;
13132esac
13133
13134rm -f conf$$ conf$$.exe conf$$.file
13135if test -d conf$$.dir; then
13136  rm -f conf$$.dir/conf$$.file
13137else
13138  rm -f conf$$.dir
13139  mkdir conf$$.dir 2>/dev/null
13140fi
13141if (echo >conf$$.file) 2>/dev/null; then
13142  if ln -s conf$$.file conf$$ 2>/dev/null; then
13143    as_ln_s='ln -s'
13144    # ... but there are two gotchas:
13145    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13146    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13147    # In both cases, we have to default to `cp -p'.
13148    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13149      as_ln_s='cp -p'
13150  elif ln conf$$.file conf$$ 2>/dev/null; then
13151    as_ln_s=ln
13152  else
13153    as_ln_s='cp -p'
13154  fi
13155else
13156  as_ln_s='cp -p'
13157fi
13158rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13159rmdir conf$$.dir 2>/dev/null
13160
13161
13162# as_fn_mkdir_p
13163# -------------
13164# Create "$as_dir" as a directory, including parents if necessary.
13165as_fn_mkdir_p ()
13166{
13167
13168  case $as_dir in #(
13169  -*) as_dir=./$as_dir;;
13170  esac
13171  test -d "$as_dir" || eval $as_mkdir_p || {
13172    as_dirs=
13173    while :; do
13174      case $as_dir in #(
13175      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13176      *) as_qdir=$as_dir;;
13177      esac
13178      as_dirs="'$as_qdir' $as_dirs"
13179      as_dir=`$as_dirname -- "$as_dir" ||
13180$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13181	 X"$as_dir" : 'X\(//\)[^/]' \| \
13182	 X"$as_dir" : 'X\(//\)$' \| \
13183	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13184$as_echo X"$as_dir" |
13185    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13186	    s//\1/
13187	    q
13188	  }
13189	  /^X\(\/\/\)[^/].*/{
13190	    s//\1/
13191	    q
13192	  }
13193	  /^X\(\/\/\)$/{
13194	    s//\1/
13195	    q
13196	  }
13197	  /^X\(\/\).*/{
13198	    s//\1/
13199	    q
13200	  }
13201	  s/.*/./; q'`
13202      test -d "$as_dir" && break
13203    done
13204    test -z "$as_dirs" || eval "mkdir $as_dirs"
13205  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13206
13207
13208} # as_fn_mkdir_p
13209if mkdir -p . 2>/dev/null; then
13210  as_mkdir_p='mkdir -p "$as_dir"'
13211else
13212  test -d ./-p && rmdir ./-p
13213  as_mkdir_p=false
13214fi
13215
13216if test -x / >/dev/null 2>&1; then
13217  as_test_x='test -x'
13218else
13219  if ls -dL / >/dev/null 2>&1; then
13220    as_ls_L_option=L
13221  else
13222    as_ls_L_option=
13223  fi
13224  as_test_x='
13225    eval sh -c '\''
13226      if test -d "$1"; then
13227	test -d "$1/.";
13228      else
13229	case $1 in #(
13230	-*)set "./$1";;
13231	esac;
13232	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13233	???[sx]*):;;*)false;;esac;fi
13234    '\'' sh
13235  '
13236fi
13237as_executable_p=$as_test_x
13238
13239# Sed expression to map a string onto a valid CPP name.
13240as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13241
13242# Sed expression to map a string onto a valid variable name.
13243as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13244
13245
13246exec 6>&1
13247## ----------------------------------- ##
13248## Main body of $CONFIG_STATUS script. ##
13249## ----------------------------------- ##
13250_ASEOF
13251test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13252
13253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13254# Save the log message, to keep $0 and so on meaningful, and to
13255# report actual input values of CONFIG_FILES etc. instead of their
13256# values after options handling.
13257ac_log="
13258This file was extended by gmpc-discogs $as_me 0.20.0, which was
13259generated by GNU Autoconf 2.65.  Invocation command line was
13260
13261  CONFIG_FILES    = $CONFIG_FILES
13262  CONFIG_HEADERS  = $CONFIG_HEADERS
13263  CONFIG_LINKS    = $CONFIG_LINKS
13264  CONFIG_COMMANDS = $CONFIG_COMMANDS
13265  $ $0 $@
13266
13267on `(hostname || uname -n) 2>/dev/null | sed 1q`
13268"
13269
13270_ACEOF
13271
13272case $ac_config_files in *"
13273"*) set x $ac_config_files; shift; ac_config_files=$*;;
13274esac
13275
13276case $ac_config_headers in *"
13277"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13278esac
13279
13280
13281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13282# Files that config.status was made for.
13283config_files="$ac_config_files"
13284config_headers="$ac_config_headers"
13285config_commands="$ac_config_commands"
13286
13287_ACEOF
13288
13289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13290ac_cs_usage="\
13291\`$as_me' instantiates files and other configuration actions
13292from templates according to the current configuration.  Unless the files
13293and actions are specified as TAGs, all are instantiated by default.
13294
13295Usage: $0 [OPTION]... [TAG]...
13296
13297  -h, --help       print this help, then exit
13298  -V, --version    print version number and configuration settings, then exit
13299      --config     print configuration, then exit
13300  -q, --quiet, --silent
13301                   do not print progress messages
13302  -d, --debug      don't remove temporary files
13303      --recheck    update $as_me by reconfiguring in the same conditions
13304      --file=FILE[:TEMPLATE]
13305                   instantiate the configuration file FILE
13306      --header=FILE[:TEMPLATE]
13307                   instantiate the configuration header FILE
13308
13309Configuration files:
13310$config_files
13311
13312Configuration headers:
13313$config_headers
13314
13315Configuration commands:
13316$config_commands
13317
13318Report bugs to <qball@sarine.nl>."
13319
13320_ACEOF
13321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13322ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13323ac_cs_version="\\
13324gmpc-discogs config.status 0.20.0
13325configured by $0, generated by GNU Autoconf 2.65,
13326  with options \\"\$ac_cs_config\\"
13327
13328Copyright (C) 2009 Free Software Foundation, Inc.
13329This config.status script is free software; the Free Software Foundation
13330gives unlimited permission to copy, distribute and modify it."
13331
13332ac_pwd='$ac_pwd'
13333srcdir='$srcdir'
13334INSTALL='$INSTALL'
13335MKDIR_P='$MKDIR_P'
13336AWK='$AWK'
13337test -n "\$AWK" || AWK=awk
13338_ACEOF
13339
13340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341# The default lists apply if the user does not specify any file.
13342ac_need_defaults=:
13343while test $# != 0
13344do
13345  case $1 in
13346  --*=*)
13347    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13348    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13349    ac_shift=:
13350    ;;
13351  *)
13352    ac_option=$1
13353    ac_optarg=$2
13354    ac_shift=shift
13355    ;;
13356  esac
13357
13358  case $ac_option in
13359  # Handling of the options.
13360  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13361    ac_cs_recheck=: ;;
13362  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13363    $as_echo "$ac_cs_version"; exit ;;
13364  --config | --confi | --conf | --con | --co | --c )
13365    $as_echo "$ac_cs_config"; exit ;;
13366  --debug | --debu | --deb | --de | --d | -d )
13367    debug=: ;;
13368  --file | --fil | --fi | --f )
13369    $ac_shift
13370    case $ac_optarg in
13371    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13372    esac
13373    as_fn_append CONFIG_FILES " '$ac_optarg'"
13374    ac_need_defaults=false;;
13375  --header | --heade | --head | --hea )
13376    $ac_shift
13377    case $ac_optarg in
13378    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13379    esac
13380    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13381    ac_need_defaults=false;;
13382  --he | --h)
13383    # Conflict between --help and --header
13384    as_fn_error "ambiguous option: \`$1'
13385Try \`$0 --help' for more information.";;
13386  --help | --hel | -h )
13387    $as_echo "$ac_cs_usage"; exit ;;
13388  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13389  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13390    ac_cs_silent=: ;;
13391
13392  # This is an error.
13393  -*) as_fn_error "unrecognized option: \`$1'
13394Try \`$0 --help' for more information." ;;
13395
13396  *) as_fn_append ac_config_targets " $1"
13397     ac_need_defaults=false ;;
13398
13399  esac
13400  shift
13401done
13402
13403ac_configure_extra_args=
13404
13405if $ac_cs_silent; then
13406  exec 6>/dev/null
13407  ac_configure_extra_args="$ac_configure_extra_args --silent"
13408fi
13409
13410_ACEOF
13411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13412if \$ac_cs_recheck; then
13413  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13414  shift
13415  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13416  CONFIG_SHELL='$SHELL'
13417  export CONFIG_SHELL
13418  exec "\$@"
13419fi
13420
13421_ACEOF
13422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13423exec 5>>config.log
13424{
13425  echo
13426  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13427## Running $as_me. ##
13428_ASBOX
13429  $as_echo "$ac_log"
13430} >&5
13431
13432_ACEOF
13433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13434#
13435# INIT-COMMANDS
13436#
13437AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13438
13439
13440
13441# The HP-UX ksh and POSIX shell print the target directory to stdout
13442# if CDPATH is set.
13443(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13444
13445sed_quote_subst='$sed_quote_subst'
13446double_quote_subst='$double_quote_subst'
13447delay_variable_subst='$delay_variable_subst'
13448enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13449macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13450macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13451enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13452pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13453enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13454host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13455host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13456host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13457build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13458build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13459build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13460SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13461Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13462GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13463EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13464FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13465LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13466NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13467LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13468max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13469ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13470exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13471lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13472lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13473lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13474reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13475reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13476OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13477deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13478file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13479AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13480AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13481STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13482RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13483old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13484old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13485old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13486CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13487CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13488compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13489GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13490lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13491lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13492lt_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"`'
13493lt_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"`'
13494objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13495SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13496ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13497MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13498lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13499lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13500lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13501lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13502lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13503need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13504DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13505NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13506LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13507OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13508OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13509libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13510shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13511extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13512archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13513enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13514export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13515whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13516compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13517old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13518old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13519archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13520archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13521module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13522module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13523with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13524allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13525no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13526hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13527hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13528hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13529hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13530hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13531hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13532hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13533hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13534inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13535link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13536fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13537always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13538export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13539exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13540include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13541prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13542file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13543variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13544need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13545need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13546version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13547runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13548shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13549shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13550libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13551library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13552soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13553postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13554postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13555finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13556finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13557hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13558sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13559sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13560hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13561enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13562enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13563enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13564old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13565striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13566
13567LTCC='$LTCC'
13568LTCFLAGS='$LTCFLAGS'
13569compiler='$compiler_DEFAULT'
13570
13571# Quote evaled strings.
13572for var in SED \
13573GREP \
13574EGREP \
13575FGREP \
13576LD \
13577NM \
13578LN_S \
13579lt_SP2NL \
13580lt_NL2SP \
13581reload_flag \
13582OBJDUMP \
13583deplibs_check_method \
13584file_magic_cmd \
13585AR \
13586AR_FLAGS \
13587STRIP \
13588RANLIB \
13589CC \
13590CFLAGS \
13591compiler \
13592lt_cv_sys_global_symbol_pipe \
13593lt_cv_sys_global_symbol_to_cdecl \
13594lt_cv_sys_global_symbol_to_c_name_address \
13595lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13596SHELL \
13597ECHO \
13598lt_prog_compiler_no_builtin_flag \
13599lt_prog_compiler_wl \
13600lt_prog_compiler_pic \
13601lt_prog_compiler_static \
13602lt_cv_prog_compiler_c_o \
13603need_locks \
13604DSYMUTIL \
13605NMEDIT \
13606LIPO \
13607OTOOL \
13608OTOOL64 \
13609shrext_cmds \
13610export_dynamic_flag_spec \
13611whole_archive_flag_spec \
13612compiler_needs_object \
13613with_gnu_ld \
13614allow_undefined_flag \
13615no_undefined_flag \
13616hardcode_libdir_flag_spec \
13617hardcode_libdir_flag_spec_ld \
13618hardcode_libdir_separator \
13619fix_srcfile_path \
13620exclude_expsyms \
13621include_expsyms \
13622file_list_spec \
13623variables_saved_for_relink \
13624libname_spec \
13625library_names_spec \
13626soname_spec \
13627finish_eval \
13628old_striplib \
13629striplib; do
13630    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13631    *[\\\\\\\`\\"\\\$]*)
13632      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13633      ;;
13634    *)
13635      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13636      ;;
13637    esac
13638done
13639
13640# Double-quote double-evaled strings.
13641for var in reload_cmds \
13642old_postinstall_cmds \
13643old_postuninstall_cmds \
13644old_archive_cmds \
13645extract_expsyms_cmds \
13646old_archive_from_new_cmds \
13647old_archive_from_expsyms_cmds \
13648archive_cmds \
13649archive_expsym_cmds \
13650module_cmds \
13651module_expsym_cmds \
13652export_symbols_cmds \
13653prelink_cmds \
13654postinstall_cmds \
13655postuninstall_cmds \
13656finish_cmds \
13657sys_lib_search_path_spec \
13658sys_lib_dlsearch_path_spec; do
13659    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13660    *[\\\\\\\`\\"\\\$]*)
13661      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13662      ;;
13663    *)
13664      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13665      ;;
13666    esac
13667done
13668
13669# Fix-up fallback echo if it was mangled by the above quoting rules.
13670case \$lt_ECHO in
13671*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13672  ;;
13673esac
13674
13675ac_aux_dir='$ac_aux_dir'
13676xsi_shell='$xsi_shell'
13677lt_shell_append='$lt_shell_append'
13678
13679# See if we are running on zsh, and set the options which allow our
13680# commands through without removal of \ escapes INIT.
13681if test -n "\${ZSH_VERSION+set}" ; then
13682   setopt NO_GLOB_SUBST
13683fi
13684
13685
13686    PACKAGE='$PACKAGE'
13687    VERSION='$VERSION'
13688    TIMESTAMP='$TIMESTAMP'
13689    RM='$RM'
13690    ofile='$ofile'
13691
13692
13693
13694
13695_ACEOF
13696
13697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13698
13699# Handling of arguments.
13700for ac_config_target in $ac_config_targets
13701do
13702  case $ac_config_target in
13703    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13704    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13705    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13706    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13707    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13708    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13709    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13710    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
13711
13712  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13713  esac
13714done
13715
13716
13717# If the user did not use the arguments to specify the items to instantiate,
13718# then the envvar interface is used.  Set only those that are not.
13719# We use the long form for the default assignment because of an extremely
13720# bizarre bug on SunOS 4.1.3.
13721if $ac_need_defaults; then
13722  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13723  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13724  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13725fi
13726
13727# Have a temporary directory for convenience.  Make it in the build tree
13728# simply because there is no reason against having it here, and in addition,
13729# creating and moving files from /tmp can sometimes cause problems.
13730# Hook for its removal unless debugging.
13731# Note that there is a small window in which the directory will not be cleaned:
13732# after its creation but before its name has been assigned to `$tmp'.
13733$debug ||
13734{
13735  tmp=
13736  trap 'exit_status=$?
13737  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13738' 0
13739  trap 'as_fn_exit 1' 1 2 13 15
13740}
13741# Create a (secure) tmp directory for tmp files.
13742
13743{
13744  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13745  test -n "$tmp" && test -d "$tmp"
13746}  ||
13747{
13748  tmp=./conf$$-$RANDOM
13749  (umask 077 && mkdir "$tmp")
13750} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13751
13752# Set up the scripts for CONFIG_FILES section.
13753# No need to generate them if there are no CONFIG_FILES.
13754# This happens for instance with `./config.status config.h'.
13755if test -n "$CONFIG_FILES"; then
13756
13757
13758ac_cr=`echo X | tr X '\015'`
13759# On cygwin, bash can eat \r inside `` if the user requested igncr.
13760# But we know of no other shell where ac_cr would be empty at this
13761# point, so we can use a bashism as a fallback.
13762if test "x$ac_cr" = x; then
13763  eval ac_cr=\$\'\\r\'
13764fi
13765ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13766if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13767  ac_cs_awk_cr='\r'
13768else
13769  ac_cs_awk_cr=$ac_cr
13770fi
13771
13772echo 'BEGIN {' >"$tmp/subs1.awk" &&
13773_ACEOF
13774
13775
13776{
13777  echo "cat >conf$$subs.awk <<_ACEOF" &&
13778  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13779  echo "_ACEOF"
13780} >conf$$subs.sh ||
13781  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13782ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13783ac_delim='%!_!# '
13784for ac_last_try in false false false false false :; do
13785  . ./conf$$subs.sh ||
13786    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13787
13788  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13789  if test $ac_delim_n = $ac_delim_num; then
13790    break
13791  elif $ac_last_try; then
13792    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13793  else
13794    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13795  fi
13796done
13797rm -f conf$$subs.sh
13798
13799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13800cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13801_ACEOF
13802sed -n '
13803h
13804s/^/S["/; s/!.*/"]=/
13805p
13806g
13807s/^[^!]*!//
13808:repl
13809t repl
13810s/'"$ac_delim"'$//
13811t delim
13812:nl
13813h
13814s/\(.\{148\}\)..*/\1/
13815t more1
13816s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13817p
13818n
13819b repl
13820:more1
13821s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13822p
13823g
13824s/.\{148\}//
13825t nl
13826:delim
13827h
13828s/\(.\{148\}\)..*/\1/
13829t more2
13830s/["\\]/\\&/g; s/^/"/; s/$/"/
13831p
13832b
13833:more2
13834s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13835p
13836g
13837s/.\{148\}//
13838t delim
13839' <conf$$subs.awk | sed '
13840/^[^""]/{
13841  N
13842  s/\n//
13843}
13844' >>$CONFIG_STATUS || ac_write_fail=1
13845rm -f conf$$subs.awk
13846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13847_ACAWK
13848cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13849  for (key in S) S_is_set[key] = 1
13850  FS = ""
13851
13852}
13853{
13854  line = $ 0
13855  nfields = split(line, field, "@")
13856  substed = 0
13857  len = length(field[1])
13858  for (i = 2; i < nfields; i++) {
13859    key = field[i]
13860    keylen = length(key)
13861    if (S_is_set[key]) {
13862      value = S[key]
13863      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13864      len += length(value) + length(field[++i])
13865      substed = 1
13866    } else
13867      len += 1 + keylen
13868  }
13869
13870  print line
13871}
13872
13873_ACAWK
13874_ACEOF
13875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13876if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13877  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13878else
13879  cat
13880fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13881  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13882_ACEOF
13883
13884# VPATH may cause trouble with some makes, so we remove $(srcdir),
13885# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13886# trailing colons and then remove the whole line if VPATH becomes empty
13887# (actually we leave an empty line to preserve line numbers).
13888if test "x$srcdir" = x.; then
13889  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13890s/:*\$(srcdir):*/:/
13891s/:*\${srcdir}:*/:/
13892s/:*@srcdir@:*/:/
13893s/^\([^=]*=[	 ]*\):*/\1/
13894s/:*$//
13895s/^[^=]*=[	 ]*$//
13896}'
13897fi
13898
13899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13900fi # test -n "$CONFIG_FILES"
13901
13902# Set up the scripts for CONFIG_HEADERS section.
13903# No need to generate them if there are no CONFIG_HEADERS.
13904# This happens for instance with `./config.status Makefile'.
13905if test -n "$CONFIG_HEADERS"; then
13906cat >"$tmp/defines.awk" <<\_ACAWK ||
13907BEGIN {
13908_ACEOF
13909
13910# Transform confdefs.h into an awk script `defines.awk', embedded as
13911# here-document in config.status, that substitutes the proper values into
13912# config.h.in to produce config.h.
13913
13914# Create a delimiter string that does not exist in confdefs.h, to ease
13915# handling of long lines.
13916ac_delim='%!_!# '
13917for ac_last_try in false false :; do
13918  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13919  if test -z "$ac_t"; then
13920    break
13921  elif $ac_last_try; then
13922    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13923  else
13924    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13925  fi
13926done
13927
13928# For the awk script, D is an array of macro values keyed by name,
13929# likewise P contains macro parameters if any.  Preserve backslash
13930# newline sequences.
13931
13932ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13933sed -n '
13934s/.\{148\}/&'"$ac_delim"'/g
13935t rset
13936:rset
13937s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13938t def
13939d
13940:def
13941s/\\$//
13942t bsnl
13943s/["\\]/\\&/g
13944s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13945D["\1"]=" \3"/p
13946s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13947d
13948:bsnl
13949s/["\\]/\\&/g
13950s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13951D["\1"]=" \3\\\\\\n"\\/p
13952t cont
13953s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13954t cont
13955d
13956:cont
13957n
13958s/.\{148\}/&'"$ac_delim"'/g
13959t clear
13960:clear
13961s/\\$//
13962t bsnlc
13963s/["\\]/\\&/g; s/^/"/; s/$/"/p
13964d
13965:bsnlc
13966s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13967b cont
13968' <confdefs.h | sed '
13969s/'"$ac_delim"'/"\\\
13970"/g' >>$CONFIG_STATUS || ac_write_fail=1
13971
13972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13973  for (key in D) D_is_set[key] = 1
13974  FS = ""
13975}
13976/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13977  line = \$ 0
13978  split(line, arg, " ")
13979  if (arg[1] == "#") {
13980    defundef = arg[2]
13981    mac1 = arg[3]
13982  } else {
13983    defundef = substr(arg[1], 2)
13984    mac1 = arg[2]
13985  }
13986  split(mac1, mac2, "(") #)
13987  macro = mac2[1]
13988  prefix = substr(line, 1, index(line, defundef) - 1)
13989  if (D_is_set[macro]) {
13990    # Preserve the white space surrounding the "#".
13991    print prefix "define", macro P[macro] D[macro]
13992    next
13993  } else {
13994    # Replace #undef with comments.  This is necessary, for example,
13995    # in the case of _POSIX_SOURCE, which is predefined and required
13996    # on some systems where configure will not decide to define it.
13997    if (defundef == "undef") {
13998      print "/*", prefix defundef, macro, "*/"
13999      next
14000    }
14001  }
14002}
14003{ print }
14004_ACAWK
14005_ACEOF
14006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14007  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14008fi # test -n "$CONFIG_HEADERS"
14009
14010
14011eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14012shift
14013for ac_tag
14014do
14015  case $ac_tag in
14016  :[FHLC]) ac_mode=$ac_tag; continue;;
14017  esac
14018  case $ac_mode$ac_tag in
14019  :[FHL]*:*);;
14020  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14021  :[FH]-) ac_tag=-:-;;
14022  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14023  esac
14024  ac_save_IFS=$IFS
14025  IFS=:
14026  set x $ac_tag
14027  IFS=$ac_save_IFS
14028  shift
14029  ac_file=$1
14030  shift
14031
14032  case $ac_mode in
14033  :L) ac_source=$1;;
14034  :[FH])
14035    ac_file_inputs=
14036    for ac_f
14037    do
14038      case $ac_f in
14039      -) ac_f="$tmp/stdin";;
14040      *) # Look for the file first in the build tree, then in the source tree
14041	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14042	 # because $ac_f cannot contain `:'.
14043	 test -f "$ac_f" ||
14044	   case $ac_f in
14045	   [\\/$]*) false;;
14046	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14047	   esac ||
14048	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14049      esac
14050      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14051      as_fn_append ac_file_inputs " '$ac_f'"
14052    done
14053
14054    # Let's still pretend it is `configure' which instantiates (i.e., don't
14055    # use $as_me), people would be surprised to read:
14056    #    /* config.h.  Generated by config.status.  */
14057    configure_input='Generated from '`
14058	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14059	`' by configure.'
14060    if test x"$ac_file" != x-; then
14061      configure_input="$ac_file.  $configure_input"
14062      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14063$as_echo "$as_me: creating $ac_file" >&6;}
14064    fi
14065    # Neutralize special characters interpreted by sed in replacement strings.
14066    case $configure_input in #(
14067    *\&* | *\|* | *\\* )
14068       ac_sed_conf_input=`$as_echo "$configure_input" |
14069       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14070    *) ac_sed_conf_input=$configure_input;;
14071    esac
14072
14073    case $ac_tag in
14074    *:-:* | *:-) cat >"$tmp/stdin" \
14075      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14076    esac
14077    ;;
14078  esac
14079
14080  ac_dir=`$as_dirname -- "$ac_file" ||
14081$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14082	 X"$ac_file" : 'X\(//\)[^/]' \| \
14083	 X"$ac_file" : 'X\(//\)$' \| \
14084	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14085$as_echo X"$ac_file" |
14086    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14087	    s//\1/
14088	    q
14089	  }
14090	  /^X\(\/\/\)[^/].*/{
14091	    s//\1/
14092	    q
14093	  }
14094	  /^X\(\/\/\)$/{
14095	    s//\1/
14096	    q
14097	  }
14098	  /^X\(\/\).*/{
14099	    s//\1/
14100	    q
14101	  }
14102	  s/.*/./; q'`
14103  as_dir="$ac_dir"; as_fn_mkdir_p
14104  ac_builddir=.
14105
14106case "$ac_dir" in
14107.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14108*)
14109  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14110  # A ".." for each directory in $ac_dir_suffix.
14111  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14112  case $ac_top_builddir_sub in
14113  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14114  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14115  esac ;;
14116esac
14117ac_abs_top_builddir=$ac_pwd
14118ac_abs_builddir=$ac_pwd$ac_dir_suffix
14119# for backward compatibility:
14120ac_top_builddir=$ac_top_build_prefix
14121
14122case $srcdir in
14123  .)  # We are building in place.
14124    ac_srcdir=.
14125    ac_top_srcdir=$ac_top_builddir_sub
14126    ac_abs_top_srcdir=$ac_pwd ;;
14127  [\\/]* | ?:[\\/]* )  # Absolute name.
14128    ac_srcdir=$srcdir$ac_dir_suffix;
14129    ac_top_srcdir=$srcdir
14130    ac_abs_top_srcdir=$srcdir ;;
14131  *) # Relative name.
14132    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14133    ac_top_srcdir=$ac_top_build_prefix$srcdir
14134    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14135esac
14136ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14137
14138
14139  case $ac_mode in
14140  :F)
14141  #
14142  # CONFIG_FILE
14143  #
14144
14145  case $INSTALL in
14146  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14147  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14148  esac
14149  ac_MKDIR_P=$MKDIR_P
14150  case $MKDIR_P in
14151  [\\/$]* | ?:[\\/]* ) ;;
14152  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14153  esac
14154_ACEOF
14155
14156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14157# If the template does not know about datarootdir, expand it.
14158# FIXME: This hack should be removed a few years after 2.60.
14159ac_datarootdir_hack=; ac_datarootdir_seen=
14160ac_sed_dataroot='
14161/datarootdir/ {
14162  p
14163  q
14164}
14165/@datadir@/p
14166/@docdir@/p
14167/@infodir@/p
14168/@localedir@/p
14169/@mandir@/p'
14170case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14171*datarootdir*) ac_datarootdir_seen=yes;;
14172*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14173  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14174$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14175_ACEOF
14176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14177  ac_datarootdir_hack='
14178  s&@datadir@&$datadir&g
14179  s&@docdir@&$docdir&g
14180  s&@infodir@&$infodir&g
14181  s&@localedir@&$localedir&g
14182  s&@mandir@&$mandir&g
14183  s&\\\${datarootdir}&$datarootdir&g' ;;
14184esac
14185_ACEOF
14186
14187# Neutralize VPATH when `$srcdir' = `.'.
14188# Shell code in configure.ac might set extrasub.
14189# FIXME: do we really want to maintain this feature?
14190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14191ac_sed_extra="$ac_vpsub
14192$extrasub
14193_ACEOF
14194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14195:t
14196/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14197s|@configure_input@|$ac_sed_conf_input|;t t
14198s&@top_builddir@&$ac_top_builddir_sub&;t t
14199s&@top_build_prefix@&$ac_top_build_prefix&;t t
14200s&@srcdir@&$ac_srcdir&;t t
14201s&@abs_srcdir@&$ac_abs_srcdir&;t t
14202s&@top_srcdir@&$ac_top_srcdir&;t t
14203s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14204s&@builddir@&$ac_builddir&;t t
14205s&@abs_builddir@&$ac_abs_builddir&;t t
14206s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14207s&@INSTALL@&$ac_INSTALL&;t t
14208s&@MKDIR_P@&$ac_MKDIR_P&;t t
14209$ac_datarootdir_hack
14210"
14211eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14212  || as_fn_error "could not create $ac_file" "$LINENO" 5
14213
14214test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14215  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14216  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14217  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14218which seems to be undefined.  Please make sure it is defined." >&5
14219$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14220which seems to be undefined.  Please make sure it is defined." >&2;}
14221
14222  rm -f "$tmp/stdin"
14223  case $ac_file in
14224  -) cat "$tmp/out" && rm -f "$tmp/out";;
14225  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14226  esac \
14227  || as_fn_error "could not create $ac_file" "$LINENO" 5
14228 ;;
14229  :H)
14230  #
14231  # CONFIG_HEADER
14232  #
14233  if test x"$ac_file" != x-; then
14234    {
14235      $as_echo "/* $configure_input  */" \
14236      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14237    } >"$tmp/config.h" \
14238      || as_fn_error "could not create $ac_file" "$LINENO" 5
14239    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14240      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14241$as_echo "$as_me: $ac_file is unchanged" >&6;}
14242    else
14243      rm -f "$ac_file"
14244      mv "$tmp/config.h" "$ac_file" \
14245	|| as_fn_error "could not create $ac_file" "$LINENO" 5
14246    fi
14247  else
14248    $as_echo "/* $configure_input  */" \
14249      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14250      || as_fn_error "could not create -" "$LINENO" 5
14251  fi
14252# Compute "$ac_file"'s index in $config_headers.
14253_am_arg="$ac_file"
14254_am_stamp_count=1
14255for _am_header in $config_headers :; do
14256  case $_am_header in
14257    $_am_arg | $_am_arg:* )
14258      break ;;
14259    * )
14260      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14261  esac
14262done
14263echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14264$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14265	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14266	 X"$_am_arg" : 'X\(//\)$' \| \
14267	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14268$as_echo X"$_am_arg" |
14269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14270	    s//\1/
14271	    q
14272	  }
14273	  /^X\(\/\/\)[^/].*/{
14274	    s//\1/
14275	    q
14276	  }
14277	  /^X\(\/\/\)$/{
14278	    s//\1/
14279	    q
14280	  }
14281	  /^X\(\/\).*/{
14282	    s//\1/
14283	    q
14284	  }
14285	  s/.*/./; q'`/stamp-h$_am_stamp_count
14286 ;;
14287
14288  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14289$as_echo "$as_me: executing $ac_file commands" >&6;}
14290 ;;
14291  esac
14292
14293
14294  case $ac_file$ac_mode in
14295    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14296  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14297  # are listed without --file.  Let's play safe and only enable the eval
14298  # if we detect the quoting.
14299  case $CONFIG_FILES in
14300  *\'*) eval set x "$CONFIG_FILES" ;;
14301  *)   set x $CONFIG_FILES ;;
14302  esac
14303  shift
14304  for mf
14305  do
14306    # Strip MF so we end up with the name of the file.
14307    mf=`echo "$mf" | sed -e 's/:.*$//'`
14308    # Check whether this is an Automake generated Makefile or not.
14309    # We used to match only the files named `Makefile.in', but
14310    # some people rename them; so instead we look at the file content.
14311    # Grep'ing the first line is not enough: some people post-process
14312    # each Makefile.in and add a new line on top of each file to say so.
14313    # Grep'ing the whole file is not good either: AIX grep has a line
14314    # limit of 2048, but all sed's we know have understand at least 4000.
14315    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14316      dirpart=`$as_dirname -- "$mf" ||
14317$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14318	 X"$mf" : 'X\(//\)[^/]' \| \
14319	 X"$mf" : 'X\(//\)$' \| \
14320	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14321$as_echo X"$mf" |
14322    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14323	    s//\1/
14324	    q
14325	  }
14326	  /^X\(\/\/\)[^/].*/{
14327	    s//\1/
14328	    q
14329	  }
14330	  /^X\(\/\/\)$/{
14331	    s//\1/
14332	    q
14333	  }
14334	  /^X\(\/\).*/{
14335	    s//\1/
14336	    q
14337	  }
14338	  s/.*/./; q'`
14339    else
14340      continue
14341    fi
14342    # Extract the definition of DEPDIR, am__include, and am__quote
14343    # from the Makefile without running `make'.
14344    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14345    test -z "$DEPDIR" && continue
14346    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14347    test -z "am__include" && continue
14348    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14349    # When using ansi2knr, U may be empty or an underscore; expand it
14350    U=`sed -n 's/^U = //p' < "$mf"`
14351    # Find all dependency output files, they are included files with
14352    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14353    # simplest approach to changing $(DEPDIR) to its actual value in the
14354    # expansion.
14355    for file in `sed -n "
14356      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14357	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14358      # Make sure the directory exists.
14359      test -f "$dirpart/$file" && continue
14360      fdir=`$as_dirname -- "$file" ||
14361$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14362	 X"$file" : 'X\(//\)[^/]' \| \
14363	 X"$file" : 'X\(//\)$' \| \
14364	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14365$as_echo X"$file" |
14366    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14367	    s//\1/
14368	    q
14369	  }
14370	  /^X\(\/\/\)[^/].*/{
14371	    s//\1/
14372	    q
14373	  }
14374	  /^X\(\/\/\)$/{
14375	    s//\1/
14376	    q
14377	  }
14378	  /^X\(\/\).*/{
14379	    s//\1/
14380	    q
14381	  }
14382	  s/.*/./; q'`
14383      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14384      # echo "creating $dirpart/$file"
14385      echo '# dummy' > "$dirpart/$file"
14386    done
14387  done
14388}
14389 ;;
14390    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14391        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14392      esac ;;
14393    "libtool":C)
14394
14395    # See if we are running on zsh, and set the options which allow our
14396    # commands through without removal of \ escapes.
14397    if test -n "${ZSH_VERSION+set}" ; then
14398      setopt NO_GLOB_SUBST
14399    fi
14400
14401    cfgfile="${ofile}T"
14402    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14403    $RM "$cfgfile"
14404
14405    cat <<_LT_EOF >> "$cfgfile"
14406#! $SHELL
14407
14408# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14409# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14410# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14411# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14412#
14413#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14414#                 2006, 2007, 2008 Free Software Foundation, Inc.
14415#   Written by Gordon Matzigkeit, 1996
14416#
14417#   This file is part of GNU Libtool.
14418#
14419# GNU Libtool is free software; you can redistribute it and/or
14420# modify it under the terms of the GNU General Public License as
14421# published by the Free Software Foundation; either version 2 of
14422# the License, or (at your option) any later version.
14423#
14424# As a special exception to the GNU General Public License,
14425# if you distribute this file as part of a program or library that
14426# is built using GNU Libtool, you may include this file under the
14427# same distribution terms that you use for the rest of that program.
14428#
14429# GNU Libtool is distributed in the hope that it will be useful,
14430# but WITHOUT ANY WARRANTY; without even the implied warranty of
14431# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14432# GNU General Public License for more details.
14433#
14434# You should have received a copy of the GNU General Public License
14435# along with GNU Libtool; see the file COPYING.  If not, a copy
14436# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14437# obtained by writing to the Free Software Foundation, Inc.,
14438# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14439
14440
14441# The names of the tagged configurations supported by this script.
14442available_tags=""
14443
14444# ### BEGIN LIBTOOL CONFIG
14445
14446# Whether or not to build static libraries.
14447build_old_libs=$enable_static
14448
14449# Which release of libtool.m4 was used?
14450macro_version=$macro_version
14451macro_revision=$macro_revision
14452
14453# Whether or not to build shared libraries.
14454build_libtool_libs=$enable_shared
14455
14456# What type of objects to build.
14457pic_mode=$pic_mode
14458
14459# Whether or not to optimize for fast installation.
14460fast_install=$enable_fast_install
14461
14462# The host system.
14463host_alias=$host_alias
14464host=$host
14465host_os=$host_os
14466
14467# The build system.
14468build_alias=$build_alias
14469build=$build
14470build_os=$build_os
14471
14472# A sed program that does not truncate output.
14473SED=$lt_SED
14474
14475# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14476Xsed="\$SED -e 1s/^X//"
14477
14478# A grep program that handles long lines.
14479GREP=$lt_GREP
14480
14481# An ERE matcher.
14482EGREP=$lt_EGREP
14483
14484# A literal string matcher.
14485FGREP=$lt_FGREP
14486
14487# A BSD- or MS-compatible name lister.
14488NM=$lt_NM
14489
14490# Whether we need soft or hard links.
14491LN_S=$lt_LN_S
14492
14493# What is the maximum length of a command?
14494max_cmd_len=$max_cmd_len
14495
14496# Object file suffix (normally "o").
14497objext=$ac_objext
14498
14499# Executable file suffix (normally "").
14500exeext=$exeext
14501
14502# whether the shell understands "unset".
14503lt_unset=$lt_unset
14504
14505# turn spaces into newlines.
14506SP2NL=$lt_lt_SP2NL
14507
14508# turn newlines into spaces.
14509NL2SP=$lt_lt_NL2SP
14510
14511# How to create reloadable object files.
14512reload_flag=$lt_reload_flag
14513reload_cmds=$lt_reload_cmds
14514
14515# An object symbol dumper.
14516OBJDUMP=$lt_OBJDUMP
14517
14518# Method to check whether dependent libraries are shared objects.
14519deplibs_check_method=$lt_deplibs_check_method
14520
14521# Command to use when deplibs_check_method == "file_magic".
14522file_magic_cmd=$lt_file_magic_cmd
14523
14524# The archiver.
14525AR=$lt_AR
14526AR_FLAGS=$lt_AR_FLAGS
14527
14528# A symbol stripping program.
14529STRIP=$lt_STRIP
14530
14531# Commands used to install an old-style archive.
14532RANLIB=$lt_RANLIB
14533old_postinstall_cmds=$lt_old_postinstall_cmds
14534old_postuninstall_cmds=$lt_old_postuninstall_cmds
14535
14536# A C compiler.
14537LTCC=$lt_CC
14538
14539# LTCC compiler flags.
14540LTCFLAGS=$lt_CFLAGS
14541
14542# Take the output of nm and produce a listing of raw symbols and C names.
14543global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14544
14545# Transform the output of nm in a proper C declaration.
14546global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14547
14548# Transform the output of nm in a C name address pair.
14549global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14550
14551# Transform the output of nm in a C name address pair when lib prefix is needed.
14552global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14553
14554# The name of the directory that contains temporary libtool files.
14555objdir=$objdir
14556
14557# Shell to use when invoking shell scripts.
14558SHELL=$lt_SHELL
14559
14560# An echo program that does not interpret backslashes.
14561ECHO=$lt_ECHO
14562
14563# Used to examine libraries when file_magic_cmd begins with "file".
14564MAGIC_CMD=$MAGIC_CMD
14565
14566# Must we lock files when doing compilation?
14567need_locks=$lt_need_locks
14568
14569# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14570DSYMUTIL=$lt_DSYMUTIL
14571
14572# Tool to change global to local symbols on Mac OS X.
14573NMEDIT=$lt_NMEDIT
14574
14575# Tool to manipulate fat objects and archives on Mac OS X.
14576LIPO=$lt_LIPO
14577
14578# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14579OTOOL=$lt_OTOOL
14580
14581# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14582OTOOL64=$lt_OTOOL64
14583
14584# Old archive suffix (normally "a").
14585libext=$libext
14586
14587# Shared library suffix (normally ".so").
14588shrext_cmds=$lt_shrext_cmds
14589
14590# The commands to extract the exported symbol list from a shared archive.
14591extract_expsyms_cmds=$lt_extract_expsyms_cmds
14592
14593# Variables whose values should be saved in libtool wrapper scripts and
14594# restored at link time.
14595variables_saved_for_relink=$lt_variables_saved_for_relink
14596
14597# Do we need the "lib" prefix for modules?
14598need_lib_prefix=$need_lib_prefix
14599
14600# Do we need a version for libraries?
14601need_version=$need_version
14602
14603# Library versioning type.
14604version_type=$version_type
14605
14606# Shared library runtime path variable.
14607runpath_var=$runpath_var
14608
14609# Shared library path variable.
14610shlibpath_var=$shlibpath_var
14611
14612# Is shlibpath searched before the hard-coded library search path?
14613shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14614
14615# Format of library name prefix.
14616libname_spec=$lt_libname_spec
14617
14618# List of archive names.  First name is the real one, the rest are links.
14619# The last name is the one that the linker finds with -lNAME
14620library_names_spec=$lt_library_names_spec
14621
14622# The coded name of the library, if different from the real name.
14623soname_spec=$lt_soname_spec
14624
14625# Command to use after installation of a shared archive.
14626postinstall_cmds=$lt_postinstall_cmds
14627
14628# Command to use after uninstallation of a shared archive.
14629postuninstall_cmds=$lt_postuninstall_cmds
14630
14631# Commands used to finish a libtool library installation in a directory.
14632finish_cmds=$lt_finish_cmds
14633
14634# As "finish_cmds", except a single script fragment to be evaled but
14635# not shown.
14636finish_eval=$lt_finish_eval
14637
14638# Whether we should hardcode library paths into libraries.
14639hardcode_into_libs=$hardcode_into_libs
14640
14641# Compile-time system search path for libraries.
14642sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14643
14644# Run-time system search path for libraries.
14645sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14646
14647# Whether dlopen is supported.
14648dlopen_support=$enable_dlopen
14649
14650# Whether dlopen of programs is supported.
14651dlopen_self=$enable_dlopen_self
14652
14653# Whether dlopen of statically linked programs is supported.
14654dlopen_self_static=$enable_dlopen_self_static
14655
14656# Commands to strip libraries.
14657old_striplib=$lt_old_striplib
14658striplib=$lt_striplib
14659
14660
14661# The linker used to build libraries.
14662LD=$lt_LD
14663
14664# Commands used to build an old-style archive.
14665old_archive_cmds=$lt_old_archive_cmds
14666
14667# A language specific compiler.
14668CC=$lt_compiler
14669
14670# Is the compiler the GNU compiler?
14671with_gcc=$GCC
14672
14673# Compiler flag to turn off builtin functions.
14674no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14675
14676# How to pass a linker flag through the compiler.
14677wl=$lt_lt_prog_compiler_wl
14678
14679# Additional compiler flags for building library objects.
14680pic_flag=$lt_lt_prog_compiler_pic
14681
14682# Compiler flag to prevent dynamic linking.
14683link_static_flag=$lt_lt_prog_compiler_static
14684
14685# Does compiler simultaneously support -c and -o options?
14686compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14687
14688# Whether or not to add -lc for building shared libraries.
14689build_libtool_need_lc=$archive_cmds_need_lc
14690
14691# Whether or not to disallow shared libs when runtime libs are static.
14692allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14693
14694# Compiler flag to allow reflexive dlopens.
14695export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14696
14697# Compiler flag to generate shared objects directly from archives.
14698whole_archive_flag_spec=$lt_whole_archive_flag_spec
14699
14700# Whether the compiler copes with passing no objects directly.
14701compiler_needs_object=$lt_compiler_needs_object
14702
14703# Create an old-style archive from a shared archive.
14704old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14705
14706# Create a temporary old-style archive to link instead of a shared archive.
14707old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14708
14709# Commands used to build a shared archive.
14710archive_cmds=$lt_archive_cmds
14711archive_expsym_cmds=$lt_archive_expsym_cmds
14712
14713# Commands used to build a loadable module if different from building
14714# a shared archive.
14715module_cmds=$lt_module_cmds
14716module_expsym_cmds=$lt_module_expsym_cmds
14717
14718# Whether we are building with GNU ld or not.
14719with_gnu_ld=$lt_with_gnu_ld
14720
14721# Flag that allows shared libraries with undefined symbols to be built.
14722allow_undefined_flag=$lt_allow_undefined_flag
14723
14724# Flag that enforces no undefined symbols.
14725no_undefined_flag=$lt_no_undefined_flag
14726
14727# Flag to hardcode \$libdir into a binary during linking.
14728# This must work even if \$libdir does not exist
14729hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14730
14731# If ld is used when linking, flag to hardcode \$libdir into a binary
14732# during linking.  This must work even if \$libdir does not exist.
14733hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14734
14735# Whether we need a single "-rpath" flag with a separated argument.
14736hardcode_libdir_separator=$lt_hardcode_libdir_separator
14737
14738# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14739# DIR into the resulting binary.
14740hardcode_direct=$hardcode_direct
14741
14742# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14743# DIR into the resulting binary and the resulting library dependency is
14744# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14745# library is relocated.
14746hardcode_direct_absolute=$hardcode_direct_absolute
14747
14748# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14749# into the resulting binary.
14750hardcode_minus_L=$hardcode_minus_L
14751
14752# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14753# into the resulting binary.
14754hardcode_shlibpath_var=$hardcode_shlibpath_var
14755
14756# Set to "yes" if building a shared library automatically hardcodes DIR
14757# into the library and all subsequent libraries and executables linked
14758# against it.
14759hardcode_automatic=$hardcode_automatic
14760
14761# Set to yes if linker adds runtime paths of dependent libraries
14762# to runtime path list.
14763inherit_rpath=$inherit_rpath
14764
14765# Whether libtool must link a program against all its dependency libraries.
14766link_all_deplibs=$link_all_deplibs
14767
14768# Fix the shell variable \$srcfile for the compiler.
14769fix_srcfile_path=$lt_fix_srcfile_path
14770
14771# Set to "yes" if exported symbols are required.
14772always_export_symbols=$always_export_symbols
14773
14774# The commands to list exported symbols.
14775export_symbols_cmds=$lt_export_symbols_cmds
14776
14777# Symbols that should not be listed in the preloaded symbols.
14778exclude_expsyms=$lt_exclude_expsyms
14779
14780# Symbols that must always be exported.
14781include_expsyms=$lt_include_expsyms
14782
14783# Commands necessary for linking programs (against libraries) with templates.
14784prelink_cmds=$lt_prelink_cmds
14785
14786# Specify filename containing input files.
14787file_list_spec=$lt_file_list_spec
14788
14789# How to hardcode a shared library path into an executable.
14790hardcode_action=$hardcode_action
14791
14792# ### END LIBTOOL CONFIG
14793
14794_LT_EOF
14795
14796  case $host_os in
14797  aix3*)
14798    cat <<\_LT_EOF >> "$cfgfile"
14799# AIX sometimes has problems with the GCC collect2 program.  For some
14800# reason, if we set the COLLECT_NAMES environment variable, the problems
14801# vanish in a puff of smoke.
14802if test "X${COLLECT_NAMES+set}" != Xset; then
14803  COLLECT_NAMES=
14804  export COLLECT_NAMES
14805fi
14806_LT_EOF
14807    ;;
14808  esac
14809
14810
14811ltmain="$ac_aux_dir/ltmain.sh"
14812
14813
14814  # We use sed instead of cat because bash on DJGPP gets confused if
14815  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14816  # text mode, it properly converts lines to CR/LF.  This bash problem
14817  # is reportedly fixed, but why not run on old versions too?
14818  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14819    || (rm -f "$cfgfile"; exit 1)
14820
14821  case $xsi_shell in
14822  yes)
14823    cat << \_LT_EOF >> "$cfgfile"
14824
14825# func_dirname file append nondir_replacement
14826# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14827# otherwise set result to NONDIR_REPLACEMENT.
14828func_dirname ()
14829{
14830  case ${1} in
14831    */*) func_dirname_result="${1%/*}${2}" ;;
14832    *  ) func_dirname_result="${3}" ;;
14833  esac
14834}
14835
14836# func_basename file
14837func_basename ()
14838{
14839  func_basename_result="${1##*/}"
14840}
14841
14842# func_dirname_and_basename file append nondir_replacement
14843# perform func_basename and func_dirname in a single function
14844# call:
14845#   dirname:  Compute the dirname of FILE.  If nonempty,
14846#             add APPEND to the result, otherwise set result
14847#             to NONDIR_REPLACEMENT.
14848#             value returned in "$func_dirname_result"
14849#   basename: Compute filename of FILE.
14850#             value retuned in "$func_basename_result"
14851# Implementation must be kept synchronized with func_dirname
14852# and func_basename. For efficiency, we do not delegate to
14853# those functions but instead duplicate the functionality here.
14854func_dirname_and_basename ()
14855{
14856  case ${1} in
14857    */*) func_dirname_result="${1%/*}${2}" ;;
14858    *  ) func_dirname_result="${3}" ;;
14859  esac
14860  func_basename_result="${1##*/}"
14861}
14862
14863# func_stripname prefix suffix name
14864# strip PREFIX and SUFFIX off of NAME.
14865# PREFIX and SUFFIX must not contain globbing or regex special
14866# characters, hashes, percent signs, but SUFFIX may contain a leading
14867# dot (in which case that matches only a dot).
14868func_stripname ()
14869{
14870  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14871  # positional parameters, so assign one to ordinary parameter first.
14872  func_stripname_result=${3}
14873  func_stripname_result=${func_stripname_result#"${1}"}
14874  func_stripname_result=${func_stripname_result%"${2}"}
14875}
14876
14877# func_opt_split
14878func_opt_split ()
14879{
14880  func_opt_split_opt=${1%%=*}
14881  func_opt_split_arg=${1#*=}
14882}
14883
14884# func_lo2o object
14885func_lo2o ()
14886{
14887  case ${1} in
14888    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14889    *)    func_lo2o_result=${1} ;;
14890  esac
14891}
14892
14893# func_xform libobj-or-source
14894func_xform ()
14895{
14896  func_xform_result=${1%.*}.lo
14897}
14898
14899# func_arith arithmetic-term...
14900func_arith ()
14901{
14902  func_arith_result=$(( $* ))
14903}
14904
14905# func_len string
14906# STRING may not start with a hyphen.
14907func_len ()
14908{
14909  func_len_result=${#1}
14910}
14911
14912_LT_EOF
14913    ;;
14914  *) # Bourne compatible functions.
14915    cat << \_LT_EOF >> "$cfgfile"
14916
14917# func_dirname file append nondir_replacement
14918# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14919# otherwise set result to NONDIR_REPLACEMENT.
14920func_dirname ()
14921{
14922  # Extract subdirectory from the argument.
14923  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14924  if test "X$func_dirname_result" = "X${1}"; then
14925    func_dirname_result="${3}"
14926  else
14927    func_dirname_result="$func_dirname_result${2}"
14928  fi
14929}
14930
14931# func_basename file
14932func_basename ()
14933{
14934  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14935}
14936
14937
14938# func_stripname prefix suffix name
14939# strip PREFIX and SUFFIX off of NAME.
14940# PREFIX and SUFFIX must not contain globbing or regex special
14941# characters, hashes, percent signs, but SUFFIX may contain a leading
14942# dot (in which case that matches only a dot).
14943# func_strip_suffix prefix name
14944func_stripname ()
14945{
14946  case ${2} in
14947    .*) func_stripname_result=`$ECHO "X${3}" \
14948           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14949    *)  func_stripname_result=`$ECHO "X${3}" \
14950           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14951  esac
14952}
14953
14954# sed scripts:
14955my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14956my_sed_long_arg='1s/^-[^=]*=//'
14957
14958# func_opt_split
14959func_opt_split ()
14960{
14961  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14962  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14963}
14964
14965# func_lo2o object
14966func_lo2o ()
14967{
14968  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14969}
14970
14971# func_xform libobj-or-source
14972func_xform ()
14973{
14974  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14975}
14976
14977# func_arith arithmetic-term...
14978func_arith ()
14979{
14980  func_arith_result=`expr "$@"`
14981}
14982
14983# func_len string
14984# STRING may not start with a hyphen.
14985func_len ()
14986{
14987  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14988}
14989
14990_LT_EOF
14991esac
14992
14993case $lt_shell_append in
14994  yes)
14995    cat << \_LT_EOF >> "$cfgfile"
14996
14997# func_append var value
14998# Append VALUE to the end of shell variable VAR.
14999func_append ()
15000{
15001  eval "$1+=\$2"
15002}
15003_LT_EOF
15004    ;;
15005  *)
15006    cat << \_LT_EOF >> "$cfgfile"
15007
15008# func_append var value
15009# Append VALUE to the end of shell variable VAR.
15010func_append ()
15011{
15012  eval "$1=\$$1\$2"
15013}
15014
15015_LT_EOF
15016    ;;
15017  esac
15018
15019
15020  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15021    || (rm -f "$cfgfile"; exit 1)
15022
15023  mv -f "$cfgfile" "$ofile" ||
15024    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15025  chmod +x "$ofile"
15026
15027 ;;
15028    "po/stamp-it":C)
15029    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
15030       as_fn_error "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
15031    fi
15032    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
15033    >"po/stamp-it.tmp"
15034    sed '/^#/d
15035	 s/^[[].*] *//
15036	 /^[ 	]*$/d
15037	'"s|^|	$ac_top_srcdir/|" \
15038      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
15039
15040    sed '/^POTFILES =/,/[^\\]$/ {
15041		/^POTFILES =/!d
15042		r po/POTFILES
15043	  }
15044	 ' "po/Makefile.in" >"po/Makefile"
15045    rm -f "po/Makefile.tmp"
15046    mv "po/stamp-it.tmp" "po/stamp-it"
15047   ;;
15048
15049  esac
15050done # for ac_tag
15051
15052
15053as_fn_exit 0
15054_ACEOF
15055ac_clean_files=$ac_clean_files_save
15056
15057test $ac_write_fail = 0 ||
15058  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15059
15060
15061# configure is writing to config.log, and then calls config.status.
15062# config.status does its own redirection, appending to config.log.
15063# Unfortunately, on DOS this fails, as config.log is still kept open
15064# by configure, so config.status won't be able to write to it; its
15065# output is simply discarded.  So we exec the FD to /dev/null,
15066# effectively closing config.log, so it can be properly (re)opened and
15067# appended to by config.status.  When coming back to configure, we
15068# need to make the FD available again.
15069if test "$no_create" != yes; then
15070  ac_cs_success=:
15071  ac_config_status_args=
15072  test "$silent" = yes &&
15073    ac_config_status_args="$ac_config_status_args --quiet"
15074  exec 5>/dev/null
15075  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15076  exec 5>>config.log
15077  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15078  # would make configure fail if this is the last instruction.
15079  $ac_cs_success || as_fn_exit $?
15080fi
15081if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15082  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15083$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15084fi
15085
15086