1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Amtk 5.2.0.
4#
5# Report bugs to <https://gitlab.gnome.org/GNOME/amtk/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://gitlab.gnome.org/GNOME/amtk/issues about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='Amtk'
592PACKAGE_TARNAME='amtk'
593PACKAGE_VERSION='5.2.0'
594PACKAGE_STRING='Amtk 5.2.0'
595PACKAGE_BUGREPORT='https://gitlab.gnome.org/GNOME/amtk/issues'
596PACKAGE_URL='https://wiki.gnome.org/Projects/Amtk'
597
598ac_unique_file="amtk/amtk.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635gt_needs=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640GLIB_PREFIX
641VALGRIND_CHECK_RULES
642valgrind_enabled_tools
643valgrind_tools
644ENABLE_VALGRIND_sgcheck
645ENABLE_VALGRIND_drd
646ENABLE_VALGRIND_helgrind
647ENABLE_VALGRIND_memcheck
648VALGRIND_ENABLED
649VALGRIND_ENABLED_FALSE
650VALGRIND_ENABLED_TRUE
651VALGRIND
652CODE_COVERAGE_LIBS
653CODE_COVERAGE_CXXFLAGS
654CODE_COVERAGE_CFLAGS
655CODE_COVERAGE_CPPFLAGS
656GENHTML
657LCOV
658GCOV
659ifnGNUmake
660ifGNUmake
661CODE_COVERAGE_ENABLED
662CODE_COVERAGE_ENABLED_FALSE
663CODE_COVERAGE_ENABLED_TRUE
664HAVE_INTROSPECTION_FALSE
665HAVE_INTROSPECTION_TRUE
666INTROSPECTION_MAKEFILE
667INTROSPECTION_LIBS
668INTROSPECTION_CFLAGS
669INTROSPECTION_TYPELIBDIR
670INTROSPECTION_GIRDIR
671INTROSPECTION_GENERATE
672INTROSPECTION_COMPILER
673INTROSPECTION_SCANNER
674_GI_EXP_LIBDIR
675_GI_EXP_DATADIR
676INSTALLED_TESTS_FALSE
677INSTALLED_TESTS_TRUE
678GTK_DOC_USE_REBASE_FALSE
679GTK_DOC_USE_REBASE_TRUE
680GTK_DOC_USE_LIBTOOL_FALSE
681GTK_DOC_USE_LIBTOOL_TRUE
682GTK_DOC_BUILD_PDF_FALSE
683GTK_DOC_BUILD_PDF_TRUE
684GTK_DOC_BUILD_HTML_FALSE
685GTK_DOC_BUILD_HTML_TRUE
686ENABLE_GTK_DOC_FALSE
687ENABLE_GTK_DOC_TRUE
688HAVE_GTK_DOC_FALSE
689HAVE_GTK_DOC_TRUE
690GTKDOC_DEPS_LIBS
691GTKDOC_DEPS_CFLAGS
692HTML_DIR
693GTKDOC_MKPDF
694GTKDOC_REBASE
695GTKDOC_CHECK_PATH
696GTKDOC_CHECK
697GETTEXT_PACKAGE
698POSUB
699LTLIBINTL
700LIBINTL
701INTLLIBS
702LTLIBICONV
703LIBICONV
704INTL_MACOSX_LIBS
705XGETTEXT_EXTRA_OPTIONS
706MSGMERGE_FOR_MSGFMT_OPTION
707MSGMERGE
708XGETTEXT_015
709XGETTEXT
710GMSGFMT_015
711GMSGFMT
712MSGFMT
713GETTEXT_MACRO_VERSION
714USE_NLS
715AX_PACKAGE_REQUIRES_PRIVATE
716AX_PACKAGE_REQUIRES
717AMTK_DEP_LIBS
718AMTK_DEP_CFLAGS
719WARN_SCANNERFLAGS
720WARN_LDFLAGS
721WARN_CFLAGS
722CPP
723LT_SYS_LIBRARY_PATH
724OTOOL64
725OTOOL
726LIPO
727NMEDIT
728DSYMUTIL
729MANIFEST_TOOL
730RANLIB
731ac_ct_AR
732AR
733DLLTOOL
734OBJDUMP
735LN_S
736NM
737ac_ct_DUMPBIN
738DUMPBIN
739LD
740FGREP
741EGREP
742GREP
743SED
744host_os
745host_vendor
746host_cpu
747host
748build_os
749build_vendor
750build_cpu
751build
752LIBTOOL
753GLIB_MKENUMS
754pkgconfigdir
755PKG_CONFIG_LIBDIR
756PKG_CONFIG_PATH
757PKG_CONFIG
758am__fastdepCC_FALSE
759am__fastdepCC_TRUE
760CCDEPMODE
761am__nodep
762AMDEPBACKSLASH
763AMDEP_FALSE
764AMDEP_TRUE
765am__include
766DEPDIR
767OBJEXT
768EXEEXT
769ac_ct_CC
770CPPFLAGS
771LDFLAGS
772CFLAGS
773CC
774AM_BACKSLASH
775AM_DEFAULT_VERBOSITY
776AM_DEFAULT_V
777AM_V
778am__untar
779am__tar
780AMTAR
781am__leading_dot
782SET_MAKE
783AWK
784mkdir_p
785MKDIR_P
786INSTALL_STRIP_PROGRAM
787STRIP
788install_sh
789MAKEINFO
790AUTOHEADER
791AUTOMAKE
792AUTOCONF
793ACLOCAL
794VERSION
795PACKAGE
796CYGPATH_W
797am__isrc
798INSTALL_DATA
799INSTALL_SCRIPT
800INSTALL_PROGRAM
801AMTK_API_VERSION
802AMTK_LT_VERSION
803target_alias
804host_alias
805build_alias
806LIBS
807ECHO_T
808ECHO_N
809ECHO_C
810DEFS
811mandir
812localedir
813libdir
814psdir
815pdfdir
816dvidir
817htmldir
818infodir
819docdir
820oldincludedir
821includedir
822localstatedir
823sharedstatedir
824sysconfdir
825datadir
826datarootdir
827libexecdir
828sbindir
829bindir
830program_transform_name
831prefix
832exec_prefix
833PACKAGE_URL
834PACKAGE_BUGREPORT
835PACKAGE_STRING
836PACKAGE_VERSION
837PACKAGE_TARNAME
838PACKAGE_NAME
839PATH_SEPARATOR
840SHELL
841am__quote'
842ac_subst_files=''
843ac_user_opts='
844enable_option_checking
845enable_silent_rules
846enable_dependency_tracking
847with_pkgconfigdir
848enable_static
849enable_shared
850with_pic
851enable_fast_install
852with_aix_soname
853with_gnu_ld
854with_sysroot
855enable_libtool_lock
856enable_compile_warnings
857enable_Werror
858enable_nls
859enable_rpath
860with_libiconv_prefix
861with_libintl_prefix
862with_html_dir
863enable_gtk_doc
864enable_gtk_doc_html
865enable_gtk_doc_pdf
866enable_installed_tests
867enable_introspection
868with_gcov
869enable_code_coverage
870enable_valgrind
871enable_valgrind_memcheck
872enable_valgrind_helgrind
873enable_valgrind_drd
874enable_valgrind_sgcheck
875'
876      ac_precious_vars='build_alias
877host_alias
878target_alias
879CC
880CFLAGS
881LDFLAGS
882LIBS
883CPPFLAGS
884PKG_CONFIG
885PKG_CONFIG_PATH
886PKG_CONFIG_LIBDIR
887LT_SYS_LIBRARY_PATH
888CPP
889AMTK_DEP_CFLAGS
890AMTK_DEP_LIBS
891GTKDOC_DEPS_CFLAGS
892GTKDOC_DEPS_LIBS
893GLIB_PREFIX'
894
895
896# Initialize some variables set by options.
897ac_init_help=
898ac_init_version=false
899ac_unrecognized_opts=
900ac_unrecognized_sep=
901# The variables have the same names as the options, with
902# dashes changed to underlines.
903cache_file=/dev/null
904exec_prefix=NONE
905no_create=
906no_recursion=
907prefix=NONE
908program_prefix=NONE
909program_suffix=NONE
910program_transform_name=s,x,x,
911silent=
912site=
913srcdir=
914verbose=
915x_includes=NONE
916x_libraries=NONE
917
918# Installation directory options.
919# These are left unexpanded so users can "make install exec_prefix=/foo"
920# and all the variables that are supposed to be based on exec_prefix
921# by default will actually change.
922# Use braces instead of parens because sh, perl, etc. also accept them.
923# (The list follows the same order as the GNU Coding Standards.)
924bindir='${exec_prefix}/bin'
925sbindir='${exec_prefix}/sbin'
926libexecdir='${exec_prefix}/libexec'
927datarootdir='${prefix}/share'
928datadir='${datarootdir}'
929sysconfdir='${prefix}/etc'
930sharedstatedir='${prefix}/com'
931localstatedir='${prefix}/var'
932includedir='${prefix}/include'
933oldincludedir='/usr/include'
934docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935infodir='${datarootdir}/info'
936htmldir='${docdir}'
937dvidir='${docdir}'
938pdfdir='${docdir}'
939psdir='${docdir}'
940libdir='${exec_prefix}/lib'
941localedir='${datarootdir}/locale'
942mandir='${datarootdir}/man'
943
944ac_prev=
945ac_dashdash=
946for ac_option
947do
948  # If the previous option needs an argument, assign it.
949  if test -n "$ac_prev"; then
950    eval $ac_prev=\$ac_option
951    ac_prev=
952    continue
953  fi
954
955  case $ac_option in
956  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957  *=)   ac_optarg= ;;
958  *)    ac_optarg=yes ;;
959  esac
960
961  # Accept the important Cygnus configure options, so we can diagnose typos.
962
963  case $ac_dashdash$ac_option in
964  --)
965    ac_dashdash=yes ;;
966
967  -bindir | --bindir | --bindi | --bind | --bin | --bi)
968    ac_prev=bindir ;;
969  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970    bindir=$ac_optarg ;;
971
972  -build | --build | --buil | --bui | --bu)
973    ac_prev=build_alias ;;
974  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975    build_alias=$ac_optarg ;;
976
977  -cache-file | --cache-file | --cache-fil | --cache-fi \
978  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979    ac_prev=cache_file ;;
980  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982    cache_file=$ac_optarg ;;
983
984  --config-cache | -C)
985    cache_file=config.cache ;;
986
987  -datadir | --datadir | --datadi | --datad)
988    ac_prev=datadir ;;
989  -datadir=* | --datadir=* | --datadi=* | --datad=*)
990    datadir=$ac_optarg ;;
991
992  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993  | --dataroo | --dataro | --datar)
994    ac_prev=datarootdir ;;
995  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997    datarootdir=$ac_optarg ;;
998
999  -disable-* | --disable-*)
1000    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001    # Reject names that are not valid shell variable names.
1002    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003      as_fn_error $? "invalid feature name: $ac_useropt"
1004    ac_useropt_orig=$ac_useropt
1005    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006    case $ac_user_opts in
1007      *"
1008"enable_$ac_useropt"
1009"*) ;;
1010      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1011	 ac_unrecognized_sep=', ';;
1012    esac
1013    eval enable_$ac_useropt=no ;;
1014
1015  -docdir | --docdir | --docdi | --doc | --do)
1016    ac_prev=docdir ;;
1017  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018    docdir=$ac_optarg ;;
1019
1020  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021    ac_prev=dvidir ;;
1022  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023    dvidir=$ac_optarg ;;
1024
1025  -enable-* | --enable-*)
1026    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027    # Reject names that are not valid shell variable names.
1028    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029      as_fn_error $? "invalid feature name: $ac_useropt"
1030    ac_useropt_orig=$ac_useropt
1031    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032    case $ac_user_opts in
1033      *"
1034"enable_$ac_useropt"
1035"*) ;;
1036      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1037	 ac_unrecognized_sep=', ';;
1038    esac
1039    eval enable_$ac_useropt=\$ac_optarg ;;
1040
1041  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043  | --exec | --exe | --ex)
1044    ac_prev=exec_prefix ;;
1045  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047  | --exec=* | --exe=* | --ex=*)
1048    exec_prefix=$ac_optarg ;;
1049
1050  -gas | --gas | --ga | --g)
1051    # Obsolete; use --with-gas.
1052    with_gas=yes ;;
1053
1054  -help | --help | --hel | --he | -h)
1055    ac_init_help=long ;;
1056  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057    ac_init_help=recursive ;;
1058  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059    ac_init_help=short ;;
1060
1061  -host | --host | --hos | --ho)
1062    ac_prev=host_alias ;;
1063  -host=* | --host=* | --hos=* | --ho=*)
1064    host_alias=$ac_optarg ;;
1065
1066  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067    ac_prev=htmldir ;;
1068  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069  | --ht=*)
1070    htmldir=$ac_optarg ;;
1071
1072  -includedir | --includedir | --includedi | --included | --include \
1073  | --includ | --inclu | --incl | --inc)
1074    ac_prev=includedir ;;
1075  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076  | --includ=* | --inclu=* | --incl=* | --inc=*)
1077    includedir=$ac_optarg ;;
1078
1079  -infodir | --infodir | --infodi | --infod | --info | --inf)
1080    ac_prev=infodir ;;
1081  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082    infodir=$ac_optarg ;;
1083
1084  -libdir | --libdir | --libdi | --libd)
1085    ac_prev=libdir ;;
1086  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087    libdir=$ac_optarg ;;
1088
1089  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090  | --libexe | --libex | --libe)
1091    ac_prev=libexecdir ;;
1092  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093  | --libexe=* | --libex=* | --libe=*)
1094    libexecdir=$ac_optarg ;;
1095
1096  -localedir | --localedir | --localedi | --localed | --locale)
1097    ac_prev=localedir ;;
1098  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099    localedir=$ac_optarg ;;
1100
1101  -localstatedir | --localstatedir | --localstatedi | --localstated \
1102  | --localstate | --localstat | --localsta | --localst | --locals)
1103    ac_prev=localstatedir ;;
1104  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106    localstatedir=$ac_optarg ;;
1107
1108  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109    ac_prev=mandir ;;
1110  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111    mandir=$ac_optarg ;;
1112
1113  -nfp | --nfp | --nf)
1114    # Obsolete; use --without-fp.
1115    with_fp=no ;;
1116
1117  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118  | --no-cr | --no-c | -n)
1119    no_create=yes ;;
1120
1121  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123    no_recursion=yes ;;
1124
1125  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127  | --oldin | --oldi | --old | --ol | --o)
1128    ac_prev=oldincludedir ;;
1129  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132    oldincludedir=$ac_optarg ;;
1133
1134  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135    ac_prev=prefix ;;
1136  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137    prefix=$ac_optarg ;;
1138
1139  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140  | --program-pre | --program-pr | --program-p)
1141    ac_prev=program_prefix ;;
1142  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144    program_prefix=$ac_optarg ;;
1145
1146  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147  | --program-suf | --program-su | --program-s)
1148    ac_prev=program_suffix ;;
1149  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151    program_suffix=$ac_optarg ;;
1152
1153  -program-transform-name | --program-transform-name \
1154  | --program-transform-nam | --program-transform-na \
1155  | --program-transform-n | --program-transform- \
1156  | --program-transform | --program-transfor \
1157  | --program-transfo | --program-transf \
1158  | --program-trans | --program-tran \
1159  | --progr-tra | --program-tr | --program-t)
1160    ac_prev=program_transform_name ;;
1161  -program-transform-name=* | --program-transform-name=* \
1162  | --program-transform-nam=* | --program-transform-na=* \
1163  | --program-transform-n=* | --program-transform-=* \
1164  | --program-transform=* | --program-transfor=* \
1165  | --program-transfo=* | --program-transf=* \
1166  | --program-trans=* | --program-tran=* \
1167  | --progr-tra=* | --program-tr=* | --program-t=*)
1168    program_transform_name=$ac_optarg ;;
1169
1170  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171    ac_prev=pdfdir ;;
1172  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173    pdfdir=$ac_optarg ;;
1174
1175  -psdir | --psdir | --psdi | --psd | --ps)
1176    ac_prev=psdir ;;
1177  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178    psdir=$ac_optarg ;;
1179
1180  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181  | -silent | --silent | --silen | --sile | --sil)
1182    silent=yes ;;
1183
1184  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185    ac_prev=sbindir ;;
1186  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187  | --sbi=* | --sb=*)
1188    sbindir=$ac_optarg ;;
1189
1190  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192  | --sharedst | --shareds | --shared | --share | --shar \
1193  | --sha | --sh)
1194    ac_prev=sharedstatedir ;;
1195  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198  | --sha=* | --sh=*)
1199    sharedstatedir=$ac_optarg ;;
1200
1201  -site | --site | --sit)
1202    ac_prev=site ;;
1203  -site=* | --site=* | --sit=*)
1204    site=$ac_optarg ;;
1205
1206  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207    ac_prev=srcdir ;;
1208  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209    srcdir=$ac_optarg ;;
1210
1211  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212  | --syscon | --sysco | --sysc | --sys | --sy)
1213    ac_prev=sysconfdir ;;
1214  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216    sysconfdir=$ac_optarg ;;
1217
1218  -target | --target | --targe | --targ | --tar | --ta | --t)
1219    ac_prev=target_alias ;;
1220  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221    target_alias=$ac_optarg ;;
1222
1223  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224    verbose=yes ;;
1225
1226  -version | --version | --versio | --versi | --vers | -V)
1227    ac_init_version=: ;;
1228
1229  -with-* | --with-*)
1230    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231    # Reject names that are not valid shell variable names.
1232    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233      as_fn_error $? "invalid package name: $ac_useropt"
1234    ac_useropt_orig=$ac_useropt
1235    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236    case $ac_user_opts in
1237      *"
1238"with_$ac_useropt"
1239"*) ;;
1240      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1241	 ac_unrecognized_sep=', ';;
1242    esac
1243    eval with_$ac_useropt=\$ac_optarg ;;
1244
1245  -without-* | --without-*)
1246    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1247    # Reject names that are not valid shell variable names.
1248    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249      as_fn_error $? "invalid package name: $ac_useropt"
1250    ac_useropt_orig=$ac_useropt
1251    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252    case $ac_user_opts in
1253      *"
1254"with_$ac_useropt"
1255"*) ;;
1256      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1257	 ac_unrecognized_sep=', ';;
1258    esac
1259    eval with_$ac_useropt=no ;;
1260
1261  --x)
1262    # Obsolete; use --with-x.
1263    with_x=yes ;;
1264
1265  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1266  | --x-incl | --x-inc | --x-in | --x-i)
1267    ac_prev=x_includes ;;
1268  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1269  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1270    x_includes=$ac_optarg ;;
1271
1272  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1273  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1274    ac_prev=x_libraries ;;
1275  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1276  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1277    x_libraries=$ac_optarg ;;
1278
1279  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1280Try \`$0 --help' for more information"
1281    ;;
1282
1283  *=*)
1284    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285    # Reject names that are not valid shell variable names.
1286    case $ac_envvar in #(
1287      '' | [0-9]* | *[!_$as_cr_alnum]* )
1288      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1289    esac
1290    eval $ac_envvar=\$ac_optarg
1291    export $ac_envvar ;;
1292
1293  *)
1294    # FIXME: should be removed in autoconf 3.0.
1295    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1296    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1297      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1298    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1299    ;;
1300
1301  esac
1302done
1303
1304if test -n "$ac_prev"; then
1305  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1306  as_fn_error $? "missing argument to $ac_option"
1307fi
1308
1309if test -n "$ac_unrecognized_opts"; then
1310  case $enable_option_checking in
1311    no) ;;
1312    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1313    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314  esac
1315fi
1316
1317# Check all directory arguments for consistency.
1318for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319		datadir sysconfdir sharedstatedir localstatedir includedir \
1320		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321		libdir localedir mandir
1322do
1323  eval ac_val=\$$ac_var
1324  # Remove trailing slashes.
1325  case $ac_val in
1326    */ )
1327      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1328      eval $ac_var=\$ac_val;;
1329  esac
1330  # Be sure to have absolute directory names.
1331  case $ac_val in
1332    [\\/$]* | ?:[\\/]* )  continue;;
1333    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1334  esac
1335  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1336done
1337
1338# There might be people who depend on the old broken behavior: `$host'
1339# used to hold the argument of --host etc.
1340# FIXME: To remove some day.
1341build=$build_alias
1342host=$host_alias
1343target=$target_alias
1344
1345# FIXME: To remove some day.
1346if test "x$host_alias" != x; then
1347  if test "x$build_alias" = x; then
1348    cross_compiling=maybe
1349  elif test "x$build_alias" != "x$host_alias"; then
1350    cross_compiling=yes
1351  fi
1352fi
1353
1354ac_tool_prefix=
1355test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357test "$silent" = yes && exec 6>/dev/null
1358
1359
1360ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361ac_ls_di=`ls -di .` &&
1362ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363  as_fn_error $? "working directory cannot be determined"
1364test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365  as_fn_error $? "pwd does not report name of working directory"
1366
1367
1368# Find the source files, if location was not specified.
1369if test -z "$srcdir"; then
1370  ac_srcdir_defaulted=yes
1371  # Try the directory containing this script, then the parent directory.
1372  ac_confdir=`$as_dirname -- "$as_myself" ||
1373$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374	 X"$as_myself" : 'X\(//\)[^/]' \| \
1375	 X"$as_myself" : 'X\(//\)$' \| \
1376	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377$as_echo X"$as_myself" |
1378    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379	    s//\1/
1380	    q
1381	  }
1382	  /^X\(\/\/\)[^/].*/{
1383	    s//\1/
1384	    q
1385	  }
1386	  /^X\(\/\/\)$/{
1387	    s//\1/
1388	    q
1389	  }
1390	  /^X\(\/\).*/{
1391	    s//\1/
1392	    q
1393	  }
1394	  s/.*/./; q'`
1395  srcdir=$ac_confdir
1396  if test ! -r "$srcdir/$ac_unique_file"; then
1397    srcdir=..
1398  fi
1399else
1400  ac_srcdir_defaulted=no
1401fi
1402if test ! -r "$srcdir/$ac_unique_file"; then
1403  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1405fi
1406ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407ac_abs_confdir=`(
1408	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409	pwd)`
1410# When building in place, set srcdir=.
1411if test "$ac_abs_confdir" = "$ac_pwd"; then
1412  srcdir=.
1413fi
1414# Remove unnecessary trailing slashes from srcdir.
1415# Double slashes in file names in object file debugging info
1416# mess up M-x gdb in Emacs.
1417case $srcdir in
1418*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419esac
1420for ac_var in $ac_precious_vars; do
1421  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422  eval ac_env_${ac_var}_value=\$${ac_var}
1423  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425done
1426
1427#
1428# Report the --help message.
1429#
1430if test "$ac_init_help" = "long"; then
1431  # Omit some internal or obsolete options to make the list less imposing.
1432  # This message is too long to be a string in the A/UX 3.1 sh.
1433  cat <<_ACEOF
1434\`configure' configures Amtk 5.2.0 to adapt to many kinds of systems.
1435
1436Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439VAR=VALUE.  See below for descriptions of some of the useful variables.
1440
1441Defaults for the options are specified in brackets.
1442
1443Configuration:
1444  -h, --help              display this help and exit
1445      --help=short        display options specific to this package
1446      --help=recursive    display the short help of all the included packages
1447  -V, --version           display version information and exit
1448  -q, --quiet, --silent   do not print \`checking ...' messages
1449      --cache-file=FILE   cache test results in FILE [disabled]
1450  -C, --config-cache      alias for \`--cache-file=config.cache'
1451  -n, --no-create         do not create output files
1452      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1453
1454Installation directories:
1455  --prefix=PREFIX         install architecture-independent files in PREFIX
1456                          [$ac_default_prefix]
1457  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1458                          [PREFIX]
1459
1460By default, \`make install' will install all the files in
1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1462an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463for instance \`--prefix=\$HOME'.
1464
1465For better control, use the options below.
1466
1467Fine tuning of the installation directories:
1468  --bindir=DIR            user executables [EPREFIX/bin]
1469  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1470  --libexecdir=DIR        program executables [EPREFIX/libexec]
1471  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1472  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1473  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1474  --libdir=DIR            object code libraries [EPREFIX/lib]
1475  --includedir=DIR        C header files [PREFIX/include]
1476  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1477  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1478  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1479  --infodir=DIR           info documentation [DATAROOTDIR/info]
1480  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1481  --mandir=DIR            man documentation [DATAROOTDIR/man]
1482  --docdir=DIR            documentation root [DATAROOTDIR/doc/amtk]
1483  --htmldir=DIR           html documentation [DOCDIR]
1484  --dvidir=DIR            dvi documentation [DOCDIR]
1485  --pdfdir=DIR            pdf documentation [DOCDIR]
1486  --psdir=DIR             ps documentation [DOCDIR]
1487_ACEOF
1488
1489  cat <<\_ACEOF
1490
1491Program names:
1492  --program-prefix=PREFIX            prepend PREFIX to installed program names
1493  --program-suffix=SUFFIX            append SUFFIX to installed program names
1494  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1495
1496System types:
1497  --build=BUILD     configure for building on BUILD [guessed]
1498  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1499_ACEOF
1500fi
1501
1502if test -n "$ac_init_help"; then
1503  case $ac_init_help in
1504     short | recursive ) echo "Configuration of Amtk 5.2.0:";;
1505   esac
1506  cat <<\_ACEOF
1507
1508Optional Features:
1509  --disable-option-checking  ignore unrecognized --enable/--with options
1510  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1511  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1512  --enable-silent-rules   less verbose build output (undo: "make V=1")
1513  --disable-silent-rules  verbose build output (undo: "make V=0")
1514  --enable-dependency-tracking
1515                          do not reject slow dependency extractors
1516  --disable-dependency-tracking
1517                          speeds up one-time build
1518  --enable-static[=PKGS]  build static libraries [default=no]
1519  --enable-shared[=PKGS]  build shared libraries [default=yes]
1520  --enable-fast-install[=PKGS]
1521                          optimize for fast installation [default=yes]
1522  --disable-libtool-lock  avoid locking (might break parallel builds)
1523  --enable-compile-warnings=[no/yes/error]
1524                          Enable compiler warnings and errors
1525  --disable-Werror        Unconditionally make all compiler warnings non-fatal
1526  --disable-nls           do not use Native Language Support
1527  --disable-rpath         do not hardcode runtime library paths
1528  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1529  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1530  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1531  --enable-installed-tests
1532                          Install test programs (default: no)
1533  --enable-introspection=[no/auto/yes]
1534                          Enable introspection for this build
1535  --enable-code-coverage  Whether to enable code coverage support
1536  --enable-valgrind       Whether to enable Valgrind on the unit tests
1537  --disable-valgrind-memcheck
1538                          Whether to skip memcheck during the Valgrind tests
1539  --disable-valgrind-helgrind
1540                          Whether to skip helgrind during the Valgrind tests
1541  --disable-valgrind-drd  Whether to skip drd during the Valgrind tests
1542  --disable-valgrind-sgcheck
1543                          Whether to skip sgcheck during the Valgrind tests
1544
1545Optional Packages:
1546  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1547  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1548  --with-pkgconfigdir     pkg-config installation directory
1549                          ['${libdir}/pkgconfig']
1550  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1551                          both]
1552  --with-aix-soname=aix|svr4|both
1553                          shared library versioning (aka "SONAME") variant to
1554                          provide on AIX, [default=aix].
1555  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1556  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1557                          compiler's sysroot if not specified).
1558  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1559  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1560  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1561  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1562  --without-libintl-prefix     don't search for libintl in includedir and libdir
1563  --with-html-dir=PATH    path to installed docs
1564  --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1565
1566Some influential environment variables:
1567  CC          C compiler command
1568  CFLAGS      C compiler flags
1569  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570              nonstandard directory <lib dir>
1571  LIBS        libraries to pass to the linker, e.g. -l<library>
1572  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573              you have headers in a nonstandard directory <include dir>
1574  PKG_CONFIG  path to pkg-config utility
1575  PKG_CONFIG_PATH
1576              directories to add to pkg-config's search path
1577  PKG_CONFIG_LIBDIR
1578              path overriding pkg-config's built-in search path
1579  LT_SYS_LIBRARY_PATH
1580              User-defined run-time library search path.
1581  CPP         C preprocessor
1582  AMTK_DEP_CFLAGS
1583              C compiler flags for AMTK_DEP, overriding pkg-config
1584  AMTK_DEP_LIBS
1585              linker flags for AMTK_DEP, overriding pkg-config
1586  GTKDOC_DEPS_CFLAGS
1587              C compiler flags for GTKDOC_DEPS, overriding pkg-config
1588  GTKDOC_DEPS_LIBS
1589              linker flags for GTKDOC_DEPS, overriding pkg-config
1590  GLIB_PREFIX value of prefix for glib-2.0, overriding pkg-config
1591
1592Use these variables to override the choices made by `configure' or to help
1593it to find libraries and programs with nonstandard names/locations.
1594
1595Report bugs to <https://gitlab.gnome.org/GNOME/amtk/issues>.
1596Amtk home page: <https://wiki.gnome.org/Projects/Amtk>.
1597_ACEOF
1598ac_status=$?
1599fi
1600
1601if test "$ac_init_help" = "recursive"; then
1602  # If there are subdirs, report their specific --help.
1603  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604    test -d "$ac_dir" ||
1605      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606      continue
1607    ac_builddir=.
1608
1609case "$ac_dir" in
1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611*)
1612  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613  # A ".." for each directory in $ac_dir_suffix.
1614  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615  case $ac_top_builddir_sub in
1616  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618  esac ;;
1619esac
1620ac_abs_top_builddir=$ac_pwd
1621ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622# for backward compatibility:
1623ac_top_builddir=$ac_top_build_prefix
1624
1625case $srcdir in
1626  .)  # We are building in place.
1627    ac_srcdir=.
1628    ac_top_srcdir=$ac_top_builddir_sub
1629    ac_abs_top_srcdir=$ac_pwd ;;
1630  [\\/]* | ?:[\\/]* )  # Absolute name.
1631    ac_srcdir=$srcdir$ac_dir_suffix;
1632    ac_top_srcdir=$srcdir
1633    ac_abs_top_srcdir=$srcdir ;;
1634  *) # Relative name.
1635    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636    ac_top_srcdir=$ac_top_build_prefix$srcdir
1637    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638esac
1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641    cd "$ac_dir" || { ac_status=$?; continue; }
1642    # Check for guested configure.
1643    if test -f "$ac_srcdir/configure.gnu"; then
1644      echo &&
1645      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646    elif test -f "$ac_srcdir/configure"; then
1647      echo &&
1648      $SHELL "$ac_srcdir/configure" --help=recursive
1649    else
1650      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651    fi || ac_status=$?
1652    cd "$ac_pwd" || { ac_status=$?; break; }
1653  done
1654fi
1655
1656test -n "$ac_init_help" && exit $ac_status
1657if $ac_init_version; then
1658  cat <<\_ACEOF
1659Amtk configure 5.2.0
1660generated by GNU Autoconf 2.69
1661
1662Copyright (C) 2012 Free Software Foundation, Inc.
1663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
1665_ACEOF
1666  exit
1667fi
1668
1669## ------------------------ ##
1670## Autoconf initialization. ##
1671## ------------------------ ##
1672
1673# ac_fn_c_try_compile LINENO
1674# --------------------------
1675# Try to compile conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_compile ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  rm -f conftest.$ac_objext
1680  if { { ac_try="$ac_compile"
1681case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687  (eval "$ac_compile") 2>conftest.err
1688  ac_status=$?
1689  if test -s conftest.err; then
1690    grep -v '^ *+' conftest.err >conftest.er1
1691    cat conftest.er1 >&5
1692    mv -f conftest.er1 conftest.err
1693  fi
1694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695  test $ac_status = 0; } && {
1696	 test -z "$ac_c_werror_flag" ||
1697	 test ! -s conftest.err
1698       } && test -s conftest.$ac_objext; then :
1699  ac_retval=0
1700else
1701  $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704	ac_retval=1
1705fi
1706  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707  as_fn_set_status $ac_retval
1708
1709} # ac_fn_c_try_compile
1710
1711# ac_fn_c_try_link LINENO
1712# -----------------------
1713# Try to link conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_link ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  rm -f conftest.$ac_objext conftest$ac_exeext
1718  if { { ac_try="$ac_link"
1719case "(($ac_try" in
1720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721  *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725  (eval "$ac_link") 2>conftest.err
1726  ac_status=$?
1727  if test -s conftest.err; then
1728    grep -v '^ *+' conftest.err >conftest.er1
1729    cat conftest.er1 >&5
1730    mv -f conftest.er1 conftest.err
1731  fi
1732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733  test $ac_status = 0; } && {
1734	 test -z "$ac_c_werror_flag" ||
1735	 test ! -s conftest.err
1736       } && test -s conftest$ac_exeext && {
1737	 test "$cross_compiling" = yes ||
1738	 test -x conftest$ac_exeext
1739       }; then :
1740  ac_retval=0
1741else
1742  $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745	ac_retval=1
1746fi
1747  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749  # interfere with the next link command; also delete a directory that is
1750  # left behind by Apple's compiler.  We do this before executing the actions.
1751  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753  as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_link
1756
1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1758# -------------------------------------------------------
1759# Tests whether HEADER exists and can be compiled using the include files in
1760# INCLUDES, setting the cache variable VAR accordingly.
1761ac_fn_c_check_header_compile ()
1762{
1763  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765$as_echo_n "checking for $2... " >&6; }
1766if eval \${$3+:} false; then :
1767  $as_echo_n "(cached) " >&6
1768else
1769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h.  */
1771$4
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_compile "$LINENO"; then :
1775  eval "$3=yes"
1776else
1777  eval "$3=no"
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780fi
1781eval ac_res=\$$3
1782	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_header_compile
1787
1788# ac_fn_c_try_cpp LINENO
1789# ----------------------
1790# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_c_try_cpp ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  if { { ac_try="$ac_cpp conftest.$ac_ext"
1795case "(($ac_try" in
1796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797  *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1802  ac_status=$?
1803  if test -s conftest.err; then
1804    grep -v '^ *+' conftest.err >conftest.er1
1805    cat conftest.er1 >&5
1806    mv -f conftest.er1 conftest.err
1807  fi
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; } > conftest.i && {
1810	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1811	 test ! -s conftest.err
1812       }; then :
1813  ac_retval=0
1814else
1815  $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818    ac_retval=1
1819fi
1820  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821  as_fn_set_status $ac_retval
1822
1823} # ac_fn_c_try_cpp
1824
1825# ac_fn_c_try_run LINENO
1826# ----------------------
1827# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1828# that executables *can* be run.
1829ac_fn_c_try_run ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  if { { ac_try="$ac_link"
1833case "(($ac_try" in
1834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835  *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839  (eval "$ac_link") 2>&5
1840  ac_status=$?
1841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1843  { { case "(($ac_try" in
1844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845  *) ac_try_echo=$ac_try;;
1846esac
1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848$as_echo "$ac_try_echo"; } >&5
1849  (eval "$ac_try") 2>&5
1850  ac_status=$?
1851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852  test $ac_status = 0; }; }; then :
1853  ac_retval=0
1854else
1855  $as_echo "$as_me: program exited with status $ac_status" >&5
1856       $as_echo "$as_me: failed program was:" >&5
1857sed 's/^/| /' conftest.$ac_ext >&5
1858
1859       ac_retval=$ac_status
1860fi
1861  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1862  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863  as_fn_set_status $ac_retval
1864
1865} # ac_fn_c_try_run
1866
1867# ac_fn_c_check_func LINENO FUNC VAR
1868# ----------------------------------
1869# Tests whether FUNC exists, setting the cache variable VAR accordingly
1870ac_fn_c_check_func ()
1871{
1872  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874$as_echo_n "checking for $2... " >&6; }
1875if eval \${$3+:} false; then :
1876  $as_echo_n "(cached) " >&6
1877else
1878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879/* end confdefs.h.  */
1880/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1881   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1882#define $2 innocuous_$2
1883
1884/* System header to define __stub macros and hopefully few prototypes,
1885    which can conflict with char $2 (); below.
1886    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1887    <limits.h> exists even on freestanding compilers.  */
1888
1889#ifdef __STDC__
1890# include <limits.h>
1891#else
1892# include <assert.h>
1893#endif
1894
1895#undef $2
1896
1897/* Override any GCC internal prototype to avoid an error.
1898   Use char because int might match the return type of a GCC
1899   builtin and then its argument prototype would still apply.  */
1900#ifdef __cplusplus
1901extern "C"
1902#endif
1903char $2 ();
1904/* The GNU C library defines this for functions which it implements
1905    to always fail with ENOSYS.  Some functions are actually named
1906    something starting with __ and the normal name is an alias.  */
1907#if defined __stub_$2 || defined __stub___$2
1908choke me
1909#endif
1910
1911int
1912main ()
1913{
1914return $2 ();
1915  ;
1916  return 0;
1917}
1918_ACEOF
1919if ac_fn_c_try_link "$LINENO"; then :
1920  eval "$3=yes"
1921else
1922  eval "$3=no"
1923fi
1924rm -f core conftest.err conftest.$ac_objext \
1925    conftest$ac_exeext conftest.$ac_ext
1926fi
1927eval ac_res=\$$3
1928	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929$as_echo "$ac_res" >&6; }
1930  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932} # ac_fn_c_check_func
1933cat >config.log <<_ACEOF
1934This file contains any messages produced by compilers while
1935running configure, to aid debugging if configure makes a mistake.
1936
1937It was created by Amtk $as_me 5.2.0, which was
1938generated by GNU Autoconf 2.69.  Invocation command line was
1939
1940  $ $0 $@
1941
1942_ACEOF
1943exec 5>>config.log
1944{
1945cat <<_ASUNAME
1946## --------- ##
1947## Platform. ##
1948## --------- ##
1949
1950hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1951uname -m = `(uname -m) 2>/dev/null || echo unknown`
1952uname -r = `(uname -r) 2>/dev/null || echo unknown`
1953uname -s = `(uname -s) 2>/dev/null || echo unknown`
1954uname -v = `(uname -v) 2>/dev/null || echo unknown`
1955
1956/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1957/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1958
1959/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1960/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1961/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1962/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1963/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1964/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1965/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1966
1967_ASUNAME
1968
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972  IFS=$as_save_IFS
1973  test -z "$as_dir" && as_dir=.
1974    $as_echo "PATH: $as_dir"
1975  done
1976IFS=$as_save_IFS
1977
1978} >&5
1979
1980cat >&5 <<_ACEOF
1981
1982
1983## ----------- ##
1984## Core tests. ##
1985## ----------- ##
1986
1987_ACEOF
1988
1989
1990# Keep a trace of the command line.
1991# Strip out --no-create and --no-recursion so they do not pile up.
1992# Strip out --silent because we don't want to record it for future runs.
1993# Also quote any args containing shell meta-characters.
1994# Make two passes to allow for proper duplicate-argument suppression.
1995ac_configure_args=
1996ac_configure_args0=
1997ac_configure_args1=
1998ac_must_keep_next=false
1999for ac_pass in 1 2
2000do
2001  for ac_arg
2002  do
2003    case $ac_arg in
2004    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2005    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2006    | -silent | --silent | --silen | --sile | --sil)
2007      continue ;;
2008    *\'*)
2009      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2010    esac
2011    case $ac_pass in
2012    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2013    2)
2014      as_fn_append ac_configure_args1 " '$ac_arg'"
2015      if test $ac_must_keep_next = true; then
2016	ac_must_keep_next=false # Got value, back to normal.
2017      else
2018	case $ac_arg in
2019	  *=* | --config-cache | -C | -disable-* | --disable-* \
2020	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2021	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2022	  | -with-* | --with-* | -without-* | --without-* | --x)
2023	    case "$ac_configure_args0 " in
2024	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2025	    esac
2026	    ;;
2027	  -* ) ac_must_keep_next=true ;;
2028	esac
2029      fi
2030      as_fn_append ac_configure_args " '$ac_arg'"
2031      ;;
2032    esac
2033  done
2034done
2035{ ac_configure_args0=; unset ac_configure_args0;}
2036{ ac_configure_args1=; unset ac_configure_args1;}
2037
2038# When interrupted or exit'd, cleanup temporary files, and complete
2039# config.log.  We remove comments because anyway the quotes in there
2040# would cause problems or look ugly.
2041# WARNING: Use '\'' to represent an apostrophe within the trap.
2042# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2043trap 'exit_status=$?
2044  # Save into config.log some information that might help in debugging.
2045  {
2046    echo
2047
2048    $as_echo "## ---------------- ##
2049## Cache variables. ##
2050## ---------------- ##"
2051    echo
2052    # The following way of writing the cache mishandles newlines in values,
2053(
2054  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2055    eval ac_val=\$$ac_var
2056    case $ac_val in #(
2057    *${as_nl}*)
2058      case $ac_var in #(
2059      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2060$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2061      esac
2062      case $ac_var in #(
2063      _ | IFS | as_nl) ;; #(
2064      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2065      *) { eval $ac_var=; unset $ac_var;} ;;
2066      esac ;;
2067    esac
2068  done
2069  (set) 2>&1 |
2070    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2071    *${as_nl}ac_space=\ *)
2072      sed -n \
2073	"s/'\''/'\''\\\\'\'''\''/g;
2074	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2075      ;; #(
2076    *)
2077      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2078      ;;
2079    esac |
2080    sort
2081)
2082    echo
2083
2084    $as_echo "## ----------------- ##
2085## Output variables. ##
2086## ----------------- ##"
2087    echo
2088    for ac_var in $ac_subst_vars
2089    do
2090      eval ac_val=\$$ac_var
2091      case $ac_val in
2092      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093      esac
2094      $as_echo "$ac_var='\''$ac_val'\''"
2095    done | sort
2096    echo
2097
2098    if test -n "$ac_subst_files"; then
2099      $as_echo "## ------------------- ##
2100## File substitutions. ##
2101## ------------------- ##"
2102      echo
2103      for ac_var in $ac_subst_files
2104      do
2105	eval ac_val=\$$ac_var
2106	case $ac_val in
2107	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108	esac
2109	$as_echo "$ac_var='\''$ac_val'\''"
2110      done | sort
2111      echo
2112    fi
2113
2114    if test -s confdefs.h; then
2115      $as_echo "## ----------- ##
2116## confdefs.h. ##
2117## ----------- ##"
2118      echo
2119      cat confdefs.h
2120      echo
2121    fi
2122    test "$ac_signal" != 0 &&
2123      $as_echo "$as_me: caught signal $ac_signal"
2124    $as_echo "$as_me: exit $exit_status"
2125  } >&5
2126  rm -f core *.core core.conftest.* &&
2127    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2128    exit $exit_status
2129' 0
2130for ac_signal in 1 2 13 15; do
2131  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2132done
2133ac_signal=0
2134
2135# confdefs.h avoids OS command line length limits that DEFS can exceed.
2136rm -f -r conftest* confdefs.h
2137
2138$as_echo "/* confdefs.h */" > confdefs.h
2139
2140# Predefined preprocessor variables.
2141
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_NAME "$PACKAGE_NAME"
2144_ACEOF
2145
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2148_ACEOF
2149
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_VERSION "$PACKAGE_VERSION"
2152_ACEOF
2153
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_STRING "$PACKAGE_STRING"
2156_ACEOF
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160_ACEOF
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_URL "$PACKAGE_URL"
2164_ACEOF
2165
2166
2167# Let the site file select an alternate cache file if it wants to.
2168# Prefer an explicitly selected file to automatically selected ones.
2169ac_site_file1=NONE
2170ac_site_file2=NONE
2171if test -n "$CONFIG_SITE"; then
2172  # We do not want a PATH search for config.site.
2173  case $CONFIG_SITE in #((
2174    -*)  ac_site_file1=./$CONFIG_SITE;;
2175    */*) ac_site_file1=$CONFIG_SITE;;
2176    *)   ac_site_file1=./$CONFIG_SITE;;
2177  esac
2178elif test "x$prefix" != xNONE; then
2179  ac_site_file1=$prefix/share/config.site
2180  ac_site_file2=$prefix/etc/config.site
2181else
2182  ac_site_file1=$ac_default_prefix/share/config.site
2183  ac_site_file2=$ac_default_prefix/etc/config.site
2184fi
2185for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2186do
2187  test "x$ac_site_file" = xNONE && continue
2188  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2189    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2190$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2191    sed 's/^/| /' "$ac_site_file" >&5
2192    . "$ac_site_file" \
2193      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2195as_fn_error $? "failed to load site script $ac_site_file
2196See \`config.log' for more details" "$LINENO" 5; }
2197  fi
2198done
2199
2200if test -r "$cache_file"; then
2201  # Some versions of bash will fail to source /dev/null (special files
2202  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2203  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2204    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2205$as_echo "$as_me: loading cache $cache_file" >&6;}
2206    case $cache_file in
2207      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2208      *)                      . "./$cache_file";;
2209    esac
2210  fi
2211else
2212  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2213$as_echo "$as_me: creating cache $cache_file" >&6;}
2214  >$cache_file
2215fi
2216
2217gt_needs="$gt_needs "
2218# Check that the precious variables saved in the cache have kept the same
2219# value.
2220ac_cache_corrupted=false
2221for ac_var in $ac_precious_vars; do
2222  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2223  eval ac_new_set=\$ac_env_${ac_var}_set
2224  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2225  eval ac_new_val=\$ac_env_${ac_var}_value
2226  case $ac_old_set,$ac_new_set in
2227    set,)
2228      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2229$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2230      ac_cache_corrupted=: ;;
2231    ,set)
2232      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2233$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2234      ac_cache_corrupted=: ;;
2235    ,);;
2236    *)
2237      if test "x$ac_old_val" != "x$ac_new_val"; then
2238	# differences in whitespace do not lead to failure.
2239	ac_old_val_w=`echo x $ac_old_val`
2240	ac_new_val_w=`echo x $ac_new_val`
2241	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2242	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2243$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2244	  ac_cache_corrupted=:
2245	else
2246	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2247$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2248	  eval $ac_var=\$ac_old_val
2249	fi
2250	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2251$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2252	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2253$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2254      fi;;
2255  esac
2256  # Pass precious variables to config.status.
2257  if test "$ac_new_set" = set; then
2258    case $ac_new_val in
2259    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2260    *) ac_arg=$ac_var=$ac_new_val ;;
2261    esac
2262    case " $ac_configure_args " in
2263      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2264      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2265    esac
2266  fi
2267done
2268if $ac_cache_corrupted; then
2269  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2271  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2272$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2273  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2274fi
2275## -------------------- ##
2276## Main body of script. ##
2277## -------------------- ##
2278
2279ac_ext=c
2280ac_cpp='$CPP $CPPFLAGS'
2281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293        # $is_release = (.git directory does not exist)
2294        if test -d ${srcdir}/.git; then :
2295  ax_is_release=no
2296else
2297  ax_is_release=yes
2298fi
2299
2300
2301
2302# Libtool versioning
2303#
2304# For development releases (if the minor package version is odd), keep the same
2305# Libtool version.
2306#
2307# For a new minor stable release (when incrementing the minor package version
2308# to an even number), apply the following algorithm step by step:
2309# 1. If the library source code has changed at all since the last
2310#    update, then increment REVISION.
2311# 2. If any exported functions or data have been added, removed, or
2312#    changed since the last update, increment CURRENT and set REVISION
2313#    to 0.
2314# 3. If any exported functions or data have been added since the last
2315#    public release, increment AGE.
2316# 4. If any exported functions or data have been removed since the last
2317#    public release, set AGE to 0.
2318#
2319# When incrementing the API version (usually for a new major package version),
2320# set CURRENT, REVISION and AGE to 0 since it's like a new library.
2321AMTK_LT_CURRENT=0
2322AMTK_LT_REVISION=0
2323AMTK_LT_AGE=0
2324AMTK_LT_VERSION="$AMTK_LT_CURRENT:$AMTK_LT_REVISION:$AMTK_LT_AGE"
2325
2326
2327# API version, used for parallel installability.
2328# Not used in:
2329# - po/Makevars
2330# - the docs/reference/amtk-5.0-sections.txt filename
2331# Because as far as I've tested, it is not easily feasible to not hardcode the
2332# API version in those places (swilmet).
2333AMTK_API_VERSION=5
2334
2335
2336# Dependencies
2337glib_req=2.56
2338gtk_req=3.22
2339
2340
2341ac_config_headers="$ac_config_headers config.h"
2342
2343
2344
2345# gnu strictness to generate the INSTALL file
2346am__api_version='1.16'
2347
2348ac_aux_dir=
2349for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2350  if test -f "$ac_dir/install-sh"; then
2351    ac_aux_dir=$ac_dir
2352    ac_install_sh="$ac_aux_dir/install-sh -c"
2353    break
2354  elif test -f "$ac_dir/install.sh"; then
2355    ac_aux_dir=$ac_dir
2356    ac_install_sh="$ac_aux_dir/install.sh -c"
2357    break
2358  elif test -f "$ac_dir/shtool"; then
2359    ac_aux_dir=$ac_dir
2360    ac_install_sh="$ac_aux_dir/shtool install -c"
2361    break
2362  fi
2363done
2364if test -z "$ac_aux_dir"; then
2365  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2366fi
2367
2368# These three variables are undocumented and unsupported,
2369# and are intended to be withdrawn in a future Autoconf release.
2370# They can cause serious problems if a builder's source tree is in a directory
2371# whose full name contains unusual characters.
2372ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2373ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2374ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2375
2376
2377# Find a good install program.  We prefer a C program (faster),
2378# so one script is as good as another.  But avoid the broken or
2379# incompatible versions:
2380# SysV /etc/install, /usr/sbin/install
2381# SunOS /usr/etc/install
2382# IRIX /sbin/install
2383# AIX /bin/install
2384# AmigaOS /C/install, which installs bootblocks on floppy discs
2385# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2386# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2387# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2388# OS/2's system install, which has a completely different semantic
2389# ./install, which can be erroneously created by make from ./install.sh.
2390# Reject install programs that cannot install multiple files.
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2392$as_echo_n "checking for a BSD-compatible install... " >&6; }
2393if test -z "$INSTALL"; then
2394if ${ac_cv_path_install+:} false; then :
2395  $as_echo_n "(cached) " >&6
2396else
2397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400  IFS=$as_save_IFS
2401  test -z "$as_dir" && as_dir=.
2402    # Account for people who put trailing slashes in PATH elements.
2403case $as_dir/ in #((
2404  ./ | .// | /[cC]/* | \
2405  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2406  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2407  /usr/ucb/* ) ;;
2408  *)
2409    # OSF1 and SCO ODT 3.0 have their own names for install.
2410    # Don't use installbsd from OSF since it installs stuff as root
2411    # by default.
2412    for ac_prog in ginstall scoinst install; do
2413      for ac_exec_ext in '' $ac_executable_extensions; do
2414	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2415	  if test $ac_prog = install &&
2416	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2417	    # AIX install.  It has an incompatible calling convention.
2418	    :
2419	  elif test $ac_prog = install &&
2420	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421	    # program-specific install script used by HP pwplus--don't use.
2422	    :
2423	  else
2424	    rm -rf conftest.one conftest.two conftest.dir
2425	    echo one > conftest.one
2426	    echo two > conftest.two
2427	    mkdir conftest.dir
2428	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2429	      test -s conftest.one && test -s conftest.two &&
2430	      test -s conftest.dir/conftest.one &&
2431	      test -s conftest.dir/conftest.two
2432	    then
2433	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434	      break 3
2435	    fi
2436	  fi
2437	fi
2438      done
2439    done
2440    ;;
2441esac
2442
2443  done
2444IFS=$as_save_IFS
2445
2446rm -rf conftest.one conftest.two conftest.dir
2447
2448fi
2449  if test "${ac_cv_path_install+set}" = set; then
2450    INSTALL=$ac_cv_path_install
2451  else
2452    # As a last resort, use the slow shell script.  Don't cache a
2453    # value for INSTALL within a source directory, because that will
2454    # break other packages using the cache if that directory is
2455    # removed, or if the value is a relative name.
2456    INSTALL=$ac_install_sh
2457  fi
2458fi
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2460$as_echo "$INSTALL" >&6; }
2461
2462# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463# It thinks the first close brace ends the variable substitution.
2464test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465
2466test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2467
2468test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2471$as_echo_n "checking whether build environment is sane... " >&6; }
2472# Reject unsafe characters in $srcdir or the absolute working directory
2473# name.  Accept space and tab only in the latter.
2474am_lf='
2475'
2476case `pwd` in
2477  *[\\\"\#\$\&\'\`$am_lf]*)
2478    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2479esac
2480case $srcdir in
2481  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2482    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2483esac
2484
2485# Do 'set' in a subshell so we don't clobber the current shell's
2486# arguments.  Must try -L first in case configure is actually a
2487# symlink; some systems play weird games with the mod time of symlinks
2488# (eg FreeBSD returns the mod time of the symlink's containing
2489# directory).
2490if (
2491   am_has_slept=no
2492   for am_try in 1 2; do
2493     echo "timestamp, slept: $am_has_slept" > conftest.file
2494     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2495     if test "$*" = "X"; then
2496	# -L didn't work.
2497	set X `ls -t "$srcdir/configure" conftest.file`
2498     fi
2499     if test "$*" != "X $srcdir/configure conftest.file" \
2500	&& test "$*" != "X conftest.file $srcdir/configure"; then
2501
2502	# If neither matched, then we have a broken ls.  This can happen
2503	# if, for instance, CONFIG_SHELL is bash and it inherits a
2504	# broken ls alias from the environment.  This has actually
2505	# happened.  Such a system could not be considered "sane".
2506	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2507  alias in your environment" "$LINENO" 5
2508     fi
2509     if test "$2" = conftest.file || test $am_try -eq 2; then
2510       break
2511     fi
2512     # Just in case.
2513     sleep 1
2514     am_has_slept=yes
2515   done
2516   test "$2" = conftest.file
2517   )
2518then
2519   # Ok.
2520   :
2521else
2522   as_fn_error $? "newly created file is older than distributed files!
2523Check your system clock" "$LINENO" 5
2524fi
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2526$as_echo "yes" >&6; }
2527# If we didn't sleep, we still need to ensure time stamps of config.status and
2528# generated files are strictly newer.
2529am_sleep_pid=
2530if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2531  ( sleep 1 ) &
2532  am_sleep_pid=$!
2533fi
2534
2535rm -f conftest.file
2536
2537test "$program_prefix" != NONE &&
2538  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2539# Use a double $ so make ignores it.
2540test "$program_suffix" != NONE &&
2541  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2542# Double any \ or $.
2543# By default was `s,x,x', remove it if useless.
2544ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2545program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2546
2547# Expand $ac_aux_dir to an absolute path.
2548am_aux_dir=`cd "$ac_aux_dir" && pwd`
2549
2550if test x"${MISSING+set}" != xset; then
2551  case $am_aux_dir in
2552  *\ * | *\	*)
2553    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2554  *)
2555    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2556  esac
2557fi
2558# Use eval to expand $SHELL
2559if eval "$MISSING --is-lightweight"; then
2560  am_missing_run="$MISSING "
2561else
2562  am_missing_run=
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2564$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2565fi
2566
2567if test x"${install_sh+set}" != xset; then
2568  case $am_aux_dir in
2569  *\ * | *\	*)
2570    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2571  *)
2572    install_sh="\${SHELL} $am_aux_dir/install-sh"
2573  esac
2574fi
2575
2576# Installed binaries are usually stripped using 'strip' when the user
2577# run "make install-strip".  However 'strip' might not be the right
2578# tool to use in cross-compilation environments, therefore Automake
2579# will honor the 'STRIP' environment variable to overrule this program.
2580if test "$cross_compiling" != no; then
2581  if test -n "$ac_tool_prefix"; then
2582  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2583set dummy ${ac_tool_prefix}strip; ac_word=$2
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585$as_echo_n "checking for $ac_word... " >&6; }
2586if ${ac_cv_prog_STRIP+:} false; then :
2587  $as_echo_n "(cached) " >&6
2588else
2589  if test -n "$STRIP"; then
2590  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595  IFS=$as_save_IFS
2596  test -z "$as_dir" && as_dir=.
2597    for ac_exec_ext in '' $ac_executable_extensions; do
2598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601    break 2
2602  fi
2603done
2604  done
2605IFS=$as_save_IFS
2606
2607fi
2608fi
2609STRIP=$ac_cv_prog_STRIP
2610if test -n "$STRIP"; then
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2612$as_echo "$STRIP" >&6; }
2613else
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615$as_echo "no" >&6; }
2616fi
2617
2618
2619fi
2620if test -z "$ac_cv_prog_STRIP"; then
2621  ac_ct_STRIP=$STRIP
2622  # Extract the first word of "strip", so it can be a program name with args.
2623set dummy strip; ac_word=$2
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625$as_echo_n "checking for $ac_word... " >&6; }
2626if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2627  $as_echo_n "(cached) " >&6
2628else
2629  if test -n "$ac_ct_STRIP"; then
2630  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635  IFS=$as_save_IFS
2636  test -z "$as_dir" && as_dir=.
2637    for ac_exec_ext in '' $ac_executable_extensions; do
2638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639    ac_cv_prog_ac_ct_STRIP="strip"
2640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641    break 2
2642  fi
2643done
2644  done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2650if test -n "$ac_ct_STRIP"; then
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2652$as_echo "$ac_ct_STRIP" >&6; }
2653else
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656fi
2657
2658  if test "x$ac_ct_STRIP" = x; then
2659    STRIP=":"
2660  else
2661    case $cross_compiling:$ac_tool_warned in
2662yes:)
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2665ac_tool_warned=yes ;;
2666esac
2667    STRIP=$ac_ct_STRIP
2668  fi
2669else
2670  STRIP="$ac_cv_prog_STRIP"
2671fi
2672
2673fi
2674INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2675
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2677$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2678if test -z "$MKDIR_P"; then
2679  if ${ac_cv_path_mkdir+:} false; then :
2680  $as_echo_n "(cached) " >&6
2681else
2682  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2684do
2685  IFS=$as_save_IFS
2686  test -z "$as_dir" && as_dir=.
2687    for ac_prog in mkdir gmkdir; do
2688	 for ac_exec_ext in '' $ac_executable_extensions; do
2689	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2690	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2691	     'mkdir (GNU coreutils) '* | \
2692	     'mkdir (coreutils) '* | \
2693	     'mkdir (fileutils) '4.1*)
2694	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2695	       break 3;;
2696	   esac
2697	 done
2698       done
2699  done
2700IFS=$as_save_IFS
2701
2702fi
2703
2704  test -d ./--version && rmdir ./--version
2705  if test "${ac_cv_path_mkdir+set}" = set; then
2706    MKDIR_P="$ac_cv_path_mkdir -p"
2707  else
2708    # As a last resort, use the slow shell script.  Don't cache a
2709    # value for MKDIR_P within a source directory, because that will
2710    # break other packages using the cache if that directory is
2711    # removed, or if the value is a relative name.
2712    MKDIR_P="$ac_install_sh -d"
2713  fi
2714fi
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2716$as_echo "$MKDIR_P" >&6; }
2717
2718for ac_prog in gawk mawk nawk awk
2719do
2720  # Extract the first word of "$ac_prog", so it can be a program name with args.
2721set dummy $ac_prog; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
2724if ${ac_cv_prog_AWK+:} false; then :
2725  $as_echo_n "(cached) " >&6
2726else
2727  if test -n "$AWK"; then
2728  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733  IFS=$as_save_IFS
2734  test -z "$as_dir" && as_dir=.
2735    for ac_exec_ext in '' $ac_executable_extensions; do
2736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737    ac_cv_prog_AWK="$ac_prog"
2738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739    break 2
2740  fi
2741done
2742  done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747AWK=$ac_cv_prog_AWK
2748if test -n "$AWK"; then
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2750$as_echo "$AWK" >&6; }
2751else
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
2754fi
2755
2756
2757  test -n "$AWK" && break
2758done
2759
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2761$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2762set x ${MAKE-make}
2763ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2764if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2765  $as_echo_n "(cached) " >&6
2766else
2767  cat >conftest.make <<\_ACEOF
2768SHELL = /bin/sh
2769all:
2770	@echo '@@@%%%=$(MAKE)=@@@%%%'
2771_ACEOF
2772# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2773case `${MAKE-make} -f conftest.make 2>/dev/null` in
2774  *@@@%%%=?*=@@@%%%*)
2775    eval ac_cv_prog_make_${ac_make}_set=yes;;
2776  *)
2777    eval ac_cv_prog_make_${ac_make}_set=no;;
2778esac
2779rm -f conftest.make
2780fi
2781if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2783$as_echo "yes" >&6; }
2784  SET_MAKE=
2785else
2786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787$as_echo "no" >&6; }
2788  SET_MAKE="MAKE=${MAKE-make}"
2789fi
2790
2791rm -rf .tst 2>/dev/null
2792mkdir .tst 2>/dev/null
2793if test -d .tst; then
2794  am__leading_dot=.
2795else
2796  am__leading_dot=_
2797fi
2798rmdir .tst 2>/dev/null
2799
2800# Check whether --enable-silent-rules was given.
2801if test "${enable_silent_rules+set}" = set; then :
2802  enableval=$enable_silent_rules;
2803fi
2804
2805case $enable_silent_rules in # (((
2806  yes) AM_DEFAULT_VERBOSITY=0;;
2807   no) AM_DEFAULT_VERBOSITY=1;;
2808    *) AM_DEFAULT_VERBOSITY=1;;
2809esac
2810am_make=${MAKE-make}
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2812$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2813if ${am_cv_make_support_nested_variables+:} false; then :
2814  $as_echo_n "(cached) " >&6
2815else
2816  if $as_echo 'TRUE=$(BAR$(V))
2817BAR0=false
2818BAR1=true
2819V=1
2820am__doit:
2821	@$(TRUE)
2822.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2823  am_cv_make_support_nested_variables=yes
2824else
2825  am_cv_make_support_nested_variables=no
2826fi
2827fi
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2829$as_echo "$am_cv_make_support_nested_variables" >&6; }
2830if test $am_cv_make_support_nested_variables = yes; then
2831    AM_V='$(V)'
2832  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2833else
2834  AM_V=$AM_DEFAULT_VERBOSITY
2835  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2836fi
2837AM_BACKSLASH='\'
2838
2839if test "`cd $srcdir && pwd`" != "`pwd`"; then
2840  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2841  # is not polluted with repeated "-I."
2842  am__isrc=' -I$(srcdir)'
2843  # test to see if srcdir already configured
2844  if test -f $srcdir/config.status; then
2845    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2846  fi
2847fi
2848
2849# test whether we have cygpath
2850if test -z "$CYGPATH_W"; then
2851  if (cygpath --version) >/dev/null 2>/dev/null; then
2852    CYGPATH_W='cygpath -w'
2853  else
2854    CYGPATH_W=echo
2855  fi
2856fi
2857
2858
2859# Define the identity of the package.
2860 PACKAGE='amtk'
2861 VERSION='5.2.0'
2862
2863
2864cat >>confdefs.h <<_ACEOF
2865#define PACKAGE "$PACKAGE"
2866_ACEOF
2867
2868
2869cat >>confdefs.h <<_ACEOF
2870#define VERSION "$VERSION"
2871_ACEOF
2872
2873# Some tools Automake needs.
2874
2875ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2876
2877
2878AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2879
2880
2881AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2882
2883
2884AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2885
2886
2887MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2888
2889# For better backward compatibility.  To be removed once Automake 1.9.x
2890# dies out for good.  For more background, see:
2891# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2892# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2893mkdir_p='$(MKDIR_P)'
2894
2895# We need awk for the "check" target (and possibly the TAP driver).  The
2896# system "awk" is bad on some platforms.
2897# Always define AMTAR for backward compatibility.  Yes, it's still used
2898# in the wild :-(  We should find a proper way to deprecate it ...
2899AMTAR='$${TAR-tar}'
2900
2901
2902# We'll loop over all known methods to create a tar archive until one works.
2903_am_tools='gnutar plaintar pax cpio none'
2904
2905# The POSIX 1988 'ustar' format is defined with fixed-size fields.
2906      # There is notably a 21 bits limit for the UID and the GID.  In fact,
2907      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2908      # and bug#13588).
2909      am_max_uid=2097151 # 2^21 - 1
2910      am_max_gid=$am_max_uid
2911      # The $UID and $GID variables are not portable, so we need to resort
2912      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
2913      # below are definitely unexpected, so allow the users to see them
2914      # (that is, avoid stderr redirection).
2915      am_uid=`id -u || echo unknown`
2916      am_gid=`id -g || echo unknown`
2917      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2918$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2919      if test $am_uid -le $am_max_uid; then
2920         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2921$as_echo "yes" >&6; }
2922      else
2923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924$as_echo "no" >&6; }
2925         _am_tools=none
2926      fi
2927      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2928$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2929      if test $am_gid -le $am_max_gid; then
2930         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2931$as_echo "yes" >&6; }
2932      else
2933        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
2935        _am_tools=none
2936      fi
2937
2938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2939$as_echo_n "checking how to create a ustar tar archive... " >&6; }
2940
2941  # Go ahead even if we have the value already cached.  We do so because we
2942  # need to set the values for the 'am__tar' and 'am__untar' variables.
2943  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2944
2945  for _am_tool in $_am_tools; do
2946    case $_am_tool in
2947    gnutar)
2948      for _am_tar in tar gnutar gtar; do
2949        { echo "$as_me:$LINENO: $_am_tar --version" >&5
2950   ($_am_tar --version) >&5 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); } && break
2954      done
2955      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2956      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2957      am__untar="$_am_tar -xf -"
2958      ;;
2959    plaintar)
2960      # Must skip GNU tar: if it does not support --format= it doesn't create
2961      # ustar tarball either.
2962      (tar --version) >/dev/null 2>&1 && continue
2963      am__tar='tar chf - "$$tardir"'
2964      am__tar_='tar chf - "$tardir"'
2965      am__untar='tar xf -'
2966      ;;
2967    pax)
2968      am__tar='pax -L -x ustar -w "$$tardir"'
2969      am__tar_='pax -L -x ustar -w "$tardir"'
2970      am__untar='pax -r'
2971      ;;
2972    cpio)
2973      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2974      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2975      am__untar='cpio -i -H ustar -d'
2976      ;;
2977    none)
2978      am__tar=false
2979      am__tar_=false
2980      am__untar=false
2981      ;;
2982    esac
2983
2984    # If the value was cached, stop now.  We just wanted to have am__tar
2985    # and am__untar set.
2986    test -n "${am_cv_prog_tar_ustar}" && break
2987
2988    # tar/untar a dummy directory, and stop if the command works.
2989    rm -rf conftest.dir
2990    mkdir conftest.dir
2991    echo GrepMe > conftest.dir/file
2992    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2993   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }
2997    rm -rf conftest.dir
2998    if test -s conftest.tar; then
2999      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3000   ($am__untar <conftest.tar) >&5 2>&5
3001   ac_status=$?
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }
3004      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3005   (cat conftest.dir/file) >&5 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }
3009      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3010    fi
3011  done
3012  rm -rf conftest.dir
3013
3014  if ${am_cv_prog_tar_ustar+:} false; then :
3015  $as_echo_n "(cached) " >&6
3016else
3017  am_cv_prog_tar_ustar=$_am_tool
3018fi
3019
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3021$as_echo "$am_cv_prog_tar_ustar" >&6; }
3022
3023
3024
3025
3026
3027
3028# POSIX will say in a future version that running "rm -f" with no argument
3029# is OK; and we want to be able to make that assumption in our Makefile
3030# recipes.  So use an aggressive probe to check that the usage we want is
3031# actually supported "in the wild" to an acceptable degree.
3032# See automake bug#10828.
3033# To make any issue more visible, cause the running configure to be aborted
3034# by default if the 'rm' program in use doesn't match our expectations; the
3035# user can still override this though.
3036if rm -f && rm -fr && rm -rf; then : OK; else
3037  cat >&2 <<'END'
3038Oops!
3039
3040Your 'rm' program seems unable to run without file operands specified
3041on the command line, even when the '-f' option is present.  This is contrary
3042to the behaviour of most rm programs out there, and not conforming with
3043the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3044
3045Please tell bug-automake@gnu.org about your system, including the value
3046of your $PATH and any error possibly output before this message.  This
3047can help us improve future automake versions.
3048
3049END
3050  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3051    echo 'Configuration will proceed anyway, since you have set the' >&2
3052    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3053    echo >&2
3054  else
3055    cat >&2 <<'END'
3056Aborting the configuration process, to ensure you take notice of the issue.
3057
3058You can download and install GNU coreutils to get an 'rm' implementation
3059that behaves properly: <https://www.gnu.org/software/coreutils/>.
3060
3061If you want to complete the configuration process using your problematic
3062'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3063to "yes", and re-run configure.
3064
3065END
3066    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3067  fi
3068fi
3069
3070
3071# Check whether --enable-silent-rules was given.
3072if test "${enable_silent_rules+set}" = set; then :
3073  enableval=$enable_silent_rules;
3074fi
3075
3076case $enable_silent_rules in # (((
3077  yes) AM_DEFAULT_VERBOSITY=0;;
3078   no) AM_DEFAULT_VERBOSITY=1;;
3079    *) AM_DEFAULT_VERBOSITY=0;;
3080esac
3081am_make=${MAKE-make}
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3083$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3084if ${am_cv_make_support_nested_variables+:} false; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  if $as_echo 'TRUE=$(BAR$(V))
3088BAR0=false
3089BAR1=true
3090V=1
3091am__doit:
3092	@$(TRUE)
3093.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3094  am_cv_make_support_nested_variables=yes
3095else
3096  am_cv_make_support_nested_variables=no
3097fi
3098fi
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3100$as_echo "$am_cv_make_support_nested_variables" >&6; }
3101if test $am_cv_make_support_nested_variables = yes; then
3102    AM_V='$(V)'
3103  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3104else
3105  AM_V=$AM_DEFAULT_VERBOSITY
3106  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3107fi
3108AM_BACKSLASH='\'
3109
3110
3111# Check for programs
3112ac_ext=c
3113ac_cpp='$CPP $CPPFLAGS'
3114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117if test -n "$ac_tool_prefix"; then
3118  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3119set dummy ${ac_tool_prefix}gcc; ac_word=$2
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
3122if ${ac_cv_prog_CC+:} false; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  if test -n "$CC"; then
3126  ac_cv_prog_CC="$CC" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  test -z "$as_dir" && as_dir=.
3133    for ac_exec_ext in '' $ac_executable_extensions; do
3134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137    break 2
3138  fi
3139done
3140  done
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145CC=$ac_cv_prog_CC
3146if test -n "$CC"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148$as_echo "$CC" >&6; }
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155fi
3156if test -z "$ac_cv_prog_CC"; then
3157  ac_ct_CC=$CC
3158  # Extract the first word of "gcc", so it can be a program name with args.
3159set dummy gcc; ac_word=$2
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161$as_echo_n "checking for $ac_word... " >&6; }
3162if ${ac_cv_prog_ac_ct_CC+:} false; then :
3163  $as_echo_n "(cached) " >&6
3164else
3165  if test -n "$ac_ct_CC"; then
3166  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167else
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171  IFS=$as_save_IFS
3172  test -z "$as_dir" && as_dir=.
3173    for ac_exec_ext in '' $ac_executable_extensions; do
3174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175    ac_cv_prog_ac_ct_CC="gcc"
3176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177    break 2
3178  fi
3179done
3180  done
3181IFS=$as_save_IFS
3182
3183fi
3184fi
3185ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186if test -n "$ac_ct_CC"; then
3187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3188$as_echo "$ac_ct_CC" >&6; }
3189else
3190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191$as_echo "no" >&6; }
3192fi
3193
3194  if test "x$ac_ct_CC" = x; then
3195    CC=""
3196  else
3197    case $cross_compiling:$ac_tool_warned in
3198yes:)
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3201ac_tool_warned=yes ;;
3202esac
3203    CC=$ac_ct_CC
3204  fi
3205else
3206  CC="$ac_cv_prog_CC"
3207fi
3208
3209if test -z "$CC"; then
3210          if test -n "$ac_tool_prefix"; then
3211    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3212set dummy ${ac_tool_prefix}cc; ac_word=$2
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if ${ac_cv_prog_CC+:} false; then :
3216  $as_echo_n "(cached) " >&6
3217else
3218  if test -n "$CC"; then
3219  ac_cv_prog_CC="$CC" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224  IFS=$as_save_IFS
3225  test -z "$as_dir" && as_dir=.
3226    for ac_exec_ext in '' $ac_executable_extensions; do
3227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228    ac_cv_prog_CC="${ac_tool_prefix}cc"
3229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230    break 2
3231  fi
3232done
3233  done
3234IFS=$as_save_IFS
3235
3236fi
3237fi
3238CC=$ac_cv_prog_CC
3239if test -n "$CC"; then
3240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241$as_echo "$CC" >&6; }
3242else
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245fi
3246
3247
3248  fi
3249fi
3250if test -z "$CC"; then
3251  # Extract the first word of "cc", so it can be a program name with args.
3252set dummy cc; ac_word=$2
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254$as_echo_n "checking for $ac_word... " >&6; }
3255if ${ac_cv_prog_CC+:} false; then :
3256  $as_echo_n "(cached) " >&6
3257else
3258  if test -n "$CC"; then
3259  ac_cv_prog_CC="$CC" # Let the user override the test.
3260else
3261  ac_prog_rejected=no
3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263for as_dir in $PATH
3264do
3265  IFS=$as_save_IFS
3266  test -z "$as_dir" && as_dir=.
3267    for ac_exec_ext in '' $ac_executable_extensions; do
3268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3270       ac_prog_rejected=yes
3271       continue
3272     fi
3273    ac_cv_prog_CC="cc"
3274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275    break 2
3276  fi
3277done
3278  done
3279IFS=$as_save_IFS
3280
3281if test $ac_prog_rejected = yes; then
3282  # We found a bogon in the path, so make sure we never use it.
3283  set dummy $ac_cv_prog_CC
3284  shift
3285  if test $# != 0; then
3286    # We chose a different compiler from the bogus one.
3287    # However, it has the same basename, so the bogon will be chosen
3288    # first if we set CC to just the basename; use the full file name.
3289    shift
3290    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3291  fi
3292fi
3293fi
3294fi
3295CC=$ac_cv_prog_CC
3296if test -n "$CC"; then
3297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298$as_echo "$CC" >&6; }
3299else
3300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301$as_echo "no" >&6; }
3302fi
3303
3304
3305fi
3306if test -z "$CC"; then
3307  if test -n "$ac_tool_prefix"; then
3308  for ac_prog in cl.exe
3309  do
3310    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313$as_echo_n "checking for $ac_word... " >&6; }
3314if ${ac_cv_prog_CC+:} false; then :
3315  $as_echo_n "(cached) " >&6
3316else
3317  if test -n "$CC"; then
3318  ac_cv_prog_CC="$CC" # Let the user override the test.
3319else
3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323  IFS=$as_save_IFS
3324  test -z "$as_dir" && as_dir=.
3325    for ac_exec_ext in '' $ac_executable_extensions; do
3326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329    break 2
3330  fi
3331done
3332  done
3333IFS=$as_save_IFS
3334
3335fi
3336fi
3337CC=$ac_cv_prog_CC
3338if test -n "$CC"; then
3339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340$as_echo "$CC" >&6; }
3341else
3342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343$as_echo "no" >&6; }
3344fi
3345
3346
3347    test -n "$CC" && break
3348  done
3349fi
3350if test -z "$CC"; then
3351  ac_ct_CC=$CC
3352  for ac_prog in cl.exe
3353do
3354  # Extract the first word of "$ac_prog", so it can be a program name with args.
3355set dummy $ac_prog; ac_word=$2
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357$as_echo_n "checking for $ac_word... " >&6; }
3358if ${ac_cv_prog_ac_ct_CC+:} false; then :
3359  $as_echo_n "(cached) " >&6
3360else
3361  if test -n "$ac_ct_CC"; then
3362  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3363else
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369    for ac_exec_ext in '' $ac_executable_extensions; do
3370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371    ac_cv_prog_ac_ct_CC="$ac_prog"
3372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373    break 2
3374  fi
3375done
3376  done
3377IFS=$as_save_IFS
3378
3379fi
3380fi
3381ac_ct_CC=$ac_cv_prog_ac_ct_CC
3382if test -n "$ac_ct_CC"; then
3383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3384$as_echo "$ac_ct_CC" >&6; }
3385else
3386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387$as_echo "no" >&6; }
3388fi
3389
3390
3391  test -n "$ac_ct_CC" && break
3392done
3393
3394  if test "x$ac_ct_CC" = x; then
3395    CC=""
3396  else
3397    case $cross_compiling:$ac_tool_warned in
3398yes:)
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3401ac_tool_warned=yes ;;
3402esac
3403    CC=$ac_ct_CC
3404  fi
3405fi
3406
3407fi
3408
3409
3410test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412as_fn_error $? "no acceptable C compiler found in \$PATH
3413See \`config.log' for more details" "$LINENO" 5; }
3414
3415# Provide some information about the compiler.
3416$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3417set X $ac_compile
3418ac_compiler=$2
3419for ac_option in --version -v -V -qversion; do
3420  { { ac_try="$ac_compiler $ac_option >&5"
3421case "(($ac_try" in
3422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423  *) ac_try_echo=$ac_try;;
3424esac
3425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426$as_echo "$ac_try_echo"; } >&5
3427  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3428  ac_status=$?
3429  if test -s conftest.err; then
3430    sed '10a\
3431... rest of stderr output deleted ...
3432         10q' conftest.err >conftest.er1
3433    cat conftest.er1 >&5
3434  fi
3435  rm -f conftest.er1 conftest.err
3436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437  test $ac_status = 0; }
3438done
3439
3440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441/* end confdefs.h.  */
3442
3443int
3444main ()
3445{
3446
3447  ;
3448  return 0;
3449}
3450_ACEOF
3451ac_clean_files_save=$ac_clean_files
3452ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3453# Try to create an executable without -o first, disregard a.out.
3454# It will help us diagnose broken compilers, and finding out an intuition
3455# of exeext.
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3457$as_echo_n "checking whether the C compiler works... " >&6; }
3458ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3459
3460# The possible output files:
3461ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3462
3463ac_rmfiles=
3464for ac_file in $ac_files
3465do
3466  case $ac_file in
3467    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3468    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3469  esac
3470done
3471rm -f $ac_rmfiles
3472
3473if { { ac_try="$ac_link_default"
3474case "(($ac_try" in
3475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476  *) ac_try_echo=$ac_try;;
3477esac
3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479$as_echo "$ac_try_echo"; } >&5
3480  (eval "$ac_link_default") 2>&5
3481  ac_status=$?
3482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483  test $ac_status = 0; }; then :
3484  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3485# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3486# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3487# so that the user can short-circuit this test for compilers unknown to
3488# Autoconf.
3489for ac_file in $ac_files ''
3490do
3491  test -f "$ac_file" || continue
3492  case $ac_file in
3493    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3494	;;
3495    [ab].out )
3496	# We found the default executable, but exeext='' is most
3497	# certainly right.
3498	break;;
3499    *.* )
3500	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3501	then :; else
3502	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3503	fi
3504	# We set ac_cv_exeext here because the later test for it is not
3505	# safe: cross compilers may not add the suffix if given an `-o'
3506	# argument, so we may need to know it at that point already.
3507	# Even if this section looks crufty: it has the advantage of
3508	# actually working.
3509	break;;
3510    * )
3511	break;;
3512  esac
3513done
3514test "$ac_cv_exeext" = no && ac_cv_exeext=
3515
3516else
3517  ac_file=''
3518fi
3519if test -z "$ac_file"; then :
3520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521$as_echo "no" >&6; }
3522$as_echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527as_fn_error 77 "C compiler cannot create executables
3528See \`config.log' for more details" "$LINENO" 5; }
3529else
3530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3531$as_echo "yes" >&6; }
3532fi
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3534$as_echo_n "checking for C compiler default output file name... " >&6; }
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3536$as_echo "$ac_file" >&6; }
3537ac_exeext=$ac_cv_exeext
3538
3539rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3540ac_clean_files=$ac_clean_files_save
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3542$as_echo_n "checking for suffix of executables... " >&6; }
3543if { { ac_try="$ac_link"
3544case "(($ac_try" in
3545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546  *) ac_try_echo=$ac_try;;
3547esac
3548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549$as_echo "$ac_try_echo"; } >&5
3550  (eval "$ac_link") 2>&5
3551  ac_status=$?
3552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553  test $ac_status = 0; }; then :
3554  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3555# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3556# work properly (i.e., refer to `conftest.exe'), while it won't with
3557# `rm'.
3558for ac_file in conftest.exe conftest conftest.*; do
3559  test -f "$ac_file" || continue
3560  case $ac_file in
3561    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3562    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3563	  break;;
3564    * ) break;;
3565  esac
3566done
3567else
3568  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3571See \`config.log' for more details" "$LINENO" 5; }
3572fi
3573rm -f conftest conftest$ac_cv_exeext
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3575$as_echo "$ac_cv_exeext" >&6; }
3576
3577rm -f conftest.$ac_ext
3578EXEEXT=$ac_cv_exeext
3579ac_exeext=$EXEEXT
3580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582#include <stdio.h>
3583int
3584main ()
3585{
3586FILE *f = fopen ("conftest.out", "w");
3587 return ferror (f) || fclose (f) != 0;
3588
3589  ;
3590  return 0;
3591}
3592_ACEOF
3593ac_clean_files="$ac_clean_files conftest.out"
3594# Check that the compiler produces executables we can run.  If not, either
3595# the compiler is broken, or we cross compile.
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3597$as_echo_n "checking whether we are cross compiling... " >&6; }
3598if test "$cross_compiling" != yes; then
3599  { { ac_try="$ac_link"
3600case "(($ac_try" in
3601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602  *) ac_try_echo=$ac_try;;
3603esac
3604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605$as_echo "$ac_try_echo"; } >&5
3606  (eval "$ac_link") 2>&5
3607  ac_status=$?
3608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609  test $ac_status = 0; }
3610  if { ac_try='./conftest$ac_cv_exeext'
3611  { { case "(($ac_try" in
3612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613  *) ac_try_echo=$ac_try;;
3614esac
3615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616$as_echo "$ac_try_echo"; } >&5
3617  (eval "$ac_try") 2>&5
3618  ac_status=$?
3619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620  test $ac_status = 0; }; }; then
3621    cross_compiling=no
3622  else
3623    if test "$cross_compiling" = maybe; then
3624	cross_compiling=yes
3625    else
3626	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628as_fn_error $? "cannot run C compiled programs.
3629If you meant to cross compile, use \`--host'.
3630See \`config.log' for more details" "$LINENO" 5; }
3631    fi
3632  fi
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3635$as_echo "$cross_compiling" >&6; }
3636
3637rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3638ac_clean_files=$ac_clean_files_save
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3640$as_echo_n "checking for suffix of object files... " >&6; }
3641if ${ac_cv_objext+:} false; then :
3642  $as_echo_n "(cached) " >&6
3643else
3644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h.  */
3646
3647int
3648main ()
3649{
3650
3651  ;
3652  return 0;
3653}
3654_ACEOF
3655rm -f conftest.o conftest.obj
3656if { { ac_try="$ac_compile"
3657case "(($ac_try" in
3658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659  *) ac_try_echo=$ac_try;;
3660esac
3661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662$as_echo "$ac_try_echo"; } >&5
3663  (eval "$ac_compile") 2>&5
3664  ac_status=$?
3665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666  test $ac_status = 0; }; then :
3667  for ac_file in conftest.o conftest.obj conftest.*; do
3668  test -f "$ac_file" || continue;
3669  case $ac_file in
3670    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3671    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3672       break;;
3673  esac
3674done
3675else
3676  $as_echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681as_fn_error $? "cannot compute suffix of object files: cannot compile
3682See \`config.log' for more details" "$LINENO" 5; }
3683fi
3684rm -f conftest.$ac_cv_objext conftest.$ac_ext
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3687$as_echo "$ac_cv_objext" >&6; }
3688OBJEXT=$ac_cv_objext
3689ac_objext=$OBJEXT
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3691$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3692if ${ac_cv_c_compiler_gnu+:} false; then :
3693  $as_echo_n "(cached) " >&6
3694else
3695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h.  */
3697
3698int
3699main ()
3700{
3701#ifndef __GNUC__
3702       choke me
3703#endif
3704
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709if ac_fn_c_try_compile "$LINENO"; then :
3710  ac_compiler_gnu=yes
3711else
3712  ac_compiler_gnu=no
3713fi
3714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715ac_cv_c_compiler_gnu=$ac_compiler_gnu
3716
3717fi
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3719$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3720if test $ac_compiler_gnu = yes; then
3721  GCC=yes
3722else
3723  GCC=
3724fi
3725ac_test_CFLAGS=${CFLAGS+set}
3726ac_save_CFLAGS=$CFLAGS
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3728$as_echo_n "checking whether $CC accepts -g... " >&6; }
3729if ${ac_cv_prog_cc_g+:} false; then :
3730  $as_echo_n "(cached) " >&6
3731else
3732  ac_save_c_werror_flag=$ac_c_werror_flag
3733   ac_c_werror_flag=yes
3734   ac_cv_prog_cc_g=no
3735   CFLAGS="-g"
3736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737/* end confdefs.h.  */
3738
3739int
3740main ()
3741{
3742
3743  ;
3744  return 0;
3745}
3746_ACEOF
3747if ac_fn_c_try_compile "$LINENO"; then :
3748  ac_cv_prog_cc_g=yes
3749else
3750  CFLAGS=""
3751      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h.  */
3753
3754int
3755main ()
3756{
3757
3758  ;
3759  return 0;
3760}
3761_ACEOF
3762if ac_fn_c_try_compile "$LINENO"; then :
3763
3764else
3765  ac_c_werror_flag=$ac_save_c_werror_flag
3766	 CFLAGS="-g"
3767	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768/* end confdefs.h.  */
3769
3770int
3771main ()
3772{
3773
3774  ;
3775  return 0;
3776}
3777_ACEOF
3778if ac_fn_c_try_compile "$LINENO"; then :
3779  ac_cv_prog_cc_g=yes
3780fi
3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782fi
3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784fi
3785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786   ac_c_werror_flag=$ac_save_c_werror_flag
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3789$as_echo "$ac_cv_prog_cc_g" >&6; }
3790if test "$ac_test_CFLAGS" = set; then
3791  CFLAGS=$ac_save_CFLAGS
3792elif test $ac_cv_prog_cc_g = yes; then
3793  if test "$GCC" = yes; then
3794    CFLAGS="-g -O2"
3795  else
3796    CFLAGS="-g"
3797  fi
3798else
3799  if test "$GCC" = yes; then
3800    CFLAGS="-O2"
3801  else
3802    CFLAGS=
3803  fi
3804fi
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3806$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3807if ${ac_cv_prog_cc_c89+:} false; then :
3808  $as_echo_n "(cached) " >&6
3809else
3810  ac_cv_prog_cc_c89=no
3811ac_save_CC=$CC
3812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h.  */
3814#include <stdarg.h>
3815#include <stdio.h>
3816struct stat;
3817/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3818struct buf { int x; };
3819FILE * (*rcsopen) (struct buf *, struct stat *, int);
3820static char *e (p, i)
3821     char **p;
3822     int i;
3823{
3824  return p[i];
3825}
3826static char *f (char * (*g) (char **, int), char **p, ...)
3827{
3828  char *s;
3829  va_list v;
3830  va_start (v,p);
3831  s = g (p, va_arg (v,int));
3832  va_end (v);
3833  return s;
3834}
3835
3836/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3837   function prototypes and stuff, but not '\xHH' hex character constants.
3838   These don't provoke an error unfortunately, instead are silently treated
3839   as 'x'.  The following induces an error, until -std is added to get
3840   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3841   array size at least.  It's necessary to write '\x00'==0 to get something
3842   that's true only with -std.  */
3843int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3844
3845/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3846   inside strings and character constants.  */
3847#define FOO(x) 'x'
3848int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3849
3850int test (int i, double x);
3851struct s1 {int (*f) (int a);};
3852struct s2 {int (*f) (double a);};
3853int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3854int argc;
3855char **argv;
3856int
3857main ()
3858{
3859return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3860  ;
3861  return 0;
3862}
3863_ACEOF
3864for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3865	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3866do
3867  CC="$ac_save_CC $ac_arg"
3868  if ac_fn_c_try_compile "$LINENO"; then :
3869  ac_cv_prog_cc_c89=$ac_arg
3870fi
3871rm -f core conftest.err conftest.$ac_objext
3872  test "x$ac_cv_prog_cc_c89" != "xno" && break
3873done
3874rm -f conftest.$ac_ext
3875CC=$ac_save_CC
3876
3877fi
3878# AC_CACHE_VAL
3879case "x$ac_cv_prog_cc_c89" in
3880  x)
3881    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3882$as_echo "none needed" >&6; } ;;
3883  xno)
3884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3885$as_echo "unsupported" >&6; } ;;
3886  *)
3887    CC="$CC $ac_cv_prog_cc_c89"
3888    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3889$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3890esac
3891if test "x$ac_cv_prog_cc_c89" != xno; then :
3892
3893fi
3894
3895ac_ext=c
3896ac_cpp='$CPP $CPPFLAGS'
3897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900
3901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3907$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3908if ${am_cv_prog_cc_c_o+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h.  */
3913
3914int
3915main ()
3916{
3917
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922  # Make sure it works both with $CC and with simple cc.
3923  # Following AC_PROG_CC_C_O, we do the test twice because some
3924  # compilers refuse to overwrite an existing .o file with -o,
3925  # though they will create one.
3926  am_cv_prog_cc_c_o=yes
3927  for am_i in 1 2; do
3928    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3929   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); } \
3933         && test -f conftest2.$ac_objext; then
3934      : OK
3935    else
3936      am_cv_prog_cc_c_o=no
3937      break
3938    fi
3939  done
3940  rm -f core conftest*
3941  unset am_i
3942fi
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3944$as_echo "$am_cv_prog_cc_c_o" >&6; }
3945if test "$am_cv_prog_cc_c_o" != yes; then
3946   # Losing compiler, so override with the script.
3947   # FIXME: It is wrong to rewrite CC.
3948   # But if we don't then we get into trouble of one sort or another.
3949   # A longer-term fix would be to have automake use am__CC in this case,
3950   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3951   CC="$am_aux_dir/compile $CC"
3952fi
3953ac_ext=c
3954ac_cpp='$CPP $CPPFLAGS'
3955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959DEPDIR="${am__leading_dot}deps"
3960
3961ac_config_commands="$ac_config_commands depfiles"
3962
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3964$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3965cat > confinc.mk << 'END'
3966am__doit:
3967	@echo this is the am__doit target >confinc.out
3968.PHONY: am__doit
3969END
3970am__include="#"
3971am__quote=
3972# BSD make does it like this.
3973echo '.include "confinc.mk" # ignored' > confmf.BSD
3974# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3975echo 'include confinc.mk # ignored' > confmf.GNU
3976_am_result=no
3977for s in GNU BSD; do
3978  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3979   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3980   ac_status=$?
3981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982   (exit $ac_status); }
3983  case $?:`cat confinc.out 2>/dev/null` in #(
3984  '0:this is the am__doit target') :
3985    case $s in #(
3986  BSD) :
3987    am__include='.include' am__quote='"' ;; #(
3988  *) :
3989    am__include='include' am__quote='' ;;
3990esac ;; #(
3991  *) :
3992     ;;
3993esac
3994  if test "$am__include" != "#"; then
3995    _am_result="yes ($s style)"
3996    break
3997  fi
3998done
3999rm -f confinc.* confmf.*
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4001$as_echo "${_am_result}" >&6; }
4002
4003# Check whether --enable-dependency-tracking was given.
4004if test "${enable_dependency_tracking+set}" = set; then :
4005  enableval=$enable_dependency_tracking;
4006fi
4007
4008if test "x$enable_dependency_tracking" != xno; then
4009  am_depcomp="$ac_aux_dir/depcomp"
4010  AMDEPBACKSLASH='\'
4011  am__nodep='_no'
4012fi
4013 if test "x$enable_dependency_tracking" != xno; then
4014  AMDEP_TRUE=
4015  AMDEP_FALSE='#'
4016else
4017  AMDEP_TRUE='#'
4018  AMDEP_FALSE=
4019fi
4020
4021
4022
4023depcc="$CC"   am_compiler_list=
4024
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4026$as_echo_n "checking dependency style of $depcc... " >&6; }
4027if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4028  $as_echo_n "(cached) " >&6
4029else
4030  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4031  # We make a subdir and do the tests there.  Otherwise we can end up
4032  # making bogus files that we don't know about and never remove.  For
4033  # instance it was reported that on HP-UX the gcc test will end up
4034  # making a dummy file named 'D' -- because '-MD' means "put the output
4035  # in D".
4036  rm -rf conftest.dir
4037  mkdir conftest.dir
4038  # Copy depcomp to subdir because otherwise we won't find it if we're
4039  # using a relative directory.
4040  cp "$am_depcomp" conftest.dir
4041  cd conftest.dir
4042  # We will build objects and dependencies in a subdirectory because
4043  # it helps to detect inapplicable dependency modes.  For instance
4044  # both Tru64's cc and ICC support -MD to output dependencies as a
4045  # side effect of compilation, but ICC will put the dependencies in
4046  # the current directory while Tru64 will put them in the object
4047  # directory.
4048  mkdir sub
4049
4050  am_cv_CC_dependencies_compiler_type=none
4051  if test "$am_compiler_list" = ""; then
4052     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4053  fi
4054  am__universal=false
4055  case " $depcc " in #(
4056     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4057     esac
4058
4059  for depmode in $am_compiler_list; do
4060    # Setup a source with many dependencies, because some compilers
4061    # like to wrap large dependency lists on column 80 (with \), and
4062    # we should not choose a depcomp mode which is confused by this.
4063    #
4064    # We need to recreate these files for each test, as the compiler may
4065    # overwrite some of them when testing with obscure command lines.
4066    # This happens at least with the AIX C compiler.
4067    : > sub/conftest.c
4068    for i in 1 2 3 4 5 6; do
4069      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4070      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4071      # Solaris 10 /bin/sh.
4072      echo '/* dummy */' > sub/conftst$i.h
4073    done
4074    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4075
4076    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4077    # mode.  It turns out that the SunPro C++ compiler does not properly
4078    # handle '-M -o', and we need to detect this.  Also, some Intel
4079    # versions had trouble with output in subdirs.
4080    am__obj=sub/conftest.${OBJEXT-o}
4081    am__minus_obj="-o $am__obj"
4082    case $depmode in
4083    gcc)
4084      # This depmode causes a compiler race in universal mode.
4085      test "$am__universal" = false || continue
4086      ;;
4087    nosideeffect)
4088      # After this tag, mechanisms are not by side-effect, so they'll
4089      # only be used when explicitly requested.
4090      if test "x$enable_dependency_tracking" = xyes; then
4091	continue
4092      else
4093	break
4094      fi
4095      ;;
4096    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4097      # This compiler won't grok '-c -o', but also, the minuso test has
4098      # not run yet.  These depmodes are late enough in the game, and
4099      # so weak that their functioning should not be impacted.
4100      am__obj=conftest.${OBJEXT-o}
4101      am__minus_obj=
4102      ;;
4103    none) break ;;
4104    esac
4105    if depmode=$depmode \
4106       source=sub/conftest.c object=$am__obj \
4107       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4108       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4109         >/dev/null 2>conftest.err &&
4110       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4111       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4112       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4113       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4114      # icc doesn't choke on unknown options, it will just issue warnings
4115      # or remarks (even with -Werror).  So we grep stderr for any message
4116      # that says an option was ignored or not supported.
4117      # When given -MP, icc 7.0 and 7.1 complain thusly:
4118      #   icc: Command line warning: ignoring option '-M'; no argument required
4119      # The diagnosis changed in icc 8.0:
4120      #   icc: Command line remark: option '-MP' not supported
4121      if (grep 'ignoring option' conftest.err ||
4122          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4123        am_cv_CC_dependencies_compiler_type=$depmode
4124        break
4125      fi
4126    fi
4127  done
4128
4129  cd ..
4130  rm -rf conftest.dir
4131else
4132  am_cv_CC_dependencies_compiler_type=none
4133fi
4134
4135fi
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4137$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4138CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4139
4140 if
4141  test "x$enable_dependency_tracking" != xno \
4142  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4143  am__fastdepCC_TRUE=
4144  am__fastdepCC_FALSE='#'
4145else
4146  am__fastdepCC_TRUE='#'
4147  am__fastdepCC_FALSE=
4148fi
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4165	if test -n "$ac_tool_prefix"; then
4166  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4167set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169$as_echo_n "checking for $ac_word... " >&6; }
4170if ${ac_cv_path_PKG_CONFIG+:} false; then :
4171  $as_echo_n "(cached) " >&6
4172else
4173  case $PKG_CONFIG in
4174  [\\/]* | ?:[\\/]*)
4175  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4176  ;;
4177  *)
4178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181  IFS=$as_save_IFS
4182  test -z "$as_dir" && as_dir=.
4183    for ac_exec_ext in '' $ac_executable_extensions; do
4184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187    break 2
4188  fi
4189done
4190  done
4191IFS=$as_save_IFS
4192
4193  ;;
4194esac
4195fi
4196PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4197if test -n "$PKG_CONFIG"; then
4198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4199$as_echo "$PKG_CONFIG" >&6; }
4200else
4201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
4203fi
4204
4205
4206fi
4207if test -z "$ac_cv_path_PKG_CONFIG"; then
4208  ac_pt_PKG_CONFIG=$PKG_CONFIG
4209  # Extract the first word of "pkg-config", so it can be a program name with args.
4210set dummy pkg-config; ac_word=$2
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212$as_echo_n "checking for $ac_word... " >&6; }
4213if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4214  $as_echo_n "(cached) " >&6
4215else
4216  case $ac_pt_PKG_CONFIG in
4217  [\\/]* | ?:[\\/]*)
4218  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4219  ;;
4220  *)
4221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH
4223do
4224  IFS=$as_save_IFS
4225  test -z "$as_dir" && as_dir=.
4226    for ac_exec_ext in '' $ac_executable_extensions; do
4227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230    break 2
4231  fi
4232done
4233  done
4234IFS=$as_save_IFS
4235
4236  ;;
4237esac
4238fi
4239ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4240if test -n "$ac_pt_PKG_CONFIG"; then
4241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4242$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4243else
4244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245$as_echo "no" >&6; }
4246fi
4247
4248  if test "x$ac_pt_PKG_CONFIG" = x; then
4249    PKG_CONFIG=""
4250  else
4251    case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257    PKG_CONFIG=$ac_pt_PKG_CONFIG
4258  fi
4259else
4260  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4261fi
4262
4263fi
4264if test -n "$PKG_CONFIG"; then
4265	_pkg_min_version=0.9.0
4266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4267$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4268	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4269		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4270$as_echo "yes" >&6; }
4271	else
4272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273$as_echo "no" >&6; }
4274		PKG_CONFIG=""
4275	fi
4276fi
4277
4278
4279
4280# Check whether --with-pkgconfigdir was given.
4281if test "${with_pkgconfigdir+set}" = set; then :
4282  withval=$with_pkgconfigdir;
4283else
4284  with_pkgconfigdir='${libdir}/pkgconfig'
4285fi
4286
4287pkgconfigdir=$with_pkgconfigdir
4288
4289
4290
4291
4292
4293# Extract the first word of "glib-mkenums", so it can be a program name with args.
4294set dummy glib-mkenums; ac_word=$2
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296$as_echo_n "checking for $ac_word... " >&6; }
4297if ${ac_cv_path_GLIB_MKENUMS+:} false; then :
4298  $as_echo_n "(cached) " >&6
4299else
4300  case $GLIB_MKENUMS in
4301  [\\/]* | ?:[\\/]*)
4302  ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path.
4303  ;;
4304  *)
4305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308  IFS=$as_save_IFS
4309  test -z "$as_dir" && as_dir=.
4310    for ac_exec_ext in '' $ac_executable_extensions; do
4311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312    ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext"
4313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314    break 2
4315  fi
4316done
4317  done
4318IFS=$as_save_IFS
4319
4320  ;;
4321esac
4322fi
4323GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS
4324if test -n "$GLIB_MKENUMS"; then
4325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5
4326$as_echo "$GLIB_MKENUMS" >&6; }
4327else
4328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329$as_echo "no" >&6; }
4330fi
4331
4332
4333
4334# Initialize libtool
4335
4336case `pwd` in
4337  *\ * | *\	*)
4338    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4339$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4340esac
4341
4342
4343
4344macro_version='2.4.6'
4345macro_revision='2.4.6'
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359ltmain=$ac_aux_dir/ltmain.sh
4360
4361# Make sure we can run config.sub.
4362$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4363  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4364
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4366$as_echo_n "checking build system type... " >&6; }
4367if ${ac_cv_build+:} false; then :
4368  $as_echo_n "(cached) " >&6
4369else
4370  ac_build_alias=$build_alias
4371test "x$ac_build_alias" = x &&
4372  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4373test "x$ac_build_alias" = x &&
4374  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4375ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4376  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4377
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4380$as_echo "$ac_cv_build" >&6; }
4381case $ac_cv_build in
4382*-*-*) ;;
4383*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4384esac
4385build=$ac_cv_build
4386ac_save_IFS=$IFS; IFS='-'
4387set x $ac_cv_build
4388shift
4389build_cpu=$1
4390build_vendor=$2
4391shift; shift
4392# Remember, the first character of IFS is used to create $*,
4393# except with old shells:
4394build_os=$*
4395IFS=$ac_save_IFS
4396case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4397
4398
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4400$as_echo_n "checking host system type... " >&6; }
4401if ${ac_cv_host+:} false; then :
4402  $as_echo_n "(cached) " >&6
4403else
4404  if test "x$host_alias" = x; then
4405  ac_cv_host=$ac_cv_build
4406else
4407  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4408    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4409fi
4410
4411fi
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4413$as_echo "$ac_cv_host" >&6; }
4414case $ac_cv_host in
4415*-*-*) ;;
4416*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4417esac
4418host=$ac_cv_host
4419ac_save_IFS=$IFS; IFS='-'
4420set x $ac_cv_host
4421shift
4422host_cpu=$1
4423host_vendor=$2
4424shift; shift
4425# Remember, the first character of IFS is used to create $*,
4426# except with old shells:
4427host_os=$*
4428IFS=$ac_save_IFS
4429case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4430
4431
4432# Backslashify metacharacters that are still active within
4433# double-quoted strings.
4434sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4435
4436# Same as above, but do not quote variable references.
4437double_quote_subst='s/\(["`\\]\)/\\\1/g'
4438
4439# Sed substitution to delay expansion of an escaped shell variable in a
4440# double_quote_subst'ed string.
4441delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4442
4443# Sed substitution to delay expansion of an escaped single quote.
4444delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4445
4446# Sed substitution to avoid accidental globbing in evaled expressions
4447no_glob_subst='s/\*/\\\*/g'
4448
4449ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4450ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4451ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4452
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4454$as_echo_n "checking how to print strings... " >&6; }
4455# Test print first, because it will be a builtin if present.
4456if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4457   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4458  ECHO='print -r --'
4459elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4460  ECHO='printf %s\n'
4461else
4462  # Use this function as a fallback that always works.
4463  func_fallback_echo ()
4464  {
4465    eval 'cat <<_LTECHO_EOF
4466$1
4467_LTECHO_EOF'
4468  }
4469  ECHO='func_fallback_echo'
4470fi
4471
4472# func_echo_all arg...
4473# Invoke $ECHO with all args, space-separated.
4474func_echo_all ()
4475{
4476    $ECHO ""
4477}
4478
4479case $ECHO in
4480  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4481$as_echo "printf" >&6; } ;;
4482  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4483$as_echo "print -r" >&6; } ;;
4484  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4485$as_echo "cat" >&6; } ;;
4486esac
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4502$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4503if ${ac_cv_path_SED+:} false; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4507     for ac_i in 1 2 3 4 5 6 7; do
4508       ac_script="$ac_script$as_nl$ac_script"
4509     done
4510     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4511     { ac_script=; unset ac_script;}
4512     if test -z "$SED"; then
4513  ac_path_SED_found=false
4514  # Loop through the user's path and test for each of PROGNAME-LIST
4515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518  IFS=$as_save_IFS
4519  test -z "$as_dir" && as_dir=.
4520    for ac_prog in sed gsed; do
4521    for ac_exec_ext in '' $ac_executable_extensions; do
4522      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4523      as_fn_executable_p "$ac_path_SED" || continue
4524# Check for GNU ac_path_SED and select it if it is found.
4525  # Check for GNU $ac_path_SED
4526case `"$ac_path_SED" --version 2>&1` in
4527*GNU*)
4528  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4529*)
4530  ac_count=0
4531  $as_echo_n 0123456789 >"conftest.in"
4532  while :
4533  do
4534    cat "conftest.in" "conftest.in" >"conftest.tmp"
4535    mv "conftest.tmp" "conftest.in"
4536    cp "conftest.in" "conftest.nl"
4537    $as_echo '' >> "conftest.nl"
4538    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4539    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4540    as_fn_arith $ac_count + 1 && ac_count=$as_val
4541    if test $ac_count -gt ${ac_path_SED_max-0}; then
4542      # Best one so far, save it but keep looking for a better one
4543      ac_cv_path_SED="$ac_path_SED"
4544      ac_path_SED_max=$ac_count
4545    fi
4546    # 10*(2^10) chars as input seems more than enough
4547    test $ac_count -gt 10 && break
4548  done
4549  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4550esac
4551
4552      $ac_path_SED_found && break 3
4553    done
4554  done
4555  done
4556IFS=$as_save_IFS
4557  if test -z "$ac_cv_path_SED"; then
4558    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4559  fi
4560else
4561  ac_cv_path_SED=$SED
4562fi
4563
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4566$as_echo "$ac_cv_path_SED" >&6; }
4567 SED="$ac_cv_path_SED"
4568  rm -f conftest.sed
4569
4570test -z "$SED" && SED=sed
4571Xsed="$SED -e 1s/^X//"
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4584$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4585if ${ac_cv_path_GREP+:} false; then :
4586  $as_echo_n "(cached) " >&6
4587else
4588  if test -z "$GREP"; then
4589  ac_path_GREP_found=false
4590  # Loop through the user's path and test for each of PROGNAME-LIST
4591  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593do
4594  IFS=$as_save_IFS
4595  test -z "$as_dir" && as_dir=.
4596    for ac_prog in grep ggrep; do
4597    for ac_exec_ext in '' $ac_executable_extensions; do
4598      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4599      as_fn_executable_p "$ac_path_GREP" || continue
4600# Check for GNU ac_path_GREP and select it if it is found.
4601  # Check for GNU $ac_path_GREP
4602case `"$ac_path_GREP" --version 2>&1` in
4603*GNU*)
4604  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605*)
4606  ac_count=0
4607  $as_echo_n 0123456789 >"conftest.in"
4608  while :
4609  do
4610    cat "conftest.in" "conftest.in" >"conftest.tmp"
4611    mv "conftest.tmp" "conftest.in"
4612    cp "conftest.in" "conftest.nl"
4613    $as_echo 'GREP' >> "conftest.nl"
4614    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4615    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4616    as_fn_arith $ac_count + 1 && ac_count=$as_val
4617    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4618      # Best one so far, save it but keep looking for a better one
4619      ac_cv_path_GREP="$ac_path_GREP"
4620      ac_path_GREP_max=$ac_count
4621    fi
4622    # 10*(2^10) chars as input seems more than enough
4623    test $ac_count -gt 10 && break
4624  done
4625  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626esac
4627
4628      $ac_path_GREP_found && break 3
4629    done
4630  done
4631  done
4632IFS=$as_save_IFS
4633  if test -z "$ac_cv_path_GREP"; then
4634    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635  fi
4636else
4637  ac_cv_path_GREP=$GREP
4638fi
4639
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4642$as_echo "$ac_cv_path_GREP" >&6; }
4643 GREP="$ac_cv_path_GREP"
4644
4645
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4647$as_echo_n "checking for egrep... " >&6; }
4648if ${ac_cv_path_EGREP+:} false; then :
4649  $as_echo_n "(cached) " >&6
4650else
4651  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4652   then ac_cv_path_EGREP="$GREP -E"
4653   else
4654     if test -z "$EGREP"; then
4655  ac_path_EGREP_found=false
4656  # Loop through the user's path and test for each of PROGNAME-LIST
4657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659do
4660  IFS=$as_save_IFS
4661  test -z "$as_dir" && as_dir=.
4662    for ac_prog in egrep; do
4663    for ac_exec_ext in '' $ac_executable_extensions; do
4664      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4665      as_fn_executable_p "$ac_path_EGREP" || continue
4666# Check for GNU ac_path_EGREP and select it if it is found.
4667  # Check for GNU $ac_path_EGREP
4668case `"$ac_path_EGREP" --version 2>&1` in
4669*GNU*)
4670  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671*)
4672  ac_count=0
4673  $as_echo_n 0123456789 >"conftest.in"
4674  while :
4675  do
4676    cat "conftest.in" "conftest.in" >"conftest.tmp"
4677    mv "conftest.tmp" "conftest.in"
4678    cp "conftest.in" "conftest.nl"
4679    $as_echo 'EGREP' >> "conftest.nl"
4680    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4681    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4682    as_fn_arith $ac_count + 1 && ac_count=$as_val
4683    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4684      # Best one so far, save it but keep looking for a better one
4685      ac_cv_path_EGREP="$ac_path_EGREP"
4686      ac_path_EGREP_max=$ac_count
4687    fi
4688    # 10*(2^10) chars as input seems more than enough
4689    test $ac_count -gt 10 && break
4690  done
4691  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692esac
4693
4694      $ac_path_EGREP_found && break 3
4695    done
4696  done
4697  done
4698IFS=$as_save_IFS
4699  if test -z "$ac_cv_path_EGREP"; then
4700    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701  fi
4702else
4703  ac_cv_path_EGREP=$EGREP
4704fi
4705
4706   fi
4707fi
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4709$as_echo "$ac_cv_path_EGREP" >&6; }
4710 EGREP="$ac_cv_path_EGREP"
4711
4712
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4714$as_echo_n "checking for fgrep... " >&6; }
4715if ${ac_cv_path_FGREP+:} false; then :
4716  $as_echo_n "(cached) " >&6
4717else
4718  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4719   then ac_cv_path_FGREP="$GREP -F"
4720   else
4721     if test -z "$FGREP"; then
4722  ac_path_FGREP_found=false
4723  # Loop through the user's path and test for each of PROGNAME-LIST
4724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726do
4727  IFS=$as_save_IFS
4728  test -z "$as_dir" && as_dir=.
4729    for ac_prog in fgrep; do
4730    for ac_exec_ext in '' $ac_executable_extensions; do
4731      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4732      as_fn_executable_p "$ac_path_FGREP" || continue
4733# Check for GNU ac_path_FGREP and select it if it is found.
4734  # Check for GNU $ac_path_FGREP
4735case `"$ac_path_FGREP" --version 2>&1` in
4736*GNU*)
4737  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4738*)
4739  ac_count=0
4740  $as_echo_n 0123456789 >"conftest.in"
4741  while :
4742  do
4743    cat "conftest.in" "conftest.in" >"conftest.tmp"
4744    mv "conftest.tmp" "conftest.in"
4745    cp "conftest.in" "conftest.nl"
4746    $as_echo 'FGREP' >> "conftest.nl"
4747    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749    as_fn_arith $ac_count + 1 && ac_count=$as_val
4750    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4751      # Best one so far, save it but keep looking for a better one
4752      ac_cv_path_FGREP="$ac_path_FGREP"
4753      ac_path_FGREP_max=$ac_count
4754    fi
4755    # 10*(2^10) chars as input seems more than enough
4756    test $ac_count -gt 10 && break
4757  done
4758  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4759esac
4760
4761      $ac_path_FGREP_found && break 3
4762    done
4763  done
4764  done
4765IFS=$as_save_IFS
4766  if test -z "$ac_cv_path_FGREP"; then
4767    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4768  fi
4769else
4770  ac_cv_path_FGREP=$FGREP
4771fi
4772
4773   fi
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4776$as_echo "$ac_cv_path_FGREP" >&6; }
4777 FGREP="$ac_cv_path_FGREP"
4778
4779
4780test -z "$GREP" && GREP=grep
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800# Check whether --with-gnu-ld was given.
4801if test "${with_gnu_ld+set}" = set; then :
4802  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4803else
4804  with_gnu_ld=no
4805fi
4806
4807ac_prog=ld
4808if test yes = "$GCC"; then
4809  # Check if gcc -print-prog-name=ld gives a path.
4810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4811$as_echo_n "checking for ld used by $CC... " >&6; }
4812  case $host in
4813  *-*-mingw*)
4814    # gcc leaves a trailing carriage return, which upsets mingw
4815    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4816  *)
4817    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4818  esac
4819  case $ac_prog in
4820    # Accept absolute paths.
4821    [\\/]* | ?:[\\/]*)
4822      re_direlt='/[^/][^/]*/\.\./'
4823      # Canonicalize the pathname of ld
4824      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4825      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4826	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4827      done
4828      test -z "$LD" && LD=$ac_prog
4829      ;;
4830  "")
4831    # If it fails, then pretend we aren't using GCC.
4832    ac_prog=ld
4833    ;;
4834  *)
4835    # If it is relative, then search for the first ld in PATH.
4836    with_gnu_ld=unknown
4837    ;;
4838  esac
4839elif test yes = "$with_gnu_ld"; then
4840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4841$as_echo_n "checking for GNU ld... " >&6; }
4842else
4843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4844$as_echo_n "checking for non-GNU ld... " >&6; }
4845fi
4846if ${lt_cv_path_LD+:} false; then :
4847  $as_echo_n "(cached) " >&6
4848else
4849  if test -z "$LD"; then
4850  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4851  for ac_dir in $PATH; do
4852    IFS=$lt_save_ifs
4853    test -z "$ac_dir" && ac_dir=.
4854    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4855      lt_cv_path_LD=$ac_dir/$ac_prog
4856      # Check to see if the program is GNU ld.  I'd rather use --version,
4857      # but apparently some variants of GNU ld only accept -v.
4858      # Break only if it was the GNU/non-GNU ld that we prefer.
4859      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4860      *GNU* | *'with BFD'*)
4861	test no != "$with_gnu_ld" && break
4862	;;
4863      *)
4864	test yes != "$with_gnu_ld" && break
4865	;;
4866      esac
4867    fi
4868  done
4869  IFS=$lt_save_ifs
4870else
4871  lt_cv_path_LD=$LD # Let the user override the test with a path.
4872fi
4873fi
4874
4875LD=$lt_cv_path_LD
4876if test -n "$LD"; then
4877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4878$as_echo "$LD" >&6; }
4879else
4880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881$as_echo "no" >&6; }
4882fi
4883test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4885$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4886if ${lt_cv_prog_gnu_ld+:} false; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4890case `$LD -v 2>&1 </dev/null` in
4891*GNU* | *'with BFD'*)
4892  lt_cv_prog_gnu_ld=yes
4893  ;;
4894*)
4895  lt_cv_prog_gnu_ld=no
4896  ;;
4897esac
4898fi
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4900$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4901with_gnu_ld=$lt_cv_prog_gnu_ld
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4912$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4913if ${lt_cv_path_NM+:} false; then :
4914  $as_echo_n "(cached) " >&6
4915else
4916  if test -n "$NM"; then
4917  # Let the user override the test.
4918  lt_cv_path_NM=$NM
4919else
4920  lt_nm_to_check=${ac_tool_prefix}nm
4921  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4922    lt_nm_to_check="$lt_nm_to_check nm"
4923  fi
4924  for lt_tmp_nm in $lt_nm_to_check; do
4925    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4926    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4927      IFS=$lt_save_ifs
4928      test -z "$ac_dir" && ac_dir=.
4929      tmp_nm=$ac_dir/$lt_tmp_nm
4930      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4931	# Check to see if the nm accepts a BSD-compat flag.
4932	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4933	#   nm: unknown option "B" ignored
4934	# Tru64's nm complains that /dev/null is an invalid object file
4935	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4936	case $build_os in
4937	mingw*) lt_bad_file=conftest.nm/nofile ;;
4938	*) lt_bad_file=/dev/null ;;
4939	esac
4940	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4941	*$lt_bad_file* | *'Invalid file or object type'*)
4942	  lt_cv_path_NM="$tmp_nm -B"
4943	  break 2
4944	  ;;
4945	*)
4946	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4947	  */dev/null*)
4948	    lt_cv_path_NM="$tmp_nm -p"
4949	    break 2
4950	    ;;
4951	  *)
4952	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4953	    continue # so that we can try to find one that supports BSD flags
4954	    ;;
4955	  esac
4956	  ;;
4957	esac
4958      fi
4959    done
4960    IFS=$lt_save_ifs
4961  done
4962  : ${lt_cv_path_NM=no}
4963fi
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4966$as_echo "$lt_cv_path_NM" >&6; }
4967if test no != "$lt_cv_path_NM"; then
4968  NM=$lt_cv_path_NM
4969else
4970  # Didn't find any BSD compatible name lister, look for dumpbin.
4971  if test -n "$DUMPBIN"; then :
4972    # Let the user override the test.
4973  else
4974    if test -n "$ac_tool_prefix"; then
4975  for ac_prog in dumpbin "link -dump"
4976  do
4977    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980$as_echo_n "checking for $ac_word... " >&6; }
4981if ${ac_cv_prog_DUMPBIN+:} false; then :
4982  $as_echo_n "(cached) " >&6
4983else
4984  if test -n "$DUMPBIN"; then
4985  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4986else
4987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in $PATH
4989do
4990  IFS=$as_save_IFS
4991  test -z "$as_dir" && as_dir=.
4992    for ac_exec_ext in '' $ac_executable_extensions; do
4993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996    break 2
4997  fi
4998done
4999  done
5000IFS=$as_save_IFS
5001
5002fi
5003fi
5004DUMPBIN=$ac_cv_prog_DUMPBIN
5005if test -n "$DUMPBIN"; then
5006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5007$as_echo "$DUMPBIN" >&6; }
5008else
5009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010$as_echo "no" >&6; }
5011fi
5012
5013
5014    test -n "$DUMPBIN" && break
5015  done
5016fi
5017if test -z "$DUMPBIN"; then
5018  ac_ct_DUMPBIN=$DUMPBIN
5019  for ac_prog in dumpbin "link -dump"
5020do
5021  # Extract the first word of "$ac_prog", so it can be a program name with args.
5022set dummy $ac_prog; ac_word=$2
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  if test -n "$ac_ct_DUMPBIN"; then
5029  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5030else
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034  IFS=$as_save_IFS
5035  test -z "$as_dir" && as_dir=.
5036    for ac_exec_ext in '' $ac_executable_extensions; do
5037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040    break 2
5041  fi
5042done
5043  done
5044IFS=$as_save_IFS
5045
5046fi
5047fi
5048ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5049if test -n "$ac_ct_DUMPBIN"; then
5050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5051$as_echo "$ac_ct_DUMPBIN" >&6; }
5052else
5053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057
5058  test -n "$ac_ct_DUMPBIN" && break
5059done
5060
5061  if test "x$ac_ct_DUMPBIN" = x; then
5062    DUMPBIN=":"
5063  else
5064    case $cross_compiling:$ac_tool_warned in
5065yes:)
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5068ac_tool_warned=yes ;;
5069esac
5070    DUMPBIN=$ac_ct_DUMPBIN
5071  fi
5072fi
5073
5074    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5075    *COFF*)
5076      DUMPBIN="$DUMPBIN -symbols -headers"
5077      ;;
5078    *)
5079      DUMPBIN=:
5080      ;;
5081    esac
5082  fi
5083
5084  if test : != "$DUMPBIN"; then
5085    NM=$DUMPBIN
5086  fi
5087fi
5088test -z "$NM" && NM=nm
5089
5090
5091
5092
5093
5094
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5096$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5097if ${lt_cv_nm_interface+:} false; then :
5098  $as_echo_n "(cached) " >&6
5099else
5100  lt_cv_nm_interface="BSD nm"
5101  echo "int some_variable = 0;" > conftest.$ac_ext
5102  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5103  (eval "$ac_compile" 2>conftest.err)
5104  cat conftest.err >&5
5105  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5106  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5107  cat conftest.err >&5
5108  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5109  cat conftest.out >&5
5110  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5111    lt_cv_nm_interface="MS dumpbin"
5112  fi
5113  rm -f conftest*
5114fi
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5116$as_echo "$lt_cv_nm_interface" >&6; }
5117
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5119$as_echo_n "checking whether ln -s works... " >&6; }
5120LN_S=$as_ln_s
5121if test "$LN_S" = "ln -s"; then
5122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5123$as_echo "yes" >&6; }
5124else
5125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5126$as_echo "no, using $LN_S" >&6; }
5127fi
5128
5129# find the maximum length of command line arguments
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5131$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5132if ${lt_cv_sys_max_cmd_len+:} false; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135    i=0
5136  teststring=ABCD
5137
5138  case $build_os in
5139  msdosdjgpp*)
5140    # On DJGPP, this test can blow up pretty badly due to problems in libc
5141    # (any single argument exceeding 2000 bytes causes a buffer overrun
5142    # during glob expansion).  Even if it were fixed, the result of this
5143    # check would be larger than it should be.
5144    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5145    ;;
5146
5147  gnu*)
5148    # Under GNU Hurd, this test is not required because there is
5149    # no limit to the length of command line arguments.
5150    # Libtool will interpret -1 as no limit whatsoever
5151    lt_cv_sys_max_cmd_len=-1;
5152    ;;
5153
5154  cygwin* | mingw* | cegcc*)
5155    # On Win9x/ME, this test blows up -- it succeeds, but takes
5156    # about 5 minutes as the teststring grows exponentially.
5157    # Worse, since 9x/ME are not pre-emptively multitasking,
5158    # you end up with a "frozen" computer, even though with patience
5159    # the test eventually succeeds (with a max line length of 256k).
5160    # Instead, let's just punt: use the minimum linelength reported by
5161    # all of the supported platforms: 8192 (on NT/2K/XP).
5162    lt_cv_sys_max_cmd_len=8192;
5163    ;;
5164
5165  mint*)
5166    # On MiNT this can take a long time and run out of memory.
5167    lt_cv_sys_max_cmd_len=8192;
5168    ;;
5169
5170  amigaos*)
5171    # On AmigaOS with pdksh, this test takes hours, literally.
5172    # So we just punt and use a minimum line length of 8192.
5173    lt_cv_sys_max_cmd_len=8192;
5174    ;;
5175
5176  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5177    # This has been around since 386BSD, at least.  Likely further.
5178    if test -x /sbin/sysctl; then
5179      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5180    elif test -x /usr/sbin/sysctl; then
5181      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5182    else
5183      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5184    fi
5185    # And add a safety zone
5186    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5187    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5188    ;;
5189
5190  interix*)
5191    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5192    lt_cv_sys_max_cmd_len=196608
5193    ;;
5194
5195  os2*)
5196    # The test takes a long time on OS/2.
5197    lt_cv_sys_max_cmd_len=8192
5198    ;;
5199
5200  osf*)
5201    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5202    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5203    # nice to cause kernel panics so lets avoid the loop below.
5204    # First set a reasonable default.
5205    lt_cv_sys_max_cmd_len=16384
5206    #
5207    if test -x /sbin/sysconfig; then
5208      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5209        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5210      esac
5211    fi
5212    ;;
5213  sco3.2v5*)
5214    lt_cv_sys_max_cmd_len=102400
5215    ;;
5216  sysv5* | sco5v6* | sysv4.2uw2*)
5217    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5218    if test -n "$kargmax"; then
5219      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5220    else
5221      lt_cv_sys_max_cmd_len=32768
5222    fi
5223    ;;
5224  *)
5225    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5226    if test -n "$lt_cv_sys_max_cmd_len" && \
5227       test undefined != "$lt_cv_sys_max_cmd_len"; then
5228      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5229      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5230    else
5231      # Make teststring a little bigger before we do anything with it.
5232      # a 1K string should be a reasonable start.
5233      for i in 1 2 3 4 5 6 7 8; do
5234        teststring=$teststring$teststring
5235      done
5236      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5237      # If test is not a shell built-in, we'll probably end up computing a
5238      # maximum length that is only half of the actual maximum length, but
5239      # we can't tell.
5240      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5241	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5242	      test 17 != "$i" # 1/2 MB should be enough
5243      do
5244        i=`expr $i + 1`
5245        teststring=$teststring$teststring
5246      done
5247      # Only check the string length outside the loop.
5248      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5249      teststring=
5250      # Add a significant safety factor because C++ compilers can tack on
5251      # massive amounts of additional arguments before passing them to the
5252      # linker.  It appears as though 1/2 is a usable value.
5253      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5254    fi
5255    ;;
5256  esac
5257
5258fi
5259
5260if test -n "$lt_cv_sys_max_cmd_len"; then
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5262$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5263else
5264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5265$as_echo "none" >&6; }
5266fi
5267max_cmd_len=$lt_cv_sys_max_cmd_len
5268
5269
5270
5271
5272
5273
5274: ${CP="cp -f"}
5275: ${MV="mv -f"}
5276: ${RM="rm -f"}
5277
5278if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5279  lt_unset=unset
5280else
5281  lt_unset=false
5282fi
5283
5284
5285
5286
5287
5288# test EBCDIC or ASCII
5289case `echo X|tr X '\101'` in
5290 A) # ASCII based system
5291    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5292  lt_SP2NL='tr \040 \012'
5293  lt_NL2SP='tr \015\012 \040\040'
5294  ;;
5295 *) # EBCDIC based system
5296  lt_SP2NL='tr \100 \n'
5297  lt_NL2SP='tr \r\n \100\100'
5298  ;;
5299esac
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5310$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5311if ${lt_cv_to_host_file_cmd+:} false; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314  case $host in
5315  *-*-mingw* )
5316    case $build in
5317      *-*-mingw* ) # actually msys
5318        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5319        ;;
5320      *-*-cygwin* )
5321        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5322        ;;
5323      * ) # otherwise, assume *nix
5324        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5325        ;;
5326    esac
5327    ;;
5328  *-*-cygwin* )
5329    case $build in
5330      *-*-mingw* ) # actually msys
5331        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5332        ;;
5333      *-*-cygwin* )
5334        lt_cv_to_host_file_cmd=func_convert_file_noop
5335        ;;
5336      * ) # otherwise, assume *nix
5337        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5338        ;;
5339    esac
5340    ;;
5341  * ) # unhandled hosts (and "normal" native builds)
5342    lt_cv_to_host_file_cmd=func_convert_file_noop
5343    ;;
5344esac
5345
5346fi
5347
5348to_host_file_cmd=$lt_cv_to_host_file_cmd
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5350$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5351
5352
5353
5354
5355
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5357$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5358if ${lt_cv_to_tool_file_cmd+:} false; then :
5359  $as_echo_n "(cached) " >&6
5360else
5361  #assume ordinary cross tools, or native build.
5362lt_cv_to_tool_file_cmd=func_convert_file_noop
5363case $host in
5364  *-*-mingw* )
5365    case $build in
5366      *-*-mingw* ) # actually msys
5367        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5368        ;;
5369    esac
5370    ;;
5371esac
5372
5373fi
5374
5375to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5377$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5378
5379
5380
5381
5382
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5384$as_echo_n "checking for $LD option to reload object files... " >&6; }
5385if ${lt_cv_ld_reload_flag+:} false; then :
5386  $as_echo_n "(cached) " >&6
5387else
5388  lt_cv_ld_reload_flag='-r'
5389fi
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5391$as_echo "$lt_cv_ld_reload_flag" >&6; }
5392reload_flag=$lt_cv_ld_reload_flag
5393case $reload_flag in
5394"" | " "*) ;;
5395*) reload_flag=" $reload_flag" ;;
5396esac
5397reload_cmds='$LD$reload_flag -o $output$reload_objs'
5398case $host_os in
5399  cygwin* | mingw* | pw32* | cegcc*)
5400    if test yes != "$GCC"; then
5401      reload_cmds=false
5402    fi
5403    ;;
5404  darwin*)
5405    if test yes = "$GCC"; then
5406      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5407    else
5408      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5409    fi
5410    ;;
5411esac
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421if test -n "$ac_tool_prefix"; then
5422  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5423set dummy ${ac_tool_prefix}objdump; ac_word=$2
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425$as_echo_n "checking for $ac_word... " >&6; }
5426if ${ac_cv_prog_OBJDUMP+:} false; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  if test -n "$OBJDUMP"; then
5430  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5431else
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435  IFS=$as_save_IFS
5436  test -z "$as_dir" && as_dir=.
5437    for ac_exec_ext in '' $ac_executable_extensions; do
5438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441    break 2
5442  fi
5443done
5444  done
5445IFS=$as_save_IFS
5446
5447fi
5448fi
5449OBJDUMP=$ac_cv_prog_OBJDUMP
5450if test -n "$OBJDUMP"; then
5451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5452$as_echo "$OBJDUMP" >&6; }
5453else
5454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455$as_echo "no" >&6; }
5456fi
5457
5458
5459fi
5460if test -z "$ac_cv_prog_OBJDUMP"; then
5461  ac_ct_OBJDUMP=$OBJDUMP
5462  # Extract the first word of "objdump", so it can be a program name with args.
5463set dummy objdump; ac_word=$2
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
5466if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  if test -n "$ac_ct_OBJDUMP"; then
5470  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475  IFS=$as_save_IFS
5476  test -z "$as_dir" && as_dir=.
5477    for ac_exec_ext in '' $ac_executable_extensions; do
5478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481    break 2
5482  fi
5483done
5484  done
5485IFS=$as_save_IFS
5486
5487fi
5488fi
5489ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5490if test -n "$ac_ct_OBJDUMP"; then
5491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5492$as_echo "$ac_ct_OBJDUMP" >&6; }
5493else
5494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495$as_echo "no" >&6; }
5496fi
5497
5498  if test "x$ac_ct_OBJDUMP" = x; then
5499    OBJDUMP="false"
5500  else
5501    case $cross_compiling:$ac_tool_warned in
5502yes:)
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505ac_tool_warned=yes ;;
5506esac
5507    OBJDUMP=$ac_ct_OBJDUMP
5508  fi
5509else
5510  OBJDUMP="$ac_cv_prog_OBJDUMP"
5511fi
5512
5513test -z "$OBJDUMP" && OBJDUMP=objdump
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5524$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5525if ${lt_cv_deplibs_check_method+:} false; then :
5526  $as_echo_n "(cached) " >&6
5527else
5528  lt_cv_file_magic_cmd='$MAGIC_CMD'
5529lt_cv_file_magic_test_file=
5530lt_cv_deplibs_check_method='unknown'
5531# Need to set the preceding variable on all platforms that support
5532# interlibrary dependencies.
5533# 'none' -- dependencies not supported.
5534# 'unknown' -- same as none, but documents that we really don't know.
5535# 'pass_all' -- all dependencies passed with no checks.
5536# 'test_compile' -- check by making test program.
5537# 'file_magic [[regex]]' -- check by looking for files in library path
5538# that responds to the $file_magic_cmd with a given extended regex.
5539# If you have 'file' or equivalent on your system and you're not sure
5540# whether 'pass_all' will *always* work, you probably want this one.
5541
5542case $host_os in
5543aix[4-9]*)
5544  lt_cv_deplibs_check_method=pass_all
5545  ;;
5546
5547beos*)
5548  lt_cv_deplibs_check_method=pass_all
5549  ;;
5550
5551bsdi[45]*)
5552  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5553  lt_cv_file_magic_cmd='/usr/bin/file -L'
5554  lt_cv_file_magic_test_file=/shlib/libc.so
5555  ;;
5556
5557cygwin*)
5558  # func_win32_libid is a shell function defined in ltmain.sh
5559  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5560  lt_cv_file_magic_cmd='func_win32_libid'
5561  ;;
5562
5563mingw* | pw32*)
5564  # Base MSYS/MinGW do not provide the 'file' command needed by
5565  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5566  # unless we find 'file', for example because we are cross-compiling.
5567  if ( file / ) >/dev/null 2>&1; then
5568    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5569    lt_cv_file_magic_cmd='func_win32_libid'
5570  else
5571    # Keep this pattern in sync with the one in func_win32_libid.
5572    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5573    lt_cv_file_magic_cmd='$OBJDUMP -f'
5574  fi
5575  ;;
5576
5577cegcc*)
5578  # use the weaker test based on 'objdump'. See mingw*.
5579  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5580  lt_cv_file_magic_cmd='$OBJDUMP -f'
5581  ;;
5582
5583darwin* | rhapsody*)
5584  lt_cv_deplibs_check_method=pass_all
5585  ;;
5586
5587freebsd* | dragonfly*)
5588  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5589    case $host_cpu in
5590    i*86 )
5591      # Not sure whether the presence of OpenBSD here was a mistake.
5592      # Let's accept both of them until this is cleared up.
5593      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5594      lt_cv_file_magic_cmd=/usr/bin/file
5595      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5596      ;;
5597    esac
5598  else
5599    lt_cv_deplibs_check_method=pass_all
5600  fi
5601  ;;
5602
5603haiku*)
5604  lt_cv_deplibs_check_method=pass_all
5605  ;;
5606
5607hpux10.20* | hpux11*)
5608  lt_cv_file_magic_cmd=/usr/bin/file
5609  case $host_cpu in
5610  ia64*)
5611    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5612    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5613    ;;
5614  hppa*64*)
5615    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5616    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5617    ;;
5618  *)
5619    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5620    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5621    ;;
5622  esac
5623  ;;
5624
5625interix[3-9]*)
5626  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5627  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5628  ;;
5629
5630irix5* | irix6* | nonstopux*)
5631  case $LD in
5632  *-32|*"-32 ") libmagic=32-bit;;
5633  *-n32|*"-n32 ") libmagic=N32;;
5634  *-64|*"-64 ") libmagic=64-bit;;
5635  *) libmagic=never-match;;
5636  esac
5637  lt_cv_deplibs_check_method=pass_all
5638  ;;
5639
5640# This must be glibc/ELF.
5641linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5642  lt_cv_deplibs_check_method=pass_all
5643  ;;
5644
5645netbsd*)
5646  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5647    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5648  else
5649    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5650  fi
5651  ;;
5652
5653newos6*)
5654  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5655  lt_cv_file_magic_cmd=/usr/bin/file
5656  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5657  ;;
5658
5659*nto* | *qnx*)
5660  lt_cv_deplibs_check_method=pass_all
5661  ;;
5662
5663openbsd* | bitrig*)
5664  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5665    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5666  else
5667    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5668  fi
5669  ;;
5670
5671osf3* | osf4* | osf5*)
5672  lt_cv_deplibs_check_method=pass_all
5673  ;;
5674
5675rdos*)
5676  lt_cv_deplibs_check_method=pass_all
5677  ;;
5678
5679solaris*)
5680  lt_cv_deplibs_check_method=pass_all
5681  ;;
5682
5683sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5684  lt_cv_deplibs_check_method=pass_all
5685  ;;
5686
5687sysv4 | sysv4.3*)
5688  case $host_vendor in
5689  motorola)
5690    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]'
5691    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5692    ;;
5693  ncr)
5694    lt_cv_deplibs_check_method=pass_all
5695    ;;
5696  sequent)
5697    lt_cv_file_magic_cmd='/bin/file'
5698    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5699    ;;
5700  sni)
5701    lt_cv_file_magic_cmd='/bin/file'
5702    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5703    lt_cv_file_magic_test_file=/lib/libc.so
5704    ;;
5705  siemens)
5706    lt_cv_deplibs_check_method=pass_all
5707    ;;
5708  pc)
5709    lt_cv_deplibs_check_method=pass_all
5710    ;;
5711  esac
5712  ;;
5713
5714tpf*)
5715  lt_cv_deplibs_check_method=pass_all
5716  ;;
5717os2*)
5718  lt_cv_deplibs_check_method=pass_all
5719  ;;
5720esac
5721
5722fi
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5724$as_echo "$lt_cv_deplibs_check_method" >&6; }
5725
5726file_magic_glob=
5727want_nocaseglob=no
5728if test "$build" = "$host"; then
5729  case $host_os in
5730  mingw* | pw32*)
5731    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5732      want_nocaseglob=yes
5733    else
5734      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5735    fi
5736    ;;
5737  esac
5738fi
5739
5740file_magic_cmd=$lt_cv_file_magic_cmd
5741deplibs_check_method=$lt_cv_deplibs_check_method
5742test -z "$deplibs_check_method" && deplibs_check_method=unknown
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765if test -n "$ac_tool_prefix"; then
5766  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5767set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if ${ac_cv_prog_DLLTOOL+:} false; then :
5771  $as_echo_n "(cached) " >&6
5772else
5773  if test -n "$DLLTOOL"; then
5774  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779  IFS=$as_save_IFS
5780  test -z "$as_dir" && as_dir=.
5781    for ac_exec_ext in '' $ac_executable_extensions; do
5782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785    break 2
5786  fi
5787done
5788  done
5789IFS=$as_save_IFS
5790
5791fi
5792fi
5793DLLTOOL=$ac_cv_prog_DLLTOOL
5794if test -n "$DLLTOOL"; then
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5796$as_echo "$DLLTOOL" >&6; }
5797else
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
5800fi
5801
5802
5803fi
5804if test -z "$ac_cv_prog_DLLTOOL"; then
5805  ac_ct_DLLTOOL=$DLLTOOL
5806  # Extract the first word of "dlltool", so it can be a program name with args.
5807set dummy dlltool; ac_word=$2
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809$as_echo_n "checking for $ac_word... " >&6; }
5810if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  if test -n "$ac_ct_DLLTOOL"; then
5814  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819  IFS=$as_save_IFS
5820  test -z "$as_dir" && as_dir=.
5821    for ac_exec_ext in '' $ac_executable_extensions; do
5822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825    break 2
5826  fi
5827done
5828  done
5829IFS=$as_save_IFS
5830
5831fi
5832fi
5833ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5834if test -n "$ac_ct_DLLTOOL"; then
5835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5836$as_echo "$ac_ct_DLLTOOL" >&6; }
5837else
5838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
5840fi
5841
5842  if test "x$ac_ct_DLLTOOL" = x; then
5843    DLLTOOL="false"
5844  else
5845    case $cross_compiling:$ac_tool_warned in
5846yes:)
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849ac_tool_warned=yes ;;
5850esac
5851    DLLTOOL=$ac_ct_DLLTOOL
5852  fi
5853else
5854  DLLTOOL="$ac_cv_prog_DLLTOOL"
5855fi
5856
5857test -z "$DLLTOOL" && DLLTOOL=dlltool
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5869$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5870if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5871  $as_echo_n "(cached) " >&6
5872else
5873  lt_cv_sharedlib_from_linklib_cmd='unknown'
5874
5875case $host_os in
5876cygwin* | mingw* | pw32* | cegcc*)
5877  # two different shell functions defined in ltmain.sh;
5878  # decide which one to use based on capabilities of $DLLTOOL
5879  case `$DLLTOOL --help 2>&1` in
5880  *--identify-strict*)
5881    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5882    ;;
5883  *)
5884    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5885    ;;
5886  esac
5887  ;;
5888*)
5889  # fallback: assume linklib IS sharedlib
5890  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5891  ;;
5892esac
5893
5894fi
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5896$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5897sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5898test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5899
5900
5901
5902
5903
5904
5905
5906
5907if test -n "$ac_tool_prefix"; then
5908  for ac_prog in ar
5909  do
5910    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913$as_echo_n "checking for $ac_word... " >&6; }
5914if ${ac_cv_prog_AR+:} false; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  if test -n "$AR"; then
5918  ac_cv_prog_AR="$AR" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923  IFS=$as_save_IFS
5924  test -z "$as_dir" && as_dir=.
5925    for ac_exec_ext in '' $ac_executable_extensions; do
5926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929    break 2
5930  fi
5931done
5932  done
5933IFS=$as_save_IFS
5934
5935fi
5936fi
5937AR=$ac_cv_prog_AR
5938if test -n "$AR"; then
5939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5940$as_echo "$AR" >&6; }
5941else
5942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943$as_echo "no" >&6; }
5944fi
5945
5946
5947    test -n "$AR" && break
5948  done
5949fi
5950if test -z "$AR"; then
5951  ac_ct_AR=$AR
5952  for ac_prog in ar
5953do
5954  # Extract the first word of "$ac_prog", so it can be a program name with args.
5955set dummy $ac_prog; ac_word=$2
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957$as_echo_n "checking for $ac_word... " >&6; }
5958if ${ac_cv_prog_ac_ct_AR+:} false; then :
5959  $as_echo_n "(cached) " >&6
5960else
5961  if test -n "$ac_ct_AR"; then
5962  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5963else
5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965for as_dir in $PATH
5966do
5967  IFS=$as_save_IFS
5968  test -z "$as_dir" && as_dir=.
5969    for ac_exec_ext in '' $ac_executable_extensions; do
5970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971    ac_cv_prog_ac_ct_AR="$ac_prog"
5972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973    break 2
5974  fi
5975done
5976  done
5977IFS=$as_save_IFS
5978
5979fi
5980fi
5981ac_ct_AR=$ac_cv_prog_ac_ct_AR
5982if test -n "$ac_ct_AR"; then
5983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5984$as_echo "$ac_ct_AR" >&6; }
5985else
5986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
5988fi
5989
5990
5991  test -n "$ac_ct_AR" && break
5992done
5993
5994  if test "x$ac_ct_AR" = x; then
5995    AR="false"
5996  else
5997    case $cross_compiling:$ac_tool_warned in
5998yes:)
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001ac_tool_warned=yes ;;
6002esac
6003    AR=$ac_ct_AR
6004  fi
6005fi
6006
6007: ${AR=ar}
6008: ${AR_FLAGS=cru}
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6021$as_echo_n "checking for archiver @FILE support... " >&6; }
6022if ${lt_cv_ar_at_file+:} false; then :
6023  $as_echo_n "(cached) " >&6
6024else
6025  lt_cv_ar_at_file=no
6026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027/* end confdefs.h.  */
6028
6029int
6030main ()
6031{
6032
6033  ;
6034  return 0;
6035}
6036_ACEOF
6037if ac_fn_c_try_compile "$LINENO"; then :
6038  echo conftest.$ac_objext > conftest.lst
6039      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6040      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6041  (eval $lt_ar_try) 2>&5
6042  ac_status=$?
6043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6044  test $ac_status = 0; }
6045      if test 0 -eq "$ac_status"; then
6046	# Ensure the archiver fails upon bogus file names.
6047	rm -f conftest.$ac_objext libconftest.a
6048	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6049  (eval $lt_ar_try) 2>&5
6050  ac_status=$?
6051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6052  test $ac_status = 0; }
6053	if test 0 -ne "$ac_status"; then
6054          lt_cv_ar_at_file=@
6055        fi
6056      fi
6057      rm -f conftest.* libconftest.a
6058
6059fi
6060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061
6062fi
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6064$as_echo "$lt_cv_ar_at_file" >&6; }
6065
6066if test no = "$lt_cv_ar_at_file"; then
6067  archiver_list_spec=
6068else
6069  archiver_list_spec=$lt_cv_ar_at_file
6070fi
6071
6072
6073
6074
6075
6076
6077
6078if test -n "$ac_tool_prefix"; then
6079  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6080set dummy ${ac_tool_prefix}strip; ac_word=$2
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082$as_echo_n "checking for $ac_word... " >&6; }
6083if ${ac_cv_prog_STRIP+:} false; then :
6084  $as_echo_n "(cached) " >&6
6085else
6086  if test -n "$STRIP"; then
6087  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092  IFS=$as_save_IFS
6093  test -z "$as_dir" && as_dir=.
6094    for ac_exec_ext in '' $ac_executable_extensions; do
6095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098    break 2
6099  fi
6100done
6101  done
6102IFS=$as_save_IFS
6103
6104fi
6105fi
6106STRIP=$ac_cv_prog_STRIP
6107if test -n "$STRIP"; then
6108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6109$as_echo "$STRIP" >&6; }
6110else
6111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112$as_echo "no" >&6; }
6113fi
6114
6115
6116fi
6117if test -z "$ac_cv_prog_STRIP"; then
6118  ac_ct_STRIP=$STRIP
6119  # Extract the first word of "strip", so it can be a program name with args.
6120set dummy strip; ac_word=$2
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122$as_echo_n "checking for $ac_word... " >&6; }
6123if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6124  $as_echo_n "(cached) " >&6
6125else
6126  if test -n "$ac_ct_STRIP"; then
6127  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6128else
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132  IFS=$as_save_IFS
6133  test -z "$as_dir" && as_dir=.
6134    for ac_exec_ext in '' $ac_executable_extensions; do
6135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136    ac_cv_prog_ac_ct_STRIP="strip"
6137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138    break 2
6139  fi
6140done
6141  done
6142IFS=$as_save_IFS
6143
6144fi
6145fi
6146ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6147if test -n "$ac_ct_STRIP"; then
6148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6149$as_echo "$ac_ct_STRIP" >&6; }
6150else
6151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152$as_echo "no" >&6; }
6153fi
6154
6155  if test "x$ac_ct_STRIP" = x; then
6156    STRIP=":"
6157  else
6158    case $cross_compiling:$ac_tool_warned in
6159yes:)
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162ac_tool_warned=yes ;;
6163esac
6164    STRIP=$ac_ct_STRIP
6165  fi
6166else
6167  STRIP="$ac_cv_prog_STRIP"
6168fi
6169
6170test -z "$STRIP" && STRIP=:
6171
6172
6173
6174
6175
6176
6177if test -n "$ac_tool_prefix"; then
6178  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6179set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
6182if ${ac_cv_prog_RANLIB+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  if test -n "$RANLIB"; then
6186  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  test -z "$as_dir" && as_dir=.
6193    for ac_exec_ext in '' $ac_executable_extensions; do
6194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197    break 2
6198  fi
6199done
6200  done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205RANLIB=$ac_cv_prog_RANLIB
6206if test -n "$RANLIB"; then
6207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6208$as_echo "$RANLIB" >&6; }
6209else
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212fi
6213
6214
6215fi
6216if test -z "$ac_cv_prog_RANLIB"; then
6217  ac_ct_RANLIB=$RANLIB
6218  # Extract the first word of "ranlib", so it can be a program name with args.
6219set dummy ranlib; ac_word=$2
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221$as_echo_n "checking for $ac_word... " >&6; }
6222if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6223  $as_echo_n "(cached) " >&6
6224else
6225  if test -n "$ac_ct_RANLIB"; then
6226  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231  IFS=$as_save_IFS
6232  test -z "$as_dir" && as_dir=.
6233    for ac_exec_ext in '' $ac_executable_extensions; do
6234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6235    ac_cv_prog_ac_ct_RANLIB="ranlib"
6236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237    break 2
6238  fi
6239done
6240  done
6241IFS=$as_save_IFS
6242
6243fi
6244fi
6245ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6246if test -n "$ac_ct_RANLIB"; then
6247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6248$as_echo "$ac_ct_RANLIB" >&6; }
6249else
6250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251$as_echo "no" >&6; }
6252fi
6253
6254  if test "x$ac_ct_RANLIB" = x; then
6255    RANLIB=":"
6256  else
6257    case $cross_compiling:$ac_tool_warned in
6258yes:)
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6261ac_tool_warned=yes ;;
6262esac
6263    RANLIB=$ac_ct_RANLIB
6264  fi
6265else
6266  RANLIB="$ac_cv_prog_RANLIB"
6267fi
6268
6269test -z "$RANLIB" && RANLIB=:
6270
6271
6272
6273
6274
6275
6276# Determine commands to create old-style static archives.
6277old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6278old_postinstall_cmds='chmod 644 $oldlib'
6279old_postuninstall_cmds=
6280
6281if test -n "$RANLIB"; then
6282  case $host_os in
6283  bitrig* | openbsd*)
6284    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6285    ;;
6286  *)
6287    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6288    ;;
6289  esac
6290  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6291fi
6292
6293case $host_os in
6294  darwin*)
6295    lock_old_archive_extraction=yes ;;
6296  *)
6297    lock_old_archive_extraction=no ;;
6298esac
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338# If no C compiler was specified, use CC.
6339LTCC=${LTCC-"$CC"}
6340
6341# If no C compiler flags were specified, use CFLAGS.
6342LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6343
6344# Allow CC to be a program name with arguments.
6345compiler=$CC
6346
6347
6348# Check for command to grab the raw symbol name followed by C symbol from nm.
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6350$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6351if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354
6355# These are sane defaults that work on at least a few old systems.
6356# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6357
6358# Character class describing NM global symbol codes.
6359symcode='[BCDEGRST]'
6360
6361# Regexp to match symbols that can be accessed directly from C.
6362sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6363
6364# Define system-specific variables.
6365case $host_os in
6366aix*)
6367  symcode='[BCDT]'
6368  ;;
6369cygwin* | mingw* | pw32* | cegcc*)
6370  symcode='[ABCDGISTW]'
6371  ;;
6372hpux*)
6373  if test ia64 = "$host_cpu"; then
6374    symcode='[ABCDEGRST]'
6375  fi
6376  ;;
6377irix* | nonstopux*)
6378  symcode='[BCDEGRST]'
6379  ;;
6380osf*)
6381  symcode='[BCDEGQRST]'
6382  ;;
6383solaris*)
6384  symcode='[BDRT]'
6385  ;;
6386sco3.2v5*)
6387  symcode='[DT]'
6388  ;;
6389sysv4.2uw2*)
6390  symcode='[DT]'
6391  ;;
6392sysv5* | sco5v6* | unixware* | OpenUNIX*)
6393  symcode='[ABDT]'
6394  ;;
6395sysv4)
6396  symcode='[DFNSTU]'
6397  ;;
6398esac
6399
6400# If we're using GNU nm, then use its standard symbol codes.
6401case `$NM -V 2>&1` in
6402*GNU* | *'with BFD'*)
6403  symcode='[ABCDGIRSTW]' ;;
6404esac
6405
6406if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6407  # Gets list of data symbols to import.
6408  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6409  # Adjust the below global symbol transforms to fixup imported variables.
6410  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6411  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6412  lt_c_name_lib_hook="\
6413  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6414  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6415else
6416  # Disable hooks by default.
6417  lt_cv_sys_global_symbol_to_import=
6418  lt_cdecl_hook=
6419  lt_c_name_hook=
6420  lt_c_name_lib_hook=
6421fi
6422
6423# Transform an extracted symbol line into a proper C declaration.
6424# Some systems (esp. on ia64) link data and code symbols differently,
6425# so use this general approach.
6426lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6427$lt_cdecl_hook\
6428" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6429" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6430
6431# Transform an extracted symbol line into symbol name and symbol address
6432lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6433$lt_c_name_hook\
6434" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6435" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6436
6437# Transform an extracted symbol line into symbol name with lib prefix and
6438# symbol address.
6439lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6440$lt_c_name_lib_hook\
6441" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6442" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6443" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6444
6445# Handle CRLF in mingw tool chain
6446opt_cr=
6447case $build_os in
6448mingw*)
6449  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6450  ;;
6451esac
6452
6453# Try without a prefix underscore, then with it.
6454for ac_symprfx in "" "_"; do
6455
6456  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6457  symxfrm="\\1 $ac_symprfx\\2 \\2"
6458
6459  # Write the raw and C identifiers.
6460  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6461    # Fake it for dumpbin and say T for any non-static function,
6462    # D for any global variable and I for any imported variable.
6463    # Also find C++ and __fastcall symbols from MSVC++,
6464    # which start with @ or ?.
6465    lt_cv_sys_global_symbol_pipe="$AWK '"\
6466"     {last_section=section; section=\$ 3};"\
6467"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6468"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6469"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6470"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6471"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6472"     \$ 0!~/External *\|/{next};"\
6473"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6474"     {if(hide[section]) next};"\
6475"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6476"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6477"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6478"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6479"     ' prfx=^$ac_symprfx"
6480  else
6481    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6482  fi
6483  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6484
6485  # Check to see that the pipe works correctly.
6486  pipe_works=no
6487
6488  rm -f conftest*
6489  cat > conftest.$ac_ext <<_LT_EOF
6490#ifdef __cplusplus
6491extern "C" {
6492#endif
6493char nm_test_var;
6494void nm_test_func(void);
6495void nm_test_func(void){}
6496#ifdef __cplusplus
6497}
6498#endif
6499int main(){nm_test_var='a';nm_test_func();return(0);}
6500_LT_EOF
6501
6502  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6503  (eval $ac_compile) 2>&5
6504  ac_status=$?
6505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506  test $ac_status = 0; }; then
6507    # Now try to grab the symbols.
6508    nlist=conftest.nm
6509    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6510  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6511  ac_status=$?
6512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6513  test $ac_status = 0; } && test -s "$nlist"; then
6514      # Try sorting and uniquifying the output.
6515      if sort "$nlist" | uniq > "$nlist"T; then
6516	mv -f "$nlist"T "$nlist"
6517      else
6518	rm -f "$nlist"T
6519      fi
6520
6521      # Make sure that we snagged all the symbols we need.
6522      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6523	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6524	  cat <<_LT_EOF > conftest.$ac_ext
6525/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6526#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6527/* DATA imports from DLLs on WIN32 can't be const, because runtime
6528   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6529# define LT_DLSYM_CONST
6530#elif defined __osf__
6531/* This system does not cope well with relocations in const data.  */
6532# define LT_DLSYM_CONST
6533#else
6534# define LT_DLSYM_CONST const
6535#endif
6536
6537#ifdef __cplusplus
6538extern "C" {
6539#endif
6540
6541_LT_EOF
6542	  # Now generate the symbol file.
6543	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6544
6545	  cat <<_LT_EOF >> conftest.$ac_ext
6546
6547/* The mapping between symbol names and symbols.  */
6548LT_DLSYM_CONST struct {
6549  const char *name;
6550  void       *address;
6551}
6552lt__PROGRAM__LTX_preloaded_symbols[] =
6553{
6554  { "@PROGRAM@", (void *) 0 },
6555_LT_EOF
6556	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6557	  cat <<\_LT_EOF >> conftest.$ac_ext
6558  {0, (void *) 0}
6559};
6560
6561/* This works around a problem in FreeBSD linker */
6562#ifdef FREEBSD_WORKAROUND
6563static const void *lt_preloaded_setup() {
6564  return lt__PROGRAM__LTX_preloaded_symbols;
6565}
6566#endif
6567
6568#ifdef __cplusplus
6569}
6570#endif
6571_LT_EOF
6572	  # Now try linking the two files.
6573	  mv conftest.$ac_objext conftstm.$ac_objext
6574	  lt_globsym_save_LIBS=$LIBS
6575	  lt_globsym_save_CFLAGS=$CFLAGS
6576	  LIBS=conftstm.$ac_objext
6577	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6578	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6579  (eval $ac_link) 2>&5
6580  ac_status=$?
6581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6582  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6583	    pipe_works=yes
6584	  fi
6585	  LIBS=$lt_globsym_save_LIBS
6586	  CFLAGS=$lt_globsym_save_CFLAGS
6587	else
6588	  echo "cannot find nm_test_func in $nlist" >&5
6589	fi
6590      else
6591	echo "cannot find nm_test_var in $nlist" >&5
6592      fi
6593    else
6594      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6595    fi
6596  else
6597    echo "$progname: failed program was:" >&5
6598    cat conftest.$ac_ext >&5
6599  fi
6600  rm -rf conftest* conftst*
6601
6602  # Do not use the global_symbol_pipe unless it works.
6603  if test yes = "$pipe_works"; then
6604    break
6605  else
6606    lt_cv_sys_global_symbol_pipe=
6607  fi
6608done
6609
6610fi
6611
6612if test -z "$lt_cv_sys_global_symbol_pipe"; then
6613  lt_cv_sys_global_symbol_to_cdecl=
6614fi
6615if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6617$as_echo "failed" >&6; }
6618else
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6620$as_echo "ok" >&6; }
6621fi
6622
6623# Response file support.
6624if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6625  nm_file_list_spec='@'
6626elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6627  nm_file_list_spec='@'
6628fi
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6667$as_echo_n "checking for sysroot... " >&6; }
6668
6669# Check whether --with-sysroot was given.
6670if test "${with_sysroot+set}" = set; then :
6671  withval=$with_sysroot;
6672else
6673  with_sysroot=no
6674fi
6675
6676
6677lt_sysroot=
6678case $with_sysroot in #(
6679 yes)
6680   if test yes = "$GCC"; then
6681     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6682   fi
6683   ;; #(
6684 /*)
6685   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6686   ;; #(
6687 no|'')
6688   ;; #(
6689 *)
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6691$as_echo "$with_sysroot" >&6; }
6692   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6693   ;;
6694esac
6695
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6697$as_echo "${lt_sysroot:-no}" >&6; }
6698
6699
6700
6701
6702
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6704$as_echo_n "checking for a working dd... " >&6; }
6705if ${ac_cv_path_lt_DD+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  printf 0123456789abcdef0123456789abcdef >conftest.i
6709cat conftest.i conftest.i >conftest2.i
6710: ${lt_DD:=$DD}
6711if test -z "$lt_DD"; then
6712  ac_path_lt_DD_found=false
6713  # Loop through the user's path and test for each of PROGNAME-LIST
6714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717  IFS=$as_save_IFS
6718  test -z "$as_dir" && as_dir=.
6719    for ac_prog in dd; do
6720    for ac_exec_ext in '' $ac_executable_extensions; do
6721      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6722      as_fn_executable_p "$ac_path_lt_DD" || continue
6723if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6724  cmp -s conftest.i conftest.out \
6725  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6726fi
6727      $ac_path_lt_DD_found && break 3
6728    done
6729  done
6730  done
6731IFS=$as_save_IFS
6732  if test -z "$ac_cv_path_lt_DD"; then
6733    :
6734  fi
6735else
6736  ac_cv_path_lt_DD=$lt_DD
6737fi
6738
6739rm -f conftest.i conftest2.i conftest.out
6740fi
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6742$as_echo "$ac_cv_path_lt_DD" >&6; }
6743
6744
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6746$as_echo_n "checking how to truncate binary pipes... " >&6; }
6747if ${lt_cv_truncate_bin+:} false; then :
6748  $as_echo_n "(cached) " >&6
6749else
6750  printf 0123456789abcdef0123456789abcdef >conftest.i
6751cat conftest.i conftest.i >conftest2.i
6752lt_cv_truncate_bin=
6753if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6754  cmp -s conftest.i conftest.out \
6755  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6756fi
6757rm -f conftest.i conftest2.i conftest.out
6758test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6759fi
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6761$as_echo "$lt_cv_truncate_bin" >&6; }
6762
6763
6764
6765
6766
6767
6768
6769# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6770func_cc_basename ()
6771{
6772    for cc_temp in $*""; do
6773      case $cc_temp in
6774        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6775        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6776        \-*) ;;
6777        *) break;;
6778      esac
6779    done
6780    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6781}
6782
6783# Check whether --enable-libtool-lock was given.
6784if test "${enable_libtool_lock+set}" = set; then :
6785  enableval=$enable_libtool_lock;
6786fi
6787
6788test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6789
6790# Some flags need to be propagated to the compiler or linker for good
6791# libtool support.
6792case $host in
6793ia64-*-hpux*)
6794  # Find out what ABI is being produced by ac_compile, and set mode
6795  # options accordingly.
6796  echo 'int i;' > conftest.$ac_ext
6797  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6798  (eval $ac_compile) 2>&5
6799  ac_status=$?
6800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6801  test $ac_status = 0; }; then
6802    case `/usr/bin/file conftest.$ac_objext` in
6803      *ELF-32*)
6804	HPUX_IA64_MODE=32
6805	;;
6806      *ELF-64*)
6807	HPUX_IA64_MODE=64
6808	;;
6809    esac
6810  fi
6811  rm -rf conftest*
6812  ;;
6813*-*-irix6*)
6814  # Find out what ABI is being produced by ac_compile, and set linker
6815  # options accordingly.
6816  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6817  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6818  (eval $ac_compile) 2>&5
6819  ac_status=$?
6820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821  test $ac_status = 0; }; then
6822    if test yes = "$lt_cv_prog_gnu_ld"; then
6823      case `/usr/bin/file conftest.$ac_objext` in
6824	*32-bit*)
6825	  LD="${LD-ld} -melf32bsmip"
6826	  ;;
6827	*N32*)
6828	  LD="${LD-ld} -melf32bmipn32"
6829	  ;;
6830	*64-bit*)
6831	  LD="${LD-ld} -melf64bmip"
6832	;;
6833      esac
6834    else
6835      case `/usr/bin/file conftest.$ac_objext` in
6836	*32-bit*)
6837	  LD="${LD-ld} -32"
6838	  ;;
6839	*N32*)
6840	  LD="${LD-ld} -n32"
6841	  ;;
6842	*64-bit*)
6843	  LD="${LD-ld} -64"
6844	  ;;
6845      esac
6846    fi
6847  fi
6848  rm -rf conftest*
6849  ;;
6850
6851mips64*-*linux*)
6852  # Find out what ABI is being produced by ac_compile, and set linker
6853  # options accordingly.
6854  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6855  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6856  (eval $ac_compile) 2>&5
6857  ac_status=$?
6858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859  test $ac_status = 0; }; then
6860    emul=elf
6861    case `/usr/bin/file conftest.$ac_objext` in
6862      *32-bit*)
6863	emul="${emul}32"
6864	;;
6865      *64-bit*)
6866	emul="${emul}64"
6867	;;
6868    esac
6869    case `/usr/bin/file conftest.$ac_objext` in
6870      *MSB*)
6871	emul="${emul}btsmip"
6872	;;
6873      *LSB*)
6874	emul="${emul}ltsmip"
6875	;;
6876    esac
6877    case `/usr/bin/file conftest.$ac_objext` in
6878      *N32*)
6879	emul="${emul}n32"
6880	;;
6881    esac
6882    LD="${LD-ld} -m $emul"
6883  fi
6884  rm -rf conftest*
6885  ;;
6886
6887x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6888s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6889  # Find out what ABI is being produced by ac_compile, and set linker
6890  # options accordingly.  Note that the listed cases only cover the
6891  # situations where additional linker options are needed (such as when
6892  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6893  # vice versa); the common cases where no linker options are needed do
6894  # not appear in the list.
6895  echo 'int i;' > conftest.$ac_ext
6896  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897  (eval $ac_compile) 2>&5
6898  ac_status=$?
6899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900  test $ac_status = 0; }; then
6901    case `/usr/bin/file conftest.o` in
6902      *32-bit*)
6903	case $host in
6904	  x86_64-*kfreebsd*-gnu)
6905	    LD="${LD-ld} -m elf_i386_fbsd"
6906	    ;;
6907	  x86_64-*linux*)
6908	    case `/usr/bin/file conftest.o` in
6909	      *x86-64*)
6910		LD="${LD-ld} -m elf32_x86_64"
6911		;;
6912	      *)
6913		LD="${LD-ld} -m elf_i386"
6914		;;
6915	    esac
6916	    ;;
6917	  powerpc64le-*linux*)
6918	    LD="${LD-ld} -m elf32lppclinux"
6919	    ;;
6920	  powerpc64-*linux*)
6921	    LD="${LD-ld} -m elf32ppclinux"
6922	    ;;
6923	  s390x-*linux*)
6924	    LD="${LD-ld} -m elf_s390"
6925	    ;;
6926	  sparc64-*linux*)
6927	    LD="${LD-ld} -m elf32_sparc"
6928	    ;;
6929	esac
6930	;;
6931      *64-bit*)
6932	case $host in
6933	  x86_64-*kfreebsd*-gnu)
6934	    LD="${LD-ld} -m elf_x86_64_fbsd"
6935	    ;;
6936	  x86_64-*linux*)
6937	    LD="${LD-ld} -m elf_x86_64"
6938	    ;;
6939	  powerpcle-*linux*)
6940	    LD="${LD-ld} -m elf64lppc"
6941	    ;;
6942	  powerpc-*linux*)
6943	    LD="${LD-ld} -m elf64ppc"
6944	    ;;
6945	  s390*-*linux*|s390*-*tpf*)
6946	    LD="${LD-ld} -m elf64_s390"
6947	    ;;
6948	  sparc*-*linux*)
6949	    LD="${LD-ld} -m elf64_sparc"
6950	    ;;
6951	esac
6952	;;
6953    esac
6954  fi
6955  rm -rf conftest*
6956  ;;
6957
6958*-*-sco3.2v5*)
6959  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6960  SAVE_CFLAGS=$CFLAGS
6961  CFLAGS="$CFLAGS -belf"
6962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6963$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6964if ${lt_cv_cc_needs_belf+:} false; then :
6965  $as_echo_n "(cached) " >&6
6966else
6967  ac_ext=c
6968ac_cpp='$CPP $CPPFLAGS'
6969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972
6973     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975
6976int
6977main ()
6978{
6979
6980  ;
6981  return 0;
6982}
6983_ACEOF
6984if ac_fn_c_try_link "$LINENO"; then :
6985  lt_cv_cc_needs_belf=yes
6986else
6987  lt_cv_cc_needs_belf=no
6988fi
6989rm -f core conftest.err conftest.$ac_objext \
6990    conftest$ac_exeext conftest.$ac_ext
6991     ac_ext=c
6992ac_cpp='$CPP $CPPFLAGS'
6993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995ac_compiler_gnu=$ac_cv_c_compiler_gnu
6996
6997fi
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6999$as_echo "$lt_cv_cc_needs_belf" >&6; }
7000  if test yes != "$lt_cv_cc_needs_belf"; then
7001    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7002    CFLAGS=$SAVE_CFLAGS
7003  fi
7004  ;;
7005*-*solaris*)
7006  # Find out what ABI is being produced by ac_compile, and set linker
7007  # options accordingly.
7008  echo 'int i;' > conftest.$ac_ext
7009  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7010  (eval $ac_compile) 2>&5
7011  ac_status=$?
7012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013  test $ac_status = 0; }; then
7014    case `/usr/bin/file conftest.o` in
7015    *64-bit*)
7016      case $lt_cv_prog_gnu_ld in
7017      yes*)
7018        case $host in
7019        i?86-*-solaris*|x86_64-*-solaris*)
7020          LD="${LD-ld} -m elf_x86_64"
7021          ;;
7022        sparc*-*-solaris*)
7023          LD="${LD-ld} -m elf64_sparc"
7024          ;;
7025        esac
7026        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7027        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7028          LD=${LD-ld}_sol2
7029        fi
7030        ;;
7031      *)
7032	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7033	  LD="${LD-ld} -64"
7034	fi
7035	;;
7036      esac
7037      ;;
7038    esac
7039  fi
7040  rm -rf conftest*
7041  ;;
7042esac
7043
7044need_locks=$enable_libtool_lock
7045
7046if test -n "$ac_tool_prefix"; then
7047  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7048set dummy ${ac_tool_prefix}mt; ac_word=$2
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050$as_echo_n "checking for $ac_word... " >&6; }
7051if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7052  $as_echo_n "(cached) " >&6
7053else
7054  if test -n "$MANIFEST_TOOL"; then
7055  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7056else
7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060  IFS=$as_save_IFS
7061  test -z "$as_dir" && as_dir=.
7062    for ac_exec_ext in '' $ac_executable_extensions; do
7063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066    break 2
7067  fi
7068done
7069  done
7070IFS=$as_save_IFS
7071
7072fi
7073fi
7074MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7075if test -n "$MANIFEST_TOOL"; then
7076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7077$as_echo "$MANIFEST_TOOL" >&6; }
7078else
7079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080$as_echo "no" >&6; }
7081fi
7082
7083
7084fi
7085if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7086  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7087  # Extract the first word of "mt", so it can be a program name with args.
7088set dummy mt; ac_word=$2
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090$as_echo_n "checking for $ac_word... " >&6; }
7091if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7092  $as_echo_n "(cached) " >&6
7093else
7094  if test -n "$ac_ct_MANIFEST_TOOL"; then
7095  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100  IFS=$as_save_IFS
7101  test -z "$as_dir" && as_dir=.
7102    for ac_exec_ext in '' $ac_executable_extensions; do
7103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106    break 2
7107  fi
7108done
7109  done
7110IFS=$as_save_IFS
7111
7112fi
7113fi
7114ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7115if test -n "$ac_ct_MANIFEST_TOOL"; then
7116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7117$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7118else
7119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120$as_echo "no" >&6; }
7121fi
7122
7123  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7124    MANIFEST_TOOL=":"
7125  else
7126    case $cross_compiling:$ac_tool_warned in
7127yes:)
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7130ac_tool_warned=yes ;;
7131esac
7132    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7133  fi
7134else
7135  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7136fi
7137
7138test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7140$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7141if ${lt_cv_path_mainfest_tool+:} false; then :
7142  $as_echo_n "(cached) " >&6
7143else
7144  lt_cv_path_mainfest_tool=no
7145  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7146  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7147  cat conftest.err >&5
7148  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7149    lt_cv_path_mainfest_tool=yes
7150  fi
7151  rm -f conftest*
7152fi
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7154$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7155if test yes != "$lt_cv_path_mainfest_tool"; then
7156  MANIFEST_TOOL=:
7157fi
7158
7159
7160
7161
7162
7163
7164  case $host_os in
7165    rhapsody* | darwin*)
7166    if test -n "$ac_tool_prefix"; then
7167  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7168set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170$as_echo_n "checking for $ac_word... " >&6; }
7171if ${ac_cv_prog_DSYMUTIL+:} false; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174  if test -n "$DSYMUTIL"; then
7175  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7176else
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180  IFS=$as_save_IFS
7181  test -z "$as_dir" && as_dir=.
7182    for ac_exec_ext in '' $ac_executable_extensions; do
7183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186    break 2
7187  fi
7188done
7189  done
7190IFS=$as_save_IFS
7191
7192fi
7193fi
7194DSYMUTIL=$ac_cv_prog_DSYMUTIL
7195if test -n "$DSYMUTIL"; then
7196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7197$as_echo "$DSYMUTIL" >&6; }
7198else
7199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200$as_echo "no" >&6; }
7201fi
7202
7203
7204fi
7205if test -z "$ac_cv_prog_DSYMUTIL"; then
7206  ac_ct_DSYMUTIL=$DSYMUTIL
7207  # Extract the first word of "dsymutil", so it can be a program name with args.
7208set dummy dsymutil; ac_word=$2
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210$as_echo_n "checking for $ac_word... " >&6; }
7211if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  if test -n "$ac_ct_DSYMUTIL"; then
7215  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7216else
7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220  IFS=$as_save_IFS
7221  test -z "$as_dir" && as_dir=.
7222    for ac_exec_ext in '' $ac_executable_extensions; do
7223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226    break 2
7227  fi
7228done
7229  done
7230IFS=$as_save_IFS
7231
7232fi
7233fi
7234ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7235if test -n "$ac_ct_DSYMUTIL"; then
7236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7237$as_echo "$ac_ct_DSYMUTIL" >&6; }
7238else
7239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240$as_echo "no" >&6; }
7241fi
7242
7243  if test "x$ac_ct_DSYMUTIL" = x; then
7244    DSYMUTIL=":"
7245  else
7246    case $cross_compiling:$ac_tool_warned in
7247yes:)
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250ac_tool_warned=yes ;;
7251esac
7252    DSYMUTIL=$ac_ct_DSYMUTIL
7253  fi
7254else
7255  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7256fi
7257
7258    if test -n "$ac_tool_prefix"; then
7259  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7260set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262$as_echo_n "checking for $ac_word... " >&6; }
7263if ${ac_cv_prog_NMEDIT+:} false; then :
7264  $as_echo_n "(cached) " >&6
7265else
7266  if test -n "$NMEDIT"; then
7267  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7268else
7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272  IFS=$as_save_IFS
7273  test -z "$as_dir" && as_dir=.
7274    for ac_exec_ext in '' $ac_executable_extensions; do
7275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278    break 2
7279  fi
7280done
7281  done
7282IFS=$as_save_IFS
7283
7284fi
7285fi
7286NMEDIT=$ac_cv_prog_NMEDIT
7287if test -n "$NMEDIT"; then
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7289$as_echo "$NMEDIT" >&6; }
7290else
7291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292$as_echo "no" >&6; }
7293fi
7294
7295
7296fi
7297if test -z "$ac_cv_prog_NMEDIT"; then
7298  ac_ct_NMEDIT=$NMEDIT
7299  # Extract the first word of "nmedit", so it can be a program name with args.
7300set dummy nmedit; ac_word=$2
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302$as_echo_n "checking for $ac_word... " >&6; }
7303if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7304  $as_echo_n "(cached) " >&6
7305else
7306  if test -n "$ac_ct_NMEDIT"; then
7307  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7308else
7309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312  IFS=$as_save_IFS
7313  test -z "$as_dir" && as_dir=.
7314    for ac_exec_ext in '' $ac_executable_extensions; do
7315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318    break 2
7319  fi
7320done
7321  done
7322IFS=$as_save_IFS
7323
7324fi
7325fi
7326ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7327if test -n "$ac_ct_NMEDIT"; then
7328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7329$as_echo "$ac_ct_NMEDIT" >&6; }
7330else
7331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332$as_echo "no" >&6; }
7333fi
7334
7335  if test "x$ac_ct_NMEDIT" = x; then
7336    NMEDIT=":"
7337  else
7338    case $cross_compiling:$ac_tool_warned in
7339yes:)
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7342ac_tool_warned=yes ;;
7343esac
7344    NMEDIT=$ac_ct_NMEDIT
7345  fi
7346else
7347  NMEDIT="$ac_cv_prog_NMEDIT"
7348fi
7349
7350    if test -n "$ac_tool_prefix"; then
7351  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7352set dummy ${ac_tool_prefix}lipo; ac_word=$2
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354$as_echo_n "checking for $ac_word... " >&6; }
7355if ${ac_cv_prog_LIPO+:} false; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358  if test -n "$LIPO"; then
7359  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364  IFS=$as_save_IFS
7365  test -z "$as_dir" && as_dir=.
7366    for ac_exec_ext in '' $ac_executable_extensions; do
7367  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370    break 2
7371  fi
7372done
7373  done
7374IFS=$as_save_IFS
7375
7376fi
7377fi
7378LIPO=$ac_cv_prog_LIPO
7379if test -n "$LIPO"; then
7380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7381$as_echo "$LIPO" >&6; }
7382else
7383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384$as_echo "no" >&6; }
7385fi
7386
7387
7388fi
7389if test -z "$ac_cv_prog_LIPO"; then
7390  ac_ct_LIPO=$LIPO
7391  # Extract the first word of "lipo", so it can be a program name with args.
7392set dummy lipo; ac_word=$2
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394$as_echo_n "checking for $ac_word... " >&6; }
7395if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7396  $as_echo_n "(cached) " >&6
7397else
7398  if test -n "$ac_ct_LIPO"; then
7399  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7400else
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404  IFS=$as_save_IFS
7405  test -z "$as_dir" && as_dir=.
7406    for ac_exec_ext in '' $ac_executable_extensions; do
7407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408    ac_cv_prog_ac_ct_LIPO="lipo"
7409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410    break 2
7411  fi
7412done
7413  done
7414IFS=$as_save_IFS
7415
7416fi
7417fi
7418ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7419if test -n "$ac_ct_LIPO"; then
7420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7421$as_echo "$ac_ct_LIPO" >&6; }
7422else
7423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424$as_echo "no" >&6; }
7425fi
7426
7427  if test "x$ac_ct_LIPO" = x; then
7428    LIPO=":"
7429  else
7430    case $cross_compiling:$ac_tool_warned in
7431yes:)
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7434ac_tool_warned=yes ;;
7435esac
7436    LIPO=$ac_ct_LIPO
7437  fi
7438else
7439  LIPO="$ac_cv_prog_LIPO"
7440fi
7441
7442    if test -n "$ac_tool_prefix"; then
7443  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7444set dummy ${ac_tool_prefix}otool; ac_word=$2
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446$as_echo_n "checking for $ac_word... " >&6; }
7447if ${ac_cv_prog_OTOOL+:} false; then :
7448  $as_echo_n "(cached) " >&6
7449else
7450  if test -n "$OTOOL"; then
7451  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7452else
7453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456  IFS=$as_save_IFS
7457  test -z "$as_dir" && as_dir=.
7458    for ac_exec_ext in '' $ac_executable_extensions; do
7459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462    break 2
7463  fi
7464done
7465  done
7466IFS=$as_save_IFS
7467
7468fi
7469fi
7470OTOOL=$ac_cv_prog_OTOOL
7471if test -n "$OTOOL"; then
7472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7473$as_echo "$OTOOL" >&6; }
7474else
7475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476$as_echo "no" >&6; }
7477fi
7478
7479
7480fi
7481if test -z "$ac_cv_prog_OTOOL"; then
7482  ac_ct_OTOOL=$OTOOL
7483  # Extract the first word of "otool", so it can be a program name with args.
7484set dummy otool; ac_word=$2
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486$as_echo_n "checking for $ac_word... " >&6; }
7487if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7488  $as_echo_n "(cached) " >&6
7489else
7490  if test -n "$ac_ct_OTOOL"; then
7491  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7492else
7493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494for as_dir in $PATH
7495do
7496  IFS=$as_save_IFS
7497  test -z "$as_dir" && as_dir=.
7498    for ac_exec_ext in '' $ac_executable_extensions; do
7499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500    ac_cv_prog_ac_ct_OTOOL="otool"
7501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502    break 2
7503  fi
7504done
7505  done
7506IFS=$as_save_IFS
7507
7508fi
7509fi
7510ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7511if test -n "$ac_ct_OTOOL"; then
7512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7513$as_echo "$ac_ct_OTOOL" >&6; }
7514else
7515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516$as_echo "no" >&6; }
7517fi
7518
7519  if test "x$ac_ct_OTOOL" = x; then
7520    OTOOL=":"
7521  else
7522    case $cross_compiling:$ac_tool_warned in
7523yes:)
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7526ac_tool_warned=yes ;;
7527esac
7528    OTOOL=$ac_ct_OTOOL
7529  fi
7530else
7531  OTOOL="$ac_cv_prog_OTOOL"
7532fi
7533
7534    if test -n "$ac_tool_prefix"; then
7535  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7536set dummy ${ac_tool_prefix}otool64; ac_word=$2
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538$as_echo_n "checking for $ac_word... " >&6; }
7539if ${ac_cv_prog_OTOOL64+:} false; then :
7540  $as_echo_n "(cached) " >&6
7541else
7542  if test -n "$OTOOL64"; then
7543  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7544else
7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548  IFS=$as_save_IFS
7549  test -z "$as_dir" && as_dir=.
7550    for ac_exec_ext in '' $ac_executable_extensions; do
7551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554    break 2
7555  fi
7556done
7557  done
7558IFS=$as_save_IFS
7559
7560fi
7561fi
7562OTOOL64=$ac_cv_prog_OTOOL64
7563if test -n "$OTOOL64"; then
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7565$as_echo "$OTOOL64" >&6; }
7566else
7567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568$as_echo "no" >&6; }
7569fi
7570
7571
7572fi
7573if test -z "$ac_cv_prog_OTOOL64"; then
7574  ac_ct_OTOOL64=$OTOOL64
7575  # Extract the first word of "otool64", so it can be a program name with args.
7576set dummy otool64; ac_word=$2
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578$as_echo_n "checking for $ac_word... " >&6; }
7579if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7580  $as_echo_n "(cached) " >&6
7581else
7582  if test -n "$ac_ct_OTOOL64"; then
7583  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7584else
7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588  IFS=$as_save_IFS
7589  test -z "$as_dir" && as_dir=.
7590    for ac_exec_ext in '' $ac_executable_extensions; do
7591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592    ac_cv_prog_ac_ct_OTOOL64="otool64"
7593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594    break 2
7595  fi
7596done
7597  done
7598IFS=$as_save_IFS
7599
7600fi
7601fi
7602ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7603if test -n "$ac_ct_OTOOL64"; then
7604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7605$as_echo "$ac_ct_OTOOL64" >&6; }
7606else
7607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608$as_echo "no" >&6; }
7609fi
7610
7611  if test "x$ac_ct_OTOOL64" = x; then
7612    OTOOL64=":"
7613  else
7614    case $cross_compiling:$ac_tool_warned in
7615yes:)
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7618ac_tool_warned=yes ;;
7619esac
7620    OTOOL64=$ac_ct_OTOOL64
7621  fi
7622else
7623  OTOOL64="$ac_cv_prog_OTOOL64"
7624fi
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7653$as_echo_n "checking for -single_module linker flag... " >&6; }
7654if ${lt_cv_apple_cc_single_mod+:} false; then :
7655  $as_echo_n "(cached) " >&6
7656else
7657  lt_cv_apple_cc_single_mod=no
7658      if test -z "$LT_MULTI_MODULE"; then
7659	# By default we will add the -single_module flag. You can override
7660	# by either setting the environment variable LT_MULTI_MODULE
7661	# non-empty at configure time, or by adding -multi_module to the
7662	# link flags.
7663	rm -rf libconftest.dylib*
7664	echo "int foo(void){return 1;}" > conftest.c
7665	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7666-dynamiclib -Wl,-single_module conftest.c" >&5
7667	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7668	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7669        _lt_result=$?
7670	# If there is a non-empty error log, and "single_module"
7671	# appears in it, assume the flag caused a linker warning
7672        if test -s conftest.err && $GREP single_module conftest.err; then
7673	  cat conftest.err >&5
7674	# Otherwise, if the output was created with a 0 exit code from
7675	# the compiler, it worked.
7676	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7677	  lt_cv_apple_cc_single_mod=yes
7678	else
7679	  cat conftest.err >&5
7680	fi
7681	rm -rf libconftest.dylib*
7682	rm -f conftest.*
7683      fi
7684fi
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7686$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7687
7688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7689$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7690if ${lt_cv_ld_exported_symbols_list+:} false; then :
7691  $as_echo_n "(cached) " >&6
7692else
7693  lt_cv_ld_exported_symbols_list=no
7694      save_LDFLAGS=$LDFLAGS
7695      echo "_main" > conftest.sym
7696      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7697      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h.  */
7699
7700int
7701main ()
7702{
7703
7704  ;
7705  return 0;
7706}
7707_ACEOF
7708if ac_fn_c_try_link "$LINENO"; then :
7709  lt_cv_ld_exported_symbols_list=yes
7710else
7711  lt_cv_ld_exported_symbols_list=no
7712fi
7713rm -f core conftest.err conftest.$ac_objext \
7714    conftest$ac_exeext conftest.$ac_ext
7715	LDFLAGS=$save_LDFLAGS
7716
7717fi
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7719$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7720
7721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7722$as_echo_n "checking for -force_load linker flag... " >&6; }
7723if ${lt_cv_ld_force_load+:} false; then :
7724  $as_echo_n "(cached) " >&6
7725else
7726  lt_cv_ld_force_load=no
7727      cat > conftest.c << _LT_EOF
7728int forced_loaded() { return 2;}
7729_LT_EOF
7730      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7731      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7732      echo "$AR cru libconftest.a conftest.o" >&5
7733      $AR cru libconftest.a conftest.o 2>&5
7734      echo "$RANLIB libconftest.a" >&5
7735      $RANLIB libconftest.a 2>&5
7736      cat > conftest.c << _LT_EOF
7737int main() { return 0;}
7738_LT_EOF
7739      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7740      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7741      _lt_result=$?
7742      if test -s conftest.err && $GREP force_load conftest.err; then
7743	cat conftest.err >&5
7744      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7745	lt_cv_ld_force_load=yes
7746      else
7747	cat conftest.err >&5
7748      fi
7749        rm -f conftest.err libconftest.a conftest conftest.c
7750        rm -rf conftest.dSYM
7751
7752fi
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7754$as_echo "$lt_cv_ld_force_load" >&6; }
7755    case $host_os in
7756    rhapsody* | darwin1.[012])
7757      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7758    darwin1.*)
7759      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7760    darwin*) # darwin 5.x on
7761      # if running on 10.5 or later, the deployment target defaults
7762      # to the OS version, if on x86, and 10.4, the deployment
7763      # target defaults to 10.4. Don't you love it?
7764      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7765	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7766	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7767	10.[012][,.]*)
7768	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7769	10.*)
7770	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7771      esac
7772    ;;
7773  esac
7774    if test yes = "$lt_cv_apple_cc_single_mod"; then
7775      _lt_dar_single_mod='$single_module'
7776    fi
7777    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7778      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7779    else
7780      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7781    fi
7782    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7783      _lt_dsymutil='~$DSYMUTIL $lib || :'
7784    else
7785      _lt_dsymutil=
7786    fi
7787    ;;
7788  esac
7789
7790# func_munge_path_list VARIABLE PATH
7791# -----------------------------------
7792# VARIABLE is name of variable containing _space_ separated list of
7793# directories to be munged by the contents of PATH, which is string
7794# having a format:
7795# "DIR[:DIR]:"
7796#       string "DIR[ DIR]" will be prepended to VARIABLE
7797# ":DIR[:DIR]"
7798#       string "DIR[ DIR]" will be appended to VARIABLE
7799# "DIRP[:DIRP]::[DIRA:]DIRA"
7800#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7801#       "DIRA[ DIRA]" will be appended to VARIABLE
7802# "DIR[:DIR]"
7803#       VARIABLE will be replaced by "DIR[ DIR]"
7804func_munge_path_list ()
7805{
7806    case x$2 in
7807    x)
7808        ;;
7809    *:)
7810        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7811        ;;
7812    x:*)
7813        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7814        ;;
7815    *::*)
7816        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7817        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7818        ;;
7819    *)
7820        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7821        ;;
7822    esac
7823}
7824
7825ac_ext=c
7826ac_cpp='$CPP $CPPFLAGS'
7827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829ac_compiler_gnu=$ac_cv_c_compiler_gnu
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7831$as_echo_n "checking how to run the C preprocessor... " >&6; }
7832# On Suns, sometimes $CPP names a directory.
7833if test -n "$CPP" && test -d "$CPP"; then
7834  CPP=
7835fi
7836if test -z "$CPP"; then
7837  if ${ac_cv_prog_CPP+:} false; then :
7838  $as_echo_n "(cached) " >&6
7839else
7840      # Double quotes because CPP needs to be expanded
7841    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7842    do
7843      ac_preproc_ok=false
7844for ac_c_preproc_warn_flag in '' yes
7845do
7846  # Use a header file that comes with gcc, so configuring glibc
7847  # with a fresh cross-compiler works.
7848  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7849  # <limits.h> exists even on freestanding compilers.
7850  # On the NeXT, cc -E runs the code through the compiler's parser,
7851  # not just through cpp. "Syntax error" is here to catch this case.
7852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h.  */
7854#ifdef __STDC__
7855# include <limits.h>
7856#else
7857# include <assert.h>
7858#endif
7859		     Syntax error
7860_ACEOF
7861if ac_fn_c_try_cpp "$LINENO"; then :
7862
7863else
7864  # Broken: fails on valid input.
7865continue
7866fi
7867rm -f conftest.err conftest.i conftest.$ac_ext
7868
7869  # OK, works on sane cases.  Now check whether nonexistent headers
7870  # can be detected and how.
7871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872/* end confdefs.h.  */
7873#include <ac_nonexistent.h>
7874_ACEOF
7875if ac_fn_c_try_cpp "$LINENO"; then :
7876  # Broken: success on invalid input.
7877continue
7878else
7879  # Passes both tests.
7880ac_preproc_ok=:
7881break
7882fi
7883rm -f conftest.err conftest.i conftest.$ac_ext
7884
7885done
7886# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7887rm -f conftest.i conftest.err conftest.$ac_ext
7888if $ac_preproc_ok; then :
7889  break
7890fi
7891
7892    done
7893    ac_cv_prog_CPP=$CPP
7894
7895fi
7896  CPP=$ac_cv_prog_CPP
7897else
7898  ac_cv_prog_CPP=$CPP
7899fi
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7901$as_echo "$CPP" >&6; }
7902ac_preproc_ok=false
7903for ac_c_preproc_warn_flag in '' yes
7904do
7905  # Use a header file that comes with gcc, so configuring glibc
7906  # with a fresh cross-compiler works.
7907  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7908  # <limits.h> exists even on freestanding compilers.
7909  # On the NeXT, cc -E runs the code through the compiler's parser,
7910  # not just through cpp. "Syntax error" is here to catch this case.
7911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h.  */
7913#ifdef __STDC__
7914# include <limits.h>
7915#else
7916# include <assert.h>
7917#endif
7918		     Syntax error
7919_ACEOF
7920if ac_fn_c_try_cpp "$LINENO"; then :
7921
7922else
7923  # Broken: fails on valid input.
7924continue
7925fi
7926rm -f conftest.err conftest.i conftest.$ac_ext
7927
7928  # OK, works on sane cases.  Now check whether nonexistent headers
7929  # can be detected and how.
7930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931/* end confdefs.h.  */
7932#include <ac_nonexistent.h>
7933_ACEOF
7934if ac_fn_c_try_cpp "$LINENO"; then :
7935  # Broken: success on invalid input.
7936continue
7937else
7938  # Passes both tests.
7939ac_preproc_ok=:
7940break
7941fi
7942rm -f conftest.err conftest.i conftest.$ac_ext
7943
7944done
7945# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7946rm -f conftest.i conftest.err conftest.$ac_ext
7947if $ac_preproc_ok; then :
7948
7949else
7950  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7951$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7952as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7953See \`config.log' for more details" "$LINENO" 5; }
7954fi
7955
7956ac_ext=c
7957ac_cpp='$CPP $CPPFLAGS'
7958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7960ac_compiler_gnu=$ac_cv_c_compiler_gnu
7961
7962
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7964$as_echo_n "checking for ANSI C header files... " >&6; }
7965if ${ac_cv_header_stdc+:} false; then :
7966  $as_echo_n "(cached) " >&6
7967else
7968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969/* end confdefs.h.  */
7970#include <stdlib.h>
7971#include <stdarg.h>
7972#include <string.h>
7973#include <float.h>
7974
7975int
7976main ()
7977{
7978
7979  ;
7980  return 0;
7981}
7982_ACEOF
7983if ac_fn_c_try_compile "$LINENO"; then :
7984  ac_cv_header_stdc=yes
7985else
7986  ac_cv_header_stdc=no
7987fi
7988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989
7990if test $ac_cv_header_stdc = yes; then
7991  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993/* end confdefs.h.  */
7994#include <string.h>
7995
7996_ACEOF
7997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7998  $EGREP "memchr" >/dev/null 2>&1; then :
7999
8000else
8001  ac_cv_header_stdc=no
8002fi
8003rm -f conftest*
8004
8005fi
8006
8007if test $ac_cv_header_stdc = yes; then
8008  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010/* end confdefs.h.  */
8011#include <stdlib.h>
8012
8013_ACEOF
8014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8015  $EGREP "free" >/dev/null 2>&1; then :
8016
8017else
8018  ac_cv_header_stdc=no
8019fi
8020rm -f conftest*
8021
8022fi
8023
8024if test $ac_cv_header_stdc = yes; then
8025  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8026  if test "$cross_compiling" = yes; then :
8027  :
8028else
8029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030/* end confdefs.h.  */
8031#include <ctype.h>
8032#include <stdlib.h>
8033#if ((' ' & 0x0FF) == 0x020)
8034# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8035# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8036#else
8037# define ISLOWER(c) \
8038		   (('a' <= (c) && (c) <= 'i') \
8039		     || ('j' <= (c) && (c) <= 'r') \
8040		     || ('s' <= (c) && (c) <= 'z'))
8041# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8042#endif
8043
8044#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8045int
8046main ()
8047{
8048  int i;
8049  for (i = 0; i < 256; i++)
8050    if (XOR (islower (i), ISLOWER (i))
8051	|| toupper (i) != TOUPPER (i))
8052      return 2;
8053  return 0;
8054}
8055_ACEOF
8056if ac_fn_c_try_run "$LINENO"; then :
8057
8058else
8059  ac_cv_header_stdc=no
8060fi
8061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8062  conftest.$ac_objext conftest.beam conftest.$ac_ext
8063fi
8064
8065fi
8066fi
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8068$as_echo "$ac_cv_header_stdc" >&6; }
8069if test $ac_cv_header_stdc = yes; then
8070
8071$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8072
8073fi
8074
8075# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8076for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8077		  inttypes.h stdint.h unistd.h
8078do :
8079  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8080ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8081"
8082if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8083  cat >>confdefs.h <<_ACEOF
8084#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8085_ACEOF
8086
8087fi
8088
8089done
8090
8091
8092for ac_header in dlfcn.h
8093do :
8094  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8095"
8096if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8097  cat >>confdefs.h <<_ACEOF
8098#define HAVE_DLFCN_H 1
8099_ACEOF
8100
8101fi
8102
8103done
8104
8105
8106
8107
8108
8109# Set options
8110# Check whether --enable-static was given.
8111if test "${enable_static+set}" = set; then :
8112  enableval=$enable_static; p=${PACKAGE-default}
8113    case $enableval in
8114    yes) enable_static=yes ;;
8115    no) enable_static=no ;;
8116    *)
8117     enable_static=no
8118      # Look at the argument we got.  We use all the common list separators.
8119      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8120      for pkg in $enableval; do
8121	IFS=$lt_save_ifs
8122	if test "X$pkg" = "X$p"; then
8123	  enable_static=yes
8124	fi
8125      done
8126      IFS=$lt_save_ifs
8127      ;;
8128    esac
8129else
8130  enable_static=no
8131fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142        enable_dlopen=no
8143
8144
8145  enable_win32_dll=no
8146
8147
8148            # Check whether --enable-shared was given.
8149if test "${enable_shared+set}" = set; then :
8150  enableval=$enable_shared; p=${PACKAGE-default}
8151    case $enableval in
8152    yes) enable_shared=yes ;;
8153    no) enable_shared=no ;;
8154    *)
8155      enable_shared=no
8156      # Look at the argument we got.  We use all the common list separators.
8157      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8158      for pkg in $enableval; do
8159	IFS=$lt_save_ifs
8160	if test "X$pkg" = "X$p"; then
8161	  enable_shared=yes
8162	fi
8163      done
8164      IFS=$lt_save_ifs
8165      ;;
8166    esac
8167else
8168  enable_shared=yes
8169fi
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181# Check whether --with-pic was given.
8182if test "${with_pic+set}" = set; then :
8183  withval=$with_pic; lt_p=${PACKAGE-default}
8184    case $withval in
8185    yes|no) pic_mode=$withval ;;
8186    *)
8187      pic_mode=default
8188      # Look at the argument we got.  We use all the common list separators.
8189      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8190      for lt_pkg in $withval; do
8191	IFS=$lt_save_ifs
8192	if test "X$lt_pkg" = "X$lt_p"; then
8193	  pic_mode=yes
8194	fi
8195      done
8196      IFS=$lt_save_ifs
8197      ;;
8198    esac
8199else
8200  pic_mode=default
8201fi
8202
8203
8204
8205
8206
8207
8208
8209
8210  # Check whether --enable-fast-install was given.
8211if test "${enable_fast_install+set}" = set; then :
8212  enableval=$enable_fast_install; p=${PACKAGE-default}
8213    case $enableval in
8214    yes) enable_fast_install=yes ;;
8215    no) enable_fast_install=no ;;
8216    *)
8217      enable_fast_install=no
8218      # Look at the argument we got.  We use all the common list separators.
8219      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8220      for pkg in $enableval; do
8221	IFS=$lt_save_ifs
8222	if test "X$pkg" = "X$p"; then
8223	  enable_fast_install=yes
8224	fi
8225      done
8226      IFS=$lt_save_ifs
8227      ;;
8228    esac
8229else
8230  enable_fast_install=yes
8231fi
8232
8233
8234
8235
8236
8237
8238
8239
8240  shared_archive_member_spec=
8241case $host,$enable_shared in
8242power*-*-aix[5-9]*,yes)
8243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8244$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8245
8246# Check whether --with-aix-soname was given.
8247if test "${with_aix_soname+set}" = set; then :
8248  withval=$with_aix_soname; case $withval in
8249    aix|svr4|both)
8250      ;;
8251    *)
8252      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8253      ;;
8254    esac
8255    lt_cv_with_aix_soname=$with_aix_soname
8256else
8257  if ${lt_cv_with_aix_soname+:} false; then :
8258  $as_echo_n "(cached) " >&6
8259else
8260  lt_cv_with_aix_soname=aix
8261fi
8262
8263    with_aix_soname=$lt_cv_with_aix_soname
8264fi
8265
8266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8267$as_echo "$with_aix_soname" >&6; }
8268  if test aix != "$with_aix_soname"; then
8269    # For the AIX way of multilib, we name the shared archive member
8270    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8271    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8272    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8273    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8274    if test 64 = "${OBJECT_MODE-32}"; then
8275      shared_archive_member_spec=shr_64
8276    else
8277      shared_archive_member_spec=shr
8278    fi
8279  fi
8280  ;;
8281*)
8282  with_aix_soname=aix
8283  ;;
8284esac
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295# This can be used to rebuild libtool when needed
8296LIBTOOL_DEPS=$ltmain
8297
8298# Always use our own libtool.
8299LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330test -z "$LN_S" && LN_S="ln -s"
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345if test -n "${ZSH_VERSION+set}"; then
8346   setopt NO_GLOB_SUBST
8347fi
8348
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8350$as_echo_n "checking for objdir... " >&6; }
8351if ${lt_cv_objdir+:} false; then :
8352  $as_echo_n "(cached) " >&6
8353else
8354  rm -f .libs 2>/dev/null
8355mkdir .libs 2>/dev/null
8356if test -d .libs; then
8357  lt_cv_objdir=.libs
8358else
8359  # MS-DOS does not allow filenames that begin with a dot.
8360  lt_cv_objdir=_libs
8361fi
8362rmdir .libs 2>/dev/null
8363fi
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8365$as_echo "$lt_cv_objdir" >&6; }
8366objdir=$lt_cv_objdir
8367
8368
8369
8370
8371
8372cat >>confdefs.h <<_ACEOF
8373#define LT_OBJDIR "$lt_cv_objdir/"
8374_ACEOF
8375
8376
8377
8378
8379case $host_os in
8380aix3*)
8381  # AIX sometimes has problems with the GCC collect2 program.  For some
8382  # reason, if we set the COLLECT_NAMES environment variable, the problems
8383  # vanish in a puff of smoke.
8384  if test set != "${COLLECT_NAMES+set}"; then
8385    COLLECT_NAMES=
8386    export COLLECT_NAMES
8387  fi
8388  ;;
8389esac
8390
8391# Global variables:
8392ofile=libtool
8393can_build_shared=yes
8394
8395# All known linkers require a '.a' archive for static linking (except MSVC,
8396# which needs '.lib').
8397libext=a
8398
8399with_gnu_ld=$lt_cv_prog_gnu_ld
8400
8401old_CC=$CC
8402old_CFLAGS=$CFLAGS
8403
8404# Set sane defaults for various variables
8405test -z "$CC" && CC=cc
8406test -z "$LTCC" && LTCC=$CC
8407test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8408test -z "$LD" && LD=ld
8409test -z "$ac_objext" && ac_objext=o
8410
8411func_cc_basename $compiler
8412cc_basename=$func_cc_basename_result
8413
8414
8415# Only perform the check for file, if the check method requires it
8416test -z "$MAGIC_CMD" && MAGIC_CMD=file
8417case $deplibs_check_method in
8418file_magic*)
8419  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8420    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8421$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8422if ${lt_cv_path_MAGIC_CMD+:} false; then :
8423  $as_echo_n "(cached) " >&6
8424else
8425  case $MAGIC_CMD in
8426[\\/*] |  ?:[\\/]*)
8427  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8428  ;;
8429*)
8430  lt_save_MAGIC_CMD=$MAGIC_CMD
8431  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8432  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8433  for ac_dir in $ac_dummy; do
8434    IFS=$lt_save_ifs
8435    test -z "$ac_dir" && ac_dir=.
8436    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8437      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8438      if test -n "$file_magic_test_file"; then
8439	case $deplibs_check_method in
8440	"file_magic "*)
8441	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8442	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8443	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8444	    $EGREP "$file_magic_regex" > /dev/null; then
8445	    :
8446	  else
8447	    cat <<_LT_EOF 1>&2
8448
8449*** Warning: the command libtool uses to detect shared libraries,
8450*** $file_magic_cmd, produces output that libtool cannot recognize.
8451*** The result is that libtool may fail to recognize shared libraries
8452*** as such.  This will affect the creation of libtool libraries that
8453*** depend on shared libraries, but programs linked with such libtool
8454*** libraries will work regardless of this problem.  Nevertheless, you
8455*** may want to report the problem to your system manager and/or to
8456*** bug-libtool@gnu.org
8457
8458_LT_EOF
8459	  fi ;;
8460	esac
8461      fi
8462      break
8463    fi
8464  done
8465  IFS=$lt_save_ifs
8466  MAGIC_CMD=$lt_save_MAGIC_CMD
8467  ;;
8468esac
8469fi
8470
8471MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8472if test -n "$MAGIC_CMD"; then
8473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8474$as_echo "$MAGIC_CMD" >&6; }
8475else
8476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477$as_echo "no" >&6; }
8478fi
8479
8480
8481
8482
8483
8484if test -z "$lt_cv_path_MAGIC_CMD"; then
8485  if test -n "$ac_tool_prefix"; then
8486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8487$as_echo_n "checking for file... " >&6; }
8488if ${lt_cv_path_MAGIC_CMD+:} false; then :
8489  $as_echo_n "(cached) " >&6
8490else
8491  case $MAGIC_CMD in
8492[\\/*] |  ?:[\\/]*)
8493  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8494  ;;
8495*)
8496  lt_save_MAGIC_CMD=$MAGIC_CMD
8497  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8498  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8499  for ac_dir in $ac_dummy; do
8500    IFS=$lt_save_ifs
8501    test -z "$ac_dir" && ac_dir=.
8502    if test -f "$ac_dir/file"; then
8503      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8504      if test -n "$file_magic_test_file"; then
8505	case $deplibs_check_method in
8506	"file_magic "*)
8507	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8508	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8509	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8510	    $EGREP "$file_magic_regex" > /dev/null; then
8511	    :
8512	  else
8513	    cat <<_LT_EOF 1>&2
8514
8515*** Warning: the command libtool uses to detect shared libraries,
8516*** $file_magic_cmd, produces output that libtool cannot recognize.
8517*** The result is that libtool may fail to recognize shared libraries
8518*** as such.  This will affect the creation of libtool libraries that
8519*** depend on shared libraries, but programs linked with such libtool
8520*** libraries will work regardless of this problem.  Nevertheless, you
8521*** may want to report the problem to your system manager and/or to
8522*** bug-libtool@gnu.org
8523
8524_LT_EOF
8525	  fi ;;
8526	esac
8527      fi
8528      break
8529    fi
8530  done
8531  IFS=$lt_save_ifs
8532  MAGIC_CMD=$lt_save_MAGIC_CMD
8533  ;;
8534esac
8535fi
8536
8537MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8538if test -n "$MAGIC_CMD"; then
8539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8540$as_echo "$MAGIC_CMD" >&6; }
8541else
8542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543$as_echo "no" >&6; }
8544fi
8545
8546
8547  else
8548    MAGIC_CMD=:
8549  fi
8550fi
8551
8552  fi
8553  ;;
8554esac
8555
8556# Use C for the default configuration in the libtool script
8557
8558lt_save_CC=$CC
8559ac_ext=c
8560ac_cpp='$CPP $CPPFLAGS'
8561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564
8565
8566# Source file extension for C test sources.
8567ac_ext=c
8568
8569# Object file extension for compiled C test sources.
8570objext=o
8571objext=$objext
8572
8573# Code to be used in simple compile tests
8574lt_simple_compile_test_code="int some_variable = 0;"
8575
8576# Code to be used in simple link tests
8577lt_simple_link_test_code='int main(){return(0);}'
8578
8579
8580
8581
8582
8583
8584
8585# If no C compiler was specified, use CC.
8586LTCC=${LTCC-"$CC"}
8587
8588# If no C compiler flags were specified, use CFLAGS.
8589LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8590
8591# Allow CC to be a program name with arguments.
8592compiler=$CC
8593
8594# Save the default compiler, since it gets overwritten when the other
8595# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8596compiler_DEFAULT=$CC
8597
8598# save warnings/boilerplate of simple test code
8599ac_outfile=conftest.$ac_objext
8600echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8601eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8602_lt_compiler_boilerplate=`cat conftest.err`
8603$RM conftest*
8604
8605ac_outfile=conftest.$ac_objext
8606echo "$lt_simple_link_test_code" >conftest.$ac_ext
8607eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8608_lt_linker_boilerplate=`cat conftest.err`
8609$RM -r conftest*
8610
8611
8612## CAVEAT EMPTOR:
8613## There is no encapsulation within the following macros, do not change
8614## the running order or otherwise move them around unless you know exactly
8615## what you are doing...
8616if test -n "$compiler"; then
8617
8618lt_prog_compiler_no_builtin_flag=
8619
8620if test yes = "$GCC"; then
8621  case $cc_basename in
8622  nvcc*)
8623    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8624  *)
8625    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8626  esac
8627
8628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8629$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8630if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8631  $as_echo_n "(cached) " >&6
8632else
8633  lt_cv_prog_compiler_rtti_exceptions=no
8634   ac_outfile=conftest.$ac_objext
8635   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8636   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8637   # Insert the option either (1) after the last *FLAGS variable, or
8638   # (2) before a word containing "conftest.", or (3) at the end.
8639   # Note that $ac_compile itself does not contain backslashes and begins
8640   # with a dollar sign (not a hyphen), so the echo should work correctly.
8641   # The option is referenced via a variable to avoid confusing sed.
8642   lt_compile=`echo "$ac_compile" | $SED \
8643   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8644   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8645   -e 's:$: $lt_compiler_flag:'`
8646   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8647   (eval "$lt_compile" 2>conftest.err)
8648   ac_status=$?
8649   cat conftest.err >&5
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   if (exit $ac_status) && test -s "$ac_outfile"; then
8652     # The compiler can only warn and ignore the option if not recognized
8653     # So say no if there are warnings other than the usual output.
8654     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8655     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8656     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8657       lt_cv_prog_compiler_rtti_exceptions=yes
8658     fi
8659   fi
8660   $RM conftest*
8661
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8664$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8665
8666if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8667    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8668else
8669    :
8670fi
8671
8672fi
8673
8674
8675
8676
8677
8678
8679  lt_prog_compiler_wl=
8680lt_prog_compiler_pic=
8681lt_prog_compiler_static=
8682
8683
8684  if test yes = "$GCC"; then
8685    lt_prog_compiler_wl='-Wl,'
8686    lt_prog_compiler_static='-static'
8687
8688    case $host_os in
8689      aix*)
8690      # All AIX code is PIC.
8691      if test ia64 = "$host_cpu"; then
8692	# AIX 5 now supports IA64 processor
8693	lt_prog_compiler_static='-Bstatic'
8694      fi
8695      lt_prog_compiler_pic='-fPIC'
8696      ;;
8697
8698    amigaos*)
8699      case $host_cpu in
8700      powerpc)
8701            # see comment about AmigaOS4 .so support
8702            lt_prog_compiler_pic='-fPIC'
8703        ;;
8704      m68k)
8705            # FIXME: we need at least 68020 code to build shared libraries, but
8706            # adding the '-m68020' flag to GCC prevents building anything better,
8707            # like '-m68040'.
8708            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8709        ;;
8710      esac
8711      ;;
8712
8713    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8714      # PIC is the default for these OSes.
8715      ;;
8716
8717    mingw* | cygwin* | pw32* | os2* | cegcc*)
8718      # This hack is so that the source file can tell whether it is being
8719      # built for inclusion in a dll (and should export symbols for example).
8720      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8721      # (--disable-auto-import) libraries
8722      lt_prog_compiler_pic='-DDLL_EXPORT'
8723      case $host_os in
8724      os2*)
8725	lt_prog_compiler_static='$wl-static'
8726	;;
8727      esac
8728      ;;
8729
8730    darwin* | rhapsody*)
8731      # PIC is the default on this platform
8732      # Common symbols not allowed in MH_DYLIB files
8733      lt_prog_compiler_pic='-fno-common'
8734      ;;
8735
8736    haiku*)
8737      # PIC is the default for Haiku.
8738      # The "-static" flag exists, but is broken.
8739      lt_prog_compiler_static=
8740      ;;
8741
8742    hpux*)
8743      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8744      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8745      # sets the default TLS model and affects inlining.
8746      case $host_cpu in
8747      hppa*64*)
8748	# +Z the default
8749	;;
8750      *)
8751	lt_prog_compiler_pic='-fPIC'
8752	;;
8753      esac
8754      ;;
8755
8756    interix[3-9]*)
8757      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8758      # Instead, we relocate shared libraries at runtime.
8759      ;;
8760
8761    msdosdjgpp*)
8762      # Just because we use GCC doesn't mean we suddenly get shared libraries
8763      # on systems that don't support them.
8764      lt_prog_compiler_can_build_shared=no
8765      enable_shared=no
8766      ;;
8767
8768    *nto* | *qnx*)
8769      # QNX uses GNU C++, but need to define -shared option too, otherwise
8770      # it will coredump.
8771      lt_prog_compiler_pic='-fPIC -shared'
8772      ;;
8773
8774    sysv4*MP*)
8775      if test -d /usr/nec; then
8776	lt_prog_compiler_pic=-Kconform_pic
8777      fi
8778      ;;
8779
8780    *)
8781      lt_prog_compiler_pic='-fPIC'
8782      ;;
8783    esac
8784
8785    case $cc_basename in
8786    nvcc*) # Cuda Compiler Driver 2.2
8787      lt_prog_compiler_wl='-Xlinker '
8788      if test -n "$lt_prog_compiler_pic"; then
8789        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8790      fi
8791      ;;
8792    esac
8793  else
8794    # PORTME Check for flag to pass linker flags through the system compiler.
8795    case $host_os in
8796    aix*)
8797      lt_prog_compiler_wl='-Wl,'
8798      if test ia64 = "$host_cpu"; then
8799	# AIX 5 now supports IA64 processor
8800	lt_prog_compiler_static='-Bstatic'
8801      else
8802	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8803      fi
8804      ;;
8805
8806    darwin* | rhapsody*)
8807      # PIC is the default on this platform
8808      # Common symbols not allowed in MH_DYLIB files
8809      lt_prog_compiler_pic='-fno-common'
8810      case $cc_basename in
8811      nagfor*)
8812        # NAG Fortran compiler
8813        lt_prog_compiler_wl='-Wl,-Wl,,'
8814        lt_prog_compiler_pic='-PIC'
8815        lt_prog_compiler_static='-Bstatic'
8816        ;;
8817      esac
8818      ;;
8819
8820    mingw* | cygwin* | pw32* | os2* | cegcc*)
8821      # This hack is so that the source file can tell whether it is being
8822      # built for inclusion in a dll (and should export symbols for example).
8823      lt_prog_compiler_pic='-DDLL_EXPORT'
8824      case $host_os in
8825      os2*)
8826	lt_prog_compiler_static='$wl-static'
8827	;;
8828      esac
8829      ;;
8830
8831    hpux9* | hpux10* | hpux11*)
8832      lt_prog_compiler_wl='-Wl,'
8833      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8834      # not for PA HP-UX.
8835      case $host_cpu in
8836      hppa*64*|ia64*)
8837	# +Z the default
8838	;;
8839      *)
8840	lt_prog_compiler_pic='+Z'
8841	;;
8842      esac
8843      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8844      lt_prog_compiler_static='$wl-a ${wl}archive'
8845      ;;
8846
8847    irix5* | irix6* | nonstopux*)
8848      lt_prog_compiler_wl='-Wl,'
8849      # PIC (with -KPIC) is the default.
8850      lt_prog_compiler_static='-non_shared'
8851      ;;
8852
8853    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8854      case $cc_basename in
8855      # old Intel for x86_64, which still supported -KPIC.
8856      ecc*)
8857	lt_prog_compiler_wl='-Wl,'
8858	lt_prog_compiler_pic='-KPIC'
8859	lt_prog_compiler_static='-static'
8860        ;;
8861      # icc used to be incompatible with GCC.
8862      # ICC 10 doesn't accept -KPIC any more.
8863      icc* | ifort*)
8864	lt_prog_compiler_wl='-Wl,'
8865	lt_prog_compiler_pic='-fPIC'
8866	lt_prog_compiler_static='-static'
8867        ;;
8868      # Lahey Fortran 8.1.
8869      lf95*)
8870	lt_prog_compiler_wl='-Wl,'
8871	lt_prog_compiler_pic='--shared'
8872	lt_prog_compiler_static='--static'
8873	;;
8874      nagfor*)
8875	# NAG Fortran compiler
8876	lt_prog_compiler_wl='-Wl,-Wl,,'
8877	lt_prog_compiler_pic='-PIC'
8878	lt_prog_compiler_static='-Bstatic'
8879	;;
8880      tcc*)
8881	# Fabrice Bellard et al's Tiny C Compiler
8882	lt_prog_compiler_wl='-Wl,'
8883	lt_prog_compiler_pic='-fPIC'
8884	lt_prog_compiler_static='-static'
8885	;;
8886      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8887        # Portland Group compilers (*not* the Pentium gcc compiler,
8888	# which looks to be a dead project)
8889	lt_prog_compiler_wl='-Wl,'
8890	lt_prog_compiler_pic='-fpic'
8891	lt_prog_compiler_static='-Bstatic'
8892        ;;
8893      ccc*)
8894        lt_prog_compiler_wl='-Wl,'
8895        # All Alpha code is PIC.
8896        lt_prog_compiler_static='-non_shared'
8897        ;;
8898      xl* | bgxl* | bgf* | mpixl*)
8899	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8900	lt_prog_compiler_wl='-Wl,'
8901	lt_prog_compiler_pic='-qpic'
8902	lt_prog_compiler_static='-qstaticlink'
8903	;;
8904      *)
8905	case `$CC -V 2>&1 | sed 5q` in
8906	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8907	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8908	  lt_prog_compiler_pic='-KPIC'
8909	  lt_prog_compiler_static='-Bstatic'
8910	  lt_prog_compiler_wl=''
8911	  ;;
8912	*Sun\ F* | *Sun*Fortran*)
8913	  lt_prog_compiler_pic='-KPIC'
8914	  lt_prog_compiler_static='-Bstatic'
8915	  lt_prog_compiler_wl='-Qoption ld '
8916	  ;;
8917	*Sun\ C*)
8918	  # Sun C 5.9
8919	  lt_prog_compiler_pic='-KPIC'
8920	  lt_prog_compiler_static='-Bstatic'
8921	  lt_prog_compiler_wl='-Wl,'
8922	  ;;
8923        *Intel*\ [CF]*Compiler*)
8924	  lt_prog_compiler_wl='-Wl,'
8925	  lt_prog_compiler_pic='-fPIC'
8926	  lt_prog_compiler_static='-static'
8927	  ;;
8928	*Portland\ Group*)
8929	  lt_prog_compiler_wl='-Wl,'
8930	  lt_prog_compiler_pic='-fpic'
8931	  lt_prog_compiler_static='-Bstatic'
8932	  ;;
8933	esac
8934	;;
8935      esac
8936      ;;
8937
8938    newsos6)
8939      lt_prog_compiler_pic='-KPIC'
8940      lt_prog_compiler_static='-Bstatic'
8941      ;;
8942
8943    *nto* | *qnx*)
8944      # QNX uses GNU C++, but need to define -shared option too, otherwise
8945      # it will coredump.
8946      lt_prog_compiler_pic='-fPIC -shared'
8947      ;;
8948
8949    osf3* | osf4* | osf5*)
8950      lt_prog_compiler_wl='-Wl,'
8951      # All OSF/1 code is PIC.
8952      lt_prog_compiler_static='-non_shared'
8953      ;;
8954
8955    rdos*)
8956      lt_prog_compiler_static='-non_shared'
8957      ;;
8958
8959    solaris*)
8960      lt_prog_compiler_pic='-KPIC'
8961      lt_prog_compiler_static='-Bstatic'
8962      case $cc_basename in
8963      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8964	lt_prog_compiler_wl='-Qoption ld ';;
8965      *)
8966	lt_prog_compiler_wl='-Wl,';;
8967      esac
8968      ;;
8969
8970    sunos4*)
8971      lt_prog_compiler_wl='-Qoption ld '
8972      lt_prog_compiler_pic='-PIC'
8973      lt_prog_compiler_static='-Bstatic'
8974      ;;
8975
8976    sysv4 | sysv4.2uw2* | sysv4.3*)
8977      lt_prog_compiler_wl='-Wl,'
8978      lt_prog_compiler_pic='-KPIC'
8979      lt_prog_compiler_static='-Bstatic'
8980      ;;
8981
8982    sysv4*MP*)
8983      if test -d /usr/nec; then
8984	lt_prog_compiler_pic='-Kconform_pic'
8985	lt_prog_compiler_static='-Bstatic'
8986      fi
8987      ;;
8988
8989    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8990      lt_prog_compiler_wl='-Wl,'
8991      lt_prog_compiler_pic='-KPIC'
8992      lt_prog_compiler_static='-Bstatic'
8993      ;;
8994
8995    unicos*)
8996      lt_prog_compiler_wl='-Wl,'
8997      lt_prog_compiler_can_build_shared=no
8998      ;;
8999
9000    uts4*)
9001      lt_prog_compiler_pic='-pic'
9002      lt_prog_compiler_static='-Bstatic'
9003      ;;
9004
9005    *)
9006      lt_prog_compiler_can_build_shared=no
9007      ;;
9008    esac
9009  fi
9010
9011case $host_os in
9012  # For platforms that do not support PIC, -DPIC is meaningless:
9013  *djgpp*)
9014    lt_prog_compiler_pic=
9015    ;;
9016  *)
9017    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9018    ;;
9019esac
9020
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9022$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9023if ${lt_cv_prog_compiler_pic+:} false; then :
9024  $as_echo_n "(cached) " >&6
9025else
9026  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9027fi
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9029$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9030lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9031
9032#
9033# Check to make sure the PIC flag actually works.
9034#
9035if test -n "$lt_prog_compiler_pic"; then
9036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9037$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9038if ${lt_cv_prog_compiler_pic_works+:} false; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041  lt_cv_prog_compiler_pic_works=no
9042   ac_outfile=conftest.$ac_objext
9043   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9044   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9045   # Insert the option either (1) after the last *FLAGS variable, or
9046   # (2) before a word containing "conftest.", or (3) at the end.
9047   # Note that $ac_compile itself does not contain backslashes and begins
9048   # with a dollar sign (not a hyphen), so the echo should work correctly.
9049   # The option is referenced via a variable to avoid confusing sed.
9050   lt_compile=`echo "$ac_compile" | $SED \
9051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9053   -e 's:$: $lt_compiler_flag:'`
9054   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9055   (eval "$lt_compile" 2>conftest.err)
9056   ac_status=$?
9057   cat conftest.err >&5
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   if (exit $ac_status) && test -s "$ac_outfile"; then
9060     # The compiler can only warn and ignore the option if not recognized
9061     # So say no if there are warnings other than the usual output.
9062     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9063     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9064     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9065       lt_cv_prog_compiler_pic_works=yes
9066     fi
9067   fi
9068   $RM conftest*
9069
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9072$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9073
9074if test yes = "$lt_cv_prog_compiler_pic_works"; then
9075    case $lt_prog_compiler_pic in
9076     "" | " "*) ;;
9077     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9078     esac
9079else
9080    lt_prog_compiler_pic=
9081     lt_prog_compiler_can_build_shared=no
9082fi
9083
9084fi
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096#
9097# Check to make sure the static flag actually works.
9098#
9099wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9101$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9102if ${lt_cv_prog_compiler_static_works+:} false; then :
9103  $as_echo_n "(cached) " >&6
9104else
9105  lt_cv_prog_compiler_static_works=no
9106   save_LDFLAGS=$LDFLAGS
9107   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9108   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9109   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9110     # The linker can only warn and ignore the option if not recognized
9111     # So say no if there are warnings
9112     if test -s conftest.err; then
9113       # Append any errors to the config.log.
9114       cat conftest.err 1>&5
9115       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9116       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9117       if diff conftest.exp conftest.er2 >/dev/null; then
9118         lt_cv_prog_compiler_static_works=yes
9119       fi
9120     else
9121       lt_cv_prog_compiler_static_works=yes
9122     fi
9123   fi
9124   $RM -r conftest*
9125   LDFLAGS=$save_LDFLAGS
9126
9127fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9129$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9130
9131if test yes = "$lt_cv_prog_compiler_static_works"; then
9132    :
9133else
9134    lt_prog_compiler_static=
9135fi
9136
9137
9138
9139
9140
9141
9142
9143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9144$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9145if ${lt_cv_prog_compiler_c_o+:} false; then :
9146  $as_echo_n "(cached) " >&6
9147else
9148  lt_cv_prog_compiler_c_o=no
9149   $RM -r conftest 2>/dev/null
9150   mkdir conftest
9151   cd conftest
9152   mkdir out
9153   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154
9155   lt_compiler_flag="-o out/conftest2.$ac_objext"
9156   # Insert the option either (1) after the last *FLAGS variable, or
9157   # (2) before a word containing "conftest.", or (3) at the end.
9158   # Note that $ac_compile itself does not contain backslashes and begins
9159   # with a dollar sign (not a hyphen), so the echo should work correctly.
9160   lt_compile=`echo "$ac_compile" | $SED \
9161   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9162   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9163   -e 's:$: $lt_compiler_flag:'`
9164   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9165   (eval "$lt_compile" 2>out/conftest.err)
9166   ac_status=$?
9167   cat out/conftest.err >&5
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9170   then
9171     # The compiler can only warn and ignore the option if not recognized
9172     # So say no if there are warnings
9173     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9174     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9175     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9176       lt_cv_prog_compiler_c_o=yes
9177     fi
9178   fi
9179   chmod u+w . 2>&5
9180   $RM conftest*
9181   # SGI C++ compiler will create directory out/ii_files/ for
9182   # template instantiation
9183   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9184   $RM out/* && rmdir out
9185   cd ..
9186   $RM -r conftest
9187   $RM conftest*
9188
9189fi
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9191$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9192
9193
9194
9195
9196
9197
9198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9199$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9200if ${lt_cv_prog_compiler_c_o+:} false; then :
9201  $as_echo_n "(cached) " >&6
9202else
9203  lt_cv_prog_compiler_c_o=no
9204   $RM -r conftest 2>/dev/null
9205   mkdir conftest
9206   cd conftest
9207   mkdir out
9208   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9209
9210   lt_compiler_flag="-o out/conftest2.$ac_objext"
9211   # Insert the option either (1) after the last *FLAGS variable, or
9212   # (2) before a word containing "conftest.", or (3) at the end.
9213   # Note that $ac_compile itself does not contain backslashes and begins
9214   # with a dollar sign (not a hyphen), so the echo should work correctly.
9215   lt_compile=`echo "$ac_compile" | $SED \
9216   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9217   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9218   -e 's:$: $lt_compiler_flag:'`
9219   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9220   (eval "$lt_compile" 2>out/conftest.err)
9221   ac_status=$?
9222   cat out/conftest.err >&5
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9225   then
9226     # The compiler can only warn and ignore the option if not recognized
9227     # So say no if there are warnings
9228     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9229     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9230     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9231       lt_cv_prog_compiler_c_o=yes
9232     fi
9233   fi
9234   chmod u+w . 2>&5
9235   $RM conftest*
9236   # SGI C++ compiler will create directory out/ii_files/ for
9237   # template instantiation
9238   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9239   $RM out/* && rmdir out
9240   cd ..
9241   $RM -r conftest
9242   $RM conftest*
9243
9244fi
9245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9246$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9247
9248
9249
9250
9251hard_links=nottested
9252if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9253  # do not overwrite the value of need_locks provided by the user
9254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9255$as_echo_n "checking if we can lock with hard links... " >&6; }
9256  hard_links=yes
9257  $RM conftest*
9258  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9259  touch conftest.a
9260  ln conftest.a conftest.b 2>&5 || hard_links=no
9261  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9263$as_echo "$hard_links" >&6; }
9264  if test no = "$hard_links"; then
9265    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9266$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9267    need_locks=warn
9268  fi
9269else
9270  need_locks=no
9271fi
9272
9273
9274
9275
9276
9277
9278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9279$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9280
9281  runpath_var=
9282  allow_undefined_flag=
9283  always_export_symbols=no
9284  archive_cmds=
9285  archive_expsym_cmds=
9286  compiler_needs_object=no
9287  enable_shared_with_static_runtimes=no
9288  export_dynamic_flag_spec=
9289  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9290  hardcode_automatic=no
9291  hardcode_direct=no
9292  hardcode_direct_absolute=no
9293  hardcode_libdir_flag_spec=
9294  hardcode_libdir_separator=
9295  hardcode_minus_L=no
9296  hardcode_shlibpath_var=unsupported
9297  inherit_rpath=no
9298  link_all_deplibs=unknown
9299  module_cmds=
9300  module_expsym_cmds=
9301  old_archive_from_new_cmds=
9302  old_archive_from_expsyms_cmds=
9303  thread_safe_flag_spec=
9304  whole_archive_flag_spec=
9305  # include_expsyms should be a list of space-separated symbols to be *always*
9306  # included in the symbol list
9307  include_expsyms=
9308  # exclude_expsyms can be an extended regexp of symbols to exclude
9309  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9310  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9311  # as well as any symbol that contains 'd'.
9312  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9313  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9314  # platforms (ab)use it in PIC code, but their linkers get confused if
9315  # the symbol is explicitly referenced.  Since portable code cannot
9316  # rely on this symbol name, it's probably fine to never include it in
9317  # preloaded symbol tables.
9318  # Exclude shared library initialization/finalization symbols.
9319  extract_expsyms_cmds=
9320
9321  case $host_os in
9322  cygwin* | mingw* | pw32* | cegcc*)
9323    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9324    # When not using gcc, we currently assume that we are using
9325    # Microsoft Visual C++.
9326    if test yes != "$GCC"; then
9327      with_gnu_ld=no
9328    fi
9329    ;;
9330  interix*)
9331    # we just hope/assume this is gcc and not c89 (= MSVC++)
9332    with_gnu_ld=yes
9333    ;;
9334  openbsd* | bitrig*)
9335    with_gnu_ld=no
9336    ;;
9337  esac
9338
9339  ld_shlibs=yes
9340
9341  # On some targets, GNU ld is compatible enough with the native linker
9342  # that we're better off using the native interface for both.
9343  lt_use_gnu_ld_interface=no
9344  if test yes = "$with_gnu_ld"; then
9345    case $host_os in
9346      aix*)
9347	# The AIX port of GNU ld has always aspired to compatibility
9348	# with the native linker.  However, as the warning in the GNU ld
9349	# block says, versions before 2.19.5* couldn't really create working
9350	# shared libraries, regardless of the interface used.
9351	case `$LD -v 2>&1` in
9352	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9353	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9354	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9355	  *)
9356	    lt_use_gnu_ld_interface=yes
9357	    ;;
9358	esac
9359	;;
9360      *)
9361	lt_use_gnu_ld_interface=yes
9362	;;
9363    esac
9364  fi
9365
9366  if test yes = "$lt_use_gnu_ld_interface"; then
9367    # If archive_cmds runs LD, not CC, wlarc should be empty
9368    wlarc='$wl'
9369
9370    # Set some defaults for GNU ld with shared library support. These
9371    # are reset later if shared libraries are not supported. Putting them
9372    # here allows them to be overridden if necessary.
9373    runpath_var=LD_RUN_PATH
9374    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9375    export_dynamic_flag_spec='$wl--export-dynamic'
9376    # ancient GNU ld didn't support --whole-archive et. al.
9377    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9378      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9379    else
9380      whole_archive_flag_spec=
9381    fi
9382    supports_anon_versioning=no
9383    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9384      *GNU\ gold*) supports_anon_versioning=yes ;;
9385      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9386      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9387      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9388      *\ 2.11.*) ;; # other 2.11 versions
9389      *) supports_anon_versioning=yes ;;
9390    esac
9391
9392    # See if GNU ld supports shared libraries.
9393    case $host_os in
9394    aix[3-9]*)
9395      # On AIX/PPC, the GNU linker is very broken
9396      if test ia64 != "$host_cpu"; then
9397	ld_shlibs=no
9398	cat <<_LT_EOF 1>&2
9399
9400*** Warning: the GNU linker, at least up to release 2.19, is reported
9401*** to be unable to reliably create shared libraries on AIX.
9402*** Therefore, libtool is disabling shared libraries support.  If you
9403*** really care for shared libraries, you may want to install binutils
9404*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9405*** You will then need to restart the configuration process.
9406
9407_LT_EOF
9408      fi
9409      ;;
9410
9411    amigaos*)
9412      case $host_cpu in
9413      powerpc)
9414            # see comment about AmigaOS4 .so support
9415            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9416            archive_expsym_cmds=''
9417        ;;
9418      m68k)
9419            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)'
9420            hardcode_libdir_flag_spec='-L$libdir'
9421            hardcode_minus_L=yes
9422        ;;
9423      esac
9424      ;;
9425
9426    beos*)
9427      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9428	allow_undefined_flag=unsupported
9429	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9430	# support --undefined.  This deserves some investigation.  FIXME
9431	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9432      else
9433	ld_shlibs=no
9434      fi
9435      ;;
9436
9437    cygwin* | mingw* | pw32* | cegcc*)
9438      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9439      # as there is no search path for DLLs.
9440      hardcode_libdir_flag_spec='-L$libdir'
9441      export_dynamic_flag_spec='$wl--export-all-symbols'
9442      allow_undefined_flag=unsupported
9443      always_export_symbols=no
9444      enable_shared_with_static_runtimes=yes
9445      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9446      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9447
9448      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9449        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9450	# If the export-symbols file already is a .def file, use it as
9451	# is; otherwise, prepend EXPORTS...
9452	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9453          cp $export_symbols $output_objdir/$soname.def;
9454        else
9455          echo EXPORTS > $output_objdir/$soname.def;
9456          cat $export_symbols >> $output_objdir/$soname.def;
9457        fi~
9458        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9459      else
9460	ld_shlibs=no
9461      fi
9462      ;;
9463
9464    haiku*)
9465      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9466      link_all_deplibs=yes
9467      ;;
9468
9469    os2*)
9470      hardcode_libdir_flag_spec='-L$libdir'
9471      hardcode_minus_L=yes
9472      allow_undefined_flag=unsupported
9473      shrext_cmds=.dll
9474      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9475	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9476	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9477	$ECHO EXPORTS >> $output_objdir/$libname.def~
9478	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9479	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9480	emximp -o $lib $output_objdir/$libname.def'
9481      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9482	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9483	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9484	$ECHO EXPORTS >> $output_objdir/$libname.def~
9485	prefix_cmds="$SED"~
9486	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9487	  prefix_cmds="$prefix_cmds -e 1d";
9488	fi~
9489	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9490	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9491	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9492	emximp -o $lib $output_objdir/$libname.def'
9493      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9494      enable_shared_with_static_runtimes=yes
9495      ;;
9496
9497    interix[3-9]*)
9498      hardcode_direct=no
9499      hardcode_shlibpath_var=no
9500      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9501      export_dynamic_flag_spec='$wl-E'
9502      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9503      # Instead, shared libraries are loaded at an image base (0x10000000 by
9504      # default) and relocated if they conflict, which is a slow very memory
9505      # consuming and fragmenting process.  To avoid this, we pick a random,
9506      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9507      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9508      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9509      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'
9510      ;;
9511
9512    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9513      tmp_diet=no
9514      if test linux-dietlibc = "$host_os"; then
9515	case $cc_basename in
9516	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9517	esac
9518      fi
9519      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9520	 && test no = "$tmp_diet"
9521      then
9522	tmp_addflag=' $pic_flag'
9523	tmp_sharedflag='-shared'
9524	case $cc_basename,$host_cpu in
9525        pgcc*)				# Portland Group C compiler
9526	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9527	  tmp_addflag=' $pic_flag'
9528	  ;;
9529	pgf77* | pgf90* | pgf95* | pgfortran*)
9530					# Portland Group f77 and f90 compilers
9531	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9532	  tmp_addflag=' $pic_flag -Mnomain' ;;
9533	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9534	  tmp_addflag=' -i_dynamic' ;;
9535	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9536	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9537	ifc* | ifort*)			# Intel Fortran compiler
9538	  tmp_addflag=' -nofor_main' ;;
9539	lf95*)				# Lahey Fortran 8.1
9540	  whole_archive_flag_spec=
9541	  tmp_sharedflag='--shared' ;;
9542        nagfor*)                        # NAGFOR 5.3
9543          tmp_sharedflag='-Wl,-shared' ;;
9544	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9545	  tmp_sharedflag='-qmkshrobj'
9546	  tmp_addflag= ;;
9547	nvcc*)	# Cuda Compiler Driver 2.2
9548	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9549	  compiler_needs_object=yes
9550	  ;;
9551	esac
9552	case `$CC -V 2>&1 | sed 5q` in
9553	*Sun\ C*)			# Sun C 5.9
9554	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9555	  compiler_needs_object=yes
9556	  tmp_sharedflag='-G' ;;
9557	*Sun\ F*)			# Sun Fortran 8.3
9558	  tmp_sharedflag='-G' ;;
9559	esac
9560	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9561
9562        if test yes = "$supports_anon_versioning"; then
9563          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9564            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9565            echo "local: *; };" >> $output_objdir/$libname.ver~
9566            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9567        fi
9568
9569	case $cc_basename in
9570	tcc*)
9571	  export_dynamic_flag_spec='-rdynamic'
9572	  ;;
9573	xlf* | bgf* | bgxlf* | mpixlf*)
9574	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9575	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9576	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9577	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9578	  if test yes = "$supports_anon_versioning"; then
9579	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9580              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9581              echo "local: *; };" >> $output_objdir/$libname.ver~
9582              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9583	  fi
9584	  ;;
9585	esac
9586      else
9587        ld_shlibs=no
9588      fi
9589      ;;
9590
9591    netbsd*)
9592      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9593	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9594	wlarc=
9595      else
9596	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9597	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9598      fi
9599      ;;
9600
9601    solaris*)
9602      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9603	ld_shlibs=no
9604	cat <<_LT_EOF 1>&2
9605
9606*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9607*** create shared libraries on Solaris systems.  Therefore, libtool
9608*** is disabling shared libraries support.  We urge you to upgrade GNU
9609*** binutils to release 2.9.1 or newer.  Another option is to modify
9610*** your PATH or compiler configuration so that the native linker is
9611*** used, and then restart.
9612
9613_LT_EOF
9614      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9615	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9616	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9617      else
9618	ld_shlibs=no
9619      fi
9620      ;;
9621
9622    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9623      case `$LD -v 2>&1` in
9624        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9625	ld_shlibs=no
9626	cat <<_LT_EOF 1>&2
9627
9628*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9629*** reliably create shared libraries on SCO systems.  Therefore, libtool
9630*** is disabling shared libraries support.  We urge you to upgrade GNU
9631*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9632*** your PATH or compiler configuration so that the native linker is
9633*** used, and then restart.
9634
9635_LT_EOF
9636	;;
9637	*)
9638	  # For security reasons, it is highly recommended that you always
9639	  # use absolute paths for naming shared libraries, and exclude the
9640	  # DT_RUNPATH tag from executables and libraries.  But doing so
9641	  # requires that you compile everything twice, which is a pain.
9642	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9644	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9645	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9646	  else
9647	    ld_shlibs=no
9648	  fi
9649	;;
9650      esac
9651      ;;
9652
9653    sunos4*)
9654      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9655      wlarc=
9656      hardcode_direct=yes
9657      hardcode_shlibpath_var=no
9658      ;;
9659
9660    *)
9661      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9662	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9663	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9664      else
9665	ld_shlibs=no
9666      fi
9667      ;;
9668    esac
9669
9670    if test no = "$ld_shlibs"; then
9671      runpath_var=
9672      hardcode_libdir_flag_spec=
9673      export_dynamic_flag_spec=
9674      whole_archive_flag_spec=
9675    fi
9676  else
9677    # PORTME fill in a description of your system's linker (not GNU ld)
9678    case $host_os in
9679    aix3*)
9680      allow_undefined_flag=unsupported
9681      always_export_symbols=yes
9682      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'
9683      # Note: this linker hardcodes the directories in LIBPATH if there
9684      # are no directories specified by -L.
9685      hardcode_minus_L=yes
9686      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9687	# Neither direct hardcoding nor static linking is supported with a
9688	# broken collect2.
9689	hardcode_direct=unsupported
9690      fi
9691      ;;
9692
9693    aix[4-9]*)
9694      if test ia64 = "$host_cpu"; then
9695	# On IA64, the linker does run time linking by default, so we don't
9696	# have to do anything special.
9697	aix_use_runtimelinking=no
9698	exp_sym_flag='-Bexport'
9699	no_entry_flag=
9700      else
9701	# If we're using GNU nm, then we don't want the "-C" option.
9702	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9703	# Without the "-l" option, or with the "-B" option, AIX nm treats
9704	# weak defined symbols like other global defined symbols, whereas
9705	# GNU nm marks them as "W".
9706	# While the 'weak' keyword is ignored in the Export File, we need
9707	# it in the Import File for the 'aix-soname' feature, so we have
9708	# to replace the "-B" option with "-P" for AIX nm.
9709	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9710	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9711	else
9712	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9713	fi
9714	aix_use_runtimelinking=no
9715
9716	# Test if we are trying to use run time linking or normal
9717	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9718	# have runtime linking enabled, and use it for executables.
9719	# For shared libraries, we enable/disable runtime linking
9720	# depending on the kind of the shared library created -
9721	# when "with_aix_soname,aix_use_runtimelinking" is:
9722	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9723	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9724	#            lib.a           static archive
9725	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9726	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9727	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9728	#            lib.a(lib.so.V) shared, rtl:no
9729	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9730	#            lib.a           static archive
9731	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9732	  for ld_flag in $LDFLAGS; do
9733	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9734	    aix_use_runtimelinking=yes
9735	    break
9736	  fi
9737	  done
9738	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9739	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9740	    # so we don't have lib.a shared libs to link our executables.
9741	    # We have to force runtime linking in this case.
9742	    aix_use_runtimelinking=yes
9743	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9744	  fi
9745	  ;;
9746	esac
9747
9748	exp_sym_flag='-bexport'
9749	no_entry_flag='-bnoentry'
9750      fi
9751
9752      # When large executables or shared objects are built, AIX ld can
9753      # have problems creating the table of contents.  If linking a library
9754      # or program results in "error TOC overflow" add -mminimal-toc to
9755      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9756      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9757
9758      archive_cmds=''
9759      hardcode_direct=yes
9760      hardcode_direct_absolute=yes
9761      hardcode_libdir_separator=':'
9762      link_all_deplibs=yes
9763      file_list_spec='$wl-f,'
9764      case $with_aix_soname,$aix_use_runtimelinking in
9765      aix,*) ;; # traditional, no import file
9766      svr4,* | *,yes) # use import file
9767	# The Import File defines what to hardcode.
9768	hardcode_direct=no
9769	hardcode_direct_absolute=no
9770	;;
9771      esac
9772
9773      if test yes = "$GCC"; then
9774	case $host_os in aix4.[012]|aix4.[012].*)
9775	# We only want to do this on AIX 4.2 and lower, the check
9776	# below for broken collect2 doesn't work under 4.3+
9777	  collect2name=`$CC -print-prog-name=collect2`
9778	  if test -f "$collect2name" &&
9779	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9780	  then
9781	  # We have reworked collect2
9782	  :
9783	  else
9784	  # We have old collect2
9785	  hardcode_direct=unsupported
9786	  # It fails to find uninstalled libraries when the uninstalled
9787	  # path is not listed in the libpath.  Setting hardcode_minus_L
9788	  # to unsupported forces relinking
9789	  hardcode_minus_L=yes
9790	  hardcode_libdir_flag_spec='-L$libdir'
9791	  hardcode_libdir_separator=
9792	  fi
9793	  ;;
9794	esac
9795	shared_flag='-shared'
9796	if test yes = "$aix_use_runtimelinking"; then
9797	  shared_flag="$shared_flag "'$wl-G'
9798	fi
9799	# Need to ensure runtime linking is disabled for the traditional
9800	# shared library, or the linker may eventually find shared libraries
9801	# /with/ Import File - we do not want to mix them.
9802	shared_flag_aix='-shared'
9803	shared_flag_svr4='-shared $wl-G'
9804      else
9805	# not using gcc
9806	if test ia64 = "$host_cpu"; then
9807	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9808	# chokes on -Wl,-G. The following line is correct:
9809	  shared_flag='-G'
9810	else
9811	  if test yes = "$aix_use_runtimelinking"; then
9812	    shared_flag='$wl-G'
9813	  else
9814	    shared_flag='$wl-bM:SRE'
9815	  fi
9816	  shared_flag_aix='$wl-bM:SRE'
9817	  shared_flag_svr4='$wl-G'
9818	fi
9819      fi
9820
9821      export_dynamic_flag_spec='$wl-bexpall'
9822      # It seems that -bexpall does not export symbols beginning with
9823      # underscore (_), so it is better to generate a list of symbols to export.
9824      always_export_symbols=yes
9825      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9826	# Warning - without using the other runtime loading flags (-brtl),
9827	# -berok will link without error, but may produce a broken library.
9828	allow_undefined_flag='-berok'
9829        # Determine the default libpath from the value encoded in an
9830        # empty executable.
9831        if test set = "${lt_cv_aix_libpath+set}"; then
9832  aix_libpath=$lt_cv_aix_libpath
9833else
9834  if ${lt_cv_aix_libpath_+:} false; then :
9835  $as_echo_n "(cached) " >&6
9836else
9837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838/* end confdefs.h.  */
9839
9840int
9841main ()
9842{
9843
9844  ;
9845  return 0;
9846}
9847_ACEOF
9848if ac_fn_c_try_link "$LINENO"; then :
9849
9850  lt_aix_libpath_sed='
9851      /Import File Strings/,/^$/ {
9852	  /^0/ {
9853	      s/^0  *\([^ ]*\) *$/\1/
9854	      p
9855	  }
9856      }'
9857  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858  # Check for a 64-bit object if we didn't find anything.
9859  if test -z "$lt_cv_aix_libpath_"; then
9860    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9861  fi
9862fi
9863rm -f core conftest.err conftest.$ac_objext \
9864    conftest$ac_exeext conftest.$ac_ext
9865  if test -z "$lt_cv_aix_libpath_"; then
9866    lt_cv_aix_libpath_=/usr/lib:/lib
9867  fi
9868
9869fi
9870
9871  aix_libpath=$lt_cv_aix_libpath_
9872fi
9873
9874        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9875        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9876      else
9877	if test ia64 = "$host_cpu"; then
9878	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9879	  allow_undefined_flag="-z nodefs"
9880	  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"
9881	else
9882	 # Determine the default libpath from the value encoded in an
9883	 # empty executable.
9884	 if test set = "${lt_cv_aix_libpath+set}"; then
9885  aix_libpath=$lt_cv_aix_libpath
9886else
9887  if ${lt_cv_aix_libpath_+:} false; then :
9888  $as_echo_n "(cached) " >&6
9889else
9890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891/* end confdefs.h.  */
9892
9893int
9894main ()
9895{
9896
9897  ;
9898  return 0;
9899}
9900_ACEOF
9901if ac_fn_c_try_link "$LINENO"; then :
9902
9903  lt_aix_libpath_sed='
9904      /Import File Strings/,/^$/ {
9905	  /^0/ {
9906	      s/^0  *\([^ ]*\) *$/\1/
9907	      p
9908	  }
9909      }'
9910  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9911  # Check for a 64-bit object if we didn't find anything.
9912  if test -z "$lt_cv_aix_libpath_"; then
9913    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9914  fi
9915fi
9916rm -f core conftest.err conftest.$ac_objext \
9917    conftest$ac_exeext conftest.$ac_ext
9918  if test -z "$lt_cv_aix_libpath_"; then
9919    lt_cv_aix_libpath_=/usr/lib:/lib
9920  fi
9921
9922fi
9923
9924  aix_libpath=$lt_cv_aix_libpath_
9925fi
9926
9927	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9928	  # Warning - without using the other run time loading flags,
9929	  # -berok will link without error, but may produce a broken library.
9930	  no_undefined_flag=' $wl-bernotok'
9931	  allow_undefined_flag=' $wl-berok'
9932	  if test yes = "$with_gnu_ld"; then
9933	    # We only use this code for GNU lds that support --whole-archive.
9934	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9935	  else
9936	    # Exported symbols can be pulled into shared objects from archives
9937	    whole_archive_flag_spec='$convenience'
9938	  fi
9939	  archive_cmds_need_lc=yes
9940	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9941	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9942	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9943	  if test svr4 != "$with_aix_soname"; then
9944	    # This is similar to how AIX traditionally builds its shared libraries.
9945	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9946	  fi
9947	  if test aix != "$with_aix_soname"; then
9948	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9949	  else
9950	    # used by -dlpreopen to get the symbols
9951	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9952	  fi
9953	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9954	fi
9955      fi
9956      ;;
9957
9958    amigaos*)
9959      case $host_cpu in
9960      powerpc)
9961            # see comment about AmigaOS4 .so support
9962            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9963            archive_expsym_cmds=''
9964        ;;
9965      m68k)
9966            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)'
9967            hardcode_libdir_flag_spec='-L$libdir'
9968            hardcode_minus_L=yes
9969        ;;
9970      esac
9971      ;;
9972
9973    bsdi[45]*)
9974      export_dynamic_flag_spec=-rdynamic
9975      ;;
9976
9977    cygwin* | mingw* | pw32* | cegcc*)
9978      # When not using gcc, we currently assume that we are using
9979      # Microsoft Visual C++.
9980      # hardcode_libdir_flag_spec is actually meaningless, as there is
9981      # no search path for DLLs.
9982      case $cc_basename in
9983      cl*)
9984	# Native MSVC
9985	hardcode_libdir_flag_spec=' '
9986	allow_undefined_flag=unsupported
9987	always_export_symbols=yes
9988	file_list_spec='@'
9989	# Tell ltmain to make .lib files, not .a files.
9990	libext=lib
9991	# Tell ltmain to make .dll files, not .so files.
9992	shrext_cmds=.dll
9993	# FIXME: Setting linknames here is a bad hack.
9994	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9995	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9996            cp "$export_symbols" "$output_objdir/$soname.def";
9997            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9998          else
9999            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10000          fi~
10001          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10002          linknames='
10003	# The linker will not automatically build a static lib if we build a DLL.
10004	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10005	enable_shared_with_static_runtimes=yes
10006	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10007	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10008	# Don't use ranlib
10009	old_postinstall_cmds='chmod 644 $oldlib'
10010	postlink_cmds='lt_outputfile="@OUTPUT@"~
10011          lt_tool_outputfile="@TOOL_OUTPUT@"~
10012          case $lt_outputfile in
10013            *.exe|*.EXE) ;;
10014            *)
10015              lt_outputfile=$lt_outputfile.exe
10016              lt_tool_outputfile=$lt_tool_outputfile.exe
10017              ;;
10018          esac~
10019          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10020            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10021            $RM "$lt_outputfile.manifest";
10022          fi'
10023	;;
10024      *)
10025	# Assume MSVC wrapper
10026	hardcode_libdir_flag_spec=' '
10027	allow_undefined_flag=unsupported
10028	# Tell ltmain to make .lib files, not .a files.
10029	libext=lib
10030	# Tell ltmain to make .dll files, not .so files.
10031	shrext_cmds=.dll
10032	# FIXME: Setting linknames here is a bad hack.
10033	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10034	# The linker will automatically build a .lib file if we build a DLL.
10035	old_archive_from_new_cmds='true'
10036	# FIXME: Should let the user specify the lib program.
10037	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10038	enable_shared_with_static_runtimes=yes
10039	;;
10040      esac
10041      ;;
10042
10043    darwin* | rhapsody*)
10044
10045
10046  archive_cmds_need_lc=no
10047  hardcode_direct=no
10048  hardcode_automatic=yes
10049  hardcode_shlibpath_var=unsupported
10050  if test yes = "$lt_cv_ld_force_load"; then
10051    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10052
10053  else
10054    whole_archive_flag_spec=''
10055  fi
10056  link_all_deplibs=yes
10057  allow_undefined_flag=$_lt_dar_allow_undefined
10058  case $cc_basename in
10059     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10060     *) _lt_dar_can_shared=$GCC ;;
10061  esac
10062  if test yes = "$_lt_dar_can_shared"; then
10063    output_verbose_link_cmd=func_echo_all
10064    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10065    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10066    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"
10067    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"
10068
10069  else
10070  ld_shlibs=no
10071  fi
10072
10073      ;;
10074
10075    dgux*)
10076      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077      hardcode_libdir_flag_spec='-L$libdir'
10078      hardcode_shlibpath_var=no
10079      ;;
10080
10081    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10082    # support.  Future versions do this automatically, but an explicit c++rt0.o
10083    # does not break anything, and helps significantly (at the cost of a little
10084    # extra space).
10085    freebsd2.2*)
10086      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10087      hardcode_libdir_flag_spec='-R$libdir'
10088      hardcode_direct=yes
10089      hardcode_shlibpath_var=no
10090      ;;
10091
10092    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10093    freebsd2.*)
10094      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10095      hardcode_direct=yes
10096      hardcode_minus_L=yes
10097      hardcode_shlibpath_var=no
10098      ;;
10099
10100    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10101    freebsd* | dragonfly*)
10102      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10103      hardcode_libdir_flag_spec='-R$libdir'
10104      hardcode_direct=yes
10105      hardcode_shlibpath_var=no
10106      ;;
10107
10108    hpux9*)
10109      if test yes = "$GCC"; then
10110	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10111      else
10112	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10113      fi
10114      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10115      hardcode_libdir_separator=:
10116      hardcode_direct=yes
10117
10118      # hardcode_minus_L: Not really in the search PATH,
10119      # but as the default location of the library.
10120      hardcode_minus_L=yes
10121      export_dynamic_flag_spec='$wl-E'
10122      ;;
10123
10124    hpux10*)
10125      if test yes,no = "$GCC,$with_gnu_ld"; then
10126	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10127      else
10128	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10129      fi
10130      if test no = "$with_gnu_ld"; then
10131	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10132	hardcode_libdir_separator=:
10133	hardcode_direct=yes
10134	hardcode_direct_absolute=yes
10135	export_dynamic_flag_spec='$wl-E'
10136	# hardcode_minus_L: Not really in the search PATH,
10137	# but as the default location of the library.
10138	hardcode_minus_L=yes
10139      fi
10140      ;;
10141
10142    hpux11*)
10143      if test yes,no = "$GCC,$with_gnu_ld"; then
10144	case $host_cpu in
10145	hppa*64*)
10146	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10147	  ;;
10148	ia64*)
10149	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10150	  ;;
10151	*)
10152	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10153	  ;;
10154	esac
10155      else
10156	case $host_cpu in
10157	hppa*64*)
10158	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10159	  ;;
10160	ia64*)
10161	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10162	  ;;
10163	*)
10164
10165	  # Older versions of the 11.00 compiler do not understand -b yet
10166	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10167	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10168$as_echo_n "checking if $CC understands -b... " >&6; }
10169if ${lt_cv_prog_compiler__b+:} false; then :
10170  $as_echo_n "(cached) " >&6
10171else
10172  lt_cv_prog_compiler__b=no
10173   save_LDFLAGS=$LDFLAGS
10174   LDFLAGS="$LDFLAGS -b"
10175   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10176   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10177     # The linker can only warn and ignore the option if not recognized
10178     # So say no if there are warnings
10179     if test -s conftest.err; then
10180       # Append any errors to the config.log.
10181       cat conftest.err 1>&5
10182       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10183       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10184       if diff conftest.exp conftest.er2 >/dev/null; then
10185         lt_cv_prog_compiler__b=yes
10186       fi
10187     else
10188       lt_cv_prog_compiler__b=yes
10189     fi
10190   fi
10191   $RM -r conftest*
10192   LDFLAGS=$save_LDFLAGS
10193
10194fi
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10196$as_echo "$lt_cv_prog_compiler__b" >&6; }
10197
10198if test yes = "$lt_cv_prog_compiler__b"; then
10199    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10200else
10201    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10202fi
10203
10204	  ;;
10205	esac
10206      fi
10207      if test no = "$with_gnu_ld"; then
10208	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10209	hardcode_libdir_separator=:
10210
10211	case $host_cpu in
10212	hppa*64*|ia64*)
10213	  hardcode_direct=no
10214	  hardcode_shlibpath_var=no
10215	  ;;
10216	*)
10217	  hardcode_direct=yes
10218	  hardcode_direct_absolute=yes
10219	  export_dynamic_flag_spec='$wl-E'
10220
10221	  # hardcode_minus_L: Not really in the search PATH,
10222	  # but as the default location of the library.
10223	  hardcode_minus_L=yes
10224	  ;;
10225	esac
10226      fi
10227      ;;
10228
10229    irix5* | irix6* | nonstopux*)
10230      if test yes = "$GCC"; then
10231	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10232	# Try to use the -exported_symbol ld option, if it does not
10233	# work, assume that -exports_file does not work either and
10234	# implicitly export all symbols.
10235	# This should be the same for all languages, so no per-tag cache variable.
10236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10237$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10238if ${lt_cv_irix_exported_symbol+:} false; then :
10239  $as_echo_n "(cached) " >&6
10240else
10241  save_LDFLAGS=$LDFLAGS
10242	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10243	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244/* end confdefs.h.  */
10245int foo (void) { return 0; }
10246_ACEOF
10247if ac_fn_c_try_link "$LINENO"; then :
10248  lt_cv_irix_exported_symbol=yes
10249else
10250  lt_cv_irix_exported_symbol=no
10251fi
10252rm -f core conftest.err conftest.$ac_objext \
10253    conftest$ac_exeext conftest.$ac_ext
10254           LDFLAGS=$save_LDFLAGS
10255fi
10256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10257$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10258	if test yes = "$lt_cv_irix_exported_symbol"; then
10259          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10260	fi
10261      else
10262	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10263	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10264      fi
10265      archive_cmds_need_lc='no'
10266      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10267      hardcode_libdir_separator=:
10268      inherit_rpath=yes
10269      link_all_deplibs=yes
10270      ;;
10271
10272    linux*)
10273      case $cc_basename in
10274      tcc*)
10275	# Fabrice Bellard et al's Tiny C Compiler
10276	ld_shlibs=yes
10277	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10278	;;
10279      esac
10280      ;;
10281
10282    netbsd*)
10283      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10284	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10285      else
10286	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10287      fi
10288      hardcode_libdir_flag_spec='-R$libdir'
10289      hardcode_direct=yes
10290      hardcode_shlibpath_var=no
10291      ;;
10292
10293    newsos6)
10294      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295      hardcode_direct=yes
10296      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10297      hardcode_libdir_separator=:
10298      hardcode_shlibpath_var=no
10299      ;;
10300
10301    *nto* | *qnx*)
10302      ;;
10303
10304    openbsd* | bitrig*)
10305      if test -f /usr/libexec/ld.so; then
10306	hardcode_direct=yes
10307	hardcode_shlibpath_var=no
10308	hardcode_direct_absolute=yes
10309	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10310	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10311	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10312	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10313	  export_dynamic_flag_spec='$wl-E'
10314	else
10315	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10316	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10317	fi
10318      else
10319	ld_shlibs=no
10320      fi
10321      ;;
10322
10323    os2*)
10324      hardcode_libdir_flag_spec='-L$libdir'
10325      hardcode_minus_L=yes
10326      allow_undefined_flag=unsupported
10327      shrext_cmds=.dll
10328      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10329	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10330	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10331	$ECHO EXPORTS >> $output_objdir/$libname.def~
10332	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10333	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10334	emximp -o $lib $output_objdir/$libname.def'
10335      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10336	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10337	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10338	$ECHO EXPORTS >> $output_objdir/$libname.def~
10339	prefix_cmds="$SED"~
10340	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10341	  prefix_cmds="$prefix_cmds -e 1d";
10342	fi~
10343	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10344	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10345	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10346	emximp -o $lib $output_objdir/$libname.def'
10347      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10348      enable_shared_with_static_runtimes=yes
10349      ;;
10350
10351    osf3*)
10352      if test yes = "$GCC"; then
10353	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10354	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10355      else
10356	allow_undefined_flag=' -expect_unresolved \*'
10357	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10358      fi
10359      archive_cmds_need_lc='no'
10360      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10361      hardcode_libdir_separator=:
10362      ;;
10363
10364    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10365      if test yes = "$GCC"; then
10366	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10367	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10368	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10369      else
10370	allow_undefined_flag=' -expect_unresolved \*'
10371	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10372	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~
10373          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10374
10375	# Both c and cxx compiler support -rpath directly
10376	hardcode_libdir_flag_spec='-rpath $libdir'
10377      fi
10378      archive_cmds_need_lc='no'
10379      hardcode_libdir_separator=:
10380      ;;
10381
10382    solaris*)
10383      no_undefined_flag=' -z defs'
10384      if test yes = "$GCC"; then
10385	wlarc='$wl'
10386	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10387	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10388          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10389      else
10390	case `$CC -V 2>&1` in
10391	*"Compilers 5.0"*)
10392	  wlarc=''
10393	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10394	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10395            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10396	  ;;
10397	*)
10398	  wlarc='$wl'
10399	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10400	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10401            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10402	  ;;
10403	esac
10404      fi
10405      hardcode_libdir_flag_spec='-R$libdir'
10406      hardcode_shlibpath_var=no
10407      case $host_os in
10408      solaris2.[0-5] | solaris2.[0-5].*) ;;
10409      *)
10410	# The compiler driver will combine and reorder linker options,
10411	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10412	# but is careful enough not to reorder.
10413	# Supported since Solaris 2.6 (maybe 2.5.1?)
10414	if test yes = "$GCC"; then
10415	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10416	else
10417	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10418	fi
10419	;;
10420      esac
10421      link_all_deplibs=yes
10422      ;;
10423
10424    sunos4*)
10425      if test sequent = "$host_vendor"; then
10426	# Use $CC to link under sequent, because it throws in some extra .o
10427	# files that make .init and .fini sections work.
10428	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10429      else
10430	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10431      fi
10432      hardcode_libdir_flag_spec='-L$libdir'
10433      hardcode_direct=yes
10434      hardcode_minus_L=yes
10435      hardcode_shlibpath_var=no
10436      ;;
10437
10438    sysv4)
10439      case $host_vendor in
10440	sni)
10441	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10442	  hardcode_direct=yes # is this really true???
10443	;;
10444	siemens)
10445	  ## LD is ld it makes a PLAMLIB
10446	  ## CC just makes a GrossModule.
10447	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10448	  reload_cmds='$CC -r -o $output$reload_objs'
10449	  hardcode_direct=no
10450        ;;
10451	motorola)
10452	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10453	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10454	;;
10455      esac
10456      runpath_var='LD_RUN_PATH'
10457      hardcode_shlibpath_var=no
10458      ;;
10459
10460    sysv4.3*)
10461      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10462      hardcode_shlibpath_var=no
10463      export_dynamic_flag_spec='-Bexport'
10464      ;;
10465
10466    sysv4*MP*)
10467      if test -d /usr/nec; then
10468	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469	hardcode_shlibpath_var=no
10470	runpath_var=LD_RUN_PATH
10471	hardcode_runpath_var=yes
10472	ld_shlibs=yes
10473      fi
10474      ;;
10475
10476    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10477      no_undefined_flag='$wl-z,text'
10478      archive_cmds_need_lc=no
10479      hardcode_shlibpath_var=no
10480      runpath_var='LD_RUN_PATH'
10481
10482      if test yes = "$GCC"; then
10483	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485      else
10486	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10487	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10488      fi
10489      ;;
10490
10491    sysv5* | sco3.2v5* | sco5v6*)
10492      # Note: We CANNOT use -z defs as we might desire, because we do not
10493      # link with -lc, and that would cause any symbols used from libc to
10494      # always be unresolved, which means just about no library would
10495      # ever link correctly.  If we're not using GNU ld we use -z text
10496      # though, which does catch some bad symbols but isn't as heavy-handed
10497      # as -z defs.
10498      no_undefined_flag='$wl-z,text'
10499      allow_undefined_flag='$wl-z,nodefs'
10500      archive_cmds_need_lc=no
10501      hardcode_shlibpath_var=no
10502      hardcode_libdir_flag_spec='$wl-R,$libdir'
10503      hardcode_libdir_separator=':'
10504      link_all_deplibs=yes
10505      export_dynamic_flag_spec='$wl-Bexport'
10506      runpath_var='LD_RUN_PATH'
10507
10508      if test yes = "$GCC"; then
10509	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10510	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10511      else
10512	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10513	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10514      fi
10515      ;;
10516
10517    uts4*)
10518      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519      hardcode_libdir_flag_spec='-L$libdir'
10520      hardcode_shlibpath_var=no
10521      ;;
10522
10523    *)
10524      ld_shlibs=no
10525      ;;
10526    esac
10527
10528    if test sni = "$host_vendor"; then
10529      case $host in
10530      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10531	export_dynamic_flag_spec='$wl-Blargedynsym'
10532	;;
10533      esac
10534    fi
10535  fi
10536
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10538$as_echo "$ld_shlibs" >&6; }
10539test no = "$ld_shlibs" && can_build_shared=no
10540
10541with_gnu_ld=$with_gnu_ld
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557#
10558# Do we need to explicitly link libc?
10559#
10560case "x$archive_cmds_need_lc" in
10561x|xyes)
10562  # Assume -lc should be added
10563  archive_cmds_need_lc=yes
10564
10565  if test yes,yes = "$GCC,$enable_shared"; then
10566    case $archive_cmds in
10567    *'~'*)
10568      # FIXME: we may have to deal with multi-command sequences.
10569      ;;
10570    '$CC '*)
10571      # Test whether the compiler implicitly links with -lc since on some
10572      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10573      # to ld, don't add -lc before -lgcc.
10574      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10575$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10576if ${lt_cv_archive_cmds_need_lc+:} false; then :
10577  $as_echo_n "(cached) " >&6
10578else
10579  $RM conftest*
10580	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10581
10582	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10583  (eval $ac_compile) 2>&5
10584  ac_status=$?
10585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10586  test $ac_status = 0; } 2>conftest.err; then
10587	  soname=conftest
10588	  lib=conftest
10589	  libobjs=conftest.$ac_objext
10590	  deplibs=
10591	  wl=$lt_prog_compiler_wl
10592	  pic_flag=$lt_prog_compiler_pic
10593	  compiler_flags=-v
10594	  linker_flags=-v
10595	  verstring=
10596	  output_objdir=.
10597	  libname=conftest
10598	  lt_save_allow_undefined_flag=$allow_undefined_flag
10599	  allow_undefined_flag=
10600	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10601  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10602  ac_status=$?
10603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10604  test $ac_status = 0; }
10605	  then
10606	    lt_cv_archive_cmds_need_lc=no
10607	  else
10608	    lt_cv_archive_cmds_need_lc=yes
10609	  fi
10610	  allow_undefined_flag=$lt_save_allow_undefined_flag
10611	else
10612	  cat conftest.err 1>&5
10613	fi
10614	$RM conftest*
10615
10616fi
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10618$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10619      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10620      ;;
10621    esac
10622  fi
10623  ;;
10624esac
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10778$as_echo_n "checking dynamic linker characteristics... " >&6; }
10779
10780if test yes = "$GCC"; then
10781  case $host_os in
10782    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10783    *) lt_awk_arg='/^libraries:/' ;;
10784  esac
10785  case $host_os in
10786    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10787    *) lt_sed_strip_eq='s|=/|/|g' ;;
10788  esac
10789  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10790  case $lt_search_path_spec in
10791  *\;*)
10792    # if the path contains ";" then we assume it to be the separator
10793    # otherwise default to the standard path separator (i.e. ":") - it is
10794    # assumed that no part of a normal pathname contains ";" but that should
10795    # okay in the real world where ";" in dirpaths is itself problematic.
10796    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10797    ;;
10798  *)
10799    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10800    ;;
10801  esac
10802  # Ok, now we have the path, separated by spaces, we can step through it
10803  # and add multilib dir if necessary...
10804  lt_tmp_lt_search_path_spec=
10805  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10806  # ...but if some path component already ends with the multilib dir we assume
10807  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10808  case "$lt_multi_os_dir; $lt_search_path_spec " in
10809  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10810    lt_multi_os_dir=
10811    ;;
10812  esac
10813  for lt_sys_path in $lt_search_path_spec; do
10814    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10815      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10816    elif test -n "$lt_multi_os_dir"; then
10817      test -d "$lt_sys_path" && \
10818	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10819    fi
10820  done
10821  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10822BEGIN {RS = " "; FS = "/|\n";} {
10823  lt_foo = "";
10824  lt_count = 0;
10825  for (lt_i = NF; lt_i > 0; lt_i--) {
10826    if ($lt_i != "" && $lt_i != ".") {
10827      if ($lt_i == "..") {
10828        lt_count++;
10829      } else {
10830        if (lt_count == 0) {
10831          lt_foo = "/" $lt_i lt_foo;
10832        } else {
10833          lt_count--;
10834        }
10835      }
10836    }
10837  }
10838  if (lt_foo != "") { lt_freq[lt_foo]++; }
10839  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10840}'`
10841  # AWK program above erroneously prepends '/' to C:/dos/paths
10842  # for these hosts.
10843  case $host_os in
10844    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10845      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10846  esac
10847  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10848else
10849  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10850fi
10851library_names_spec=
10852libname_spec='lib$name'
10853soname_spec=
10854shrext_cmds=.so
10855postinstall_cmds=
10856postuninstall_cmds=
10857finish_cmds=
10858finish_eval=
10859shlibpath_var=
10860shlibpath_overrides_runpath=unknown
10861version_type=none
10862dynamic_linker="$host_os ld.so"
10863sys_lib_dlsearch_path_spec="/lib /usr/lib"
10864need_lib_prefix=unknown
10865hardcode_into_libs=no
10866
10867# when you set need_version to no, make sure it does not cause -set_version
10868# flags to be left without arguments
10869need_version=unknown
10870
10871
10872
10873case $host_os in
10874aix3*)
10875  version_type=linux # correct to gnu/linux during the next big refactor
10876  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10877  shlibpath_var=LIBPATH
10878
10879  # AIX 3 has no versioning support, so we append a major version to the name.
10880  soname_spec='$libname$release$shared_ext$major'
10881  ;;
10882
10883aix[4-9]*)
10884  version_type=linux # correct to gnu/linux during the next big refactor
10885  need_lib_prefix=no
10886  need_version=no
10887  hardcode_into_libs=yes
10888  if test ia64 = "$host_cpu"; then
10889    # AIX 5 supports IA64
10890    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10891    shlibpath_var=LD_LIBRARY_PATH
10892  else
10893    # With GCC up to 2.95.x, collect2 would create an import file
10894    # for dependence libraries.  The import file would start with
10895    # the line '#! .'.  This would cause the generated library to
10896    # depend on '.', always an invalid library.  This was fixed in
10897    # development snapshots of GCC prior to 3.0.
10898    case $host_os in
10899      aix4 | aix4.[01] | aix4.[01].*)
10900      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10901	   echo ' yes '
10902	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10903	:
10904      else
10905	can_build_shared=no
10906      fi
10907      ;;
10908    esac
10909    # Using Import Files as archive members, it is possible to support
10910    # filename-based versioning of shared library archives on AIX. While
10911    # this would work for both with and without runtime linking, it will
10912    # prevent static linking of such archives. So we do filename-based
10913    # shared library versioning with .so extension only, which is used
10914    # when both runtime linking and shared linking is enabled.
10915    # Unfortunately, runtime linking may impact performance, so we do
10916    # not want this to be the default eventually. Also, we use the
10917    # versioned .so libs for executables only if there is the -brtl
10918    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10919    # To allow for filename-based versioning support, we need to create
10920    # libNAME.so.V as an archive file, containing:
10921    # *) an Import File, referring to the versioned filename of the
10922    #    archive as well as the shared archive member, telling the
10923    #    bitwidth (32 or 64) of that shared object, and providing the
10924    #    list of exported symbols of that shared object, eventually
10925    #    decorated with the 'weak' keyword
10926    # *) the shared object with the F_LOADONLY flag set, to really avoid
10927    #    it being seen by the linker.
10928    # At run time we better use the real file rather than another symlink,
10929    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10930
10931    case $with_aix_soname,$aix_use_runtimelinking in
10932    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10933    # soname into executable. Probably we can add versioning support to
10934    # collect2, so additional links can be useful in future.
10935    aix,yes) # traditional libtool
10936      dynamic_linker='AIX unversionable lib.so'
10937      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10938      # instead of lib<name>.a to let people know that these are not
10939      # typical AIX shared libraries.
10940      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10941      ;;
10942    aix,no) # traditional AIX only
10943      dynamic_linker='AIX lib.a(lib.so.V)'
10944      # We preserve .a as extension for shared libraries through AIX4.2
10945      # and later when we are not doing run time linking.
10946      library_names_spec='$libname$release.a $libname.a'
10947      soname_spec='$libname$release$shared_ext$major'
10948      ;;
10949    svr4,*) # full svr4 only
10950      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10951      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10952      # We do not specify a path in Import Files, so LIBPATH fires.
10953      shlibpath_overrides_runpath=yes
10954      ;;
10955    *,yes) # both, prefer svr4
10956      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10957      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10958      # unpreferred sharedlib libNAME.a needs extra handling
10959      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10960      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10961      # We do not specify a path in Import Files, so LIBPATH fires.
10962      shlibpath_overrides_runpath=yes
10963      ;;
10964    *,no) # both, prefer aix
10965      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10966      library_names_spec='$libname$release.a $libname.a'
10967      soname_spec='$libname$release$shared_ext$major'
10968      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10969      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10970      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10971      ;;
10972    esac
10973    shlibpath_var=LIBPATH
10974  fi
10975  ;;
10976
10977amigaos*)
10978  case $host_cpu in
10979  powerpc)
10980    # Since July 2007 AmigaOS4 officially supports .so libraries.
10981    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10982    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10983    ;;
10984  m68k)
10985    library_names_spec='$libname.ixlibrary $libname.a'
10986    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10987    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10988    ;;
10989  esac
10990  ;;
10991
10992beos*)
10993  library_names_spec='$libname$shared_ext'
10994  dynamic_linker="$host_os ld.so"
10995  shlibpath_var=LIBRARY_PATH
10996  ;;
10997
10998bsdi[45]*)
10999  version_type=linux # correct to gnu/linux during the next big refactor
11000  need_version=no
11001  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11002  soname_spec='$libname$release$shared_ext$major'
11003  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11004  shlibpath_var=LD_LIBRARY_PATH
11005  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11006  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11007  # the default ld.so.conf also contains /usr/contrib/lib and
11008  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11009  # libtool to hard-code these into programs
11010  ;;
11011
11012cygwin* | mingw* | pw32* | cegcc*)
11013  version_type=windows
11014  shrext_cmds=.dll
11015  need_version=no
11016  need_lib_prefix=no
11017
11018  case $GCC,$cc_basename in
11019  yes,*)
11020    # gcc
11021    library_names_spec='$libname.dll.a'
11022    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11023    postinstall_cmds='base_file=`basename \$file`~
11024      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11025      dldir=$destdir/`dirname \$dlpath`~
11026      test -d \$dldir || mkdir -p \$dldir~
11027      $install_prog $dir/$dlname \$dldir/$dlname~
11028      chmod a+x \$dldir/$dlname~
11029      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11030        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11031      fi'
11032    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11033      dlpath=$dir/\$dldll~
11034       $RM \$dlpath'
11035    shlibpath_overrides_runpath=yes
11036
11037    case $host_os in
11038    cygwin*)
11039      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11040      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11041
11042      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11043      ;;
11044    mingw* | cegcc*)
11045      # MinGW DLLs use traditional 'lib' prefix
11046      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11047      ;;
11048    pw32*)
11049      # pw32 DLLs use 'pw' prefix rather than 'lib'
11050      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11051      ;;
11052    esac
11053    dynamic_linker='Win32 ld.exe'
11054    ;;
11055
11056  *,cl*)
11057    # Native MSVC
11058    libname_spec='$name'
11059    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11060    library_names_spec='$libname.dll.lib'
11061
11062    case $build_os in
11063    mingw*)
11064      sys_lib_search_path_spec=
11065      lt_save_ifs=$IFS
11066      IFS=';'
11067      for lt_path in $LIB
11068      do
11069        IFS=$lt_save_ifs
11070        # Let DOS variable expansion print the short 8.3 style file name.
11071        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11072        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11073      done
11074      IFS=$lt_save_ifs
11075      # Convert to MSYS style.
11076      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11077      ;;
11078    cygwin*)
11079      # Convert to unix form, then to dos form, then back to unix form
11080      # but this time dos style (no spaces!) so that the unix form looks
11081      # like /cygdrive/c/PROGRA~1:/cygdr...
11082      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11083      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11084      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11085      ;;
11086    *)
11087      sys_lib_search_path_spec=$LIB
11088      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11089        # It is most probably a Windows format PATH.
11090        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11091      else
11092        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11093      fi
11094      # FIXME: find the short name or the path components, as spaces are
11095      # common. (e.g. "Program Files" -> "PROGRA~1")
11096      ;;
11097    esac
11098
11099    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11100    postinstall_cmds='base_file=`basename \$file`~
11101      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11102      dldir=$destdir/`dirname \$dlpath`~
11103      test -d \$dldir || mkdir -p \$dldir~
11104      $install_prog $dir/$dlname \$dldir/$dlname'
11105    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11106      dlpath=$dir/\$dldll~
11107       $RM \$dlpath'
11108    shlibpath_overrides_runpath=yes
11109    dynamic_linker='Win32 link.exe'
11110    ;;
11111
11112  *)
11113    # Assume MSVC wrapper
11114    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11115    dynamic_linker='Win32 ld.exe'
11116    ;;
11117  esac
11118  # FIXME: first we should search . and the directory the executable is in
11119  shlibpath_var=PATH
11120  ;;
11121
11122darwin* | rhapsody*)
11123  dynamic_linker="$host_os dyld"
11124  version_type=darwin
11125  need_lib_prefix=no
11126  need_version=no
11127  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11128  soname_spec='$libname$release$major$shared_ext'
11129  shlibpath_overrides_runpath=yes
11130  shlibpath_var=DYLD_LIBRARY_PATH
11131  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11132
11133  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11134  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11135  ;;
11136
11137dgux*)
11138  version_type=linux # correct to gnu/linux during the next big refactor
11139  need_lib_prefix=no
11140  need_version=no
11141  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142  soname_spec='$libname$release$shared_ext$major'
11143  shlibpath_var=LD_LIBRARY_PATH
11144  ;;
11145
11146freebsd* | dragonfly*)
11147  # DragonFly does not have aout.  When/if they implement a new
11148  # versioning mechanism, adjust this.
11149  if test -x /usr/bin/objformat; then
11150    objformat=`/usr/bin/objformat`
11151  else
11152    case $host_os in
11153    freebsd[23].*) objformat=aout ;;
11154    *) objformat=elf ;;
11155    esac
11156  fi
11157  version_type=freebsd-$objformat
11158  case $version_type in
11159    freebsd-elf*)
11160      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161      soname_spec='$libname$release$shared_ext$major'
11162      need_version=no
11163      need_lib_prefix=no
11164      ;;
11165    freebsd-*)
11166      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11167      need_version=yes
11168      ;;
11169  esac
11170  shlibpath_var=LD_LIBRARY_PATH
11171  case $host_os in
11172  freebsd2.*)
11173    shlibpath_overrides_runpath=yes
11174    ;;
11175  freebsd3.[01]* | freebsdelf3.[01]*)
11176    shlibpath_overrides_runpath=yes
11177    hardcode_into_libs=yes
11178    ;;
11179  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11180  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11181    shlibpath_overrides_runpath=no
11182    hardcode_into_libs=yes
11183    ;;
11184  *) # from 4.6 on, and DragonFly
11185    shlibpath_overrides_runpath=yes
11186    hardcode_into_libs=yes
11187    ;;
11188  esac
11189  ;;
11190
11191haiku*)
11192  version_type=linux # correct to gnu/linux during the next big refactor
11193  need_lib_prefix=no
11194  need_version=no
11195  dynamic_linker="$host_os runtime_loader"
11196  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11197  soname_spec='$libname$release$shared_ext$major'
11198  shlibpath_var=LIBRARY_PATH
11199  shlibpath_overrides_runpath=no
11200  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11201  hardcode_into_libs=yes
11202  ;;
11203
11204hpux9* | hpux10* | hpux11*)
11205  # Give a soname corresponding to the major version so that dld.sl refuses to
11206  # link against other versions.
11207  version_type=sunos
11208  need_lib_prefix=no
11209  need_version=no
11210  case $host_cpu in
11211  ia64*)
11212    shrext_cmds='.so'
11213    hardcode_into_libs=yes
11214    dynamic_linker="$host_os dld.so"
11215    shlibpath_var=LD_LIBRARY_PATH
11216    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11217    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11218    soname_spec='$libname$release$shared_ext$major'
11219    if test 32 = "$HPUX_IA64_MODE"; then
11220      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11221      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11222    else
11223      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11224      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11225    fi
11226    ;;
11227  hppa*64*)
11228    shrext_cmds='.sl'
11229    hardcode_into_libs=yes
11230    dynamic_linker="$host_os dld.sl"
11231    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11232    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11233    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11234    soname_spec='$libname$release$shared_ext$major'
11235    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11236    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11237    ;;
11238  *)
11239    shrext_cmds='.sl'
11240    dynamic_linker="$host_os dld.sl"
11241    shlibpath_var=SHLIB_PATH
11242    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11243    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11244    soname_spec='$libname$release$shared_ext$major'
11245    ;;
11246  esac
11247  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11248  postinstall_cmds='chmod 555 $lib'
11249  # or fails outright, so override atomically:
11250  install_override_mode=555
11251  ;;
11252
11253interix[3-9]*)
11254  version_type=linux # correct to gnu/linux during the next big refactor
11255  need_lib_prefix=no
11256  need_version=no
11257  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11258  soname_spec='$libname$release$shared_ext$major'
11259  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11260  shlibpath_var=LD_LIBRARY_PATH
11261  shlibpath_overrides_runpath=no
11262  hardcode_into_libs=yes
11263  ;;
11264
11265irix5* | irix6* | nonstopux*)
11266  case $host_os in
11267    nonstopux*) version_type=nonstopux ;;
11268    *)
11269	if test yes = "$lt_cv_prog_gnu_ld"; then
11270		version_type=linux # correct to gnu/linux during the next big refactor
11271	else
11272		version_type=irix
11273	fi ;;
11274  esac
11275  need_lib_prefix=no
11276  need_version=no
11277  soname_spec='$libname$release$shared_ext$major'
11278  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11279  case $host_os in
11280  irix5* | nonstopux*)
11281    libsuff= shlibsuff=
11282    ;;
11283  *)
11284    case $LD in # libtool.m4 will add one of these switches to LD
11285    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11286      libsuff= shlibsuff= libmagic=32-bit;;
11287    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11288      libsuff=32 shlibsuff=N32 libmagic=N32;;
11289    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11290      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11291    *) libsuff= shlibsuff= libmagic=never-match;;
11292    esac
11293    ;;
11294  esac
11295  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11296  shlibpath_overrides_runpath=no
11297  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11298  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11299  hardcode_into_libs=yes
11300  ;;
11301
11302# No shared lib support for Linux oldld, aout, or coff.
11303linux*oldld* | linux*aout* | linux*coff*)
11304  dynamic_linker=no
11305  ;;
11306
11307linux*android*)
11308  version_type=none # Android doesn't support versioned libraries.
11309  need_lib_prefix=no
11310  need_version=no
11311  library_names_spec='$libname$release$shared_ext'
11312  soname_spec='$libname$release$shared_ext'
11313  finish_cmds=
11314  shlibpath_var=LD_LIBRARY_PATH
11315  shlibpath_overrides_runpath=yes
11316
11317  # This implies no fast_install, which is unacceptable.
11318  # Some rework will be needed to allow for fast_install
11319  # before this can be enabled.
11320  hardcode_into_libs=yes
11321
11322  dynamic_linker='Android linker'
11323  # Don't embed -rpath directories since the linker doesn't support them.
11324  hardcode_libdir_flag_spec='-L$libdir'
11325  ;;
11326
11327# This must be glibc/ELF.
11328linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11329  version_type=linux # correct to gnu/linux during the next big refactor
11330  need_lib_prefix=no
11331  need_version=no
11332  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11333  soname_spec='$libname$release$shared_ext$major'
11334  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11335  shlibpath_var=LD_LIBRARY_PATH
11336  shlibpath_overrides_runpath=no
11337
11338  # Some binutils ld are patched to set DT_RUNPATH
11339  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11340  $as_echo_n "(cached) " >&6
11341else
11342  lt_cv_shlibpath_overrides_runpath=no
11343    save_LDFLAGS=$LDFLAGS
11344    save_libdir=$libdir
11345    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11346	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11347    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348/* end confdefs.h.  */
11349
11350int
11351main ()
11352{
11353
11354  ;
11355  return 0;
11356}
11357_ACEOF
11358if ac_fn_c_try_link "$LINENO"; then :
11359  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11360  lt_cv_shlibpath_overrides_runpath=yes
11361fi
11362fi
11363rm -f core conftest.err conftest.$ac_objext \
11364    conftest$ac_exeext conftest.$ac_ext
11365    LDFLAGS=$save_LDFLAGS
11366    libdir=$save_libdir
11367
11368fi
11369
11370  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11371
11372  # This implies no fast_install, which is unacceptable.
11373  # Some rework will be needed to allow for fast_install
11374  # before this can be enabled.
11375  hardcode_into_libs=yes
11376
11377  # Add ABI-specific directories to the system library path.
11378  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11379
11380  # Ideally, we could use ldconfig to report *all* directores which are
11381  # searched for libraries, however this is still not possible.  Aside from not
11382  # being certain /sbin/ldconfig is available, command
11383  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11384  # even though it is searched at run-time.  Try to do the best guess by
11385  # appending ld.so.conf contents (and includes) to the search path.
11386  if test -f /etc/ld.so.conf; then
11387    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;s/"//g;/^$/d' | tr '\n' ' '`
11388    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11389  fi
11390
11391  # We used to test for /lib/ld.so.1 and disable shared libraries on
11392  # powerpc, because MkLinux only supported shared libraries with the
11393  # GNU dynamic linker.  Since this was broken with cross compilers,
11394  # most powerpc-linux boxes support dynamic linking these days and
11395  # people can always --disable-shared, the test was removed, and we
11396  # assume the GNU/Linux dynamic linker is in use.
11397  dynamic_linker='GNU/Linux ld.so'
11398  ;;
11399
11400netbsd*)
11401  version_type=sunos
11402  need_lib_prefix=no
11403  need_version=no
11404  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11405    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11406    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11407    dynamic_linker='NetBSD (a.out) ld.so'
11408  else
11409    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11410    soname_spec='$libname$release$shared_ext$major'
11411    dynamic_linker='NetBSD ld.elf_so'
11412  fi
11413  shlibpath_var=LD_LIBRARY_PATH
11414  shlibpath_overrides_runpath=yes
11415  hardcode_into_libs=yes
11416  ;;
11417
11418newsos6)
11419  version_type=linux # correct to gnu/linux during the next big refactor
11420  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11421  shlibpath_var=LD_LIBRARY_PATH
11422  shlibpath_overrides_runpath=yes
11423  ;;
11424
11425*nto* | *qnx*)
11426  version_type=qnx
11427  need_lib_prefix=no
11428  need_version=no
11429  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11430  soname_spec='$libname$release$shared_ext$major'
11431  shlibpath_var=LD_LIBRARY_PATH
11432  shlibpath_overrides_runpath=no
11433  hardcode_into_libs=yes
11434  dynamic_linker='ldqnx.so'
11435  ;;
11436
11437openbsd* | bitrig*)
11438  version_type=sunos
11439  sys_lib_dlsearch_path_spec=/usr/lib
11440  need_lib_prefix=no
11441  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11442    need_version=no
11443  else
11444    need_version=yes
11445  fi
11446  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11447  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11448  shlibpath_var=LD_LIBRARY_PATH
11449  shlibpath_overrides_runpath=yes
11450  ;;
11451
11452os2*)
11453  libname_spec='$name'
11454  version_type=windows
11455  shrext_cmds=.dll
11456  need_version=no
11457  need_lib_prefix=no
11458  # OS/2 can only load a DLL with a base name of 8 characters or less.
11459  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11460    v=$($ECHO $release$versuffix | tr -d .-);
11461    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11462    $ECHO $n$v`$shared_ext'
11463  library_names_spec='${libname}_dll.$libext'
11464  dynamic_linker='OS/2 ld.exe'
11465  shlibpath_var=BEGINLIBPATH
11466  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11467  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11468  postinstall_cmds='base_file=`basename \$file`~
11469    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11470    dldir=$destdir/`dirname \$dlpath`~
11471    test -d \$dldir || mkdir -p \$dldir~
11472    $install_prog $dir/$dlname \$dldir/$dlname~
11473    chmod a+x \$dldir/$dlname~
11474    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11475      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11476    fi'
11477  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11478    dlpath=$dir/\$dldll~
11479    $RM \$dlpath'
11480  ;;
11481
11482osf3* | osf4* | osf5*)
11483  version_type=osf
11484  need_lib_prefix=no
11485  need_version=no
11486  soname_spec='$libname$release$shared_ext$major'
11487  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11488  shlibpath_var=LD_LIBRARY_PATH
11489  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11490  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11491  ;;
11492
11493rdos*)
11494  dynamic_linker=no
11495  ;;
11496
11497solaris*)
11498  version_type=linux # correct to gnu/linux during the next big refactor
11499  need_lib_prefix=no
11500  need_version=no
11501  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11502  soname_spec='$libname$release$shared_ext$major'
11503  shlibpath_var=LD_LIBRARY_PATH
11504  shlibpath_overrides_runpath=yes
11505  hardcode_into_libs=yes
11506  # ldd complains unless libraries are executable
11507  postinstall_cmds='chmod +x $lib'
11508  ;;
11509
11510sunos4*)
11511  version_type=sunos
11512  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11513  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11514  shlibpath_var=LD_LIBRARY_PATH
11515  shlibpath_overrides_runpath=yes
11516  if test yes = "$with_gnu_ld"; then
11517    need_lib_prefix=no
11518  fi
11519  need_version=yes
11520  ;;
11521
11522sysv4 | sysv4.3*)
11523  version_type=linux # correct to gnu/linux during the next big refactor
11524  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11525  soname_spec='$libname$release$shared_ext$major'
11526  shlibpath_var=LD_LIBRARY_PATH
11527  case $host_vendor in
11528    sni)
11529      shlibpath_overrides_runpath=no
11530      need_lib_prefix=no
11531      runpath_var=LD_RUN_PATH
11532      ;;
11533    siemens)
11534      need_lib_prefix=no
11535      ;;
11536    motorola)
11537      need_lib_prefix=no
11538      need_version=no
11539      shlibpath_overrides_runpath=no
11540      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11541      ;;
11542  esac
11543  ;;
11544
11545sysv4*MP*)
11546  if test -d /usr/nec; then
11547    version_type=linux # correct to gnu/linux during the next big refactor
11548    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11549    soname_spec='$libname$shared_ext.$major'
11550    shlibpath_var=LD_LIBRARY_PATH
11551  fi
11552  ;;
11553
11554sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11555  version_type=sco
11556  need_lib_prefix=no
11557  need_version=no
11558  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11559  soname_spec='$libname$release$shared_ext$major'
11560  shlibpath_var=LD_LIBRARY_PATH
11561  shlibpath_overrides_runpath=yes
11562  hardcode_into_libs=yes
11563  if test yes = "$with_gnu_ld"; then
11564    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11565  else
11566    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11567    case $host_os in
11568      sco3.2v5*)
11569        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11570	;;
11571    esac
11572  fi
11573  sys_lib_dlsearch_path_spec='/usr/lib'
11574  ;;
11575
11576tpf*)
11577  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11578  version_type=linux # correct to gnu/linux during the next big refactor
11579  need_lib_prefix=no
11580  need_version=no
11581  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11582  shlibpath_var=LD_LIBRARY_PATH
11583  shlibpath_overrides_runpath=no
11584  hardcode_into_libs=yes
11585  ;;
11586
11587uts4*)
11588  version_type=linux # correct to gnu/linux during the next big refactor
11589  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11590  soname_spec='$libname$release$shared_ext$major'
11591  shlibpath_var=LD_LIBRARY_PATH
11592  ;;
11593
11594*)
11595  dynamic_linker=no
11596  ;;
11597esac
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11599$as_echo "$dynamic_linker" >&6; }
11600test no = "$dynamic_linker" && can_build_shared=no
11601
11602variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11603if test yes = "$GCC"; then
11604  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11605fi
11606
11607if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11608  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11609fi
11610
11611if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11612  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11613fi
11614
11615# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11616configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11617
11618# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11619func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11620
11621# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11622configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11721$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11722hardcode_action=
11723if test -n "$hardcode_libdir_flag_spec" ||
11724   test -n "$runpath_var" ||
11725   test yes = "$hardcode_automatic"; then
11726
11727  # We can hardcode non-existent directories.
11728  if test no != "$hardcode_direct" &&
11729     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11730     # have to relink, otherwise we might link with an installed library
11731     # when we should be linking with a yet-to-be-installed one
11732     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11733     test no != "$hardcode_minus_L"; then
11734    # Linking always hardcodes the temporary library directory.
11735    hardcode_action=relink
11736  else
11737    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11738    hardcode_action=immediate
11739  fi
11740else
11741  # We cannot hardcode anything, or else we can only hardcode existing
11742  # directories.
11743  hardcode_action=unsupported
11744fi
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11746$as_echo "$hardcode_action" >&6; }
11747
11748if test relink = "$hardcode_action" ||
11749   test yes = "$inherit_rpath"; then
11750  # Fast installation is not supported
11751  enable_fast_install=no
11752elif test yes = "$shlibpath_overrides_runpath" ||
11753     test no = "$enable_shared"; then
11754  # Fast installation is not necessary
11755  enable_fast_install=needless
11756fi
11757
11758
11759
11760
11761
11762
11763  if test yes != "$enable_dlopen"; then
11764  enable_dlopen=unknown
11765  enable_dlopen_self=unknown
11766  enable_dlopen_self_static=unknown
11767else
11768  lt_cv_dlopen=no
11769  lt_cv_dlopen_libs=
11770
11771  case $host_os in
11772  beos*)
11773    lt_cv_dlopen=load_add_on
11774    lt_cv_dlopen_libs=
11775    lt_cv_dlopen_self=yes
11776    ;;
11777
11778  mingw* | pw32* | cegcc*)
11779    lt_cv_dlopen=LoadLibrary
11780    lt_cv_dlopen_libs=
11781    ;;
11782
11783  cygwin*)
11784    lt_cv_dlopen=dlopen
11785    lt_cv_dlopen_libs=
11786    ;;
11787
11788  darwin*)
11789    # if libdl is installed we need to link against it
11790    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11791$as_echo_n "checking for dlopen in -ldl... " >&6; }
11792if ${ac_cv_lib_dl_dlopen+:} false; then :
11793  $as_echo_n "(cached) " >&6
11794else
11795  ac_check_lib_save_LIBS=$LIBS
11796LIBS="-ldl  $LIBS"
11797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798/* end confdefs.h.  */
11799
11800/* Override any GCC internal prototype to avoid an error.
11801   Use char because int might match the return type of a GCC
11802   builtin and then its argument prototype would still apply.  */
11803#ifdef __cplusplus
11804extern "C"
11805#endif
11806char dlopen ();
11807int
11808main ()
11809{
11810return dlopen ();
11811  ;
11812  return 0;
11813}
11814_ACEOF
11815if ac_fn_c_try_link "$LINENO"; then :
11816  ac_cv_lib_dl_dlopen=yes
11817else
11818  ac_cv_lib_dl_dlopen=no
11819fi
11820rm -f core conftest.err conftest.$ac_objext \
11821    conftest$ac_exeext conftest.$ac_ext
11822LIBS=$ac_check_lib_save_LIBS
11823fi
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11825$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11826if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11827  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11828else
11829
11830    lt_cv_dlopen=dyld
11831    lt_cv_dlopen_libs=
11832    lt_cv_dlopen_self=yes
11833
11834fi
11835
11836    ;;
11837
11838  tpf*)
11839    # Don't try to run any link tests for TPF.  We know it's impossible
11840    # because TPF is a cross-compiler, and we know how we open DSOs.
11841    lt_cv_dlopen=dlopen
11842    lt_cv_dlopen_libs=
11843    lt_cv_dlopen_self=no
11844    ;;
11845
11846  *)
11847    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11848if test "x$ac_cv_func_shl_load" = xyes; then :
11849  lt_cv_dlopen=shl_load
11850else
11851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11852$as_echo_n "checking for shl_load in -ldld... " >&6; }
11853if ${ac_cv_lib_dld_shl_load+:} false; then :
11854  $as_echo_n "(cached) " >&6
11855else
11856  ac_check_lib_save_LIBS=$LIBS
11857LIBS="-ldld  $LIBS"
11858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859/* end confdefs.h.  */
11860
11861/* Override any GCC internal prototype to avoid an error.
11862   Use char because int might match the return type of a GCC
11863   builtin and then its argument prototype would still apply.  */
11864#ifdef __cplusplus
11865extern "C"
11866#endif
11867char shl_load ();
11868int
11869main ()
11870{
11871return shl_load ();
11872  ;
11873  return 0;
11874}
11875_ACEOF
11876if ac_fn_c_try_link "$LINENO"; then :
11877  ac_cv_lib_dld_shl_load=yes
11878else
11879  ac_cv_lib_dld_shl_load=no
11880fi
11881rm -f core conftest.err conftest.$ac_objext \
11882    conftest$ac_exeext conftest.$ac_ext
11883LIBS=$ac_check_lib_save_LIBS
11884fi
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11886$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11887if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11888  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11889else
11890  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11891if test "x$ac_cv_func_dlopen" = xyes; then :
11892  lt_cv_dlopen=dlopen
11893else
11894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11895$as_echo_n "checking for dlopen in -ldl... " >&6; }
11896if ${ac_cv_lib_dl_dlopen+:} false; then :
11897  $as_echo_n "(cached) " >&6
11898else
11899  ac_check_lib_save_LIBS=$LIBS
11900LIBS="-ldl  $LIBS"
11901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902/* end confdefs.h.  */
11903
11904/* Override any GCC internal prototype to avoid an error.
11905   Use char because int might match the return type of a GCC
11906   builtin and then its argument prototype would still apply.  */
11907#ifdef __cplusplus
11908extern "C"
11909#endif
11910char dlopen ();
11911int
11912main ()
11913{
11914return dlopen ();
11915  ;
11916  return 0;
11917}
11918_ACEOF
11919if ac_fn_c_try_link "$LINENO"; then :
11920  ac_cv_lib_dl_dlopen=yes
11921else
11922  ac_cv_lib_dl_dlopen=no
11923fi
11924rm -f core conftest.err conftest.$ac_objext \
11925    conftest$ac_exeext conftest.$ac_ext
11926LIBS=$ac_check_lib_save_LIBS
11927fi
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11929$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11930if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11931  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11932else
11933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11934$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11935if ${ac_cv_lib_svld_dlopen+:} false; then :
11936  $as_echo_n "(cached) " >&6
11937else
11938  ac_check_lib_save_LIBS=$LIBS
11939LIBS="-lsvld  $LIBS"
11940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941/* end confdefs.h.  */
11942
11943/* Override any GCC internal prototype to avoid an error.
11944   Use char because int might match the return type of a GCC
11945   builtin and then its argument prototype would still apply.  */
11946#ifdef __cplusplus
11947extern "C"
11948#endif
11949char dlopen ();
11950int
11951main ()
11952{
11953return dlopen ();
11954  ;
11955  return 0;
11956}
11957_ACEOF
11958if ac_fn_c_try_link "$LINENO"; then :
11959  ac_cv_lib_svld_dlopen=yes
11960else
11961  ac_cv_lib_svld_dlopen=no
11962fi
11963rm -f core conftest.err conftest.$ac_objext \
11964    conftest$ac_exeext conftest.$ac_ext
11965LIBS=$ac_check_lib_save_LIBS
11966fi
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11968$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11969if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11970  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11971else
11972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11973$as_echo_n "checking for dld_link in -ldld... " >&6; }
11974if ${ac_cv_lib_dld_dld_link+:} false; then :
11975  $as_echo_n "(cached) " >&6
11976else
11977  ac_check_lib_save_LIBS=$LIBS
11978LIBS="-ldld  $LIBS"
11979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980/* end confdefs.h.  */
11981
11982/* Override any GCC internal prototype to avoid an error.
11983   Use char because int might match the return type of a GCC
11984   builtin and then its argument prototype would still apply.  */
11985#ifdef __cplusplus
11986extern "C"
11987#endif
11988char dld_link ();
11989int
11990main ()
11991{
11992return dld_link ();
11993  ;
11994  return 0;
11995}
11996_ACEOF
11997if ac_fn_c_try_link "$LINENO"; then :
11998  ac_cv_lib_dld_dld_link=yes
11999else
12000  ac_cv_lib_dld_dld_link=no
12001fi
12002rm -f core conftest.err conftest.$ac_objext \
12003    conftest$ac_exeext conftest.$ac_ext
12004LIBS=$ac_check_lib_save_LIBS
12005fi
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12007$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12008if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12009  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12010fi
12011
12012
12013fi
12014
12015
12016fi
12017
12018
12019fi
12020
12021
12022fi
12023
12024
12025fi
12026
12027    ;;
12028  esac
12029
12030  if test no = "$lt_cv_dlopen"; then
12031    enable_dlopen=no
12032  else
12033    enable_dlopen=yes
12034  fi
12035
12036  case $lt_cv_dlopen in
12037  dlopen)
12038    save_CPPFLAGS=$CPPFLAGS
12039    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12040
12041    save_LDFLAGS=$LDFLAGS
12042    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12043
12044    save_LIBS=$LIBS
12045    LIBS="$lt_cv_dlopen_libs $LIBS"
12046
12047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12048$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12049if ${lt_cv_dlopen_self+:} false; then :
12050  $as_echo_n "(cached) " >&6
12051else
12052  	  if test yes = "$cross_compiling"; then :
12053  lt_cv_dlopen_self=cross
12054else
12055  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12056  lt_status=$lt_dlunknown
12057  cat > conftest.$ac_ext <<_LT_EOF
12058#line $LINENO "configure"
12059#include "confdefs.h"
12060
12061#if HAVE_DLFCN_H
12062#include <dlfcn.h>
12063#endif
12064
12065#include <stdio.h>
12066
12067#ifdef RTLD_GLOBAL
12068#  define LT_DLGLOBAL		RTLD_GLOBAL
12069#else
12070#  ifdef DL_GLOBAL
12071#    define LT_DLGLOBAL		DL_GLOBAL
12072#  else
12073#    define LT_DLGLOBAL		0
12074#  endif
12075#endif
12076
12077/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12078   find out it does not work in some platform. */
12079#ifndef LT_DLLAZY_OR_NOW
12080#  ifdef RTLD_LAZY
12081#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12082#  else
12083#    ifdef DL_LAZY
12084#      define LT_DLLAZY_OR_NOW		DL_LAZY
12085#    else
12086#      ifdef RTLD_NOW
12087#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12088#      else
12089#        ifdef DL_NOW
12090#          define LT_DLLAZY_OR_NOW	DL_NOW
12091#        else
12092#          define LT_DLLAZY_OR_NOW	0
12093#        endif
12094#      endif
12095#    endif
12096#  endif
12097#endif
12098
12099/* When -fvisibility=hidden is used, assume the code has been annotated
12100   correspondingly for the symbols needed.  */
12101#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12102int fnord () __attribute__((visibility("default")));
12103#endif
12104
12105int fnord () { return 42; }
12106int main ()
12107{
12108  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12109  int status = $lt_dlunknown;
12110
12111  if (self)
12112    {
12113      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12114      else
12115        {
12116	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12117          else puts (dlerror ());
12118	}
12119      /* dlclose (self); */
12120    }
12121  else
12122    puts (dlerror ());
12123
12124  return status;
12125}
12126_LT_EOF
12127  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12128  (eval $ac_link) 2>&5
12129  ac_status=$?
12130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12131  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12132    (./conftest; exit; ) >&5 2>/dev/null
12133    lt_status=$?
12134    case x$lt_status in
12135      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12136      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12137      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12138    esac
12139  else :
12140    # compilation failed
12141    lt_cv_dlopen_self=no
12142  fi
12143fi
12144rm -fr conftest*
12145
12146
12147fi
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12149$as_echo "$lt_cv_dlopen_self" >&6; }
12150
12151    if test yes = "$lt_cv_dlopen_self"; then
12152      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12153      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12154$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12155if ${lt_cv_dlopen_self_static+:} false; then :
12156  $as_echo_n "(cached) " >&6
12157else
12158  	  if test yes = "$cross_compiling"; then :
12159  lt_cv_dlopen_self_static=cross
12160else
12161  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12162  lt_status=$lt_dlunknown
12163  cat > conftest.$ac_ext <<_LT_EOF
12164#line $LINENO "configure"
12165#include "confdefs.h"
12166
12167#if HAVE_DLFCN_H
12168#include <dlfcn.h>
12169#endif
12170
12171#include <stdio.h>
12172
12173#ifdef RTLD_GLOBAL
12174#  define LT_DLGLOBAL		RTLD_GLOBAL
12175#else
12176#  ifdef DL_GLOBAL
12177#    define LT_DLGLOBAL		DL_GLOBAL
12178#  else
12179#    define LT_DLGLOBAL		0
12180#  endif
12181#endif
12182
12183/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12184   find out it does not work in some platform. */
12185#ifndef LT_DLLAZY_OR_NOW
12186#  ifdef RTLD_LAZY
12187#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12188#  else
12189#    ifdef DL_LAZY
12190#      define LT_DLLAZY_OR_NOW		DL_LAZY
12191#    else
12192#      ifdef RTLD_NOW
12193#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12194#      else
12195#        ifdef DL_NOW
12196#          define LT_DLLAZY_OR_NOW	DL_NOW
12197#        else
12198#          define LT_DLLAZY_OR_NOW	0
12199#        endif
12200#      endif
12201#    endif
12202#  endif
12203#endif
12204
12205/* When -fvisibility=hidden is used, assume the code has been annotated
12206   correspondingly for the symbols needed.  */
12207#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12208int fnord () __attribute__((visibility("default")));
12209#endif
12210
12211int fnord () { return 42; }
12212int main ()
12213{
12214  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12215  int status = $lt_dlunknown;
12216
12217  if (self)
12218    {
12219      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12220      else
12221        {
12222	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12223          else puts (dlerror ());
12224	}
12225      /* dlclose (self); */
12226    }
12227  else
12228    puts (dlerror ());
12229
12230  return status;
12231}
12232_LT_EOF
12233  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12234  (eval $ac_link) 2>&5
12235  ac_status=$?
12236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12238    (./conftest; exit; ) >&5 2>/dev/null
12239    lt_status=$?
12240    case x$lt_status in
12241      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12242      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12243      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12244    esac
12245  else :
12246    # compilation failed
12247    lt_cv_dlopen_self_static=no
12248  fi
12249fi
12250rm -fr conftest*
12251
12252
12253fi
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12255$as_echo "$lt_cv_dlopen_self_static" >&6; }
12256    fi
12257
12258    CPPFLAGS=$save_CPPFLAGS
12259    LDFLAGS=$save_LDFLAGS
12260    LIBS=$save_LIBS
12261    ;;
12262  esac
12263
12264  case $lt_cv_dlopen_self in
12265  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12266  *) enable_dlopen_self=unknown ;;
12267  esac
12268
12269  case $lt_cv_dlopen_self_static in
12270  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12271  *) enable_dlopen_self_static=unknown ;;
12272  esac
12273fi
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291striplib=
12292old_striplib=
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12294$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12295if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12296  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12297  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12299$as_echo "yes" >&6; }
12300else
12301# FIXME - insert some real tests, host_os isn't really good enough
12302  case $host_os in
12303  darwin*)
12304    if test -n "$STRIP"; then
12305      striplib="$STRIP -x"
12306      old_striplib="$STRIP -S"
12307      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308$as_echo "yes" >&6; }
12309    else
12310      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
12312    fi
12313    ;;
12314  *)
12315    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316$as_echo "no" >&6; }
12317    ;;
12318  esac
12319fi
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332  # Report what library types will actually be built
12333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12334$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12336$as_echo "$can_build_shared" >&6; }
12337
12338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12339$as_echo_n "checking whether to build shared libraries... " >&6; }
12340  test no = "$can_build_shared" && enable_shared=no
12341
12342  # On AIX, shared libraries and static libraries use the same namespace, and
12343  # are all built from PIC.
12344  case $host_os in
12345  aix3*)
12346    test yes = "$enable_shared" && enable_static=no
12347    if test -n "$RANLIB"; then
12348      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12349      postinstall_cmds='$RANLIB $lib'
12350    fi
12351    ;;
12352
12353  aix[4-9]*)
12354    if test ia64 != "$host_cpu"; then
12355      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12356      yes,aix,yes) ;;			# shared object as lib.so file only
12357      yes,svr4,*) ;;			# shared object as lib.so archive member only
12358      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12359      esac
12360    fi
12361    ;;
12362  esac
12363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12364$as_echo "$enable_shared" >&6; }
12365
12366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12367$as_echo_n "checking whether to build static libraries... " >&6; }
12368  # Make sure either enable_shared or enable_static is yes.
12369  test yes = "$enable_shared" || enable_static=yes
12370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12371$as_echo "$enable_static" >&6; }
12372
12373
12374
12375
12376fi
12377ac_ext=c
12378ac_cpp='$CPP $CPPFLAGS'
12379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381ac_compiler_gnu=$ac_cv_c_compiler_gnu
12382
12383CC=$lt_save_CC
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399        ac_config_commands="$ac_config_commands libtool"
12400
12401
12402
12403
12404# Only expand once:
12405
12406
12407
12408# Compile warnings. There can be deprecation warnings at any time, so disable
12409# -Werror by default with the [yes] argument.
12410
12411
12412
12413    # C support is enabled by default.
12414
12415
12416    # Only enable C++ support if AC_PROG_CXX is called. The redefinition of
12417    # AC_PROG_CXX is so that a fatal error is emitted if this macro is called
12418    # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be
12419    # checked.
12420
12421
12422
12423
12424    # Default value for IS-RELEASE is $ax_is_release
12425    ax_compiler_flags_is_release=yes
12426
12427    # Check whether --enable-compile-warnings was given.
12428if test "${enable_compile_warnings+set}" = set; then :
12429  enableval=$enable_compile_warnings;
12430else
12431  if test "$ax_compiler_flags_is_release" = "yes"; then :
12432  enable_compile_warnings="yes"
12433else
12434  enable_compile_warnings="error"
12435fi
12436fi
12437
12438    # Check whether --enable-Werror was given.
12439if test "${enable_Werror+set}" = set; then :
12440  enableval=$enable_Werror;
12441else
12442  enable_Werror=maybe
12443fi
12444
12445
12446    # Return the user's chosen warning level
12447    if test "$enable_Werror" = "no" -a \
12448                "$enable_compile_warnings" = "error"; then :
12449
12450        enable_compile_warnings="yes"
12451
12452fi
12453
12454    ax_enable_compile_warnings=$enable_compile_warnings
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465    # Variable names
12466
12467
12468    ac_ext=c
12469ac_cpp='$CPP $CPPFLAGS'
12470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12472ac_compiler_gnu=$ac_cv_c_compiler_gnu
12473
12474
12475    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476/* end confdefs.h.  */
12477
12478      #ifndef __cplusplus
12479       #error "no C++"
12480       #endif
12481int
12482main ()
12483{
12484
12485  ;
12486  return 0;
12487}
12488_ACEOF
12489if ac_fn_c_try_compile "$LINENO"; then :
12490  ax_compiler_cxx=yes;
12491else
12492  ax_compiler_cxx=no;
12493fi
12494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12495
12496    # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
12497    # flags, otherwise they are always appended to the warn_cflags variable, and
12498    # Clang warns on them for every compilation unit.
12499    # If this is passed to GCC, it will explode, so the flag must be enabled
12500    # conditionally.
12501    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
12502$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
12503if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
12504  $as_echo_n "(cached) " >&6
12505else
12506
12507  ax_check_save_flags=$CFLAGS
12508  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
12509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510/* end confdefs.h.  */
12511
12512int
12513main ()
12514{
12515
12516  ;
12517  return 0;
12518}
12519_ACEOF
12520if ac_fn_c_try_compile "$LINENO"; then :
12521  ax_cv_check_cflags___Werror_unknown_warning_option=yes
12522else
12523  ax_cv_check_cflags___Werror_unknown_warning_option=no
12524fi
12525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526  CFLAGS=$ax_check_save_flags
12527fi
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
12529$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
12530if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
12531
12532        ax_compiler_flags_test="-Werror=unknown-warning-option"
12533
12534else
12535
12536        ax_compiler_flags_test=""
12537
12538fi
12539
12540
12541    # Check that -Wno-suggest-attribute=format is supported
12542    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-suggest-attribute=format" >&5
12543$as_echo_n "checking whether C compiler accepts -Wno-suggest-attribute=format... " >&6; }
12544if ${ax_cv_check_cflags___Wno_suggest_attribute_format+:} false; then :
12545  $as_echo_n "(cached) " >&6
12546else
12547
12548  ax_check_save_flags=$CFLAGS
12549  CFLAGS="$CFLAGS  -Wno-suggest-attribute=format"
12550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551/* end confdefs.h.  */
12552
12553int
12554main ()
12555{
12556
12557  ;
12558  return 0;
12559}
12560_ACEOF
12561if ac_fn_c_try_compile "$LINENO"; then :
12562  ax_cv_check_cflags___Wno_suggest_attribute_format=yes
12563else
12564  ax_cv_check_cflags___Wno_suggest_attribute_format=no
12565fi
12566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567  CFLAGS=$ax_check_save_flags
12568fi
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_suggest_attribute_format" >&5
12570$as_echo "$ax_cv_check_cflags___Wno_suggest_attribute_format" >&6; }
12571if test "x$ax_cv_check_cflags___Wno_suggest_attribute_format" = xyes; then :
12572
12573        ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format"
12574
12575else
12576
12577        ax_compiler_no_suggest_attribute_flags=""
12578
12579fi
12580
12581
12582    # Base flags
12583
12584
12585
12586
12587for flag in          -fno-strict-aliasing              ; do
12588  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12590$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12591if eval \${$as_CACHEVAR+:} false; then :
12592  $as_echo_n "(cached) " >&6
12593else
12594
12595  ax_check_save_flags=$CFLAGS
12596  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
12597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598/* end confdefs.h.  */
12599
12600int
12601main ()
12602{
12603
12604  ;
12605  return 0;
12606}
12607_ACEOF
12608if ac_fn_c_try_compile "$LINENO"; then :
12609  eval "$as_CACHEVAR=yes"
12610else
12611  eval "$as_CACHEVAR=no"
12612fi
12613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614  CFLAGS=$ax_check_save_flags
12615fi
12616eval ac_res=\$$as_CACHEVAR
12617	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12618$as_echo "$ac_res" >&6; }
12619if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12620
12621if ${WARN_CFLAGS+:} false; then :
12622
12623  case " $WARN_CFLAGS " in #(
12624  *" $flag "*) :
12625    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
12626  (: WARN_CFLAGS already contains $flag) 2>&5
12627  ac_status=$?
12628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12629  test $ac_status = 0; } ;; #(
12630  *) :
12631
12632     as_fn_append WARN_CFLAGS " $flag"
12633     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
12634  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
12635  ac_status=$?
12636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12637  test $ac_status = 0; }
12638     ;;
12639esac
12640
12641else
12642
12643  WARN_CFLAGS=$flag
12644  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
12645  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
12646  ac_status=$?
12647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12648  test $ac_status = 0; }
12649
12650fi
12651
12652else
12653  :
12654fi
12655
12656done
12657
12658
12659    if test "$ax_enable_compile_warnings" != "no"; then :
12660
12661        if test "$ax_compiler_cxx" = "no" ; then
12662            # C-only flags. Warn in C++
12663
12664
12665
12666
12667for flag in                  -Wnested-externs                 -Wmissing-prototypes                 -Wstrict-prototypes                 -Wdeclaration-after-statement                 -Wimplicit-function-declaration                 -Wold-style-definition                 -Wjump-misses-init             ; do
12668  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
12669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12670$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12671if eval \${$as_CACHEVAR+:} false; then :
12672  $as_echo_n "(cached) " >&6
12673else
12674
12675  ax_check_save_flags=$CFLAGS
12676  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
12677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678/* end confdefs.h.  */
12679
12680int
12681main ()
12682{
12683
12684  ;
12685  return 0;
12686}
12687_ACEOF
12688if ac_fn_c_try_compile "$LINENO"; then :
12689  eval "$as_CACHEVAR=yes"
12690else
12691  eval "$as_CACHEVAR=no"
12692fi
12693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12694  CFLAGS=$ax_check_save_flags
12695fi
12696eval ac_res=\$$as_CACHEVAR
12697	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12698$as_echo "$ac_res" >&6; }
12699if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12700
12701if ${WARN_CFLAGS+:} false; then :
12702
12703  case " $WARN_CFLAGS " in #(
12704  *" $flag "*) :
12705    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
12706  (: WARN_CFLAGS already contains $flag) 2>&5
12707  ac_status=$?
12708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12709  test $ac_status = 0; } ;; #(
12710  *) :
12711
12712     as_fn_append WARN_CFLAGS " $flag"
12713     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
12714  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
12715  ac_status=$?
12716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12717  test $ac_status = 0; }
12718     ;;
12719esac
12720
12721else
12722
12723  WARN_CFLAGS=$flag
12724  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
12725  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
12726  ac_status=$?
12727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728  test $ac_status = 0; }
12729
12730fi
12731
12732else
12733  :
12734fi
12735
12736done
12737
12738        fi
12739
12740        # "yes" flags
12741
12742
12743
12744
12745for flag in              -Wall             -Wextra             -Wundef             -Wwrite-strings             -Wpointer-arith             -Wmissing-declarations             -Wredundant-decls             -Wno-unused-parameter             -Wno-missing-field-initializers             -Wformat=2             -Wcast-align             -Wformat-nonliteral             -Wformat-security             -Wsign-compare             -Wstrict-aliasing             -Wshadow             -Winline             -Wpacked             -Wmissing-format-attribute             -Wmissing-noreturn             -Winit-self             -Wredundant-decls             -Wmissing-include-dirs             -Wunused-but-set-variable             -Warray-bounds             -Wreturn-type             -Wswitch-enum             -Wswitch-default             -Wduplicated-cond             -Wduplicated-branches             -Wlogical-op             -Wrestrict             -Wnull-dereference             -Wdouble-promotion                                                                ; do
12746  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
12747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12748$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12749if eval \${$as_CACHEVAR+:} false; then :
12750  $as_echo_n "(cached) " >&6
12751else
12752
12753  ax_check_save_flags=$CFLAGS
12754  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
12755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756/* end confdefs.h.  */
12757
12758int
12759main ()
12760{
12761
12762  ;
12763  return 0;
12764}
12765_ACEOF
12766if ac_fn_c_try_compile "$LINENO"; then :
12767  eval "$as_CACHEVAR=yes"
12768else
12769  eval "$as_CACHEVAR=no"
12770fi
12771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772  CFLAGS=$ax_check_save_flags
12773fi
12774eval ac_res=\$$as_CACHEVAR
12775	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12776$as_echo "$ac_res" >&6; }
12777if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12778
12779if ${WARN_CFLAGS+:} false; then :
12780
12781  case " $WARN_CFLAGS " in #(
12782  *" $flag "*) :
12783    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
12784  (: WARN_CFLAGS already contains $flag) 2>&5
12785  ac_status=$?
12786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12787  test $ac_status = 0; } ;; #(
12788  *) :
12789
12790     as_fn_append WARN_CFLAGS " $flag"
12791     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
12792  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
12793  ac_status=$?
12794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12795  test $ac_status = 0; }
12796     ;;
12797esac
12798
12799else
12800
12801  WARN_CFLAGS=$flag
12802  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
12803  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
12804  ac_status=$?
12805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12806  test $ac_status = 0; }
12807
12808fi
12809
12810else
12811  :
12812fi
12813
12814done
12815
12816
12817fi
12818    if test "$ax_enable_compile_warnings" = "error"; then :
12819
12820        # "error" flags; -Werror has to be appended unconditionally because
12821        # it's not possible to test for
12822        #
12823        # suggest-attribute=format is disabled because it gives too many false
12824        # positives
12825
12826if ${WARN_CFLAGS+:} false; then :
12827
12828  case " $WARN_CFLAGS " in #(
12829  *" -Werror "*) :
12830    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5
12831  (: WARN_CFLAGS already contains -Werror) 2>&5
12832  ac_status=$?
12833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12834  test $ac_status = 0; } ;; #(
12835  *) :
12836
12837     as_fn_append WARN_CFLAGS " -Werror"
12838     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
12839  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
12840  ac_status=$?
12841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12842  test $ac_status = 0; }
12843     ;;
12844esac
12845
12846else
12847
12848  WARN_CFLAGS=-Werror
12849  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
12850  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
12851  ac_status=$?
12852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12853  test $ac_status = 0; }
12854
12855fi
12856
12857
12858
12859
12860
12861
12862for flag in              $ax_compiler_no_suggest_attribute_flags         ; do
12863  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12865$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12866if eval \${$as_CACHEVAR+:} false; then :
12867  $as_echo_n "(cached) " >&6
12868else
12869
12870  ax_check_save_flags=$CFLAGS
12871  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
12872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873/* end confdefs.h.  */
12874
12875int
12876main ()
12877{
12878
12879  ;
12880  return 0;
12881}
12882_ACEOF
12883if ac_fn_c_try_compile "$LINENO"; then :
12884  eval "$as_CACHEVAR=yes"
12885else
12886  eval "$as_CACHEVAR=no"
12887fi
12888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889  CFLAGS=$ax_check_save_flags
12890fi
12891eval ac_res=\$$as_CACHEVAR
12892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12893$as_echo "$ac_res" >&6; }
12894if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12895
12896if ${WARN_CFLAGS+:} false; then :
12897
12898  case " $WARN_CFLAGS " in #(
12899  *" $flag "*) :
12900    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
12901  (: WARN_CFLAGS already contains $flag) 2>&5
12902  ac_status=$?
12903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12904  test $ac_status = 0; } ;; #(
12905  *) :
12906
12907     as_fn_append WARN_CFLAGS " $flag"
12908     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
12909  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
12910  ac_status=$?
12911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12912  test $ac_status = 0; }
12913     ;;
12914esac
12915
12916else
12917
12918  WARN_CFLAGS=$flag
12919  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
12920  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
12921  ac_status=$?
12922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12923  test $ac_status = 0; }
12924
12925fi
12926
12927else
12928  :
12929fi
12930
12931done
12932
12933
12934fi
12935
12936    # In the flags below, when disabling specific flags, always add *both*
12937    # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
12938    # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall,
12939    # which effectively turns that flag back on again as an error.
12940    for flag in $WARN_CFLAGS; do
12941        case $flag in #(
12942  -Wno-*=*) :
12943     ;; #(
12944  -Wno-*) :
12945
12946
12947
12948
12949
12950for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
12951  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
12952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12953$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12954if eval \${$as_CACHEVAR+:} false; then :
12955  $as_echo_n "(cached) " >&6
12956else
12957
12958  ax_check_save_flags=$CFLAGS
12959  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
12960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961/* end confdefs.h.  */
12962
12963int
12964main ()
12965{
12966
12967  ;
12968  return 0;
12969}
12970_ACEOF
12971if ac_fn_c_try_compile "$LINENO"; then :
12972  eval "$as_CACHEVAR=yes"
12973else
12974  eval "$as_CACHEVAR=no"
12975fi
12976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977  CFLAGS=$ax_check_save_flags
12978fi
12979eval ac_res=\$$as_CACHEVAR
12980	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12981$as_echo "$ac_res" >&6; }
12982if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12983
12984if ${WARN_CFLAGS+:} false; then :
12985
12986  case " $WARN_CFLAGS " in #(
12987  *" $flag "*) :
12988    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
12989  (: WARN_CFLAGS already contains $flag) 2>&5
12990  ac_status=$?
12991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12992  test $ac_status = 0; } ;; #(
12993  *) :
12994
12995     as_fn_append WARN_CFLAGS " $flag"
12996     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
12997  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
12998  ac_status=$?
12999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13000  test $ac_status = 0; }
13001     ;;
13002esac
13003
13004else
13005
13006  WARN_CFLAGS=$flag
13007  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
13008  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
13009  ac_status=$?
13010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13011  test $ac_status = 0; }
13012
13013fi
13014
13015else
13016  :
13017fi
13018
13019done
13020
13021                 ;; #(
13022  *) :
13023     ;;
13024esac
13025    done
13026
13027    ac_ext=c
13028ac_cpp='$CPP $CPPFLAGS'
13029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13031ac_compiler_gnu=$ac_cv_c_compiler_gnu
13032
13033
13034    # Substitute the variables
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048    # Variable names
13049
13050
13051    # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
13052    # flags, otherwise they are always appended to the warn_ldflags variable,
13053    # and Clang warns on them for every compilation unit.
13054    # If this is passed to GCC, it will explode, so the flag must be enabled
13055    # conditionally.
13056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
13057$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
13058if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
13059  $as_echo_n "(cached) " >&6
13060else
13061
13062  ax_check_save_flags=$CFLAGS
13063  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
13064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065/* end confdefs.h.  */
13066
13067int
13068main ()
13069{
13070
13071  ;
13072  return 0;
13073}
13074_ACEOF
13075if ac_fn_c_try_compile "$LINENO"; then :
13076  ax_cv_check_cflags___Werror_unknown_warning_option=yes
13077else
13078  ax_cv_check_cflags___Werror_unknown_warning_option=no
13079fi
13080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13081  CFLAGS=$ax_check_save_flags
13082fi
13083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
13084$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
13085if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
13086
13087        ax_compiler_flags_test="-Werror=unknown-warning-option"
13088
13089else
13090
13091        ax_compiler_flags_test=""
13092
13093fi
13094
13095
13096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--as-needed" >&5
13097$as_echo_n "checking whether the linker accepts -Wl,--as-needed... " >&6; }
13098if ${ax_cv_check_ldflags___Wl___as_needed+:} false; then :
13099  $as_echo_n "(cached) " >&6
13100else
13101
13102  ax_check_save_flags=$LDFLAGS
13103  LDFLAGS="$LDFLAGS  -Wl,--as-needed"
13104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105/* end confdefs.h.  */
13106
13107int
13108main ()
13109{
13110
13111  ;
13112  return 0;
13113}
13114_ACEOF
13115if ac_fn_c_try_link "$LINENO"; then :
13116  ax_cv_check_ldflags___Wl___as_needed=yes
13117else
13118  ax_cv_check_ldflags___Wl___as_needed=no
13119fi
13120rm -f core conftest.err conftest.$ac_objext \
13121    conftest$ac_exeext conftest.$ac_ext
13122  LDFLAGS=$ax_check_save_flags
13123fi
13124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___as_needed" >&5
13125$as_echo "$ax_cv_check_ldflags___Wl___as_needed" >&6; }
13126if test "x$ax_cv_check_ldflags___Wl___as_needed" = xyes; then :
13127
13128
13129
13130
13131
13132for flag in -Wl,--as-needed; do
13133  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
13135$as_echo_n "checking whether the linker accepts $flag... " >&6; }
13136if eval \${$as_CACHEVAR+:} false; then :
13137  $as_echo_n "(cached) " >&6
13138else
13139
13140  ax_check_save_flags=$LDFLAGS
13141  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
13142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143/* end confdefs.h.  */
13144
13145int
13146main ()
13147{
13148
13149  ;
13150  return 0;
13151}
13152_ACEOF
13153if ac_fn_c_try_link "$LINENO"; then :
13154  eval "$as_CACHEVAR=yes"
13155else
13156  eval "$as_CACHEVAR=no"
13157fi
13158rm -f core conftest.err conftest.$ac_objext \
13159    conftest$ac_exeext conftest.$ac_ext
13160  LDFLAGS=$ax_check_save_flags
13161fi
13162eval ac_res=\$$as_CACHEVAR
13163	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13164$as_echo "$ac_res" >&6; }
13165if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13166
13167if ${AM_LDFLAGS+:} false; then :
13168
13169  case " $AM_LDFLAGS " in #(
13170  *" $flag "*) :
13171    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
13172  (: AM_LDFLAGS already contains $flag) 2>&5
13173  ac_status=$?
13174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13175  test $ac_status = 0; } ;; #(
13176  *) :
13177
13178     as_fn_append AM_LDFLAGS " $flag"
13179     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13180  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13181  ac_status=$?
13182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183  test $ac_status = 0; }
13184     ;;
13185esac
13186
13187else
13188
13189  AM_LDFLAGS=$flag
13190  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13191  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13192  ac_status=$?
13193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13194  test $ac_status = 0; }
13195
13196fi
13197
13198else
13199  :
13200fi
13201
13202done
13203
13204
13205else
13206  :
13207fi
13208
13209    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
13210$as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
13211if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
13212  $as_echo_n "(cached) " >&6
13213else
13214
13215  ax_check_save_flags=$LDFLAGS
13216  LDFLAGS="$LDFLAGS  -Wl,-z,relro"
13217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218/* end confdefs.h.  */
13219
13220int
13221main ()
13222{
13223
13224  ;
13225  return 0;
13226}
13227_ACEOF
13228if ac_fn_c_try_link "$LINENO"; then :
13229  ax_cv_check_ldflags___Wl__z_relro=yes
13230else
13231  ax_cv_check_ldflags___Wl__z_relro=no
13232fi
13233rm -f core conftest.err conftest.$ac_objext \
13234    conftest$ac_exeext conftest.$ac_ext
13235  LDFLAGS=$ax_check_save_flags
13236fi
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
13238$as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
13239if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
13240
13241
13242
13243
13244
13245for flag in -Wl,-z,relro; do
13246  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
13248$as_echo_n "checking whether the linker accepts $flag... " >&6; }
13249if eval \${$as_CACHEVAR+:} false; then :
13250  $as_echo_n "(cached) " >&6
13251else
13252
13253  ax_check_save_flags=$LDFLAGS
13254  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
13255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256/* end confdefs.h.  */
13257
13258int
13259main ()
13260{
13261
13262  ;
13263  return 0;
13264}
13265_ACEOF
13266if ac_fn_c_try_link "$LINENO"; then :
13267  eval "$as_CACHEVAR=yes"
13268else
13269  eval "$as_CACHEVAR=no"
13270fi
13271rm -f core conftest.err conftest.$ac_objext \
13272    conftest$ac_exeext conftest.$ac_ext
13273  LDFLAGS=$ax_check_save_flags
13274fi
13275eval ac_res=\$$as_CACHEVAR
13276	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13277$as_echo "$ac_res" >&6; }
13278if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13279
13280if ${AM_LDFLAGS+:} false; then :
13281
13282  case " $AM_LDFLAGS " in #(
13283  *" $flag "*) :
13284    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
13285  (: AM_LDFLAGS already contains $flag) 2>&5
13286  ac_status=$?
13287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13288  test $ac_status = 0; } ;; #(
13289  *) :
13290
13291     as_fn_append AM_LDFLAGS " $flag"
13292     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13293  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13294  ac_status=$?
13295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13296  test $ac_status = 0; }
13297     ;;
13298esac
13299
13300else
13301
13302  AM_LDFLAGS=$flag
13303  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13304  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13305  ac_status=$?
13306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13307  test $ac_status = 0; }
13308
13309fi
13310
13311else
13312  :
13313fi
13314
13315done
13316
13317
13318else
13319  :
13320fi
13321
13322    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
13323$as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
13324if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
13325  $as_echo_n "(cached) " >&6
13326else
13327
13328  ax_check_save_flags=$LDFLAGS
13329  LDFLAGS="$LDFLAGS  -Wl,-z,now"
13330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331/* end confdefs.h.  */
13332
13333int
13334main ()
13335{
13336
13337  ;
13338  return 0;
13339}
13340_ACEOF
13341if ac_fn_c_try_link "$LINENO"; then :
13342  ax_cv_check_ldflags___Wl__z_now=yes
13343else
13344  ax_cv_check_ldflags___Wl__z_now=no
13345fi
13346rm -f core conftest.err conftest.$ac_objext \
13347    conftest$ac_exeext conftest.$ac_ext
13348  LDFLAGS=$ax_check_save_flags
13349fi
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
13351$as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
13352if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
13353
13354
13355
13356
13357
13358for flag in -Wl,-z,now; do
13359  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
13361$as_echo_n "checking whether the linker accepts $flag... " >&6; }
13362if eval \${$as_CACHEVAR+:} false; then :
13363  $as_echo_n "(cached) " >&6
13364else
13365
13366  ax_check_save_flags=$LDFLAGS
13367  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
13368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369/* end confdefs.h.  */
13370
13371int
13372main ()
13373{
13374
13375  ;
13376  return 0;
13377}
13378_ACEOF
13379if ac_fn_c_try_link "$LINENO"; then :
13380  eval "$as_CACHEVAR=yes"
13381else
13382  eval "$as_CACHEVAR=no"
13383fi
13384rm -f core conftest.err conftest.$ac_objext \
13385    conftest$ac_exeext conftest.$ac_ext
13386  LDFLAGS=$ax_check_save_flags
13387fi
13388eval ac_res=\$$as_CACHEVAR
13389	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13390$as_echo "$ac_res" >&6; }
13391if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13392
13393if ${AM_LDFLAGS+:} false; then :
13394
13395  case " $AM_LDFLAGS " in #(
13396  *" $flag "*) :
13397    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
13398  (: AM_LDFLAGS already contains $flag) 2>&5
13399  ac_status=$?
13400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13401  test $ac_status = 0; } ;; #(
13402  *) :
13403
13404     as_fn_append AM_LDFLAGS " $flag"
13405     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13406  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13407  ac_status=$?
13408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409  test $ac_status = 0; }
13410     ;;
13411esac
13412
13413else
13414
13415  AM_LDFLAGS=$flag
13416  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13417  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13418  ac_status=$?
13419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13420  test $ac_status = 0; }
13421
13422fi
13423
13424else
13425  :
13426fi
13427
13428done
13429
13430
13431else
13432  :
13433fi
13434
13435    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
13436$as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
13437if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
13438  $as_echo_n "(cached) " >&6
13439else
13440
13441  ax_check_save_flags=$LDFLAGS
13442  LDFLAGS="$LDFLAGS  -Wl,-z,noexecstack"
13443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444/* end confdefs.h.  */
13445
13446int
13447main ()
13448{
13449
13450  ;
13451  return 0;
13452}
13453_ACEOF
13454if ac_fn_c_try_link "$LINENO"; then :
13455  ax_cv_check_ldflags___Wl__z_noexecstack=yes
13456else
13457  ax_cv_check_ldflags___Wl__z_noexecstack=no
13458fi
13459rm -f core conftest.err conftest.$ac_objext \
13460    conftest$ac_exeext conftest.$ac_ext
13461  LDFLAGS=$ax_check_save_flags
13462fi
13463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
13464$as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
13465if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
13466
13467
13468
13469
13470
13471for flag in -Wl,-z,noexecstack; do
13472  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
13474$as_echo_n "checking whether the linker accepts $flag... " >&6; }
13475if eval \${$as_CACHEVAR+:} false; then :
13476  $as_echo_n "(cached) " >&6
13477else
13478
13479  ax_check_save_flags=$LDFLAGS
13480  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
13481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482/* end confdefs.h.  */
13483
13484int
13485main ()
13486{
13487
13488  ;
13489  return 0;
13490}
13491_ACEOF
13492if ac_fn_c_try_link "$LINENO"; then :
13493  eval "$as_CACHEVAR=yes"
13494else
13495  eval "$as_CACHEVAR=no"
13496fi
13497rm -f core conftest.err conftest.$ac_objext \
13498    conftest$ac_exeext conftest.$ac_ext
13499  LDFLAGS=$ax_check_save_flags
13500fi
13501eval ac_res=\$$as_CACHEVAR
13502	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13503$as_echo "$ac_res" >&6; }
13504if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13505
13506if ${AM_LDFLAGS+:} false; then :
13507
13508  case " $AM_LDFLAGS " in #(
13509  *" $flag "*) :
13510    { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
13511  (: AM_LDFLAGS already contains $flag) 2>&5
13512  ac_status=$?
13513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13514  test $ac_status = 0; } ;; #(
13515  *) :
13516
13517     as_fn_append AM_LDFLAGS " $flag"
13518     { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13519  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13520  ac_status=$?
13521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13522  test $ac_status = 0; }
13523     ;;
13524esac
13525
13526else
13527
13528  AM_LDFLAGS=$flag
13529  { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
13530  (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
13531  ac_status=$?
13532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13533  test $ac_status = 0; }
13534
13535fi
13536
13537else
13538  :
13539fi
13540
13541done
13542
13543
13544else
13545  :
13546fi
13547
13548    # textonly, retpolineplt not yet
13549
13550    # macOS and cygwin linker do not have --as-needed
13551    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-as-needed" >&5
13552$as_echo_n "checking whether the linker accepts -Wl,--no-as-needed... " >&6; }
13553if ${ax_cv_check_ldflags___Wl___no_as_needed+:} false; then :
13554  $as_echo_n "(cached) " >&6
13555else
13556
13557  ax_check_save_flags=$LDFLAGS
13558  LDFLAGS="$LDFLAGS  -Wl,--no-as-needed"
13559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560/* end confdefs.h.  */
13561
13562int
13563main ()
13564{
13565
13566  ;
13567  return 0;
13568}
13569_ACEOF
13570if ac_fn_c_try_link "$LINENO"; then :
13571  ax_cv_check_ldflags___Wl___no_as_needed=yes
13572else
13573  ax_cv_check_ldflags___Wl___no_as_needed=no
13574fi
13575rm -f core conftest.err conftest.$ac_objext \
13576    conftest$ac_exeext conftest.$ac_ext
13577  LDFLAGS=$ax_check_save_flags
13578fi
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___no_as_needed" >&5
13580$as_echo "$ax_cv_check_ldflags___Wl___no_as_needed" >&6; }
13581if test "x$ax_cv_check_ldflags___Wl___no_as_needed" = xyes; then :
13582
13583        ax_compiler_flags_as_needed_option="-Wl,--no-as-needed"
13584
13585else
13586
13587        ax_compiler_flags_as_needed_option=""
13588
13589fi
13590
13591
13592    # macOS linker speaks with a different accent
13593    ax_compiler_flags_fatal_warnings_option=""
13594    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--fatal-warnings" >&5
13595$as_echo_n "checking whether the linker accepts -Wl,--fatal-warnings... " >&6; }
13596if ${ax_cv_check_ldflags___Wl___fatal_warnings+:} false; then :
13597  $as_echo_n "(cached) " >&6
13598else
13599
13600  ax_check_save_flags=$LDFLAGS
13601  LDFLAGS="$LDFLAGS  -Wl,--fatal-warnings"
13602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603/* end confdefs.h.  */
13604
13605int
13606main ()
13607{
13608
13609  ;
13610  return 0;
13611}
13612_ACEOF
13613if ac_fn_c_try_link "$LINENO"; then :
13614  ax_cv_check_ldflags___Wl___fatal_warnings=yes
13615else
13616  ax_cv_check_ldflags___Wl___fatal_warnings=no
13617fi
13618rm -f core conftest.err conftest.$ac_objext \
13619    conftest$ac_exeext conftest.$ac_ext
13620  LDFLAGS=$ax_check_save_flags
13621fi
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___fatal_warnings" >&5
13623$as_echo "$ax_cv_check_ldflags___Wl___fatal_warnings" >&6; }
13624if test "x$ax_cv_check_ldflags___Wl___fatal_warnings" = xyes; then :
13625
13626        ax_compiler_flags_fatal_warnings_option="-Wl,--fatal-warnings"
13627
13628else
13629  :
13630fi
13631
13632    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-fatal_warnings" >&5
13633$as_echo_n "checking whether the linker accepts -Wl,-fatal_warnings... " >&6; }
13634if ${ax_cv_check_ldflags___Wl__fatal_warnings+:} false; then :
13635  $as_echo_n "(cached) " >&6
13636else
13637
13638  ax_check_save_flags=$LDFLAGS
13639  LDFLAGS="$LDFLAGS  -Wl,-fatal_warnings"
13640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641/* end confdefs.h.  */
13642
13643int
13644main ()
13645{
13646
13647  ;
13648  return 0;
13649}
13650_ACEOF
13651if ac_fn_c_try_link "$LINENO"; then :
13652  ax_cv_check_ldflags___Wl__fatal_warnings=yes
13653else
13654  ax_cv_check_ldflags___Wl__fatal_warnings=no
13655fi
13656rm -f core conftest.err conftest.$ac_objext \
13657    conftest$ac_exeext conftest.$ac_ext
13658  LDFLAGS=$ax_check_save_flags
13659fi
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__fatal_warnings" >&5
13661$as_echo "$ax_cv_check_ldflags___Wl__fatal_warnings" >&6; }
13662if test "x$ax_cv_check_ldflags___Wl__fatal_warnings" = xyes; then :
13663
13664        ax_compiler_flags_fatal_warnings_option="-Wl,-fatal_warnings"
13665
13666else
13667  :
13668fi
13669
13670
13671    # Base flags
13672
13673
13674
13675
13676for flag in          $ax_compiler_flags_as_needed_option              ; do
13677  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
13679$as_echo_n "checking whether the linker accepts $flag... " >&6; }
13680if eval \${$as_CACHEVAR+:} false; then :
13681  $as_echo_n "(cached) " >&6
13682else
13683
13684  ax_check_save_flags=$LDFLAGS
13685  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
13686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687/* end confdefs.h.  */
13688
13689int
13690main ()
13691{
13692
13693  ;
13694  return 0;
13695}
13696_ACEOF
13697if ac_fn_c_try_link "$LINENO"; then :
13698  eval "$as_CACHEVAR=yes"
13699else
13700  eval "$as_CACHEVAR=no"
13701fi
13702rm -f core conftest.err conftest.$ac_objext \
13703    conftest$ac_exeext conftest.$ac_ext
13704  LDFLAGS=$ax_check_save_flags
13705fi
13706eval ac_res=\$$as_CACHEVAR
13707	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13708$as_echo "$ac_res" >&6; }
13709if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13710
13711if ${WARN_LDFLAGS+:} false; then :
13712
13713  case " $WARN_LDFLAGS " in #(
13714  *" $flag "*) :
13715    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
13716  (: WARN_LDFLAGS already contains $flag) 2>&5
13717  ac_status=$?
13718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13719  test $ac_status = 0; } ;; #(
13720  *) :
13721
13722     as_fn_append WARN_LDFLAGS " $flag"
13723     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
13724  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
13725  ac_status=$?
13726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13727  test $ac_status = 0; }
13728     ;;
13729esac
13730
13731else
13732
13733  WARN_LDFLAGS=$flag
13734  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
13735  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
13736  ac_status=$?
13737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738  test $ac_status = 0; }
13739
13740fi
13741
13742else
13743  :
13744fi
13745
13746done
13747
13748
13749    if test "$ax_enable_compile_warnings" != "no"; then :
13750
13751        # "yes" flags
13752
13753
13754
13755
13756for flag in       ; do
13757  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
13759$as_echo_n "checking whether the linker accepts $flag... " >&6; }
13760if eval \${$as_CACHEVAR+:} false; then :
13761  $as_echo_n "(cached) " >&6
13762else
13763
13764  ax_check_save_flags=$LDFLAGS
13765  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
13766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767/* end confdefs.h.  */
13768
13769int
13770main ()
13771{
13772
13773  ;
13774  return 0;
13775}
13776_ACEOF
13777if ac_fn_c_try_link "$LINENO"; then :
13778  eval "$as_CACHEVAR=yes"
13779else
13780  eval "$as_CACHEVAR=no"
13781fi
13782rm -f core conftest.err conftest.$ac_objext \
13783    conftest$ac_exeext conftest.$ac_ext
13784  LDFLAGS=$ax_check_save_flags
13785fi
13786eval ac_res=\$$as_CACHEVAR
13787	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13788$as_echo "$ac_res" >&6; }
13789if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13790
13791if ${WARN_LDFLAGS+:} false; then :
13792
13793  case " $WARN_LDFLAGS " in #(
13794  *" $flag "*) :
13795    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
13796  (: WARN_LDFLAGS already contains $flag) 2>&5
13797  ac_status=$?
13798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13799  test $ac_status = 0; } ;; #(
13800  *) :
13801
13802     as_fn_append WARN_LDFLAGS " $flag"
13803     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
13804  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
13805  ac_status=$?
13806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13807  test $ac_status = 0; }
13808     ;;
13809esac
13810
13811else
13812
13813  WARN_LDFLAGS=$flag
13814  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
13815  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
13816  ac_status=$?
13817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13818  test $ac_status = 0; }
13819
13820fi
13821
13822else
13823  :
13824fi
13825
13826done
13827
13828
13829fi
13830    if test "$ax_enable_compile_warnings" = "error"; then :
13831
13832        # "error" flags; -Werror has to be appended unconditionally because
13833        # it's not possible to test for
13834        #
13835        # suggest-attribute=format is disabled because it gives too many false
13836        # positives
13837
13838
13839
13840
13841for flag in              $ax_compiler_flags_fatal_warnings_option         ; do
13842  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
13844$as_echo_n "checking whether the linker accepts $flag... " >&6; }
13845if eval \${$as_CACHEVAR+:} false; then :
13846  $as_echo_n "(cached) " >&6
13847else
13848
13849  ax_check_save_flags=$LDFLAGS
13850  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
13851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852/* end confdefs.h.  */
13853
13854int
13855main ()
13856{
13857
13858  ;
13859  return 0;
13860}
13861_ACEOF
13862if ac_fn_c_try_link "$LINENO"; then :
13863  eval "$as_CACHEVAR=yes"
13864else
13865  eval "$as_CACHEVAR=no"
13866fi
13867rm -f core conftest.err conftest.$ac_objext \
13868    conftest$ac_exeext conftest.$ac_ext
13869  LDFLAGS=$ax_check_save_flags
13870fi
13871eval ac_res=\$$as_CACHEVAR
13872	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13873$as_echo "$ac_res" >&6; }
13874if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13875
13876if ${WARN_LDFLAGS+:} false; then :
13877
13878  case " $WARN_LDFLAGS " in #(
13879  *" $flag "*) :
13880    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
13881  (: WARN_LDFLAGS already contains $flag) 2>&5
13882  ac_status=$?
13883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13884  test $ac_status = 0; } ;; #(
13885  *) :
13886
13887     as_fn_append WARN_LDFLAGS " $flag"
13888     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
13889  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
13890  ac_status=$?
13891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13892  test $ac_status = 0; }
13893     ;;
13894esac
13895
13896else
13897
13898  WARN_LDFLAGS=$flag
13899  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
13900  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
13901  ac_status=$?
13902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903  test $ac_status = 0; }
13904
13905fi
13906
13907else
13908  :
13909fi
13910
13911done
13912
13913
13914fi
13915
13916    # Substitute the variables
13917
13918
13919
13920
13921
13922
13923    # Variable names
13924
13925
13926    # Base flags
13927
13928if ${WARN_SCANNERFLAGS+:} false; then :
13929
13930  case " $WARN_SCANNERFLAGS " in #(
13931  *"  "*) :
13932    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5
13933  (: WARN_SCANNERFLAGS already contains ) 2>&5
13934  ac_status=$?
13935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13936  test $ac_status = 0; } ;; #(
13937  *) :
13938
13939     as_fn_append WARN_SCANNERFLAGS " "
13940     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
13941  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
13942  ac_status=$?
13943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13944  test $ac_status = 0; }
13945     ;;
13946esac
13947
13948else
13949
13950  WARN_SCANNERFLAGS=
13951  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
13952  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
13953  ac_status=$?
13954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13955  test $ac_status = 0; }
13956
13957fi
13958
13959
13960    if test "$ax_enable_compile_warnings" != "no"; then :
13961
13962        # "yes" flags
13963
13964if ${WARN_SCANNERFLAGS+:} false; then :
13965
13966  case " $WARN_SCANNERFLAGS " in #(
13967  *"              --warn-all                                                              "*) :
13968    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains              --warn-all                                                             "; } >&5
13969  (: WARN_SCANNERFLAGS already contains              --warn-all                                                             ) 2>&5
13970  ac_status=$?
13971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13972  test $ac_status = 0; } ;; #(
13973  *) :
13974
13975     as_fn_append WARN_SCANNERFLAGS "              --warn-all                                                             "
13976     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
13977  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
13978  ac_status=$?
13979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13980  test $ac_status = 0; }
13981     ;;
13982esac
13983
13984else
13985
13986  WARN_SCANNERFLAGS=             --warn-all
13987  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
13988  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
13989  ac_status=$?
13990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13991  test $ac_status = 0; }
13992
13993fi
13994
13995
13996fi
13997    if test "$ax_enable_compile_warnings" = "error"; then :
13998
13999        # "error" flags
14000
14001if ${WARN_SCANNERFLAGS+:} false; then :
14002
14003  case " $WARN_SCANNERFLAGS " in #(
14004  *"              --warn-error          "*) :
14005    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains              --warn-error         "; } >&5
14006  (: WARN_SCANNERFLAGS already contains              --warn-error         ) 2>&5
14007  ac_status=$?
14008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14009  test $ac_status = 0; } ;; #(
14010  *) :
14011
14012     as_fn_append WARN_SCANNERFLAGS "              --warn-error         "
14013     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
14014  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
14015  ac_status=$?
14016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14017  test $ac_status = 0; }
14018     ;;
14019esac
14020
14021else
14022
14023  WARN_SCANNERFLAGS=             --warn-error
14024  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
14025  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
14026  ac_status=$?
14027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14028  test $ac_status = 0; }
14029
14030fi
14031
14032
14033fi
14034
14035    # Substitute the variables
14036
14037
14038
14039
14040# Dynamic linking dependencies
14041
14042
14043
14044
14045
14046
14047    AX_PACKAGE_REQUIRES="$AX_PACKAGE_REQUIRES glib-2.0 >= $glib_req gtk+-3.0 >= $gtk_req"
14048    AX_PACKAGE_REQUIRES_PRIVATE="$AX_PACKAGE_REQUIRES_PRIVATE "
14049
14050
14051pkg_failed=no
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AMTK_DEP" >&5
14053$as_echo_n "checking for AMTK_DEP... " >&6; }
14054
14055if test -n "$AMTK_DEP_CFLAGS"; then
14056    pkg_cv_AMTK_DEP_CFLAGS="$AMTK_DEP_CFLAGS"
14057 elif test -n "$PKG_CONFIG"; then
14058    if test -n "$PKG_CONFIG" && \
14059    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$glib_req  gtk+-3.0 >= \$gtk_req \""; } >&5
14060  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $glib_req  gtk+-3.0 >= $gtk_req ") 2>&5
14061  ac_status=$?
14062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14063  test $ac_status = 0; }; then
14064  pkg_cv_AMTK_DEP_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $glib_req  gtk+-3.0 >= $gtk_req " 2>/dev/null`
14065		      test "x$?" != "x0" && pkg_failed=yes
14066else
14067  pkg_failed=yes
14068fi
14069 else
14070    pkg_failed=untried
14071fi
14072if test -n "$AMTK_DEP_LIBS"; then
14073    pkg_cv_AMTK_DEP_LIBS="$AMTK_DEP_LIBS"
14074 elif test -n "$PKG_CONFIG"; then
14075    if test -n "$PKG_CONFIG" && \
14076    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$glib_req  gtk+-3.0 >= \$gtk_req \""; } >&5
14077  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $glib_req  gtk+-3.0 >= $gtk_req ") 2>&5
14078  ac_status=$?
14079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14080  test $ac_status = 0; }; then
14081  pkg_cv_AMTK_DEP_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $glib_req  gtk+-3.0 >= $gtk_req " 2>/dev/null`
14082		      test "x$?" != "x0" && pkg_failed=yes
14083else
14084  pkg_failed=yes
14085fi
14086 else
14087    pkg_failed=untried
14088fi
14089
14090
14091
14092if test $pkg_failed = yes; then
14093   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094$as_echo "no" >&6; }
14095
14096if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14097        _pkg_short_errors_supported=yes
14098else
14099        _pkg_short_errors_supported=no
14100fi
14101        if test $_pkg_short_errors_supported = yes; then
14102	        AMTK_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $glib_req  gtk+-3.0 >= $gtk_req " 2>&1`
14103        else
14104	        AMTK_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $glib_req  gtk+-3.0 >= $gtk_req " 2>&1`
14105        fi
14106	# Put the nasty error message in config.log where it belongs
14107	echo "$AMTK_DEP_PKG_ERRORS" >&5
14108
14109	as_fn_error $? "Package requirements (glib-2.0 >= $glib_req  gtk+-3.0 >= $gtk_req ) were not met:
14110
14111$AMTK_DEP_PKG_ERRORS
14112
14113Consider adjusting the PKG_CONFIG_PATH environment variable if you
14114installed software in a non-standard prefix.
14115
14116Alternatively, you may set the environment variables AMTK_DEP_CFLAGS
14117and AMTK_DEP_LIBS to avoid the need to call pkg-config.
14118See the pkg-config man page for more details." "$LINENO" 5
14119elif test $pkg_failed = untried; then
14120     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121$as_echo "no" >&6; }
14122	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14124as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14125is in your PATH or set the PKG_CONFIG environment variable to the full
14126path to pkg-config.
14127
14128Alternatively, you may set the environment variables AMTK_DEP_CFLAGS
14129and AMTK_DEP_LIBS to avoid the need to call pkg-config.
14130See the pkg-config man page for more details.
14131
14132To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14133See \`config.log' for more details" "$LINENO" 5; }
14134else
14135	AMTK_DEP_CFLAGS=$pkg_cv_AMTK_DEP_CFLAGS
14136	AMTK_DEP_LIBS=$pkg_cv_AMTK_DEP_LIBS
14137        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14138$as_echo "yes" >&6; }
14139
14140fi
14141
14142    # Substitute output.
14143
14144
14145
14146
14147# i18n
14148
14149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14150$as_echo_n "checking whether NLS is requested... " >&6; }
14151    # Check whether --enable-nls was given.
14152if test "${enable_nls+set}" = set; then :
14153  enableval=$enable_nls; USE_NLS=$enableval
14154else
14155  USE_NLS=yes
14156fi
14157
14158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14159$as_echo "$USE_NLS" >&6; }
14160
14161
14162
14163
14164      GETTEXT_MACRO_VERSION=0.20
14165
14166
14167
14168
14169# Prepare PATH_SEPARATOR.
14170# The user is always right.
14171if test "${PATH_SEPARATOR+set}" != set; then
14172  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14173  # contains only /bin. Note that ksh looks also at the FPATH variable,
14174  # so we have to set that as well for the test.
14175  PATH_SEPARATOR=:
14176  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14177    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14178           || PATH_SEPARATOR=';'
14179       }
14180fi
14181
14182# Find out how to test for executable files. Don't use a zero-byte file,
14183# as systems may use methods other than mode bits to determine executability.
14184cat >conf$$.file <<_ASEOF
14185#! /bin/sh
14186exit 0
14187_ASEOF
14188chmod +x conf$$.file
14189if test -x conf$$.file >/dev/null 2>&1; then
14190  ac_executable_p="test -x"
14191else
14192  ac_executable_p="test -f"
14193fi
14194rm -f conf$$.file
14195
14196# Extract the first word of "msgfmt", so it can be a program name with args.
14197set dummy msgfmt; ac_word=$2
14198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14199$as_echo_n "checking for $ac_word... " >&6; }
14200if ${ac_cv_path_MSGFMT+:} false; then :
14201  $as_echo_n "(cached) " >&6
14202else
14203  case "$MSGFMT" in
14204  [\\/]* | ?:[\\/]*)
14205    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14206    ;;
14207  *)
14208    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14209    for ac_dir in $PATH; do
14210      IFS="$ac_save_IFS"
14211      test -z "$ac_dir" && ac_dir=.
14212      for ac_exec_ext in '' $ac_executable_extensions; do
14213        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14214          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14215          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14216     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14217            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14218            break 2
14219          fi
14220        fi
14221      done
14222    done
14223    IFS="$ac_save_IFS"
14224  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14225    ;;
14226esac
14227fi
14228MSGFMT="$ac_cv_path_MSGFMT"
14229if test "$MSGFMT" != ":"; then
14230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14231$as_echo "$MSGFMT" >&6; }
14232else
14233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14234$as_echo "no" >&6; }
14235fi
14236
14237  # Extract the first word of "gmsgfmt", so it can be a program name with args.
14238set dummy gmsgfmt; ac_word=$2
14239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240$as_echo_n "checking for $ac_word... " >&6; }
14241if ${ac_cv_path_GMSGFMT+:} false; then :
14242  $as_echo_n "(cached) " >&6
14243else
14244  case $GMSGFMT in
14245  [\\/]* | ?:[\\/]*)
14246  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14247  ;;
14248  *)
14249  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250for as_dir in $PATH
14251do
14252  IFS=$as_save_IFS
14253  test -z "$as_dir" && as_dir=.
14254    for ac_exec_ext in '' $ac_executable_extensions; do
14255  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258    break 2
14259  fi
14260done
14261  done
14262IFS=$as_save_IFS
14263
14264  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14265  ;;
14266esac
14267fi
14268GMSGFMT=$ac_cv_path_GMSGFMT
14269if test -n "$GMSGFMT"; then
14270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14271$as_echo "$GMSGFMT" >&6; }
14272else
14273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14274$as_echo "no" >&6; }
14275fi
14276
14277
14278
14279    case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14280    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14281    *) GMSGFMT_015=$GMSGFMT ;;
14282  esac
14283
14284
14285
14286# Prepare PATH_SEPARATOR.
14287# The user is always right.
14288if test "${PATH_SEPARATOR+set}" != set; then
14289  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14290  # contains only /bin. Note that ksh looks also at the FPATH variable,
14291  # so we have to set that as well for the test.
14292  PATH_SEPARATOR=:
14293  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14294    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14295           || PATH_SEPARATOR=';'
14296       }
14297fi
14298
14299# Find out how to test for executable files. Don't use a zero-byte file,
14300# as systems may use methods other than mode bits to determine executability.
14301cat >conf$$.file <<_ASEOF
14302#! /bin/sh
14303exit 0
14304_ASEOF
14305chmod +x conf$$.file
14306if test -x conf$$.file >/dev/null 2>&1; then
14307  ac_executable_p="test -x"
14308else
14309  ac_executable_p="test -f"
14310fi
14311rm -f conf$$.file
14312
14313# Extract the first word of "xgettext", so it can be a program name with args.
14314set dummy xgettext; ac_word=$2
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14316$as_echo_n "checking for $ac_word... " >&6; }
14317if ${ac_cv_path_XGETTEXT+:} false; then :
14318  $as_echo_n "(cached) " >&6
14319else
14320  case "$XGETTEXT" in
14321  [\\/]* | ?:[\\/]*)
14322    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14323    ;;
14324  *)
14325    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14326    for ac_dir in $PATH; do
14327      IFS="$ac_save_IFS"
14328      test -z "$ac_dir" && ac_dir=.
14329      for ac_exec_ext in '' $ac_executable_extensions; do
14330        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14331          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14332          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14333     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14334            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14335            break 2
14336          fi
14337        fi
14338      done
14339    done
14340    IFS="$ac_save_IFS"
14341  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14342    ;;
14343esac
14344fi
14345XGETTEXT="$ac_cv_path_XGETTEXT"
14346if test "$XGETTEXT" != ":"; then
14347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14348$as_echo "$XGETTEXT" >&6; }
14349else
14350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351$as_echo "no" >&6; }
14352fi
14353
14354    rm -f messages.po
14355
14356    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14357    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14358    *) XGETTEXT_015=$XGETTEXT ;;
14359  esac
14360
14361
14362
14363# Prepare PATH_SEPARATOR.
14364# The user is always right.
14365if test "${PATH_SEPARATOR+set}" != set; then
14366  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14367  # contains only /bin. Note that ksh looks also at the FPATH variable,
14368  # so we have to set that as well for the test.
14369  PATH_SEPARATOR=:
14370  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14371    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14372           || PATH_SEPARATOR=';'
14373       }
14374fi
14375
14376# Find out how to test for executable files. Don't use a zero-byte file,
14377# as systems may use methods other than mode bits to determine executability.
14378cat >conf$$.file <<_ASEOF
14379#! /bin/sh
14380exit 0
14381_ASEOF
14382chmod +x conf$$.file
14383if test -x conf$$.file >/dev/null 2>&1; then
14384  ac_executable_p="test -x"
14385else
14386  ac_executable_p="test -f"
14387fi
14388rm -f conf$$.file
14389
14390# Extract the first word of "msgmerge", so it can be a program name with args.
14391set dummy msgmerge; ac_word=$2
14392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14393$as_echo_n "checking for $ac_word... " >&6; }
14394if ${ac_cv_path_MSGMERGE+:} false; then :
14395  $as_echo_n "(cached) " >&6
14396else
14397  case "$MSGMERGE" in
14398  [\\/]* | ?:[\\/]*)
14399    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14400    ;;
14401  *)
14402    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14403    for ac_dir in $PATH; do
14404      IFS="$ac_save_IFS"
14405      test -z "$ac_dir" && ac_dir=.
14406      for ac_exec_ext in '' $ac_executable_extensions; do
14407        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14408          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14409          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14410            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14411            break 2
14412          fi
14413        fi
14414      done
14415    done
14416    IFS="$ac_save_IFS"
14417  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14418    ;;
14419esac
14420fi
14421MSGMERGE="$ac_cv_path_MSGMERGE"
14422if test "$MSGMERGE" != ":"; then
14423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14424$as_echo "$MSGMERGE" >&6; }
14425else
14426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427$as_echo "no" >&6; }
14428fi
14429
14430
14431    if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
14432    MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
14433  else
14434        if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
14435      MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
14436    else
14437                        MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
14438    fi
14439  fi
14440
14441
14442    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14443
14444
14445  ac_config_commands="$ac_config_commands po-directories"
14446
14447
14448
14449      if test "X$prefix" = "XNONE"; then
14450    acl_final_prefix="$ac_default_prefix"
14451  else
14452    acl_final_prefix="$prefix"
14453  fi
14454  if test "X$exec_prefix" = "XNONE"; then
14455    acl_final_exec_prefix='${prefix}'
14456  else
14457    acl_final_exec_prefix="$exec_prefix"
14458  fi
14459  acl_save_prefix="$prefix"
14460  prefix="$acl_final_prefix"
14461  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14462  prefix="$acl_save_prefix"
14463
14464
14465
14466# Check whether --with-gnu-ld was given.
14467if test "${with_gnu_ld+set}" = set; then :
14468  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14469else
14470  with_gnu_ld=no
14471fi
14472
14473# Prepare PATH_SEPARATOR.
14474# The user is always right.
14475if test "${PATH_SEPARATOR+set}" != set; then
14476  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14477  # contains only /bin. Note that ksh looks also at the FPATH variable,
14478  # so we have to set that as well for the test.
14479  PATH_SEPARATOR=:
14480  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14481    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14482           || PATH_SEPARATOR=';'
14483       }
14484fi
14485
14486if test -n "$LD"; then
14487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
14488$as_echo_n "checking for ld... " >&6; }
14489elif test "$GCC" = yes; then
14490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14491$as_echo_n "checking for ld used by $CC... " >&6; }
14492elif test "$with_gnu_ld" = yes; then
14493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14494$as_echo_n "checking for GNU ld... " >&6; }
14495else
14496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14497$as_echo_n "checking for non-GNU ld... " >&6; }
14498fi
14499if test -n "$LD"; then
14500  # Let the user override the test with a path.
14501  :
14502else
14503  if ${acl_cv_path_LD+:} false; then :
14504  $as_echo_n "(cached) " >&6
14505else
14506
14507    acl_cv_path_LD= # Final result of this test
14508    ac_prog=ld # Program to search in $PATH
14509    if test "$GCC" = yes; then
14510      # Check if gcc -print-prog-name=ld gives a path.
14511      case $host in
14512        *-*-mingw*)
14513          # gcc leaves a trailing carriage return which upsets mingw
14514          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14515        *)
14516          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
14517      esac
14518      case $acl_output in
14519        # Accept absolute paths.
14520        [\\/]* | ?:[\\/]*)
14521          re_direlt='/[^/][^/]*/\.\./'
14522          # Canonicalize the pathname of ld
14523          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
14524          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
14525            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
14526          done
14527          # Got the pathname. No search in PATH is needed.
14528          acl_cv_path_LD="$acl_output"
14529          ac_prog=
14530          ;;
14531        "")
14532          # If it fails, then pretend we aren't using GCC.
14533          ;;
14534        *)
14535          # If it is relative, then search for the first ld in PATH.
14536          with_gnu_ld=unknown
14537          ;;
14538      esac
14539    fi
14540    if test -n "$ac_prog"; then
14541      # Search for $ac_prog in $PATH.
14542      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14543      for ac_dir in $PATH; do
14544        IFS="$acl_save_ifs"
14545        test -z "$ac_dir" && ac_dir=.
14546        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14547          acl_cv_path_LD="$ac_dir/$ac_prog"
14548          # Check to see if the program is GNU ld.  I'd rather use --version,
14549          # but apparently some variants of GNU ld only accept -v.
14550          # Break only if it was the GNU/non-GNU ld that we prefer.
14551          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
14552            *GNU* | *'with BFD'*)
14553              test "$with_gnu_ld" != no && break
14554              ;;
14555            *)
14556              test "$with_gnu_ld" != yes && break
14557              ;;
14558          esac
14559        fi
14560      done
14561      IFS="$acl_save_ifs"
14562    fi
14563    case $host in
14564      *-*-aix*)
14565        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566/* end confdefs.h.  */
14567#if defined __powerpc64__ || defined _ARCH_PPC64
14568                int ok;
14569               #else
14570                error fail
14571               #endif
14572
14573_ACEOF
14574if ac_fn_c_try_compile "$LINENO"; then :
14575  # The compiler produces 64-bit code. Add option '-b64' so that the
14576           # linker groks 64-bit object files.
14577           case "$acl_cv_path_LD " in
14578             *" -b64 "*) ;;
14579             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
14580           esac
14581
14582fi
14583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14584        ;;
14585      sparc64-*-netbsd*)
14586        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587/* end confdefs.h.  */
14588#if defined __sparcv9 || defined __arch64__
14589                int ok;
14590               #else
14591                error fail
14592               #endif
14593
14594_ACEOF
14595if ac_fn_c_try_compile "$LINENO"; then :
14596
14597else
14598  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
14599           # so that the linker groks 32-bit object files.
14600           case "$acl_cv_path_LD " in
14601             *" -m elf32_sparc "*) ;;
14602             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
14603           esac
14604
14605fi
14606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607        ;;
14608    esac
14609
14610fi
14611
14612  LD="$acl_cv_path_LD"
14613fi
14614if test -n "$LD"; then
14615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14616$as_echo "$LD" >&6; }
14617else
14618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619$as_echo "no" >&6; }
14620  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14621fi
14622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14623$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14624if ${acl_cv_prog_gnu_ld+:} false; then :
14625  $as_echo_n "(cached) " >&6
14626else
14627  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14628case `$LD -v 2>&1 </dev/null` in
14629*GNU* | *'with BFD'*)
14630  acl_cv_prog_gnu_ld=yes
14631  ;;
14632*)
14633  acl_cv_prog_gnu_ld=no
14634  ;;
14635esac
14636fi
14637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14638$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14639with_gnu_ld=$acl_cv_prog_gnu_ld
14640
14641
14642
14643
14644                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14645$as_echo_n "checking for shared library run path origin... " >&6; }
14646if ${acl_cv_rpath+:} false; then :
14647  $as_echo_n "(cached) " >&6
14648else
14649
14650    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14651    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14652    . ./conftest.sh
14653    rm -f ./conftest.sh
14654    acl_cv_rpath=done
14655
14656fi
14657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14658$as_echo "$acl_cv_rpath" >&6; }
14659  wl="$acl_cv_wl"
14660  acl_libext="$acl_cv_libext"
14661  acl_shlibext="$acl_cv_shlibext"
14662  acl_libname_spec="$acl_cv_libname_spec"
14663  acl_library_names_spec="$acl_cv_library_names_spec"
14664  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14665  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14666  acl_hardcode_direct="$acl_cv_hardcode_direct"
14667  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14668    # Check whether --enable-rpath was given.
14669if test "${enable_rpath+set}" = set; then :
14670  enableval=$enable_rpath; :
14671else
14672  enable_rpath=yes
14673fi
14674
14675
14676
14677
14678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
14679$as_echo_n "checking 32-bit host C ABI... " >&6; }
14680if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
14681  $as_echo_n "(cached) " >&6
14682else
14683  if test -n "$gl_cv_host_cpu_c_abi"; then
14684       case "$gl_cv_host_cpu_c_abi" in
14685         i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
14686           gl_cv_host_cpu_c_abi_32bit=yes ;;
14687         x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
14688           gl_cv_host_cpu_c_abi_32bit=no ;;
14689         *)
14690           gl_cv_host_cpu_c_abi_32bit=unknown ;;
14691       esac
14692     else
14693       case "$host_cpu" in
14694
14695         # CPUs that only support a 32-bit ABI.
14696         arc \
14697         | bfin \
14698         | cris* \
14699         | csky \
14700         | epiphany \
14701         | ft32 \
14702         | h8300 \
14703         | m68k \
14704         | microblaze | microblazeel \
14705         | nds32 | nds32le | nds32be \
14706         | nios2 | nios2eb | nios2el \
14707         | or1k* \
14708         | or32 \
14709         | sh | sh1234 | sh1234elb \
14710         | tic6x \
14711         | xtensa* )
14712           gl_cv_host_cpu_c_abi_32bit=yes
14713           ;;
14714
14715         # CPUs that only support a 64-bit ABI.
14716         alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
14717         | mmix )
14718           gl_cv_host_cpu_c_abi_32bit=no
14719           ;;
14720
14721         i[34567]86 )
14722           gl_cv_host_cpu_c_abi_32bit=yes
14723           ;;
14724
14725         x86_64 )
14726           # On x86_64 systems, the C compiler may be generating code in one of
14727           # these ABIs:
14728           # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
14729           # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
14730           #   with native Windows (mingw, MSVC).
14731           # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
14732           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
14733           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734/* end confdefs.h.  */
14735#if (defined __x86_64__ || defined __amd64__ \
14736                       || defined _M_X64 || defined _M_AMD64) \
14737                      && !(defined __ILP32__ || defined _ILP32)
14738                   int ok;
14739                  #else
14740                   error fail
14741                  #endif
14742
14743_ACEOF
14744if ac_fn_c_try_compile "$LINENO"; then :
14745  gl_cv_host_cpu_c_abi_32bit=no
14746else
14747  gl_cv_host_cpu_c_abi_32bit=yes
14748fi
14749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750           ;;
14751
14752         arm* | aarch64 )
14753           # Assume arm with EABI.
14754           # On arm64 systems, the C compiler may be generating code in one of
14755           # these ABIs:
14756           # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
14757           # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
14758           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
14759           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760/* end confdefs.h.  */
14761#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
14762                   int ok;
14763                  #else
14764                   error fail
14765                  #endif
14766
14767_ACEOF
14768if ac_fn_c_try_compile "$LINENO"; then :
14769  gl_cv_host_cpu_c_abi_32bit=no
14770else
14771  gl_cv_host_cpu_c_abi_32bit=yes
14772fi
14773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14774           ;;
14775
14776         hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
14777           # On hppa, the C compiler may be generating 32-bit code or 64-bit
14778           # code. In the latter case, it defines _LP64 and __LP64__.
14779           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780/* end confdefs.h.  */
14781#ifdef __LP64__
14782                   int ok;
14783                  #else
14784                   error fail
14785                  #endif
14786
14787_ACEOF
14788if ac_fn_c_try_compile "$LINENO"; then :
14789  gl_cv_host_cpu_c_abi_32bit=no
14790else
14791  gl_cv_host_cpu_c_abi_32bit=yes
14792fi
14793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794           ;;
14795
14796         ia64* )
14797           # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
14798           # 32-bit code. In the latter case, it defines _ILP32.
14799           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800/* end confdefs.h.  */
14801#ifdef _ILP32
14802                   int ok;
14803                  #else
14804                   error fail
14805                  #endif
14806
14807_ACEOF
14808if ac_fn_c_try_compile "$LINENO"; then :
14809  gl_cv_host_cpu_c_abi_32bit=yes
14810else
14811  gl_cv_host_cpu_c_abi_32bit=no
14812fi
14813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814           ;;
14815
14816         mips* )
14817           # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
14818           # at 32.
14819           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820/* end confdefs.h.  */
14821#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
14822                   int ok;
14823                  #else
14824                   error fail
14825                  #endif
14826
14827_ACEOF
14828if ac_fn_c_try_compile "$LINENO"; then :
14829  gl_cv_host_cpu_c_abi_32bit=no
14830else
14831  gl_cv_host_cpu_c_abi_32bit=yes
14832fi
14833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834           ;;
14835
14836         powerpc* )
14837           # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
14838           # No need to distinguish them here; the caller may distinguish
14839           # them based on the OS.
14840           # On powerpc64 systems, the C compiler may still be generating
14841           # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
14842           # be generating 64-bit code.
14843           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844/* end confdefs.h.  */
14845#if defined __powerpc64__ || defined _ARCH_PPC64
14846                   int ok;
14847                  #else
14848                   error fail
14849                  #endif
14850
14851_ACEOF
14852if ac_fn_c_try_compile "$LINENO"; then :
14853  gl_cv_host_cpu_c_abi_32bit=no
14854else
14855  gl_cv_host_cpu_c_abi_32bit=yes
14856fi
14857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858           ;;
14859
14860         rs6000 )
14861           gl_cv_host_cpu_c_abi_32bit=yes
14862           ;;
14863
14864         riscv32 | riscv64 )
14865           # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
14866           # Size of 'long' and 'void *':
14867           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868/* end confdefs.h.  */
14869#if defined __LP64__
14870                    int ok;
14871                  #else
14872                    error fail
14873                  #endif
14874
14875_ACEOF
14876if ac_fn_c_try_compile "$LINENO"; then :
14877  gl_cv_host_cpu_c_abi_32bit=no
14878else
14879  gl_cv_host_cpu_c_abi_32bit=yes
14880fi
14881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14882           ;;
14883
14884         s390* )
14885           # On s390x, the C compiler may be generating 64-bit (= s390x) code
14886           # or 31-bit (= s390) code.
14887           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888/* end confdefs.h.  */
14889#if defined __LP64__ || defined __s390x__
14890                    int ok;
14891                  #else
14892                    error fail
14893                  #endif
14894
14895_ACEOF
14896if ac_fn_c_try_compile "$LINENO"; then :
14897  gl_cv_host_cpu_c_abi_32bit=no
14898else
14899  gl_cv_host_cpu_c_abi_32bit=yes
14900fi
14901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902           ;;
14903
14904         sparc | sparc64 )
14905           # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
14906           # C compiler still generates 32-bit code.
14907           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908/* end confdefs.h.  */
14909#if defined __sparcv9 || defined __arch64__
14910                   int ok;
14911                  #else
14912                   error fail
14913                  #endif
14914
14915_ACEOF
14916if ac_fn_c_try_compile "$LINENO"; then :
14917  gl_cv_host_cpu_c_abi_32bit=no
14918else
14919  gl_cv_host_cpu_c_abi_32bit=yes
14920fi
14921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922           ;;
14923
14924         *)
14925           gl_cv_host_cpu_c_abi_32bit=unknown
14926           ;;
14927       esac
14928     fi
14929
14930fi
14931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
14932$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
14933
14934  HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
14935
14936
14937
14938
14939
14940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
14941$as_echo_n "checking for ELF binary format... " >&6; }
14942if ${gl_cv_elf+:} false; then :
14943  $as_echo_n "(cached) " >&6
14944else
14945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946/* end confdefs.h.  */
14947#ifdef __ELF__
14948        Extensible Linking Format
14949        #endif
14950
14951_ACEOF
14952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14953  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
14954  gl_cv_elf=yes
14955else
14956  gl_cv_elf=no
14957fi
14958rm -f conftest*
14959
14960
14961fi
14962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
14963$as_echo "$gl_cv_elf" >&6; }
14964  if test $gl_cv_elf; then
14965    # Extract the ELF class of a file (5th byte) in decimal.
14966    # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
14967    if od -A x < /dev/null >/dev/null 2>/dev/null; then
14968      # Use POSIX od.
14969      func_elfclass ()
14970      {
14971        od -A n -t d1 -j 4 -N 1
14972      }
14973    else
14974      # Use BSD hexdump.
14975      func_elfclass ()
14976      {
14977        dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
14978        echo
14979      }
14980    fi
14981    case $HOST_CPU_C_ABI_32BIT in
14982      yes)
14983        # 32-bit ABI.
14984        acl_is_expected_elfclass ()
14985        {
14986          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 1
14987        }
14988        ;;
14989      no)
14990        # 64-bit ABI.
14991        acl_is_expected_elfclass ()
14992        {
14993          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 2
14994        }
14995        ;;
14996      *)
14997        # Unknown.
14998        acl_is_expected_elfclass ()
14999        {
15000          :
15001        }
15002        ;;
15003    esac
15004  else
15005    acl_is_expected_elfclass ()
15006    {
15007      :
15008    }
15009  fi
15010
15011    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
15012$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
15013if ${acl_cv_libdirstems+:} false; then :
15014  $as_echo_n "(cached) " >&6
15015else
15016            acl_libdirstem=lib
15017     acl_libdirstem2=
15018     acl_libdirstem3=
15019     case "$host_os" in
15020       solaris*)
15021                                                      if test $HOST_CPU_C_ABI_32BIT = no; then
15022           acl_libdirstem2=lib/64
15023           case "$host_cpu" in
15024             sparc*)        acl_libdirstem3=lib/sparcv9 ;;
15025             i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
15026           esac
15027         fi
15028         ;;
15029       *)
15030                                                                                 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
15031                     | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15032         if test $HOST_CPU_C_ABI_32BIT != no; then
15033           # 32-bit or unknown ABI.
15034           if test -d /usr/lib32; then
15035             acl_libdirstem2=lib32
15036           fi
15037         fi
15038         if test $HOST_CPU_C_ABI_32BIT != yes; then
15039           # 64-bit or unknown ABI.
15040           if test -d /usr/lib64; then
15041             acl_libdirstem3=lib64
15042           fi
15043         fi
15044         if test -n "$searchpath"; then
15045           acl_save_IFS="${IFS= 	}"; IFS=":"
15046           for searchdir in $searchpath; do
15047             if test -d "$searchdir"; then
15048               case "$searchdir" in
15049                 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
15050                 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
15051                 */../ | */.. )
15052                   # Better ignore directories of this form. They are misleading.
15053                   ;;
15054                 *) searchdir=`cd "$searchdir" && pwd`
15055                    case "$searchdir" in
15056                      */lib32 ) acl_libdirstem2=lib32 ;;
15057                      */lib64 ) acl_libdirstem3=lib64 ;;
15058                    esac ;;
15059               esac
15060             fi
15061           done
15062           IFS="$acl_save_IFS"
15063           if test $HOST_CPU_C_ABI_32BIT = yes; then
15064             # 32-bit ABI.
15065             acl_libdirstem3=
15066           fi
15067           if test $HOST_CPU_C_ABI_32BIT = no; then
15068             # 64-bit ABI.
15069             acl_libdirstem2=
15070           fi
15071         fi
15072         ;;
15073     esac
15074     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15075     test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
15076     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
15077
15078fi
15079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
15080$as_echo "$acl_cv_libdirstems" >&6; }
15081      acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
15082  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
15083  acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095    use_additional=yes
15096
15097  acl_save_prefix="$prefix"
15098  prefix="$acl_final_prefix"
15099  acl_save_exec_prefix="$exec_prefix"
15100  exec_prefix="$acl_final_exec_prefix"
15101
15102    eval additional_includedir=\"$includedir\"
15103    eval additional_libdir=\"$libdir\"
15104    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
15105    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
15106
15107  exec_prefix="$acl_save_exec_prefix"
15108  prefix="$acl_save_prefix"
15109
15110
15111# Check whether --with-libiconv-prefix was given.
15112if test "${with_libiconv_prefix+set}" = set; then :
15113  withval=$with_libiconv_prefix;
15114    if test "X$withval" = "Xno"; then
15115      use_additional=no
15116    else
15117      if test "X$withval" = "X"; then
15118
15119  acl_save_prefix="$prefix"
15120  prefix="$acl_final_prefix"
15121  acl_save_exec_prefix="$exec_prefix"
15122  exec_prefix="$acl_final_exec_prefix"
15123
15124          eval additional_includedir=\"$includedir\"
15125          eval additional_libdir=\"$libdir\"
15126          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
15127          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
15128
15129  exec_prefix="$acl_save_exec_prefix"
15130  prefix="$acl_save_prefix"
15131
15132      else
15133        additional_includedir="$withval/include"
15134        additional_libdir="$withval/$acl_libdirstem"
15135        additional_libdir2="$withval/$acl_libdirstem2"
15136        additional_libdir3="$withval/$acl_libdirstem3"
15137      fi
15138    fi
15139
15140fi
15141
15142  if test "X$additional_libdir2" = "X$additional_libdir"; then
15143    additional_libdir2=
15144  fi
15145  if test "X$additional_libdir3" = "X$additional_libdir"; then
15146    additional_libdir3=
15147  fi
15148      LIBICONV=
15149  LTLIBICONV=
15150  INCICONV=
15151  LIBICONV_PREFIX=
15152      HAVE_LIBICONV=
15153  rpathdirs=
15154  ltrpathdirs=
15155  names_already_handled=
15156  names_next_round='iconv '
15157  while test -n "$names_next_round"; do
15158    names_this_round="$names_next_round"
15159    names_next_round=
15160    for name in $names_this_round; do
15161      already_handled=
15162      for n in $names_already_handled; do
15163        if test "$n" = "$name"; then
15164          already_handled=yes
15165          break
15166        fi
15167      done
15168      if test -z "$already_handled"; then
15169        names_already_handled="$names_already_handled $name"
15170                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15171        eval value=\"\$HAVE_LIB$uppername\"
15172        if test -n "$value"; then
15173          if test "$value" = yes; then
15174            eval value=\"\$LIB$uppername\"
15175            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15176            eval value=\"\$LTLIB$uppername\"
15177            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15178          else
15179                                    :
15180          fi
15181        else
15182                              found_dir=
15183          found_la=
15184          found_so=
15185          found_a=
15186          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15187          if test -n "$acl_shlibext"; then
15188            shrext=".$acl_shlibext"             # typically: shrext=.so
15189          else
15190            shrext=
15191          fi
15192          if test $use_additional = yes; then
15193            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
15194              if test "X$found_dir" = "X"; then
15195                eval dir=\$$additional_libdir_variable
15196                if test -n "$dir"; then
15197                                                      if test -n "$acl_shlibext"; then
15198                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
15199                      found_dir="$dir"
15200                      found_so="$dir/$libname$shrext"
15201                    else
15202                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15203                        ver=`(cd "$dir" && \
15204                              for f in "$libname$shrext".*; do echo "$f"; done \
15205                              | sed -e "s,^$libname$shrext\\\\.,," \
15206                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15207                              | sed 1q ) 2>/dev/null`
15208                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
15209                          found_dir="$dir"
15210                          found_so="$dir/$libname$shrext.$ver"
15211                        fi
15212                      else
15213                        eval library_names=\"$acl_library_names_spec\"
15214                        for f in $library_names; do
15215                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
15216                            found_dir="$dir"
15217                            found_so="$dir/$f"
15218                            break
15219                          fi
15220                        done
15221                      fi
15222                    fi
15223                  fi
15224                                    if test "X$found_dir" = "X"; then
15225                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
15226                      found_dir="$dir"
15227                      found_a="$dir/$libname.$acl_libext"
15228                    fi
15229                  fi
15230                  if test "X$found_dir" != "X"; then
15231                    if test -f "$dir/$libname.la"; then
15232                      found_la="$dir/$libname.la"
15233                    fi
15234                  fi
15235                fi
15236              fi
15237            done
15238          fi
15239          if test "X$found_dir" = "X"; then
15240            for x in $LDFLAGS $LTLIBICONV; do
15241
15242  acl_save_prefix="$prefix"
15243  prefix="$acl_final_prefix"
15244  acl_save_exec_prefix="$exec_prefix"
15245  exec_prefix="$acl_final_exec_prefix"
15246  eval x=\"$x\"
15247  exec_prefix="$acl_save_exec_prefix"
15248  prefix="$acl_save_prefix"
15249
15250              case "$x" in
15251                -L*)
15252                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15253                                    if test -n "$acl_shlibext"; then
15254                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
15255                      found_dir="$dir"
15256                      found_so="$dir/$libname$shrext"
15257                    else
15258                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15259                        ver=`(cd "$dir" && \
15260                              for f in "$libname$shrext".*; do echo "$f"; done \
15261                              | sed -e "s,^$libname$shrext\\\\.,," \
15262                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15263                              | sed 1q ) 2>/dev/null`
15264                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
15265                          found_dir="$dir"
15266                          found_so="$dir/$libname$shrext.$ver"
15267                        fi
15268                      else
15269                        eval library_names=\"$acl_library_names_spec\"
15270                        for f in $library_names; do
15271                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
15272                            found_dir="$dir"
15273                            found_so="$dir/$f"
15274                            break
15275                          fi
15276                        done
15277                      fi
15278                    fi
15279                  fi
15280                                    if test "X$found_dir" = "X"; then
15281                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
15282                      found_dir="$dir"
15283                      found_a="$dir/$libname.$acl_libext"
15284                    fi
15285                  fi
15286                  if test "X$found_dir" != "X"; then
15287                    if test -f "$dir/$libname.la"; then
15288                      found_la="$dir/$libname.la"
15289                    fi
15290                  fi
15291                  ;;
15292              esac
15293              if test "X$found_dir" != "X"; then
15294                break
15295              fi
15296            done
15297          fi
15298          if test "X$found_dir" != "X"; then
15299                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15300            if test "X$found_so" != "X"; then
15301                                                        if test "$enable_rpath" = no \
15302                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15303                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
15304                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
15305                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15306              else
15307                                                                                haveit=
15308                for x in $ltrpathdirs; do
15309                  if test "X$x" = "X$found_dir"; then
15310                    haveit=yes
15311                    break
15312                  fi
15313                done
15314                if test -z "$haveit"; then
15315                  ltrpathdirs="$ltrpathdirs $found_dir"
15316                fi
15317                                if test "$acl_hardcode_direct" = yes; then
15318                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15319                else
15320                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15321                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15322                                                            haveit=
15323                    for x in $rpathdirs; do
15324                      if test "X$x" = "X$found_dir"; then
15325                        haveit=yes
15326                        break
15327                      fi
15328                    done
15329                    if test -z "$haveit"; then
15330                      rpathdirs="$rpathdirs $found_dir"
15331                    fi
15332                  else
15333                                                                                haveit=
15334                    for x in $LDFLAGS $LIBICONV; do
15335
15336  acl_save_prefix="$prefix"
15337  prefix="$acl_final_prefix"
15338  acl_save_exec_prefix="$exec_prefix"
15339  exec_prefix="$acl_final_exec_prefix"
15340  eval x=\"$x\"
15341  exec_prefix="$acl_save_exec_prefix"
15342  prefix="$acl_save_prefix"
15343
15344                      if test "X$x" = "X-L$found_dir"; then
15345                        haveit=yes
15346                        break
15347                      fi
15348                    done
15349                    if test -z "$haveit"; then
15350                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15351                    fi
15352                    if test "$acl_hardcode_minus_L" != no; then
15353                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15354                    else
15355                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15356                    fi
15357                  fi
15358                fi
15359              fi
15360            else
15361              if test "X$found_a" != "X"; then
15362                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15363              else
15364                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15365              fi
15366            fi
15367                        additional_includedir=
15368            case "$found_dir" in
15369              */$acl_libdirstem | */$acl_libdirstem/)
15370                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15371                if test "$name" = 'iconv'; then
15372                  LIBICONV_PREFIX="$basedir"
15373                fi
15374                additional_includedir="$basedir/include"
15375                ;;
15376              */$acl_libdirstem2 | */$acl_libdirstem2/)
15377                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15378                if test "$name" = 'iconv'; then
15379                  LIBICONV_PREFIX="$basedir"
15380                fi
15381                additional_includedir="$basedir/include"
15382                ;;
15383              */$acl_libdirstem3 | */$acl_libdirstem3/)
15384                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
15385                if test "$name" = 'iconv'; then
15386                  LIBICONV_PREFIX="$basedir"
15387                fi
15388                additional_includedir="$basedir/include"
15389                ;;
15390            esac
15391            if test "X$additional_includedir" != "X"; then
15392                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15393                haveit=
15394                if test "X$additional_includedir" = "X/usr/local/include"; then
15395                  if test -n "$GCC"; then
15396                    case $host_os in
15397                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15398                    esac
15399                  fi
15400                fi
15401                if test -z "$haveit"; then
15402                  for x in $CPPFLAGS $INCICONV; do
15403
15404  acl_save_prefix="$prefix"
15405  prefix="$acl_final_prefix"
15406  acl_save_exec_prefix="$exec_prefix"
15407  exec_prefix="$acl_final_exec_prefix"
15408  eval x=\"$x\"
15409  exec_prefix="$acl_save_exec_prefix"
15410  prefix="$acl_save_prefix"
15411
15412                    if test "X$x" = "X-I$additional_includedir"; then
15413                      haveit=yes
15414                      break
15415                    fi
15416                  done
15417                  if test -z "$haveit"; then
15418                    if test -d "$additional_includedir"; then
15419                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15420                    fi
15421                  fi
15422                fi
15423              fi
15424            fi
15425                        if test -n "$found_la"; then
15426                                                        save_libdir="$libdir"
15427              case "$found_la" in
15428                */* | *\\*) . "$found_la" ;;
15429                *) . "./$found_la" ;;
15430              esac
15431              libdir="$save_libdir"
15432                            for dep in $dependency_libs; do
15433                case "$dep" in
15434                  -L*)
15435                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15436                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
15437                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
15438                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
15439                      haveit=
15440                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
15441                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
15442                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
15443                        if test -n "$GCC"; then
15444                          case $host_os in
15445                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15446                          esac
15447                        fi
15448                      fi
15449                      if test -z "$haveit"; then
15450                        haveit=
15451                        for x in $LDFLAGS $LIBICONV; do
15452
15453  acl_save_prefix="$prefix"
15454  prefix="$acl_final_prefix"
15455  acl_save_exec_prefix="$exec_prefix"
15456  exec_prefix="$acl_final_exec_prefix"
15457  eval x=\"$x\"
15458  exec_prefix="$acl_save_exec_prefix"
15459  prefix="$acl_save_prefix"
15460
15461                          if test "X$x" = "X-L$dependency_libdir"; then
15462                            haveit=yes
15463                            break
15464                          fi
15465                        done
15466                        if test -z "$haveit"; then
15467                          if test -d "$dependency_libdir"; then
15468                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
15469                          fi
15470                        fi
15471                        haveit=
15472                        for x in $LDFLAGS $LTLIBICONV; do
15473
15474  acl_save_prefix="$prefix"
15475  prefix="$acl_final_prefix"
15476  acl_save_exec_prefix="$exec_prefix"
15477  exec_prefix="$acl_final_exec_prefix"
15478  eval x=\"$x\"
15479  exec_prefix="$acl_save_exec_prefix"
15480  prefix="$acl_save_prefix"
15481
15482                          if test "X$x" = "X-L$dependency_libdir"; then
15483                            haveit=yes
15484                            break
15485                          fi
15486                        done
15487                        if test -z "$haveit"; then
15488                          if test -d "$dependency_libdir"; then
15489                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
15490                          fi
15491                        fi
15492                      fi
15493                    fi
15494                    ;;
15495                  -R*)
15496                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
15497                    if test "$enable_rpath" != no; then
15498                                                                  haveit=
15499                      for x in $rpathdirs; do
15500                        if test "X$x" = "X$dir"; then
15501                          haveit=yes
15502                          break
15503                        fi
15504                      done
15505                      if test -z "$haveit"; then
15506                        rpathdirs="$rpathdirs $dir"
15507                      fi
15508                                                                  haveit=
15509                      for x in $ltrpathdirs; do
15510                        if test "X$x" = "X$dir"; then
15511                          haveit=yes
15512                          break
15513                        fi
15514                      done
15515                      if test -z "$haveit"; then
15516                        ltrpathdirs="$ltrpathdirs $dir"
15517                      fi
15518                    fi
15519                    ;;
15520                  -l*)
15521                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15522                    ;;
15523                  *.la)
15524                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15525                    ;;
15526                  *)
15527                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15528                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15529                    ;;
15530                esac
15531              done
15532            fi
15533          else
15534                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15535            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15536          fi
15537        fi
15538      fi
15539    done
15540  done
15541  if test "X$rpathdirs" != "X"; then
15542    if test -n "$acl_hardcode_libdir_separator"; then
15543                        alldirs=
15544      for found_dir in $rpathdirs; do
15545        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15546      done
15547            acl_save_libdir="$libdir"
15548      libdir="$alldirs"
15549      eval flag=\"$acl_hardcode_libdir_flag_spec\"
15550      libdir="$acl_save_libdir"
15551      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15552    else
15553            for found_dir in $rpathdirs; do
15554        acl_save_libdir="$libdir"
15555        libdir="$found_dir"
15556        eval flag=\"$acl_hardcode_libdir_flag_spec\"
15557        libdir="$acl_save_libdir"
15558        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15559      done
15560    fi
15561  fi
15562  if test "X$ltrpathdirs" != "X"; then
15563            for found_dir in $ltrpathdirs; do
15564      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15565    done
15566  fi
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15597$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15598if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15599  $as_echo_n "(cached) " >&6
15600else
15601  gt_save_LIBS="$LIBS"
15602     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15603     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604/* end confdefs.h.  */
15605#include <CoreFoundation/CFPreferences.h>
15606int
15607main ()
15608{
15609CFPreferencesCopyAppValue(NULL, NULL)
15610  ;
15611  return 0;
15612}
15613_ACEOF
15614if ac_fn_c_try_link "$LINENO"; then :
15615  gt_cv_func_CFPreferencesCopyAppValue=yes
15616else
15617  gt_cv_func_CFPreferencesCopyAppValue=no
15618fi
15619rm -f core conftest.err conftest.$ac_objext \
15620    conftest$ac_exeext conftest.$ac_ext
15621     LIBS="$gt_save_LIBS"
15622fi
15623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15624$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15625  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15626
15627$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15628
15629  fi
15630                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
15631$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
15632if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
15633  $as_echo_n "(cached) " >&6
15634else
15635  gt_save_LIBS="$LIBS"
15636     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638/* end confdefs.h.  */
15639#include <CoreFoundation/CFLocale.h>
15640int
15641main ()
15642{
15643CFLocaleCopyPreferredLanguages();
15644  ;
15645  return 0;
15646}
15647_ACEOF
15648if ac_fn_c_try_link "$LINENO"; then :
15649  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
15650else
15651  gt_cv_func_CFLocaleCopyPreferredLanguages=no
15652fi
15653rm -f core conftest.err conftest.$ac_objext \
15654    conftest$ac_exeext conftest.$ac_ext
15655     LIBS="$gt_save_LIBS"
15656fi
15657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
15658$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
15659  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
15660
15661$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
15662
15663  fi
15664  INTL_MACOSX_LIBS=
15665  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
15666     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
15667    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15668  fi
15669
15670
15671
15672
15673
15674
15675  LIBINTL=
15676  LTLIBINTL=
15677  POSUB=
15678
15679    case " $gt_needs " in
15680    *" need-formatstring-macros "*) gt_api_version=3 ;;
15681    *" need-ngettext "*) gt_api_version=2 ;;
15682    *) gt_api_version=1 ;;
15683  esac
15684  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15685  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15686
15687    if test "$USE_NLS" = "yes"; then
15688    gt_use_preinstalled_gnugettext=no
15689
15690
15691        if test $gt_api_version -ge 3; then
15692          gt_revision_test_code='
15693#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15694#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15695#endif
15696typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15697'
15698        else
15699          gt_revision_test_code=
15700        fi
15701        if test $gt_api_version -ge 2; then
15702          gt_expression_test_code=' + * ngettext ("", "", 0)'
15703        else
15704          gt_expression_test_code=
15705        fi
15706
15707        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15708$as_echo_n "checking for GNU gettext in libc... " >&6; }
15709if eval \${$gt_func_gnugettext_libc+:} false; then :
15710  $as_echo_n "(cached) " >&6
15711else
15712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15713/* end confdefs.h.  */
15714
15715#include <libintl.h>
15716#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15717extern int _nl_msg_cat_cntr;
15718extern int *_nl_domain_bindings;
15719#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
15720#else
15721#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15722#endif
15723$gt_revision_test_code
15724
15725int
15726main ()
15727{
15728
15729bindtextdomain ("", "");
15730return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15731
15732  ;
15733  return 0;
15734}
15735_ACEOF
15736if ac_fn_c_try_link "$LINENO"; then :
15737  eval "$gt_func_gnugettext_libc=yes"
15738else
15739  eval "$gt_func_gnugettext_libc=no"
15740fi
15741rm -f core conftest.err conftest.$ac_objext \
15742    conftest$ac_exeext conftest.$ac_ext
15743fi
15744eval ac_res=\$$gt_func_gnugettext_libc
15745	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15746$as_echo "$ac_res" >&6; }
15747
15748        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15749
15750
15751
15752
15753
15754          am_save_CPPFLAGS="$CPPFLAGS"
15755
15756  for element in $INCICONV; do
15757    haveit=
15758    for x in $CPPFLAGS; do
15759
15760  acl_save_prefix="$prefix"
15761  prefix="$acl_final_prefix"
15762  acl_save_exec_prefix="$exec_prefix"
15763  exec_prefix="$acl_final_exec_prefix"
15764  eval x=\"$x\"
15765  exec_prefix="$acl_save_exec_prefix"
15766  prefix="$acl_save_prefix"
15767
15768      if test "X$x" = "X$element"; then
15769        haveit=yes
15770        break
15771      fi
15772    done
15773    if test -z "$haveit"; then
15774      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15775    fi
15776  done
15777
15778
15779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15780$as_echo_n "checking for iconv... " >&6; }
15781if ${am_cv_func_iconv+:} false; then :
15782  $as_echo_n "(cached) " >&6
15783else
15784
15785    am_cv_func_iconv="no, consider installing GNU libiconv"
15786    am_cv_lib_iconv=no
15787    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788/* end confdefs.h.  */
15789
15790#include <stdlib.h>
15791#include <iconv.h>
15792
15793int
15794main ()
15795{
15796iconv_t cd = iconv_open("","");
15797           iconv(cd,NULL,NULL,NULL,NULL);
15798           iconv_close(cd);
15799  ;
15800  return 0;
15801}
15802_ACEOF
15803if ac_fn_c_try_link "$LINENO"; then :
15804  am_cv_func_iconv=yes
15805fi
15806rm -f core conftest.err conftest.$ac_objext \
15807    conftest$ac_exeext conftest.$ac_ext
15808    if test "$am_cv_func_iconv" != yes; then
15809      am_save_LIBS="$LIBS"
15810      LIBS="$LIBS $LIBICONV"
15811      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812/* end confdefs.h.  */
15813
15814#include <stdlib.h>
15815#include <iconv.h>
15816
15817int
15818main ()
15819{
15820iconv_t cd = iconv_open("","");
15821             iconv(cd,NULL,NULL,NULL,NULL);
15822             iconv_close(cd);
15823  ;
15824  return 0;
15825}
15826_ACEOF
15827if ac_fn_c_try_link "$LINENO"; then :
15828  am_cv_lib_iconv=yes
15829        am_cv_func_iconv=yes
15830fi
15831rm -f core conftest.err conftest.$ac_objext \
15832    conftest$ac_exeext conftest.$ac_ext
15833      LIBS="$am_save_LIBS"
15834    fi
15835
15836fi
15837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15838$as_echo "$am_cv_func_iconv" >&6; }
15839  if test "$am_cv_func_iconv" = yes; then
15840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15841$as_echo_n "checking for working iconv... " >&6; }
15842if ${am_cv_func_iconv_works+:} false; then :
15843  $as_echo_n "(cached) " >&6
15844else
15845
15846                  am_save_LIBS="$LIBS"
15847      if test $am_cv_lib_iconv = yes; then
15848        LIBS="$LIBS $LIBICONV"
15849      fi
15850      am_cv_func_iconv_works=no
15851      for ac_iconv_const in '' 'const'; do
15852        if test "$cross_compiling" = yes; then :
15853  case "$host_os" in
15854             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15855             *)            am_cv_func_iconv_works="guessing yes" ;;
15856           esac
15857else
15858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859/* end confdefs.h.  */
15860
15861#include <iconv.h>
15862#include <string.h>
15863
15864#ifndef ICONV_CONST
15865# define ICONV_CONST $ac_iconv_const
15866#endif
15867
15868int
15869main ()
15870{
15871int result = 0;
15872  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15873     returns.  */
15874  {
15875    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15876    if (cd_utf8_to_88591 != (iconv_t)(-1))
15877      {
15878        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
15879        char buf[10];
15880        ICONV_CONST char *inptr = input;
15881        size_t inbytesleft = strlen (input);
15882        char *outptr = buf;
15883        size_t outbytesleft = sizeof (buf);
15884        size_t res = iconv (cd_utf8_to_88591,
15885                            &inptr, &inbytesleft,
15886                            &outptr, &outbytesleft);
15887        if (res == 0)
15888          result |= 1;
15889        iconv_close (cd_utf8_to_88591);
15890      }
15891  }
15892  /* Test against Solaris 10 bug: Failures are not distinguishable from
15893     successful returns.  */
15894  {
15895    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15896    if (cd_ascii_to_88591 != (iconv_t)(-1))
15897      {
15898        static ICONV_CONST char input[] = "\263";
15899        char buf[10];
15900        ICONV_CONST char *inptr = input;
15901        size_t inbytesleft = strlen (input);
15902        char *outptr = buf;
15903        size_t outbytesleft = sizeof (buf);
15904        size_t res = iconv (cd_ascii_to_88591,
15905                            &inptr, &inbytesleft,
15906                            &outptr, &outbytesleft);
15907        if (res == 0)
15908          result |= 2;
15909        iconv_close (cd_ascii_to_88591);
15910      }
15911  }
15912  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
15913  {
15914    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15915    if (cd_88591_to_utf8 != (iconv_t)(-1))
15916      {
15917        static ICONV_CONST char input[] = "\304";
15918        static char buf[2] = { (char)0xDE, (char)0xAD };
15919        ICONV_CONST char *inptr = input;
15920        size_t inbytesleft = 1;
15921        char *outptr = buf;
15922        size_t outbytesleft = 1;
15923        size_t res = iconv (cd_88591_to_utf8,
15924                            &inptr, &inbytesleft,
15925                            &outptr, &outbytesleft);
15926        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15927          result |= 4;
15928        iconv_close (cd_88591_to_utf8);
15929      }
15930  }
15931#if 0 /* This bug could be worked around by the caller.  */
15932  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15933  {
15934    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15935    if (cd_88591_to_utf8 != (iconv_t)(-1))
15936      {
15937        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15938        char buf[50];
15939        ICONV_CONST char *inptr = input;
15940        size_t inbytesleft = strlen (input);
15941        char *outptr = buf;
15942        size_t outbytesleft = sizeof (buf);
15943        size_t res = iconv (cd_88591_to_utf8,
15944                            &inptr, &inbytesleft,
15945                            &outptr, &outbytesleft);
15946        if ((int)res > 0)
15947          result |= 8;
15948        iconv_close (cd_88591_to_utf8);
15949      }
15950  }
15951#endif
15952  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15953     provided.  */
15954  {
15955    /* Try standardized names.  */
15956    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
15957    /* Try IRIX, OSF/1 names.  */
15958    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
15959    /* Try AIX names.  */
15960    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
15961    /* Try HP-UX names.  */
15962    iconv_t cd4 = iconv_open ("utf8", "eucJP");
15963    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
15964        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
15965      result |= 16;
15966    if (cd1 != (iconv_t)(-1))
15967      iconv_close (cd1);
15968    if (cd2 != (iconv_t)(-1))
15969      iconv_close (cd2);
15970    if (cd3 != (iconv_t)(-1))
15971      iconv_close (cd3);
15972    if (cd4 != (iconv_t)(-1))
15973      iconv_close (cd4);
15974  }
15975  return result;
15976
15977  ;
15978  return 0;
15979}
15980_ACEOF
15981if ac_fn_c_try_run "$LINENO"; then :
15982  am_cv_func_iconv_works=yes
15983fi
15984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15985  conftest.$ac_objext conftest.beam conftest.$ac_ext
15986fi
15987
15988        test "$am_cv_func_iconv_works" = no || break
15989      done
15990      LIBS="$am_save_LIBS"
15991
15992fi
15993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15994$as_echo "$am_cv_func_iconv_works" >&6; }
15995    case "$am_cv_func_iconv_works" in
15996      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15997      *)   am_func_iconv=yes ;;
15998    esac
15999  else
16000    am_func_iconv=no am_cv_lib_iconv=no
16001  fi
16002  if test "$am_func_iconv" = yes; then
16003
16004$as_echo "#define HAVE_ICONV 1" >>confdefs.h
16005
16006  fi
16007  if test "$am_cv_lib_iconv" = yes; then
16008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16009$as_echo_n "checking how to link with libiconv... " >&6; }
16010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16011$as_echo "$LIBICONV" >&6; }
16012  else
16013            CPPFLAGS="$am_save_CPPFLAGS"
16014    LIBICONV=
16015    LTLIBICONV=
16016  fi
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027    use_additional=yes
16028
16029  acl_save_prefix="$prefix"
16030  prefix="$acl_final_prefix"
16031  acl_save_exec_prefix="$exec_prefix"
16032  exec_prefix="$acl_final_exec_prefix"
16033
16034    eval additional_includedir=\"$includedir\"
16035    eval additional_libdir=\"$libdir\"
16036    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
16037    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
16038
16039  exec_prefix="$acl_save_exec_prefix"
16040  prefix="$acl_save_prefix"
16041
16042
16043# Check whether --with-libintl-prefix was given.
16044if test "${with_libintl_prefix+set}" = set; then :
16045  withval=$with_libintl_prefix;
16046    if test "X$withval" = "Xno"; then
16047      use_additional=no
16048    else
16049      if test "X$withval" = "X"; then
16050
16051  acl_save_prefix="$prefix"
16052  prefix="$acl_final_prefix"
16053  acl_save_exec_prefix="$exec_prefix"
16054  exec_prefix="$acl_final_exec_prefix"
16055
16056          eval additional_includedir=\"$includedir\"
16057          eval additional_libdir=\"$libdir\"
16058          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
16059          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
16060
16061  exec_prefix="$acl_save_exec_prefix"
16062  prefix="$acl_save_prefix"
16063
16064      else
16065        additional_includedir="$withval/include"
16066        additional_libdir="$withval/$acl_libdirstem"
16067        additional_libdir2="$withval/$acl_libdirstem2"
16068        additional_libdir3="$withval/$acl_libdirstem3"
16069      fi
16070    fi
16071
16072fi
16073
16074  if test "X$additional_libdir2" = "X$additional_libdir"; then
16075    additional_libdir2=
16076  fi
16077  if test "X$additional_libdir3" = "X$additional_libdir"; then
16078    additional_libdir3=
16079  fi
16080      LIBINTL=
16081  LTLIBINTL=
16082  INCINTL=
16083  LIBINTL_PREFIX=
16084      HAVE_LIBINTL=
16085  rpathdirs=
16086  ltrpathdirs=
16087  names_already_handled=
16088  names_next_round='intl '
16089  while test -n "$names_next_round"; do
16090    names_this_round="$names_next_round"
16091    names_next_round=
16092    for name in $names_this_round; do
16093      already_handled=
16094      for n in $names_already_handled; do
16095        if test "$n" = "$name"; then
16096          already_handled=yes
16097          break
16098        fi
16099      done
16100      if test -z "$already_handled"; then
16101        names_already_handled="$names_already_handled $name"
16102                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16103        eval value=\"\$HAVE_LIB$uppername\"
16104        if test -n "$value"; then
16105          if test "$value" = yes; then
16106            eval value=\"\$LIB$uppername\"
16107            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16108            eval value=\"\$LTLIB$uppername\"
16109            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16110          else
16111                                    :
16112          fi
16113        else
16114                              found_dir=
16115          found_la=
16116          found_so=
16117          found_a=
16118          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16119          if test -n "$acl_shlibext"; then
16120            shrext=".$acl_shlibext"             # typically: shrext=.so
16121          else
16122            shrext=
16123          fi
16124          if test $use_additional = yes; then
16125            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
16126              if test "X$found_dir" = "X"; then
16127                eval dir=\$$additional_libdir_variable
16128                if test -n "$dir"; then
16129                                                      if test -n "$acl_shlibext"; then
16130                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16131                      found_dir="$dir"
16132                      found_so="$dir/$libname$shrext"
16133                    else
16134                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16135                        ver=`(cd "$dir" && \
16136                              for f in "$libname$shrext".*; do echo "$f"; done \
16137                              | sed -e "s,^$libname$shrext\\\\.,," \
16138                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16139                              | sed 1q ) 2>/dev/null`
16140                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16141                          found_dir="$dir"
16142                          found_so="$dir/$libname$shrext.$ver"
16143                        fi
16144                      else
16145                        eval library_names=\"$acl_library_names_spec\"
16146                        for f in $library_names; do
16147                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16148                            found_dir="$dir"
16149                            found_so="$dir/$f"
16150                            break
16151                          fi
16152                        done
16153                      fi
16154                    fi
16155                  fi
16156                                    if test "X$found_dir" = "X"; then
16157                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16158                      found_dir="$dir"
16159                      found_a="$dir/$libname.$acl_libext"
16160                    fi
16161                  fi
16162                  if test "X$found_dir" != "X"; then
16163                    if test -f "$dir/$libname.la"; then
16164                      found_la="$dir/$libname.la"
16165                    fi
16166                  fi
16167                fi
16168              fi
16169            done
16170          fi
16171          if test "X$found_dir" = "X"; then
16172            for x in $LDFLAGS $LTLIBINTL; do
16173
16174  acl_save_prefix="$prefix"
16175  prefix="$acl_final_prefix"
16176  acl_save_exec_prefix="$exec_prefix"
16177  exec_prefix="$acl_final_exec_prefix"
16178  eval x=\"$x\"
16179  exec_prefix="$acl_save_exec_prefix"
16180  prefix="$acl_save_prefix"
16181
16182              case "$x" in
16183                -L*)
16184                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16185                                    if test -n "$acl_shlibext"; then
16186                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16187                      found_dir="$dir"
16188                      found_so="$dir/$libname$shrext"
16189                    else
16190                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16191                        ver=`(cd "$dir" && \
16192                              for f in "$libname$shrext".*; do echo "$f"; done \
16193                              | sed -e "s,^$libname$shrext\\\\.,," \
16194                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16195                              | sed 1q ) 2>/dev/null`
16196                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16197                          found_dir="$dir"
16198                          found_so="$dir/$libname$shrext.$ver"
16199                        fi
16200                      else
16201                        eval library_names=\"$acl_library_names_spec\"
16202                        for f in $library_names; do
16203                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16204                            found_dir="$dir"
16205                            found_so="$dir/$f"
16206                            break
16207                          fi
16208                        done
16209                      fi
16210                    fi
16211                  fi
16212                                    if test "X$found_dir" = "X"; then
16213                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16214                      found_dir="$dir"
16215                      found_a="$dir/$libname.$acl_libext"
16216                    fi
16217                  fi
16218                  if test "X$found_dir" != "X"; then
16219                    if test -f "$dir/$libname.la"; then
16220                      found_la="$dir/$libname.la"
16221                    fi
16222                  fi
16223                  ;;
16224              esac
16225              if test "X$found_dir" != "X"; then
16226                break
16227              fi
16228            done
16229          fi
16230          if test "X$found_dir" != "X"; then
16231                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16232            if test "X$found_so" != "X"; then
16233                                                        if test "$enable_rpath" = no \
16234                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16235                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
16236                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
16237                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16238              else
16239                                                                                haveit=
16240                for x in $ltrpathdirs; do
16241                  if test "X$x" = "X$found_dir"; then
16242                    haveit=yes
16243                    break
16244                  fi
16245                done
16246                if test -z "$haveit"; then
16247                  ltrpathdirs="$ltrpathdirs $found_dir"
16248                fi
16249                                if test "$acl_hardcode_direct" = yes; then
16250                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16251                else
16252                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16253                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16254                                                            haveit=
16255                    for x in $rpathdirs; do
16256                      if test "X$x" = "X$found_dir"; then
16257                        haveit=yes
16258                        break
16259                      fi
16260                    done
16261                    if test -z "$haveit"; then
16262                      rpathdirs="$rpathdirs $found_dir"
16263                    fi
16264                  else
16265                                                                                haveit=
16266                    for x in $LDFLAGS $LIBINTL; do
16267
16268  acl_save_prefix="$prefix"
16269  prefix="$acl_final_prefix"
16270  acl_save_exec_prefix="$exec_prefix"
16271  exec_prefix="$acl_final_exec_prefix"
16272  eval x=\"$x\"
16273  exec_prefix="$acl_save_exec_prefix"
16274  prefix="$acl_save_prefix"
16275
16276                      if test "X$x" = "X-L$found_dir"; then
16277                        haveit=yes
16278                        break
16279                      fi
16280                    done
16281                    if test -z "$haveit"; then
16282                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16283                    fi
16284                    if test "$acl_hardcode_minus_L" != no; then
16285                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16286                    else
16287                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16288                    fi
16289                  fi
16290                fi
16291              fi
16292            else
16293              if test "X$found_a" != "X"; then
16294                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16295              else
16296                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16297              fi
16298            fi
16299                        additional_includedir=
16300            case "$found_dir" in
16301              */$acl_libdirstem | */$acl_libdirstem/)
16302                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16303                if test "$name" = 'intl'; then
16304                  LIBINTL_PREFIX="$basedir"
16305                fi
16306                additional_includedir="$basedir/include"
16307                ;;
16308              */$acl_libdirstem2 | */$acl_libdirstem2/)
16309                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16310                if test "$name" = 'intl'; then
16311                  LIBINTL_PREFIX="$basedir"
16312                fi
16313                additional_includedir="$basedir/include"
16314                ;;
16315              */$acl_libdirstem3 | */$acl_libdirstem3/)
16316                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
16317                if test "$name" = 'intl'; then
16318                  LIBINTL_PREFIX="$basedir"
16319                fi
16320                additional_includedir="$basedir/include"
16321                ;;
16322            esac
16323            if test "X$additional_includedir" != "X"; then
16324                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16325                haveit=
16326                if test "X$additional_includedir" = "X/usr/local/include"; then
16327                  if test -n "$GCC"; then
16328                    case $host_os in
16329                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16330                    esac
16331                  fi
16332                fi
16333                if test -z "$haveit"; then
16334                  for x in $CPPFLAGS $INCINTL; do
16335
16336  acl_save_prefix="$prefix"
16337  prefix="$acl_final_prefix"
16338  acl_save_exec_prefix="$exec_prefix"
16339  exec_prefix="$acl_final_exec_prefix"
16340  eval x=\"$x\"
16341  exec_prefix="$acl_save_exec_prefix"
16342  prefix="$acl_save_prefix"
16343
16344                    if test "X$x" = "X-I$additional_includedir"; then
16345                      haveit=yes
16346                      break
16347                    fi
16348                  done
16349                  if test -z "$haveit"; then
16350                    if test -d "$additional_includedir"; then
16351                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16352                    fi
16353                  fi
16354                fi
16355              fi
16356            fi
16357                        if test -n "$found_la"; then
16358                                                        save_libdir="$libdir"
16359              case "$found_la" in
16360                */* | *\\*) . "$found_la" ;;
16361                *) . "./$found_la" ;;
16362              esac
16363              libdir="$save_libdir"
16364                            for dep in $dependency_libs; do
16365                case "$dep" in
16366                  -L*)
16367                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16368                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
16369                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
16370                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
16371                      haveit=
16372                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
16373                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
16374                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
16375                        if test -n "$GCC"; then
16376                          case $host_os in
16377                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16378                          esac
16379                        fi
16380                      fi
16381                      if test -z "$haveit"; then
16382                        haveit=
16383                        for x in $LDFLAGS $LIBINTL; do
16384
16385  acl_save_prefix="$prefix"
16386  prefix="$acl_final_prefix"
16387  acl_save_exec_prefix="$exec_prefix"
16388  exec_prefix="$acl_final_exec_prefix"
16389  eval x=\"$x\"
16390  exec_prefix="$acl_save_exec_prefix"
16391  prefix="$acl_save_prefix"
16392
16393                          if test "X$x" = "X-L$dependency_libdir"; then
16394                            haveit=yes
16395                            break
16396                          fi
16397                        done
16398                        if test -z "$haveit"; then
16399                          if test -d "$dependency_libdir"; then
16400                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
16401                          fi
16402                        fi
16403                        haveit=
16404                        for x in $LDFLAGS $LTLIBINTL; do
16405
16406  acl_save_prefix="$prefix"
16407  prefix="$acl_final_prefix"
16408  acl_save_exec_prefix="$exec_prefix"
16409  exec_prefix="$acl_final_exec_prefix"
16410  eval x=\"$x\"
16411  exec_prefix="$acl_save_exec_prefix"
16412  prefix="$acl_save_prefix"
16413
16414                          if test "X$x" = "X-L$dependency_libdir"; then
16415                            haveit=yes
16416                            break
16417                          fi
16418                        done
16419                        if test -z "$haveit"; then
16420                          if test -d "$dependency_libdir"; then
16421                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
16422                          fi
16423                        fi
16424                      fi
16425                    fi
16426                    ;;
16427                  -R*)
16428                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16429                    if test "$enable_rpath" != no; then
16430                                                                  haveit=
16431                      for x in $rpathdirs; do
16432                        if test "X$x" = "X$dir"; then
16433                          haveit=yes
16434                          break
16435                        fi
16436                      done
16437                      if test -z "$haveit"; then
16438                        rpathdirs="$rpathdirs $dir"
16439                      fi
16440                                                                  haveit=
16441                      for x in $ltrpathdirs; do
16442                        if test "X$x" = "X$dir"; then
16443                          haveit=yes
16444                          break
16445                        fi
16446                      done
16447                      if test -z "$haveit"; then
16448                        ltrpathdirs="$ltrpathdirs $dir"
16449                      fi
16450                    fi
16451                    ;;
16452                  -l*)
16453                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16454                    ;;
16455                  *.la)
16456                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16457                    ;;
16458                  *)
16459                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16460                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16461                    ;;
16462                esac
16463              done
16464            fi
16465          else
16466                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16467            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16468          fi
16469        fi
16470      fi
16471    done
16472  done
16473  if test "X$rpathdirs" != "X"; then
16474    if test -n "$acl_hardcode_libdir_separator"; then
16475                        alldirs=
16476      for found_dir in $rpathdirs; do
16477        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16478      done
16479            acl_save_libdir="$libdir"
16480      libdir="$alldirs"
16481      eval flag=\"$acl_hardcode_libdir_flag_spec\"
16482      libdir="$acl_save_libdir"
16483      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16484    else
16485            for found_dir in $rpathdirs; do
16486        acl_save_libdir="$libdir"
16487        libdir="$found_dir"
16488        eval flag=\"$acl_hardcode_libdir_flag_spec\"
16489        libdir="$acl_save_libdir"
16490        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16491      done
16492    fi
16493  fi
16494  if test "X$ltrpathdirs" != "X"; then
16495            for found_dir in $ltrpathdirs; do
16496      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16497    done
16498  fi
16499
16500
16501
16502
16503
16504          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16505$as_echo_n "checking for GNU gettext in libintl... " >&6; }
16506if eval \${$gt_func_gnugettext_libintl+:} false; then :
16507  $as_echo_n "(cached) " >&6
16508else
16509  gt_save_CPPFLAGS="$CPPFLAGS"
16510            CPPFLAGS="$CPPFLAGS $INCINTL"
16511            gt_save_LIBS="$LIBS"
16512            LIBS="$LIBS $LIBINTL"
16513                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514/* end confdefs.h.  */
16515
16516#include <libintl.h>
16517#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16518extern int _nl_msg_cat_cntr;
16519extern
16520#ifdef __cplusplus
16521"C"
16522#endif
16523const char *_nl_expand_alias (const char *);
16524#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16525#else
16526#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16527#endif
16528$gt_revision_test_code
16529
16530int
16531main ()
16532{
16533
16534bindtextdomain ("", "");
16535return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16536
16537  ;
16538  return 0;
16539}
16540_ACEOF
16541if ac_fn_c_try_link "$LINENO"; then :
16542  eval "$gt_func_gnugettext_libintl=yes"
16543else
16544  eval "$gt_func_gnugettext_libintl=no"
16545fi
16546rm -f core conftest.err conftest.$ac_objext \
16547    conftest$ac_exeext conftest.$ac_ext
16548                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16549              LIBS="$LIBS $LIBICONV"
16550              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551/* end confdefs.h.  */
16552
16553#include <libintl.h>
16554#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16555extern int _nl_msg_cat_cntr;
16556extern
16557#ifdef __cplusplus
16558"C"
16559#endif
16560const char *_nl_expand_alias (const char *);
16561#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16562#else
16563#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16564#endif
16565$gt_revision_test_code
16566
16567int
16568main ()
16569{
16570
16571bindtextdomain ("", "");
16572return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16573
16574  ;
16575  return 0;
16576}
16577_ACEOF
16578if ac_fn_c_try_link "$LINENO"; then :
16579  LIBINTL="$LIBINTL $LIBICONV"
16580                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16581                 eval "$gt_func_gnugettext_libintl=yes"
16582
16583fi
16584rm -f core conftest.err conftest.$ac_objext \
16585    conftest$ac_exeext conftest.$ac_ext
16586            fi
16587            CPPFLAGS="$gt_save_CPPFLAGS"
16588            LIBS="$gt_save_LIBS"
16589fi
16590eval ac_res=\$$gt_func_gnugettext_libintl
16591	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16592$as_echo "$ac_res" >&6; }
16593        fi
16594
16595                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16596           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16597                && test "$PACKAGE" != gettext-runtime \
16598                && test "$PACKAGE" != gettext-tools; }; then
16599          gt_use_preinstalled_gnugettext=yes
16600        else
16601                    LIBINTL=
16602          LTLIBINTL=
16603          INCINTL=
16604        fi
16605
16606
16607
16608    if test -n "$INTL_MACOSX_LIBS"; then
16609      if test "$gt_use_preinstalled_gnugettext" = "yes" \
16610         || test "$nls_cv_use_gnu_gettext" = "yes"; then
16611                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16612        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16613      fi
16614    fi
16615
16616    if test "$gt_use_preinstalled_gnugettext" = "yes" \
16617       || test "$nls_cv_use_gnu_gettext" = "yes"; then
16618
16619$as_echo "#define ENABLE_NLS 1" >>confdefs.h
16620
16621    else
16622      USE_NLS=no
16623    fi
16624  fi
16625
16626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16627$as_echo_n "checking whether to use NLS... " >&6; }
16628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16629$as_echo "$USE_NLS" >&6; }
16630  if test "$USE_NLS" = "yes"; then
16631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16632$as_echo_n "checking where the gettext function comes from... " >&6; }
16633    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16634      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16635        gt_source="external libintl"
16636      else
16637        gt_source="libc"
16638      fi
16639    else
16640      gt_source="included intl directory"
16641    fi
16642    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16643$as_echo "$gt_source" >&6; }
16644  fi
16645
16646  if test "$USE_NLS" = "yes"; then
16647
16648    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16649      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16650        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16651$as_echo_n "checking how to link with libintl... " >&6; }
16652        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16653$as_echo "$LIBINTL" >&6; }
16654
16655  for element in $INCINTL; do
16656    haveit=
16657    for x in $CPPFLAGS; do
16658
16659  acl_save_prefix="$prefix"
16660  prefix="$acl_final_prefix"
16661  acl_save_exec_prefix="$exec_prefix"
16662  exec_prefix="$acl_final_exec_prefix"
16663  eval x=\"$x\"
16664  exec_prefix="$acl_save_exec_prefix"
16665  prefix="$acl_save_prefix"
16666
16667      if test "X$x" = "X$element"; then
16668        haveit=yes
16669        break
16670      fi
16671    done
16672    if test -z "$haveit"; then
16673      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16674    fi
16675  done
16676
16677      fi
16678
16679
16680$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16681
16682
16683$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16684
16685    fi
16686
16687        POSUB=po
16688  fi
16689
16690
16691
16692    INTLLIBS="$LIBINTL"
16693
16694
16695
16696
16697
16698
16699# FIXME: Remove AM_GNU_GETTEXT_VERSION once autoreconf supports AM_GNU_GETTEXT_REQUIRE_VERSION.
16700
16701
16702GETTEXT_PACKAGE=amtk-$AMTK_API_VERSION
16703
16704
16705cat >>confdefs.h <<_ACEOF
16706#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
16707_ACEOF
16708
16709
16710# Documentation
16711
16712
16713
16714
16715
16716  gtk_doc_requires="gtk-doc >= 1.25"
16717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
16718$as_echo_n "checking for gtk-doc... " >&6; }
16719  if test -n "$PKG_CONFIG" && \
16720    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
16721  ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
16722  ac_status=$?
16723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16724  test $ac_status = 0; }; then
16725  have_gtk_doc=yes
16726else
16727  have_gtk_doc=no
16728fi
16729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
16730$as_echo "$have_gtk_doc" >&6; }
16731
16732  if test "$have_gtk_doc" = "no"; then
16733      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16734  You will not be able to create source packages with 'make dist'
16735  because $gtk_doc_requires is not found." >&5
16736$as_echo "$as_me: WARNING:
16737  You will not be able to create source packages with 'make dist'
16738  because $gtk_doc_requires is not found." >&2;}
16739  fi
16740
16741            # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16742set dummy gtkdoc-check; ac_word=$2
16743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16744$as_echo_n "checking for $ac_word... " >&6; }
16745if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
16746  $as_echo_n "(cached) " >&6
16747else
16748  if test -n "$GTKDOC_CHECK"; then
16749  ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
16750else
16751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16752for as_dir in $PATH
16753do
16754  IFS=$as_save_IFS
16755  test -z "$as_dir" && as_dir=.
16756    for ac_exec_ext in '' $ac_executable_extensions; do
16757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16758    ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
16759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16760    break 2
16761  fi
16762done
16763  done
16764IFS=$as_save_IFS
16765
16766fi
16767fi
16768GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
16769if test -n "$GTKDOC_CHECK"; then
16770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
16771$as_echo "$GTKDOC_CHECK" >&6; }
16772else
16773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16774$as_echo "no" >&6; }
16775fi
16776
16777
16778  # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16779set dummy gtkdoc-check; ac_word=$2
16780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16781$as_echo_n "checking for $ac_word... " >&6; }
16782if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
16783  $as_echo_n "(cached) " >&6
16784else
16785  case $GTKDOC_CHECK_PATH in
16786  [\\/]* | ?:[\\/]*)
16787  ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
16788  ;;
16789  *)
16790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791for as_dir in $PATH
16792do
16793  IFS=$as_save_IFS
16794  test -z "$as_dir" && as_dir=.
16795    for ac_exec_ext in '' $ac_executable_extensions; do
16796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16797    ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
16798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16799    break 2
16800  fi
16801done
16802  done
16803IFS=$as_save_IFS
16804
16805  ;;
16806esac
16807fi
16808GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
16809if test -n "$GTKDOC_CHECK_PATH"; then
16810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
16811$as_echo "$GTKDOC_CHECK_PATH" >&6; }
16812else
16813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16814$as_echo "no" >&6; }
16815fi
16816
16817
16818  for ac_prog in gtkdoc-rebase
16819do
16820  # Extract the first word of "$ac_prog", so it can be a program name with args.
16821set dummy $ac_prog; ac_word=$2
16822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16823$as_echo_n "checking for $ac_word... " >&6; }
16824if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
16825  $as_echo_n "(cached) " >&6
16826else
16827  case $GTKDOC_REBASE in
16828  [\\/]* | ?:[\\/]*)
16829  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
16830  ;;
16831  *)
16832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16833for as_dir in $PATH
16834do
16835  IFS=$as_save_IFS
16836  test -z "$as_dir" && as_dir=.
16837    for ac_exec_ext in '' $ac_executable_extensions; do
16838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16839    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
16840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16841    break 2
16842  fi
16843done
16844  done
16845IFS=$as_save_IFS
16846
16847  ;;
16848esac
16849fi
16850GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
16851if test -n "$GTKDOC_REBASE"; then
16852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
16853$as_echo "$GTKDOC_REBASE" >&6; }
16854else
16855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16856$as_echo "no" >&6; }
16857fi
16858
16859
16860  test -n "$GTKDOC_REBASE" && break
16861done
16862test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
16863
16864  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
16865set dummy gtkdoc-mkpdf; ac_word=$2
16866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16867$as_echo_n "checking for $ac_word... " >&6; }
16868if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
16869  $as_echo_n "(cached) " >&6
16870else
16871  case $GTKDOC_MKPDF in
16872  [\\/]* | ?:[\\/]*)
16873  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
16874  ;;
16875  *)
16876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16877for as_dir in $PATH
16878do
16879  IFS=$as_save_IFS
16880  test -z "$as_dir" && as_dir=.
16881    for ac_exec_ext in '' $ac_executable_extensions; do
16882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16883    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
16884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16885    break 2
16886  fi
16887done
16888  done
16889IFS=$as_save_IFS
16890
16891  ;;
16892esac
16893fi
16894GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
16895if test -n "$GTKDOC_MKPDF"; then
16896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
16897$as_echo "$GTKDOC_MKPDF" >&6; }
16898else
16899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16900$as_echo "no" >&6; }
16901fi
16902
16903
16904
16905
16906# Check whether --with-html-dir was given.
16907if test "${with_html_dir+set}" = set; then :
16908  withval=$with_html_dir;
16909else
16910  with_html_dir='${datadir}/gtk-doc/html'
16911fi
16912
16913  HTML_DIR="$with_html_dir"
16914
16915
16916    # Check whether --enable-gtk-doc was given.
16917if test "${enable_gtk_doc+set}" = set; then :
16918  enableval=$enable_gtk_doc;
16919else
16920  enable_gtk_doc=no
16921fi
16922
16923
16924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
16925$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
16926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
16927$as_echo "$enable_gtk_doc" >&6; }
16928
16929  if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
16930    as_fn_error $? "
16931  You must have $gtk_doc_requires installed to build documentation for
16932  $PACKAGE_NAME. Please install gtk-doc or disable building the
16933  documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
16934  fi
16935
16936    if test "x$PACKAGE_NAME" != "xglib"; then
16937
16938pkg_failed=no
16939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
16940$as_echo_n "checking for GTKDOC_DEPS... " >&6; }
16941
16942if test -n "$GTKDOC_DEPS_CFLAGS"; then
16943    pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
16944 elif test -n "$PKG_CONFIG"; then
16945    if test -n "$PKG_CONFIG" && \
16946    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
16947  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
16948  ac_status=$?
16949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16950  test $ac_status = 0; }; then
16951  pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
16952		      test "x$?" != "x0" && pkg_failed=yes
16953else
16954  pkg_failed=yes
16955fi
16956 else
16957    pkg_failed=untried
16958fi
16959if test -n "$GTKDOC_DEPS_LIBS"; then
16960    pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
16961 elif test -n "$PKG_CONFIG"; then
16962    if test -n "$PKG_CONFIG" && \
16963    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
16964  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
16965  ac_status=$?
16966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16967  test $ac_status = 0; }; then
16968  pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
16969		      test "x$?" != "x0" && pkg_failed=yes
16970else
16971  pkg_failed=yes
16972fi
16973 else
16974    pkg_failed=untried
16975fi
16976
16977
16978
16979if test $pkg_failed = yes; then
16980   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16981$as_echo "no" >&6; }
16982
16983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16984        _pkg_short_errors_supported=yes
16985else
16986        _pkg_short_errors_supported=no
16987fi
16988        if test $_pkg_short_errors_supported = yes; then
16989	        GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
16990        else
16991	        GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
16992        fi
16993	# Put the nasty error message in config.log where it belongs
16994	echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
16995
16996	:
16997elif test $pkg_failed = untried; then
16998     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16999$as_echo "no" >&6; }
17000	:
17001else
17002	GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
17003	GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
17004        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17005$as_echo "yes" >&6; }
17006
17007fi
17008  fi
17009
17010    # Check whether --enable-gtk-doc-html was given.
17011if test "${enable_gtk_doc_html+set}" = set; then :
17012  enableval=$enable_gtk_doc_html;
17013else
17014  enable_gtk_doc_html=yes
17015fi
17016
17017    # Check whether --enable-gtk-doc-pdf was given.
17018if test "${enable_gtk_doc_pdf+set}" = set; then :
17019  enableval=$enable_gtk_doc_pdf;
17020else
17021  enable_gtk_doc_pdf=no
17022fi
17023
17024
17025  if test -z "$GTKDOC_MKPDF"; then
17026    enable_gtk_doc_pdf=no
17027  fi
17028
17029  if test -z "$AM_DEFAULT_VERBOSITY"; then
17030    AM_DEFAULT_VERBOSITY=1
17031  fi
17032
17033
17034   if test x$have_gtk_doc = xyes; then
17035  HAVE_GTK_DOC_TRUE=
17036  HAVE_GTK_DOC_FALSE='#'
17037else
17038  HAVE_GTK_DOC_TRUE='#'
17039  HAVE_GTK_DOC_FALSE=
17040fi
17041
17042   if test x$enable_gtk_doc = xyes; then
17043  ENABLE_GTK_DOC_TRUE=
17044  ENABLE_GTK_DOC_FALSE='#'
17045else
17046  ENABLE_GTK_DOC_TRUE='#'
17047  ENABLE_GTK_DOC_FALSE=
17048fi
17049
17050   if test x$enable_gtk_doc_html = xyes; then
17051  GTK_DOC_BUILD_HTML_TRUE=
17052  GTK_DOC_BUILD_HTML_FALSE='#'
17053else
17054  GTK_DOC_BUILD_HTML_TRUE='#'
17055  GTK_DOC_BUILD_HTML_FALSE=
17056fi
17057
17058   if test x$enable_gtk_doc_pdf = xyes; then
17059  GTK_DOC_BUILD_PDF_TRUE=
17060  GTK_DOC_BUILD_PDF_FALSE='#'
17061else
17062  GTK_DOC_BUILD_PDF_TRUE='#'
17063  GTK_DOC_BUILD_PDF_FALSE=
17064fi
17065
17066   if test -n "$LIBTOOL"; then
17067  GTK_DOC_USE_LIBTOOL_TRUE=
17068  GTK_DOC_USE_LIBTOOL_FALSE='#'
17069else
17070  GTK_DOC_USE_LIBTOOL_TRUE='#'
17071  GTK_DOC_USE_LIBTOOL_FALSE=
17072fi
17073
17074   if test -n "$GTKDOC_REBASE"; then
17075  GTK_DOC_USE_REBASE_TRUE=
17076  GTK_DOC_USE_REBASE_FALSE='#'
17077else
17078  GTK_DOC_USE_REBASE_TRUE='#'
17079  GTK_DOC_USE_REBASE_FALSE=
17080fi
17081
17082
17083
17084# Installed Tests for gnome continuous integration
17085# Check whether --enable-installed_tests was given.
17086if test "${enable_installed_tests+set}" = set; then :
17087  enableval=$enable_installed_tests;
17088else
17089  enable_installed_tests=no
17090fi
17091
17092
17093 if test "x$enable_installed_tests" = "xyes"; then
17094  INSTALLED_TESTS_TRUE=
17095  INSTALLED_TESTS_FALSE='#'
17096else
17097  INSTALLED_TESTS_TRUE='#'
17098  INSTALLED_TESTS_FALSE=
17099fi
17100
17101
17102# Introspection
17103
17104
17105
17106
17107
17108                # Check whether --enable-introspection was given.
17109if test "${enable_introspection+set}" = set; then :
17110  enableval=$enable_introspection;
17111else
17112  enable_introspection=auto
17113fi
17114
17115
17116    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
17117$as_echo_n "checking for gobject-introspection... " >&6; }
17118
17119        case $enable_introspection in #(
17120  no) :
17121            found_introspection="no (disabled, use --enable-introspection to enable)"
17122     ;; #(
17123      yes) :
17124            if test -n "$PKG_CONFIG" && \
17125    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
17126  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
17127  ac_status=$?
17128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17129  test $ac_status = 0; }; then
17130  :
17131else
17132  as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
17133fi
17134        if test -n "$PKG_CONFIG" && \
17135    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.42.0\""; } >&5
17136  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.42.0") 2>&5
17137  ac_status=$?
17138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17139  test $ac_status = 0; }; then
17140  found_introspection=yes
17141else
17142  as_fn_error $? "You need to have gobject-introspection >= 1.42.0 installed to build Amtk" "$LINENO" 5
17143fi
17144     ;; #(
17145      auto) :
17146            if test -n "$PKG_CONFIG" && \
17147    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.42.0\""; } >&5
17148  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.42.0") 2>&5
17149  ac_status=$?
17150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17151  test $ac_status = 0; }; then
17152  found_introspection=yes
17153else
17154  found_introspection=no
17155fi
17156		enable_introspection=$found_introspection
17157     ;; #(
17158  *) :
17159                as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
17160     ;;
17161esac
17162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
17163$as_echo "$found_introspection" >&6; }
17164
17165
17166  EXP_VAR=_GI_EXP_DATADIR
17167  FROM_VAR="$datadir"
17168
17169    prefix_save=$prefix
17170  exec_prefix_save=$exec_prefix
17171
17172    if test "x$prefix" = "xNONE"; then
17173    prefix="$ac_default_prefix"
17174  fi
17175    if test "x$exec_prefix" = "xNONE"; then
17176    exec_prefix=$prefix
17177  fi
17178
17179  full_var="$FROM_VAR"
17180    while true; do
17181    new_full_var="`eval echo $full_var`"
17182    if test "x$new_full_var" = "x$full_var"; then break; fi
17183    full_var=$new_full_var
17184  done
17185
17186    full_var=$new_full_var
17187  _GI_EXP_DATADIR="$full_var"
17188
17189
17190    prefix=$prefix_save
17191  exec_prefix=$exec_prefix_save
17192
17193
17194  EXP_VAR=_GI_EXP_LIBDIR
17195  FROM_VAR="$libdir"
17196
17197    prefix_save=$prefix
17198  exec_prefix_save=$exec_prefix
17199
17200    if test "x$prefix" = "xNONE"; then
17201    prefix="$ac_default_prefix"
17202  fi
17203    if test "x$exec_prefix" = "xNONE"; then
17204    exec_prefix=$prefix
17205  fi
17206
17207  full_var="$FROM_VAR"
17208    while true; do
17209    new_full_var="`eval echo $full_var`"
17210    if test "x$new_full_var" = "x$full_var"; then break; fi
17211    full_var=$new_full_var
17212  done
17213
17214    full_var=$new_full_var
17215  _GI_EXP_LIBDIR="$full_var"
17216
17217
17218    prefix=$prefix_save
17219  exec_prefix=$exec_prefix_save
17220
17221
17222    INTROSPECTION_SCANNER=
17223    INTROSPECTION_COMPILER=
17224    INTROSPECTION_GENERATE=
17225    INTROSPECTION_GIRDIR=
17226    INTROSPECTION_TYPELIBDIR=
17227    if test "x$found_introspection" = "xyes"; then
17228       INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
17229       INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
17230       INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
17231       INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
17232       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
17233       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
17234       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
17235       INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
17236    fi
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246     if test "x$found_introspection" = "xyes"; then
17247  HAVE_INTROSPECTION_TRUE=
17248  HAVE_INTROSPECTION_FALSE='#'
17249else
17250  HAVE_INTROSPECTION_TRUE='#'
17251  HAVE_INTROSPECTION_FALSE=
17252fi
17253
17254
17255
17256
17257# Code coverage for unit tests
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274	# allow to override gcov location
17275
17276# Check whether --with-gcov was given.
17277if test "${with_gcov+set}" = set; then :
17278  withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
17279else
17280  _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
17281fi
17282
17283
17284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
17285$as_echo_n "checking whether to build with code coverage support... " >&6; }
17286	# Check whether --enable-code-coverage was given.
17287if test "${enable_code_coverage+set}" = set; then :
17288  enableval=$enable_code_coverage;
17289else
17290  enable_code_coverage=no
17291fi
17292
17293
17294	 if test "x$enable_code_coverage" = xyes; then
17295  CODE_COVERAGE_ENABLED_TRUE=
17296  CODE_COVERAGE_ENABLED_FALSE='#'
17297else
17298  CODE_COVERAGE_ENABLED_TRUE='#'
17299  CODE_COVERAGE_ENABLED_FALSE=
17300fi
17301
17302	CODE_COVERAGE_ENABLED=$enable_code_coverage
17303
17304	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
17305$as_echo "$enable_code_coverage" >&6; }
17306
17307	if  test "x$enable_code_coverage" = xyes ; then :
17308
17309
17310	  for ac_prog in gawk mawk nawk awk
17311do
17312  # Extract the first word of "$ac_prog", so it can be a program name with args.
17313set dummy $ac_prog; ac_word=$2
17314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17315$as_echo_n "checking for $ac_word... " >&6; }
17316if ${ac_cv_prog_AWK+:} false; then :
17317  $as_echo_n "(cached) " >&6
17318else
17319  if test -n "$AWK"; then
17320  ac_cv_prog_AWK="$AWK" # Let the user override the test.
17321else
17322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17323for as_dir in $PATH
17324do
17325  IFS=$as_save_IFS
17326  test -z "$as_dir" && as_dir=.
17327    for ac_exec_ext in '' $ac_executable_extensions; do
17328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17329    ac_cv_prog_AWK="$ac_prog"
17330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17331    break 2
17332  fi
17333done
17334  done
17335IFS=$as_save_IFS
17336
17337fi
17338fi
17339AWK=$ac_cv_prog_AWK
17340if test -n "$AWK"; then
17341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
17342$as_echo "$AWK" >&6; }
17343else
17344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17345$as_echo "no" >&6; }
17346fi
17347
17348
17349  test -n "$AWK" && break
17350done
17351
17352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
17353$as_echo_n "checking for GNU make... " >&6; }
17354if ${_cv_gnu_make_command+:} false; then :
17355  $as_echo_n "(cached) " >&6
17356else
17357      _cv_gnu_make_command="" ;
17358    for a in "$MAKE" make gmake gnumake ; do
17359      if test -z "$a" ; then continue ; fi ;
17360      if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
17361        _cv_gnu_make_command=$a ;
17362        AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
17363        ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
17364        break ;
17365      fi
17366    done ;
17367fi
17368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
17369$as_echo "$_cv_gnu_make_command" >&6; }
17370  if test "x$_cv_gnu_make_command" = x""; then :
17371  ifGNUmake="#"
17372else
17373  ifGNUmake=""
17374fi
17375  if test "x$_cv_gnu_make_command" = x""; then :
17376  ifnGNUmake=""
17377else
17378  ifGNUmake="#"
17379fi
17380  if test "x$_cv_gnu_make_command" = x""; then :
17381  { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
17382else
17383  ax_cv_gnu_make_command=${_cv_gnu_make_command}
17384fi
17385  if test "x$_cv_gnu_make_command" = x""; then :
17386  as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
17387fi
17388
17389
17390
17391
17392	# check for gcov
17393	if test -n "$ac_tool_prefix"; then
17394  # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
17395set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
17396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17397$as_echo_n "checking for $ac_word... " >&6; }
17398if ${ac_cv_prog_GCOV+:} false; then :
17399  $as_echo_n "(cached) " >&6
17400else
17401  if test -n "$GCOV"; then
17402  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
17403else
17404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17405for as_dir in $PATH
17406do
17407  IFS=$as_save_IFS
17408  test -z "$as_dir" && as_dir=.
17409    for ac_exec_ext in '' $ac_executable_extensions; do
17410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17411    ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
17412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17413    break 2
17414  fi
17415done
17416  done
17417IFS=$as_save_IFS
17418
17419fi
17420fi
17421GCOV=$ac_cv_prog_GCOV
17422if test -n "$GCOV"; then
17423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
17424$as_echo "$GCOV" >&6; }
17425else
17426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17427$as_echo "no" >&6; }
17428fi
17429
17430
17431fi
17432if test -z "$ac_cv_prog_GCOV"; then
17433  ac_ct_GCOV=$GCOV
17434  # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
17435set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
17436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17437$as_echo_n "checking for $ac_word... " >&6; }
17438if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
17439  $as_echo_n "(cached) " >&6
17440else
17441  if test -n "$ac_ct_GCOV"; then
17442  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
17443else
17444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17445for as_dir in $PATH
17446do
17447  IFS=$as_save_IFS
17448  test -z "$as_dir" && as_dir=.
17449    for ac_exec_ext in '' $ac_executable_extensions; do
17450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17451    ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
17452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17453    break 2
17454  fi
17455done
17456  done
17457IFS=$as_save_IFS
17458
17459fi
17460fi
17461ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
17462if test -n "$ac_ct_GCOV"; then
17463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
17464$as_echo "$ac_ct_GCOV" >&6; }
17465else
17466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17467$as_echo "no" >&6; }
17468fi
17469
17470  if test "x$ac_ct_GCOV" = x; then
17471    GCOV=":"
17472  else
17473    case $cross_compiling:$ac_tool_warned in
17474yes:)
17475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17477ac_tool_warned=yes ;;
17478esac
17479    GCOV=$ac_ct_GCOV
17480  fi
17481else
17482  GCOV="$ac_cv_prog_GCOV"
17483fi
17484
17485	if test "X$GCOV" = "X:"; then :
17486  as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
17487fi
17488
17489
17490		if  test "$GCC" = "no" ; then :
17491
17492		as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
17493
17494fi
17495
17496	# Extract the first word of "lcov", so it can be a program name with args.
17497set dummy lcov; ac_word=$2
17498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17499$as_echo_n "checking for $ac_word... " >&6; }
17500if ${ac_cv_prog_LCOV+:} false; then :
17501  $as_echo_n "(cached) " >&6
17502else
17503  if test -n "$LCOV"; then
17504  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
17505else
17506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17507for as_dir in $PATH
17508do
17509  IFS=$as_save_IFS
17510  test -z "$as_dir" && as_dir=.
17511    for ac_exec_ext in '' $ac_executable_extensions; do
17512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17513    ac_cv_prog_LCOV="lcov"
17514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17515    break 2
17516  fi
17517done
17518  done
17519IFS=$as_save_IFS
17520
17521fi
17522fi
17523LCOV=$ac_cv_prog_LCOV
17524if test -n "$LCOV"; then
17525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
17526$as_echo "$LCOV" >&6; }
17527else
17528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17529$as_echo "no" >&6; }
17530fi
17531
17532
17533	# Extract the first word of "genhtml", so it can be a program name with args.
17534set dummy genhtml; ac_word=$2
17535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17536$as_echo_n "checking for $ac_word... " >&6; }
17537if ${ac_cv_prog_GENHTML+:} false; then :
17538  $as_echo_n "(cached) " >&6
17539else
17540  if test -n "$GENHTML"; then
17541  ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
17542else
17543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17544for as_dir in $PATH
17545do
17546  IFS=$as_save_IFS
17547  test -z "$as_dir" && as_dir=.
17548    for ac_exec_ext in '' $ac_executable_extensions; do
17549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17550    ac_cv_prog_GENHTML="genhtml"
17551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17552    break 2
17553  fi
17554done
17555  done
17556IFS=$as_save_IFS
17557
17558fi
17559fi
17560GENHTML=$ac_cv_prog_GENHTML
17561if test -n "$GENHTML"; then
17562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
17563$as_echo "$GENHTML" >&6; }
17564else
17565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17566$as_echo "no" >&6; }
17567fi
17568
17569
17570
17571	if  test x"$LCOV" = x ; then :
17572
17573		as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
17574
17575fi
17576
17577	if  test x"$GENHTML" = x ; then :
17578
17579		as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
17580
17581fi
17582
17583			CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
17584	CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
17585	CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
17586	CODE_COVERAGE_LIBS="-lgcov"
17587
17588
17589
17590
17591
17592
17593
17594fi
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607# Valgrind check
17608
17609
17610
17611		# Check whether --enable-valgrind was given.
17612if test "${enable_valgrind+set}" = set; then :
17613  enableval=$enable_valgrind; enable_valgrind=$enableval
17614else
17615  enable_valgrind=
17616fi
17617
17618
17619	if test "$enable_valgrind" != "no"; then :
17620
17621		# Check for Valgrind.
17622		# Extract the first word of "valgrind", so it can be a program name with args.
17623set dummy valgrind; ac_word=$2
17624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17625$as_echo_n "checking for $ac_word... " >&6; }
17626if ${ac_cv_prog_VALGRIND+:} false; then :
17627  $as_echo_n "(cached) " >&6
17628else
17629  if test -n "$VALGRIND"; then
17630  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
17631else
17632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17633for as_dir in $PATH
17634do
17635  IFS=$as_save_IFS
17636  test -z "$as_dir" && as_dir=.
17637    for ac_exec_ext in '' $ac_executable_extensions; do
17638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17639    ac_cv_prog_VALGRIND="valgrind"
17640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17641    break 2
17642  fi
17643done
17644  done
17645IFS=$as_save_IFS
17646
17647fi
17648fi
17649VALGRIND=$ac_cv_prog_VALGRIND
17650if test -n "$VALGRIND"; then
17651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
17652$as_echo "$VALGRIND" >&6; }
17653else
17654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17655$as_echo "no" >&6; }
17656fi
17657
17658
17659		if test "$VALGRIND" = ""; then :
17660
17661			if test "$enable_valgrind" = "yes"; then :
17662
17663				as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5
17664
17665else
17666
17667				enable_valgrind=no
17668
17669fi
17670
17671else
17672
17673			enable_valgrind=yes
17674
17675fi
17676
17677fi
17678
17679	 if test "$enable_valgrind" = "yes"; then
17680  VALGRIND_ENABLED_TRUE=
17681  VALGRIND_ENABLED_FALSE='#'
17682else
17683  VALGRIND_ENABLED_TRUE='#'
17684  VALGRIND_ENABLED_FALSE=
17685fi
17686
17687	VALGRIND_ENABLED=$enable_valgrind
17688
17689
17690	# Check for Valgrind tools we care about.
17691	valgrind_enabled_tools=
17692
17693		# Check whether --enable-valgrind-memcheck was given.
17694if test "${enable_valgrind_memcheck+set}" = set; then :
17695  enableval=$enable_valgrind_memcheck; enable_valgrind_memcheck=$enableval
17696else
17697  enable_valgrind_memcheck=
17698fi
17699
17700		if test "$enable_valgrind" = "no"; then :
17701
17702			enable_valgrind_memcheck=no
17703elif test "$enable_valgrind_memcheck" != "no"; then :
17704
17705			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5
17706$as_echo_n "checking for Valgrind tool memcheck... " >&6; }
17707if ${ax_cv_valgrind_tool_memcheck+:} false; then :
17708  $as_echo_n "(cached) " >&6
17709else
17710
17711				ax_cv_valgrind_tool_memcheck=no
17712
17713				if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`; then :
17714
17715					ax_cv_valgrind_tool_memcheck=yes
17716
17717fi
17718
17719fi
17720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5
17721$as_echo "$ax_cv_valgrind_tool_memcheck" >&6; }
17722			if test "$ax_cv_valgrind_tool_memcheck" = "no"; then :
17723
17724				if test "$enable_valgrind_memcheck" = "yes"; then :
17725
17726					as_fn_error $? "Valgrind does not support memcheck; reconfigure with --disable-valgrind-memcheck" "$LINENO" 5
17727
17728else
17729
17730					enable_valgrind_memcheck=no
17731
17732fi
17733
17734else
17735
17736				enable_valgrind_memcheck=yes
17737
17738fi
17739
17740fi
17741		if test "$enable_valgrind_memcheck" = "yes"; then :
17742
17743			valgrind_enabled_tools="$valgrind_enabled_tools memcheck"
17744
17745fi
17746		ENABLE_VALGRIND_memcheck=$enable_valgrind_memcheck
17747
17748
17749		# Check whether --enable-valgrind-helgrind was given.
17750if test "${enable_valgrind_helgrind+set}" = set; then :
17751  enableval=$enable_valgrind_helgrind; enable_valgrind_helgrind=$enableval
17752else
17753  enable_valgrind_helgrind=
17754fi
17755
17756		if test "$enable_valgrind" = "no"; then :
17757
17758			enable_valgrind_helgrind=no
17759elif test "$enable_valgrind_helgrind" != "no"; then :
17760
17761			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5
17762$as_echo_n "checking for Valgrind tool helgrind... " >&6; }
17763if ${ax_cv_valgrind_tool_helgrind+:} false; then :
17764  $as_echo_n "(cached) " >&6
17765else
17766
17767				ax_cv_valgrind_tool_helgrind=no
17768
17769				if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`; then :
17770
17771					ax_cv_valgrind_tool_helgrind=yes
17772
17773fi
17774
17775fi
17776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5
17777$as_echo "$ax_cv_valgrind_tool_helgrind" >&6; }
17778			if test "$ax_cv_valgrind_tool_helgrind" = "no"; then :
17779
17780				if test "$enable_valgrind_helgrind" = "yes"; then :
17781
17782					as_fn_error $? "Valgrind does not support helgrind; reconfigure with --disable-valgrind-helgrind" "$LINENO" 5
17783
17784else
17785
17786					enable_valgrind_helgrind=no
17787
17788fi
17789
17790else
17791
17792				enable_valgrind_helgrind=yes
17793
17794fi
17795
17796fi
17797		if test "$enable_valgrind_helgrind" = "yes"; then :
17798
17799			valgrind_enabled_tools="$valgrind_enabled_tools helgrind"
17800
17801fi
17802		ENABLE_VALGRIND_helgrind=$enable_valgrind_helgrind
17803
17804
17805		# Check whether --enable-valgrind-drd was given.
17806if test "${enable_valgrind_drd+set}" = set; then :
17807  enableval=$enable_valgrind_drd; enable_valgrind_drd=$enableval
17808else
17809  enable_valgrind_drd=
17810fi
17811
17812		if test "$enable_valgrind" = "no"; then :
17813
17814			enable_valgrind_drd=no
17815elif test "$enable_valgrind_drd" != "no"; then :
17816
17817			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5
17818$as_echo_n "checking for Valgrind tool drd... " >&6; }
17819if ${ax_cv_valgrind_tool_drd+:} false; then :
17820  $as_echo_n "(cached) " >&6
17821else
17822
17823				ax_cv_valgrind_tool_drd=no
17824
17825				if `$VALGRIND --tool=drd --help >/dev/null 2>&1`; then :
17826
17827					ax_cv_valgrind_tool_drd=yes
17828
17829fi
17830
17831fi
17832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5
17833$as_echo "$ax_cv_valgrind_tool_drd" >&6; }
17834			if test "$ax_cv_valgrind_tool_drd" = "no"; then :
17835
17836				if test "$enable_valgrind_drd" = "yes"; then :
17837
17838					as_fn_error $? "Valgrind does not support drd; reconfigure with --disable-valgrind-drd" "$LINENO" 5
17839
17840else
17841
17842					enable_valgrind_drd=no
17843
17844fi
17845
17846else
17847
17848				enable_valgrind_drd=yes
17849
17850fi
17851
17852fi
17853		if test "$enable_valgrind_drd" = "yes"; then :
17854
17855			valgrind_enabled_tools="$valgrind_enabled_tools drd"
17856
17857fi
17858		ENABLE_VALGRIND_drd=$enable_valgrind_drd
17859
17860
17861		# Check whether --enable-valgrind-sgcheck was given.
17862if test "${enable_valgrind_sgcheck+set}" = set; then :
17863  enableval=$enable_valgrind_sgcheck; enable_valgrind_sgcheck=$enableval
17864else
17865  enable_valgrind_sgcheck=
17866fi
17867
17868		if test "$enable_valgrind" = "no"; then :
17869
17870			enable_valgrind_sgcheck=no
17871elif test "$enable_valgrind_sgcheck" != "no"; then :
17872
17873			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool sgcheck" >&5
17874$as_echo_n "checking for Valgrind tool sgcheck... " >&6; }
17875if ${ax_cv_valgrind_tool_sgcheck+:} false; then :
17876  $as_echo_n "(cached) " >&6
17877else
17878
17879				ax_cv_valgrind_tool_sgcheck=no
17880
17881				if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`; then :
17882
17883					ax_cv_valgrind_tool_sgcheck=yes
17884
17885fi
17886
17887fi
17888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_sgcheck" >&5
17889$as_echo "$ax_cv_valgrind_tool_sgcheck" >&6; }
17890			if test "$ax_cv_valgrind_tool_sgcheck" = "no"; then :
17891
17892				if test "$enable_valgrind_sgcheck" = "yes"; then :
17893
17894					as_fn_error $? "Valgrind does not support sgcheck; reconfigure with --disable-valgrind-sgcheck" "$LINENO" 5
17895
17896else
17897
17898					enable_valgrind_sgcheck=no
17899
17900fi
17901
17902else
17903
17904				enable_valgrind_sgcheck=yes
17905
17906fi
17907
17908fi
17909		if test "$enable_valgrind_sgcheck" = "yes"; then :
17910
17911			valgrind_enabled_tools="$valgrind_enabled_tools sgcheck"
17912
17913fi
17914		ENABLE_VALGRIND_sgcheck=$enable_valgrind_sgcheck
17915
17916
17917	valgrind_tools="memcheck helgrind drd sgcheck"
17918
17919	valgrind_enabled_tools=$valgrind_enabled_tools
17920
17921
17922VALGRIND_CHECK_RULES='
17923# Valgrind check
17924#
17925# Optional:
17926#  - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions
17927#    files to load. (Default: empty)
17928#  - VALGRIND_FLAGS: General flags to pass to all Valgrind tools.
17929#    (Default: --num-callers=30)
17930#  - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of:
17931#    memcheck, helgrind, drd, sgcheck). (Default: various)
17932
17933# Optional variables
17934VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES))
17935VALGRIND_FLAGS ?= --num-callers=30
17936VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no
17937VALGRIND_helgrind_FLAGS ?= --history-level=approx
17938VALGRIND_drd_FLAGS ?=
17939VALGRIND_sgcheck_FLAGS ?=
17940
17941# Internal use
17942valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools)))
17943
17944valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS)
17945valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS)
17946valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS)
17947valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS)
17948
17949valgrind_quiet = $(valgrind_quiet_$(V))
17950valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY))
17951valgrind_quiet_0 = --quiet
17952valgrind_v_use   = $(valgrind_v_use_$(V))
17953valgrind_v_use_  = $(valgrind_v_use_$(AM_DEFAULT_VERBOSITY))
17954valgrind_v_use_0 = @echo "  USE   " $(patsubst check-valgrind-%-am,%,$''@):;
17955
17956# Support running with and without libtool.
17957ifneq ($(LIBTOOL),)
17958valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute
17959else
17960valgrind_lt =
17961endif
17962
17963# Use recursive makes in order to ignore errors during check
17964check-valgrind-am:
17965ifeq ($(VALGRIND_ENABLED),yes)
17966	$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k \
17967		$(foreach tool, $(valgrind_enabled_tools), check-valgrind-$(tool))
17968else
17969	@echo "Need to reconfigure with --enable-valgrind"
17970endif
17971
17972# Valgrind running
17973VALGRIND_TESTS_ENVIRONMENT = \
17974	$(TESTS_ENVIRONMENT) \
17975	env VALGRIND=$(VALGRIND) \
17976	G_SLICE=always-malloc,debug-blocks \
17977	G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly
17978
17979VALGRIND_LOG_COMPILER = \
17980	$(valgrind_lt) \
17981	$(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS)
17982
17983define valgrind_tool_rule
17984check-valgrind-$(1)-am:
17985ifeq ($$(VALGRIND_ENABLED)-$$(ENABLE_VALGRIND_$(1)),yes-yes)
17986ifneq ($$(TESTS),)
17987	$$(valgrind_v_use)$$(MAKE) check-TESTS \
17988		TESTS_ENVIRONMENT="$$(VALGRIND_TESTS_ENVIRONMENT)" \
17989		LOG_COMPILER="$$(VALGRIND_LOG_COMPILER)" \
17990		LOG_FLAGS="$$(valgrind_$(1)_flags)" \
17991		TEST_SUITE_LOG=test-suite-$(1).log
17992endif
17993else ifeq ($$(VALGRIND_ENABLED),yes)
17994	@echo "Need to reconfigure with --enable-valgrind-$(1)"
17995else
17996	@echo "Need to reconfigure with --enable-valgrind"
17997endif
17998endef
17999
18000$(foreach tool,$(valgrind_tools),$(eval $(call valgrind_tool_rule,$(tool))))
18001
18002A''M_DISTCHECK_CONFIGURE_FLAGS ?=
18003A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind
18004
18005MOSTLYCLEANFILES ?=
18006MOSTLYCLEANFILES += $(valgrind_log_files)
18007
18008.PHONY: check-valgrind $(add-prefix check-valgrind-,$(valgrind_tools))
18009'
18010
18011
18012
18013
18014
18015
18016
18017
18018if test -n "$GLIB_PREFIX"; then
18019    pkg_cv_GLIB_PREFIX="$GLIB_PREFIX"
18020 elif test -n "$PKG_CONFIG"; then
18021    if test -n "$PKG_CONFIG" && \
18022    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
18023  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
18024  ac_status=$?
18025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18026  test $ac_status = 0; }; then
18027  pkg_cv_GLIB_PREFIX=`$PKG_CONFIG --variable="prefix" "glib-2.0" 2>/dev/null`
18028		      test "x$?" != "x0" && pkg_failed=yes
18029else
18030  pkg_failed=yes
18031fi
18032 else
18033    pkg_failed=untried
18034fi
18035GLIB_PREFIX=$pkg_cv_GLIB_PREFIX
18036
18037if test "x$GLIB_PREFIX" = x""; then :
18038
18039fi
18040
18041# Output files
18042ac_config_files="$ac_config_files amtk-${AMTK_API_VERSION}.pc:amtk.pc.in Makefile amtk/Makefile docs/Makefile docs/reference/amtk-docs.xml docs/reference/amtk-intro.xml docs/reference/Makefile po/Makefile.in tests/Makefile testsuite/Makefile win32/config.h.win32 win32/config-msvc.mak win32/Makefile"
18043
18044
18045cat >confcache <<\_ACEOF
18046# This file is a shell script that caches the results of configure
18047# tests run on this system so they can be shared between configure
18048# scripts and configure runs, see configure's option --config-cache.
18049# It is not useful on other systems.  If it contains results you don't
18050# want to keep, you may remove or edit it.
18051#
18052# config.status only pays attention to the cache file if you give it
18053# the --recheck option to rerun configure.
18054#
18055# `ac_cv_env_foo' variables (set or unset) will be overridden when
18056# loading this file, other *unset* `ac_cv_foo' will be assigned the
18057# following values.
18058
18059_ACEOF
18060
18061# The following way of writing the cache mishandles newlines in values,
18062# but we know of no workaround that is simple, portable, and efficient.
18063# So, we kill variables containing newlines.
18064# Ultrix sh set writes to stderr and can't be redirected directly,
18065# and sets the high bit in the cache file unless we assign to the vars.
18066(
18067  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18068    eval ac_val=\$$ac_var
18069    case $ac_val in #(
18070    *${as_nl}*)
18071      case $ac_var in #(
18072      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18074      esac
18075      case $ac_var in #(
18076      _ | IFS | as_nl) ;; #(
18077      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18078      *) { eval $ac_var=; unset $ac_var;} ;;
18079      esac ;;
18080    esac
18081  done
18082
18083  (set) 2>&1 |
18084    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18085    *${as_nl}ac_space=\ *)
18086      # `set' does not quote correctly, so add quotes: double-quote
18087      # substitution turns \\\\ into \\, and sed turns \\ into \.
18088      sed -n \
18089	"s/'/'\\\\''/g;
18090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18091      ;; #(
18092    *)
18093      # `set' quotes correctly as required by POSIX, so do not add quotes.
18094      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18095      ;;
18096    esac |
18097    sort
18098) |
18099  sed '
18100     /^ac_cv_env_/b end
18101     t clear
18102     :clear
18103     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18104     t end
18105     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18106     :end' >>confcache
18107if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18108  if test -w "$cache_file"; then
18109    if test "x$cache_file" != "x/dev/null"; then
18110      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18111$as_echo "$as_me: updating cache $cache_file" >&6;}
18112      if test ! -f "$cache_file" || test -h "$cache_file"; then
18113	cat confcache >"$cache_file"
18114      else
18115        case $cache_file in #(
18116        */* | ?:*)
18117	  mv -f confcache "$cache_file"$$ &&
18118	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18119        *)
18120	  mv -f confcache "$cache_file" ;;
18121	esac
18122      fi
18123    fi
18124  else
18125    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18126$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18127  fi
18128fi
18129rm -f confcache
18130
18131test "x$prefix" = xNONE && prefix=$ac_default_prefix
18132# Let make expand exec_prefix.
18133test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18134
18135DEFS=-DHAVE_CONFIG_H
18136
18137ac_libobjs=
18138ac_ltlibobjs=
18139U=
18140for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18141  # 1. Remove the extension, and $U if already installed.
18142  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18143  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18144  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18145  #    will be set to the directory where LIBOBJS objects are built.
18146  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18147  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18148done
18149LIBOBJS=$ac_libobjs
18150
18151LTLIBOBJS=$ac_ltlibobjs
18152
18153
18154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18155$as_echo_n "checking that generated files are newer than configure... " >&6; }
18156   if test -n "$am_sleep_pid"; then
18157     # Hide warnings about reused PIDs.
18158     wait $am_sleep_pid 2>/dev/null
18159   fi
18160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18161$as_echo "done" >&6; }
18162 if test -n "$EXEEXT"; then
18163  am__EXEEXT_TRUE=
18164  am__EXEEXT_FALSE='#'
18165else
18166  am__EXEEXT_TRUE='#'
18167  am__EXEEXT_FALSE=
18168fi
18169
18170if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18171  as_fn_error $? "conditional \"AMDEP\" was never defined.
18172Usually this means the macro was only invoked conditionally." "$LINENO" 5
18173fi
18174if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18175  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18176Usually this means the macro was only invoked conditionally." "$LINENO" 5
18177fi
18178if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
18179  as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
18180Usually this means the macro was only invoked conditionally." "$LINENO" 5
18181fi
18182if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
18183  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
18184Usually this means the macro was only invoked conditionally." "$LINENO" 5
18185fi
18186if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
18187  as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
18188Usually this means the macro was only invoked conditionally." "$LINENO" 5
18189fi
18190if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
18191  as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
18192Usually this means the macro was only invoked conditionally." "$LINENO" 5
18193fi
18194if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
18195  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
18196Usually this means the macro was only invoked conditionally." "$LINENO" 5
18197fi
18198if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
18199  as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
18200Usually this means the macro was only invoked conditionally." "$LINENO" 5
18201fi
18202if test -z "${INSTALLED_TESTS_TRUE}" && test -z "${INSTALLED_TESTS_FALSE}"; then
18203  as_fn_error $? "conditional \"INSTALLED_TESTS\" was never defined.
18204Usually this means the macro was only invoked conditionally." "$LINENO" 5
18205fi
18206if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
18207  as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
18208Usually this means the macro was only invoked conditionally." "$LINENO" 5
18209fi
18210if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
18211  as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
18212Usually this means the macro was only invoked conditionally." "$LINENO" 5
18213fi
18214if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then
18215  as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined.
18216Usually this means the macro was only invoked conditionally." "$LINENO" 5
18217fi
18218
18219: "${CONFIG_STATUS=./config.status}"
18220ac_write_fail=0
18221ac_clean_files_save=$ac_clean_files
18222ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18223{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18224$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18225as_write_fail=0
18226cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18227#! $SHELL
18228# Generated by $as_me.
18229# Run this file to recreate the current configuration.
18230# Compiler output produced by configure, useful for debugging
18231# configure, is in config.log if it exists.
18232
18233debug=false
18234ac_cs_recheck=false
18235ac_cs_silent=false
18236
18237SHELL=\${CONFIG_SHELL-$SHELL}
18238export SHELL
18239_ASEOF
18240cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18241## -------------------- ##
18242## M4sh Initialization. ##
18243## -------------------- ##
18244
18245# Be more Bourne compatible
18246DUALCASE=1; export DUALCASE # for MKS sh
18247if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18248  emulate sh
18249  NULLCMD=:
18250  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18251  # is contrary to our usage.  Disable this feature.
18252  alias -g '${1+"$@"}'='"$@"'
18253  setopt NO_GLOB_SUBST
18254else
18255  case `(set -o) 2>/dev/null` in #(
18256  *posix*) :
18257    set -o posix ;; #(
18258  *) :
18259     ;;
18260esac
18261fi
18262
18263
18264as_nl='
18265'
18266export as_nl
18267# Printing a long string crashes Solaris 7 /usr/bin/printf.
18268as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18269as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18271# Prefer a ksh shell builtin over an external printf program on Solaris,
18272# but without wasting forks for bash or zsh.
18273if test -z "$BASH_VERSION$ZSH_VERSION" \
18274    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18275  as_echo='print -r --'
18276  as_echo_n='print -rn --'
18277elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18278  as_echo='printf %s\n'
18279  as_echo_n='printf %s'
18280else
18281  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18282    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18283    as_echo_n='/usr/ucb/echo -n'
18284  else
18285    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18286    as_echo_n_body='eval
18287      arg=$1;
18288      case $arg in #(
18289      *"$as_nl"*)
18290	expr "X$arg" : "X\\(.*\\)$as_nl";
18291	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18292      esac;
18293      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18294    '
18295    export as_echo_n_body
18296    as_echo_n='sh -c $as_echo_n_body as_echo'
18297  fi
18298  export as_echo_body
18299  as_echo='sh -c $as_echo_body as_echo'
18300fi
18301
18302# The user is always right.
18303if test "${PATH_SEPARATOR+set}" != set; then
18304  PATH_SEPARATOR=:
18305  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18306    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18307      PATH_SEPARATOR=';'
18308  }
18309fi
18310
18311
18312# IFS
18313# We need space, tab and new line, in precisely that order.  Quoting is
18314# there to prevent editors from complaining about space-tab.
18315# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18316# splitting by setting IFS to empty value.)
18317IFS=" ""	$as_nl"
18318
18319# Find who we are.  Look in the path if we contain no directory separator.
18320as_myself=
18321case $0 in #((
18322  *[\\/]* ) as_myself=$0 ;;
18323  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18324for as_dir in $PATH
18325do
18326  IFS=$as_save_IFS
18327  test -z "$as_dir" && as_dir=.
18328    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18329  done
18330IFS=$as_save_IFS
18331
18332     ;;
18333esac
18334# We did not find ourselves, most probably we were run as `sh COMMAND'
18335# in which case we are not to be found in the path.
18336if test "x$as_myself" = x; then
18337  as_myself=$0
18338fi
18339if test ! -f "$as_myself"; then
18340  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18341  exit 1
18342fi
18343
18344# Unset variables that we do not need and which cause bugs (e.g. in
18345# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18346# suppresses any "Segmentation fault" message there.  '((' could
18347# trigger a bug in pdksh 5.2.14.
18348for as_var in BASH_ENV ENV MAIL MAILPATH
18349do eval test x\${$as_var+set} = xset \
18350  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18351done
18352PS1='$ '
18353PS2='> '
18354PS4='+ '
18355
18356# NLS nuisances.
18357LC_ALL=C
18358export LC_ALL
18359LANGUAGE=C
18360export LANGUAGE
18361
18362# CDPATH.
18363(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18364
18365
18366# as_fn_error STATUS ERROR [LINENO LOG_FD]
18367# ----------------------------------------
18368# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18369# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18370# script with STATUS, using 1 if that was 0.
18371as_fn_error ()
18372{
18373  as_status=$1; test $as_status -eq 0 && as_status=1
18374  if test "$4"; then
18375    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18376    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18377  fi
18378  $as_echo "$as_me: error: $2" >&2
18379  as_fn_exit $as_status
18380} # as_fn_error
18381
18382
18383# as_fn_set_status STATUS
18384# -----------------------
18385# Set $? to STATUS, without forking.
18386as_fn_set_status ()
18387{
18388  return $1
18389} # as_fn_set_status
18390
18391# as_fn_exit STATUS
18392# -----------------
18393# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18394as_fn_exit ()
18395{
18396  set +e
18397  as_fn_set_status $1
18398  exit $1
18399} # as_fn_exit
18400
18401# as_fn_unset VAR
18402# ---------------
18403# Portably unset VAR.
18404as_fn_unset ()
18405{
18406  { eval $1=; unset $1;}
18407}
18408as_unset=as_fn_unset
18409# as_fn_append VAR VALUE
18410# ----------------------
18411# Append the text in VALUE to the end of the definition contained in VAR. Take
18412# advantage of any shell optimizations that allow amortized linear growth over
18413# repeated appends, instead of the typical quadratic growth present in naive
18414# implementations.
18415if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18416  eval 'as_fn_append ()
18417  {
18418    eval $1+=\$2
18419  }'
18420else
18421  as_fn_append ()
18422  {
18423    eval $1=\$$1\$2
18424  }
18425fi # as_fn_append
18426
18427# as_fn_arith ARG...
18428# ------------------
18429# Perform arithmetic evaluation on the ARGs, and store the result in the
18430# global $as_val. Take advantage of shells that can avoid forks. The arguments
18431# must be portable across $(()) and expr.
18432if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18433  eval 'as_fn_arith ()
18434  {
18435    as_val=$(( $* ))
18436  }'
18437else
18438  as_fn_arith ()
18439  {
18440    as_val=`expr "$@" || test $? -eq 1`
18441  }
18442fi # as_fn_arith
18443
18444
18445if expr a : '\(a\)' >/dev/null 2>&1 &&
18446   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18447  as_expr=expr
18448else
18449  as_expr=false
18450fi
18451
18452if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18453  as_basename=basename
18454else
18455  as_basename=false
18456fi
18457
18458if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18459  as_dirname=dirname
18460else
18461  as_dirname=false
18462fi
18463
18464as_me=`$as_basename -- "$0" ||
18465$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18466	 X"$0" : 'X\(//\)$' \| \
18467	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18468$as_echo X/"$0" |
18469    sed '/^.*\/\([^/][^/]*\)\/*$/{
18470	    s//\1/
18471	    q
18472	  }
18473	  /^X\/\(\/\/\)$/{
18474	    s//\1/
18475	    q
18476	  }
18477	  /^X\/\(\/\).*/{
18478	    s//\1/
18479	    q
18480	  }
18481	  s/.*/./; q'`
18482
18483# Avoid depending upon Character Ranges.
18484as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18485as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18486as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18487as_cr_digits='0123456789'
18488as_cr_alnum=$as_cr_Letters$as_cr_digits
18489
18490ECHO_C= ECHO_N= ECHO_T=
18491case `echo -n x` in #(((((
18492-n*)
18493  case `echo 'xy\c'` in
18494  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18495  xy)  ECHO_C='\c';;
18496  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18497       ECHO_T='	';;
18498  esac;;
18499*)
18500  ECHO_N='-n';;
18501esac
18502
18503rm -f conf$$ conf$$.exe conf$$.file
18504if test -d conf$$.dir; then
18505  rm -f conf$$.dir/conf$$.file
18506else
18507  rm -f conf$$.dir
18508  mkdir conf$$.dir 2>/dev/null
18509fi
18510if (echo >conf$$.file) 2>/dev/null; then
18511  if ln -s conf$$.file conf$$ 2>/dev/null; then
18512    as_ln_s='ln -s'
18513    # ... but there are two gotchas:
18514    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18515    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18516    # In both cases, we have to default to `cp -pR'.
18517    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18518      as_ln_s='cp -pR'
18519  elif ln conf$$.file conf$$ 2>/dev/null; then
18520    as_ln_s=ln
18521  else
18522    as_ln_s='cp -pR'
18523  fi
18524else
18525  as_ln_s='cp -pR'
18526fi
18527rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18528rmdir conf$$.dir 2>/dev/null
18529
18530
18531# as_fn_mkdir_p
18532# -------------
18533# Create "$as_dir" as a directory, including parents if necessary.
18534as_fn_mkdir_p ()
18535{
18536
18537  case $as_dir in #(
18538  -*) as_dir=./$as_dir;;
18539  esac
18540  test -d "$as_dir" || eval $as_mkdir_p || {
18541    as_dirs=
18542    while :; do
18543      case $as_dir in #(
18544      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18545      *) as_qdir=$as_dir;;
18546      esac
18547      as_dirs="'$as_qdir' $as_dirs"
18548      as_dir=`$as_dirname -- "$as_dir" ||
18549$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18550	 X"$as_dir" : 'X\(//\)[^/]' \| \
18551	 X"$as_dir" : 'X\(//\)$' \| \
18552	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18553$as_echo X"$as_dir" |
18554    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18555	    s//\1/
18556	    q
18557	  }
18558	  /^X\(\/\/\)[^/].*/{
18559	    s//\1/
18560	    q
18561	  }
18562	  /^X\(\/\/\)$/{
18563	    s//\1/
18564	    q
18565	  }
18566	  /^X\(\/\).*/{
18567	    s//\1/
18568	    q
18569	  }
18570	  s/.*/./; q'`
18571      test -d "$as_dir" && break
18572    done
18573    test -z "$as_dirs" || eval "mkdir $as_dirs"
18574  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18575
18576
18577} # as_fn_mkdir_p
18578if mkdir -p . 2>/dev/null; then
18579  as_mkdir_p='mkdir -p "$as_dir"'
18580else
18581  test -d ./-p && rmdir ./-p
18582  as_mkdir_p=false
18583fi
18584
18585
18586# as_fn_executable_p FILE
18587# -----------------------
18588# Test if FILE is an executable regular file.
18589as_fn_executable_p ()
18590{
18591  test -f "$1" && test -x "$1"
18592} # as_fn_executable_p
18593as_test_x='test -x'
18594as_executable_p=as_fn_executable_p
18595
18596# Sed expression to map a string onto a valid CPP name.
18597as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18598
18599# Sed expression to map a string onto a valid variable name.
18600as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18601
18602
18603exec 6>&1
18604## ----------------------------------- ##
18605## Main body of $CONFIG_STATUS script. ##
18606## ----------------------------------- ##
18607_ASEOF
18608test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18609
18610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18611# Save the log message, to keep $0 and so on meaningful, and to
18612# report actual input values of CONFIG_FILES etc. instead of their
18613# values after options handling.
18614ac_log="
18615This file was extended by Amtk $as_me 5.2.0, which was
18616generated by GNU Autoconf 2.69.  Invocation command line was
18617
18618  CONFIG_FILES    = $CONFIG_FILES
18619  CONFIG_HEADERS  = $CONFIG_HEADERS
18620  CONFIG_LINKS    = $CONFIG_LINKS
18621  CONFIG_COMMANDS = $CONFIG_COMMANDS
18622  $ $0 $@
18623
18624on `(hostname || uname -n) 2>/dev/null | sed 1q`
18625"
18626
18627_ACEOF
18628
18629case $ac_config_files in *"
18630"*) set x $ac_config_files; shift; ac_config_files=$*;;
18631esac
18632
18633case $ac_config_headers in *"
18634"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18635esac
18636
18637
18638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18639# Files that config.status was made for.
18640config_files="$ac_config_files"
18641config_headers="$ac_config_headers"
18642config_commands="$ac_config_commands"
18643
18644_ACEOF
18645
18646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18647ac_cs_usage="\
18648\`$as_me' instantiates files and other configuration actions
18649from templates according to the current configuration.  Unless the files
18650and actions are specified as TAGs, all are instantiated by default.
18651
18652Usage: $0 [OPTION]... [TAG]...
18653
18654  -h, --help       print this help, then exit
18655  -V, --version    print version number and configuration settings, then exit
18656      --config     print configuration, then exit
18657  -q, --quiet, --silent
18658                   do not print progress messages
18659  -d, --debug      don't remove temporary files
18660      --recheck    update $as_me by reconfiguring in the same conditions
18661      --file=FILE[:TEMPLATE]
18662                   instantiate the configuration file FILE
18663      --header=FILE[:TEMPLATE]
18664                   instantiate the configuration header FILE
18665
18666Configuration files:
18667$config_files
18668
18669Configuration headers:
18670$config_headers
18671
18672Configuration commands:
18673$config_commands
18674
18675Report bugs to <https://gitlab.gnome.org/GNOME/amtk/issues>.
18676Amtk home page: <https://wiki.gnome.org/Projects/Amtk>."
18677
18678_ACEOF
18679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18680ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18681ac_cs_version="\\
18682Amtk config.status 5.2.0
18683configured by $0, generated by GNU Autoconf 2.69,
18684  with options \\"\$ac_cs_config\\"
18685
18686Copyright (C) 2012 Free Software Foundation, Inc.
18687This config.status script is free software; the Free Software Foundation
18688gives unlimited permission to copy, distribute and modify it."
18689
18690ac_pwd='$ac_pwd'
18691srcdir='$srcdir'
18692INSTALL='$INSTALL'
18693MKDIR_P='$MKDIR_P'
18694AWK='$AWK'
18695test -n "\$AWK" || AWK=awk
18696_ACEOF
18697
18698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18699# The default lists apply if the user does not specify any file.
18700ac_need_defaults=:
18701while test $# != 0
18702do
18703  case $1 in
18704  --*=?*)
18705    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18706    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18707    ac_shift=:
18708    ;;
18709  --*=)
18710    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18711    ac_optarg=
18712    ac_shift=:
18713    ;;
18714  *)
18715    ac_option=$1
18716    ac_optarg=$2
18717    ac_shift=shift
18718    ;;
18719  esac
18720
18721  case $ac_option in
18722  # Handling of the options.
18723  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18724    ac_cs_recheck=: ;;
18725  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18726    $as_echo "$ac_cs_version"; exit ;;
18727  --config | --confi | --conf | --con | --co | --c )
18728    $as_echo "$ac_cs_config"; exit ;;
18729  --debug | --debu | --deb | --de | --d | -d )
18730    debug=: ;;
18731  --file | --fil | --fi | --f )
18732    $ac_shift
18733    case $ac_optarg in
18734    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18735    '') as_fn_error $? "missing file argument" ;;
18736    esac
18737    as_fn_append CONFIG_FILES " '$ac_optarg'"
18738    ac_need_defaults=false;;
18739  --header | --heade | --head | --hea )
18740    $ac_shift
18741    case $ac_optarg in
18742    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18743    esac
18744    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18745    ac_need_defaults=false;;
18746  --he | --h)
18747    # Conflict between --help and --header
18748    as_fn_error $? "ambiguous option: \`$1'
18749Try \`$0 --help' for more information.";;
18750  --help | --hel | -h )
18751    $as_echo "$ac_cs_usage"; exit ;;
18752  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18753  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18754    ac_cs_silent=: ;;
18755
18756  # This is an error.
18757  -*) as_fn_error $? "unrecognized option: \`$1'
18758Try \`$0 --help' for more information." ;;
18759
18760  *) as_fn_append ac_config_targets " $1"
18761     ac_need_defaults=false ;;
18762
18763  esac
18764  shift
18765done
18766
18767ac_configure_extra_args=
18768
18769if $ac_cs_silent; then
18770  exec 6>/dev/null
18771  ac_configure_extra_args="$ac_configure_extra_args --silent"
18772fi
18773
18774_ACEOF
18775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18776if \$ac_cs_recheck; then
18777  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18778  shift
18779  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18780  CONFIG_SHELL='$SHELL'
18781  export CONFIG_SHELL
18782  exec "\$@"
18783fi
18784
18785_ACEOF
18786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18787exec 5>>config.log
18788{
18789  echo
18790  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18791## Running $as_me. ##
18792_ASBOX
18793  $as_echo "$ac_log"
18794} >&5
18795
18796_ACEOF
18797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18798#
18799# INIT-COMMANDS
18800#
18801AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18802
18803
18804# The HP-UX ksh and POSIX shell print the target directory to stdout
18805# if CDPATH is set.
18806(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18807
18808sed_quote_subst='$sed_quote_subst'
18809double_quote_subst='$double_quote_subst'
18810delay_variable_subst='$delay_variable_subst'
18811macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18812macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18813enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18814enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18815pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18816enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18817shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18818SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18819ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18820PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18821host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18822host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18823host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18824build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18825build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18826build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18827SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18828Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18829GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18830EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18831FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18832LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18833NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18834LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18835max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18836ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18837exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18838lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18839lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18840lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18841lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18842lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18843reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18844reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18845OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18846deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18847file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18848file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18849want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18850DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18851sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18852AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18853AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18854archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18855STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18856RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18857old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18858old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18859old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18860lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18861CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18862CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18863compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18864GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18865lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18866lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18867lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18868lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18869lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18870lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18871nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18872lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18873lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18874objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18875MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18876lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18877lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18878lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18879lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18880lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18881need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18882MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18883DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18884NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18885LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18886OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18887OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18888libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18889shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18890extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18891archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18892enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18893export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18894whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18895compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18896old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18897old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18898archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18899archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18900module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18901module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18902with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18903allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18904no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18905hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18906hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18907hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18908hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18909hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18910hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18911hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18912inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18913link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18914always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18915export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18916exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18917include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18918prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18919postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18920file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18921variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18922need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18923need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18924version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18925runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18926shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18927shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18928libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18929library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18930soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18931install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18932postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18933postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18934finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18935finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18936hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18937sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18938configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18939configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18940hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18941enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18942enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18943enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18944old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18945striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18946
18947LTCC='$LTCC'
18948LTCFLAGS='$LTCFLAGS'
18949compiler='$compiler_DEFAULT'
18950
18951# A function that is used when there is no print builtin or printf.
18952func_fallback_echo ()
18953{
18954  eval 'cat <<_LTECHO_EOF
18955\$1
18956_LTECHO_EOF'
18957}
18958
18959# Quote evaled strings.
18960for var in SHELL \
18961ECHO \
18962PATH_SEPARATOR \
18963SED \
18964GREP \
18965EGREP \
18966FGREP \
18967LD \
18968NM \
18969LN_S \
18970lt_SP2NL \
18971lt_NL2SP \
18972reload_flag \
18973OBJDUMP \
18974deplibs_check_method \
18975file_magic_cmd \
18976file_magic_glob \
18977want_nocaseglob \
18978DLLTOOL \
18979sharedlib_from_linklib_cmd \
18980AR \
18981AR_FLAGS \
18982archiver_list_spec \
18983STRIP \
18984RANLIB \
18985CC \
18986CFLAGS \
18987compiler \
18988lt_cv_sys_global_symbol_pipe \
18989lt_cv_sys_global_symbol_to_cdecl \
18990lt_cv_sys_global_symbol_to_import \
18991lt_cv_sys_global_symbol_to_c_name_address \
18992lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18993lt_cv_nm_interface \
18994nm_file_list_spec \
18995lt_cv_truncate_bin \
18996lt_prog_compiler_no_builtin_flag \
18997lt_prog_compiler_pic \
18998lt_prog_compiler_wl \
18999lt_prog_compiler_static \
19000lt_cv_prog_compiler_c_o \
19001need_locks \
19002MANIFEST_TOOL \
19003DSYMUTIL \
19004NMEDIT \
19005LIPO \
19006OTOOL \
19007OTOOL64 \
19008shrext_cmds \
19009export_dynamic_flag_spec \
19010whole_archive_flag_spec \
19011compiler_needs_object \
19012with_gnu_ld \
19013allow_undefined_flag \
19014no_undefined_flag \
19015hardcode_libdir_flag_spec \
19016hardcode_libdir_separator \
19017exclude_expsyms \
19018include_expsyms \
19019file_list_spec \
19020variables_saved_for_relink \
19021libname_spec \
19022library_names_spec \
19023soname_spec \
19024install_override_mode \
19025finish_eval \
19026old_striplib \
19027striplib; do
19028    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19029    *[\\\\\\\`\\"\\\$]*)
19030      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19031      ;;
19032    *)
19033      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19034      ;;
19035    esac
19036done
19037
19038# Double-quote double-evaled strings.
19039for var in reload_cmds \
19040old_postinstall_cmds \
19041old_postuninstall_cmds \
19042old_archive_cmds \
19043extract_expsyms_cmds \
19044old_archive_from_new_cmds \
19045old_archive_from_expsyms_cmds \
19046archive_cmds \
19047archive_expsym_cmds \
19048module_cmds \
19049module_expsym_cmds \
19050export_symbols_cmds \
19051prelink_cmds \
19052postlink_cmds \
19053postinstall_cmds \
19054postuninstall_cmds \
19055finish_cmds \
19056sys_lib_search_path_spec \
19057configure_time_dlsearch_path \
19058configure_time_lt_sys_library_path; do
19059    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19060    *[\\\\\\\`\\"\\\$]*)
19061      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19062      ;;
19063    *)
19064      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19065      ;;
19066    esac
19067done
19068
19069ac_aux_dir='$ac_aux_dir'
19070
19071# See if we are running on zsh, and set the options that allow our
19072# commands through without removal of \ escapes INIT.
19073if test -n "\${ZSH_VERSION+set}"; then
19074   setopt NO_GLOB_SUBST
19075fi
19076
19077
19078    PACKAGE='$PACKAGE'
19079    VERSION='$VERSION'
19080    RM='$RM'
19081    ofile='$ofile'
19082
19083
19084
19085# Capture the value of obsolete ALL_LINGUAS because we need it to compute
19086    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
19087    OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
19088    # Capture the value of LINGUAS because we need it to compute CATALOGS.
19089    LINGUAS="${LINGUAS-%UNSET%}"
19090
19091
19092_ACEOF
19093
19094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19095
19096# Handling of arguments.
19097for ac_config_target in $ac_config_targets
19098do
19099  case $ac_config_target in
19100    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19101    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19102    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19103    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19104    "amtk-${AMTK_API_VERSION}.pc") CONFIG_FILES="$CONFIG_FILES amtk-${AMTK_API_VERSION}.pc:amtk.pc.in" ;;
19105    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19106    "amtk/Makefile") CONFIG_FILES="$CONFIG_FILES amtk/Makefile" ;;
19107    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19108    "docs/reference/amtk-docs.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/amtk-docs.xml" ;;
19109    "docs/reference/amtk-intro.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/amtk-intro.xml" ;;
19110    "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
19111    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19112    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19113    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
19114    "win32/config.h.win32") CONFIG_FILES="$CONFIG_FILES win32/config.h.win32" ;;
19115    "win32/config-msvc.mak") CONFIG_FILES="$CONFIG_FILES win32/config-msvc.mak" ;;
19116    "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
19117
19118  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19119  esac
19120done
19121
19122
19123# If the user did not use the arguments to specify the items to instantiate,
19124# then the envvar interface is used.  Set only those that are not.
19125# We use the long form for the default assignment because of an extremely
19126# bizarre bug on SunOS 4.1.3.
19127if $ac_need_defaults; then
19128  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19129  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19130  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19131fi
19132
19133# Have a temporary directory for convenience.  Make it in the build tree
19134# simply because there is no reason against having it here, and in addition,
19135# creating and moving files from /tmp can sometimes cause problems.
19136# Hook for its removal unless debugging.
19137# Note that there is a small window in which the directory will not be cleaned:
19138# after its creation but before its name has been assigned to `$tmp'.
19139$debug ||
19140{
19141  tmp= ac_tmp=
19142  trap 'exit_status=$?
19143  : "${ac_tmp:=$tmp}"
19144  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19145' 0
19146  trap 'as_fn_exit 1' 1 2 13 15
19147}
19148# Create a (secure) tmp directory for tmp files.
19149
19150{
19151  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19152  test -d "$tmp"
19153}  ||
19154{
19155  tmp=./conf$$-$RANDOM
19156  (umask 077 && mkdir "$tmp")
19157} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19158ac_tmp=$tmp
19159
19160# Set up the scripts for CONFIG_FILES section.
19161# No need to generate them if there are no CONFIG_FILES.
19162# This happens for instance with `./config.status config.h'.
19163if test -n "$CONFIG_FILES"; then
19164
19165
19166ac_cr=`echo X | tr X '\015'`
19167# On cygwin, bash can eat \r inside `` if the user requested igncr.
19168# But we know of no other shell where ac_cr would be empty at this
19169# point, so we can use a bashism as a fallback.
19170if test "x$ac_cr" = x; then
19171  eval ac_cr=\$\'\\r\'
19172fi
19173ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19174if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19175  ac_cs_awk_cr='\\r'
19176else
19177  ac_cs_awk_cr=$ac_cr
19178fi
19179
19180echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19181_ACEOF
19182
19183
19184{
19185  echo "cat >conf$$subs.awk <<_ACEOF" &&
19186  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19187  echo "_ACEOF"
19188} >conf$$subs.sh ||
19189  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19190ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19191ac_delim='%!_!# '
19192for ac_last_try in false false false false false :; do
19193  . ./conf$$subs.sh ||
19194    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19195
19196  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19197  if test $ac_delim_n = $ac_delim_num; then
19198    break
19199  elif $ac_last_try; then
19200    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19201  else
19202    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19203  fi
19204done
19205rm -f conf$$subs.sh
19206
19207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19208cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19209_ACEOF
19210sed -n '
19211h
19212s/^/S["/; s/!.*/"]=/
19213p
19214g
19215s/^[^!]*!//
19216:repl
19217t repl
19218s/'"$ac_delim"'$//
19219t delim
19220:nl
19221h
19222s/\(.\{148\}\)..*/\1/
19223t more1
19224s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19225p
19226n
19227b repl
19228:more1
19229s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19230p
19231g
19232s/.\{148\}//
19233t nl
19234:delim
19235h
19236s/\(.\{148\}\)..*/\1/
19237t more2
19238s/["\\]/\\&/g; s/^/"/; s/$/"/
19239p
19240b
19241:more2
19242s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19243p
19244g
19245s/.\{148\}//
19246t delim
19247' <conf$$subs.awk | sed '
19248/^[^""]/{
19249  N
19250  s/\n//
19251}
19252' >>$CONFIG_STATUS || ac_write_fail=1
19253rm -f conf$$subs.awk
19254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19255_ACAWK
19256cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19257  for (key in S) S_is_set[key] = 1
19258  FS = ""
19259
19260}
19261{
19262  line = $ 0
19263  nfields = split(line, field, "@")
19264  substed = 0
19265  len = length(field[1])
19266  for (i = 2; i < nfields; i++) {
19267    key = field[i]
19268    keylen = length(key)
19269    if (S_is_set[key]) {
19270      value = S[key]
19271      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19272      len += length(value) + length(field[++i])
19273      substed = 1
19274    } else
19275      len += 1 + keylen
19276  }
19277
19278  print line
19279}
19280
19281_ACAWK
19282_ACEOF
19283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19284if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19285  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19286else
19287  cat
19288fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19289  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19290_ACEOF
19291
19292# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19293# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19294# trailing colons and then remove the whole line if VPATH becomes empty
19295# (actually we leave an empty line to preserve line numbers).
19296if test "x$srcdir" = x.; then
19297  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19298h
19299s///
19300s/^/:/
19301s/[	 ]*$/:/
19302s/:\$(srcdir):/:/g
19303s/:\${srcdir}:/:/g
19304s/:@srcdir@:/:/g
19305s/^:*//
19306s/:*$//
19307x
19308s/\(=[	 ]*\).*/\1/
19309G
19310s/\n//
19311s/^[^=]*=[	 ]*$//
19312}'
19313fi
19314
19315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19316fi # test -n "$CONFIG_FILES"
19317
19318# Set up the scripts for CONFIG_HEADERS section.
19319# No need to generate them if there are no CONFIG_HEADERS.
19320# This happens for instance with `./config.status Makefile'.
19321if test -n "$CONFIG_HEADERS"; then
19322cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19323BEGIN {
19324_ACEOF
19325
19326# Transform confdefs.h into an awk script `defines.awk', embedded as
19327# here-document in config.status, that substitutes the proper values into
19328# config.h.in to produce config.h.
19329
19330# Create a delimiter string that does not exist in confdefs.h, to ease
19331# handling of long lines.
19332ac_delim='%!_!# '
19333for ac_last_try in false false :; do
19334  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19335  if test -z "$ac_tt"; then
19336    break
19337  elif $ac_last_try; then
19338    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19339  else
19340    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19341  fi
19342done
19343
19344# For the awk script, D is an array of macro values keyed by name,
19345# likewise P contains macro parameters if any.  Preserve backslash
19346# newline sequences.
19347
19348ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19349sed -n '
19350s/.\{148\}/&'"$ac_delim"'/g
19351t rset
19352:rset
19353s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19354t def
19355d
19356:def
19357s/\\$//
19358t bsnl
19359s/["\\]/\\&/g
19360s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19361D["\1"]=" \3"/p
19362s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19363d
19364:bsnl
19365s/["\\]/\\&/g
19366s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19367D["\1"]=" \3\\\\\\n"\\/p
19368t cont
19369s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19370t cont
19371d
19372:cont
19373n
19374s/.\{148\}/&'"$ac_delim"'/g
19375t clear
19376:clear
19377s/\\$//
19378t bsnlc
19379s/["\\]/\\&/g; s/^/"/; s/$/"/p
19380d
19381:bsnlc
19382s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19383b cont
19384' <confdefs.h | sed '
19385s/'"$ac_delim"'/"\\\
19386"/g' >>$CONFIG_STATUS || ac_write_fail=1
19387
19388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19389  for (key in D) D_is_set[key] = 1
19390  FS = ""
19391}
19392/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19393  line = \$ 0
19394  split(line, arg, " ")
19395  if (arg[1] == "#") {
19396    defundef = arg[2]
19397    mac1 = arg[3]
19398  } else {
19399    defundef = substr(arg[1], 2)
19400    mac1 = arg[2]
19401  }
19402  split(mac1, mac2, "(") #)
19403  macro = mac2[1]
19404  prefix = substr(line, 1, index(line, defundef) - 1)
19405  if (D_is_set[macro]) {
19406    # Preserve the white space surrounding the "#".
19407    print prefix "define", macro P[macro] D[macro]
19408    next
19409  } else {
19410    # Replace #undef with comments.  This is necessary, for example,
19411    # in the case of _POSIX_SOURCE, which is predefined and required
19412    # on some systems where configure will not decide to define it.
19413    if (defundef == "undef") {
19414      print "/*", prefix defundef, macro, "*/"
19415      next
19416    }
19417  }
19418}
19419{ print }
19420_ACAWK
19421_ACEOF
19422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19423  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19424fi # test -n "$CONFIG_HEADERS"
19425
19426
19427eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19428shift
19429for ac_tag
19430do
19431  case $ac_tag in
19432  :[FHLC]) ac_mode=$ac_tag; continue;;
19433  esac
19434  case $ac_mode$ac_tag in
19435  :[FHL]*:*);;
19436  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19437  :[FH]-) ac_tag=-:-;;
19438  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19439  esac
19440  ac_save_IFS=$IFS
19441  IFS=:
19442  set x $ac_tag
19443  IFS=$ac_save_IFS
19444  shift
19445  ac_file=$1
19446  shift
19447
19448  case $ac_mode in
19449  :L) ac_source=$1;;
19450  :[FH])
19451    ac_file_inputs=
19452    for ac_f
19453    do
19454      case $ac_f in
19455      -) ac_f="$ac_tmp/stdin";;
19456      *) # Look for the file first in the build tree, then in the source tree
19457	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19458	 # because $ac_f cannot contain `:'.
19459	 test -f "$ac_f" ||
19460	   case $ac_f in
19461	   [\\/$]*) false;;
19462	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19463	   esac ||
19464	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19465      esac
19466      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19467      as_fn_append ac_file_inputs " '$ac_f'"
19468    done
19469
19470    # Let's still pretend it is `configure' which instantiates (i.e., don't
19471    # use $as_me), people would be surprised to read:
19472    #    /* config.h.  Generated by config.status.  */
19473    configure_input='Generated from '`
19474	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19475	`' by configure.'
19476    if test x"$ac_file" != x-; then
19477      configure_input="$ac_file.  $configure_input"
19478      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19479$as_echo "$as_me: creating $ac_file" >&6;}
19480    fi
19481    # Neutralize special characters interpreted by sed in replacement strings.
19482    case $configure_input in #(
19483    *\&* | *\|* | *\\* )
19484       ac_sed_conf_input=`$as_echo "$configure_input" |
19485       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19486    *) ac_sed_conf_input=$configure_input;;
19487    esac
19488
19489    case $ac_tag in
19490    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19491      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19492    esac
19493    ;;
19494  esac
19495
19496  ac_dir=`$as_dirname -- "$ac_file" ||
19497$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19498	 X"$ac_file" : 'X\(//\)[^/]' \| \
19499	 X"$ac_file" : 'X\(//\)$' \| \
19500	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19501$as_echo X"$ac_file" |
19502    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19503	    s//\1/
19504	    q
19505	  }
19506	  /^X\(\/\/\)[^/].*/{
19507	    s//\1/
19508	    q
19509	  }
19510	  /^X\(\/\/\)$/{
19511	    s//\1/
19512	    q
19513	  }
19514	  /^X\(\/\).*/{
19515	    s//\1/
19516	    q
19517	  }
19518	  s/.*/./; q'`
19519  as_dir="$ac_dir"; as_fn_mkdir_p
19520  ac_builddir=.
19521
19522case "$ac_dir" in
19523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19524*)
19525  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19526  # A ".." for each directory in $ac_dir_suffix.
19527  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19528  case $ac_top_builddir_sub in
19529  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19530  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19531  esac ;;
19532esac
19533ac_abs_top_builddir=$ac_pwd
19534ac_abs_builddir=$ac_pwd$ac_dir_suffix
19535# for backward compatibility:
19536ac_top_builddir=$ac_top_build_prefix
19537
19538case $srcdir in
19539  .)  # We are building in place.
19540    ac_srcdir=.
19541    ac_top_srcdir=$ac_top_builddir_sub
19542    ac_abs_top_srcdir=$ac_pwd ;;
19543  [\\/]* | ?:[\\/]* )  # Absolute name.
19544    ac_srcdir=$srcdir$ac_dir_suffix;
19545    ac_top_srcdir=$srcdir
19546    ac_abs_top_srcdir=$srcdir ;;
19547  *) # Relative name.
19548    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19549    ac_top_srcdir=$ac_top_build_prefix$srcdir
19550    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19551esac
19552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19553
19554
19555  case $ac_mode in
19556  :F)
19557  #
19558  # CONFIG_FILE
19559  #
19560
19561  case $INSTALL in
19562  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19563  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19564  esac
19565  ac_MKDIR_P=$MKDIR_P
19566  case $MKDIR_P in
19567  [\\/$]* | ?:[\\/]* ) ;;
19568  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19569  esac
19570_ACEOF
19571
19572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19573# If the template does not know about datarootdir, expand it.
19574# FIXME: This hack should be removed a few years after 2.60.
19575ac_datarootdir_hack=; ac_datarootdir_seen=
19576ac_sed_dataroot='
19577/datarootdir/ {
19578  p
19579  q
19580}
19581/@datadir@/p
19582/@docdir@/p
19583/@infodir@/p
19584/@localedir@/p
19585/@mandir@/p'
19586case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19587*datarootdir*) ac_datarootdir_seen=yes;;
19588*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19589  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19590$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19591_ACEOF
19592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19593  ac_datarootdir_hack='
19594  s&@datadir@&$datadir&g
19595  s&@docdir@&$docdir&g
19596  s&@infodir@&$infodir&g
19597  s&@localedir@&$localedir&g
19598  s&@mandir@&$mandir&g
19599  s&\\\${datarootdir}&$datarootdir&g' ;;
19600esac
19601_ACEOF
19602
19603# Neutralize VPATH when `$srcdir' = `.'.
19604# Shell code in configure.ac might set extrasub.
19605# FIXME: do we really want to maintain this feature?
19606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19607ac_sed_extra="$ac_vpsub
19608$extrasub
19609_ACEOF
19610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19611:t
19612/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19613s|@configure_input@|$ac_sed_conf_input|;t t
19614s&@top_builddir@&$ac_top_builddir_sub&;t t
19615s&@top_build_prefix@&$ac_top_build_prefix&;t t
19616s&@srcdir@&$ac_srcdir&;t t
19617s&@abs_srcdir@&$ac_abs_srcdir&;t t
19618s&@top_srcdir@&$ac_top_srcdir&;t t
19619s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19620s&@builddir@&$ac_builddir&;t t
19621s&@abs_builddir@&$ac_abs_builddir&;t t
19622s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19623s&@INSTALL@&$ac_INSTALL&;t t
19624s&@MKDIR_P@&$ac_MKDIR_P&;t t
19625$ac_datarootdir_hack
19626"
19627eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19628  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19629
19630test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19631  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19632  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19633      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19634  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19635which seems to be undefined.  Please make sure it is defined" >&5
19636$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19637which seems to be undefined.  Please make sure it is defined" >&2;}
19638
19639  rm -f "$ac_tmp/stdin"
19640  case $ac_file in
19641  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19642  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19643  esac \
19644  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19645 ;;
19646  :H)
19647  #
19648  # CONFIG_HEADER
19649  #
19650  if test x"$ac_file" != x-; then
19651    {
19652      $as_echo "/* $configure_input  */" \
19653      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19654    } >"$ac_tmp/config.h" \
19655      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19656    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19657      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19658$as_echo "$as_me: $ac_file is unchanged" >&6;}
19659    else
19660      rm -f "$ac_file"
19661      mv "$ac_tmp/config.h" "$ac_file" \
19662	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19663    fi
19664  else
19665    $as_echo "/* $configure_input  */" \
19666      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19667      || as_fn_error $? "could not create -" "$LINENO" 5
19668  fi
19669# Compute "$ac_file"'s index in $config_headers.
19670_am_arg="$ac_file"
19671_am_stamp_count=1
19672for _am_header in $config_headers :; do
19673  case $_am_header in
19674    $_am_arg | $_am_arg:* )
19675      break ;;
19676    * )
19677      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19678  esac
19679done
19680echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19681$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19682	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19683	 X"$_am_arg" : 'X\(//\)$' \| \
19684	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19685$as_echo X"$_am_arg" |
19686    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19687	    s//\1/
19688	    q
19689	  }
19690	  /^X\(\/\/\)[^/].*/{
19691	    s//\1/
19692	    q
19693	  }
19694	  /^X\(\/\/\)$/{
19695	    s//\1/
19696	    q
19697	  }
19698	  /^X\(\/\).*/{
19699	    s//\1/
19700	    q
19701	  }
19702	  s/.*/./; q'`/stamp-h$_am_stamp_count
19703 ;;
19704
19705  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19706$as_echo "$as_me: executing $ac_file commands" >&6;}
19707 ;;
19708  esac
19709
19710
19711  case $ac_file$ac_mode in
19712    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19713  # Older Autoconf quotes --file arguments for eval, but not when files
19714  # are listed without --file.  Let's play safe and only enable the eval
19715  # if we detect the quoting.
19716  # TODO: see whether this extra hack can be removed once we start
19717  # requiring Autoconf 2.70 or later.
19718  case $CONFIG_FILES in #(
19719  *\'*) :
19720    eval set x "$CONFIG_FILES" ;; #(
19721  *) :
19722    set x $CONFIG_FILES ;; #(
19723  *) :
19724     ;;
19725esac
19726  shift
19727  # Used to flag and report bootstrapping failures.
19728  am_rc=0
19729  for am_mf
19730  do
19731    # Strip MF so we end up with the name of the file.
19732    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
19733    # Check whether this is an Automake generated Makefile which includes
19734    # dependency-tracking related rules and includes.
19735    # Grep'ing the whole file directly is not great: AIX grep has a line
19736    # limit of 2048, but all sed's we know have understand at least 4000.
19737    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19738      || continue
19739    am_dirpart=`$as_dirname -- "$am_mf" ||
19740$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19741	 X"$am_mf" : 'X\(//\)[^/]' \| \
19742	 X"$am_mf" : 'X\(//\)$' \| \
19743	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19744$as_echo X"$am_mf" |
19745    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19746	    s//\1/
19747	    q
19748	  }
19749	  /^X\(\/\/\)[^/].*/{
19750	    s//\1/
19751	    q
19752	  }
19753	  /^X\(\/\/\)$/{
19754	    s//\1/
19755	    q
19756	  }
19757	  /^X\(\/\).*/{
19758	    s//\1/
19759	    q
19760	  }
19761	  s/.*/./; q'`
19762    am_filepart=`$as_basename -- "$am_mf" ||
19763$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19764	 X"$am_mf" : 'X\(//\)$' \| \
19765	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19766$as_echo X/"$am_mf" |
19767    sed '/^.*\/\([^/][^/]*\)\/*$/{
19768	    s//\1/
19769	    q
19770	  }
19771	  /^X\/\(\/\/\)$/{
19772	    s//\1/
19773	    q
19774	  }
19775	  /^X\/\(\/\).*/{
19776	    s//\1/
19777	    q
19778	  }
19779	  s/.*/./; q'`
19780    { echo "$as_me:$LINENO: cd "$am_dirpart" \
19781      && sed -e '/# am--include-marker/d' "$am_filepart" \
19782        | $MAKE -f - am--depfiles" >&5
19783   (cd "$am_dirpart" \
19784      && sed -e '/# am--include-marker/d' "$am_filepart" \
19785        | $MAKE -f - am--depfiles) >&5 2>&5
19786   ac_status=$?
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); } || am_rc=$?
19789  done
19790  if test $am_rc -ne 0; then
19791    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19793as_fn_error $? "Something went wrong bootstrapping makefile fragments
19794    for automatic dependency tracking.  Try re-running configure with the
19795    '--disable-dependency-tracking' option to at least be able to build
19796    the package (albeit without support for automatic dependency tracking).
19797See \`config.log' for more details" "$LINENO" 5; }
19798  fi
19799  { am_dirpart=; unset am_dirpart;}
19800  { am_filepart=; unset am_filepart;}
19801  { am_mf=; unset am_mf;}
19802  { am_rc=; unset am_rc;}
19803  rm -f conftest-deps.mk
19804}
19805 ;;
19806    "libtool":C)
19807
19808    # See if we are running on zsh, and set the options that allow our
19809    # commands through without removal of \ escapes.
19810    if test -n "${ZSH_VERSION+set}"; then
19811      setopt NO_GLOB_SUBST
19812    fi
19813
19814    cfgfile=${ofile}T
19815    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19816    $RM "$cfgfile"
19817
19818    cat <<_LT_EOF >> "$cfgfile"
19819#! $SHELL
19820# Generated automatically by $as_me ($PACKAGE) $VERSION
19821# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19822# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19823
19824# Provide generalized library-building support services.
19825# Written by Gordon Matzigkeit, 1996
19826
19827# Copyright (C) 2014 Free Software Foundation, Inc.
19828# This is free software; see the source for copying conditions.  There is NO
19829# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19830
19831# GNU Libtool is free software; you can redistribute it and/or modify
19832# it under the terms of the GNU General Public License as published by
19833# the Free Software Foundation; either version 2 of of the License, or
19834# (at your option) any later version.
19835#
19836# As a special exception to the GNU General Public License, if you
19837# distribute this file as part of a program or library that is built
19838# using GNU Libtool, you may include this file under the  same
19839# distribution terms that you use for the rest of that program.
19840#
19841# GNU Libtool is distributed in the hope that it will be useful, but
19842# WITHOUT ANY WARRANTY; without even the implied warranty of
19843# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19844# GNU General Public License for more details.
19845#
19846# You should have received a copy of the GNU General Public License
19847# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19848
19849
19850# The names of the tagged configurations supported by this script.
19851available_tags=''
19852
19853# Configured defaults for sys_lib_dlsearch_path munging.
19854: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19855
19856# ### BEGIN LIBTOOL CONFIG
19857
19858# Which release of libtool.m4 was used?
19859macro_version=$macro_version
19860macro_revision=$macro_revision
19861
19862# Whether or not to build static libraries.
19863build_old_libs=$enable_static
19864
19865# Whether or not to build shared libraries.
19866build_libtool_libs=$enable_shared
19867
19868# What type of objects to build.
19869pic_mode=$pic_mode
19870
19871# Whether or not to optimize for fast installation.
19872fast_install=$enable_fast_install
19873
19874# Shared archive member basename,for filename based shared library versioning on AIX.
19875shared_archive_member_spec=$shared_archive_member_spec
19876
19877# Shell to use when invoking shell scripts.
19878SHELL=$lt_SHELL
19879
19880# An echo program that protects backslashes.
19881ECHO=$lt_ECHO
19882
19883# The PATH separator for the build system.
19884PATH_SEPARATOR=$lt_PATH_SEPARATOR
19885
19886# The host system.
19887host_alias=$host_alias
19888host=$host
19889host_os=$host_os
19890
19891# The build system.
19892build_alias=$build_alias
19893build=$build
19894build_os=$build_os
19895
19896# A sed program that does not truncate output.
19897SED=$lt_SED
19898
19899# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19900Xsed="\$SED -e 1s/^X//"
19901
19902# A grep program that handles long lines.
19903GREP=$lt_GREP
19904
19905# An ERE matcher.
19906EGREP=$lt_EGREP
19907
19908# A literal string matcher.
19909FGREP=$lt_FGREP
19910
19911# A BSD- or MS-compatible name lister.
19912NM=$lt_NM
19913
19914# Whether we need soft or hard links.
19915LN_S=$lt_LN_S
19916
19917# What is the maximum length of a command?
19918max_cmd_len=$max_cmd_len
19919
19920# Object file suffix (normally "o").
19921objext=$ac_objext
19922
19923# Executable file suffix (normally "").
19924exeext=$exeext
19925
19926# whether the shell understands "unset".
19927lt_unset=$lt_unset
19928
19929# turn spaces into newlines.
19930SP2NL=$lt_lt_SP2NL
19931
19932# turn newlines into spaces.
19933NL2SP=$lt_lt_NL2SP
19934
19935# convert \$build file names to \$host format.
19936to_host_file_cmd=$lt_cv_to_host_file_cmd
19937
19938# convert \$build files to toolchain format.
19939to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19940
19941# An object symbol dumper.
19942OBJDUMP=$lt_OBJDUMP
19943
19944# Method to check whether dependent libraries are shared objects.
19945deplibs_check_method=$lt_deplibs_check_method
19946
19947# Command to use when deplibs_check_method = "file_magic".
19948file_magic_cmd=$lt_file_magic_cmd
19949
19950# How to find potential files when deplibs_check_method = "file_magic".
19951file_magic_glob=$lt_file_magic_glob
19952
19953# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19954want_nocaseglob=$lt_want_nocaseglob
19955
19956# DLL creation program.
19957DLLTOOL=$lt_DLLTOOL
19958
19959# Command to associate shared and link libraries.
19960sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19961
19962# The archiver.
19963AR=$lt_AR
19964
19965# Flags to create an archive.
19966AR_FLAGS=$lt_AR_FLAGS
19967
19968# How to feed a file listing to the archiver.
19969archiver_list_spec=$lt_archiver_list_spec
19970
19971# A symbol stripping program.
19972STRIP=$lt_STRIP
19973
19974# Commands used to install an old-style archive.
19975RANLIB=$lt_RANLIB
19976old_postinstall_cmds=$lt_old_postinstall_cmds
19977old_postuninstall_cmds=$lt_old_postuninstall_cmds
19978
19979# Whether to use a lock for old archive extraction.
19980lock_old_archive_extraction=$lock_old_archive_extraction
19981
19982# A C compiler.
19983LTCC=$lt_CC
19984
19985# LTCC compiler flags.
19986LTCFLAGS=$lt_CFLAGS
19987
19988# Take the output of nm and produce a listing of raw symbols and C names.
19989global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19990
19991# Transform the output of nm in a proper C declaration.
19992global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19993
19994# Transform the output of nm into a list of symbols to manually relocate.
19995global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19996
19997# Transform the output of nm in a C name address pair.
19998global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19999
20000# Transform the output of nm in a C name address pair when lib prefix is needed.
20001global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20002
20003# The name lister interface.
20004nm_interface=$lt_lt_cv_nm_interface
20005
20006# Specify filename containing input files for \$NM.
20007nm_file_list_spec=$lt_nm_file_list_spec
20008
20009# The root where to search for dependent libraries,and where our libraries should be installed.
20010lt_sysroot=$lt_sysroot
20011
20012# Command to truncate a binary pipe.
20013lt_truncate_bin=$lt_lt_cv_truncate_bin
20014
20015# The name of the directory that contains temporary libtool files.
20016objdir=$objdir
20017
20018# Used to examine libraries when file_magic_cmd begins with "file".
20019MAGIC_CMD=$MAGIC_CMD
20020
20021# Must we lock files when doing compilation?
20022need_locks=$lt_need_locks
20023
20024# Manifest tool.
20025MANIFEST_TOOL=$lt_MANIFEST_TOOL
20026
20027# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20028DSYMUTIL=$lt_DSYMUTIL
20029
20030# Tool to change global to local symbols on Mac OS X.
20031NMEDIT=$lt_NMEDIT
20032
20033# Tool to manipulate fat objects and archives on Mac OS X.
20034LIPO=$lt_LIPO
20035
20036# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20037OTOOL=$lt_OTOOL
20038
20039# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20040OTOOL64=$lt_OTOOL64
20041
20042# Old archive suffix (normally "a").
20043libext=$libext
20044
20045# Shared library suffix (normally ".so").
20046shrext_cmds=$lt_shrext_cmds
20047
20048# The commands to extract the exported symbol list from a shared archive.
20049extract_expsyms_cmds=$lt_extract_expsyms_cmds
20050
20051# Variables whose values should be saved in libtool wrapper scripts and
20052# restored at link time.
20053variables_saved_for_relink=$lt_variables_saved_for_relink
20054
20055# Do we need the "lib" prefix for modules?
20056need_lib_prefix=$need_lib_prefix
20057
20058# Do we need a version for libraries?
20059need_version=$need_version
20060
20061# Library versioning type.
20062version_type=$version_type
20063
20064# Shared library runtime path variable.
20065runpath_var=$runpath_var
20066
20067# Shared library path variable.
20068shlibpath_var=$shlibpath_var
20069
20070# Is shlibpath searched before the hard-coded library search path?
20071shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20072
20073# Format of library name prefix.
20074libname_spec=$lt_libname_spec
20075
20076# List of archive names.  First name is the real one, the rest are links.
20077# The last name is the one that the linker finds with -lNAME
20078library_names_spec=$lt_library_names_spec
20079
20080# The coded name of the library, if different from the real name.
20081soname_spec=$lt_soname_spec
20082
20083# Permission mode override for installation of shared libraries.
20084install_override_mode=$lt_install_override_mode
20085
20086# Command to use after installation of a shared archive.
20087postinstall_cmds=$lt_postinstall_cmds
20088
20089# Command to use after uninstallation of a shared archive.
20090postuninstall_cmds=$lt_postuninstall_cmds
20091
20092# Commands used to finish a libtool library installation in a directory.
20093finish_cmds=$lt_finish_cmds
20094
20095# As "finish_cmds", except a single script fragment to be evaled but
20096# not shown.
20097finish_eval=$lt_finish_eval
20098
20099# Whether we should hardcode library paths into libraries.
20100hardcode_into_libs=$hardcode_into_libs
20101
20102# Compile-time system search path for libraries.
20103sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20104
20105# Detected run-time system search path for libraries.
20106sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20107
20108# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20109configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20110
20111# Whether dlopen is supported.
20112dlopen_support=$enable_dlopen
20113
20114# Whether dlopen of programs is supported.
20115dlopen_self=$enable_dlopen_self
20116
20117# Whether dlopen of statically linked programs is supported.
20118dlopen_self_static=$enable_dlopen_self_static
20119
20120# Commands to strip libraries.
20121old_striplib=$lt_old_striplib
20122striplib=$lt_striplib
20123
20124
20125# The linker used to build libraries.
20126LD=$lt_LD
20127
20128# How to create reloadable object files.
20129reload_flag=$lt_reload_flag
20130reload_cmds=$lt_reload_cmds
20131
20132# Commands used to build an old-style archive.
20133old_archive_cmds=$lt_old_archive_cmds
20134
20135# A language specific compiler.
20136CC=$lt_compiler
20137
20138# Is the compiler the GNU compiler?
20139with_gcc=$GCC
20140
20141# Compiler flag to turn off builtin functions.
20142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20143
20144# Additional compiler flags for building library objects.
20145pic_flag=$lt_lt_prog_compiler_pic
20146
20147# How to pass a linker flag through the compiler.
20148wl=$lt_lt_prog_compiler_wl
20149
20150# Compiler flag to prevent dynamic linking.
20151link_static_flag=$lt_lt_prog_compiler_static
20152
20153# Does compiler simultaneously support -c and -o options?
20154compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20155
20156# Whether or not to add -lc for building shared libraries.
20157build_libtool_need_lc=$archive_cmds_need_lc
20158
20159# Whether or not to disallow shared libs when runtime libs are static.
20160allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20161
20162# Compiler flag to allow reflexive dlopens.
20163export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20164
20165# Compiler flag to generate shared objects directly from archives.
20166whole_archive_flag_spec=$lt_whole_archive_flag_spec
20167
20168# Whether the compiler copes with passing no objects directly.
20169compiler_needs_object=$lt_compiler_needs_object
20170
20171# Create an old-style archive from a shared archive.
20172old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20173
20174# Create a temporary old-style archive to link instead of a shared archive.
20175old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20176
20177# Commands used to build a shared archive.
20178archive_cmds=$lt_archive_cmds
20179archive_expsym_cmds=$lt_archive_expsym_cmds
20180
20181# Commands used to build a loadable module if different from building
20182# a shared archive.
20183module_cmds=$lt_module_cmds
20184module_expsym_cmds=$lt_module_expsym_cmds
20185
20186# Whether we are building with GNU ld or not.
20187with_gnu_ld=$lt_with_gnu_ld
20188
20189# Flag that allows shared libraries with undefined symbols to be built.
20190allow_undefined_flag=$lt_allow_undefined_flag
20191
20192# Flag that enforces no undefined symbols.
20193no_undefined_flag=$lt_no_undefined_flag
20194
20195# Flag to hardcode \$libdir into a binary during linking.
20196# This must work even if \$libdir does not exist
20197hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20198
20199# Whether we need a single "-rpath" flag with a separated argument.
20200hardcode_libdir_separator=$lt_hardcode_libdir_separator
20201
20202# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20203# DIR into the resulting binary.
20204hardcode_direct=$hardcode_direct
20205
20206# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20207# DIR into the resulting binary and the resulting library dependency is
20208# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20209# library is relocated.
20210hardcode_direct_absolute=$hardcode_direct_absolute
20211
20212# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20213# into the resulting binary.
20214hardcode_minus_L=$hardcode_minus_L
20215
20216# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20217# into the resulting binary.
20218hardcode_shlibpath_var=$hardcode_shlibpath_var
20219
20220# Set to "yes" if building a shared library automatically hardcodes DIR
20221# into the library and all subsequent libraries and executables linked
20222# against it.
20223hardcode_automatic=$hardcode_automatic
20224
20225# Set to yes if linker adds runtime paths of dependent libraries
20226# to runtime path list.
20227inherit_rpath=$inherit_rpath
20228
20229# Whether libtool must link a program against all its dependency libraries.
20230link_all_deplibs=$link_all_deplibs
20231
20232# Set to "yes" if exported symbols are required.
20233always_export_symbols=$always_export_symbols
20234
20235# The commands to list exported symbols.
20236export_symbols_cmds=$lt_export_symbols_cmds
20237
20238# Symbols that should not be listed in the preloaded symbols.
20239exclude_expsyms=$lt_exclude_expsyms
20240
20241# Symbols that must always be exported.
20242include_expsyms=$lt_include_expsyms
20243
20244# Commands necessary for linking programs (against libraries) with templates.
20245prelink_cmds=$lt_prelink_cmds
20246
20247# Commands necessary for finishing linking programs.
20248postlink_cmds=$lt_postlink_cmds
20249
20250# Specify filename containing input files.
20251file_list_spec=$lt_file_list_spec
20252
20253# How to hardcode a shared library path into an executable.
20254hardcode_action=$hardcode_action
20255
20256# ### END LIBTOOL CONFIG
20257
20258_LT_EOF
20259
20260    cat <<'_LT_EOF' >> "$cfgfile"
20261
20262# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20263
20264# func_munge_path_list VARIABLE PATH
20265# -----------------------------------
20266# VARIABLE is name of variable containing _space_ separated list of
20267# directories to be munged by the contents of PATH, which is string
20268# having a format:
20269# "DIR[:DIR]:"
20270#       string "DIR[ DIR]" will be prepended to VARIABLE
20271# ":DIR[:DIR]"
20272#       string "DIR[ DIR]" will be appended to VARIABLE
20273# "DIRP[:DIRP]::[DIRA:]DIRA"
20274#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20275#       "DIRA[ DIRA]" will be appended to VARIABLE
20276# "DIR[:DIR]"
20277#       VARIABLE will be replaced by "DIR[ DIR]"
20278func_munge_path_list ()
20279{
20280    case x$2 in
20281    x)
20282        ;;
20283    *:)
20284        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20285        ;;
20286    x:*)
20287        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20288        ;;
20289    *::*)
20290        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20291        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20292        ;;
20293    *)
20294        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20295        ;;
20296    esac
20297}
20298
20299
20300# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20301func_cc_basename ()
20302{
20303    for cc_temp in $*""; do
20304      case $cc_temp in
20305        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20306        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20307        \-*) ;;
20308        *) break;;
20309      esac
20310    done
20311    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20312}
20313
20314
20315# ### END FUNCTIONS SHARED WITH CONFIGURE
20316
20317_LT_EOF
20318
20319  case $host_os in
20320  aix3*)
20321    cat <<\_LT_EOF >> "$cfgfile"
20322# AIX sometimes has problems with the GCC collect2 program.  For some
20323# reason, if we set the COLLECT_NAMES environment variable, the problems
20324# vanish in a puff of smoke.
20325if test set != "${COLLECT_NAMES+set}"; then
20326  COLLECT_NAMES=
20327  export COLLECT_NAMES
20328fi
20329_LT_EOF
20330    ;;
20331  esac
20332
20333
20334ltmain=$ac_aux_dir/ltmain.sh
20335
20336
20337  # We use sed instead of cat because bash on DJGPP gets confused if
20338  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20339  # text mode, it properly converts lines to CR/LF.  This bash problem
20340  # is reportedly fixed, but why not run on old versions too?
20341  sed '$q' "$ltmain" >> "$cfgfile" \
20342     || (rm -f "$cfgfile"; exit 1)
20343
20344   mv -f "$cfgfile" "$ofile" ||
20345    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20346  chmod +x "$ofile"
20347
20348 ;;
20349    "po-directories":C)
20350    for ac_file in $CONFIG_FILES; do
20351      # Support "outfile[:infile[:infile...]]"
20352      case "$ac_file" in
20353        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20354      esac
20355      # PO directories have a Makefile.in generated from Makefile.in.in.
20356      case "$ac_file" in */Makefile.in)
20357        # Adjust a relative srcdir.
20358        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20359        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20360        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20361        # In autoconf-2.13 it is called $ac_given_srcdir.
20362        # In autoconf-2.50 it is called $srcdir.
20363        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20364        case "$ac_given_srcdir" in
20365          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20366          /*) top_srcdir="$ac_given_srcdir" ;;
20367          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
20368        esac
20369        # Treat a directory as a PO directory if and only if it has a
20370        # POTFILES.in file. This allows packages to have multiple PO
20371        # directories under different names or in different locations.
20372        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20373          rm -f "$ac_dir/POTFILES"
20374          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20375          gt_tab=`printf '\t'`
20376          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20377          POMAKEFILEDEPS="POTFILES.in"
20378          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
20379          # on $ac_dir but don't depend on user-specified configuration
20380          # parameters.
20381          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20382            # The LINGUAS file contains the set of available languages.
20383            if test -n "$OBSOLETE_ALL_LINGUAS"; then
20384              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20385            fi
20386            ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20387            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20388          else
20389            # The set of available languages was given in configure.in.
20390            ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
20391          fi
20392          # Compute POFILES
20393          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
20394          # Compute UPDATEPOFILES
20395          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
20396          # Compute DUMMYPOFILES
20397          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
20398          # Compute GMOFILES
20399          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
20400          case "$ac_given_srcdir" in
20401            .) srcdirpre= ;;
20402            *) srcdirpre='$(srcdir)/' ;;
20403          esac
20404          POFILES=
20405          UPDATEPOFILES=
20406          DUMMYPOFILES=
20407          GMOFILES=
20408          for lang in $ALL_LINGUAS; do
20409            POFILES="$POFILES $srcdirpre$lang.po"
20410            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20411            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20412            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20413          done
20414          # CATALOGS depends on both $ac_dir and the user's LINGUAS
20415          # environment variable.
20416          INST_LINGUAS=
20417          if test -n "$ALL_LINGUAS"; then
20418            for presentlang in $ALL_LINGUAS; do
20419              useit=no
20420              if test "%UNSET%" != "$LINGUAS"; then
20421                desiredlanguages="$LINGUAS"
20422              else
20423                desiredlanguages="$ALL_LINGUAS"
20424              fi
20425              for desiredlang in $desiredlanguages; do
20426                # Use the presentlang catalog if desiredlang is
20427                #   a. equal to presentlang, or
20428                #   b. a variant of presentlang (because in this case,
20429                #      presentlang can be used as a fallback for messages
20430                #      which are not translated in the desiredlang catalog).
20431                case "$desiredlang" in
20432                  "$presentlang"*) useit=yes;;
20433                esac
20434              done
20435              if test $useit = yes; then
20436                INST_LINGUAS="$INST_LINGUAS $presentlang"
20437              fi
20438            done
20439          fi
20440          CATALOGS=
20441          if test -n "$INST_LINGUAS"; then
20442            for lang in $INST_LINGUAS; do
20443              CATALOGS="$CATALOGS $lang.gmo"
20444            done
20445          fi
20446          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20447          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
20448          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20449            if test -f "$f"; then
20450              case "$f" in
20451                *.orig | *.bak | *~) ;;
20452                *) cat "$f" >> "$ac_dir/Makefile" ;;
20453              esac
20454            fi
20455          done
20456        fi
20457        ;;
20458      esac
20459    done ;;
20460
20461  esac
20462done # for ac_tag
20463
20464
20465as_fn_exit 0
20466_ACEOF
20467ac_clean_files=$ac_clean_files_save
20468
20469test $ac_write_fail = 0 ||
20470  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20471
20472
20473# configure is writing to config.log, and then calls config.status.
20474# config.status does its own redirection, appending to config.log.
20475# Unfortunately, on DOS this fails, as config.log is still kept open
20476# by configure, so config.status won't be able to write to it; its
20477# output is simply discarded.  So we exec the FD to /dev/null,
20478# effectively closing config.log, so it can be properly (re)opened and
20479# appended to by config.status.  When coming back to configure, we
20480# need to make the FD available again.
20481if test "$no_create" != yes; then
20482  ac_cs_success=:
20483  ac_config_status_args=
20484  test "$silent" = yes &&
20485    ac_config_status_args="$ac_config_status_args --quiet"
20486  exec 5>/dev/null
20487  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20488  exec 5>>config.log
20489  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20490  # would make configure fail if this is the last instruction.
20491  $ac_cs_success || as_fn_exit 1
20492fi
20493if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20494  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20495$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20496fi
20497
20498
20499echo "
20500Configuration:
20501
20502	${PACKAGE_NAME} version ${PACKAGE_VERSION}
20503
20504	Source code location:	${srcdir}
20505	Prefix:			${prefix}
20506	Compiler:		${CC}
20507	Documentation:		${enable_gtk_doc}
20508	GObject introspection:	${found_introspection}
20509	Code coverage:		${enable_code_coverage}
20510	Valgrind check:		${enable_valgrind}
20511	Installed tests:	${enable_installed_tests}
20512"
20513