1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ibus-libpinyin 1.11.1.
4#
5# Report bugs to <https://github.com/libpinyin/ibus-libpinyin/issues/new>.
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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://github.com/libpinyin/ibus-libpinyin/issues/new
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='ibus-libpinyin'
593PACKAGE_TARNAME='ibus-libpinyin'
594PACKAGE_VERSION='1.11.1'
595PACKAGE_STRING='ibus-libpinyin 1.11.1'
596PACKAGE_BUGREPORT='https://github.com/libpinyin/ibus-libpinyin/issues/new'
597PACKAGE_URL=''
598
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
640IBUS_BUILD_STROKE_INPUT_MODE_FALSE
641IBUS_BUILD_STROKE_INPUT_MODE_TRUE
642IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE
643IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE
644IBUS_BUILD_LUA_EXTENSION_FALSE
645IBUS_BUILD_LUA_EXTENSION_TRUE
646LUA_LIBS
647LUA_CFLAGS
648GSETTINGS_RULES
649GLIB_COMPILE_SCHEMAS
650gsettingsschemadir
651GSETTINGS_DISABLE_SCHEMAS_COMPILE
652GIO2_LIBS
653GIO2_CFLAGS
654POSUB
655LTLIBINTL
656LIBINTL
657INTLLIBS
658LTLIBICONV
659LIBICONV
660INTL_MACOSX_LIBS
661XGETTEXT_EXTRA_OPTIONS
662MSGMERGE
663XGETTEXT_015
664XGETTEXT
665GMSGFMT_015
666MSGFMT_015
667GMSGFMT
668MSGFMT
669GETTEXT_MACRO_VERSION
670USE_NLS
671GETTEXT_PACKAGE
672OPENCC_LIBS
673OPENCC_CFLAGS
674HAVE_BOOST_FALSE
675HAVE_BOOST_TRUE
676BOOST_CPPFLAGS
677DISTCHECK_CONFIGURE_FLAGS
678BOOST_ROOT
679ICON_PROP_KEY_XML
680pkgpyexecdir
681pyexecdir
682pkgpythondir
683pythondir
684PYTHON_PLATFORM
685PYTHON_EXEC_PREFIX
686PYTHON_PREFIX
687PYTHON_VERSION
688PYTHON
689ENV
690LIBPINYIN_DATADIR
691LIBPINYIN_LIBS
692LIBPINYIN_CFLAGS
693SQLITE3
694SQLITE_LIBS
695SQLITE_CFLAGS
696IBUS_LIBS
697IBUS_CFLAGS
698PKG_CONFIG_LIBDIR
699PKG_CONFIG_PATH
700PKG_CONFIG
701CXXCPP
702LT_SYS_LIBRARY_PATH
703OTOOL64
704OTOOL
705LIPO
706NMEDIT
707DSYMUTIL
708MANIFEST_TOOL
709RANLIB
710ac_ct_AR
711AR
712DLLTOOL
713OBJDUMP
714LN_S
715NM
716ac_ct_DUMPBIN
717DUMPBIN
718LD
719FGREP
720SED
721host_os
722host_vendor
723host_cpu
724host
725build_os
726build_vendor
727build_cpu
728build
729LIBTOOL
730am__fastdepCXX_FALSE
731am__fastdepCXX_TRUE
732CXXDEPMODE
733ac_ct_CXX
734CXXFLAGS
735CXX
736MAINT
737MAINTAINER_MODE_FALSE
738MAINTAINER_MODE_TRUE
739PACKAGE_VERSION_RELEASE
740PACKAGE_VERSION_NANO
741PACKAGE_VERSION_MICRO
742PACKAGE_VERSION_MINOR
743PACKAGE_VERSION_MAJOR
744EGREP
745GREP
746CPP
747am__fastdepCC_FALSE
748am__fastdepCC_TRUE
749CCDEPMODE
750am__nodep
751AMDEPBACKSLASH
752AMDEP_FALSE
753AMDEP_TRUE
754am__include
755DEPDIR
756OBJEXT
757EXEEXT
758ac_ct_CC
759CPPFLAGS
760LDFLAGS
761CFLAGS
762CC
763AM_BACKSLASH
764AM_DEFAULT_VERBOSITY
765AM_DEFAULT_V
766AM_V
767am__untar
768am__tar
769AMTAR
770am__leading_dot
771SET_MAKE
772AWK
773mkdir_p
774MKDIR_P
775INSTALL_STRIP_PROGRAM
776STRIP
777install_sh
778MAKEINFO
779AUTOHEADER
780AUTOMAKE
781AUTOCONF
782ACLOCAL
783VERSION
784PACKAGE
785CYGPATH_W
786am__isrc
787INSTALL_DATA
788INSTALL_SCRIPT
789INSTALL_PROGRAM
790target_alias
791host_alias
792build_alias
793LIBS
794ECHO_T
795ECHO_N
796ECHO_C
797DEFS
798mandir
799localedir
800libdir
801psdir
802pdfdir
803dvidir
804htmldir
805infodir
806docdir
807oldincludedir
808includedir
809localstatedir
810sharedstatedir
811sysconfdir
812datadir
813datarootdir
814libexecdir
815sbindir
816bindir
817program_transform_name
818prefix
819exec_prefix
820PACKAGE_URL
821PACKAGE_BUGREPORT
822PACKAGE_STRING
823PACKAGE_VERSION
824PACKAGE_TARNAME
825PACKAGE_NAME
826PATH_SEPARATOR
827SHELL
828am__quote'
829ac_subst_files=''
830ac_user_opts='
831enable_option_checking
832enable_silent_rules
833enable_dependency_tracking
834enable_maintainer_mode
835enable_static
836enable_shared
837with_pic
838enable_fast_install
839with_aix_soname
840with_gnu_ld
841with_sysroot
842enable_libtool_lock
843with_python
844enable_boost
845with_boost
846enable_opencc
847enable_nls
848enable_rpath
849with_libiconv_prefix
850with_libintl_prefix
851enable_schemas_compile
852enable_lua_extension
853enable_english_input_mode
854enable_stroke_input_mode
855'
856      ac_precious_vars='build_alias
857host_alias
858target_alias
859CC
860CFLAGS
861LDFLAGS
862LIBS
863CPPFLAGS
864CPP
865CXX
866CXXFLAGS
867CCC
868LT_SYS_LIBRARY_PATH
869CXXCPP
870PKG_CONFIG
871PKG_CONFIG_PATH
872PKG_CONFIG_LIBDIR
873IBUS_CFLAGS
874IBUS_LIBS
875SQLITE_CFLAGS
876SQLITE_LIBS
877LIBPINYIN_CFLAGS
878LIBPINYIN_LIBS
879PYTHON
880BOOST_ROOT
881OPENCC_CFLAGS
882OPENCC_LIBS
883GIO2_CFLAGS
884GIO2_LIBS
885GLIB_COMPILE_SCHEMAS
886LUA_CFLAGS
887LUA_LIBS'
888
889
890# Initialize some variables set by options.
891ac_init_help=
892ac_init_version=false
893ac_unrecognized_opts=
894ac_unrecognized_sep=
895# The variables have the same names as the options, with
896# dashes changed to underlines.
897cache_file=/dev/null
898exec_prefix=NONE
899no_create=
900no_recursion=
901prefix=NONE
902program_prefix=NONE
903program_suffix=NONE
904program_transform_name=s,x,x,
905silent=
906site=
907srcdir=
908verbose=
909x_includes=NONE
910x_libraries=NONE
911
912# Installation directory options.
913# These are left unexpanded so users can "make install exec_prefix=/foo"
914# and all the variables that are supposed to be based on exec_prefix
915# by default will actually change.
916# Use braces instead of parens because sh, perl, etc. also accept them.
917# (The list follows the same order as the GNU Coding Standards.)
918bindir='${exec_prefix}/bin'
919sbindir='${exec_prefix}/sbin'
920libexecdir='${exec_prefix}/libexec'
921datarootdir='${prefix}/share'
922datadir='${datarootdir}'
923sysconfdir='${prefix}/etc'
924sharedstatedir='${prefix}/com'
925localstatedir='${prefix}/var'
926includedir='${prefix}/include'
927oldincludedir='/usr/include'
928docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929infodir='${datarootdir}/info'
930htmldir='${docdir}'
931dvidir='${docdir}'
932pdfdir='${docdir}'
933psdir='${docdir}'
934libdir='${exec_prefix}/lib'
935localedir='${datarootdir}/locale'
936mandir='${datarootdir}/man'
937
938ac_prev=
939ac_dashdash=
940for ac_option
941do
942  # If the previous option needs an argument, assign it.
943  if test -n "$ac_prev"; then
944    eval $ac_prev=\$ac_option
945    ac_prev=
946    continue
947  fi
948
949  case $ac_option in
950  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951  *=)   ac_optarg= ;;
952  *)    ac_optarg=yes ;;
953  esac
954
955  # Accept the important Cygnus configure options, so we can diagnose typos.
956
957  case $ac_dashdash$ac_option in
958  --)
959    ac_dashdash=yes ;;
960
961  -bindir | --bindir | --bindi | --bind | --bin | --bi)
962    ac_prev=bindir ;;
963  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964    bindir=$ac_optarg ;;
965
966  -build | --build | --buil | --bui | --bu)
967    ac_prev=build_alias ;;
968  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969    build_alias=$ac_optarg ;;
970
971  -cache-file | --cache-file | --cache-fil | --cache-fi \
972  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973    ac_prev=cache_file ;;
974  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976    cache_file=$ac_optarg ;;
977
978  --config-cache | -C)
979    cache_file=config.cache ;;
980
981  -datadir | --datadir | --datadi | --datad)
982    ac_prev=datadir ;;
983  -datadir=* | --datadir=* | --datadi=* | --datad=*)
984    datadir=$ac_optarg ;;
985
986  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987  | --dataroo | --dataro | --datar)
988    ac_prev=datarootdir ;;
989  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991    datarootdir=$ac_optarg ;;
992
993  -disable-* | --disable-*)
994    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995    # Reject names that are not valid shell variable names.
996    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997      as_fn_error $? "invalid feature name: $ac_useropt"
998    ac_useropt_orig=$ac_useropt
999    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000    case $ac_user_opts in
1001      *"
1002"enable_$ac_useropt"
1003"*) ;;
1004      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005	 ac_unrecognized_sep=', ';;
1006    esac
1007    eval enable_$ac_useropt=no ;;
1008
1009  -docdir | --docdir | --docdi | --doc | --do)
1010    ac_prev=docdir ;;
1011  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012    docdir=$ac_optarg ;;
1013
1014  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015    ac_prev=dvidir ;;
1016  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017    dvidir=$ac_optarg ;;
1018
1019  -enable-* | --enable-*)
1020    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021    # Reject names that are not valid shell variable names.
1022    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023      as_fn_error $? "invalid feature name: $ac_useropt"
1024    ac_useropt_orig=$ac_useropt
1025    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026    case $ac_user_opts in
1027      *"
1028"enable_$ac_useropt"
1029"*) ;;
1030      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031	 ac_unrecognized_sep=', ';;
1032    esac
1033    eval enable_$ac_useropt=\$ac_optarg ;;
1034
1035  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037  | --exec | --exe | --ex)
1038    ac_prev=exec_prefix ;;
1039  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041  | --exec=* | --exe=* | --ex=*)
1042    exec_prefix=$ac_optarg ;;
1043
1044  -gas | --gas | --ga | --g)
1045    # Obsolete; use --with-gas.
1046    with_gas=yes ;;
1047
1048  -help | --help | --hel | --he | -h)
1049    ac_init_help=long ;;
1050  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051    ac_init_help=recursive ;;
1052  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053    ac_init_help=short ;;
1054
1055  -host | --host | --hos | --ho)
1056    ac_prev=host_alias ;;
1057  -host=* | --host=* | --hos=* | --ho=*)
1058    host_alias=$ac_optarg ;;
1059
1060  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061    ac_prev=htmldir ;;
1062  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063  | --ht=*)
1064    htmldir=$ac_optarg ;;
1065
1066  -includedir | --includedir | --includedi | --included | --include \
1067  | --includ | --inclu | --incl | --inc)
1068    ac_prev=includedir ;;
1069  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070  | --includ=* | --inclu=* | --incl=* | --inc=*)
1071    includedir=$ac_optarg ;;
1072
1073  -infodir | --infodir | --infodi | --infod | --info | --inf)
1074    ac_prev=infodir ;;
1075  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076    infodir=$ac_optarg ;;
1077
1078  -libdir | --libdir | --libdi | --libd)
1079    ac_prev=libdir ;;
1080  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081    libdir=$ac_optarg ;;
1082
1083  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084  | --libexe | --libex | --libe)
1085    ac_prev=libexecdir ;;
1086  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087  | --libexe=* | --libex=* | --libe=*)
1088    libexecdir=$ac_optarg ;;
1089
1090  -localedir | --localedir | --localedi | --localed | --locale)
1091    ac_prev=localedir ;;
1092  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093    localedir=$ac_optarg ;;
1094
1095  -localstatedir | --localstatedir | --localstatedi | --localstated \
1096  | --localstate | --localstat | --localsta | --localst | --locals)
1097    ac_prev=localstatedir ;;
1098  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100    localstatedir=$ac_optarg ;;
1101
1102  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103    ac_prev=mandir ;;
1104  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105    mandir=$ac_optarg ;;
1106
1107  -nfp | --nfp | --nf)
1108    # Obsolete; use --without-fp.
1109    with_fp=no ;;
1110
1111  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112  | --no-cr | --no-c | -n)
1113    no_create=yes ;;
1114
1115  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117    no_recursion=yes ;;
1118
1119  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121  | --oldin | --oldi | --old | --ol | --o)
1122    ac_prev=oldincludedir ;;
1123  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126    oldincludedir=$ac_optarg ;;
1127
1128  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129    ac_prev=prefix ;;
1130  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131    prefix=$ac_optarg ;;
1132
1133  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134  | --program-pre | --program-pr | --program-p)
1135    ac_prev=program_prefix ;;
1136  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138    program_prefix=$ac_optarg ;;
1139
1140  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141  | --program-suf | --program-su | --program-s)
1142    ac_prev=program_suffix ;;
1143  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145    program_suffix=$ac_optarg ;;
1146
1147  -program-transform-name | --program-transform-name \
1148  | --program-transform-nam | --program-transform-na \
1149  | --program-transform-n | --program-transform- \
1150  | --program-transform | --program-transfor \
1151  | --program-transfo | --program-transf \
1152  | --program-trans | --program-tran \
1153  | --progr-tra | --program-tr | --program-t)
1154    ac_prev=program_transform_name ;;
1155  -program-transform-name=* | --program-transform-name=* \
1156  | --program-transform-nam=* | --program-transform-na=* \
1157  | --program-transform-n=* | --program-transform-=* \
1158  | --program-transform=* | --program-transfor=* \
1159  | --program-transfo=* | --program-transf=* \
1160  | --program-trans=* | --program-tran=* \
1161  | --progr-tra=* | --program-tr=* | --program-t=*)
1162    program_transform_name=$ac_optarg ;;
1163
1164  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165    ac_prev=pdfdir ;;
1166  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167    pdfdir=$ac_optarg ;;
1168
1169  -psdir | --psdir | --psdi | --psd | --ps)
1170    ac_prev=psdir ;;
1171  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172    psdir=$ac_optarg ;;
1173
1174  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175  | -silent | --silent | --silen | --sile | --sil)
1176    silent=yes ;;
1177
1178  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179    ac_prev=sbindir ;;
1180  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181  | --sbi=* | --sb=*)
1182    sbindir=$ac_optarg ;;
1183
1184  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186  | --sharedst | --shareds | --shared | --share | --shar \
1187  | --sha | --sh)
1188    ac_prev=sharedstatedir ;;
1189  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192  | --sha=* | --sh=*)
1193    sharedstatedir=$ac_optarg ;;
1194
1195  -site | --site | --sit)
1196    ac_prev=site ;;
1197  -site=* | --site=* | --sit=*)
1198    site=$ac_optarg ;;
1199
1200  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201    ac_prev=srcdir ;;
1202  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203    srcdir=$ac_optarg ;;
1204
1205  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206  | --syscon | --sysco | --sysc | --sys | --sy)
1207    ac_prev=sysconfdir ;;
1208  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210    sysconfdir=$ac_optarg ;;
1211
1212  -target | --target | --targe | --targ | --tar | --ta | --t)
1213    ac_prev=target_alias ;;
1214  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215    target_alias=$ac_optarg ;;
1216
1217  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218    verbose=yes ;;
1219
1220  -version | --version | --versio | --versi | --vers | -V)
1221    ac_init_version=: ;;
1222
1223  -with-* | --with-*)
1224    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225    # Reject names that are not valid shell variable names.
1226    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227      as_fn_error $? "invalid package name: $ac_useropt"
1228    ac_useropt_orig=$ac_useropt
1229    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230    case $ac_user_opts in
1231      *"
1232"with_$ac_useropt"
1233"*) ;;
1234      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235	 ac_unrecognized_sep=', ';;
1236    esac
1237    eval with_$ac_useropt=\$ac_optarg ;;
1238
1239  -without-* | --without-*)
1240    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241    # Reject names that are not valid shell variable names.
1242    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243      as_fn_error $? "invalid package name: $ac_useropt"
1244    ac_useropt_orig=$ac_useropt
1245    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246    case $ac_user_opts in
1247      *"
1248"with_$ac_useropt"
1249"*) ;;
1250      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251	 ac_unrecognized_sep=', ';;
1252    esac
1253    eval with_$ac_useropt=no ;;
1254
1255  --x)
1256    # Obsolete; use --with-x.
1257    with_x=yes ;;
1258
1259  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260  | --x-incl | --x-inc | --x-in | --x-i)
1261    ac_prev=x_includes ;;
1262  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264    x_includes=$ac_optarg ;;
1265
1266  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268    ac_prev=x_libraries ;;
1269  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271    x_libraries=$ac_optarg ;;
1272
1273  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274Try \`$0 --help' for more information"
1275    ;;
1276
1277  *=*)
1278    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279    # Reject names that are not valid shell variable names.
1280    case $ac_envvar in #(
1281      '' | [0-9]* | *[!_$as_cr_alnum]* )
1282      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283    esac
1284    eval $ac_envvar=\$ac_optarg
1285    export $ac_envvar ;;
1286
1287  *)
1288    # FIXME: should be removed in autoconf 3.0.
1289    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293    ;;
1294
1295  esac
1296done
1297
1298if test -n "$ac_prev"; then
1299  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300  as_fn_error $? "missing argument to $ac_option"
1301fi
1302
1303if test -n "$ac_unrecognized_opts"; then
1304  case $enable_option_checking in
1305    no) ;;
1306    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308  esac
1309fi
1310
1311# Check all directory arguments for consistency.
1312for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313		datadir sysconfdir sharedstatedir localstatedir includedir \
1314		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315		libdir localedir mandir
1316do
1317  eval ac_val=\$$ac_var
1318  # Remove trailing slashes.
1319  case $ac_val in
1320    */ )
1321      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322      eval $ac_var=\$ac_val;;
1323  esac
1324  # Be sure to have absolute directory names.
1325  case $ac_val in
1326    [\\/$]* | ?:[\\/]* )  continue;;
1327    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328  esac
1329  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330done
1331
1332# There might be people who depend on the old broken behavior: `$host'
1333# used to hold the argument of --host etc.
1334# FIXME: To remove some day.
1335build=$build_alias
1336host=$host_alias
1337target=$target_alias
1338
1339# FIXME: To remove some day.
1340if test "x$host_alias" != x; then
1341  if test "x$build_alias" = x; then
1342    cross_compiling=maybe
1343  elif test "x$build_alias" != "x$host_alias"; then
1344    cross_compiling=yes
1345  fi
1346fi
1347
1348ac_tool_prefix=
1349test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351test "$silent" = yes && exec 6>/dev/null
1352
1353
1354ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355ac_ls_di=`ls -di .` &&
1356ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357  as_fn_error $? "working directory cannot be determined"
1358test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359  as_fn_error $? "pwd does not report name of working directory"
1360
1361
1362# Find the source files, if location was not specified.
1363if test -z "$srcdir"; then
1364  ac_srcdir_defaulted=yes
1365  # Try the directory containing this script, then the parent directory.
1366  ac_confdir=`$as_dirname -- "$as_myself" ||
1367$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368	 X"$as_myself" : 'X\(//\)[^/]' \| \
1369	 X"$as_myself" : 'X\(//\)$' \| \
1370	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371$as_echo X"$as_myself" |
1372    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373	    s//\1/
1374	    q
1375	  }
1376	  /^X\(\/\/\)[^/].*/{
1377	    s//\1/
1378	    q
1379	  }
1380	  /^X\(\/\/\)$/{
1381	    s//\1/
1382	    q
1383	  }
1384	  /^X\(\/\).*/{
1385	    s//\1/
1386	    q
1387	  }
1388	  s/.*/./; q'`
1389  srcdir=$ac_confdir
1390  if test ! -r "$srcdir/$ac_unique_file"; then
1391    srcdir=..
1392  fi
1393else
1394  ac_srcdir_defaulted=no
1395fi
1396if test ! -r "$srcdir/$ac_unique_file"; then
1397  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399fi
1400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401ac_abs_confdir=`(
1402	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403	pwd)`
1404# When building in place, set srcdir=.
1405if test "$ac_abs_confdir" = "$ac_pwd"; then
1406  srcdir=.
1407fi
1408# Remove unnecessary trailing slashes from srcdir.
1409# Double slashes in file names in object file debugging info
1410# mess up M-x gdb in Emacs.
1411case $srcdir in
1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413esac
1414for ac_var in $ac_precious_vars; do
1415  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416  eval ac_env_${ac_var}_value=\$${ac_var}
1417  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419done
1420
1421#
1422# Report the --help message.
1423#
1424if test "$ac_init_help" = "long"; then
1425  # Omit some internal or obsolete options to make the list less imposing.
1426  # This message is too long to be a string in the A/UX 3.1 sh.
1427  cat <<_ACEOF
1428\`configure' configures ibus-libpinyin 1.11.1 to adapt to many kinds of systems.
1429
1430Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433VAR=VALUE.  See below for descriptions of some of the useful variables.
1434
1435Defaults for the options are specified in brackets.
1436
1437Configuration:
1438  -h, --help              display this help and exit
1439      --help=short        display options specific to this package
1440      --help=recursive    display the short help of all the included packages
1441  -V, --version           display version information and exit
1442  -q, --quiet, --silent   do not print \`checking ...' messages
1443      --cache-file=FILE   cache test results in FILE [disabled]
1444  -C, --config-cache      alias for \`--cache-file=config.cache'
1445  -n, --no-create         do not create output files
1446      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1447
1448Installation directories:
1449  --prefix=PREFIX         install architecture-independent files in PREFIX
1450                          [$ac_default_prefix]
1451  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1452                          [PREFIX]
1453
1454By default, \`make install' will install all the files in
1455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1456an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457for instance \`--prefix=\$HOME'.
1458
1459For better control, use the options below.
1460
1461Fine tuning of the installation directories:
1462  --bindir=DIR            user executables [EPREFIX/bin]
1463  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1464  --libexecdir=DIR        program executables [EPREFIX/libexec]
1465  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1466  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1467  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1468  --libdir=DIR            object code libraries [EPREFIX/lib]
1469  --includedir=DIR        C header files [PREFIX/include]
1470  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1471  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1472  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1473  --infodir=DIR           info documentation [DATAROOTDIR/info]
1474  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1475  --mandir=DIR            man documentation [DATAROOTDIR/man]
1476  --docdir=DIR            documentation root [DATAROOTDIR/doc/ibus-libpinyin]
1477  --htmldir=DIR           html documentation [DOCDIR]
1478  --dvidir=DIR            dvi documentation [DOCDIR]
1479  --pdfdir=DIR            pdf documentation [DOCDIR]
1480  --psdir=DIR             ps documentation [DOCDIR]
1481_ACEOF
1482
1483  cat <<\_ACEOF
1484
1485Program names:
1486  --program-prefix=PREFIX            prepend PREFIX to installed program names
1487  --program-suffix=SUFFIX            append SUFFIX to installed program names
1488  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1489
1490System types:
1491  --build=BUILD     configure for building on BUILD [guessed]
1492  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1493_ACEOF
1494fi
1495
1496if test -n "$ac_init_help"; then
1497  case $ac_init_help in
1498     short | recursive ) echo "Configuration of ibus-libpinyin 1.11.1:";;
1499   esac
1500  cat <<\_ACEOF
1501
1502Optional Features:
1503  --disable-option-checking  ignore unrecognized --enable/--with options
1504  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1505  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1506  --enable-silent-rules   less verbose build output (undo: "make V=1")
1507  --disable-silent-rules  verbose build output (undo: "make V=0")
1508  --enable-dependency-tracking
1509                          do not reject slow dependency extractors
1510  --disable-dependency-tracking
1511                          speeds up one-time build
1512  --enable-maintainer-mode
1513                          enable make rules and dependencies not useful (and
1514                          sometimes confusing) to the casual installer
1515  --enable-static[=PKGS]  build static libraries [default=no]
1516  --enable-shared[=PKGS]  build shared libraries [default=yes]
1517  --enable-fast-install[=PKGS]
1518                          optimize for fast installation [default=yes]
1519  --disable-libtool-lock  avoid locking (might break parallel builds)
1520  --enable-boost          Use boost to replace stdc++0x.
1521  --enable-opencc         Use opencc for simplified and traditional Chinese
1522                          conversion
1523  --disable-nls           do not use Native Language Support
1524  --disable-rpath         do not hardcode runtime library paths
1525  --disable-schemas-compile
1526                          Disable regeneration of gschemas.compiled on install
1527  --disable-lua-extension do not build lua extension
1528  --disable-english-input-mode
1529                          do not build english input mode
1530  --disable-stroke-input-mode
1531                          do not build stroke input mode
1532
1533Optional Packages:
1534  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1535  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1536  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1537                          both]
1538  --with-aix-soname=aix|svr4|both
1539                          shared library versioning (aka "SONAME") variant to
1540                          provide on AIX, [default=aix].
1541  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1542  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1543                          compiler's sysroot if not specified).
1544  --with-python=PATH      Select python2 or python3
1545  --with-boost=DIR        prefix of Boost 1.39 [guess]
1546  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1547  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1548  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1549  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1550  --without-libintl-prefix     don't search for libintl in includedir and libdir
1551
1552Some influential environment variables:
1553  CC          C compiler command
1554  CFLAGS      C compiler flags
1555  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1556              nonstandard directory <lib dir>
1557  LIBS        libraries to pass to the linker, e.g. -l<library>
1558  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559              you have headers in a nonstandard directory <include dir>
1560  CPP         C preprocessor
1561  CXX         C++ compiler command
1562  CXXFLAGS    C++ compiler flags
1563  LT_SYS_LIBRARY_PATH
1564              User-defined run-time library search path.
1565  CXXCPP      C++ preprocessor
1566  PKG_CONFIG  path to pkg-config utility
1567  PKG_CONFIG_PATH
1568              directories to add to pkg-config's search path
1569  PKG_CONFIG_LIBDIR
1570              path overriding pkg-config's built-in search path
1571  IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
1572  IBUS_LIBS   linker flags for IBUS, overriding pkg-config
1573  SQLITE_CFLAGS
1574              C compiler flags for SQLITE, overriding pkg-config
1575  SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1576  LIBPINYIN_CFLAGS
1577              C compiler flags for LIBPINYIN, overriding pkg-config
1578  LIBPINYIN_LIBS
1579              linker flags for LIBPINYIN, overriding pkg-config
1580  PYTHON      the Python interpreter
1581  BOOST_ROOT  Location of Boost installation
1582  OPENCC_CFLAGS
1583              C compiler flags for OPENCC, overriding pkg-config
1584  OPENCC_LIBS linker flags for OPENCC, overriding pkg-config
1585  GIO2_CFLAGS C compiler flags for GIO2, overriding pkg-config
1586  GIO2_LIBS   linker flags for GIO2, overriding pkg-config
1587  GLIB_COMPILE_SCHEMAS
1588              value of glib_compile_schemas for gio-2.0, overriding pkg-config
1589  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
1590  LUA_LIBS    linker flags for LUA, 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://github.com/libpinyin/ibus-libpinyin/issues/new>.
1596_ACEOF
1597ac_status=$?
1598fi
1599
1600if test "$ac_init_help" = "recursive"; then
1601  # If there are subdirs, report their specific --help.
1602  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603    test -d "$ac_dir" ||
1604      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605      continue
1606    ac_builddir=.
1607
1608case "$ac_dir" in
1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610*)
1611  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612  # A ".." for each directory in $ac_dir_suffix.
1613  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614  case $ac_top_builddir_sub in
1615  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617  esac ;;
1618esac
1619ac_abs_top_builddir=$ac_pwd
1620ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621# for backward compatibility:
1622ac_top_builddir=$ac_top_build_prefix
1623
1624case $srcdir in
1625  .)  # We are building in place.
1626    ac_srcdir=.
1627    ac_top_srcdir=$ac_top_builddir_sub
1628    ac_abs_top_srcdir=$ac_pwd ;;
1629  [\\/]* | ?:[\\/]* )  # Absolute name.
1630    ac_srcdir=$srcdir$ac_dir_suffix;
1631    ac_top_srcdir=$srcdir
1632    ac_abs_top_srcdir=$srcdir ;;
1633  *) # Relative name.
1634    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635    ac_top_srcdir=$ac_top_build_prefix$srcdir
1636    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637esac
1638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640    cd "$ac_dir" || { ac_status=$?; continue; }
1641    # Check for guested configure.
1642    if test -f "$ac_srcdir/configure.gnu"; then
1643      echo &&
1644      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645    elif test -f "$ac_srcdir/configure"; then
1646      echo &&
1647      $SHELL "$ac_srcdir/configure" --help=recursive
1648    else
1649      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650    fi || ac_status=$?
1651    cd "$ac_pwd" || { ac_status=$?; break; }
1652  done
1653fi
1654
1655test -n "$ac_init_help" && exit $ac_status
1656if $ac_init_version; then
1657  cat <<\_ACEOF
1658ibus-libpinyin configure 1.11.1
1659generated by GNU Autoconf 2.69
1660
1661Copyright (C) 2012 Free Software Foundation, Inc.
1662This configure script is free software; the Free Software Foundation
1663gives unlimited permission to copy, distribute and modify it.
1664_ACEOF
1665  exit
1666fi
1667
1668## ------------------------ ##
1669## Autoconf initialization. ##
1670## ------------------------ ##
1671
1672# ac_fn_c_try_compile LINENO
1673# --------------------------
1674# Try to compile conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_compile ()
1676{
1677  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678  rm -f conftest.$ac_objext
1679  if { { ac_try="$ac_compile"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_compile") 2>conftest.err
1687  ac_status=$?
1688  if test -s conftest.err; then
1689    grep -v '^ *+' conftest.err >conftest.er1
1690    cat conftest.er1 >&5
1691    mv -f conftest.er1 conftest.err
1692  fi
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } && {
1695	 test -z "$ac_c_werror_flag" ||
1696	 test ! -s conftest.err
1697       } && test -s conftest.$ac_objext; then :
1698  ac_retval=0
1699else
1700  $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703	ac_retval=1
1704fi
1705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706  as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_compile
1709
1710# ac_fn_c_try_cpp LINENO
1711# ----------------------
1712# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713ac_fn_c_try_cpp ()
1714{
1715  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716  if { { ac_try="$ac_cpp conftest.$ac_ext"
1717case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724  ac_status=$?
1725  if test -s conftest.err; then
1726    grep -v '^ *+' conftest.err >conftest.er1
1727    cat conftest.er1 >&5
1728    mv -f conftest.er1 conftest.err
1729  fi
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } > conftest.i && {
1732	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733	 test ! -s conftest.err
1734       }; then :
1735  ac_retval=0
1736else
1737  $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
1739
1740    ac_retval=1
1741fi
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743  as_fn_set_status $ac_retval
1744
1745} # ac_fn_c_try_cpp
1746
1747# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1748# -------------------------------------------------------
1749# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1750# the include files in INCLUDES and setting the cache variable VAR
1751# accordingly.
1752ac_fn_c_check_header_mongrel ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  if eval \${$3+:} false; then :
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval \${$3+:} false; then :
1759  $as_echo_n "(cached) " >&6
1760fi
1761eval ac_res=\$$3
1762	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763$as_echo "$ac_res" >&6; }
1764else
1765  # Is the header compilable?
1766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1767$as_echo_n "checking $2 usability... " >&6; }
1768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h.  */
1770$4
1771#include <$2>
1772_ACEOF
1773if ac_fn_c_try_compile "$LINENO"; then :
1774  ac_header_compiler=yes
1775else
1776  ac_header_compiler=no
1777fi
1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1780$as_echo "$ac_header_compiler" >&6; }
1781
1782# Is the header present?
1783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1784$as_echo_n "checking $2 presence... " >&6; }
1785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h.  */
1787#include <$2>
1788_ACEOF
1789if ac_fn_c_try_cpp "$LINENO"; then :
1790  ac_header_preproc=yes
1791else
1792  ac_header_preproc=no
1793fi
1794rm -f conftest.err conftest.i conftest.$ac_ext
1795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1796$as_echo "$ac_header_preproc" >&6; }
1797
1798# So?  What about this header?
1799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1800  yes:no: )
1801    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1802$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1803    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805    ;;
1806  no:yes:* )
1807    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1808$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1809    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1810$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1811    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1812$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1813    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1814$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1815    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817( $as_echo "## --------------------------------------------------------------------- ##
1818## Report this to https://github.com/libpinyin/ibus-libpinyin/issues/new ##
1819## --------------------------------------------------------------------- ##"
1820     ) | sed "s/^/$as_me: WARNING:     /" >&2
1821    ;;
1822esac
1823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
1825if eval \${$3+:} false; then :
1826  $as_echo_n "(cached) " >&6
1827else
1828  eval "$3=\$ac_header_compiler"
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833fi
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836} # ac_fn_c_check_header_mongrel
1837
1838# ac_fn_c_try_run LINENO
1839# ----------------------
1840# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841# that executables *can* be run.
1842ac_fn_c_try_run ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  if { { ac_try="$ac_link"
1846case "(($ac_try" in
1847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848  *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852  (eval "$ac_link") 2>&5
1853  ac_status=$?
1854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856  { { case "(($ac_try" in
1857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858  *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862  (eval "$ac_try") 2>&5
1863  ac_status=$?
1864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865  test $ac_status = 0; }; }; then :
1866  ac_retval=0
1867else
1868  $as_echo "$as_me: program exited with status $ac_status" >&5
1869       $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872       ac_retval=$ac_status
1873fi
1874  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876  as_fn_set_status $ac_retval
1877
1878} # ac_fn_c_try_run
1879
1880# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1881# -------------------------------------------------------
1882# Tests whether HEADER exists and can be compiled using the include files in
1883# INCLUDES, setting the cache variable VAR accordingly.
1884ac_fn_c_check_header_compile ()
1885{
1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if eval \${$3+:} false; then :
1890  $as_echo_n "(cached) " >&6
1891else
1892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h.  */
1894$4
1895#include <$2>
1896_ACEOF
1897if ac_fn_c_try_compile "$LINENO"; then :
1898  eval "$3=yes"
1899else
1900  eval "$3=no"
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903fi
1904eval ac_res=\$$3
1905	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
1907  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909} # ac_fn_c_check_header_compile
1910
1911# ac_fn_cxx_try_compile LINENO
1912# ----------------------------
1913# Try to compile conftest.$ac_ext, and return whether this succeeded.
1914ac_fn_cxx_try_compile ()
1915{
1916  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917  rm -f conftest.$ac_objext
1918  if { { ac_try="$ac_compile"
1919case "(($ac_try" in
1920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921  *) ac_try_echo=$ac_try;;
1922esac
1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924$as_echo "$ac_try_echo"; } >&5
1925  (eval "$ac_compile") 2>conftest.err
1926  ac_status=$?
1927  if test -s conftest.err; then
1928    grep -v '^ *+' conftest.err >conftest.er1
1929    cat conftest.er1 >&5
1930    mv -f conftest.er1 conftest.err
1931  fi
1932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933  test $ac_status = 0; } && {
1934	 test -z "$ac_cxx_werror_flag" ||
1935	 test ! -s conftest.err
1936       } && test -s conftest.$ac_objext; then :
1937  ac_retval=0
1938else
1939  $as_echo "$as_me: failed program was:" >&5
1940sed 's/^/| /' conftest.$ac_ext >&5
1941
1942	ac_retval=1
1943fi
1944  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945  as_fn_set_status $ac_retval
1946
1947} # ac_fn_cxx_try_compile
1948
1949# ac_fn_c_try_link LINENO
1950# -----------------------
1951# Try to link conftest.$ac_ext, and return whether this succeeded.
1952ac_fn_c_try_link ()
1953{
1954  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955  rm -f conftest.$ac_objext conftest$ac_exeext
1956  if { { ac_try="$ac_link"
1957case "(($ac_try" in
1958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959  *) ac_try_echo=$ac_try;;
1960esac
1961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962$as_echo "$ac_try_echo"; } >&5
1963  (eval "$ac_link") 2>conftest.err
1964  ac_status=$?
1965  if test -s conftest.err; then
1966    grep -v '^ *+' conftest.err >conftest.er1
1967    cat conftest.er1 >&5
1968    mv -f conftest.er1 conftest.err
1969  fi
1970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971  test $ac_status = 0; } && {
1972	 test -z "$ac_c_werror_flag" ||
1973	 test ! -s conftest.err
1974       } && test -s conftest$ac_exeext && {
1975	 test "$cross_compiling" = yes ||
1976	 test -x conftest$ac_exeext
1977       }; then :
1978  ac_retval=0
1979else
1980  $as_echo "$as_me: failed program was:" >&5
1981sed 's/^/| /' conftest.$ac_ext >&5
1982
1983	ac_retval=1
1984fi
1985  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1986  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1987  # interfere with the next link command; also delete a directory that is
1988  # left behind by Apple's compiler.  We do this before executing the actions.
1989  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1990  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991  as_fn_set_status $ac_retval
1992
1993} # ac_fn_c_try_link
1994
1995# ac_fn_c_check_func LINENO FUNC VAR
1996# ----------------------------------
1997# Tests whether FUNC exists, setting the cache variable VAR accordingly
1998ac_fn_c_check_func ()
1999{
2000  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
2003if eval \${$3+:} false; then :
2004  $as_echo_n "(cached) " >&6
2005else
2006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h.  */
2008/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2009   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2010#define $2 innocuous_$2
2011
2012/* System header to define __stub macros and hopefully few prototypes,
2013    which can conflict with char $2 (); below.
2014    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2015    <limits.h> exists even on freestanding compilers.  */
2016
2017#ifdef __STDC__
2018# include <limits.h>
2019#else
2020# include <assert.h>
2021#endif
2022
2023#undef $2
2024
2025/* Override any GCC internal prototype to avoid an error.
2026   Use char because int might match the return type of a GCC
2027   builtin and then its argument prototype would still apply.  */
2028#ifdef __cplusplus
2029extern "C"
2030#endif
2031char $2 ();
2032/* The GNU C library defines this for functions which it implements
2033    to always fail with ENOSYS.  Some functions are actually named
2034    something starting with __ and the normal name is an alias.  */
2035#if defined __stub_$2 || defined __stub___$2
2036choke me
2037#endif
2038
2039int
2040main ()
2041{
2042return $2 ();
2043  ;
2044  return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_link "$LINENO"; then :
2048  eval "$3=yes"
2049else
2050  eval "$3=no"
2051fi
2052rm -f core conftest.err conftest.$ac_objext \
2053    conftest$ac_exeext conftest.$ac_ext
2054fi
2055eval ac_res=\$$3
2056	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060} # ac_fn_c_check_func
2061
2062# ac_fn_cxx_try_cpp LINENO
2063# ------------------------
2064# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2065ac_fn_cxx_try_cpp ()
2066{
2067  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068  if { { ac_try="$ac_cpp conftest.$ac_ext"
2069case "(($ac_try" in
2070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071  *) ac_try_echo=$ac_try;;
2072esac
2073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074$as_echo "$ac_try_echo"; } >&5
2075  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2076  ac_status=$?
2077  if test -s conftest.err; then
2078    grep -v '^ *+' conftest.err >conftest.er1
2079    cat conftest.er1 >&5
2080    mv -f conftest.er1 conftest.err
2081  fi
2082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083  test $ac_status = 0; } > conftest.i && {
2084	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2085	 test ! -s conftest.err
2086       }; then :
2087  ac_retval=0
2088else
2089  $as_echo "$as_me: failed program was:" >&5
2090sed 's/^/| /' conftest.$ac_ext >&5
2091
2092    ac_retval=1
2093fi
2094  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095  as_fn_set_status $ac_retval
2096
2097} # ac_fn_cxx_try_cpp
2098
2099# ac_fn_cxx_try_link LINENO
2100# -------------------------
2101# Try to link conftest.$ac_ext, and return whether this succeeded.
2102ac_fn_cxx_try_link ()
2103{
2104  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105  rm -f conftest.$ac_objext conftest$ac_exeext
2106  if { { ac_try="$ac_link"
2107case "(($ac_try" in
2108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109  *) ac_try_echo=$ac_try;;
2110esac
2111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2112$as_echo "$ac_try_echo"; } >&5
2113  (eval "$ac_link") 2>conftest.err
2114  ac_status=$?
2115  if test -s conftest.err; then
2116    grep -v '^ *+' conftest.err >conftest.er1
2117    cat conftest.er1 >&5
2118    mv -f conftest.er1 conftest.err
2119  fi
2120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2121  test $ac_status = 0; } && {
2122	 test -z "$ac_cxx_werror_flag" ||
2123	 test ! -s conftest.err
2124       } && test -s conftest$ac_exeext && {
2125	 test "$cross_compiling" = yes ||
2126	 test -x conftest$ac_exeext
2127       }; then :
2128  ac_retval=0
2129else
2130  $as_echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
2133	ac_retval=1
2134fi
2135  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2136  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2137  # interfere with the next link command; also delete a directory that is
2138  # left behind by Apple's compiler.  We do this before executing the actions.
2139  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2140  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141  as_fn_set_status $ac_retval
2142
2143} # ac_fn_cxx_try_link
2144
2145# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2146# ---------------------------------------------------------
2147# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2148# the include files in INCLUDES and setting the cache variable VAR
2149# accordingly.
2150ac_fn_cxx_check_header_mongrel ()
2151{
2152  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153  if eval \${$3+:} false; then :
2154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155$as_echo_n "checking for $2... " >&6; }
2156if eval \${$3+:} false; then :
2157  $as_echo_n "(cached) " >&6
2158fi
2159eval ac_res=\$$3
2160	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161$as_echo "$ac_res" >&6; }
2162else
2163  # Is the header compilable?
2164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2165$as_echo_n "checking $2 usability... " >&6; }
2166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h.  */
2168$4
2169#include <$2>
2170_ACEOF
2171if ac_fn_cxx_try_compile "$LINENO"; then :
2172  ac_header_compiler=yes
2173else
2174  ac_header_compiler=no
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2178$as_echo "$ac_header_compiler" >&6; }
2179
2180# Is the header present?
2181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2182$as_echo_n "checking $2 presence... " >&6; }
2183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h.  */
2185#include <$2>
2186_ACEOF
2187if ac_fn_cxx_try_cpp "$LINENO"; then :
2188  ac_header_preproc=yes
2189else
2190  ac_header_preproc=no
2191fi
2192rm -f conftest.err conftest.i conftest.$ac_ext
2193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2194$as_echo "$ac_header_preproc" >&6; }
2195
2196# So?  What about this header?
2197case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2198  yes:no: )
2199    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2200$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2201    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2202$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2203    ;;
2204  no:yes:* )
2205    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2206$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2207    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2208$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2209    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2210$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2211    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2212$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2213    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2214$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2215( $as_echo "## --------------------------------------------------------------------- ##
2216## Report this to https://github.com/libpinyin/ibus-libpinyin/issues/new ##
2217## --------------------------------------------------------------------- ##"
2218     ) | sed "s/^/$as_me: WARNING:     /" >&2
2219    ;;
2220esac
2221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222$as_echo_n "checking for $2... " >&6; }
2223if eval \${$3+:} false; then :
2224  $as_echo_n "(cached) " >&6
2225else
2226  eval "$3=\$ac_header_compiler"
2227fi
2228eval ac_res=\$$3
2229	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230$as_echo "$ac_res" >&6; }
2231fi
2232  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233
2234} # ac_fn_cxx_check_header_mongrel
2235cat >config.log <<_ACEOF
2236This file contains any messages produced by compilers while
2237running configure, to aid debugging if configure makes a mistake.
2238
2239It was created by ibus-libpinyin $as_me 1.11.1, which was
2240generated by GNU Autoconf 2.69.  Invocation command line was
2241
2242  $ $0 $@
2243
2244_ACEOF
2245exec 5>>config.log
2246{
2247cat <<_ASUNAME
2248## --------- ##
2249## Platform. ##
2250## --------- ##
2251
2252hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2253uname -m = `(uname -m) 2>/dev/null || echo unknown`
2254uname -r = `(uname -r) 2>/dev/null || echo unknown`
2255uname -s = `(uname -s) 2>/dev/null || echo unknown`
2256uname -v = `(uname -v) 2>/dev/null || echo unknown`
2257
2258/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2259/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2260
2261/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2262/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2263/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2264/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2265/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2266/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2267/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2268
2269_ASUNAME
2270
2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272for as_dir in $PATH
2273do
2274  IFS=$as_save_IFS
2275  test -z "$as_dir" && as_dir=.
2276    $as_echo "PATH: $as_dir"
2277  done
2278IFS=$as_save_IFS
2279
2280} >&5
2281
2282cat >&5 <<_ACEOF
2283
2284
2285## ----------- ##
2286## Core tests. ##
2287## ----------- ##
2288
2289_ACEOF
2290
2291
2292# Keep a trace of the command line.
2293# Strip out --no-create and --no-recursion so they do not pile up.
2294# Strip out --silent because we don't want to record it for future runs.
2295# Also quote any args containing shell meta-characters.
2296# Make two passes to allow for proper duplicate-argument suppression.
2297ac_configure_args=
2298ac_configure_args0=
2299ac_configure_args1=
2300ac_must_keep_next=false
2301for ac_pass in 1 2
2302do
2303  for ac_arg
2304  do
2305    case $ac_arg in
2306    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2307    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2308    | -silent | --silent | --silen | --sile | --sil)
2309      continue ;;
2310    *\'*)
2311      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2312    esac
2313    case $ac_pass in
2314    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2315    2)
2316      as_fn_append ac_configure_args1 " '$ac_arg'"
2317      if test $ac_must_keep_next = true; then
2318	ac_must_keep_next=false # Got value, back to normal.
2319      else
2320	case $ac_arg in
2321	  *=* | --config-cache | -C | -disable-* | --disable-* \
2322	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2323	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2324	  | -with-* | --with-* | -without-* | --without-* | --x)
2325	    case "$ac_configure_args0 " in
2326	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2327	    esac
2328	    ;;
2329	  -* ) ac_must_keep_next=true ;;
2330	esac
2331      fi
2332      as_fn_append ac_configure_args " '$ac_arg'"
2333      ;;
2334    esac
2335  done
2336done
2337{ ac_configure_args0=; unset ac_configure_args0;}
2338{ ac_configure_args1=; unset ac_configure_args1;}
2339
2340# When interrupted or exit'd, cleanup temporary files, and complete
2341# config.log.  We remove comments because anyway the quotes in there
2342# would cause problems or look ugly.
2343# WARNING: Use '\'' to represent an apostrophe within the trap.
2344# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2345trap 'exit_status=$?
2346  # Save into config.log some information that might help in debugging.
2347  {
2348    echo
2349
2350    $as_echo "## ---------------- ##
2351## Cache variables. ##
2352## ---------------- ##"
2353    echo
2354    # The following way of writing the cache mishandles newlines in values,
2355(
2356  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2357    eval ac_val=\$$ac_var
2358    case $ac_val in #(
2359    *${as_nl}*)
2360      case $ac_var in #(
2361      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2362$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2363      esac
2364      case $ac_var in #(
2365      _ | IFS | as_nl) ;; #(
2366      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2367      *) { eval $ac_var=; unset $ac_var;} ;;
2368      esac ;;
2369    esac
2370  done
2371  (set) 2>&1 |
2372    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2373    *${as_nl}ac_space=\ *)
2374      sed -n \
2375	"s/'\''/'\''\\\\'\'''\''/g;
2376	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2377      ;; #(
2378    *)
2379      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2380      ;;
2381    esac |
2382    sort
2383)
2384    echo
2385
2386    $as_echo "## ----------------- ##
2387## Output variables. ##
2388## ----------------- ##"
2389    echo
2390    for ac_var in $ac_subst_vars
2391    do
2392      eval ac_val=\$$ac_var
2393      case $ac_val in
2394      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395      esac
2396      $as_echo "$ac_var='\''$ac_val'\''"
2397    done | sort
2398    echo
2399
2400    if test -n "$ac_subst_files"; then
2401      $as_echo "## ------------------- ##
2402## File substitutions. ##
2403## ------------------- ##"
2404      echo
2405      for ac_var in $ac_subst_files
2406      do
2407	eval ac_val=\$$ac_var
2408	case $ac_val in
2409	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410	esac
2411	$as_echo "$ac_var='\''$ac_val'\''"
2412      done | sort
2413      echo
2414    fi
2415
2416    if test -s confdefs.h; then
2417      $as_echo "## ----------- ##
2418## confdefs.h. ##
2419## ----------- ##"
2420      echo
2421      cat confdefs.h
2422      echo
2423    fi
2424    test "$ac_signal" != 0 &&
2425      $as_echo "$as_me: caught signal $ac_signal"
2426    $as_echo "$as_me: exit $exit_status"
2427  } >&5
2428  rm -f core *.core core.conftest.* &&
2429    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2430    exit $exit_status
2431' 0
2432for ac_signal in 1 2 13 15; do
2433  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2434done
2435ac_signal=0
2436
2437# confdefs.h avoids OS command line length limits that DEFS can exceed.
2438rm -f -r conftest* confdefs.h
2439
2440$as_echo "/* confdefs.h */" > confdefs.h
2441
2442# Predefined preprocessor variables.
2443
2444cat >>confdefs.h <<_ACEOF
2445#define PACKAGE_NAME "$PACKAGE_NAME"
2446_ACEOF
2447
2448cat >>confdefs.h <<_ACEOF
2449#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2450_ACEOF
2451
2452cat >>confdefs.h <<_ACEOF
2453#define PACKAGE_VERSION "$PACKAGE_VERSION"
2454_ACEOF
2455
2456cat >>confdefs.h <<_ACEOF
2457#define PACKAGE_STRING "$PACKAGE_STRING"
2458_ACEOF
2459
2460cat >>confdefs.h <<_ACEOF
2461#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2462_ACEOF
2463
2464cat >>confdefs.h <<_ACEOF
2465#define PACKAGE_URL "$PACKAGE_URL"
2466_ACEOF
2467
2468
2469# Let the site file select an alternate cache file if it wants to.
2470# Prefer an explicitly selected file to automatically selected ones.
2471ac_site_file1=NONE
2472ac_site_file2=NONE
2473if test -n "$CONFIG_SITE"; then
2474  # We do not want a PATH search for config.site.
2475  case $CONFIG_SITE in #((
2476    -*)  ac_site_file1=./$CONFIG_SITE;;
2477    */*) ac_site_file1=$CONFIG_SITE;;
2478    *)   ac_site_file1=./$CONFIG_SITE;;
2479  esac
2480elif test "x$prefix" != xNONE; then
2481  ac_site_file1=$prefix/share/config.site
2482  ac_site_file2=$prefix/etc/config.site
2483else
2484  ac_site_file1=$ac_default_prefix/share/config.site
2485  ac_site_file2=$ac_default_prefix/etc/config.site
2486fi
2487for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2488do
2489  test "x$ac_site_file" = xNONE && continue
2490  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2491    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2492$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2493    sed 's/^/| /' "$ac_site_file" >&5
2494    . "$ac_site_file" \
2495      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497as_fn_error $? "failed to load site script $ac_site_file
2498See \`config.log' for more details" "$LINENO" 5; }
2499  fi
2500done
2501
2502if test -r "$cache_file"; then
2503  # Some versions of bash will fail to source /dev/null (special files
2504  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2505  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2506    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2507$as_echo "$as_me: loading cache $cache_file" >&6;}
2508    case $cache_file in
2509      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2510      *)                      . "./$cache_file";;
2511    esac
2512  fi
2513else
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2515$as_echo "$as_me: creating cache $cache_file" >&6;}
2516  >$cache_file
2517fi
2518
2519gt_needs="$gt_needs "
2520# Check that the precious variables saved in the cache have kept the same
2521# value.
2522ac_cache_corrupted=false
2523for ac_var in $ac_precious_vars; do
2524  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2525  eval ac_new_set=\$ac_env_${ac_var}_set
2526  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2527  eval ac_new_val=\$ac_env_${ac_var}_value
2528  case $ac_old_set,$ac_new_set in
2529    set,)
2530      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2531$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2532      ac_cache_corrupted=: ;;
2533    ,set)
2534      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2535$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2536      ac_cache_corrupted=: ;;
2537    ,);;
2538    *)
2539      if test "x$ac_old_val" != "x$ac_new_val"; then
2540	# differences in whitespace do not lead to failure.
2541	ac_old_val_w=`echo x $ac_old_val`
2542	ac_new_val_w=`echo x $ac_new_val`
2543	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2544	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2545$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2546	  ac_cache_corrupted=:
2547	else
2548	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2549$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2550	  eval $ac_var=\$ac_old_val
2551	fi
2552	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2553$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2554	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2555$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2556      fi;;
2557  esac
2558  # Pass precious variables to config.status.
2559  if test "$ac_new_set" = set; then
2560    case $ac_new_val in
2561    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2562    *) ac_arg=$ac_var=$ac_new_val ;;
2563    esac
2564    case " $ac_configure_args " in
2565      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2566      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2567    esac
2568  fi
2569done
2570if $ac_cache_corrupted; then
2571  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2574$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2575  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2576fi
2577## -------------------- ##
2578## Main body of script. ##
2579## -------------------- ##
2580
2581ac_ext=c
2582ac_cpp='$CPP $CPPFLAGS'
2583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586
2587
2588am__api_version='1.16'
2589
2590ac_aux_dir=
2591for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2592  if test -f "$ac_dir/install-sh"; then
2593    ac_aux_dir=$ac_dir
2594    ac_install_sh="$ac_aux_dir/install-sh -c"
2595    break
2596  elif test -f "$ac_dir/install.sh"; then
2597    ac_aux_dir=$ac_dir
2598    ac_install_sh="$ac_aux_dir/install.sh -c"
2599    break
2600  elif test -f "$ac_dir/shtool"; then
2601    ac_aux_dir=$ac_dir
2602    ac_install_sh="$ac_aux_dir/shtool install -c"
2603    break
2604  fi
2605done
2606if test -z "$ac_aux_dir"; then
2607  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2608fi
2609
2610# These three variables are undocumented and unsupported,
2611# and are intended to be withdrawn in a future Autoconf release.
2612# They can cause serious problems if a builder's source tree is in a directory
2613# whose full name contains unusual characters.
2614ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2615ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2616ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2617
2618
2619# Find a good install program.  We prefer a C program (faster),
2620# so one script is as good as another.  But avoid the broken or
2621# incompatible versions:
2622# SysV /etc/install, /usr/sbin/install
2623# SunOS /usr/etc/install
2624# IRIX /sbin/install
2625# AIX /bin/install
2626# AmigaOS /C/install, which installs bootblocks on floppy discs
2627# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2628# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2629# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2630# OS/2's system install, which has a completely different semantic
2631# ./install, which can be erroneously created by make from ./install.sh.
2632# Reject install programs that cannot install multiple files.
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2634$as_echo_n "checking for a BSD-compatible install... " >&6; }
2635if test -z "$INSTALL"; then
2636if ${ac_cv_path_install+:} false; then :
2637  $as_echo_n "(cached) " >&6
2638else
2639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642  IFS=$as_save_IFS
2643  test -z "$as_dir" && as_dir=.
2644    # Account for people who put trailing slashes in PATH elements.
2645case $as_dir/ in #((
2646  ./ | .// | /[cC]/* | \
2647  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2648  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2649  /usr/ucb/* ) ;;
2650  *)
2651    # OSF1 and SCO ODT 3.0 have their own names for install.
2652    # Don't use installbsd from OSF since it installs stuff as root
2653    # by default.
2654    for ac_prog in ginstall scoinst install; do
2655      for ac_exec_ext in '' $ac_executable_extensions; do
2656	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2657	  if test $ac_prog = install &&
2658	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2659	    # AIX install.  It has an incompatible calling convention.
2660	    :
2661	  elif test $ac_prog = install &&
2662	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663	    # program-specific install script used by HP pwplus--don't use.
2664	    :
2665	  else
2666	    rm -rf conftest.one conftest.two conftest.dir
2667	    echo one > conftest.one
2668	    echo two > conftest.two
2669	    mkdir conftest.dir
2670	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2671	      test -s conftest.one && test -s conftest.two &&
2672	      test -s conftest.dir/conftest.one &&
2673	      test -s conftest.dir/conftest.two
2674	    then
2675	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2676	      break 3
2677	    fi
2678	  fi
2679	fi
2680      done
2681    done
2682    ;;
2683esac
2684
2685  done
2686IFS=$as_save_IFS
2687
2688rm -rf conftest.one conftest.two conftest.dir
2689
2690fi
2691  if test "${ac_cv_path_install+set}" = set; then
2692    INSTALL=$ac_cv_path_install
2693  else
2694    # As a last resort, use the slow shell script.  Don't cache a
2695    # value for INSTALL within a source directory, because that will
2696    # break other packages using the cache if that directory is
2697    # removed, or if the value is a relative name.
2698    INSTALL=$ac_install_sh
2699  fi
2700fi
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2702$as_echo "$INSTALL" >&6; }
2703
2704# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2705# It thinks the first close brace ends the variable substitution.
2706test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2707
2708test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2709
2710test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2711
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2713$as_echo_n "checking whether build environment is sane... " >&6; }
2714# Reject unsafe characters in $srcdir or the absolute working directory
2715# name.  Accept space and tab only in the latter.
2716am_lf='
2717'
2718case `pwd` in
2719  *[\\\"\#\$\&\'\`$am_lf]*)
2720    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2721esac
2722case $srcdir in
2723  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2724    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2725esac
2726
2727# Do 'set' in a subshell so we don't clobber the current shell's
2728# arguments.  Must try -L first in case configure is actually a
2729# symlink; some systems play weird games with the mod time of symlinks
2730# (eg FreeBSD returns the mod time of the symlink's containing
2731# directory).
2732if (
2733   am_has_slept=no
2734   for am_try in 1 2; do
2735     echo "timestamp, slept: $am_has_slept" > conftest.file
2736     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2737     if test "$*" = "X"; then
2738	# -L didn't work.
2739	set X `ls -t "$srcdir/configure" conftest.file`
2740     fi
2741     if test "$*" != "X $srcdir/configure conftest.file" \
2742	&& test "$*" != "X conftest.file $srcdir/configure"; then
2743
2744	# If neither matched, then we have a broken ls.  This can happen
2745	# if, for instance, CONFIG_SHELL is bash and it inherits a
2746	# broken ls alias from the environment.  This has actually
2747	# happened.  Such a system could not be considered "sane".
2748	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2749  alias in your environment" "$LINENO" 5
2750     fi
2751     if test "$2" = conftest.file || test $am_try -eq 2; then
2752       break
2753     fi
2754     # Just in case.
2755     sleep 1
2756     am_has_slept=yes
2757   done
2758   test "$2" = conftest.file
2759   )
2760then
2761   # Ok.
2762   :
2763else
2764   as_fn_error $? "newly created file is older than distributed files!
2765Check your system clock" "$LINENO" 5
2766fi
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768$as_echo "yes" >&6; }
2769# If we didn't sleep, we still need to ensure time stamps of config.status and
2770# generated files are strictly newer.
2771am_sleep_pid=
2772if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2773  ( sleep 1 ) &
2774  am_sleep_pid=$!
2775fi
2776
2777rm -f conftest.file
2778
2779test "$program_prefix" != NONE &&
2780  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2781# Use a double $ so make ignores it.
2782test "$program_suffix" != NONE &&
2783  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2784# Double any \ or $.
2785# By default was `s,x,x', remove it if useless.
2786ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2787program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2788
2789# Expand $ac_aux_dir to an absolute path.
2790am_aux_dir=`cd "$ac_aux_dir" && pwd`
2791
2792if test x"${MISSING+set}" != xset; then
2793  case $am_aux_dir in
2794  *\ * | *\	*)
2795    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2796  *)
2797    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2798  esac
2799fi
2800# Use eval to expand $SHELL
2801if eval "$MISSING --is-lightweight"; then
2802  am_missing_run="$MISSING "
2803else
2804  am_missing_run=
2805  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2806$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2807fi
2808
2809if test x"${install_sh+set}" != xset; then
2810  case $am_aux_dir in
2811  *\ * | *\	*)
2812    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2813  *)
2814    install_sh="\${SHELL} $am_aux_dir/install-sh"
2815  esac
2816fi
2817
2818# Installed binaries are usually stripped using 'strip' when the user
2819# run "make install-strip".  However 'strip' might not be the right
2820# tool to use in cross-compilation environments, therefore Automake
2821# will honor the 'STRIP' environment variable to overrule this program.
2822if test "$cross_compiling" != no; then
2823  if test -n "$ac_tool_prefix"; then
2824  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2825set dummy ${ac_tool_prefix}strip; ac_word=$2
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827$as_echo_n "checking for $ac_word... " >&6; }
2828if ${ac_cv_prog_STRIP+:} false; then :
2829  $as_echo_n "(cached) " >&6
2830else
2831  if test -n "$STRIP"; then
2832  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837  IFS=$as_save_IFS
2838  test -z "$as_dir" && as_dir=.
2839    for ac_exec_ext in '' $ac_executable_extensions; do
2840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843    break 2
2844  fi
2845done
2846  done
2847IFS=$as_save_IFS
2848
2849fi
2850fi
2851STRIP=$ac_cv_prog_STRIP
2852if test -n "$STRIP"; then
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2854$as_echo "$STRIP" >&6; }
2855else
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
2858fi
2859
2860
2861fi
2862if test -z "$ac_cv_prog_STRIP"; then
2863  ac_ct_STRIP=$STRIP
2864  # Extract the first word of "strip", so it can be a program name with args.
2865set dummy strip; ac_word=$2
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867$as_echo_n "checking for $ac_word... " >&6; }
2868if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2869  $as_echo_n "(cached) " >&6
2870else
2871  if test -n "$ac_ct_STRIP"; then
2872  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2873else
2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877  IFS=$as_save_IFS
2878  test -z "$as_dir" && as_dir=.
2879    for ac_exec_ext in '' $ac_executable_extensions; do
2880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881    ac_cv_prog_ac_ct_STRIP="strip"
2882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883    break 2
2884  fi
2885done
2886  done
2887IFS=$as_save_IFS
2888
2889fi
2890fi
2891ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2892if test -n "$ac_ct_STRIP"; then
2893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2894$as_echo "$ac_ct_STRIP" >&6; }
2895else
2896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897$as_echo "no" >&6; }
2898fi
2899
2900  if test "x$ac_ct_STRIP" = x; then
2901    STRIP=":"
2902  else
2903    case $cross_compiling:$ac_tool_warned in
2904yes:)
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2907ac_tool_warned=yes ;;
2908esac
2909    STRIP=$ac_ct_STRIP
2910  fi
2911else
2912  STRIP="$ac_cv_prog_STRIP"
2913fi
2914
2915fi
2916INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2917
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2919$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2920if test -z "$MKDIR_P"; then
2921  if ${ac_cv_path_mkdir+:} false; then :
2922  $as_echo_n "(cached) " >&6
2923else
2924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2926do
2927  IFS=$as_save_IFS
2928  test -z "$as_dir" && as_dir=.
2929    for ac_prog in mkdir gmkdir; do
2930	 for ac_exec_ext in '' $ac_executable_extensions; do
2931	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2932	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2933	     'mkdir (GNU coreutils) '* | \
2934	     'mkdir (coreutils) '* | \
2935	     'mkdir (fileutils) '4.1*)
2936	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2937	       break 3;;
2938	   esac
2939	 done
2940       done
2941  done
2942IFS=$as_save_IFS
2943
2944fi
2945
2946  test -d ./--version && rmdir ./--version
2947  if test "${ac_cv_path_mkdir+set}" = set; then
2948    MKDIR_P="$ac_cv_path_mkdir -p"
2949  else
2950    # As a last resort, use the slow shell script.  Don't cache a
2951    # value for MKDIR_P within a source directory, because that will
2952    # break other packages using the cache if that directory is
2953    # removed, or if the value is a relative name.
2954    MKDIR_P="$ac_install_sh -d"
2955  fi
2956fi
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2958$as_echo "$MKDIR_P" >&6; }
2959
2960for ac_prog in gawk mawk nawk awk
2961do
2962  # Extract the first word of "$ac_prog", so it can be a program name with args.
2963set dummy $ac_prog; ac_word=$2
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if ${ac_cv_prog_AWK+:} false; then :
2967  $as_echo_n "(cached) " >&6
2968else
2969  if test -n "$AWK"; then
2970  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977    for ac_exec_ext in '' $ac_executable_extensions; do
2978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979    ac_cv_prog_AWK="$ac_prog"
2980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984  done
2985IFS=$as_save_IFS
2986
2987fi
2988fi
2989AWK=$ac_cv_prog_AWK
2990if test -n "$AWK"; then
2991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2992$as_echo "$AWK" >&6; }
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996fi
2997
2998
2999  test -n "$AWK" && break
3000done
3001
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3003$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3004set x ${MAKE-make}
3005ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3006if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  cat >conftest.make <<\_ACEOF
3010SHELL = /bin/sh
3011all:
3012	@echo '@@@%%%=$(MAKE)=@@@%%%'
3013_ACEOF
3014# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3015case `${MAKE-make} -f conftest.make 2>/dev/null` in
3016  *@@@%%%=?*=@@@%%%*)
3017    eval ac_cv_prog_make_${ac_make}_set=yes;;
3018  *)
3019    eval ac_cv_prog_make_${ac_make}_set=no;;
3020esac
3021rm -f conftest.make
3022fi
3023if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3025$as_echo "yes" >&6; }
3026  SET_MAKE=
3027else
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029$as_echo "no" >&6; }
3030  SET_MAKE="MAKE=${MAKE-make}"
3031fi
3032
3033rm -rf .tst 2>/dev/null
3034mkdir .tst 2>/dev/null
3035if test -d .tst; then
3036  am__leading_dot=.
3037else
3038  am__leading_dot=_
3039fi
3040rmdir .tst 2>/dev/null
3041
3042# Check whether --enable-silent-rules was given.
3043if test "${enable_silent_rules+set}" = set; then :
3044  enableval=$enable_silent_rules;
3045fi
3046
3047case $enable_silent_rules in # (((
3048  yes) AM_DEFAULT_VERBOSITY=0;;
3049   no) AM_DEFAULT_VERBOSITY=1;;
3050    *) AM_DEFAULT_VERBOSITY=1;;
3051esac
3052am_make=${MAKE-make}
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3054$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3055if ${am_cv_make_support_nested_variables+:} false; then :
3056  $as_echo_n "(cached) " >&6
3057else
3058  if $as_echo 'TRUE=$(BAR$(V))
3059BAR0=false
3060BAR1=true
3061V=1
3062am__doit:
3063	@$(TRUE)
3064.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3065  am_cv_make_support_nested_variables=yes
3066else
3067  am_cv_make_support_nested_variables=no
3068fi
3069fi
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3071$as_echo "$am_cv_make_support_nested_variables" >&6; }
3072if test $am_cv_make_support_nested_variables = yes; then
3073    AM_V='$(V)'
3074  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3075else
3076  AM_V=$AM_DEFAULT_VERBOSITY
3077  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3078fi
3079AM_BACKSLASH='\'
3080
3081if test "`cd $srcdir && pwd`" != "`pwd`"; then
3082  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3083  # is not polluted with repeated "-I."
3084  am__isrc=' -I$(srcdir)'
3085  # test to see if srcdir already configured
3086  if test -f $srcdir/config.status; then
3087    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3088  fi
3089fi
3090
3091# test whether we have cygpath
3092if test -z "$CYGPATH_W"; then
3093  if (cygpath --version) >/dev/null 2>/dev/null; then
3094    CYGPATH_W='cygpath -w'
3095  else
3096    CYGPATH_W=echo
3097  fi
3098fi
3099
3100
3101# Define the identity of the package.
3102 PACKAGE='ibus-libpinyin'
3103 VERSION='1.11.1'
3104
3105
3106cat >>confdefs.h <<_ACEOF
3107#define PACKAGE "$PACKAGE"
3108_ACEOF
3109
3110
3111cat >>confdefs.h <<_ACEOF
3112#define VERSION "$VERSION"
3113_ACEOF
3114
3115# Some tools Automake needs.
3116
3117ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3118
3119
3120AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3121
3122
3123AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3124
3125
3126AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3127
3128
3129MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3130
3131# For better backward compatibility.  To be removed once Automake 1.9.x
3132# dies out for good.  For more background, see:
3133# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3134# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3135mkdir_p='$(MKDIR_P)'
3136
3137# We need awk for the "check" target (and possibly the TAP driver).  The
3138# system "awk" is bad on some platforms.
3139# Always define AMTAR for backward compatibility.  Yes, it's still used
3140# in the wild :-(  We should find a proper way to deprecate it ...
3141AMTAR='$${TAR-tar}'
3142
3143
3144# We'll loop over all known methods to create a tar archive until one works.
3145_am_tools='gnutar  pax cpio none'
3146
3147am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3148
3149
3150
3151
3152
3153
3154# POSIX will say in a future version that running "rm -f" with no argument
3155# is OK; and we want to be able to make that assumption in our Makefile
3156# recipes.  So use an aggressive probe to check that the usage we want is
3157# actually supported "in the wild" to an acceptable degree.
3158# See automake bug#10828.
3159# To make any issue more visible, cause the running configure to be aborted
3160# by default if the 'rm' program in use doesn't match our expectations; the
3161# user can still override this though.
3162if rm -f && rm -fr && rm -rf; then : OK; else
3163  cat >&2 <<'END'
3164Oops!
3165
3166Your 'rm' program seems unable to run without file operands specified
3167on the command line, even when the '-f' option is present.  This is contrary
3168to the behaviour of most rm programs out there, and not conforming with
3169the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3170
3171Please tell bug-automake@gnu.org about your system, including the value
3172of your $PATH and any error possibly output before this message.  This
3173can help us improve future automake versions.
3174
3175END
3176  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3177    echo 'Configuration will proceed anyway, since you have set the' >&2
3178    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3179    echo >&2
3180  else
3181    cat >&2 <<'END'
3182Aborting the configuration process, to ensure you take notice of the issue.
3183
3184You can download and install GNU coreutils to get an 'rm' implementation
3185that behaves properly: <https://www.gnu.org/software/coreutils/>.
3186
3187If you want to complete the configuration process using your problematic
3188'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3189to "yes", and re-run configure.
3190
3191END
3192    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3193  fi
3194fi
3195
3196DEPDIR="${am__leading_dot}deps"
3197
3198ac_config_commands="$ac_config_commands depfiles"
3199
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3201$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3202cat > confinc.mk << 'END'
3203am__doit:
3204	@echo this is the am__doit target >confinc.out
3205.PHONY: am__doit
3206END
3207am__include="#"
3208am__quote=
3209# BSD make does it like this.
3210echo '.include "confinc.mk" # ignored' > confmf.BSD
3211# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3212echo 'include confinc.mk # ignored' > confmf.GNU
3213_am_result=no
3214for s in GNU BSD; do
3215  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3216   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }
3220  case $?:`cat confinc.out 2>/dev/null` in #(
3221  '0:this is the am__doit target') :
3222    case $s in #(
3223  BSD) :
3224    am__include='.include' am__quote='"' ;; #(
3225  *) :
3226    am__include='include' am__quote='' ;;
3227esac ;; #(
3228  *) :
3229     ;;
3230esac
3231  if test "$am__include" != "#"; then
3232    _am_result="yes ($s style)"
3233    break
3234  fi
3235done
3236rm -f confinc.* confmf.*
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3238$as_echo "${_am_result}" >&6; }
3239
3240# Check whether --enable-dependency-tracking was given.
3241if test "${enable_dependency_tracking+set}" = set; then :
3242  enableval=$enable_dependency_tracking;
3243fi
3244
3245if test "x$enable_dependency_tracking" != xno; then
3246  am_depcomp="$ac_aux_dir/depcomp"
3247  AMDEPBACKSLASH='\'
3248  am__nodep='_no'
3249fi
3250 if test "x$enable_dependency_tracking" != xno; then
3251  AMDEP_TRUE=
3252  AMDEP_FALSE='#'
3253else
3254  AMDEP_TRUE='#'
3255  AMDEP_FALSE=
3256fi
3257
3258
3259ac_ext=c
3260ac_cpp='$CPP $CPPFLAGS'
3261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264if test -n "$ac_tool_prefix"; then
3265  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3266set dummy ${ac_tool_prefix}gcc; ac_word=$2
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268$as_echo_n "checking for $ac_word... " >&6; }
3269if ${ac_cv_prog_CC+:} false; then :
3270  $as_echo_n "(cached) " >&6
3271else
3272  if test -n "$CC"; then
3273  ac_cv_prog_CC="$CC" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278  IFS=$as_save_IFS
3279  test -z "$as_dir" && as_dir=.
3280    for ac_exec_ext in '' $ac_executable_extensions; do
3281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284    break 2
3285  fi
3286done
3287  done
3288IFS=$as_save_IFS
3289
3290fi
3291fi
3292CC=$ac_cv_prog_CC
3293if test -n "$CC"; then
3294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295$as_echo "$CC" >&6; }
3296else
3297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299fi
3300
3301
3302fi
3303if test -z "$ac_cv_prog_CC"; then
3304  ac_ct_CC=$CC
3305  # Extract the first word of "gcc", so it can be a program name with args.
3306set dummy gcc; ac_word=$2
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308$as_echo_n "checking for $ac_word... " >&6; }
3309if ${ac_cv_prog_ac_ct_CC+:} false; then :
3310  $as_echo_n "(cached) " >&6
3311else
3312  if test -n "$ac_ct_CC"; then
3313  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3314else
3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318  IFS=$as_save_IFS
3319  test -z "$as_dir" && as_dir=.
3320    for ac_exec_ext in '' $ac_executable_extensions; do
3321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322    ac_cv_prog_ac_ct_CC="gcc"
3323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324    break 2
3325  fi
3326done
3327  done
3328IFS=$as_save_IFS
3329
3330fi
3331fi
3332ac_ct_CC=$ac_cv_prog_ac_ct_CC
3333if test -n "$ac_ct_CC"; then
3334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3335$as_echo "$ac_ct_CC" >&6; }
3336else
3337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338$as_echo "no" >&6; }
3339fi
3340
3341  if test "x$ac_ct_CC" = x; then
3342    CC=""
3343  else
3344    case $cross_compiling:$ac_tool_warned in
3345yes:)
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348ac_tool_warned=yes ;;
3349esac
3350    CC=$ac_ct_CC
3351  fi
3352else
3353  CC="$ac_cv_prog_CC"
3354fi
3355
3356if test -z "$CC"; then
3357          if test -n "$ac_tool_prefix"; then
3358    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3359set dummy ${ac_tool_prefix}cc; ac_word=$2
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361$as_echo_n "checking for $ac_word... " >&6; }
3362if ${ac_cv_prog_CC+:} false; then :
3363  $as_echo_n "(cached) " >&6
3364else
3365  if test -n "$CC"; then
3366  ac_cv_prog_CC="$CC" # Let the user override the test.
3367else
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371  IFS=$as_save_IFS
3372  test -z "$as_dir" && as_dir=.
3373    for ac_exec_ext in '' $ac_executable_extensions; do
3374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375    ac_cv_prog_CC="${ac_tool_prefix}cc"
3376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377    break 2
3378  fi
3379done
3380  done
3381IFS=$as_save_IFS
3382
3383fi
3384fi
3385CC=$ac_cv_prog_CC
3386if test -n "$CC"; then
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388$as_echo "$CC" >&6; }
3389else
3390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
3392fi
3393
3394
3395  fi
3396fi
3397if test -z "$CC"; then
3398  # Extract the first word of "cc", so it can be a program name with args.
3399set dummy cc; ac_word=$2
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401$as_echo_n "checking for $ac_word... " >&6; }
3402if ${ac_cv_prog_CC+:} false; then :
3403  $as_echo_n "(cached) " >&6
3404else
3405  if test -n "$CC"; then
3406  ac_cv_prog_CC="$CC" # Let the user override the test.
3407else
3408  ac_prog_rejected=no
3409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410for as_dir in $PATH
3411do
3412  IFS=$as_save_IFS
3413  test -z "$as_dir" && as_dir=.
3414    for ac_exec_ext in '' $ac_executable_extensions; do
3415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3417       ac_prog_rejected=yes
3418       continue
3419     fi
3420    ac_cv_prog_CC="cc"
3421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422    break 2
3423  fi
3424done
3425  done
3426IFS=$as_save_IFS
3427
3428if test $ac_prog_rejected = yes; then
3429  # We found a bogon in the path, so make sure we never use it.
3430  set dummy $ac_cv_prog_CC
3431  shift
3432  if test $# != 0; then
3433    # We chose a different compiler from the bogus one.
3434    # However, it has the same basename, so the bogon will be chosen
3435    # first if we set CC to just the basename; use the full file name.
3436    shift
3437    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3438  fi
3439fi
3440fi
3441fi
3442CC=$ac_cv_prog_CC
3443if test -n "$CC"; then
3444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445$as_echo "$CC" >&6; }
3446else
3447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448$as_echo "no" >&6; }
3449fi
3450
3451
3452fi
3453if test -z "$CC"; then
3454  if test -n "$ac_tool_prefix"; then
3455  for ac_prog in cl.exe
3456  do
3457    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3458set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460$as_echo_n "checking for $ac_word... " >&6; }
3461if ${ac_cv_prog_CC+:} false; then :
3462  $as_echo_n "(cached) " >&6
3463else
3464  if test -n "$CC"; then
3465  ac_cv_prog_CC="$CC" # Let the user override the test.
3466else
3467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468for as_dir in $PATH
3469do
3470  IFS=$as_save_IFS
3471  test -z "$as_dir" && as_dir=.
3472    for ac_exec_ext in '' $ac_executable_extensions; do
3473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476    break 2
3477  fi
3478done
3479  done
3480IFS=$as_save_IFS
3481
3482fi
3483fi
3484CC=$ac_cv_prog_CC
3485if test -n "$CC"; then
3486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3487$as_echo "$CC" >&6; }
3488else
3489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490$as_echo "no" >&6; }
3491fi
3492
3493
3494    test -n "$CC" && break
3495  done
3496fi
3497if test -z "$CC"; then
3498  ac_ct_CC=$CC
3499  for ac_prog in cl.exe
3500do
3501  # Extract the first word of "$ac_prog", so it can be a program name with args.
3502set dummy $ac_prog; ac_word=$2
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504$as_echo_n "checking for $ac_word... " >&6; }
3505if ${ac_cv_prog_ac_ct_CC+:} false; then :
3506  $as_echo_n "(cached) " >&6
3507else
3508  if test -n "$ac_ct_CC"; then
3509  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3510else
3511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512for as_dir in $PATH
3513do
3514  IFS=$as_save_IFS
3515  test -z "$as_dir" && as_dir=.
3516    for ac_exec_ext in '' $ac_executable_extensions; do
3517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518    ac_cv_prog_ac_ct_CC="$ac_prog"
3519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520    break 2
3521  fi
3522done
3523  done
3524IFS=$as_save_IFS
3525
3526fi
3527fi
3528ac_ct_CC=$ac_cv_prog_ac_ct_CC
3529if test -n "$ac_ct_CC"; then
3530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3531$as_echo "$ac_ct_CC" >&6; }
3532else
3533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534$as_echo "no" >&6; }
3535fi
3536
3537
3538  test -n "$ac_ct_CC" && break
3539done
3540
3541  if test "x$ac_ct_CC" = x; then
3542    CC=""
3543  else
3544    case $cross_compiling:$ac_tool_warned in
3545yes:)
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3548ac_tool_warned=yes ;;
3549esac
3550    CC=$ac_ct_CC
3551  fi
3552fi
3553
3554fi
3555
3556
3557test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559as_fn_error $? "no acceptable C compiler found in \$PATH
3560See \`config.log' for more details" "$LINENO" 5; }
3561
3562# Provide some information about the compiler.
3563$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3564set X $ac_compile
3565ac_compiler=$2
3566for ac_option in --version -v -V -qversion; do
3567  { { ac_try="$ac_compiler $ac_option >&5"
3568case "(($ac_try" in
3569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570  *) ac_try_echo=$ac_try;;
3571esac
3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573$as_echo "$ac_try_echo"; } >&5
3574  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3575  ac_status=$?
3576  if test -s conftest.err; then
3577    sed '10a\
3578... rest of stderr output deleted ...
3579         10q' conftest.err >conftest.er1
3580    cat conftest.er1 >&5
3581  fi
3582  rm -f conftest.er1 conftest.err
3583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584  test $ac_status = 0; }
3585done
3586
3587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h.  */
3589
3590int
3591main ()
3592{
3593
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598ac_clean_files_save=$ac_clean_files
3599ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3600# Try to create an executable without -o first, disregard a.out.
3601# It will help us diagnose broken compilers, and finding out an intuition
3602# of exeext.
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3604$as_echo_n "checking whether the C compiler works... " >&6; }
3605ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3606
3607# The possible output files:
3608ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3609
3610ac_rmfiles=
3611for ac_file in $ac_files
3612do
3613  case $ac_file in
3614    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3615    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3616  esac
3617done
3618rm -f $ac_rmfiles
3619
3620if { { ac_try="$ac_link_default"
3621case "(($ac_try" in
3622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623  *) ac_try_echo=$ac_try;;
3624esac
3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626$as_echo "$ac_try_echo"; } >&5
3627  (eval "$ac_link_default") 2>&5
3628  ac_status=$?
3629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630  test $ac_status = 0; }; then :
3631  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3632# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3633# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3634# so that the user can short-circuit this test for compilers unknown to
3635# Autoconf.
3636for ac_file in $ac_files ''
3637do
3638  test -f "$ac_file" || continue
3639  case $ac_file in
3640    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3641	;;
3642    [ab].out )
3643	# We found the default executable, but exeext='' is most
3644	# certainly right.
3645	break;;
3646    *.* )
3647	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3648	then :; else
3649	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3650	fi
3651	# We set ac_cv_exeext here because the later test for it is not
3652	# safe: cross compilers may not add the suffix if given an `-o'
3653	# argument, so we may need to know it at that point already.
3654	# Even if this section looks crufty: it has the advantage of
3655	# actually working.
3656	break;;
3657    * )
3658	break;;
3659  esac
3660done
3661test "$ac_cv_exeext" = no && ac_cv_exeext=
3662
3663else
3664  ac_file=''
3665fi
3666if test -z "$ac_file"; then :
3667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668$as_echo "no" >&6; }
3669$as_echo "$as_me: failed program was:" >&5
3670sed 's/^/| /' conftest.$ac_ext >&5
3671
3672{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674as_fn_error 77 "C compiler cannot create executables
3675See \`config.log' for more details" "$LINENO" 5; }
3676else
3677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3678$as_echo "yes" >&6; }
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3681$as_echo_n "checking for C compiler default output file name... " >&6; }
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3683$as_echo "$ac_file" >&6; }
3684ac_exeext=$ac_cv_exeext
3685
3686rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3687ac_clean_files=$ac_clean_files_save
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3689$as_echo_n "checking for suffix of executables... " >&6; }
3690if { { ac_try="$ac_link"
3691case "(($ac_try" in
3692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693  *) ac_try_echo=$ac_try;;
3694esac
3695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696$as_echo "$ac_try_echo"; } >&5
3697  (eval "$ac_link") 2>&5
3698  ac_status=$?
3699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700  test $ac_status = 0; }; then :
3701  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3702# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3703# work properly (i.e., refer to `conftest.exe'), while it won't with
3704# `rm'.
3705for ac_file in conftest.exe conftest conftest.*; do
3706  test -f "$ac_file" || continue
3707  case $ac_file in
3708    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3709    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3710	  break;;
3711    * ) break;;
3712  esac
3713done
3714else
3715  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3718See \`config.log' for more details" "$LINENO" 5; }
3719fi
3720rm -f conftest conftest$ac_cv_exeext
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3722$as_echo "$ac_cv_exeext" >&6; }
3723
3724rm -f conftest.$ac_ext
3725EXEEXT=$ac_cv_exeext
3726ac_exeext=$EXEEXT
3727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728/* end confdefs.h.  */
3729#include <stdio.h>
3730int
3731main ()
3732{
3733FILE *f = fopen ("conftest.out", "w");
3734 return ferror (f) || fclose (f) != 0;
3735
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740ac_clean_files="$ac_clean_files conftest.out"
3741# Check that the compiler produces executables we can run.  If not, either
3742# the compiler is broken, or we cross compile.
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3744$as_echo_n "checking whether we are cross compiling... " >&6; }
3745if test "$cross_compiling" != yes; then
3746  { { ac_try="$ac_link"
3747case "(($ac_try" in
3748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749  *) ac_try_echo=$ac_try;;
3750esac
3751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752$as_echo "$ac_try_echo"; } >&5
3753  (eval "$ac_link") 2>&5
3754  ac_status=$?
3755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756  test $ac_status = 0; }
3757  if { ac_try='./conftest$ac_cv_exeext'
3758  { { case "(($ac_try" in
3759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760  *) ac_try_echo=$ac_try;;
3761esac
3762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763$as_echo "$ac_try_echo"; } >&5
3764  (eval "$ac_try") 2>&5
3765  ac_status=$?
3766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767  test $ac_status = 0; }; }; then
3768    cross_compiling=no
3769  else
3770    if test "$cross_compiling" = maybe; then
3771	cross_compiling=yes
3772    else
3773	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3775as_fn_error $? "cannot run C compiled programs.
3776If you meant to cross compile, use \`--host'.
3777See \`config.log' for more details" "$LINENO" 5; }
3778    fi
3779  fi
3780fi
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3782$as_echo "$cross_compiling" >&6; }
3783
3784rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3785ac_clean_files=$ac_clean_files_save
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3787$as_echo_n "checking for suffix of object files... " >&6; }
3788if ${ac_cv_objext+:} false; then :
3789  $as_echo_n "(cached) " >&6
3790else
3791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h.  */
3793
3794int
3795main ()
3796{
3797
3798  ;
3799  return 0;
3800}
3801_ACEOF
3802rm -f conftest.o conftest.obj
3803if { { ac_try="$ac_compile"
3804case "(($ac_try" in
3805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806  *) ac_try_echo=$ac_try;;
3807esac
3808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809$as_echo "$ac_try_echo"; } >&5
3810  (eval "$ac_compile") 2>&5
3811  ac_status=$?
3812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813  test $ac_status = 0; }; then :
3814  for ac_file in conftest.o conftest.obj conftest.*; do
3815  test -f "$ac_file" || continue;
3816  case $ac_file in
3817    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3818    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3819       break;;
3820  esac
3821done
3822else
3823  $as_echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828as_fn_error $? "cannot compute suffix of object files: cannot compile
3829See \`config.log' for more details" "$LINENO" 5; }
3830fi
3831rm -f conftest.$ac_cv_objext conftest.$ac_ext
3832fi
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3834$as_echo "$ac_cv_objext" >&6; }
3835OBJEXT=$ac_cv_objext
3836ac_objext=$OBJEXT
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3838$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3839if ${ac_cv_c_compiler_gnu+:} false; then :
3840  $as_echo_n "(cached) " >&6
3841else
3842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843/* end confdefs.h.  */
3844
3845int
3846main ()
3847{
3848#ifndef __GNUC__
3849       choke me
3850#endif
3851
3852  ;
3853  return 0;
3854}
3855_ACEOF
3856if ac_fn_c_try_compile "$LINENO"; then :
3857  ac_compiler_gnu=yes
3858else
3859  ac_compiler_gnu=no
3860fi
3861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862ac_cv_c_compiler_gnu=$ac_compiler_gnu
3863
3864fi
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3866$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3867if test $ac_compiler_gnu = yes; then
3868  GCC=yes
3869else
3870  GCC=
3871fi
3872ac_test_CFLAGS=${CFLAGS+set}
3873ac_save_CFLAGS=$CFLAGS
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3875$as_echo_n "checking whether $CC accepts -g... " >&6; }
3876if ${ac_cv_prog_cc_g+:} false; then :
3877  $as_echo_n "(cached) " >&6
3878else
3879  ac_save_c_werror_flag=$ac_c_werror_flag
3880   ac_c_werror_flag=yes
3881   ac_cv_prog_cc_g=no
3882   CFLAGS="-g"
3883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884/* end confdefs.h.  */
3885
3886int
3887main ()
3888{
3889
3890  ;
3891  return 0;
3892}
3893_ACEOF
3894if ac_fn_c_try_compile "$LINENO"; then :
3895  ac_cv_prog_cc_g=yes
3896else
3897  CFLAGS=""
3898      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h.  */
3900
3901int
3902main ()
3903{
3904
3905  ;
3906  return 0;
3907}
3908_ACEOF
3909if ac_fn_c_try_compile "$LINENO"; then :
3910
3911else
3912  ac_c_werror_flag=$ac_save_c_werror_flag
3913	 CFLAGS="-g"
3914	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915/* end confdefs.h.  */
3916
3917int
3918main ()
3919{
3920
3921  ;
3922  return 0;
3923}
3924_ACEOF
3925if ac_fn_c_try_compile "$LINENO"; then :
3926  ac_cv_prog_cc_g=yes
3927fi
3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929fi
3930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931fi
3932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933   ac_c_werror_flag=$ac_save_c_werror_flag
3934fi
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3936$as_echo "$ac_cv_prog_cc_g" >&6; }
3937if test "$ac_test_CFLAGS" = set; then
3938  CFLAGS=$ac_save_CFLAGS
3939elif test $ac_cv_prog_cc_g = yes; then
3940  if test "$GCC" = yes; then
3941    CFLAGS="-g -O2"
3942  else
3943    CFLAGS="-g"
3944  fi
3945else
3946  if test "$GCC" = yes; then
3947    CFLAGS="-O2"
3948  else
3949    CFLAGS=
3950  fi
3951fi
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3953$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3954if ${ac_cv_prog_cc_c89+:} false; then :
3955  $as_echo_n "(cached) " >&6
3956else
3957  ac_cv_prog_cc_c89=no
3958ac_save_CC=$CC
3959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h.  */
3961#include <stdarg.h>
3962#include <stdio.h>
3963struct stat;
3964/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3965struct buf { int x; };
3966FILE * (*rcsopen) (struct buf *, struct stat *, int);
3967static char *e (p, i)
3968     char **p;
3969     int i;
3970{
3971  return p[i];
3972}
3973static char *f (char * (*g) (char **, int), char **p, ...)
3974{
3975  char *s;
3976  va_list v;
3977  va_start (v,p);
3978  s = g (p, va_arg (v,int));
3979  va_end (v);
3980  return s;
3981}
3982
3983/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3984   function prototypes and stuff, but not '\xHH' hex character constants.
3985   These don't provoke an error unfortunately, instead are silently treated
3986   as 'x'.  The following induces an error, until -std is added to get
3987   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3988   array size at least.  It's necessary to write '\x00'==0 to get something
3989   that's true only with -std.  */
3990int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3991
3992/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3993   inside strings and character constants.  */
3994#define FOO(x) 'x'
3995int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3996
3997int test (int i, double x);
3998struct s1 {int (*f) (int a);};
3999struct s2 {int (*f) (double a);};
4000int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4001int argc;
4002char **argv;
4003int
4004main ()
4005{
4006return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4007  ;
4008  return 0;
4009}
4010_ACEOF
4011for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4012	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4013do
4014  CC="$ac_save_CC $ac_arg"
4015  if ac_fn_c_try_compile "$LINENO"; then :
4016  ac_cv_prog_cc_c89=$ac_arg
4017fi
4018rm -f core conftest.err conftest.$ac_objext
4019  test "x$ac_cv_prog_cc_c89" != "xno" && break
4020done
4021rm -f conftest.$ac_ext
4022CC=$ac_save_CC
4023
4024fi
4025# AC_CACHE_VAL
4026case "x$ac_cv_prog_cc_c89" in
4027  x)
4028    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4029$as_echo "none needed" >&6; } ;;
4030  xno)
4031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4032$as_echo "unsupported" >&6; } ;;
4033  *)
4034    CC="$CC $ac_cv_prog_cc_c89"
4035    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4036$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4037esac
4038if test "x$ac_cv_prog_cc_c89" != xno; then :
4039
4040fi
4041
4042ac_ext=c
4043ac_cpp='$CPP $CPPFLAGS'
4044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047
4048ac_ext=c
4049ac_cpp='$CPP $CPPFLAGS'
4050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4054$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4055if ${am_cv_prog_cc_c_o+:} false; then :
4056  $as_echo_n "(cached) " >&6
4057else
4058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h.  */
4060
4061int
4062main ()
4063{
4064
4065  ;
4066  return 0;
4067}
4068_ACEOF
4069  # Make sure it works both with $CC and with simple cc.
4070  # Following AC_PROG_CC_C_O, we do the test twice because some
4071  # compilers refuse to overwrite an existing .o file with -o,
4072  # though they will create one.
4073  am_cv_prog_cc_c_o=yes
4074  for am_i in 1 2; do
4075    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4076   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } \
4080         && test -f conftest2.$ac_objext; then
4081      : OK
4082    else
4083      am_cv_prog_cc_c_o=no
4084      break
4085    fi
4086  done
4087  rm -f core conftest*
4088  unset am_i
4089fi
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4091$as_echo "$am_cv_prog_cc_c_o" >&6; }
4092if test "$am_cv_prog_cc_c_o" != yes; then
4093   # Losing compiler, so override with the script.
4094   # FIXME: It is wrong to rewrite CC.
4095   # But if we don't then we get into trouble of one sort or another.
4096   # A longer-term fix would be to have automake use am__CC in this case,
4097   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4098   CC="$am_aux_dir/compile $CC"
4099fi
4100ac_ext=c
4101ac_cpp='$CPP $CPPFLAGS'
4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106
4107depcc="$CC"   am_compiler_list=
4108
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4110$as_echo_n "checking dependency style of $depcc... " >&6; }
4111if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4112  $as_echo_n "(cached) " >&6
4113else
4114  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4115  # We make a subdir and do the tests there.  Otherwise we can end up
4116  # making bogus files that we don't know about and never remove.  For
4117  # instance it was reported that on HP-UX the gcc test will end up
4118  # making a dummy file named 'D' -- because '-MD' means "put the output
4119  # in D".
4120  rm -rf conftest.dir
4121  mkdir conftest.dir
4122  # Copy depcomp to subdir because otherwise we won't find it if we're
4123  # using a relative directory.
4124  cp "$am_depcomp" conftest.dir
4125  cd conftest.dir
4126  # We will build objects and dependencies in a subdirectory because
4127  # it helps to detect inapplicable dependency modes.  For instance
4128  # both Tru64's cc and ICC support -MD to output dependencies as a
4129  # side effect of compilation, but ICC will put the dependencies in
4130  # the current directory while Tru64 will put them in the object
4131  # directory.
4132  mkdir sub
4133
4134  am_cv_CC_dependencies_compiler_type=none
4135  if test "$am_compiler_list" = ""; then
4136     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4137  fi
4138  am__universal=false
4139  case " $depcc " in #(
4140     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4141     esac
4142
4143  for depmode in $am_compiler_list; do
4144    # Setup a source with many dependencies, because some compilers
4145    # like to wrap large dependency lists on column 80 (with \), and
4146    # we should not choose a depcomp mode which is confused by this.
4147    #
4148    # We need to recreate these files for each test, as the compiler may
4149    # overwrite some of them when testing with obscure command lines.
4150    # This happens at least with the AIX C compiler.
4151    : > sub/conftest.c
4152    for i in 1 2 3 4 5 6; do
4153      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4154      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4155      # Solaris 10 /bin/sh.
4156      echo '/* dummy */' > sub/conftst$i.h
4157    done
4158    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4159
4160    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4161    # mode.  It turns out that the SunPro C++ compiler does not properly
4162    # handle '-M -o', and we need to detect this.  Also, some Intel
4163    # versions had trouble with output in subdirs.
4164    am__obj=sub/conftest.${OBJEXT-o}
4165    am__minus_obj="-o $am__obj"
4166    case $depmode in
4167    gcc)
4168      # This depmode causes a compiler race in universal mode.
4169      test "$am__universal" = false || continue
4170      ;;
4171    nosideeffect)
4172      # After this tag, mechanisms are not by side-effect, so they'll
4173      # only be used when explicitly requested.
4174      if test "x$enable_dependency_tracking" = xyes; then
4175	continue
4176      else
4177	break
4178      fi
4179      ;;
4180    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4181      # This compiler won't grok '-c -o', but also, the minuso test has
4182      # not run yet.  These depmodes are late enough in the game, and
4183      # so weak that their functioning should not be impacted.
4184      am__obj=conftest.${OBJEXT-o}
4185      am__minus_obj=
4186      ;;
4187    none) break ;;
4188    esac
4189    if depmode=$depmode \
4190       source=sub/conftest.c object=$am__obj \
4191       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4192       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4193         >/dev/null 2>conftest.err &&
4194       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4195       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4196       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4197       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4198      # icc doesn't choke on unknown options, it will just issue warnings
4199      # or remarks (even with -Werror).  So we grep stderr for any message
4200      # that says an option was ignored or not supported.
4201      # When given -MP, icc 7.0 and 7.1 complain thusly:
4202      #   icc: Command line warning: ignoring option '-M'; no argument required
4203      # The diagnosis changed in icc 8.0:
4204      #   icc: Command line remark: option '-MP' not supported
4205      if (grep 'ignoring option' conftest.err ||
4206          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4207        am_cv_CC_dependencies_compiler_type=$depmode
4208        break
4209      fi
4210    fi
4211  done
4212
4213  cd ..
4214  rm -rf conftest.dir
4215else
4216  am_cv_CC_dependencies_compiler_type=none
4217fi
4218
4219fi
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4221$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4222CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4223
4224 if
4225  test "x$enable_dependency_tracking" != xno \
4226  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4227  am__fastdepCC_TRUE=
4228  am__fastdepCC_FALSE='#'
4229else
4230  am__fastdepCC_TRUE='#'
4231  am__fastdepCC_FALSE=
4232fi
4233
4234
4235
4236ac_ext=c
4237ac_cpp='$CPP $CPPFLAGS'
4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4242$as_echo_n "checking how to run the C preprocessor... " >&6; }
4243# On Suns, sometimes $CPP names a directory.
4244if test -n "$CPP" && test -d "$CPP"; then
4245  CPP=
4246fi
4247if test -z "$CPP"; then
4248  if ${ac_cv_prog_CPP+:} false; then :
4249  $as_echo_n "(cached) " >&6
4250else
4251      # Double quotes because CPP needs to be expanded
4252    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4253    do
4254      ac_preproc_ok=false
4255for ac_c_preproc_warn_flag in '' yes
4256do
4257  # Use a header file that comes with gcc, so configuring glibc
4258  # with a fresh cross-compiler works.
4259  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4260  # <limits.h> exists even on freestanding compilers.
4261  # On the NeXT, cc -E runs the code through the compiler's parser,
4262  # not just through cpp. "Syntax error" is here to catch this case.
4263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264/* end confdefs.h.  */
4265#ifdef __STDC__
4266# include <limits.h>
4267#else
4268# include <assert.h>
4269#endif
4270		     Syntax error
4271_ACEOF
4272if ac_fn_c_try_cpp "$LINENO"; then :
4273
4274else
4275  # Broken: fails on valid input.
4276continue
4277fi
4278rm -f conftest.err conftest.i conftest.$ac_ext
4279
4280  # OK, works on sane cases.  Now check whether nonexistent headers
4281  # can be detected and how.
4282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284#include <ac_nonexistent.h>
4285_ACEOF
4286if ac_fn_c_try_cpp "$LINENO"; then :
4287  # Broken: success on invalid input.
4288continue
4289else
4290  # Passes both tests.
4291ac_preproc_ok=:
4292break
4293fi
4294rm -f conftest.err conftest.i conftest.$ac_ext
4295
4296done
4297# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4298rm -f conftest.i conftest.err conftest.$ac_ext
4299if $ac_preproc_ok; then :
4300  break
4301fi
4302
4303    done
4304    ac_cv_prog_CPP=$CPP
4305
4306fi
4307  CPP=$ac_cv_prog_CPP
4308else
4309  ac_cv_prog_CPP=$CPP
4310fi
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4312$as_echo "$CPP" >&6; }
4313ac_preproc_ok=false
4314for ac_c_preproc_warn_flag in '' yes
4315do
4316  # Use a header file that comes with gcc, so configuring glibc
4317  # with a fresh cross-compiler works.
4318  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4319  # <limits.h> exists even on freestanding compilers.
4320  # On the NeXT, cc -E runs the code through the compiler's parser,
4321  # not just through cpp. "Syntax error" is here to catch this case.
4322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h.  */
4324#ifdef __STDC__
4325# include <limits.h>
4326#else
4327# include <assert.h>
4328#endif
4329		     Syntax error
4330_ACEOF
4331if ac_fn_c_try_cpp "$LINENO"; then :
4332
4333else
4334  # Broken: fails on valid input.
4335continue
4336fi
4337rm -f conftest.err conftest.i conftest.$ac_ext
4338
4339  # OK, works on sane cases.  Now check whether nonexistent headers
4340  # can be detected and how.
4341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342/* end confdefs.h.  */
4343#include <ac_nonexistent.h>
4344_ACEOF
4345if ac_fn_c_try_cpp "$LINENO"; then :
4346  # Broken: success on invalid input.
4347continue
4348else
4349  # Passes both tests.
4350ac_preproc_ok=:
4351break
4352fi
4353rm -f conftest.err conftest.i conftest.$ac_ext
4354
4355done
4356# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4357rm -f conftest.i conftest.err conftest.$ac_ext
4358if $ac_preproc_ok; then :
4359
4360else
4361  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4364See \`config.log' for more details" "$LINENO" 5; }
4365fi
4366
4367ac_ext=c
4368ac_cpp='$CPP $CPPFLAGS'
4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372
4373
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4375$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4376if ${ac_cv_path_GREP+:} false; then :
4377  $as_echo_n "(cached) " >&6
4378else
4379  if test -z "$GREP"; then
4380  ac_path_GREP_found=false
4381  # Loop through the user's path and test for each of PROGNAME-LIST
4382  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4384do
4385  IFS=$as_save_IFS
4386  test -z "$as_dir" && as_dir=.
4387    for ac_prog in grep ggrep; do
4388    for ac_exec_ext in '' $ac_executable_extensions; do
4389      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4390      as_fn_executable_p "$ac_path_GREP" || continue
4391# Check for GNU ac_path_GREP and select it if it is found.
4392  # Check for GNU $ac_path_GREP
4393case `"$ac_path_GREP" --version 2>&1` in
4394*GNU*)
4395  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4396*)
4397  ac_count=0
4398  $as_echo_n 0123456789 >"conftest.in"
4399  while :
4400  do
4401    cat "conftest.in" "conftest.in" >"conftest.tmp"
4402    mv "conftest.tmp" "conftest.in"
4403    cp "conftest.in" "conftest.nl"
4404    $as_echo 'GREP' >> "conftest.nl"
4405    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4406    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4407    as_fn_arith $ac_count + 1 && ac_count=$as_val
4408    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4409      # Best one so far, save it but keep looking for a better one
4410      ac_cv_path_GREP="$ac_path_GREP"
4411      ac_path_GREP_max=$ac_count
4412    fi
4413    # 10*(2^10) chars as input seems more than enough
4414    test $ac_count -gt 10 && break
4415  done
4416  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4417esac
4418
4419      $ac_path_GREP_found && break 3
4420    done
4421  done
4422  done
4423IFS=$as_save_IFS
4424  if test -z "$ac_cv_path_GREP"; then
4425    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4426  fi
4427else
4428  ac_cv_path_GREP=$GREP
4429fi
4430
4431fi
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4433$as_echo "$ac_cv_path_GREP" >&6; }
4434 GREP="$ac_cv_path_GREP"
4435
4436
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4438$as_echo_n "checking for egrep... " >&6; }
4439if ${ac_cv_path_EGREP+:} false; then :
4440  $as_echo_n "(cached) " >&6
4441else
4442  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4443   then ac_cv_path_EGREP="$GREP -E"
4444   else
4445     if test -z "$EGREP"; then
4446  ac_path_EGREP_found=false
4447  # Loop through the user's path and test for each of PROGNAME-LIST
4448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450do
4451  IFS=$as_save_IFS
4452  test -z "$as_dir" && as_dir=.
4453    for ac_prog in egrep; do
4454    for ac_exec_ext in '' $ac_executable_extensions; do
4455      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4456      as_fn_executable_p "$ac_path_EGREP" || continue
4457# Check for GNU ac_path_EGREP and select it if it is found.
4458  # Check for GNU $ac_path_EGREP
4459case `"$ac_path_EGREP" --version 2>&1` in
4460*GNU*)
4461  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4462*)
4463  ac_count=0
4464  $as_echo_n 0123456789 >"conftest.in"
4465  while :
4466  do
4467    cat "conftest.in" "conftest.in" >"conftest.tmp"
4468    mv "conftest.tmp" "conftest.in"
4469    cp "conftest.in" "conftest.nl"
4470    $as_echo 'EGREP' >> "conftest.nl"
4471    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4472    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4473    as_fn_arith $ac_count + 1 && ac_count=$as_val
4474    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4475      # Best one so far, save it but keep looking for a better one
4476      ac_cv_path_EGREP="$ac_path_EGREP"
4477      ac_path_EGREP_max=$ac_count
4478    fi
4479    # 10*(2^10) chars as input seems more than enough
4480    test $ac_count -gt 10 && break
4481  done
4482  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483esac
4484
4485      $ac_path_EGREP_found && break 3
4486    done
4487  done
4488  done
4489IFS=$as_save_IFS
4490  if test -z "$ac_cv_path_EGREP"; then
4491    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492  fi
4493else
4494  ac_cv_path_EGREP=$EGREP
4495fi
4496
4497   fi
4498fi
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4500$as_echo "$ac_cv_path_EGREP" >&6; }
4501 EGREP="$ac_cv_path_EGREP"
4502
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4505$as_echo_n "checking for ANSI C header files... " >&6; }
4506if ${ac_cv_header_stdc+:} false; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h.  */
4511#include <stdlib.h>
4512#include <stdarg.h>
4513#include <string.h>
4514#include <float.h>
4515
4516int
4517main ()
4518{
4519
4520  ;
4521  return 0;
4522}
4523_ACEOF
4524if ac_fn_c_try_compile "$LINENO"; then :
4525  ac_cv_header_stdc=yes
4526else
4527  ac_cv_header_stdc=no
4528fi
4529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530
4531if test $ac_cv_header_stdc = yes; then
4532  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h.  */
4535#include <string.h>
4536
4537_ACEOF
4538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4539  $EGREP "memchr" >/dev/null 2>&1; then :
4540
4541else
4542  ac_cv_header_stdc=no
4543fi
4544rm -f conftest*
4545
4546fi
4547
4548if test $ac_cv_header_stdc = yes; then
4549  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h.  */
4552#include <stdlib.h>
4553
4554_ACEOF
4555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4556  $EGREP "free" >/dev/null 2>&1; then :
4557
4558else
4559  ac_cv_header_stdc=no
4560fi
4561rm -f conftest*
4562
4563fi
4564
4565if test $ac_cv_header_stdc = yes; then
4566  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4567  if test "$cross_compiling" = yes; then :
4568  :
4569else
4570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h.  */
4572#include <ctype.h>
4573#include <stdlib.h>
4574#if ((' ' & 0x0FF) == 0x020)
4575# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4576# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4577#else
4578# define ISLOWER(c) \
4579		   (('a' <= (c) && (c) <= 'i') \
4580		     || ('j' <= (c) && (c) <= 'r') \
4581		     || ('s' <= (c) && (c) <= 'z'))
4582# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4583#endif
4584
4585#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4586int
4587main ()
4588{
4589  int i;
4590  for (i = 0; i < 256; i++)
4591    if (XOR (islower (i), ISLOWER (i))
4592	|| toupper (i) != TOUPPER (i))
4593      return 2;
4594  return 0;
4595}
4596_ACEOF
4597if ac_fn_c_try_run "$LINENO"; then :
4598
4599else
4600  ac_cv_header_stdc=no
4601fi
4602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4603  conftest.$ac_objext conftest.beam conftest.$ac_ext
4604fi
4605
4606fi
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4609$as_echo "$ac_cv_header_stdc" >&6; }
4610if test $ac_cv_header_stdc = yes; then
4611
4612$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4613
4614fi
4615
4616# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4617for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4618		  inttypes.h stdint.h unistd.h
4619do :
4620  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4621ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4622"
4623if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4624  cat >>confdefs.h <<_ACEOF
4625#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4626_ACEOF
4627
4628fi
4629
4630done
4631
4632
4633
4634  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4635if test "x$ac_cv_header_minix_config_h" = xyes; then :
4636  MINIX=yes
4637else
4638  MINIX=
4639fi
4640
4641
4642  if test "$MINIX" = yes; then
4643
4644$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4645
4646
4647$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4648
4649
4650$as_echo "#define _MINIX 1" >>confdefs.h
4651
4652  fi
4653
4654
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4656$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4657if ${ac_cv_safe_to_define___extensions__+:} false; then :
4658  $as_echo_n "(cached) " >&6
4659else
4660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661/* end confdefs.h.  */
4662
4663#         define __EXTENSIONS__ 1
4664          $ac_includes_default
4665int
4666main ()
4667{
4668
4669  ;
4670  return 0;
4671}
4672_ACEOF
4673if ac_fn_c_try_compile "$LINENO"; then :
4674  ac_cv_safe_to_define___extensions__=yes
4675else
4676  ac_cv_safe_to_define___extensions__=no
4677fi
4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679fi
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4681$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4682  test $ac_cv_safe_to_define___extensions__ = yes &&
4683    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4684
4685  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4686
4687  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4688
4689  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4690
4691  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4692
4693
4694
4695
4696ac_config_headers="$ac_config_headers config.h"
4697
4698
4699# Check whether --enable-silent-rules was given.
4700if test "${enable_silent_rules+set}" = set; then :
4701  enableval=$enable_silent_rules;
4702fi
4703
4704case $enable_silent_rules in # (((
4705  yes) AM_DEFAULT_VERBOSITY=0;;
4706   no) AM_DEFAULT_VERBOSITY=1;;
4707    *) AM_DEFAULT_VERBOSITY=0;;
4708esac
4709am_make=${MAKE-make}
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4711$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4712if ${am_cv_make_support_nested_variables+:} false; then :
4713  $as_echo_n "(cached) " >&6
4714else
4715  if $as_echo 'TRUE=$(BAR$(V))
4716BAR0=false
4717BAR1=true
4718V=1
4719am__doit:
4720	@$(TRUE)
4721.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4722  am_cv_make_support_nested_variables=yes
4723else
4724  am_cv_make_support_nested_variables=no
4725fi
4726fi
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4728$as_echo "$am_cv_make_support_nested_variables" >&6; }
4729if test $am_cv_make_support_nested_variables = yes; then
4730    AM_V='$(V)'
4731  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4732else
4733  AM_V=$AM_DEFAULT_VERBOSITY
4734  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4735fi
4736AM_BACKSLASH='\'
4737
4738
4739# define PACKAGE_VERSION_* variables
4740
4741  PACKAGE_VERSION_MAJOR=$(echo 1.11.1 | cut -d'.' -f1)
4742  PACKAGE_VERSION_MINOR=$(echo 1.11.1 | cut -d'.' -f2)
4743  PACKAGE_VERSION_MICRO=$(echo 1.11.1 | cut -d'.' -f3)
4744
4745
4746
4747
4748
4749
4750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking nano version" >&5
4751$as_echo_n "checking nano version... " >&6; }
4752
4753  NANO=$(echo 1.11.1 | cut -d'.' -f4)
4754
4755  if test x"$NANO" = x || test "x$NANO" = "x0" ; then
4756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0 (release)" >&5
4757$as_echo "0 (release)" >&6; }
4758    NANO=0
4759    PACKAGE_VERSION_RELEASE=1
4760    :
4761  else
4762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NANO" >&5
4763$as_echo "$NANO" >&6; }
4764    PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
4765    :
4766  fi
4767  PACKAGE_VERSION_NANO=$NANO
4768
4769
4770
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4772$as_echo_n "checking whether build environment is sane... " >&6; }
4773# Reject unsafe characters in $srcdir or the absolute working directory
4774# name.  Accept space and tab only in the latter.
4775am_lf='
4776'
4777case `pwd` in
4778  *[\\\"\#\$\&\'\`$am_lf]*)
4779    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4780esac
4781case $srcdir in
4782  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4783    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4784esac
4785
4786# Do 'set' in a subshell so we don't clobber the current shell's
4787# arguments.  Must try -L first in case configure is actually a
4788# symlink; some systems play weird games with the mod time of symlinks
4789# (eg FreeBSD returns the mod time of the symlink's containing
4790# directory).
4791if (
4792   am_has_slept=no
4793   for am_try in 1 2; do
4794     echo "timestamp, slept: $am_has_slept" > conftest.file
4795     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4796     if test "$*" = "X"; then
4797	# -L didn't work.
4798	set X `ls -t "$srcdir/configure" conftest.file`
4799     fi
4800     if test "$*" != "X $srcdir/configure conftest.file" \
4801	&& test "$*" != "X conftest.file $srcdir/configure"; then
4802
4803	# If neither matched, then we have a broken ls.  This can happen
4804	# if, for instance, CONFIG_SHELL is bash and it inherits a
4805	# broken ls alias from the environment.  This has actually
4806	# happened.  Such a system could not be considered "sane".
4807	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4808  alias in your environment" "$LINENO" 5
4809     fi
4810     if test "$2" = conftest.file || test $am_try -eq 2; then
4811       break
4812     fi
4813     # Just in case.
4814     sleep 1
4815     am_has_slept=yes
4816   done
4817   test "$2" = conftest.file
4818   )
4819then
4820   # Ok.
4821   :
4822else
4823   as_fn_error $? "newly created file is older than distributed files!
4824Check your system clock" "$LINENO" 5
4825fi
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4827$as_echo "yes" >&6; }
4828# If we didn't sleep, we still need to ensure time stamps of config.status and
4829# generated files are strictly newer.
4830am_sleep_pid=
4831if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4832  ( sleep 1 ) &
4833  am_sleep_pid=$!
4834fi
4835
4836rm -f conftest.file
4837
4838
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4840$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4841    # Check whether --enable-maintainer-mode was given.
4842if test "${enable_maintainer_mode+set}" = set; then :
4843  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4844else
4845  USE_MAINTAINER_MODE=no
4846fi
4847
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4849$as_echo "$USE_MAINTAINER_MODE" >&6; }
4850   if test $USE_MAINTAINER_MODE = yes; then
4851  MAINTAINER_MODE_TRUE=
4852  MAINTAINER_MODE_FALSE='#'
4853else
4854  MAINTAINER_MODE_TRUE='#'
4855  MAINTAINER_MODE_FALSE=
4856fi
4857
4858  MAINT=$MAINTAINER_MODE_TRUE
4859
4860
4861# Check whether --enable-static was given.
4862if test "${enable_static+set}" = set; then :
4863  enableval=$enable_static; p=${PACKAGE-default}
4864    case $enableval in
4865    yes) enable_static=yes ;;
4866    no) enable_static=no ;;
4867    *)
4868     enable_static=no
4869      # Look at the argument we got.  We use all the common list separators.
4870      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4871      for pkg in $enableval; do
4872	IFS=$lt_save_ifs
4873	if test "X$pkg" = "X$p"; then
4874	  enable_static=yes
4875	fi
4876      done
4877      IFS=$lt_save_ifs
4878      ;;
4879    esac
4880else
4881  enable_static=no
4882fi
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892ac_ext=c
4893ac_cpp='$CPP $CPPFLAGS'
4894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896ac_compiler_gnu=$ac_cv_c_compiler_gnu
4897if test -n "$ac_tool_prefix"; then
4898  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4899set dummy ${ac_tool_prefix}gcc; ac_word=$2
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901$as_echo_n "checking for $ac_word... " >&6; }
4902if ${ac_cv_prog_CC+:} false; then :
4903  $as_echo_n "(cached) " >&6
4904else
4905  if test -n "$CC"; then
4906  ac_cv_prog_CC="$CC" # Let the user override the test.
4907else
4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911  IFS=$as_save_IFS
4912  test -z "$as_dir" && as_dir=.
4913    for ac_exec_ext in '' $ac_executable_extensions; do
4914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917    break 2
4918  fi
4919done
4920  done
4921IFS=$as_save_IFS
4922
4923fi
4924fi
4925CC=$ac_cv_prog_CC
4926if test -n "$CC"; then
4927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4928$as_echo "$CC" >&6; }
4929else
4930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931$as_echo "no" >&6; }
4932fi
4933
4934
4935fi
4936if test -z "$ac_cv_prog_CC"; then
4937  ac_ct_CC=$CC
4938  # Extract the first word of "gcc", so it can be a program name with args.
4939set dummy gcc; ac_word=$2
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941$as_echo_n "checking for $ac_word... " >&6; }
4942if ${ac_cv_prog_ac_ct_CC+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  if test -n "$ac_ct_CC"; then
4946  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4947else
4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951  IFS=$as_save_IFS
4952  test -z "$as_dir" && as_dir=.
4953    for ac_exec_ext in '' $ac_executable_extensions; do
4954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955    ac_cv_prog_ac_ct_CC="gcc"
4956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957    break 2
4958  fi
4959done
4960  done
4961IFS=$as_save_IFS
4962
4963fi
4964fi
4965ac_ct_CC=$ac_cv_prog_ac_ct_CC
4966if test -n "$ac_ct_CC"; then
4967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4968$as_echo "$ac_ct_CC" >&6; }
4969else
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971$as_echo "no" >&6; }
4972fi
4973
4974  if test "x$ac_ct_CC" = x; then
4975    CC=""
4976  else
4977    case $cross_compiling:$ac_tool_warned in
4978yes:)
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4981ac_tool_warned=yes ;;
4982esac
4983    CC=$ac_ct_CC
4984  fi
4985else
4986  CC="$ac_cv_prog_CC"
4987fi
4988
4989if test -z "$CC"; then
4990          if test -n "$ac_tool_prefix"; then
4991    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4992set dummy ${ac_tool_prefix}cc; ac_word=$2
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994$as_echo_n "checking for $ac_word... " >&6; }
4995if ${ac_cv_prog_CC+:} false; then :
4996  $as_echo_n "(cached) " >&6
4997else
4998  if test -n "$CC"; then
4999  ac_cv_prog_CC="$CC" # Let the user override the test.
5000else
5001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002for as_dir in $PATH
5003do
5004  IFS=$as_save_IFS
5005  test -z "$as_dir" && as_dir=.
5006    for ac_exec_ext in '' $ac_executable_extensions; do
5007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008    ac_cv_prog_CC="${ac_tool_prefix}cc"
5009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010    break 2
5011  fi
5012done
5013  done
5014IFS=$as_save_IFS
5015
5016fi
5017fi
5018CC=$ac_cv_prog_CC
5019if test -n "$CC"; then
5020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5021$as_echo "$CC" >&6; }
5022else
5023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024$as_echo "no" >&6; }
5025fi
5026
5027
5028  fi
5029fi
5030if test -z "$CC"; then
5031  # Extract the first word of "cc", so it can be a program name with args.
5032set dummy cc; ac_word=$2
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034$as_echo_n "checking for $ac_word... " >&6; }
5035if ${ac_cv_prog_CC+:} false; then :
5036  $as_echo_n "(cached) " >&6
5037else
5038  if test -n "$CC"; then
5039  ac_cv_prog_CC="$CC" # Let the user override the test.
5040else
5041  ac_prog_rejected=no
5042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045  IFS=$as_save_IFS
5046  test -z "$as_dir" && as_dir=.
5047    for ac_exec_ext in '' $ac_executable_extensions; do
5048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5050       ac_prog_rejected=yes
5051       continue
5052     fi
5053    ac_cv_prog_CC="cc"
5054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055    break 2
5056  fi
5057done
5058  done
5059IFS=$as_save_IFS
5060
5061if test $ac_prog_rejected = yes; then
5062  # We found a bogon in the path, so make sure we never use it.
5063  set dummy $ac_cv_prog_CC
5064  shift
5065  if test $# != 0; then
5066    # We chose a different compiler from the bogus one.
5067    # However, it has the same basename, so the bogon will be chosen
5068    # first if we set CC to just the basename; use the full file name.
5069    shift
5070    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5071  fi
5072fi
5073fi
5074fi
5075CC=$ac_cv_prog_CC
5076if test -n "$CC"; then
5077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5078$as_echo "$CC" >&6; }
5079else
5080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081$as_echo "no" >&6; }
5082fi
5083
5084
5085fi
5086if test -z "$CC"; then
5087  if test -n "$ac_tool_prefix"; then
5088  for ac_prog in cl.exe
5089  do
5090    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5091set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093$as_echo_n "checking for $ac_word... " >&6; }
5094if ${ac_cv_prog_CC+:} false; then :
5095  $as_echo_n "(cached) " >&6
5096else
5097  if test -n "$CC"; then
5098  ac_cv_prog_CC="$CC" # Let the user override the test.
5099else
5100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103  IFS=$as_save_IFS
5104  test -z "$as_dir" && as_dir=.
5105    for ac_exec_ext in '' $ac_executable_extensions; do
5106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109    break 2
5110  fi
5111done
5112  done
5113IFS=$as_save_IFS
5114
5115fi
5116fi
5117CC=$ac_cv_prog_CC
5118if test -n "$CC"; then
5119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5120$as_echo "$CC" >&6; }
5121else
5122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123$as_echo "no" >&6; }
5124fi
5125
5126
5127    test -n "$CC" && break
5128  done
5129fi
5130if test -z "$CC"; then
5131  ac_ct_CC=$CC
5132  for ac_prog in cl.exe
5133do
5134  # Extract the first word of "$ac_prog", so it can be a program name with args.
5135set dummy $ac_prog; ac_word=$2
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137$as_echo_n "checking for $ac_word... " >&6; }
5138if ${ac_cv_prog_ac_ct_CC+:} false; then :
5139  $as_echo_n "(cached) " >&6
5140else
5141  if test -n "$ac_ct_CC"; then
5142  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5143else
5144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147  IFS=$as_save_IFS
5148  test -z "$as_dir" && as_dir=.
5149    for ac_exec_ext in '' $ac_executable_extensions; do
5150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151    ac_cv_prog_ac_ct_CC="$ac_prog"
5152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153    break 2
5154  fi
5155done
5156  done
5157IFS=$as_save_IFS
5158
5159fi
5160fi
5161ac_ct_CC=$ac_cv_prog_ac_ct_CC
5162if test -n "$ac_ct_CC"; then
5163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5164$as_echo "$ac_ct_CC" >&6; }
5165else
5166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167$as_echo "no" >&6; }
5168fi
5169
5170
5171  test -n "$ac_ct_CC" && break
5172done
5173
5174  if test "x$ac_ct_CC" = x; then
5175    CC=""
5176  else
5177    case $cross_compiling:$ac_tool_warned in
5178yes:)
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5181ac_tool_warned=yes ;;
5182esac
5183    CC=$ac_ct_CC
5184  fi
5185fi
5186
5187fi
5188
5189
5190test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192as_fn_error $? "no acceptable C compiler found in \$PATH
5193See \`config.log' for more details" "$LINENO" 5; }
5194
5195# Provide some information about the compiler.
5196$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5197set X $ac_compile
5198ac_compiler=$2
5199for ac_option in --version -v -V -qversion; do
5200  { { ac_try="$ac_compiler $ac_option >&5"
5201case "(($ac_try" in
5202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203  *) ac_try_echo=$ac_try;;
5204esac
5205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5206$as_echo "$ac_try_echo"; } >&5
5207  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5208  ac_status=$?
5209  if test -s conftest.err; then
5210    sed '10a\
5211... rest of stderr output deleted ...
5212         10q' conftest.err >conftest.er1
5213    cat conftest.er1 >&5
5214  fi
5215  rm -f conftest.er1 conftest.err
5216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5217  test $ac_status = 0; }
5218done
5219
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5221$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5222if ${ac_cv_c_compiler_gnu+:} false; then :
5223  $as_echo_n "(cached) " >&6
5224else
5225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226/* end confdefs.h.  */
5227
5228int
5229main ()
5230{
5231#ifndef __GNUC__
5232       choke me
5233#endif
5234
5235  ;
5236  return 0;
5237}
5238_ACEOF
5239if ac_fn_c_try_compile "$LINENO"; then :
5240  ac_compiler_gnu=yes
5241else
5242  ac_compiler_gnu=no
5243fi
5244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5245ac_cv_c_compiler_gnu=$ac_compiler_gnu
5246
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5249$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5250if test $ac_compiler_gnu = yes; then
5251  GCC=yes
5252else
5253  GCC=
5254fi
5255ac_test_CFLAGS=${CFLAGS+set}
5256ac_save_CFLAGS=$CFLAGS
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5258$as_echo_n "checking whether $CC accepts -g... " >&6; }
5259if ${ac_cv_prog_cc_g+:} false; then :
5260  $as_echo_n "(cached) " >&6
5261else
5262  ac_save_c_werror_flag=$ac_c_werror_flag
5263   ac_c_werror_flag=yes
5264   ac_cv_prog_cc_g=no
5265   CFLAGS="-g"
5266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h.  */
5268
5269int
5270main ()
5271{
5272
5273  ;
5274  return 0;
5275}
5276_ACEOF
5277if ac_fn_c_try_compile "$LINENO"; then :
5278  ac_cv_prog_cc_g=yes
5279else
5280  CFLAGS=""
5281      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282/* end confdefs.h.  */
5283
5284int
5285main ()
5286{
5287
5288  ;
5289  return 0;
5290}
5291_ACEOF
5292if ac_fn_c_try_compile "$LINENO"; then :
5293
5294else
5295  ac_c_werror_flag=$ac_save_c_werror_flag
5296	 CFLAGS="-g"
5297	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298/* end confdefs.h.  */
5299
5300int
5301main ()
5302{
5303
5304  ;
5305  return 0;
5306}
5307_ACEOF
5308if ac_fn_c_try_compile "$LINENO"; then :
5309  ac_cv_prog_cc_g=yes
5310fi
5311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312fi
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314fi
5315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316   ac_c_werror_flag=$ac_save_c_werror_flag
5317fi
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5319$as_echo "$ac_cv_prog_cc_g" >&6; }
5320if test "$ac_test_CFLAGS" = set; then
5321  CFLAGS=$ac_save_CFLAGS
5322elif test $ac_cv_prog_cc_g = yes; then
5323  if test "$GCC" = yes; then
5324    CFLAGS="-g -O2"
5325  else
5326    CFLAGS="-g"
5327  fi
5328else
5329  if test "$GCC" = yes; then
5330    CFLAGS="-O2"
5331  else
5332    CFLAGS=
5333  fi
5334fi
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5336$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5337if ${ac_cv_prog_cc_c89+:} false; then :
5338  $as_echo_n "(cached) " >&6
5339else
5340  ac_cv_prog_cc_c89=no
5341ac_save_CC=$CC
5342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343/* end confdefs.h.  */
5344#include <stdarg.h>
5345#include <stdio.h>
5346struct stat;
5347/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5348struct buf { int x; };
5349FILE * (*rcsopen) (struct buf *, struct stat *, int);
5350static char *e (p, i)
5351     char **p;
5352     int i;
5353{
5354  return p[i];
5355}
5356static char *f (char * (*g) (char **, int), char **p, ...)
5357{
5358  char *s;
5359  va_list v;
5360  va_start (v,p);
5361  s = g (p, va_arg (v,int));
5362  va_end (v);
5363  return s;
5364}
5365
5366/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5367   function prototypes and stuff, but not '\xHH' hex character constants.
5368   These don't provoke an error unfortunately, instead are silently treated
5369   as 'x'.  The following induces an error, until -std is added to get
5370   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5371   array size at least.  It's necessary to write '\x00'==0 to get something
5372   that's true only with -std.  */
5373int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5374
5375/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5376   inside strings and character constants.  */
5377#define FOO(x) 'x'
5378int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5379
5380int test (int i, double x);
5381struct s1 {int (*f) (int a);};
5382struct s2 {int (*f) (double a);};
5383int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5384int argc;
5385char **argv;
5386int
5387main ()
5388{
5389return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5390  ;
5391  return 0;
5392}
5393_ACEOF
5394for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5395	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5396do
5397  CC="$ac_save_CC $ac_arg"
5398  if ac_fn_c_try_compile "$LINENO"; then :
5399  ac_cv_prog_cc_c89=$ac_arg
5400fi
5401rm -f core conftest.err conftest.$ac_objext
5402  test "x$ac_cv_prog_cc_c89" != "xno" && break
5403done
5404rm -f conftest.$ac_ext
5405CC=$ac_save_CC
5406
5407fi
5408# AC_CACHE_VAL
5409case "x$ac_cv_prog_cc_c89" in
5410  x)
5411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5412$as_echo "none needed" >&6; } ;;
5413  xno)
5414    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5415$as_echo "unsupported" >&6; } ;;
5416  *)
5417    CC="$CC $ac_cv_prog_cc_c89"
5418    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5419$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5420esac
5421if test "x$ac_cv_prog_cc_c89" != xno; then :
5422
5423fi
5424
5425ac_ext=c
5426ac_cpp='$CPP $CPPFLAGS'
5427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429ac_compiler_gnu=$ac_cv_c_compiler_gnu
5430
5431ac_ext=c
5432ac_cpp='$CPP $CPPFLAGS'
5433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5437$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5438if ${am_cv_prog_cc_c_o+:} false; then :
5439  $as_echo_n "(cached) " >&6
5440else
5441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h.  */
5443
5444int
5445main ()
5446{
5447
5448  ;
5449  return 0;
5450}
5451_ACEOF
5452  # Make sure it works both with $CC and with simple cc.
5453  # Following AC_PROG_CC_C_O, we do the test twice because some
5454  # compilers refuse to overwrite an existing .o file with -o,
5455  # though they will create one.
5456  am_cv_prog_cc_c_o=yes
5457  for am_i in 1 2; do
5458    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5459   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } \
5463         && test -f conftest2.$ac_objext; then
5464      : OK
5465    else
5466      am_cv_prog_cc_c_o=no
5467      break
5468    fi
5469  done
5470  rm -f core conftest*
5471  unset am_i
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5474$as_echo "$am_cv_prog_cc_c_o" >&6; }
5475if test "$am_cv_prog_cc_c_o" != yes; then
5476   # Losing compiler, so override with the script.
5477   # FIXME: It is wrong to rewrite CC.
5478   # But if we don't then we get into trouble of one sort or another.
5479   # A longer-term fix would be to have automake use am__CC in this case,
5480   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5481   CC="$am_aux_dir/compile $CC"
5482fi
5483ac_ext=c
5484ac_cpp='$CPP $CPPFLAGS'
5485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487ac_compiler_gnu=$ac_cv_c_compiler_gnu
5488
5489
5490depcc="$CC"   am_compiler_list=
5491
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5493$as_echo_n "checking dependency style of $depcc... " >&6; }
5494if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5498  # We make a subdir and do the tests there.  Otherwise we can end up
5499  # making bogus files that we don't know about and never remove.  For
5500  # instance it was reported that on HP-UX the gcc test will end up
5501  # making a dummy file named 'D' -- because '-MD' means "put the output
5502  # in D".
5503  rm -rf conftest.dir
5504  mkdir conftest.dir
5505  # Copy depcomp to subdir because otherwise we won't find it if we're
5506  # using a relative directory.
5507  cp "$am_depcomp" conftest.dir
5508  cd conftest.dir
5509  # We will build objects and dependencies in a subdirectory because
5510  # it helps to detect inapplicable dependency modes.  For instance
5511  # both Tru64's cc and ICC support -MD to output dependencies as a
5512  # side effect of compilation, but ICC will put the dependencies in
5513  # the current directory while Tru64 will put them in the object
5514  # directory.
5515  mkdir sub
5516
5517  am_cv_CC_dependencies_compiler_type=none
5518  if test "$am_compiler_list" = ""; then
5519     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5520  fi
5521  am__universal=false
5522  case " $depcc " in #(
5523     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5524     esac
5525
5526  for depmode in $am_compiler_list; do
5527    # Setup a source with many dependencies, because some compilers
5528    # like to wrap large dependency lists on column 80 (with \), and
5529    # we should not choose a depcomp mode which is confused by this.
5530    #
5531    # We need to recreate these files for each test, as the compiler may
5532    # overwrite some of them when testing with obscure command lines.
5533    # This happens at least with the AIX C compiler.
5534    : > sub/conftest.c
5535    for i in 1 2 3 4 5 6; do
5536      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5537      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5538      # Solaris 10 /bin/sh.
5539      echo '/* dummy */' > sub/conftst$i.h
5540    done
5541    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5542
5543    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5544    # mode.  It turns out that the SunPro C++ compiler does not properly
5545    # handle '-M -o', and we need to detect this.  Also, some Intel
5546    # versions had trouble with output in subdirs.
5547    am__obj=sub/conftest.${OBJEXT-o}
5548    am__minus_obj="-o $am__obj"
5549    case $depmode in
5550    gcc)
5551      # This depmode causes a compiler race in universal mode.
5552      test "$am__universal" = false || continue
5553      ;;
5554    nosideeffect)
5555      # After this tag, mechanisms are not by side-effect, so they'll
5556      # only be used when explicitly requested.
5557      if test "x$enable_dependency_tracking" = xyes; then
5558	continue
5559      else
5560	break
5561      fi
5562      ;;
5563    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5564      # This compiler won't grok '-c -o', but also, the minuso test has
5565      # not run yet.  These depmodes are late enough in the game, and
5566      # so weak that their functioning should not be impacted.
5567      am__obj=conftest.${OBJEXT-o}
5568      am__minus_obj=
5569      ;;
5570    none) break ;;
5571    esac
5572    if depmode=$depmode \
5573       source=sub/conftest.c object=$am__obj \
5574       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5575       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5576         >/dev/null 2>conftest.err &&
5577       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5578       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5579       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5580       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5581      # icc doesn't choke on unknown options, it will just issue warnings
5582      # or remarks (even with -Werror).  So we grep stderr for any message
5583      # that says an option was ignored or not supported.
5584      # When given -MP, icc 7.0 and 7.1 complain thusly:
5585      #   icc: Command line warning: ignoring option '-M'; no argument required
5586      # The diagnosis changed in icc 8.0:
5587      #   icc: Command line remark: option '-MP' not supported
5588      if (grep 'ignoring option' conftest.err ||
5589          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5590        am_cv_CC_dependencies_compiler_type=$depmode
5591        break
5592      fi
5593    fi
5594  done
5595
5596  cd ..
5597  rm -rf conftest.dir
5598else
5599  am_cv_CC_dependencies_compiler_type=none
5600fi
5601
5602fi
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5604$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5605CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5606
5607 if
5608  test "x$enable_dependency_tracking" != xno \
5609  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5610  am__fastdepCC_TRUE=
5611  am__fastdepCC_FALSE='#'
5612else
5613  am__fastdepCC_TRUE='#'
5614  am__fastdepCC_FALSE=
5615fi
5616
5617
5618ac_ext=cpp
5619ac_cpp='$CXXCPP $CPPFLAGS'
5620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5623if test -z "$CXX"; then
5624  if test -n "$CCC"; then
5625    CXX=$CCC
5626  else
5627    if test -n "$ac_tool_prefix"; then
5628  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5629  do
5630    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633$as_echo_n "checking for $ac_word... " >&6; }
5634if ${ac_cv_prog_CXX+:} false; then :
5635  $as_echo_n "(cached) " >&6
5636else
5637  if test -n "$CXX"; then
5638  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5639else
5640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641for as_dir in $PATH
5642do
5643  IFS=$as_save_IFS
5644  test -z "$as_dir" && as_dir=.
5645    for ac_exec_ext in '' $ac_executable_extensions; do
5646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649    break 2
5650  fi
5651done
5652  done
5653IFS=$as_save_IFS
5654
5655fi
5656fi
5657CXX=$ac_cv_prog_CXX
5658if test -n "$CXX"; then
5659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5660$as_echo "$CXX" >&6; }
5661else
5662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663$as_echo "no" >&6; }
5664fi
5665
5666
5667    test -n "$CXX" && break
5668  done
5669fi
5670if test -z "$CXX"; then
5671  ac_ct_CXX=$CXX
5672  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5673do
5674  # Extract the first word of "$ac_prog", so it can be a program name with args.
5675set dummy $ac_prog; ac_word=$2
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677$as_echo_n "checking for $ac_word... " >&6; }
5678if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5679  $as_echo_n "(cached) " >&6
5680else
5681  if test -n "$ac_ct_CXX"; then
5682  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5683else
5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685for as_dir in $PATH
5686do
5687  IFS=$as_save_IFS
5688  test -z "$as_dir" && as_dir=.
5689    for ac_exec_ext in '' $ac_executable_extensions; do
5690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691    ac_cv_prog_ac_ct_CXX="$ac_prog"
5692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693    break 2
5694  fi
5695done
5696  done
5697IFS=$as_save_IFS
5698
5699fi
5700fi
5701ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5702if test -n "$ac_ct_CXX"; then
5703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5704$as_echo "$ac_ct_CXX" >&6; }
5705else
5706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707$as_echo "no" >&6; }
5708fi
5709
5710
5711  test -n "$ac_ct_CXX" && break
5712done
5713
5714  if test "x$ac_ct_CXX" = x; then
5715    CXX="g++"
5716  else
5717    case $cross_compiling:$ac_tool_warned in
5718yes:)
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5721ac_tool_warned=yes ;;
5722esac
5723    CXX=$ac_ct_CXX
5724  fi
5725fi
5726
5727  fi
5728fi
5729# Provide some information about the compiler.
5730$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5731set X $ac_compile
5732ac_compiler=$2
5733for ac_option in --version -v -V -qversion; do
5734  { { ac_try="$ac_compiler $ac_option >&5"
5735case "(($ac_try" in
5736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737  *) ac_try_echo=$ac_try;;
5738esac
5739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5740$as_echo "$ac_try_echo"; } >&5
5741  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5742  ac_status=$?
5743  if test -s conftest.err; then
5744    sed '10a\
5745... rest of stderr output deleted ...
5746         10q' conftest.err >conftest.er1
5747    cat conftest.er1 >&5
5748  fi
5749  rm -f conftest.er1 conftest.err
5750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5751  test $ac_status = 0; }
5752done
5753
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5755$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5756if ${ac_cv_cxx_compiler_gnu+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761
5762int
5763main ()
5764{
5765#ifndef __GNUC__
5766       choke me
5767#endif
5768
5769  ;
5770  return 0;
5771}
5772_ACEOF
5773if ac_fn_cxx_try_compile "$LINENO"; then :
5774  ac_compiler_gnu=yes
5775else
5776  ac_compiler_gnu=no
5777fi
5778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5780
5781fi
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5783$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5784if test $ac_compiler_gnu = yes; then
5785  GXX=yes
5786else
5787  GXX=
5788fi
5789ac_test_CXXFLAGS=${CXXFLAGS+set}
5790ac_save_CXXFLAGS=$CXXFLAGS
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5792$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5793if ${ac_cv_prog_cxx_g+:} false; then :
5794  $as_echo_n "(cached) " >&6
5795else
5796  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5797   ac_cxx_werror_flag=yes
5798   ac_cv_prog_cxx_g=no
5799   CXXFLAGS="-g"
5800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801/* end confdefs.h.  */
5802
5803int
5804main ()
5805{
5806
5807  ;
5808  return 0;
5809}
5810_ACEOF
5811if ac_fn_cxx_try_compile "$LINENO"; then :
5812  ac_cv_prog_cxx_g=yes
5813else
5814  CXXFLAGS=""
5815      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h.  */
5817
5818int
5819main ()
5820{
5821
5822  ;
5823  return 0;
5824}
5825_ACEOF
5826if ac_fn_cxx_try_compile "$LINENO"; then :
5827
5828else
5829  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5830	 CXXFLAGS="-g"
5831	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h.  */
5833
5834int
5835main ()
5836{
5837
5838  ;
5839  return 0;
5840}
5841_ACEOF
5842if ac_fn_cxx_try_compile "$LINENO"; then :
5843  ac_cv_prog_cxx_g=yes
5844fi
5845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846fi
5847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848fi
5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5851fi
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5853$as_echo "$ac_cv_prog_cxx_g" >&6; }
5854if test "$ac_test_CXXFLAGS" = set; then
5855  CXXFLAGS=$ac_save_CXXFLAGS
5856elif test $ac_cv_prog_cxx_g = yes; then
5857  if test "$GXX" = yes; then
5858    CXXFLAGS="-g -O2"
5859  else
5860    CXXFLAGS="-g"
5861  fi
5862else
5863  if test "$GXX" = yes; then
5864    CXXFLAGS="-O2"
5865  else
5866    CXXFLAGS=
5867  fi
5868fi
5869ac_ext=c
5870ac_cpp='$CPP $CPPFLAGS'
5871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874
5875depcc="$CXX"  am_compiler_list=
5876
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5878$as_echo_n "checking dependency style of $depcc... " >&6; }
5879if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5880  $as_echo_n "(cached) " >&6
5881else
5882  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5883  # We make a subdir and do the tests there.  Otherwise we can end up
5884  # making bogus files that we don't know about and never remove.  For
5885  # instance it was reported that on HP-UX the gcc test will end up
5886  # making a dummy file named 'D' -- because '-MD' means "put the output
5887  # in D".
5888  rm -rf conftest.dir
5889  mkdir conftest.dir
5890  # Copy depcomp to subdir because otherwise we won't find it if we're
5891  # using a relative directory.
5892  cp "$am_depcomp" conftest.dir
5893  cd conftest.dir
5894  # We will build objects and dependencies in a subdirectory because
5895  # it helps to detect inapplicable dependency modes.  For instance
5896  # both Tru64's cc and ICC support -MD to output dependencies as a
5897  # side effect of compilation, but ICC will put the dependencies in
5898  # the current directory while Tru64 will put them in the object
5899  # directory.
5900  mkdir sub
5901
5902  am_cv_CXX_dependencies_compiler_type=none
5903  if test "$am_compiler_list" = ""; then
5904     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5905  fi
5906  am__universal=false
5907  case " $depcc " in #(
5908     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5909     esac
5910
5911  for depmode in $am_compiler_list; do
5912    # Setup a source with many dependencies, because some compilers
5913    # like to wrap large dependency lists on column 80 (with \), and
5914    # we should not choose a depcomp mode which is confused by this.
5915    #
5916    # We need to recreate these files for each test, as the compiler may
5917    # overwrite some of them when testing with obscure command lines.
5918    # This happens at least with the AIX C compiler.
5919    : > sub/conftest.c
5920    for i in 1 2 3 4 5 6; do
5921      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5922      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5923      # Solaris 10 /bin/sh.
5924      echo '/* dummy */' > sub/conftst$i.h
5925    done
5926    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5927
5928    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5929    # mode.  It turns out that the SunPro C++ compiler does not properly
5930    # handle '-M -o', and we need to detect this.  Also, some Intel
5931    # versions had trouble with output in subdirs.
5932    am__obj=sub/conftest.${OBJEXT-o}
5933    am__minus_obj="-o $am__obj"
5934    case $depmode in
5935    gcc)
5936      # This depmode causes a compiler race in universal mode.
5937      test "$am__universal" = false || continue
5938      ;;
5939    nosideeffect)
5940      # After this tag, mechanisms are not by side-effect, so they'll
5941      # only be used when explicitly requested.
5942      if test "x$enable_dependency_tracking" = xyes; then
5943	continue
5944      else
5945	break
5946      fi
5947      ;;
5948    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5949      # This compiler won't grok '-c -o', but also, the minuso test has
5950      # not run yet.  These depmodes are late enough in the game, and
5951      # so weak that their functioning should not be impacted.
5952      am__obj=conftest.${OBJEXT-o}
5953      am__minus_obj=
5954      ;;
5955    none) break ;;
5956    esac
5957    if depmode=$depmode \
5958       source=sub/conftest.c object=$am__obj \
5959       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5960       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5961         >/dev/null 2>conftest.err &&
5962       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5963       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5964       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5965       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5966      # icc doesn't choke on unknown options, it will just issue warnings
5967      # or remarks (even with -Werror).  So we grep stderr for any message
5968      # that says an option was ignored or not supported.
5969      # When given -MP, icc 7.0 and 7.1 complain thusly:
5970      #   icc: Command line warning: ignoring option '-M'; no argument required
5971      # The diagnosis changed in icc 8.0:
5972      #   icc: Command line remark: option '-MP' not supported
5973      if (grep 'ignoring option' conftest.err ||
5974          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5975        am_cv_CXX_dependencies_compiler_type=$depmode
5976        break
5977      fi
5978    fi
5979  done
5980
5981  cd ..
5982  rm -rf conftest.dir
5983else
5984  am_cv_CXX_dependencies_compiler_type=none
5985fi
5986
5987fi
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5989$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5990CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5991
5992 if
5993  test "x$enable_dependency_tracking" != xno \
5994  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5995  am__fastdepCXX_TRUE=
5996  am__fastdepCXX_FALSE='#'
5997else
5998  am__fastdepCXX_TRUE='#'
5999  am__fastdepCXX_FALSE=
6000fi
6001
6002
6003
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6005$as_echo_n "checking for library containing strerror... " >&6; }
6006if ${ac_cv_search_strerror+:} false; then :
6007  $as_echo_n "(cached) " >&6
6008else
6009  ac_func_search_save_LIBS=$LIBS
6010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011/* end confdefs.h.  */
6012
6013/* Override any GCC internal prototype to avoid an error.
6014   Use char because int might match the return type of a GCC
6015   builtin and then its argument prototype would still apply.  */
6016#ifdef __cplusplus
6017extern "C"
6018#endif
6019char strerror ();
6020int
6021main ()
6022{
6023return strerror ();
6024  ;
6025  return 0;
6026}
6027_ACEOF
6028for ac_lib in '' cposix; do
6029  if test -z "$ac_lib"; then
6030    ac_res="none required"
6031  else
6032    ac_res=-l$ac_lib
6033    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6034  fi
6035  if ac_fn_c_try_link "$LINENO"; then :
6036  ac_cv_search_strerror=$ac_res
6037fi
6038rm -f core conftest.err conftest.$ac_objext \
6039    conftest$ac_exeext
6040  if ${ac_cv_search_strerror+:} false; then :
6041  break
6042fi
6043done
6044if ${ac_cv_search_strerror+:} false; then :
6045
6046else
6047  ac_cv_search_strerror=no
6048fi
6049rm conftest.$ac_ext
6050LIBS=$ac_func_search_save_LIBS
6051fi
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6053$as_echo "$ac_cv_search_strerror" >&6; }
6054ac_res=$ac_cv_search_strerror
6055if test "$ac_res" != no; then :
6056  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6057
6058fi
6059
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6061$as_echo_n "checking for ANSI C header files... " >&6; }
6062if ${ac_cv_header_stdc+:} false; then :
6063  $as_echo_n "(cached) " >&6
6064else
6065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h.  */
6067#include <stdlib.h>
6068#include <stdarg.h>
6069#include <string.h>
6070#include <float.h>
6071
6072int
6073main ()
6074{
6075
6076  ;
6077  return 0;
6078}
6079_ACEOF
6080if ac_fn_c_try_compile "$LINENO"; then :
6081  ac_cv_header_stdc=yes
6082else
6083  ac_cv_header_stdc=no
6084fi
6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086
6087if test $ac_cv_header_stdc = yes; then
6088  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h.  */
6091#include <string.h>
6092
6093_ACEOF
6094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6095  $EGREP "memchr" >/dev/null 2>&1; then :
6096
6097else
6098  ac_cv_header_stdc=no
6099fi
6100rm -f conftest*
6101
6102fi
6103
6104if test $ac_cv_header_stdc = yes; then
6105  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* end confdefs.h.  */
6108#include <stdlib.h>
6109
6110_ACEOF
6111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6112  $EGREP "free" >/dev/null 2>&1; then :
6113
6114else
6115  ac_cv_header_stdc=no
6116fi
6117rm -f conftest*
6118
6119fi
6120
6121if test $ac_cv_header_stdc = yes; then
6122  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6123  if test "$cross_compiling" = yes; then :
6124  :
6125else
6126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h.  */
6128#include <ctype.h>
6129#include <stdlib.h>
6130#if ((' ' & 0x0FF) == 0x020)
6131# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6132# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6133#else
6134# define ISLOWER(c) \
6135		   (('a' <= (c) && (c) <= 'i') \
6136		     || ('j' <= (c) && (c) <= 'r') \
6137		     || ('s' <= (c) && (c) <= 'z'))
6138# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6139#endif
6140
6141#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6142int
6143main ()
6144{
6145  int i;
6146  for (i = 0; i < 256; i++)
6147    if (XOR (islower (i), ISLOWER (i))
6148	|| toupper (i) != TOUPPER (i))
6149      return 2;
6150  return 0;
6151}
6152_ACEOF
6153if ac_fn_c_try_run "$LINENO"; then :
6154
6155else
6156  ac_cv_header_stdc=no
6157fi
6158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6159  conftest.$ac_objext conftest.beam conftest.$ac_ext
6160fi
6161
6162fi
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6165$as_echo "$ac_cv_header_stdc" >&6; }
6166if test $ac_cv_header_stdc = yes; then
6167
6168$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6169
6170fi
6171
6172case `pwd` in
6173  *\ * | *\	*)
6174    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6175$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6176esac
6177
6178
6179
6180macro_version='2.4.6'
6181macro_revision='2.4.6'
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195ltmain=$ac_aux_dir/ltmain.sh
6196
6197# Make sure we can run config.sub.
6198$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6199  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6200
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6202$as_echo_n "checking build system type... " >&6; }
6203if ${ac_cv_build+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  ac_build_alias=$build_alias
6207test "x$ac_build_alias" = x &&
6208  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6209test "x$ac_build_alias" = x &&
6210  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6211ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6212  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6213
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6216$as_echo "$ac_cv_build" >&6; }
6217case $ac_cv_build in
6218*-*-*) ;;
6219*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6220esac
6221build=$ac_cv_build
6222ac_save_IFS=$IFS; IFS='-'
6223set x $ac_cv_build
6224shift
6225build_cpu=$1
6226build_vendor=$2
6227shift; shift
6228# Remember, the first character of IFS is used to create $*,
6229# except with old shells:
6230build_os=$*
6231IFS=$ac_save_IFS
6232case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6233
6234
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6236$as_echo_n "checking host system type... " >&6; }
6237if ${ac_cv_host+:} false; then :
6238  $as_echo_n "(cached) " >&6
6239else
6240  if test "x$host_alias" = x; then
6241  ac_cv_host=$ac_cv_build
6242else
6243  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6244    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6245fi
6246
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6249$as_echo "$ac_cv_host" >&6; }
6250case $ac_cv_host in
6251*-*-*) ;;
6252*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6253esac
6254host=$ac_cv_host
6255ac_save_IFS=$IFS; IFS='-'
6256set x $ac_cv_host
6257shift
6258host_cpu=$1
6259host_vendor=$2
6260shift; shift
6261# Remember, the first character of IFS is used to create $*,
6262# except with old shells:
6263host_os=$*
6264IFS=$ac_save_IFS
6265case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6266
6267
6268# Backslashify metacharacters that are still active within
6269# double-quoted strings.
6270sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6271
6272# Same as above, but do not quote variable references.
6273double_quote_subst='s/\(["`\\]\)/\\\1/g'
6274
6275# Sed substitution to delay expansion of an escaped shell variable in a
6276# double_quote_subst'ed string.
6277delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6278
6279# Sed substitution to delay expansion of an escaped single quote.
6280delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6281
6282# Sed substitution to avoid accidental globbing in evaled expressions
6283no_glob_subst='s/\*/\\\*/g'
6284
6285ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6286ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6287ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6288
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6290$as_echo_n "checking how to print strings... " >&6; }
6291# Test print first, because it will be a builtin if present.
6292if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6293   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6294  ECHO='print -r --'
6295elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6296  ECHO='printf %s\n'
6297else
6298  # Use this function as a fallback that always works.
6299  func_fallback_echo ()
6300  {
6301    eval 'cat <<_LTECHO_EOF
6302$1
6303_LTECHO_EOF'
6304  }
6305  ECHO='func_fallback_echo'
6306fi
6307
6308# func_echo_all arg...
6309# Invoke $ECHO with all args, space-separated.
6310func_echo_all ()
6311{
6312    $ECHO ""
6313}
6314
6315case $ECHO in
6316  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6317$as_echo "printf" >&6; } ;;
6318  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6319$as_echo "print -r" >&6; } ;;
6320  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6321$as_echo "cat" >&6; } ;;
6322esac
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6338$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6339if ${ac_cv_path_SED+:} false; then :
6340  $as_echo_n "(cached) " >&6
6341else
6342            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6343     for ac_i in 1 2 3 4 5 6 7; do
6344       ac_script="$ac_script$as_nl$ac_script"
6345     done
6346     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6347     { ac_script=; unset ac_script;}
6348     if test -z "$SED"; then
6349  ac_path_SED_found=false
6350  # Loop through the user's path and test for each of PROGNAME-LIST
6351  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354  IFS=$as_save_IFS
6355  test -z "$as_dir" && as_dir=.
6356    for ac_prog in sed gsed; do
6357    for ac_exec_ext in '' $ac_executable_extensions; do
6358      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6359      as_fn_executable_p "$ac_path_SED" || continue
6360# Check for GNU ac_path_SED and select it if it is found.
6361  # Check for GNU $ac_path_SED
6362case `"$ac_path_SED" --version 2>&1` in
6363*GNU*)
6364  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6365*)
6366  ac_count=0
6367  $as_echo_n 0123456789 >"conftest.in"
6368  while :
6369  do
6370    cat "conftest.in" "conftest.in" >"conftest.tmp"
6371    mv "conftest.tmp" "conftest.in"
6372    cp "conftest.in" "conftest.nl"
6373    $as_echo '' >> "conftest.nl"
6374    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6375    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6376    as_fn_arith $ac_count + 1 && ac_count=$as_val
6377    if test $ac_count -gt ${ac_path_SED_max-0}; then
6378      # Best one so far, save it but keep looking for a better one
6379      ac_cv_path_SED="$ac_path_SED"
6380      ac_path_SED_max=$ac_count
6381    fi
6382    # 10*(2^10) chars as input seems more than enough
6383    test $ac_count -gt 10 && break
6384  done
6385  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6386esac
6387
6388      $ac_path_SED_found && break 3
6389    done
6390  done
6391  done
6392IFS=$as_save_IFS
6393  if test -z "$ac_cv_path_SED"; then
6394    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6395  fi
6396else
6397  ac_cv_path_SED=$SED
6398fi
6399
6400fi
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6402$as_echo "$ac_cv_path_SED" >&6; }
6403 SED="$ac_cv_path_SED"
6404  rm -f conftest.sed
6405
6406test -z "$SED" && SED=sed
6407Xsed="$SED -e 1s/^X//"
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6420$as_echo_n "checking for fgrep... " >&6; }
6421if ${ac_cv_path_FGREP+:} false; then :
6422  $as_echo_n "(cached) " >&6
6423else
6424  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6425   then ac_cv_path_FGREP="$GREP -F"
6426   else
6427     if test -z "$FGREP"; then
6428  ac_path_FGREP_found=false
6429  # Loop through the user's path and test for each of PROGNAME-LIST
6430  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6432do
6433  IFS=$as_save_IFS
6434  test -z "$as_dir" && as_dir=.
6435    for ac_prog in fgrep; do
6436    for ac_exec_ext in '' $ac_executable_extensions; do
6437      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6438      as_fn_executable_p "$ac_path_FGREP" || continue
6439# Check for GNU ac_path_FGREP and select it if it is found.
6440  # Check for GNU $ac_path_FGREP
6441case `"$ac_path_FGREP" --version 2>&1` in
6442*GNU*)
6443  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6444*)
6445  ac_count=0
6446  $as_echo_n 0123456789 >"conftest.in"
6447  while :
6448  do
6449    cat "conftest.in" "conftest.in" >"conftest.tmp"
6450    mv "conftest.tmp" "conftest.in"
6451    cp "conftest.in" "conftest.nl"
6452    $as_echo 'FGREP' >> "conftest.nl"
6453    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6454    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6455    as_fn_arith $ac_count + 1 && ac_count=$as_val
6456    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6457      # Best one so far, save it but keep looking for a better one
6458      ac_cv_path_FGREP="$ac_path_FGREP"
6459      ac_path_FGREP_max=$ac_count
6460    fi
6461    # 10*(2^10) chars as input seems more than enough
6462    test $ac_count -gt 10 && break
6463  done
6464  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6465esac
6466
6467      $ac_path_FGREP_found && break 3
6468    done
6469  done
6470  done
6471IFS=$as_save_IFS
6472  if test -z "$ac_cv_path_FGREP"; then
6473    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6474  fi
6475else
6476  ac_cv_path_FGREP=$FGREP
6477fi
6478
6479   fi
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6482$as_echo "$ac_cv_path_FGREP" >&6; }
6483 FGREP="$ac_cv_path_FGREP"
6484
6485
6486test -z "$GREP" && GREP=grep
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506# Check whether --with-gnu-ld was given.
6507if test "${with_gnu_ld+set}" = set; then :
6508  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6509else
6510  with_gnu_ld=no
6511fi
6512
6513ac_prog=ld
6514if test yes = "$GCC"; then
6515  # Check if gcc -print-prog-name=ld gives a path.
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6517$as_echo_n "checking for ld used by $CC... " >&6; }
6518  case $host in
6519  *-*-mingw*)
6520    # gcc leaves a trailing carriage return, which upsets mingw
6521    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6522  *)
6523    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6524  esac
6525  case $ac_prog in
6526    # Accept absolute paths.
6527    [\\/]* | ?:[\\/]*)
6528      re_direlt='/[^/][^/]*/\.\./'
6529      # Canonicalize the pathname of ld
6530      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6531      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6532	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6533      done
6534      test -z "$LD" && LD=$ac_prog
6535      ;;
6536  "")
6537    # If it fails, then pretend we aren't using GCC.
6538    ac_prog=ld
6539    ;;
6540  *)
6541    # If it is relative, then search for the first ld in PATH.
6542    with_gnu_ld=unknown
6543    ;;
6544  esac
6545elif test yes = "$with_gnu_ld"; then
6546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6547$as_echo_n "checking for GNU ld... " >&6; }
6548else
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6550$as_echo_n "checking for non-GNU ld... " >&6; }
6551fi
6552if ${lt_cv_path_LD+:} false; then :
6553  $as_echo_n "(cached) " >&6
6554else
6555  if test -z "$LD"; then
6556  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6557  for ac_dir in $PATH; do
6558    IFS=$lt_save_ifs
6559    test -z "$ac_dir" && ac_dir=.
6560    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6561      lt_cv_path_LD=$ac_dir/$ac_prog
6562      # Check to see if the program is GNU ld.  I'd rather use --version,
6563      # but apparently some variants of GNU ld only accept -v.
6564      # Break only if it was the GNU/non-GNU ld that we prefer.
6565      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6566      *GNU* | *'with BFD'*)
6567	test no != "$with_gnu_ld" && break
6568	;;
6569      *)
6570	test yes != "$with_gnu_ld" && break
6571	;;
6572      esac
6573    fi
6574  done
6575  IFS=$lt_save_ifs
6576else
6577  lt_cv_path_LD=$LD # Let the user override the test with a path.
6578fi
6579fi
6580
6581LD=$lt_cv_path_LD
6582if test -n "$LD"; then
6583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6584$as_echo "$LD" >&6; }
6585else
6586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587$as_echo "no" >&6; }
6588fi
6589test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6591$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6592if ${lt_cv_prog_gnu_ld+:} false; then :
6593  $as_echo_n "(cached) " >&6
6594else
6595  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6596case `$LD -v 2>&1 </dev/null` in
6597*GNU* | *'with BFD'*)
6598  lt_cv_prog_gnu_ld=yes
6599  ;;
6600*)
6601  lt_cv_prog_gnu_ld=no
6602  ;;
6603esac
6604fi
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6606$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6607with_gnu_ld=$lt_cv_prog_gnu_ld
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6618$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6619if ${lt_cv_path_NM+:} false; then :
6620  $as_echo_n "(cached) " >&6
6621else
6622  if test -n "$NM"; then
6623  # Let the user override the test.
6624  lt_cv_path_NM=$NM
6625else
6626  lt_nm_to_check=${ac_tool_prefix}nm
6627  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6628    lt_nm_to_check="$lt_nm_to_check nm"
6629  fi
6630  for lt_tmp_nm in $lt_nm_to_check; do
6631    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6632    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6633      IFS=$lt_save_ifs
6634      test -z "$ac_dir" && ac_dir=.
6635      tmp_nm=$ac_dir/$lt_tmp_nm
6636      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6637	# Check to see if the nm accepts a BSD-compat flag.
6638	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6639	#   nm: unknown option "B" ignored
6640	# Tru64's nm complains that /dev/null is an invalid object file
6641	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6642	case $build_os in
6643	mingw*) lt_bad_file=conftest.nm/nofile ;;
6644	*) lt_bad_file=/dev/null ;;
6645	esac
6646	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6647	*$lt_bad_file* | *'Invalid file or object type'*)
6648	  lt_cv_path_NM="$tmp_nm -B"
6649	  break 2
6650	  ;;
6651	*)
6652	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6653	  */dev/null*)
6654	    lt_cv_path_NM="$tmp_nm -p"
6655	    break 2
6656	    ;;
6657	  *)
6658	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6659	    continue # so that we can try to find one that supports BSD flags
6660	    ;;
6661	  esac
6662	  ;;
6663	esac
6664      fi
6665    done
6666    IFS=$lt_save_ifs
6667  done
6668  : ${lt_cv_path_NM=no}
6669fi
6670fi
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6672$as_echo "$lt_cv_path_NM" >&6; }
6673if test no != "$lt_cv_path_NM"; then
6674  NM=$lt_cv_path_NM
6675else
6676  # Didn't find any BSD compatible name lister, look for dumpbin.
6677  if test -n "$DUMPBIN"; then :
6678    # Let the user override the test.
6679  else
6680    if test -n "$ac_tool_prefix"; then
6681  for ac_prog in dumpbin "link -dump"
6682  do
6683    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6684set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686$as_echo_n "checking for $ac_word... " >&6; }
6687if ${ac_cv_prog_DUMPBIN+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  if test -n "$DUMPBIN"; then
6691  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6692else
6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696  IFS=$as_save_IFS
6697  test -z "$as_dir" && as_dir=.
6698    for ac_exec_ext in '' $ac_executable_extensions; do
6699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6700    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702    break 2
6703  fi
6704done
6705  done
6706IFS=$as_save_IFS
6707
6708fi
6709fi
6710DUMPBIN=$ac_cv_prog_DUMPBIN
6711if test -n "$DUMPBIN"; then
6712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6713$as_echo "$DUMPBIN" >&6; }
6714else
6715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716$as_echo "no" >&6; }
6717fi
6718
6719
6720    test -n "$DUMPBIN" && break
6721  done
6722fi
6723if test -z "$DUMPBIN"; then
6724  ac_ct_DUMPBIN=$DUMPBIN
6725  for ac_prog in dumpbin "link -dump"
6726do
6727  # Extract the first word of "$ac_prog", so it can be a program name with args.
6728set dummy $ac_prog; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
6731if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6732  $as_echo_n "(cached) " >&6
6733else
6734  if test -n "$ac_ct_DUMPBIN"; then
6735  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740  IFS=$as_save_IFS
6741  test -z "$as_dir" && as_dir=.
6742    for ac_exec_ext in '' $ac_executable_extensions; do
6743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749  done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6755if test -n "$ac_ct_DUMPBIN"; then
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6757$as_echo "$ac_ct_DUMPBIN" >&6; }
6758else
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760$as_echo "no" >&6; }
6761fi
6762
6763
6764  test -n "$ac_ct_DUMPBIN" && break
6765done
6766
6767  if test "x$ac_ct_DUMPBIN" = x; then
6768    DUMPBIN=":"
6769  else
6770    case $cross_compiling:$ac_tool_warned in
6771yes:)
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774ac_tool_warned=yes ;;
6775esac
6776    DUMPBIN=$ac_ct_DUMPBIN
6777  fi
6778fi
6779
6780    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6781    *COFF*)
6782      DUMPBIN="$DUMPBIN -symbols -headers"
6783      ;;
6784    *)
6785      DUMPBIN=:
6786      ;;
6787    esac
6788  fi
6789
6790  if test : != "$DUMPBIN"; then
6791    NM=$DUMPBIN
6792  fi
6793fi
6794test -z "$NM" && NM=nm
6795
6796
6797
6798
6799
6800
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6802$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6803if ${lt_cv_nm_interface+:} false; then :
6804  $as_echo_n "(cached) " >&6
6805else
6806  lt_cv_nm_interface="BSD nm"
6807  echo "int some_variable = 0;" > conftest.$ac_ext
6808  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6809  (eval "$ac_compile" 2>conftest.err)
6810  cat conftest.err >&5
6811  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6812  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6813  cat conftest.err >&5
6814  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6815  cat conftest.out >&5
6816  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6817    lt_cv_nm_interface="MS dumpbin"
6818  fi
6819  rm -f conftest*
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6822$as_echo "$lt_cv_nm_interface" >&6; }
6823
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6825$as_echo_n "checking whether ln -s works... " >&6; }
6826LN_S=$as_ln_s
6827if test "$LN_S" = "ln -s"; then
6828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6829$as_echo "yes" >&6; }
6830else
6831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6832$as_echo "no, using $LN_S" >&6; }
6833fi
6834
6835# find the maximum length of command line arguments
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6837$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6838if ${lt_cv_sys_max_cmd_len+:} false; then :
6839  $as_echo_n "(cached) " >&6
6840else
6841    i=0
6842  teststring=ABCD
6843
6844  case $build_os in
6845  msdosdjgpp*)
6846    # On DJGPP, this test can blow up pretty badly due to problems in libc
6847    # (any single argument exceeding 2000 bytes causes a buffer overrun
6848    # during glob expansion).  Even if it were fixed, the result of this
6849    # check would be larger than it should be.
6850    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6851    ;;
6852
6853  gnu*)
6854    # Under GNU Hurd, this test is not required because there is
6855    # no limit to the length of command line arguments.
6856    # Libtool will interpret -1 as no limit whatsoever
6857    lt_cv_sys_max_cmd_len=-1;
6858    ;;
6859
6860  cygwin* | mingw* | cegcc*)
6861    # On Win9x/ME, this test blows up -- it succeeds, but takes
6862    # about 5 minutes as the teststring grows exponentially.
6863    # Worse, since 9x/ME are not pre-emptively multitasking,
6864    # you end up with a "frozen" computer, even though with patience
6865    # the test eventually succeeds (with a max line length of 256k).
6866    # Instead, let's just punt: use the minimum linelength reported by
6867    # all of the supported platforms: 8192 (on NT/2K/XP).
6868    lt_cv_sys_max_cmd_len=8192;
6869    ;;
6870
6871  mint*)
6872    # On MiNT this can take a long time and run out of memory.
6873    lt_cv_sys_max_cmd_len=8192;
6874    ;;
6875
6876  amigaos*)
6877    # On AmigaOS with pdksh, this test takes hours, literally.
6878    # So we just punt and use a minimum line length of 8192.
6879    lt_cv_sys_max_cmd_len=8192;
6880    ;;
6881
6882  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6883    # This has been around since 386BSD, at least.  Likely further.
6884    if test -x /sbin/sysctl; then
6885      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6886    elif test -x /usr/sbin/sysctl; then
6887      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6888    else
6889      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6890    fi
6891    # And add a safety zone
6892    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6893    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6894    ;;
6895
6896  interix*)
6897    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6898    lt_cv_sys_max_cmd_len=196608
6899    ;;
6900
6901  os2*)
6902    # The test takes a long time on OS/2.
6903    lt_cv_sys_max_cmd_len=8192
6904    ;;
6905
6906  osf*)
6907    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6908    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6909    # nice to cause kernel panics so lets avoid the loop below.
6910    # First set a reasonable default.
6911    lt_cv_sys_max_cmd_len=16384
6912    #
6913    if test -x /sbin/sysconfig; then
6914      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6915        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6916      esac
6917    fi
6918    ;;
6919  sco3.2v5*)
6920    lt_cv_sys_max_cmd_len=102400
6921    ;;
6922  sysv5* | sco5v6* | sysv4.2uw2*)
6923    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6924    if test -n "$kargmax"; then
6925      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6926    else
6927      lt_cv_sys_max_cmd_len=32768
6928    fi
6929    ;;
6930  *)
6931    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6932    if test -n "$lt_cv_sys_max_cmd_len" && \
6933       test undefined != "$lt_cv_sys_max_cmd_len"; then
6934      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6935      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6936    else
6937      # Make teststring a little bigger before we do anything with it.
6938      # a 1K string should be a reasonable start.
6939      for i in 1 2 3 4 5 6 7 8; do
6940        teststring=$teststring$teststring
6941      done
6942      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6943      # If test is not a shell built-in, we'll probably end up computing a
6944      # maximum length that is only half of the actual maximum length, but
6945      # we can't tell.
6946      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6947	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6948	      test 17 != "$i" # 1/2 MB should be enough
6949      do
6950        i=`expr $i + 1`
6951        teststring=$teststring$teststring
6952      done
6953      # Only check the string length outside the loop.
6954      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6955      teststring=
6956      # Add a significant safety factor because C++ compilers can tack on
6957      # massive amounts of additional arguments before passing them to the
6958      # linker.  It appears as though 1/2 is a usable value.
6959      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6960    fi
6961    ;;
6962  esac
6963
6964fi
6965
6966if test -n "$lt_cv_sys_max_cmd_len"; then
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6968$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6969else
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6971$as_echo "none" >&6; }
6972fi
6973max_cmd_len=$lt_cv_sys_max_cmd_len
6974
6975
6976
6977
6978
6979
6980: ${CP="cp -f"}
6981: ${MV="mv -f"}
6982: ${RM="rm -f"}
6983
6984if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6985  lt_unset=unset
6986else
6987  lt_unset=false
6988fi
6989
6990
6991
6992
6993
6994# test EBCDIC or ASCII
6995case `echo X|tr X '\101'` in
6996 A) # ASCII based system
6997    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6998  lt_SP2NL='tr \040 \012'
6999  lt_NL2SP='tr \015\012 \040\040'
7000  ;;
7001 *) # EBCDIC based system
7002  lt_SP2NL='tr \100 \n'
7003  lt_NL2SP='tr \r\n \100\100'
7004  ;;
7005esac
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7016$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7017if ${lt_cv_to_host_file_cmd+:} false; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  case $host in
7021  *-*-mingw* )
7022    case $build in
7023      *-*-mingw* ) # actually msys
7024        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7025        ;;
7026      *-*-cygwin* )
7027        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7028        ;;
7029      * ) # otherwise, assume *nix
7030        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7031        ;;
7032    esac
7033    ;;
7034  *-*-cygwin* )
7035    case $build in
7036      *-*-mingw* ) # actually msys
7037        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7038        ;;
7039      *-*-cygwin* )
7040        lt_cv_to_host_file_cmd=func_convert_file_noop
7041        ;;
7042      * ) # otherwise, assume *nix
7043        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7044        ;;
7045    esac
7046    ;;
7047  * ) # unhandled hosts (and "normal" native builds)
7048    lt_cv_to_host_file_cmd=func_convert_file_noop
7049    ;;
7050esac
7051
7052fi
7053
7054to_host_file_cmd=$lt_cv_to_host_file_cmd
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7056$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7057
7058
7059
7060
7061
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7063$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7064if ${lt_cv_to_tool_file_cmd+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067  #assume ordinary cross tools, or native build.
7068lt_cv_to_tool_file_cmd=func_convert_file_noop
7069case $host in
7070  *-*-mingw* )
7071    case $build in
7072      *-*-mingw* ) # actually msys
7073        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7074        ;;
7075    esac
7076    ;;
7077esac
7078
7079fi
7080
7081to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7083$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7084
7085
7086
7087
7088
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7090$as_echo_n "checking for $LD option to reload object files... " >&6; }
7091if ${lt_cv_ld_reload_flag+:} false; then :
7092  $as_echo_n "(cached) " >&6
7093else
7094  lt_cv_ld_reload_flag='-r'
7095fi
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7097$as_echo "$lt_cv_ld_reload_flag" >&6; }
7098reload_flag=$lt_cv_ld_reload_flag
7099case $reload_flag in
7100"" | " "*) ;;
7101*) reload_flag=" $reload_flag" ;;
7102esac
7103reload_cmds='$LD$reload_flag -o $output$reload_objs'
7104case $host_os in
7105  cygwin* | mingw* | pw32* | cegcc*)
7106    if test yes != "$GCC"; then
7107      reload_cmds=false
7108    fi
7109    ;;
7110  darwin*)
7111    if test yes = "$GCC"; then
7112      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7113    else
7114      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7115    fi
7116    ;;
7117esac
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127if test -n "$ac_tool_prefix"; then
7128  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7129set dummy ${ac_tool_prefix}objdump; ac_word=$2
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131$as_echo_n "checking for $ac_word... " >&6; }
7132if ${ac_cv_prog_OBJDUMP+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  if test -n "$OBJDUMP"; then
7136  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7137else
7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141  IFS=$as_save_IFS
7142  test -z "$as_dir" && as_dir=.
7143    for ac_exec_ext in '' $ac_executable_extensions; do
7144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147    break 2
7148  fi
7149done
7150  done
7151IFS=$as_save_IFS
7152
7153fi
7154fi
7155OBJDUMP=$ac_cv_prog_OBJDUMP
7156if test -n "$OBJDUMP"; then
7157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7158$as_echo "$OBJDUMP" >&6; }
7159else
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161$as_echo "no" >&6; }
7162fi
7163
7164
7165fi
7166if test -z "$ac_cv_prog_OBJDUMP"; then
7167  ac_ct_OBJDUMP=$OBJDUMP
7168  # Extract the first word of "objdump", so it can be a program name with args.
7169set dummy objdump; ac_word=$2
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171$as_echo_n "checking for $ac_word... " >&6; }
7172if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7173  $as_echo_n "(cached) " >&6
7174else
7175  if test -n "$ac_ct_OBJDUMP"; then
7176  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181  IFS=$as_save_IFS
7182  test -z "$as_dir" && as_dir=.
7183    for ac_exec_ext in '' $ac_executable_extensions; do
7184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187    break 2
7188  fi
7189done
7190  done
7191IFS=$as_save_IFS
7192
7193fi
7194fi
7195ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7196if test -n "$ac_ct_OBJDUMP"; then
7197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7198$as_echo "$ac_ct_OBJDUMP" >&6; }
7199else
7200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201$as_echo "no" >&6; }
7202fi
7203
7204  if test "x$ac_ct_OBJDUMP" = x; then
7205    OBJDUMP="false"
7206  else
7207    case $cross_compiling:$ac_tool_warned in
7208yes:)
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211ac_tool_warned=yes ;;
7212esac
7213    OBJDUMP=$ac_ct_OBJDUMP
7214  fi
7215else
7216  OBJDUMP="$ac_cv_prog_OBJDUMP"
7217fi
7218
7219test -z "$OBJDUMP" && OBJDUMP=objdump
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7230$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7231if ${lt_cv_deplibs_check_method+:} false; then :
7232  $as_echo_n "(cached) " >&6
7233else
7234  lt_cv_file_magic_cmd='$MAGIC_CMD'
7235lt_cv_file_magic_test_file=
7236lt_cv_deplibs_check_method='unknown'
7237# Need to set the preceding variable on all platforms that support
7238# interlibrary dependencies.
7239# 'none' -- dependencies not supported.
7240# 'unknown' -- same as none, but documents that we really don't know.
7241# 'pass_all' -- all dependencies passed with no checks.
7242# 'test_compile' -- check by making test program.
7243# 'file_magic [[regex]]' -- check by looking for files in library path
7244# that responds to the $file_magic_cmd with a given extended regex.
7245# If you have 'file' or equivalent on your system and you're not sure
7246# whether 'pass_all' will *always* work, you probably want this one.
7247
7248case $host_os in
7249aix[4-9]*)
7250  lt_cv_deplibs_check_method=pass_all
7251  ;;
7252
7253beos*)
7254  lt_cv_deplibs_check_method=pass_all
7255  ;;
7256
7257bsdi[45]*)
7258  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7259  lt_cv_file_magic_cmd='/usr/bin/file -L'
7260  lt_cv_file_magic_test_file=/shlib/libc.so
7261  ;;
7262
7263cygwin*)
7264  # func_win32_libid is a shell function defined in ltmain.sh
7265  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7266  lt_cv_file_magic_cmd='func_win32_libid'
7267  ;;
7268
7269mingw* | pw32*)
7270  # Base MSYS/MinGW do not provide the 'file' command needed by
7271  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7272  # unless we find 'file', for example because we are cross-compiling.
7273  if ( file / ) >/dev/null 2>&1; then
7274    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7275    lt_cv_file_magic_cmd='func_win32_libid'
7276  else
7277    # Keep this pattern in sync with the one in func_win32_libid.
7278    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7279    lt_cv_file_magic_cmd='$OBJDUMP -f'
7280  fi
7281  ;;
7282
7283cegcc*)
7284  # use the weaker test based on 'objdump'. See mingw*.
7285  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7286  lt_cv_file_magic_cmd='$OBJDUMP -f'
7287  ;;
7288
7289darwin* | rhapsody*)
7290  lt_cv_deplibs_check_method=pass_all
7291  ;;
7292
7293freebsd* | dragonfly*)
7294  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7295    case $host_cpu in
7296    i*86 )
7297      # Not sure whether the presence of OpenBSD here was a mistake.
7298      # Let's accept both of them until this is cleared up.
7299      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7300      lt_cv_file_magic_cmd=/usr/bin/file
7301      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7302      ;;
7303    esac
7304  else
7305    lt_cv_deplibs_check_method=pass_all
7306  fi
7307  ;;
7308
7309haiku*)
7310  lt_cv_deplibs_check_method=pass_all
7311  ;;
7312
7313hpux10.20* | hpux11*)
7314  lt_cv_file_magic_cmd=/usr/bin/file
7315  case $host_cpu in
7316  ia64*)
7317    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7318    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7319    ;;
7320  hppa*64*)
7321    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]'
7322    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7323    ;;
7324  *)
7325    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7326    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7327    ;;
7328  esac
7329  ;;
7330
7331interix[3-9]*)
7332  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7333  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7334  ;;
7335
7336irix5* | irix6* | nonstopux*)
7337  case $LD in
7338  *-32|*"-32 ") libmagic=32-bit;;
7339  *-n32|*"-n32 ") libmagic=N32;;
7340  *-64|*"-64 ") libmagic=64-bit;;
7341  *) libmagic=never-match;;
7342  esac
7343  lt_cv_deplibs_check_method=pass_all
7344  ;;
7345
7346# This must be glibc/ELF.
7347linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7348  lt_cv_deplibs_check_method=pass_all
7349  ;;
7350
7351netbsd*)
7352  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7353    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7354  else
7355    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7356  fi
7357  ;;
7358
7359newos6*)
7360  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7361  lt_cv_file_magic_cmd=/usr/bin/file
7362  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7363  ;;
7364
7365*nto* | *qnx*)
7366  lt_cv_deplibs_check_method=pass_all
7367  ;;
7368
7369openbsd* | bitrig*)
7370  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7372  else
7373    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7374  fi
7375  ;;
7376
7377osf3* | osf4* | osf5*)
7378  lt_cv_deplibs_check_method=pass_all
7379  ;;
7380
7381rdos*)
7382  lt_cv_deplibs_check_method=pass_all
7383  ;;
7384
7385solaris*)
7386  lt_cv_deplibs_check_method=pass_all
7387  ;;
7388
7389sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7390  lt_cv_deplibs_check_method=pass_all
7391  ;;
7392
7393sysv4 | sysv4.3*)
7394  case $host_vendor in
7395  motorola)
7396    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]'
7397    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7398    ;;
7399  ncr)
7400    lt_cv_deplibs_check_method=pass_all
7401    ;;
7402  sequent)
7403    lt_cv_file_magic_cmd='/bin/file'
7404    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7405    ;;
7406  sni)
7407    lt_cv_file_magic_cmd='/bin/file'
7408    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7409    lt_cv_file_magic_test_file=/lib/libc.so
7410    ;;
7411  siemens)
7412    lt_cv_deplibs_check_method=pass_all
7413    ;;
7414  pc)
7415    lt_cv_deplibs_check_method=pass_all
7416    ;;
7417  esac
7418  ;;
7419
7420tpf*)
7421  lt_cv_deplibs_check_method=pass_all
7422  ;;
7423os2*)
7424  lt_cv_deplibs_check_method=pass_all
7425  ;;
7426esac
7427
7428fi
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7430$as_echo "$lt_cv_deplibs_check_method" >&6; }
7431
7432file_magic_glob=
7433want_nocaseglob=no
7434if test "$build" = "$host"; then
7435  case $host_os in
7436  mingw* | pw32*)
7437    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7438      want_nocaseglob=yes
7439    else
7440      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7441    fi
7442    ;;
7443  esac
7444fi
7445
7446file_magic_cmd=$lt_cv_file_magic_cmd
7447deplibs_check_method=$lt_cv_deplibs_check_method
7448test -z "$deplibs_check_method" && deplibs_check_method=unknown
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471if test -n "$ac_tool_prefix"; then
7472  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7473set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475$as_echo_n "checking for $ac_word... " >&6; }
7476if ${ac_cv_prog_DLLTOOL+:} false; then :
7477  $as_echo_n "(cached) " >&6
7478else
7479  if test -n "$DLLTOOL"; then
7480  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7481else
7482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483for as_dir in $PATH
7484do
7485  IFS=$as_save_IFS
7486  test -z "$as_dir" && as_dir=.
7487    for ac_exec_ext in '' $ac_executable_extensions; do
7488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491    break 2
7492  fi
7493done
7494  done
7495IFS=$as_save_IFS
7496
7497fi
7498fi
7499DLLTOOL=$ac_cv_prog_DLLTOOL
7500if test -n "$DLLTOOL"; then
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7502$as_echo "$DLLTOOL" >&6; }
7503else
7504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505$as_echo "no" >&6; }
7506fi
7507
7508
7509fi
7510if test -z "$ac_cv_prog_DLLTOOL"; then
7511  ac_ct_DLLTOOL=$DLLTOOL
7512  # Extract the first word of "dlltool", so it can be a program name with args.
7513set dummy dlltool; ac_word=$2
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515$as_echo_n "checking for $ac_word... " >&6; }
7516if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7517  $as_echo_n "(cached) " >&6
7518else
7519  if test -n "$ac_ct_DLLTOOL"; then
7520  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7521else
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525  IFS=$as_save_IFS
7526  test -z "$as_dir" && as_dir=.
7527    for ac_exec_ext in '' $ac_executable_extensions; do
7528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531    break 2
7532  fi
7533done
7534  done
7535IFS=$as_save_IFS
7536
7537fi
7538fi
7539ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7540if test -n "$ac_ct_DLLTOOL"; then
7541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7542$as_echo "$ac_ct_DLLTOOL" >&6; }
7543else
7544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545$as_echo "no" >&6; }
7546fi
7547
7548  if test "x$ac_ct_DLLTOOL" = x; then
7549    DLLTOOL="false"
7550  else
7551    case $cross_compiling:$ac_tool_warned in
7552yes:)
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7555ac_tool_warned=yes ;;
7556esac
7557    DLLTOOL=$ac_ct_DLLTOOL
7558  fi
7559else
7560  DLLTOOL="$ac_cv_prog_DLLTOOL"
7561fi
7562
7563test -z "$DLLTOOL" && DLLTOOL=dlltool
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7575$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7576if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579  lt_cv_sharedlib_from_linklib_cmd='unknown'
7580
7581case $host_os in
7582cygwin* | mingw* | pw32* | cegcc*)
7583  # two different shell functions defined in ltmain.sh;
7584  # decide which one to use based on capabilities of $DLLTOOL
7585  case `$DLLTOOL --help 2>&1` in
7586  *--identify-strict*)
7587    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7588    ;;
7589  *)
7590    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7591    ;;
7592  esac
7593  ;;
7594*)
7595  # fallback: assume linklib IS sharedlib
7596  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7597  ;;
7598esac
7599
7600fi
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7602$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7603sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7604test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7605
7606
7607
7608
7609
7610
7611
7612if test -n "$ac_tool_prefix"; then
7613  for ac_prog in ar
7614  do
7615    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618$as_echo_n "checking for $ac_word... " >&6; }
7619if ${ac_cv_prog_AR+:} false; then :
7620  $as_echo_n "(cached) " >&6
7621else
7622  if test -n "$AR"; then
7623  ac_cv_prog_AR="$AR" # Let the user override the test.
7624else
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628  IFS=$as_save_IFS
7629  test -z "$as_dir" && as_dir=.
7630    for ac_exec_ext in '' $ac_executable_extensions; do
7631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634    break 2
7635  fi
7636done
7637  done
7638IFS=$as_save_IFS
7639
7640fi
7641fi
7642AR=$ac_cv_prog_AR
7643if test -n "$AR"; then
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7645$as_echo "$AR" >&6; }
7646else
7647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648$as_echo "no" >&6; }
7649fi
7650
7651
7652    test -n "$AR" && break
7653  done
7654fi
7655if test -z "$AR"; then
7656  ac_ct_AR=$AR
7657  for ac_prog in ar
7658do
7659  # Extract the first word of "$ac_prog", so it can be a program name with args.
7660set dummy $ac_prog; ac_word=$2
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662$as_echo_n "checking for $ac_word... " >&6; }
7663if ${ac_cv_prog_ac_ct_AR+:} false; then :
7664  $as_echo_n "(cached) " >&6
7665else
7666  if test -n "$ac_ct_AR"; then
7667  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7668else
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672  IFS=$as_save_IFS
7673  test -z "$as_dir" && as_dir=.
7674    for ac_exec_ext in '' $ac_executable_extensions; do
7675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676    ac_cv_prog_ac_ct_AR="$ac_prog"
7677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678    break 2
7679  fi
7680done
7681  done
7682IFS=$as_save_IFS
7683
7684fi
7685fi
7686ac_ct_AR=$ac_cv_prog_ac_ct_AR
7687if test -n "$ac_ct_AR"; then
7688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7689$as_echo "$ac_ct_AR" >&6; }
7690else
7691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692$as_echo "no" >&6; }
7693fi
7694
7695
7696  test -n "$ac_ct_AR" && break
7697done
7698
7699  if test "x$ac_ct_AR" = x; then
7700    AR="false"
7701  else
7702    case $cross_compiling:$ac_tool_warned in
7703yes:)
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706ac_tool_warned=yes ;;
7707esac
7708    AR=$ac_ct_AR
7709  fi
7710fi
7711
7712: ${AR=ar}
7713: ${AR_FLAGS=cru}
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7726$as_echo_n "checking for archiver @FILE support... " >&6; }
7727if ${lt_cv_ar_at_file+:} false; then :
7728  $as_echo_n "(cached) " >&6
7729else
7730  lt_cv_ar_at_file=no
7731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732/* end confdefs.h.  */
7733
7734int
7735main ()
7736{
7737
7738  ;
7739  return 0;
7740}
7741_ACEOF
7742if ac_fn_c_try_compile "$LINENO"; then :
7743  echo conftest.$ac_objext > conftest.lst
7744      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7745      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7746  (eval $lt_ar_try) 2>&5
7747  ac_status=$?
7748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7749  test $ac_status = 0; }
7750      if test 0 -eq "$ac_status"; then
7751	# Ensure the archiver fails upon bogus file names.
7752	rm -f conftest.$ac_objext libconftest.a
7753	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7754  (eval $lt_ar_try) 2>&5
7755  ac_status=$?
7756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757  test $ac_status = 0; }
7758	if test 0 -ne "$ac_status"; then
7759          lt_cv_ar_at_file=@
7760        fi
7761      fi
7762      rm -f conftest.* libconftest.a
7763
7764fi
7765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766
7767fi
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7769$as_echo "$lt_cv_ar_at_file" >&6; }
7770
7771if test no = "$lt_cv_ar_at_file"; then
7772  archiver_list_spec=
7773else
7774  archiver_list_spec=$lt_cv_ar_at_file
7775fi
7776
7777
7778
7779
7780
7781
7782
7783if test -n "$ac_tool_prefix"; then
7784  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7785set dummy ${ac_tool_prefix}strip; ac_word=$2
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787$as_echo_n "checking for $ac_word... " >&6; }
7788if ${ac_cv_prog_STRIP+:} false; then :
7789  $as_echo_n "(cached) " >&6
7790else
7791  if test -n "$STRIP"; then
7792  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7793else
7794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797  IFS=$as_save_IFS
7798  test -z "$as_dir" && as_dir=.
7799    for ac_exec_ext in '' $ac_executable_extensions; do
7800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803    break 2
7804  fi
7805done
7806  done
7807IFS=$as_save_IFS
7808
7809fi
7810fi
7811STRIP=$ac_cv_prog_STRIP
7812if test -n "$STRIP"; then
7813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7814$as_echo "$STRIP" >&6; }
7815else
7816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817$as_echo "no" >&6; }
7818fi
7819
7820
7821fi
7822if test -z "$ac_cv_prog_STRIP"; then
7823  ac_ct_STRIP=$STRIP
7824  # Extract the first word of "strip", so it can be a program name with args.
7825set dummy strip; ac_word=$2
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827$as_echo_n "checking for $ac_word... " >&6; }
7828if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7829  $as_echo_n "(cached) " >&6
7830else
7831  if test -n "$ac_ct_STRIP"; then
7832  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7833else
7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837  IFS=$as_save_IFS
7838  test -z "$as_dir" && as_dir=.
7839    for ac_exec_ext in '' $ac_executable_extensions; do
7840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841    ac_cv_prog_ac_ct_STRIP="strip"
7842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843    break 2
7844  fi
7845done
7846  done
7847IFS=$as_save_IFS
7848
7849fi
7850fi
7851ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7852if test -n "$ac_ct_STRIP"; then
7853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7854$as_echo "$ac_ct_STRIP" >&6; }
7855else
7856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
7858fi
7859
7860  if test "x$ac_ct_STRIP" = x; then
7861    STRIP=":"
7862  else
7863    case $cross_compiling:$ac_tool_warned in
7864yes:)
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867ac_tool_warned=yes ;;
7868esac
7869    STRIP=$ac_ct_STRIP
7870  fi
7871else
7872  STRIP="$ac_cv_prog_STRIP"
7873fi
7874
7875test -z "$STRIP" && STRIP=:
7876
7877
7878
7879
7880
7881
7882if test -n "$ac_tool_prefix"; then
7883  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7884set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886$as_echo_n "checking for $ac_word... " >&6; }
7887if ${ac_cv_prog_RANLIB+:} false; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  if test -n "$RANLIB"; then
7891  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7892else
7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896  IFS=$as_save_IFS
7897  test -z "$as_dir" && as_dir=.
7898    for ac_exec_ext in '' $ac_executable_extensions; do
7899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902    break 2
7903  fi
7904done
7905  done
7906IFS=$as_save_IFS
7907
7908fi
7909fi
7910RANLIB=$ac_cv_prog_RANLIB
7911if test -n "$RANLIB"; then
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7913$as_echo "$RANLIB" >&6; }
7914else
7915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919
7920fi
7921if test -z "$ac_cv_prog_RANLIB"; then
7922  ac_ct_RANLIB=$RANLIB
7923  # Extract the first word of "ranlib", so it can be a program name with args.
7924set dummy ranlib; ac_word=$2
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926$as_echo_n "checking for $ac_word... " >&6; }
7927if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7928  $as_echo_n "(cached) " >&6
7929else
7930  if test -n "$ac_ct_RANLIB"; then
7931  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7932else
7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936  IFS=$as_save_IFS
7937  test -z "$as_dir" && as_dir=.
7938    for ac_exec_ext in '' $ac_executable_extensions; do
7939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7940    ac_cv_prog_ac_ct_RANLIB="ranlib"
7941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942    break 2
7943  fi
7944done
7945  done
7946IFS=$as_save_IFS
7947
7948fi
7949fi
7950ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7951if test -n "$ac_ct_RANLIB"; then
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7953$as_echo "$ac_ct_RANLIB" >&6; }
7954else
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956$as_echo "no" >&6; }
7957fi
7958
7959  if test "x$ac_ct_RANLIB" = x; then
7960    RANLIB=":"
7961  else
7962    case $cross_compiling:$ac_tool_warned in
7963yes:)
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7966ac_tool_warned=yes ;;
7967esac
7968    RANLIB=$ac_ct_RANLIB
7969  fi
7970else
7971  RANLIB="$ac_cv_prog_RANLIB"
7972fi
7973
7974test -z "$RANLIB" && RANLIB=:
7975
7976
7977
7978
7979
7980
7981# Determine commands to create old-style static archives.
7982old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7983old_postinstall_cmds='chmod 644 $oldlib'
7984old_postuninstall_cmds=
7985
7986if test -n "$RANLIB"; then
7987  case $host_os in
7988  bitrig* | openbsd*)
7989    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7990    ;;
7991  *)
7992    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7993    ;;
7994  esac
7995  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7996fi
7997
7998case $host_os in
7999  darwin*)
8000    lock_old_archive_extraction=yes ;;
8001  *)
8002    lock_old_archive_extraction=no ;;
8003esac
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043# If no C compiler was specified, use CC.
8044LTCC=${LTCC-"$CC"}
8045
8046# If no C compiler flags were specified, use CFLAGS.
8047LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8048
8049# Allow CC to be a program name with arguments.
8050compiler=$CC
8051
8052
8053# Check for command to grab the raw symbol name followed by C symbol from nm.
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8055$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8056if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8057  $as_echo_n "(cached) " >&6
8058else
8059
8060# These are sane defaults that work on at least a few old systems.
8061# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8062
8063# Character class describing NM global symbol codes.
8064symcode='[BCDEGRST]'
8065
8066# Regexp to match symbols that can be accessed directly from C.
8067sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8068
8069# Define system-specific variables.
8070case $host_os in
8071aix*)
8072  symcode='[BCDT]'
8073  ;;
8074cygwin* | mingw* | pw32* | cegcc*)
8075  symcode='[ABCDGISTW]'
8076  ;;
8077hpux*)
8078  if test ia64 = "$host_cpu"; then
8079    symcode='[ABCDEGRST]'
8080  fi
8081  ;;
8082irix* | nonstopux*)
8083  symcode='[BCDEGRST]'
8084  ;;
8085osf*)
8086  symcode='[BCDEGQRST]'
8087  ;;
8088solaris*)
8089  symcode='[BDRT]'
8090  ;;
8091sco3.2v5*)
8092  symcode='[DT]'
8093  ;;
8094sysv4.2uw2*)
8095  symcode='[DT]'
8096  ;;
8097sysv5* | sco5v6* | unixware* | OpenUNIX*)
8098  symcode='[ABDT]'
8099  ;;
8100sysv4)
8101  symcode='[DFNSTU]'
8102  ;;
8103esac
8104
8105# If we're using GNU nm, then use its standard symbol codes.
8106case `$NM -V 2>&1` in
8107*GNU* | *'with BFD'*)
8108  symcode='[ABCDGIRSTW]' ;;
8109esac
8110
8111if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8112  # Gets list of data symbols to import.
8113  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8114  # Adjust the below global symbol transforms to fixup imported variables.
8115  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8116  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8117  lt_c_name_lib_hook="\
8118  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8119  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8120else
8121  # Disable hooks by default.
8122  lt_cv_sys_global_symbol_to_import=
8123  lt_cdecl_hook=
8124  lt_c_name_hook=
8125  lt_c_name_lib_hook=
8126fi
8127
8128# Transform an extracted symbol line into a proper C declaration.
8129# Some systems (esp. on ia64) link data and code symbols differently,
8130# so use this general approach.
8131lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8132$lt_cdecl_hook\
8133" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8134" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8135
8136# Transform an extracted symbol line into symbol name and symbol address
8137lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8138$lt_c_name_hook\
8139" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8140" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8141
8142# Transform an extracted symbol line into symbol name with lib prefix and
8143# symbol address.
8144lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8145$lt_c_name_lib_hook\
8146" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8147" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8148" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8149
8150# Handle CRLF in mingw tool chain
8151opt_cr=
8152case $build_os in
8153mingw*)
8154  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8155  ;;
8156esac
8157
8158# Try without a prefix underscore, then with it.
8159for ac_symprfx in "" "_"; do
8160
8161  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8162  symxfrm="\\1 $ac_symprfx\\2 \\2"
8163
8164  # Write the raw and C identifiers.
8165  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8166    # Fake it for dumpbin and say T for any non-static function,
8167    # D for any global variable and I for any imported variable.
8168    # Also find C++ and __fastcall symbols from MSVC++,
8169    # which start with @ or ?.
8170    lt_cv_sys_global_symbol_pipe="$AWK '"\
8171"     {last_section=section; section=\$ 3};"\
8172"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8173"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8174"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8175"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8176"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8177"     \$ 0!~/External *\|/{next};"\
8178"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8179"     {if(hide[section]) next};"\
8180"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8181"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8182"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8183"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8184"     ' prfx=^$ac_symprfx"
8185  else
8186    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8187  fi
8188  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8189
8190  # Check to see that the pipe works correctly.
8191  pipe_works=no
8192
8193  rm -f conftest*
8194  cat > conftest.$ac_ext <<_LT_EOF
8195#ifdef __cplusplus
8196extern "C" {
8197#endif
8198char nm_test_var;
8199void nm_test_func(void);
8200void nm_test_func(void){}
8201#ifdef __cplusplus
8202}
8203#endif
8204int main(){nm_test_var='a';nm_test_func();return(0);}
8205_LT_EOF
8206
8207  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8208  (eval $ac_compile) 2>&5
8209  ac_status=$?
8210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211  test $ac_status = 0; }; then
8212    # Now try to grab the symbols.
8213    nlist=conftest.nm
8214    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8215  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8216  ac_status=$?
8217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8218  test $ac_status = 0; } && test -s "$nlist"; then
8219      # Try sorting and uniquifying the output.
8220      if sort "$nlist" | uniq > "$nlist"T; then
8221	mv -f "$nlist"T "$nlist"
8222      else
8223	rm -f "$nlist"T
8224      fi
8225
8226      # Make sure that we snagged all the symbols we need.
8227      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8228	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8229	  cat <<_LT_EOF > conftest.$ac_ext
8230/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8231#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8232/* DATA imports from DLLs on WIN32 can't be const, because runtime
8233   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8234# define LT_DLSYM_CONST
8235#elif defined __osf__
8236/* This system does not cope well with relocations in const data.  */
8237# define LT_DLSYM_CONST
8238#else
8239# define LT_DLSYM_CONST const
8240#endif
8241
8242#ifdef __cplusplus
8243extern "C" {
8244#endif
8245
8246_LT_EOF
8247	  # Now generate the symbol file.
8248	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8249
8250	  cat <<_LT_EOF >> conftest.$ac_ext
8251
8252/* The mapping between symbol names and symbols.  */
8253LT_DLSYM_CONST struct {
8254  const char *name;
8255  void       *address;
8256}
8257lt__PROGRAM__LTX_preloaded_symbols[] =
8258{
8259  { "@PROGRAM@", (void *) 0 },
8260_LT_EOF
8261	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8262	  cat <<\_LT_EOF >> conftest.$ac_ext
8263  {0, (void *) 0}
8264};
8265
8266/* This works around a problem in FreeBSD linker */
8267#ifdef FREEBSD_WORKAROUND
8268static const void *lt_preloaded_setup() {
8269  return lt__PROGRAM__LTX_preloaded_symbols;
8270}
8271#endif
8272
8273#ifdef __cplusplus
8274}
8275#endif
8276_LT_EOF
8277	  # Now try linking the two files.
8278	  mv conftest.$ac_objext conftstm.$ac_objext
8279	  lt_globsym_save_LIBS=$LIBS
8280	  lt_globsym_save_CFLAGS=$CFLAGS
8281	  LIBS=conftstm.$ac_objext
8282	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8283	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8284  (eval $ac_link) 2>&5
8285  ac_status=$?
8286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8287  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8288	    pipe_works=yes
8289	  fi
8290	  LIBS=$lt_globsym_save_LIBS
8291	  CFLAGS=$lt_globsym_save_CFLAGS
8292	else
8293	  echo "cannot find nm_test_func in $nlist" >&5
8294	fi
8295      else
8296	echo "cannot find nm_test_var in $nlist" >&5
8297      fi
8298    else
8299      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8300    fi
8301  else
8302    echo "$progname: failed program was:" >&5
8303    cat conftest.$ac_ext >&5
8304  fi
8305  rm -rf conftest* conftst*
8306
8307  # Do not use the global_symbol_pipe unless it works.
8308  if test yes = "$pipe_works"; then
8309    break
8310  else
8311    lt_cv_sys_global_symbol_pipe=
8312  fi
8313done
8314
8315fi
8316
8317if test -z "$lt_cv_sys_global_symbol_pipe"; then
8318  lt_cv_sys_global_symbol_to_cdecl=
8319fi
8320if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8322$as_echo "failed" >&6; }
8323else
8324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8325$as_echo "ok" >&6; }
8326fi
8327
8328# Response file support.
8329if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8330  nm_file_list_spec='@'
8331elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8332  nm_file_list_spec='@'
8333fi
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8372$as_echo_n "checking for sysroot... " >&6; }
8373
8374# Check whether --with-sysroot was given.
8375if test "${with_sysroot+set}" = set; then :
8376  withval=$with_sysroot;
8377else
8378  with_sysroot=no
8379fi
8380
8381
8382lt_sysroot=
8383case $with_sysroot in #(
8384 yes)
8385   if test yes = "$GCC"; then
8386     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8387   fi
8388   ;; #(
8389 /*)
8390   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8391   ;; #(
8392 no|'')
8393   ;; #(
8394 *)
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8396$as_echo "$with_sysroot" >&6; }
8397   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8398   ;;
8399esac
8400
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8402$as_echo "${lt_sysroot:-no}" >&6; }
8403
8404
8405
8406
8407
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8409$as_echo_n "checking for a working dd... " >&6; }
8410if ${ac_cv_path_lt_DD+:} false; then :
8411  $as_echo_n "(cached) " >&6
8412else
8413  printf 0123456789abcdef0123456789abcdef >conftest.i
8414cat conftest.i conftest.i >conftest2.i
8415: ${lt_DD:=$DD}
8416if test -z "$lt_DD"; then
8417  ac_path_lt_DD_found=false
8418  # Loop through the user's path and test for each of PROGNAME-LIST
8419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422  IFS=$as_save_IFS
8423  test -z "$as_dir" && as_dir=.
8424    for ac_prog in dd; do
8425    for ac_exec_ext in '' $ac_executable_extensions; do
8426      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8427      as_fn_executable_p "$ac_path_lt_DD" || continue
8428if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8429  cmp -s conftest.i conftest.out \
8430  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8431fi
8432      $ac_path_lt_DD_found && break 3
8433    done
8434  done
8435  done
8436IFS=$as_save_IFS
8437  if test -z "$ac_cv_path_lt_DD"; then
8438    :
8439  fi
8440else
8441  ac_cv_path_lt_DD=$lt_DD
8442fi
8443
8444rm -f conftest.i conftest2.i conftest.out
8445fi
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8447$as_echo "$ac_cv_path_lt_DD" >&6; }
8448
8449
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8451$as_echo_n "checking how to truncate binary pipes... " >&6; }
8452if ${lt_cv_truncate_bin+:} false; then :
8453  $as_echo_n "(cached) " >&6
8454else
8455  printf 0123456789abcdef0123456789abcdef >conftest.i
8456cat conftest.i conftest.i >conftest2.i
8457lt_cv_truncate_bin=
8458if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8459  cmp -s conftest.i conftest.out \
8460  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8461fi
8462rm -f conftest.i conftest2.i conftest.out
8463test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8464fi
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8466$as_echo "$lt_cv_truncate_bin" >&6; }
8467
8468
8469
8470
8471
8472
8473
8474# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8475func_cc_basename ()
8476{
8477    for cc_temp in $*""; do
8478      case $cc_temp in
8479        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8480        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8481        \-*) ;;
8482        *) break;;
8483      esac
8484    done
8485    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8486}
8487
8488# Check whether --enable-libtool-lock was given.
8489if test "${enable_libtool_lock+set}" = set; then :
8490  enableval=$enable_libtool_lock;
8491fi
8492
8493test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8494
8495# Some flags need to be propagated to the compiler or linker for good
8496# libtool support.
8497case $host in
8498ia64-*-hpux*)
8499  # Find out what ABI is being produced by ac_compile, and set mode
8500  # options accordingly.
8501  echo 'int i;' > conftest.$ac_ext
8502  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8503  (eval $ac_compile) 2>&5
8504  ac_status=$?
8505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8506  test $ac_status = 0; }; then
8507    case `/usr/bin/file conftest.$ac_objext` in
8508      *ELF-32*)
8509	HPUX_IA64_MODE=32
8510	;;
8511      *ELF-64*)
8512	HPUX_IA64_MODE=64
8513	;;
8514    esac
8515  fi
8516  rm -rf conftest*
8517  ;;
8518*-*-irix6*)
8519  # Find out what ABI is being produced by ac_compile, and set linker
8520  # options accordingly.
8521  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8522  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8523  (eval $ac_compile) 2>&5
8524  ac_status=$?
8525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8526  test $ac_status = 0; }; then
8527    if test yes = "$lt_cv_prog_gnu_ld"; then
8528      case `/usr/bin/file conftest.$ac_objext` in
8529	*32-bit*)
8530	  LD="${LD-ld} -melf32bsmip"
8531	  ;;
8532	*N32*)
8533	  LD="${LD-ld} -melf32bmipn32"
8534	  ;;
8535	*64-bit*)
8536	  LD="${LD-ld} -melf64bmip"
8537	;;
8538      esac
8539    else
8540      case `/usr/bin/file conftest.$ac_objext` in
8541	*32-bit*)
8542	  LD="${LD-ld} -32"
8543	  ;;
8544	*N32*)
8545	  LD="${LD-ld} -n32"
8546	  ;;
8547	*64-bit*)
8548	  LD="${LD-ld} -64"
8549	  ;;
8550      esac
8551    fi
8552  fi
8553  rm -rf conftest*
8554  ;;
8555
8556mips64*-*linux*)
8557  # Find out what ABI is being produced by ac_compile, and set linker
8558  # options accordingly.
8559  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8560  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8561  (eval $ac_compile) 2>&5
8562  ac_status=$?
8563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8564  test $ac_status = 0; }; then
8565    emul=elf
8566    case `/usr/bin/file conftest.$ac_objext` in
8567      *32-bit*)
8568	emul="${emul}32"
8569	;;
8570      *64-bit*)
8571	emul="${emul}64"
8572	;;
8573    esac
8574    case `/usr/bin/file conftest.$ac_objext` in
8575      *MSB*)
8576	emul="${emul}btsmip"
8577	;;
8578      *LSB*)
8579	emul="${emul}ltsmip"
8580	;;
8581    esac
8582    case `/usr/bin/file conftest.$ac_objext` in
8583      *N32*)
8584	emul="${emul}n32"
8585	;;
8586    esac
8587    LD="${LD-ld} -m $emul"
8588  fi
8589  rm -rf conftest*
8590  ;;
8591
8592x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8593s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8594  # Find out what ABI is being produced by ac_compile, and set linker
8595  # options accordingly.  Note that the listed cases only cover the
8596  # situations where additional linker options are needed (such as when
8597  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8598  # vice versa); the common cases where no linker options are needed do
8599  # not appear in the list.
8600  echo 'int i;' > conftest.$ac_ext
8601  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8602  (eval $ac_compile) 2>&5
8603  ac_status=$?
8604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8605  test $ac_status = 0; }; then
8606    case `/usr/bin/file conftest.o` in
8607      *32-bit*)
8608	case $host in
8609	  x86_64-*kfreebsd*-gnu)
8610	    LD="${LD-ld} -m elf_i386_fbsd"
8611	    ;;
8612	  x86_64-*linux*)
8613	    case `/usr/bin/file conftest.o` in
8614	      *x86-64*)
8615		LD="${LD-ld} -m elf32_x86_64"
8616		;;
8617	      *)
8618		LD="${LD-ld} -m elf_i386"
8619		;;
8620	    esac
8621	    ;;
8622	  powerpc64le-*linux*)
8623	    LD="${LD-ld} -m elf32lppclinux"
8624	    ;;
8625	  powerpc64-*linux*)
8626	    LD="${LD-ld} -m elf32ppclinux"
8627	    ;;
8628	  s390x-*linux*)
8629	    LD="${LD-ld} -m elf_s390"
8630	    ;;
8631	  sparc64-*linux*)
8632	    LD="${LD-ld} -m elf32_sparc"
8633	    ;;
8634	esac
8635	;;
8636      *64-bit*)
8637	case $host in
8638	  x86_64-*kfreebsd*-gnu)
8639	    LD="${LD-ld} -m elf_x86_64_fbsd"
8640	    ;;
8641	  x86_64-*linux*)
8642	    LD="${LD-ld} -m elf_x86_64"
8643	    ;;
8644	  powerpcle-*linux*)
8645	    LD="${LD-ld} -m elf64lppc"
8646	    ;;
8647	  powerpc-*linux*)
8648	    LD="${LD-ld} -m elf64ppc"
8649	    ;;
8650	  s390*-*linux*|s390*-*tpf*)
8651	    LD="${LD-ld} -m elf64_s390"
8652	    ;;
8653	  sparc*-*linux*)
8654	    LD="${LD-ld} -m elf64_sparc"
8655	    ;;
8656	esac
8657	;;
8658    esac
8659  fi
8660  rm -rf conftest*
8661  ;;
8662
8663*-*-sco3.2v5*)
8664  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8665  SAVE_CFLAGS=$CFLAGS
8666  CFLAGS="$CFLAGS -belf"
8667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8668$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8669if ${lt_cv_cc_needs_belf+:} false; then :
8670  $as_echo_n "(cached) " >&6
8671else
8672  ac_ext=c
8673ac_cpp='$CPP $CPPFLAGS'
8674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8676ac_compiler_gnu=$ac_cv_c_compiler_gnu
8677
8678     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679/* end confdefs.h.  */
8680
8681int
8682main ()
8683{
8684
8685  ;
8686  return 0;
8687}
8688_ACEOF
8689if ac_fn_c_try_link "$LINENO"; then :
8690  lt_cv_cc_needs_belf=yes
8691else
8692  lt_cv_cc_needs_belf=no
8693fi
8694rm -f core conftest.err conftest.$ac_objext \
8695    conftest$ac_exeext conftest.$ac_ext
8696     ac_ext=c
8697ac_cpp='$CPP $CPPFLAGS'
8698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702fi
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8704$as_echo "$lt_cv_cc_needs_belf" >&6; }
8705  if test yes != "$lt_cv_cc_needs_belf"; then
8706    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8707    CFLAGS=$SAVE_CFLAGS
8708  fi
8709  ;;
8710*-*solaris*)
8711  # Find out what ABI is being produced by ac_compile, and set linker
8712  # options accordingly.
8713  echo 'int i;' > conftest.$ac_ext
8714  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8715  (eval $ac_compile) 2>&5
8716  ac_status=$?
8717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8718  test $ac_status = 0; }; then
8719    case `/usr/bin/file conftest.o` in
8720    *64-bit*)
8721      case $lt_cv_prog_gnu_ld in
8722      yes*)
8723        case $host in
8724        i?86-*-solaris*|x86_64-*-solaris*)
8725          LD="${LD-ld} -m elf_x86_64"
8726          ;;
8727        sparc*-*-solaris*)
8728          LD="${LD-ld} -m elf64_sparc"
8729          ;;
8730        esac
8731        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8732        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8733          LD=${LD-ld}_sol2
8734        fi
8735        ;;
8736      *)
8737	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8738	  LD="${LD-ld} -64"
8739	fi
8740	;;
8741      esac
8742      ;;
8743    esac
8744  fi
8745  rm -rf conftest*
8746  ;;
8747esac
8748
8749need_locks=$enable_libtool_lock
8750
8751if test -n "$ac_tool_prefix"; then
8752  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8753set dummy ${ac_tool_prefix}mt; ac_word=$2
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755$as_echo_n "checking for $ac_word... " >&6; }
8756if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8757  $as_echo_n "(cached) " >&6
8758else
8759  if test -n "$MANIFEST_TOOL"; then
8760  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8761else
8762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763for as_dir in $PATH
8764do
8765  IFS=$as_save_IFS
8766  test -z "$as_dir" && as_dir=.
8767    for ac_exec_ext in '' $ac_executable_extensions; do
8768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8769    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8771    break 2
8772  fi
8773done
8774  done
8775IFS=$as_save_IFS
8776
8777fi
8778fi
8779MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8780if test -n "$MANIFEST_TOOL"; then
8781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8782$as_echo "$MANIFEST_TOOL" >&6; }
8783else
8784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785$as_echo "no" >&6; }
8786fi
8787
8788
8789fi
8790if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8791  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8792  # Extract the first word of "mt", so it can be a program name with args.
8793set dummy mt; ac_word=$2
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795$as_echo_n "checking for $ac_word... " >&6; }
8796if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8797  $as_echo_n "(cached) " >&6
8798else
8799  if test -n "$ac_ct_MANIFEST_TOOL"; then
8800  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805  IFS=$as_save_IFS
8806  test -z "$as_dir" && as_dir=.
8807    for ac_exec_ext in '' $ac_executable_extensions; do
8808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811    break 2
8812  fi
8813done
8814  done
8815IFS=$as_save_IFS
8816
8817fi
8818fi
8819ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8820if test -n "$ac_ct_MANIFEST_TOOL"; then
8821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8822$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8823else
8824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825$as_echo "no" >&6; }
8826fi
8827
8828  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8829    MANIFEST_TOOL=":"
8830  else
8831    case $cross_compiling:$ac_tool_warned in
8832yes:)
8833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8835ac_tool_warned=yes ;;
8836esac
8837    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8838  fi
8839else
8840  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8841fi
8842
8843test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8845$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8846if ${lt_cv_path_mainfest_tool+:} false; then :
8847  $as_echo_n "(cached) " >&6
8848else
8849  lt_cv_path_mainfest_tool=no
8850  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8851  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8852  cat conftest.err >&5
8853  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8854    lt_cv_path_mainfest_tool=yes
8855  fi
8856  rm -f conftest*
8857fi
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8859$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8860if test yes != "$lt_cv_path_mainfest_tool"; then
8861  MANIFEST_TOOL=:
8862fi
8863
8864
8865
8866
8867
8868
8869  case $host_os in
8870    rhapsody* | darwin*)
8871    if test -n "$ac_tool_prefix"; then
8872  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8873set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875$as_echo_n "checking for $ac_word... " >&6; }
8876if ${ac_cv_prog_DSYMUTIL+:} false; then :
8877  $as_echo_n "(cached) " >&6
8878else
8879  if test -n "$DSYMUTIL"; then
8880  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8881else
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885  IFS=$as_save_IFS
8886  test -z "$as_dir" && as_dir=.
8887    for ac_exec_ext in '' $ac_executable_extensions; do
8888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891    break 2
8892  fi
8893done
8894  done
8895IFS=$as_save_IFS
8896
8897fi
8898fi
8899DSYMUTIL=$ac_cv_prog_DSYMUTIL
8900if test -n "$DSYMUTIL"; then
8901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8902$as_echo "$DSYMUTIL" >&6; }
8903else
8904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905$as_echo "no" >&6; }
8906fi
8907
8908
8909fi
8910if test -z "$ac_cv_prog_DSYMUTIL"; then
8911  ac_ct_DSYMUTIL=$DSYMUTIL
8912  # Extract the first word of "dsymutil", so it can be a program name with args.
8913set dummy dsymutil; ac_word=$2
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915$as_echo_n "checking for $ac_word... " >&6; }
8916if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8917  $as_echo_n "(cached) " >&6
8918else
8919  if test -n "$ac_ct_DSYMUTIL"; then
8920  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8921else
8922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923for as_dir in $PATH
8924do
8925  IFS=$as_save_IFS
8926  test -z "$as_dir" && as_dir=.
8927    for ac_exec_ext in '' $ac_executable_extensions; do
8928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8929    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8931    break 2
8932  fi
8933done
8934  done
8935IFS=$as_save_IFS
8936
8937fi
8938fi
8939ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8940if test -n "$ac_ct_DSYMUTIL"; then
8941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8942$as_echo "$ac_ct_DSYMUTIL" >&6; }
8943else
8944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945$as_echo "no" >&6; }
8946fi
8947
8948  if test "x$ac_ct_DSYMUTIL" = x; then
8949    DSYMUTIL=":"
8950  else
8951    case $cross_compiling:$ac_tool_warned in
8952yes:)
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8955ac_tool_warned=yes ;;
8956esac
8957    DSYMUTIL=$ac_ct_DSYMUTIL
8958  fi
8959else
8960  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8961fi
8962
8963    if test -n "$ac_tool_prefix"; then
8964  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8965set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967$as_echo_n "checking for $ac_word... " >&6; }
8968if ${ac_cv_prog_NMEDIT+:} false; then :
8969  $as_echo_n "(cached) " >&6
8970else
8971  if test -n "$NMEDIT"; then
8972  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8973else
8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975for as_dir in $PATH
8976do
8977  IFS=$as_save_IFS
8978  test -z "$as_dir" && as_dir=.
8979    for ac_exec_ext in '' $ac_executable_extensions; do
8980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8981    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983    break 2
8984  fi
8985done
8986  done
8987IFS=$as_save_IFS
8988
8989fi
8990fi
8991NMEDIT=$ac_cv_prog_NMEDIT
8992if test -n "$NMEDIT"; then
8993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8994$as_echo "$NMEDIT" >&6; }
8995else
8996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997$as_echo "no" >&6; }
8998fi
8999
9000
9001fi
9002if test -z "$ac_cv_prog_NMEDIT"; then
9003  ac_ct_NMEDIT=$NMEDIT
9004  # Extract the first word of "nmedit", so it can be a program name with args.
9005set dummy nmedit; ac_word=$2
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007$as_echo_n "checking for $ac_word... " >&6; }
9008if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9009  $as_echo_n "(cached) " >&6
9010else
9011  if test -n "$ac_ct_NMEDIT"; then
9012  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9013else
9014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015for as_dir in $PATH
9016do
9017  IFS=$as_save_IFS
9018  test -z "$as_dir" && as_dir=.
9019    for ac_exec_ext in '' $ac_executable_extensions; do
9020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9021    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023    break 2
9024  fi
9025done
9026  done
9027IFS=$as_save_IFS
9028
9029fi
9030fi
9031ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9032if test -n "$ac_ct_NMEDIT"; then
9033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9034$as_echo "$ac_ct_NMEDIT" >&6; }
9035else
9036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037$as_echo "no" >&6; }
9038fi
9039
9040  if test "x$ac_ct_NMEDIT" = x; then
9041    NMEDIT=":"
9042  else
9043    case $cross_compiling:$ac_tool_warned in
9044yes:)
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9047ac_tool_warned=yes ;;
9048esac
9049    NMEDIT=$ac_ct_NMEDIT
9050  fi
9051else
9052  NMEDIT="$ac_cv_prog_NMEDIT"
9053fi
9054
9055    if test -n "$ac_tool_prefix"; then
9056  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9057set dummy ${ac_tool_prefix}lipo; ac_word=$2
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059$as_echo_n "checking for $ac_word... " >&6; }
9060if ${ac_cv_prog_LIPO+:} false; then :
9061  $as_echo_n "(cached) " >&6
9062else
9063  if test -n "$LIPO"; then
9064  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9065else
9066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067for as_dir in $PATH
9068do
9069  IFS=$as_save_IFS
9070  test -z "$as_dir" && as_dir=.
9071    for ac_exec_ext in '' $ac_executable_extensions; do
9072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9073    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9075    break 2
9076  fi
9077done
9078  done
9079IFS=$as_save_IFS
9080
9081fi
9082fi
9083LIPO=$ac_cv_prog_LIPO
9084if test -n "$LIPO"; then
9085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9086$as_echo "$LIPO" >&6; }
9087else
9088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089$as_echo "no" >&6; }
9090fi
9091
9092
9093fi
9094if test -z "$ac_cv_prog_LIPO"; then
9095  ac_ct_LIPO=$LIPO
9096  # Extract the first word of "lipo", so it can be a program name with args.
9097set dummy lipo; ac_word=$2
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099$as_echo_n "checking for $ac_word... " >&6; }
9100if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9101  $as_echo_n "(cached) " >&6
9102else
9103  if test -n "$ac_ct_LIPO"; then
9104  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9105else
9106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107for as_dir in $PATH
9108do
9109  IFS=$as_save_IFS
9110  test -z "$as_dir" && as_dir=.
9111    for ac_exec_ext in '' $ac_executable_extensions; do
9112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9113    ac_cv_prog_ac_ct_LIPO="lipo"
9114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115    break 2
9116  fi
9117done
9118  done
9119IFS=$as_save_IFS
9120
9121fi
9122fi
9123ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9124if test -n "$ac_ct_LIPO"; then
9125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9126$as_echo "$ac_ct_LIPO" >&6; }
9127else
9128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129$as_echo "no" >&6; }
9130fi
9131
9132  if test "x$ac_ct_LIPO" = x; then
9133    LIPO=":"
9134  else
9135    case $cross_compiling:$ac_tool_warned in
9136yes:)
9137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9139ac_tool_warned=yes ;;
9140esac
9141    LIPO=$ac_ct_LIPO
9142  fi
9143else
9144  LIPO="$ac_cv_prog_LIPO"
9145fi
9146
9147    if test -n "$ac_tool_prefix"; then
9148  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9149set dummy ${ac_tool_prefix}otool; ac_word=$2
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151$as_echo_n "checking for $ac_word... " >&6; }
9152if ${ac_cv_prog_OTOOL+:} false; then :
9153  $as_echo_n "(cached) " >&6
9154else
9155  if test -n "$OTOOL"; then
9156  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9157else
9158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159for as_dir in $PATH
9160do
9161  IFS=$as_save_IFS
9162  test -z "$as_dir" && as_dir=.
9163    for ac_exec_ext in '' $ac_executable_extensions; do
9164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9165    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167    break 2
9168  fi
9169done
9170  done
9171IFS=$as_save_IFS
9172
9173fi
9174fi
9175OTOOL=$ac_cv_prog_OTOOL
9176if test -n "$OTOOL"; then
9177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9178$as_echo "$OTOOL" >&6; }
9179else
9180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181$as_echo "no" >&6; }
9182fi
9183
9184
9185fi
9186if test -z "$ac_cv_prog_OTOOL"; then
9187  ac_ct_OTOOL=$OTOOL
9188  # Extract the first word of "otool", so it can be a program name with args.
9189set dummy otool; ac_word=$2
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191$as_echo_n "checking for $ac_word... " >&6; }
9192if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9193  $as_echo_n "(cached) " >&6
9194else
9195  if test -n "$ac_ct_OTOOL"; then
9196  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9197else
9198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199for as_dir in $PATH
9200do
9201  IFS=$as_save_IFS
9202  test -z "$as_dir" && as_dir=.
9203    for ac_exec_ext in '' $ac_executable_extensions; do
9204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9205    ac_cv_prog_ac_ct_OTOOL="otool"
9206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207    break 2
9208  fi
9209done
9210  done
9211IFS=$as_save_IFS
9212
9213fi
9214fi
9215ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9216if test -n "$ac_ct_OTOOL"; then
9217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9218$as_echo "$ac_ct_OTOOL" >&6; }
9219else
9220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221$as_echo "no" >&6; }
9222fi
9223
9224  if test "x$ac_ct_OTOOL" = x; then
9225    OTOOL=":"
9226  else
9227    case $cross_compiling:$ac_tool_warned in
9228yes:)
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9231ac_tool_warned=yes ;;
9232esac
9233    OTOOL=$ac_ct_OTOOL
9234  fi
9235else
9236  OTOOL="$ac_cv_prog_OTOOL"
9237fi
9238
9239    if test -n "$ac_tool_prefix"; then
9240  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9241set dummy ${ac_tool_prefix}otool64; ac_word=$2
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243$as_echo_n "checking for $ac_word... " >&6; }
9244if ${ac_cv_prog_OTOOL64+:} false; then :
9245  $as_echo_n "(cached) " >&6
9246else
9247  if test -n "$OTOOL64"; then
9248  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9249else
9250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251for as_dir in $PATH
9252do
9253  IFS=$as_save_IFS
9254  test -z "$as_dir" && as_dir=.
9255    for ac_exec_ext in '' $ac_executable_extensions; do
9256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9257    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259    break 2
9260  fi
9261done
9262  done
9263IFS=$as_save_IFS
9264
9265fi
9266fi
9267OTOOL64=$ac_cv_prog_OTOOL64
9268if test -n "$OTOOL64"; then
9269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9270$as_echo "$OTOOL64" >&6; }
9271else
9272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273$as_echo "no" >&6; }
9274fi
9275
9276
9277fi
9278if test -z "$ac_cv_prog_OTOOL64"; then
9279  ac_ct_OTOOL64=$OTOOL64
9280  # Extract the first word of "otool64", so it can be a program name with args.
9281set dummy otool64; ac_word=$2
9282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283$as_echo_n "checking for $ac_word... " >&6; }
9284if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9285  $as_echo_n "(cached) " >&6
9286else
9287  if test -n "$ac_ct_OTOOL64"; then
9288  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9289else
9290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291for as_dir in $PATH
9292do
9293  IFS=$as_save_IFS
9294  test -z "$as_dir" && as_dir=.
9295    for ac_exec_ext in '' $ac_executable_extensions; do
9296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9297    ac_cv_prog_ac_ct_OTOOL64="otool64"
9298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9299    break 2
9300  fi
9301done
9302  done
9303IFS=$as_save_IFS
9304
9305fi
9306fi
9307ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9308if test -n "$ac_ct_OTOOL64"; then
9309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9310$as_echo "$ac_ct_OTOOL64" >&6; }
9311else
9312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313$as_echo "no" >&6; }
9314fi
9315
9316  if test "x$ac_ct_OTOOL64" = x; then
9317    OTOOL64=":"
9318  else
9319    case $cross_compiling:$ac_tool_warned in
9320yes:)
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9323ac_tool_warned=yes ;;
9324esac
9325    OTOOL64=$ac_ct_OTOOL64
9326  fi
9327else
9328  OTOOL64="$ac_cv_prog_OTOOL64"
9329fi
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9358$as_echo_n "checking for -single_module linker flag... " >&6; }
9359if ${lt_cv_apple_cc_single_mod+:} false; then :
9360  $as_echo_n "(cached) " >&6
9361else
9362  lt_cv_apple_cc_single_mod=no
9363      if test -z "$LT_MULTI_MODULE"; then
9364	# By default we will add the -single_module flag. You can override
9365	# by either setting the environment variable LT_MULTI_MODULE
9366	# non-empty at configure time, or by adding -multi_module to the
9367	# link flags.
9368	rm -rf libconftest.dylib*
9369	echo "int foo(void){return 1;}" > conftest.c
9370	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9371-dynamiclib -Wl,-single_module conftest.c" >&5
9372	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9373	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9374        _lt_result=$?
9375	# If there is a non-empty error log, and "single_module"
9376	# appears in it, assume the flag caused a linker warning
9377        if test -s conftest.err && $GREP single_module conftest.err; then
9378	  cat conftest.err >&5
9379	# Otherwise, if the output was created with a 0 exit code from
9380	# the compiler, it worked.
9381	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9382	  lt_cv_apple_cc_single_mod=yes
9383	else
9384	  cat conftest.err >&5
9385	fi
9386	rm -rf libconftest.dylib*
9387	rm -f conftest.*
9388      fi
9389fi
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9391$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9392
9393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9394$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9395if ${lt_cv_ld_exported_symbols_list+:} false; then :
9396  $as_echo_n "(cached) " >&6
9397else
9398  lt_cv_ld_exported_symbols_list=no
9399      save_LDFLAGS=$LDFLAGS
9400      echo "_main" > conftest.sym
9401      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9402      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403/* end confdefs.h.  */
9404
9405int
9406main ()
9407{
9408
9409  ;
9410  return 0;
9411}
9412_ACEOF
9413if ac_fn_c_try_link "$LINENO"; then :
9414  lt_cv_ld_exported_symbols_list=yes
9415else
9416  lt_cv_ld_exported_symbols_list=no
9417fi
9418rm -f core conftest.err conftest.$ac_objext \
9419    conftest$ac_exeext conftest.$ac_ext
9420	LDFLAGS=$save_LDFLAGS
9421
9422fi
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9424$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9425
9426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9427$as_echo_n "checking for -force_load linker flag... " >&6; }
9428if ${lt_cv_ld_force_load+:} false; then :
9429  $as_echo_n "(cached) " >&6
9430else
9431  lt_cv_ld_force_load=no
9432      cat > conftest.c << _LT_EOF
9433int forced_loaded() { return 2;}
9434_LT_EOF
9435      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9436      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9437      echo "$AR cru libconftest.a conftest.o" >&5
9438      $AR cru libconftest.a conftest.o 2>&5
9439      echo "$RANLIB libconftest.a" >&5
9440      $RANLIB libconftest.a 2>&5
9441      cat > conftest.c << _LT_EOF
9442int main() { return 0;}
9443_LT_EOF
9444      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9445      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9446      _lt_result=$?
9447      if test -s conftest.err && $GREP force_load conftest.err; then
9448	cat conftest.err >&5
9449      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9450	lt_cv_ld_force_load=yes
9451      else
9452	cat conftest.err >&5
9453      fi
9454        rm -f conftest.err libconftest.a conftest conftest.c
9455        rm -rf conftest.dSYM
9456
9457fi
9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9459$as_echo "$lt_cv_ld_force_load" >&6; }
9460    case $host_os in
9461    rhapsody* | darwin1.[012])
9462      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9463    darwin1.*)
9464      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9465    darwin*) # darwin 5.x on
9466      # if running on 10.5 or later, the deployment target defaults
9467      # to the OS version, if on x86, and 10.4, the deployment
9468      # target defaults to 10.4. Don't you love it?
9469      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9470	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9471	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9472	10.[012][,.]*)
9473	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9474	10.*)
9475	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9476      esac
9477    ;;
9478  esac
9479    if test yes = "$lt_cv_apple_cc_single_mod"; then
9480      _lt_dar_single_mod='$single_module'
9481    fi
9482    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9483      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9484    else
9485      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9486    fi
9487    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9488      _lt_dsymutil='~$DSYMUTIL $lib || :'
9489    else
9490      _lt_dsymutil=
9491    fi
9492    ;;
9493  esac
9494
9495# func_munge_path_list VARIABLE PATH
9496# -----------------------------------
9497# VARIABLE is name of variable containing _space_ separated list of
9498# directories to be munged by the contents of PATH, which is string
9499# having a format:
9500# "DIR[:DIR]:"
9501#       string "DIR[ DIR]" will be prepended to VARIABLE
9502# ":DIR[:DIR]"
9503#       string "DIR[ DIR]" will be appended to VARIABLE
9504# "DIRP[:DIRP]::[DIRA:]DIRA"
9505#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9506#       "DIRA[ DIRA]" will be appended to VARIABLE
9507# "DIR[:DIR]"
9508#       VARIABLE will be replaced by "DIR[ DIR]"
9509func_munge_path_list ()
9510{
9511    case x$2 in
9512    x)
9513        ;;
9514    *:)
9515        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9516        ;;
9517    x:*)
9518        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9519        ;;
9520    *::*)
9521        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9522        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9523        ;;
9524    *)
9525        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9526        ;;
9527    esac
9528}
9529
9530for ac_header in dlfcn.h
9531do :
9532  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9533"
9534if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9535  cat >>confdefs.h <<_ACEOF
9536#define HAVE_DLFCN_H 1
9537_ACEOF
9538
9539fi
9540
9541done
9542
9543
9544
9545
9546func_stripname_cnf ()
9547{
9548  case $2 in
9549  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9550  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9551  esac
9552} # func_stripname_cnf
9553
9554
9555
9556
9557
9558# Set options
9559
9560
9561
9562        enable_dlopen=no
9563
9564
9565  enable_win32_dll=no
9566
9567
9568            # Check whether --enable-shared was given.
9569if test "${enable_shared+set}" = set; then :
9570  enableval=$enable_shared; p=${PACKAGE-default}
9571    case $enableval in
9572    yes) enable_shared=yes ;;
9573    no) enable_shared=no ;;
9574    *)
9575      enable_shared=no
9576      # Look at the argument we got.  We use all the common list separators.
9577      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9578      for pkg in $enableval; do
9579	IFS=$lt_save_ifs
9580	if test "X$pkg" = "X$p"; then
9581	  enable_shared=yes
9582	fi
9583      done
9584      IFS=$lt_save_ifs
9585      ;;
9586    esac
9587else
9588  enable_shared=yes
9589fi
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601# Check whether --with-pic was given.
9602if test "${with_pic+set}" = set; then :
9603  withval=$with_pic; lt_p=${PACKAGE-default}
9604    case $withval in
9605    yes|no) pic_mode=$withval ;;
9606    *)
9607      pic_mode=default
9608      # Look at the argument we got.  We use all the common list separators.
9609      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9610      for lt_pkg in $withval; do
9611	IFS=$lt_save_ifs
9612	if test "X$lt_pkg" = "X$lt_p"; then
9613	  pic_mode=yes
9614	fi
9615      done
9616      IFS=$lt_save_ifs
9617      ;;
9618    esac
9619else
9620  pic_mode=default
9621fi
9622
9623
9624
9625
9626
9627
9628
9629
9630  # Check whether --enable-fast-install was given.
9631if test "${enable_fast_install+set}" = set; then :
9632  enableval=$enable_fast_install; p=${PACKAGE-default}
9633    case $enableval in
9634    yes) enable_fast_install=yes ;;
9635    no) enable_fast_install=no ;;
9636    *)
9637      enable_fast_install=no
9638      # Look at the argument we got.  We use all the common list separators.
9639      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9640      for pkg in $enableval; do
9641	IFS=$lt_save_ifs
9642	if test "X$pkg" = "X$p"; then
9643	  enable_fast_install=yes
9644	fi
9645      done
9646      IFS=$lt_save_ifs
9647      ;;
9648    esac
9649else
9650  enable_fast_install=yes
9651fi
9652
9653
9654
9655
9656
9657
9658
9659
9660  shared_archive_member_spec=
9661case $host,$enable_shared in
9662power*-*-aix[5-9]*,yes)
9663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9664$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9665
9666# Check whether --with-aix-soname was given.
9667if test "${with_aix_soname+set}" = set; then :
9668  withval=$with_aix_soname; case $withval in
9669    aix|svr4|both)
9670      ;;
9671    *)
9672      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9673      ;;
9674    esac
9675    lt_cv_with_aix_soname=$with_aix_soname
9676else
9677  if ${lt_cv_with_aix_soname+:} false; then :
9678  $as_echo_n "(cached) " >&6
9679else
9680  lt_cv_with_aix_soname=aix
9681fi
9682
9683    with_aix_soname=$lt_cv_with_aix_soname
9684fi
9685
9686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9687$as_echo "$with_aix_soname" >&6; }
9688  if test aix != "$with_aix_soname"; then
9689    # For the AIX way of multilib, we name the shared archive member
9690    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9691    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9692    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9693    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9694    if test 64 = "${OBJECT_MODE-32}"; then
9695      shared_archive_member_spec=shr_64
9696    else
9697      shared_archive_member_spec=shr
9698    fi
9699  fi
9700  ;;
9701*)
9702  with_aix_soname=aix
9703  ;;
9704esac
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715# This can be used to rebuild libtool when needed
9716LIBTOOL_DEPS=$ltmain
9717
9718# Always use our own libtool.
9719LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750test -z "$LN_S" && LN_S="ln -s"
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765if test -n "${ZSH_VERSION+set}"; then
9766   setopt NO_GLOB_SUBST
9767fi
9768
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9770$as_echo_n "checking for objdir... " >&6; }
9771if ${lt_cv_objdir+:} false; then :
9772  $as_echo_n "(cached) " >&6
9773else
9774  rm -f .libs 2>/dev/null
9775mkdir .libs 2>/dev/null
9776if test -d .libs; then
9777  lt_cv_objdir=.libs
9778else
9779  # MS-DOS does not allow filenames that begin with a dot.
9780  lt_cv_objdir=_libs
9781fi
9782rmdir .libs 2>/dev/null
9783fi
9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9785$as_echo "$lt_cv_objdir" >&6; }
9786objdir=$lt_cv_objdir
9787
9788
9789
9790
9791
9792cat >>confdefs.h <<_ACEOF
9793#define LT_OBJDIR "$lt_cv_objdir/"
9794_ACEOF
9795
9796
9797
9798
9799case $host_os in
9800aix3*)
9801  # AIX sometimes has problems with the GCC collect2 program.  For some
9802  # reason, if we set the COLLECT_NAMES environment variable, the problems
9803  # vanish in a puff of smoke.
9804  if test set != "${COLLECT_NAMES+set}"; then
9805    COLLECT_NAMES=
9806    export COLLECT_NAMES
9807  fi
9808  ;;
9809esac
9810
9811# Global variables:
9812ofile=libtool
9813can_build_shared=yes
9814
9815# All known linkers require a '.a' archive for static linking (except MSVC,
9816# which needs '.lib').
9817libext=a
9818
9819with_gnu_ld=$lt_cv_prog_gnu_ld
9820
9821old_CC=$CC
9822old_CFLAGS=$CFLAGS
9823
9824# Set sane defaults for various variables
9825test -z "$CC" && CC=cc
9826test -z "$LTCC" && LTCC=$CC
9827test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9828test -z "$LD" && LD=ld
9829test -z "$ac_objext" && ac_objext=o
9830
9831func_cc_basename $compiler
9832cc_basename=$func_cc_basename_result
9833
9834
9835# Only perform the check for file, if the check method requires it
9836test -z "$MAGIC_CMD" && MAGIC_CMD=file
9837case $deplibs_check_method in
9838file_magic*)
9839  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9841$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9842if ${lt_cv_path_MAGIC_CMD+:} false; then :
9843  $as_echo_n "(cached) " >&6
9844else
9845  case $MAGIC_CMD in
9846[\\/*] |  ?:[\\/]*)
9847  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9848  ;;
9849*)
9850  lt_save_MAGIC_CMD=$MAGIC_CMD
9851  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9852  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9853  for ac_dir in $ac_dummy; do
9854    IFS=$lt_save_ifs
9855    test -z "$ac_dir" && ac_dir=.
9856    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9857      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9858      if test -n "$file_magic_test_file"; then
9859	case $deplibs_check_method in
9860	"file_magic "*)
9861	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9862	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9863	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9864	    $EGREP "$file_magic_regex" > /dev/null; then
9865	    :
9866	  else
9867	    cat <<_LT_EOF 1>&2
9868
9869*** Warning: the command libtool uses to detect shared libraries,
9870*** $file_magic_cmd, produces output that libtool cannot recognize.
9871*** The result is that libtool may fail to recognize shared libraries
9872*** as such.  This will affect the creation of libtool libraries that
9873*** depend on shared libraries, but programs linked with such libtool
9874*** libraries will work regardless of this problem.  Nevertheless, you
9875*** may want to report the problem to your system manager and/or to
9876*** bug-libtool@gnu.org
9877
9878_LT_EOF
9879	  fi ;;
9880	esac
9881      fi
9882      break
9883    fi
9884  done
9885  IFS=$lt_save_ifs
9886  MAGIC_CMD=$lt_save_MAGIC_CMD
9887  ;;
9888esac
9889fi
9890
9891MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9892if test -n "$MAGIC_CMD"; then
9893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9894$as_echo "$MAGIC_CMD" >&6; }
9895else
9896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897$as_echo "no" >&6; }
9898fi
9899
9900
9901
9902
9903
9904if test -z "$lt_cv_path_MAGIC_CMD"; then
9905  if test -n "$ac_tool_prefix"; then
9906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9907$as_echo_n "checking for file... " >&6; }
9908if ${lt_cv_path_MAGIC_CMD+:} false; then :
9909  $as_echo_n "(cached) " >&6
9910else
9911  case $MAGIC_CMD in
9912[\\/*] |  ?:[\\/]*)
9913  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9914  ;;
9915*)
9916  lt_save_MAGIC_CMD=$MAGIC_CMD
9917  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9918  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9919  for ac_dir in $ac_dummy; do
9920    IFS=$lt_save_ifs
9921    test -z "$ac_dir" && ac_dir=.
9922    if test -f "$ac_dir/file"; then
9923      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9924      if test -n "$file_magic_test_file"; then
9925	case $deplibs_check_method in
9926	"file_magic "*)
9927	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9928	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9929	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9930	    $EGREP "$file_magic_regex" > /dev/null; then
9931	    :
9932	  else
9933	    cat <<_LT_EOF 1>&2
9934
9935*** Warning: the command libtool uses to detect shared libraries,
9936*** $file_magic_cmd, produces output that libtool cannot recognize.
9937*** The result is that libtool may fail to recognize shared libraries
9938*** as such.  This will affect the creation of libtool libraries that
9939*** depend on shared libraries, but programs linked with such libtool
9940*** libraries will work regardless of this problem.  Nevertheless, you
9941*** may want to report the problem to your system manager and/or to
9942*** bug-libtool@gnu.org
9943
9944_LT_EOF
9945	  fi ;;
9946	esac
9947      fi
9948      break
9949    fi
9950  done
9951  IFS=$lt_save_ifs
9952  MAGIC_CMD=$lt_save_MAGIC_CMD
9953  ;;
9954esac
9955fi
9956
9957MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9958if test -n "$MAGIC_CMD"; then
9959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9960$as_echo "$MAGIC_CMD" >&6; }
9961else
9962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963$as_echo "no" >&6; }
9964fi
9965
9966
9967  else
9968    MAGIC_CMD=:
9969  fi
9970fi
9971
9972  fi
9973  ;;
9974esac
9975
9976# Use C for the default configuration in the libtool script
9977
9978lt_save_CC=$CC
9979ac_ext=c
9980ac_cpp='$CPP $CPPFLAGS'
9981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9983ac_compiler_gnu=$ac_cv_c_compiler_gnu
9984
9985
9986# Source file extension for C test sources.
9987ac_ext=c
9988
9989# Object file extension for compiled C test sources.
9990objext=o
9991objext=$objext
9992
9993# Code to be used in simple compile tests
9994lt_simple_compile_test_code="int some_variable = 0;"
9995
9996# Code to be used in simple link tests
9997lt_simple_link_test_code='int main(){return(0);}'
9998
9999
10000
10001
10002
10003
10004
10005# If no C compiler was specified, use CC.
10006LTCC=${LTCC-"$CC"}
10007
10008# If no C compiler flags were specified, use CFLAGS.
10009LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10010
10011# Allow CC to be a program name with arguments.
10012compiler=$CC
10013
10014# Save the default compiler, since it gets overwritten when the other
10015# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10016compiler_DEFAULT=$CC
10017
10018# save warnings/boilerplate of simple test code
10019ac_outfile=conftest.$ac_objext
10020echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10021eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10022_lt_compiler_boilerplate=`cat conftest.err`
10023$RM conftest*
10024
10025ac_outfile=conftest.$ac_objext
10026echo "$lt_simple_link_test_code" >conftest.$ac_ext
10027eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10028_lt_linker_boilerplate=`cat conftest.err`
10029$RM -r conftest*
10030
10031
10032## CAVEAT EMPTOR:
10033## There is no encapsulation within the following macros, do not change
10034## the running order or otherwise move them around unless you know exactly
10035## what you are doing...
10036if test -n "$compiler"; then
10037
10038lt_prog_compiler_no_builtin_flag=
10039
10040if test yes = "$GCC"; then
10041  case $cc_basename in
10042  nvcc*)
10043    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10044  *)
10045    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10046  esac
10047
10048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10049$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10050if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10051  $as_echo_n "(cached) " >&6
10052else
10053  lt_cv_prog_compiler_rtti_exceptions=no
10054   ac_outfile=conftest.$ac_objext
10055   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10056   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10057   # Insert the option either (1) after the last *FLAGS variable, or
10058   # (2) before a word containing "conftest.", or (3) at the end.
10059   # Note that $ac_compile itself does not contain backslashes and begins
10060   # with a dollar sign (not a hyphen), so the echo should work correctly.
10061   # The option is referenced via a variable to avoid confusing sed.
10062   lt_compile=`echo "$ac_compile" | $SED \
10063   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10064   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10065   -e 's:$: $lt_compiler_flag:'`
10066   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10067   (eval "$lt_compile" 2>conftest.err)
10068   ac_status=$?
10069   cat conftest.err >&5
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   if (exit $ac_status) && test -s "$ac_outfile"; then
10072     # The compiler can only warn and ignore the option if not recognized
10073     # So say no if there are warnings other than the usual output.
10074     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10075     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10076     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10077       lt_cv_prog_compiler_rtti_exceptions=yes
10078     fi
10079   fi
10080   $RM conftest*
10081
10082fi
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10084$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10085
10086if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10087    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10088else
10089    :
10090fi
10091
10092fi
10093
10094
10095
10096
10097
10098
10099  lt_prog_compiler_wl=
10100lt_prog_compiler_pic=
10101lt_prog_compiler_static=
10102
10103
10104  if test yes = "$GCC"; then
10105    lt_prog_compiler_wl='-Wl,'
10106    lt_prog_compiler_static='-static'
10107
10108    case $host_os in
10109      aix*)
10110      # All AIX code is PIC.
10111      if test ia64 = "$host_cpu"; then
10112	# AIX 5 now supports IA64 processor
10113	lt_prog_compiler_static='-Bstatic'
10114      fi
10115      lt_prog_compiler_pic='-fPIC'
10116      ;;
10117
10118    amigaos*)
10119      case $host_cpu in
10120      powerpc)
10121            # see comment about AmigaOS4 .so support
10122            lt_prog_compiler_pic='-fPIC'
10123        ;;
10124      m68k)
10125            # FIXME: we need at least 68020 code to build shared libraries, but
10126            # adding the '-m68020' flag to GCC prevents building anything better,
10127            # like '-m68040'.
10128            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10129        ;;
10130      esac
10131      ;;
10132
10133    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10134      # PIC is the default for these OSes.
10135      ;;
10136
10137    mingw* | cygwin* | pw32* | os2* | cegcc*)
10138      # This hack is so that the source file can tell whether it is being
10139      # built for inclusion in a dll (and should export symbols for example).
10140      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10141      # (--disable-auto-import) libraries
10142      lt_prog_compiler_pic='-DDLL_EXPORT'
10143      case $host_os in
10144      os2*)
10145	lt_prog_compiler_static='$wl-static'
10146	;;
10147      esac
10148      ;;
10149
10150    darwin* | rhapsody*)
10151      # PIC is the default on this platform
10152      # Common symbols not allowed in MH_DYLIB files
10153      lt_prog_compiler_pic='-fno-common'
10154      ;;
10155
10156    haiku*)
10157      # PIC is the default for Haiku.
10158      # The "-static" flag exists, but is broken.
10159      lt_prog_compiler_static=
10160      ;;
10161
10162    hpux*)
10163      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10164      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10165      # sets the default TLS model and affects inlining.
10166      case $host_cpu in
10167      hppa*64*)
10168	# +Z the default
10169	;;
10170      *)
10171	lt_prog_compiler_pic='-fPIC'
10172	;;
10173      esac
10174      ;;
10175
10176    interix[3-9]*)
10177      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10178      # Instead, we relocate shared libraries at runtime.
10179      ;;
10180
10181    msdosdjgpp*)
10182      # Just because we use GCC doesn't mean we suddenly get shared libraries
10183      # on systems that don't support them.
10184      lt_prog_compiler_can_build_shared=no
10185      enable_shared=no
10186      ;;
10187
10188    *nto* | *qnx*)
10189      # QNX uses GNU C++, but need to define -shared option too, otherwise
10190      # it will coredump.
10191      lt_prog_compiler_pic='-fPIC -shared'
10192      ;;
10193
10194    sysv4*MP*)
10195      if test -d /usr/nec; then
10196	lt_prog_compiler_pic=-Kconform_pic
10197      fi
10198      ;;
10199
10200    *)
10201      lt_prog_compiler_pic='-fPIC'
10202      ;;
10203    esac
10204
10205    case $cc_basename in
10206    nvcc*) # Cuda Compiler Driver 2.2
10207      lt_prog_compiler_wl='-Xlinker '
10208      if test -n "$lt_prog_compiler_pic"; then
10209        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10210      fi
10211      ;;
10212    esac
10213  else
10214    # PORTME Check for flag to pass linker flags through the system compiler.
10215    case $host_os in
10216    aix*)
10217      lt_prog_compiler_wl='-Wl,'
10218      if test ia64 = "$host_cpu"; then
10219	# AIX 5 now supports IA64 processor
10220	lt_prog_compiler_static='-Bstatic'
10221      else
10222	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10223      fi
10224      ;;
10225
10226    darwin* | rhapsody*)
10227      # PIC is the default on this platform
10228      # Common symbols not allowed in MH_DYLIB files
10229      lt_prog_compiler_pic='-fno-common'
10230      case $cc_basename in
10231      nagfor*)
10232        # NAG Fortran compiler
10233        lt_prog_compiler_wl='-Wl,-Wl,,'
10234        lt_prog_compiler_pic='-PIC'
10235        lt_prog_compiler_static='-Bstatic'
10236        ;;
10237      esac
10238      ;;
10239
10240    mingw* | cygwin* | pw32* | os2* | cegcc*)
10241      # This hack is so that the source file can tell whether it is being
10242      # built for inclusion in a dll (and should export symbols for example).
10243      lt_prog_compiler_pic='-DDLL_EXPORT'
10244      case $host_os in
10245      os2*)
10246	lt_prog_compiler_static='$wl-static'
10247	;;
10248      esac
10249      ;;
10250
10251    hpux9* | hpux10* | hpux11*)
10252      lt_prog_compiler_wl='-Wl,'
10253      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10254      # not for PA HP-UX.
10255      case $host_cpu in
10256      hppa*64*|ia64*)
10257	# +Z the default
10258	;;
10259      *)
10260	lt_prog_compiler_pic='+Z'
10261	;;
10262      esac
10263      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10264      lt_prog_compiler_static='$wl-a ${wl}archive'
10265      ;;
10266
10267    irix5* | irix6* | nonstopux*)
10268      lt_prog_compiler_wl='-Wl,'
10269      # PIC (with -KPIC) is the default.
10270      lt_prog_compiler_static='-non_shared'
10271      ;;
10272
10273    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10274      case $cc_basename in
10275      # old Intel for x86_64, which still supported -KPIC.
10276      ecc*)
10277	lt_prog_compiler_wl='-Wl,'
10278	lt_prog_compiler_pic='-KPIC'
10279	lt_prog_compiler_static='-static'
10280        ;;
10281      # icc used to be incompatible with GCC.
10282      # ICC 10 doesn't accept -KPIC any more.
10283      icc* | ifort*)
10284	lt_prog_compiler_wl='-Wl,'
10285	lt_prog_compiler_pic='-fPIC'
10286	lt_prog_compiler_static='-static'
10287        ;;
10288      # Lahey Fortran 8.1.
10289      lf95*)
10290	lt_prog_compiler_wl='-Wl,'
10291	lt_prog_compiler_pic='--shared'
10292	lt_prog_compiler_static='--static'
10293	;;
10294      nagfor*)
10295	# NAG Fortran compiler
10296	lt_prog_compiler_wl='-Wl,-Wl,,'
10297	lt_prog_compiler_pic='-PIC'
10298	lt_prog_compiler_static='-Bstatic'
10299	;;
10300      tcc*)
10301	# Fabrice Bellard et al's Tiny C Compiler
10302	lt_prog_compiler_wl='-Wl,'
10303	lt_prog_compiler_pic='-fPIC'
10304	lt_prog_compiler_static='-static'
10305	;;
10306      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10307        # Portland Group compilers (*not* the Pentium gcc compiler,
10308	# which looks to be a dead project)
10309	lt_prog_compiler_wl='-Wl,'
10310	lt_prog_compiler_pic='-fpic'
10311	lt_prog_compiler_static='-Bstatic'
10312        ;;
10313      ccc*)
10314        lt_prog_compiler_wl='-Wl,'
10315        # All Alpha code is PIC.
10316        lt_prog_compiler_static='-non_shared'
10317        ;;
10318      xl* | bgxl* | bgf* | mpixl*)
10319	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10320	lt_prog_compiler_wl='-Wl,'
10321	lt_prog_compiler_pic='-qpic'
10322	lt_prog_compiler_static='-qstaticlink'
10323	;;
10324      *)
10325	case `$CC -V 2>&1 | sed 5q` in
10326	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10327	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10328	  lt_prog_compiler_pic='-KPIC'
10329	  lt_prog_compiler_static='-Bstatic'
10330	  lt_prog_compiler_wl=''
10331	  ;;
10332	*Sun\ F* | *Sun*Fortran*)
10333	  lt_prog_compiler_pic='-KPIC'
10334	  lt_prog_compiler_static='-Bstatic'
10335	  lt_prog_compiler_wl='-Qoption ld '
10336	  ;;
10337	*Sun\ C*)
10338	  # Sun C 5.9
10339	  lt_prog_compiler_pic='-KPIC'
10340	  lt_prog_compiler_static='-Bstatic'
10341	  lt_prog_compiler_wl='-Wl,'
10342	  ;;
10343        *Intel*\ [CF]*Compiler*)
10344	  lt_prog_compiler_wl='-Wl,'
10345	  lt_prog_compiler_pic='-fPIC'
10346	  lt_prog_compiler_static='-static'
10347	  ;;
10348	*Portland\ Group*)
10349	  lt_prog_compiler_wl='-Wl,'
10350	  lt_prog_compiler_pic='-fpic'
10351	  lt_prog_compiler_static='-Bstatic'
10352	  ;;
10353	esac
10354	;;
10355      esac
10356      ;;
10357
10358    newsos6)
10359      lt_prog_compiler_pic='-KPIC'
10360      lt_prog_compiler_static='-Bstatic'
10361      ;;
10362
10363    *nto* | *qnx*)
10364      # QNX uses GNU C++, but need to define -shared option too, otherwise
10365      # it will coredump.
10366      lt_prog_compiler_pic='-fPIC -shared'
10367      ;;
10368
10369    osf3* | osf4* | osf5*)
10370      lt_prog_compiler_wl='-Wl,'
10371      # All OSF/1 code is PIC.
10372      lt_prog_compiler_static='-non_shared'
10373      ;;
10374
10375    rdos*)
10376      lt_prog_compiler_static='-non_shared'
10377      ;;
10378
10379    solaris*)
10380      lt_prog_compiler_pic='-KPIC'
10381      lt_prog_compiler_static='-Bstatic'
10382      case $cc_basename in
10383      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10384	lt_prog_compiler_wl='-Qoption ld ';;
10385      *)
10386	lt_prog_compiler_wl='-Wl,';;
10387      esac
10388      ;;
10389
10390    sunos4*)
10391      lt_prog_compiler_wl='-Qoption ld '
10392      lt_prog_compiler_pic='-PIC'
10393      lt_prog_compiler_static='-Bstatic'
10394      ;;
10395
10396    sysv4 | sysv4.2uw2* | sysv4.3*)
10397      lt_prog_compiler_wl='-Wl,'
10398      lt_prog_compiler_pic='-KPIC'
10399      lt_prog_compiler_static='-Bstatic'
10400      ;;
10401
10402    sysv4*MP*)
10403      if test -d /usr/nec; then
10404	lt_prog_compiler_pic='-Kconform_pic'
10405	lt_prog_compiler_static='-Bstatic'
10406      fi
10407      ;;
10408
10409    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10410      lt_prog_compiler_wl='-Wl,'
10411      lt_prog_compiler_pic='-KPIC'
10412      lt_prog_compiler_static='-Bstatic'
10413      ;;
10414
10415    unicos*)
10416      lt_prog_compiler_wl='-Wl,'
10417      lt_prog_compiler_can_build_shared=no
10418      ;;
10419
10420    uts4*)
10421      lt_prog_compiler_pic='-pic'
10422      lt_prog_compiler_static='-Bstatic'
10423      ;;
10424
10425    *)
10426      lt_prog_compiler_can_build_shared=no
10427      ;;
10428    esac
10429  fi
10430
10431case $host_os in
10432  # For platforms that do not support PIC, -DPIC is meaningless:
10433  *djgpp*)
10434    lt_prog_compiler_pic=
10435    ;;
10436  *)
10437    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10438    ;;
10439esac
10440
10441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10442$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10443if ${lt_cv_prog_compiler_pic+:} false; then :
10444  $as_echo_n "(cached) " >&6
10445else
10446  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10447fi
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10449$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10450lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10451
10452#
10453# Check to make sure the PIC flag actually works.
10454#
10455if test -n "$lt_prog_compiler_pic"; then
10456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10457$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10458if ${lt_cv_prog_compiler_pic_works+:} false; then :
10459  $as_echo_n "(cached) " >&6
10460else
10461  lt_cv_prog_compiler_pic_works=no
10462   ac_outfile=conftest.$ac_objext
10463   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10464   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10465   # Insert the option either (1) after the last *FLAGS variable, or
10466   # (2) before a word containing "conftest.", or (3) at the end.
10467   # Note that $ac_compile itself does not contain backslashes and begins
10468   # with a dollar sign (not a hyphen), so the echo should work correctly.
10469   # The option is referenced via a variable to avoid confusing sed.
10470   lt_compile=`echo "$ac_compile" | $SED \
10471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10473   -e 's:$: $lt_compiler_flag:'`
10474   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10475   (eval "$lt_compile" 2>conftest.err)
10476   ac_status=$?
10477   cat conftest.err >&5
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   if (exit $ac_status) && test -s "$ac_outfile"; then
10480     # The compiler can only warn and ignore the option if not recognized
10481     # So say no if there are warnings other than the usual output.
10482     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10483     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10484     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10485       lt_cv_prog_compiler_pic_works=yes
10486     fi
10487   fi
10488   $RM conftest*
10489
10490fi
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10492$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10493
10494if test yes = "$lt_cv_prog_compiler_pic_works"; then
10495    case $lt_prog_compiler_pic in
10496     "" | " "*) ;;
10497     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10498     esac
10499else
10500    lt_prog_compiler_pic=
10501     lt_prog_compiler_can_build_shared=no
10502fi
10503
10504fi
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516#
10517# Check to make sure the static flag actually works.
10518#
10519wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10521$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10522if ${lt_cv_prog_compiler_static_works+:} false; then :
10523  $as_echo_n "(cached) " >&6
10524else
10525  lt_cv_prog_compiler_static_works=no
10526   save_LDFLAGS=$LDFLAGS
10527   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10528   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10529   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10530     # The linker can only warn and ignore the option if not recognized
10531     # So say no if there are warnings
10532     if test -s conftest.err; then
10533       # Append any errors to the config.log.
10534       cat conftest.err 1>&5
10535       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10536       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10537       if diff conftest.exp conftest.er2 >/dev/null; then
10538         lt_cv_prog_compiler_static_works=yes
10539       fi
10540     else
10541       lt_cv_prog_compiler_static_works=yes
10542     fi
10543   fi
10544   $RM -r conftest*
10545   LDFLAGS=$save_LDFLAGS
10546
10547fi
10548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10549$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10550
10551if test yes = "$lt_cv_prog_compiler_static_works"; then
10552    :
10553else
10554    lt_prog_compiler_static=
10555fi
10556
10557
10558
10559
10560
10561
10562
10563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10564$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10565if ${lt_cv_prog_compiler_c_o+:} false; then :
10566  $as_echo_n "(cached) " >&6
10567else
10568  lt_cv_prog_compiler_c_o=no
10569   $RM -r conftest 2>/dev/null
10570   mkdir conftest
10571   cd conftest
10572   mkdir out
10573   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10574
10575   lt_compiler_flag="-o out/conftest2.$ac_objext"
10576   # Insert the option either (1) after the last *FLAGS variable, or
10577   # (2) before a word containing "conftest.", or (3) at the end.
10578   # Note that $ac_compile itself does not contain backslashes and begins
10579   # with a dollar sign (not a hyphen), so the echo should work correctly.
10580   lt_compile=`echo "$ac_compile" | $SED \
10581   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10582   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10583   -e 's:$: $lt_compiler_flag:'`
10584   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10585   (eval "$lt_compile" 2>out/conftest.err)
10586   ac_status=$?
10587   cat out/conftest.err >&5
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10590   then
10591     # The compiler can only warn and ignore the option if not recognized
10592     # So say no if there are warnings
10593     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10594     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10595     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10596       lt_cv_prog_compiler_c_o=yes
10597     fi
10598   fi
10599   chmod u+w . 2>&5
10600   $RM conftest*
10601   # SGI C++ compiler will create directory out/ii_files/ for
10602   # template instantiation
10603   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10604   $RM out/* && rmdir out
10605   cd ..
10606   $RM -r conftest
10607   $RM conftest*
10608
10609fi
10610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10611$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10612
10613
10614
10615
10616
10617
10618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10619$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10620if ${lt_cv_prog_compiler_c_o+:} false; then :
10621  $as_echo_n "(cached) " >&6
10622else
10623  lt_cv_prog_compiler_c_o=no
10624   $RM -r conftest 2>/dev/null
10625   mkdir conftest
10626   cd conftest
10627   mkdir out
10628   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10629
10630   lt_compiler_flag="-o out/conftest2.$ac_objext"
10631   # Insert the option either (1) after the last *FLAGS variable, or
10632   # (2) before a word containing "conftest.", or (3) at the end.
10633   # Note that $ac_compile itself does not contain backslashes and begins
10634   # with a dollar sign (not a hyphen), so the echo should work correctly.
10635   lt_compile=`echo "$ac_compile" | $SED \
10636   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10637   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10638   -e 's:$: $lt_compiler_flag:'`
10639   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10640   (eval "$lt_compile" 2>out/conftest.err)
10641   ac_status=$?
10642   cat out/conftest.err >&5
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10645   then
10646     # The compiler can only warn and ignore the option if not recognized
10647     # So say no if there are warnings
10648     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10649     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10650     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10651       lt_cv_prog_compiler_c_o=yes
10652     fi
10653   fi
10654   chmod u+w . 2>&5
10655   $RM conftest*
10656   # SGI C++ compiler will create directory out/ii_files/ for
10657   # template instantiation
10658   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10659   $RM out/* && rmdir out
10660   cd ..
10661   $RM -r conftest
10662   $RM conftest*
10663
10664fi
10665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10666$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10667
10668
10669
10670
10671hard_links=nottested
10672if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10673  # do not overwrite the value of need_locks provided by the user
10674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10675$as_echo_n "checking if we can lock with hard links... " >&6; }
10676  hard_links=yes
10677  $RM conftest*
10678  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10679  touch conftest.a
10680  ln conftest.a conftest.b 2>&5 || hard_links=no
10681  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10683$as_echo "$hard_links" >&6; }
10684  if test no = "$hard_links"; then
10685    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10686$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10687    need_locks=warn
10688  fi
10689else
10690  need_locks=no
10691fi
10692
10693
10694
10695
10696
10697
10698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10699$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10700
10701  runpath_var=
10702  allow_undefined_flag=
10703  always_export_symbols=no
10704  archive_cmds=
10705  archive_expsym_cmds=
10706  compiler_needs_object=no
10707  enable_shared_with_static_runtimes=no
10708  export_dynamic_flag_spec=
10709  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10710  hardcode_automatic=no
10711  hardcode_direct=no
10712  hardcode_direct_absolute=no
10713  hardcode_libdir_flag_spec=
10714  hardcode_libdir_separator=
10715  hardcode_minus_L=no
10716  hardcode_shlibpath_var=unsupported
10717  inherit_rpath=no
10718  link_all_deplibs=unknown
10719  module_cmds=
10720  module_expsym_cmds=
10721  old_archive_from_new_cmds=
10722  old_archive_from_expsyms_cmds=
10723  thread_safe_flag_spec=
10724  whole_archive_flag_spec=
10725  # include_expsyms should be a list of space-separated symbols to be *always*
10726  # included in the symbol list
10727  include_expsyms=
10728  # exclude_expsyms can be an extended regexp of symbols to exclude
10729  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10730  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10731  # as well as any symbol that contains 'd'.
10732  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10733  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10734  # platforms (ab)use it in PIC code, but their linkers get confused if
10735  # the symbol is explicitly referenced.  Since portable code cannot
10736  # rely on this symbol name, it's probably fine to never include it in
10737  # preloaded symbol tables.
10738  # Exclude shared library initialization/finalization symbols.
10739  extract_expsyms_cmds=
10740
10741  case $host_os in
10742  cygwin* | mingw* | pw32* | cegcc*)
10743    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10744    # When not using gcc, we currently assume that we are using
10745    # Microsoft Visual C++.
10746    if test yes != "$GCC"; then
10747      with_gnu_ld=no
10748    fi
10749    ;;
10750  interix*)
10751    # we just hope/assume this is gcc and not c89 (= MSVC++)
10752    with_gnu_ld=yes
10753    ;;
10754  openbsd* | bitrig*)
10755    with_gnu_ld=no
10756    ;;
10757  esac
10758
10759  ld_shlibs=yes
10760
10761  # On some targets, GNU ld is compatible enough with the native linker
10762  # that we're better off using the native interface for both.
10763  lt_use_gnu_ld_interface=no
10764  if test yes = "$with_gnu_ld"; then
10765    case $host_os in
10766      aix*)
10767	# The AIX port of GNU ld has always aspired to compatibility
10768	# with the native linker.  However, as the warning in the GNU ld
10769	# block says, versions before 2.19.5* couldn't really create working
10770	# shared libraries, regardless of the interface used.
10771	case `$LD -v 2>&1` in
10772	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10773	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10774	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10775	  *)
10776	    lt_use_gnu_ld_interface=yes
10777	    ;;
10778	esac
10779	;;
10780      *)
10781	lt_use_gnu_ld_interface=yes
10782	;;
10783    esac
10784  fi
10785
10786  if test yes = "$lt_use_gnu_ld_interface"; then
10787    # If archive_cmds runs LD, not CC, wlarc should be empty
10788    wlarc='$wl'
10789
10790    # Set some defaults for GNU ld with shared library support. These
10791    # are reset later if shared libraries are not supported. Putting them
10792    # here allows them to be overridden if necessary.
10793    runpath_var=LD_RUN_PATH
10794    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10795    export_dynamic_flag_spec='$wl--export-dynamic'
10796    # ancient GNU ld didn't support --whole-archive et. al.
10797    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10798      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10799    else
10800      whole_archive_flag_spec=
10801    fi
10802    supports_anon_versioning=no
10803    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10804      *GNU\ gold*) supports_anon_versioning=yes ;;
10805      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10806      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10807      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10808      *\ 2.11.*) ;; # other 2.11 versions
10809      *) supports_anon_versioning=yes ;;
10810    esac
10811
10812    # See if GNU ld supports shared libraries.
10813    case $host_os in
10814    aix[3-9]*)
10815      # On AIX/PPC, the GNU linker is very broken
10816      if test ia64 != "$host_cpu"; then
10817	ld_shlibs=no
10818	cat <<_LT_EOF 1>&2
10819
10820*** Warning: the GNU linker, at least up to release 2.19, is reported
10821*** to be unable to reliably create shared libraries on AIX.
10822*** Therefore, libtool is disabling shared libraries support.  If you
10823*** really care for shared libraries, you may want to install binutils
10824*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10825*** You will then need to restart the configuration process.
10826
10827_LT_EOF
10828      fi
10829      ;;
10830
10831    amigaos*)
10832      case $host_cpu in
10833      powerpc)
10834            # see comment about AmigaOS4 .so support
10835            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10836            archive_expsym_cmds=''
10837        ;;
10838      m68k)
10839            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)'
10840            hardcode_libdir_flag_spec='-L$libdir'
10841            hardcode_minus_L=yes
10842        ;;
10843      esac
10844      ;;
10845
10846    beos*)
10847      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10848	allow_undefined_flag=unsupported
10849	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10850	# support --undefined.  This deserves some investigation.  FIXME
10851	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10852      else
10853	ld_shlibs=no
10854      fi
10855      ;;
10856
10857    cygwin* | mingw* | pw32* | cegcc*)
10858      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10859      # as there is no search path for DLLs.
10860      hardcode_libdir_flag_spec='-L$libdir'
10861      export_dynamic_flag_spec='$wl--export-all-symbols'
10862      allow_undefined_flag=unsupported
10863      always_export_symbols=no
10864      enable_shared_with_static_runtimes=yes
10865      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'
10866      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10867
10868      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10869        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10870	# If the export-symbols file already is a .def file, use it as
10871	# is; otherwise, prepend EXPORTS...
10872	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10873          cp $export_symbols $output_objdir/$soname.def;
10874        else
10875          echo EXPORTS > $output_objdir/$soname.def;
10876          cat $export_symbols >> $output_objdir/$soname.def;
10877        fi~
10878        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10879      else
10880	ld_shlibs=no
10881      fi
10882      ;;
10883
10884    haiku*)
10885      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10886      link_all_deplibs=yes
10887      ;;
10888
10889    os2*)
10890      hardcode_libdir_flag_spec='-L$libdir'
10891      hardcode_minus_L=yes
10892      allow_undefined_flag=unsupported
10893      shrext_cmds=.dll
10894      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10895	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10896	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10897	$ECHO EXPORTS >> $output_objdir/$libname.def~
10898	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10899	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10900	emximp -o $lib $output_objdir/$libname.def'
10901      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10902	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10903	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10904	$ECHO EXPORTS >> $output_objdir/$libname.def~
10905	prefix_cmds="$SED"~
10906	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10907	  prefix_cmds="$prefix_cmds -e 1d";
10908	fi~
10909	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10910	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10911	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10912	emximp -o $lib $output_objdir/$libname.def'
10913      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10914      enable_shared_with_static_runtimes=yes
10915      ;;
10916
10917    interix[3-9]*)
10918      hardcode_direct=no
10919      hardcode_shlibpath_var=no
10920      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10921      export_dynamic_flag_spec='$wl-E'
10922      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10923      # Instead, shared libraries are loaded at an image base (0x10000000 by
10924      # default) and relocated if they conflict, which is a slow very memory
10925      # consuming and fragmenting process.  To avoid this, we pick a random,
10926      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10927      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10928      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10929      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'
10930      ;;
10931
10932    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10933      tmp_diet=no
10934      if test linux-dietlibc = "$host_os"; then
10935	case $cc_basename in
10936	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10937	esac
10938      fi
10939      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10940	 && test no = "$tmp_diet"
10941      then
10942	tmp_addflag=' $pic_flag'
10943	tmp_sharedflag='-shared'
10944	case $cc_basename,$host_cpu in
10945        pgcc*)				# Portland Group C compiler
10946	  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'
10947	  tmp_addflag=' $pic_flag'
10948	  ;;
10949	pgf77* | pgf90* | pgf95* | pgfortran*)
10950					# Portland Group f77 and f90 compilers
10951	  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'
10952	  tmp_addflag=' $pic_flag -Mnomain' ;;
10953	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10954	  tmp_addflag=' -i_dynamic' ;;
10955	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10956	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10957	ifc* | ifort*)			# Intel Fortran compiler
10958	  tmp_addflag=' -nofor_main' ;;
10959	lf95*)				# Lahey Fortran 8.1
10960	  whole_archive_flag_spec=
10961	  tmp_sharedflag='--shared' ;;
10962        nagfor*)                        # NAGFOR 5.3
10963          tmp_sharedflag='-Wl,-shared' ;;
10964	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10965	  tmp_sharedflag='-qmkshrobj'
10966	  tmp_addflag= ;;
10967	nvcc*)	# Cuda Compiler Driver 2.2
10968	  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'
10969	  compiler_needs_object=yes
10970	  ;;
10971	esac
10972	case `$CC -V 2>&1 | sed 5q` in
10973	*Sun\ C*)			# Sun C 5.9
10974	  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'
10975	  compiler_needs_object=yes
10976	  tmp_sharedflag='-G' ;;
10977	*Sun\ F*)			# Sun Fortran 8.3
10978	  tmp_sharedflag='-G' ;;
10979	esac
10980	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10981
10982        if test yes = "$supports_anon_versioning"; then
10983          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10984            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10985            echo "local: *; };" >> $output_objdir/$libname.ver~
10986            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10987        fi
10988
10989	case $cc_basename in
10990	tcc*)
10991	  export_dynamic_flag_spec='-rdynamic'
10992	  ;;
10993	xlf* | bgf* | bgxlf* | mpixlf*)
10994	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10995	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10996	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10997	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10998	  if test yes = "$supports_anon_versioning"; then
10999	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11000              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11001              echo "local: *; };" >> $output_objdir/$libname.ver~
11002              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11003	  fi
11004	  ;;
11005	esac
11006      else
11007        ld_shlibs=no
11008      fi
11009      ;;
11010
11011    netbsd*)
11012      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11013	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11014	wlarc=
11015      else
11016	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11017	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11018      fi
11019      ;;
11020
11021    solaris*)
11022      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11023	ld_shlibs=no
11024	cat <<_LT_EOF 1>&2
11025
11026*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11027*** create shared libraries on Solaris systems.  Therefore, libtool
11028*** is disabling shared libraries support.  We urge you to upgrade GNU
11029*** binutils to release 2.9.1 or newer.  Another option is to modify
11030*** your PATH or compiler configuration so that the native linker is
11031*** used, and then restart.
11032
11033_LT_EOF
11034      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11035	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11036	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11037      else
11038	ld_shlibs=no
11039      fi
11040      ;;
11041
11042    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11043      case `$LD -v 2>&1` in
11044        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11045	ld_shlibs=no
11046	cat <<_LT_EOF 1>&2
11047
11048*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11049*** reliably create shared libraries on SCO systems.  Therefore, libtool
11050*** is disabling shared libraries support.  We urge you to upgrade GNU
11051*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11052*** your PATH or compiler configuration so that the native linker is
11053*** used, and then restart.
11054
11055_LT_EOF
11056	;;
11057	*)
11058	  # For security reasons, it is highly recommended that you always
11059	  # use absolute paths for naming shared libraries, and exclude the
11060	  # DT_RUNPATH tag from executables and libraries.  But doing so
11061	  # requires that you compile everything twice, which is a pain.
11062	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11063	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11064	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11065	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11066	  else
11067	    ld_shlibs=no
11068	  fi
11069	;;
11070      esac
11071      ;;
11072
11073    sunos4*)
11074      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11075      wlarc=
11076      hardcode_direct=yes
11077      hardcode_shlibpath_var=no
11078      ;;
11079
11080    *)
11081      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11082	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11083	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11084      else
11085	ld_shlibs=no
11086      fi
11087      ;;
11088    esac
11089
11090    if test no = "$ld_shlibs"; then
11091      runpath_var=
11092      hardcode_libdir_flag_spec=
11093      export_dynamic_flag_spec=
11094      whole_archive_flag_spec=
11095    fi
11096  else
11097    # PORTME fill in a description of your system's linker (not GNU ld)
11098    case $host_os in
11099    aix3*)
11100      allow_undefined_flag=unsupported
11101      always_export_symbols=yes
11102      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'
11103      # Note: this linker hardcodes the directories in LIBPATH if there
11104      # are no directories specified by -L.
11105      hardcode_minus_L=yes
11106      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11107	# Neither direct hardcoding nor static linking is supported with a
11108	# broken collect2.
11109	hardcode_direct=unsupported
11110      fi
11111      ;;
11112
11113    aix[4-9]*)
11114      if test ia64 = "$host_cpu"; then
11115	# On IA64, the linker does run time linking by default, so we don't
11116	# have to do anything special.
11117	aix_use_runtimelinking=no
11118	exp_sym_flag='-Bexport'
11119	no_entry_flag=
11120      else
11121	# If we're using GNU nm, then we don't want the "-C" option.
11122	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11123	# Without the "-l" option, or with the "-B" option, AIX nm treats
11124	# weak defined symbols like other global defined symbols, whereas
11125	# GNU nm marks them as "W".
11126	# While the 'weak' keyword is ignored in the Export File, we need
11127	# it in the Import File for the 'aix-soname' feature, so we have
11128	# to replace the "-B" option with "-P" for AIX nm.
11129	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11130	  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'
11131	else
11132	  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'
11133	fi
11134	aix_use_runtimelinking=no
11135
11136	# Test if we are trying to use run time linking or normal
11137	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11138	# have runtime linking enabled, and use it for executables.
11139	# For shared libraries, we enable/disable runtime linking
11140	# depending on the kind of the shared library created -
11141	# when "with_aix_soname,aix_use_runtimelinking" is:
11142	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11143	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11144	#            lib.a           static archive
11145	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11146	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11147	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11148	#            lib.a(lib.so.V) shared, rtl:no
11149	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11150	#            lib.a           static archive
11151	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11152	  for ld_flag in $LDFLAGS; do
11153	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11154	    aix_use_runtimelinking=yes
11155	    break
11156	  fi
11157	  done
11158	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11159	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11160	    # so we don't have lib.a shared libs to link our executables.
11161	    # We have to force runtime linking in this case.
11162	    aix_use_runtimelinking=yes
11163	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11164	  fi
11165	  ;;
11166	esac
11167
11168	exp_sym_flag='-bexport'
11169	no_entry_flag='-bnoentry'
11170      fi
11171
11172      # When large executables or shared objects are built, AIX ld can
11173      # have problems creating the table of contents.  If linking a library
11174      # or program results in "error TOC overflow" add -mminimal-toc to
11175      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11176      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11177
11178      archive_cmds=''
11179      hardcode_direct=yes
11180      hardcode_direct_absolute=yes
11181      hardcode_libdir_separator=':'
11182      link_all_deplibs=yes
11183      file_list_spec='$wl-f,'
11184      case $with_aix_soname,$aix_use_runtimelinking in
11185      aix,*) ;; # traditional, no import file
11186      svr4,* | *,yes) # use import file
11187	# The Import File defines what to hardcode.
11188	hardcode_direct=no
11189	hardcode_direct_absolute=no
11190	;;
11191      esac
11192
11193      if test yes = "$GCC"; then
11194	case $host_os in aix4.[012]|aix4.[012].*)
11195	# We only want to do this on AIX 4.2 and lower, the check
11196	# below for broken collect2 doesn't work under 4.3+
11197	  collect2name=`$CC -print-prog-name=collect2`
11198	  if test -f "$collect2name" &&
11199	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11200	  then
11201	  # We have reworked collect2
11202	  :
11203	  else
11204	  # We have old collect2
11205	  hardcode_direct=unsupported
11206	  # It fails to find uninstalled libraries when the uninstalled
11207	  # path is not listed in the libpath.  Setting hardcode_minus_L
11208	  # to unsupported forces relinking
11209	  hardcode_minus_L=yes
11210	  hardcode_libdir_flag_spec='-L$libdir'
11211	  hardcode_libdir_separator=
11212	  fi
11213	  ;;
11214	esac
11215	shared_flag='-shared'
11216	if test yes = "$aix_use_runtimelinking"; then
11217	  shared_flag="$shared_flag "'$wl-G'
11218	fi
11219	# Need to ensure runtime linking is disabled for the traditional
11220	# shared library, or the linker may eventually find shared libraries
11221	# /with/ Import File - we do not want to mix them.
11222	shared_flag_aix='-shared'
11223	shared_flag_svr4='-shared $wl-G'
11224      else
11225	# not using gcc
11226	if test ia64 = "$host_cpu"; then
11227	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11228	# chokes on -Wl,-G. The following line is correct:
11229	  shared_flag='-G'
11230	else
11231	  if test yes = "$aix_use_runtimelinking"; then
11232	    shared_flag='$wl-G'
11233	  else
11234	    shared_flag='$wl-bM:SRE'
11235	  fi
11236	  shared_flag_aix='$wl-bM:SRE'
11237	  shared_flag_svr4='$wl-G'
11238	fi
11239      fi
11240
11241      export_dynamic_flag_spec='$wl-bexpall'
11242      # It seems that -bexpall does not export symbols beginning with
11243      # underscore (_), so it is better to generate a list of symbols to export.
11244      always_export_symbols=yes
11245      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11246	# Warning - without using the other runtime loading flags (-brtl),
11247	# -berok will link without error, but may produce a broken library.
11248	allow_undefined_flag='-berok'
11249        # Determine the default libpath from the value encoded in an
11250        # empty executable.
11251        if test set = "${lt_cv_aix_libpath+set}"; then
11252  aix_libpath=$lt_cv_aix_libpath
11253else
11254  if ${lt_cv_aix_libpath_+:} false; then :
11255  $as_echo_n "(cached) " >&6
11256else
11257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258/* end confdefs.h.  */
11259
11260int
11261main ()
11262{
11263
11264  ;
11265  return 0;
11266}
11267_ACEOF
11268if ac_fn_c_try_link "$LINENO"; then :
11269
11270  lt_aix_libpath_sed='
11271      /Import File Strings/,/^$/ {
11272	  /^0/ {
11273	      s/^0  *\([^ ]*\) *$/\1/
11274	      p
11275	  }
11276      }'
11277  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11278  # Check for a 64-bit object if we didn't find anything.
11279  if test -z "$lt_cv_aix_libpath_"; then
11280    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11281  fi
11282fi
11283rm -f core conftest.err conftest.$ac_objext \
11284    conftest$ac_exeext conftest.$ac_ext
11285  if test -z "$lt_cv_aix_libpath_"; then
11286    lt_cv_aix_libpath_=/usr/lib:/lib
11287  fi
11288
11289fi
11290
11291  aix_libpath=$lt_cv_aix_libpath_
11292fi
11293
11294        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11295        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
11296      else
11297	if test ia64 = "$host_cpu"; then
11298	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11299	  allow_undefined_flag="-z nodefs"
11300	  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"
11301	else
11302	 # Determine the default libpath from the value encoded in an
11303	 # empty executable.
11304	 if test set = "${lt_cv_aix_libpath+set}"; then
11305  aix_libpath=$lt_cv_aix_libpath
11306else
11307  if ${lt_cv_aix_libpath_+:} false; then :
11308  $as_echo_n "(cached) " >&6
11309else
11310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311/* end confdefs.h.  */
11312
11313int
11314main ()
11315{
11316
11317  ;
11318  return 0;
11319}
11320_ACEOF
11321if ac_fn_c_try_link "$LINENO"; then :
11322
11323  lt_aix_libpath_sed='
11324      /Import File Strings/,/^$/ {
11325	  /^0/ {
11326	      s/^0  *\([^ ]*\) *$/\1/
11327	      p
11328	  }
11329      }'
11330  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11331  # Check for a 64-bit object if we didn't find anything.
11332  if test -z "$lt_cv_aix_libpath_"; then
11333    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11334  fi
11335fi
11336rm -f core conftest.err conftest.$ac_objext \
11337    conftest$ac_exeext conftest.$ac_ext
11338  if test -z "$lt_cv_aix_libpath_"; then
11339    lt_cv_aix_libpath_=/usr/lib:/lib
11340  fi
11341
11342fi
11343
11344  aix_libpath=$lt_cv_aix_libpath_
11345fi
11346
11347	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11348	  # Warning - without using the other run time loading flags,
11349	  # -berok will link without error, but may produce a broken library.
11350	  no_undefined_flag=' $wl-bernotok'
11351	  allow_undefined_flag=' $wl-berok'
11352	  if test yes = "$with_gnu_ld"; then
11353	    # We only use this code for GNU lds that support --whole-archive.
11354	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11355	  else
11356	    # Exported symbols can be pulled into shared objects from archives
11357	    whole_archive_flag_spec='$convenience'
11358	  fi
11359	  archive_cmds_need_lc=yes
11360	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11361	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11362	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11363	  if test svr4 != "$with_aix_soname"; then
11364	    # This is similar to how AIX traditionally builds its shared libraries.
11365	    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'
11366	  fi
11367	  if test aix != "$with_aix_soname"; then
11368	    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'
11369	  else
11370	    # used by -dlpreopen to get the symbols
11371	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11372	  fi
11373	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11374	fi
11375      fi
11376      ;;
11377
11378    amigaos*)
11379      case $host_cpu in
11380      powerpc)
11381            # see comment about AmigaOS4 .so support
11382            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11383            archive_expsym_cmds=''
11384        ;;
11385      m68k)
11386            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)'
11387            hardcode_libdir_flag_spec='-L$libdir'
11388            hardcode_minus_L=yes
11389        ;;
11390      esac
11391      ;;
11392
11393    bsdi[45]*)
11394      export_dynamic_flag_spec=-rdynamic
11395      ;;
11396
11397    cygwin* | mingw* | pw32* | cegcc*)
11398      # When not using gcc, we currently assume that we are using
11399      # Microsoft Visual C++.
11400      # hardcode_libdir_flag_spec is actually meaningless, as there is
11401      # no search path for DLLs.
11402      case $cc_basename in
11403      cl*)
11404	# Native MSVC
11405	hardcode_libdir_flag_spec=' '
11406	allow_undefined_flag=unsupported
11407	always_export_symbols=yes
11408	file_list_spec='@'
11409	# Tell ltmain to make .lib files, not .a files.
11410	libext=lib
11411	# Tell ltmain to make .dll files, not .so files.
11412	shrext_cmds=.dll
11413	# FIXME: Setting linknames here is a bad hack.
11414	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11415	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11416            cp "$export_symbols" "$output_objdir/$soname.def";
11417            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11418          else
11419            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11420          fi~
11421          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11422          linknames='
11423	# The linker will not automatically build a static lib if we build a DLL.
11424	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11425	enable_shared_with_static_runtimes=yes
11426	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11427	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11428	# Don't use ranlib
11429	old_postinstall_cmds='chmod 644 $oldlib'
11430	postlink_cmds='lt_outputfile="@OUTPUT@"~
11431          lt_tool_outputfile="@TOOL_OUTPUT@"~
11432          case $lt_outputfile in
11433            *.exe|*.EXE) ;;
11434            *)
11435              lt_outputfile=$lt_outputfile.exe
11436              lt_tool_outputfile=$lt_tool_outputfile.exe
11437              ;;
11438          esac~
11439          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11440            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11441            $RM "$lt_outputfile.manifest";
11442          fi'
11443	;;
11444      *)
11445	# Assume MSVC wrapper
11446	hardcode_libdir_flag_spec=' '
11447	allow_undefined_flag=unsupported
11448	# Tell ltmain to make .lib files, not .a files.
11449	libext=lib
11450	# Tell ltmain to make .dll files, not .so files.
11451	shrext_cmds=.dll
11452	# FIXME: Setting linknames here is a bad hack.
11453	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11454	# The linker will automatically build a .lib file if we build a DLL.
11455	old_archive_from_new_cmds='true'
11456	# FIXME: Should let the user specify the lib program.
11457	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11458	enable_shared_with_static_runtimes=yes
11459	;;
11460      esac
11461      ;;
11462
11463    darwin* | rhapsody*)
11464
11465
11466  archive_cmds_need_lc=no
11467  hardcode_direct=no
11468  hardcode_automatic=yes
11469  hardcode_shlibpath_var=unsupported
11470  if test yes = "$lt_cv_ld_force_load"; then
11471    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\"`'
11472
11473  else
11474    whole_archive_flag_spec=''
11475  fi
11476  link_all_deplibs=yes
11477  allow_undefined_flag=$_lt_dar_allow_undefined
11478  case $cc_basename in
11479     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11480     *) _lt_dar_can_shared=$GCC ;;
11481  esac
11482  if test yes = "$_lt_dar_can_shared"; then
11483    output_verbose_link_cmd=func_echo_all
11484    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11485    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11486    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"
11487    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"
11488
11489  else
11490  ld_shlibs=no
11491  fi
11492
11493      ;;
11494
11495    dgux*)
11496      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11497      hardcode_libdir_flag_spec='-L$libdir'
11498      hardcode_shlibpath_var=no
11499      ;;
11500
11501    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11502    # support.  Future versions do this automatically, but an explicit c++rt0.o
11503    # does not break anything, and helps significantly (at the cost of a little
11504    # extra space).
11505    freebsd2.2*)
11506      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11507      hardcode_libdir_flag_spec='-R$libdir'
11508      hardcode_direct=yes
11509      hardcode_shlibpath_var=no
11510      ;;
11511
11512    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11513    freebsd2.*)
11514      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11515      hardcode_direct=yes
11516      hardcode_minus_L=yes
11517      hardcode_shlibpath_var=no
11518      ;;
11519
11520    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11521    freebsd* | dragonfly*)
11522      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11523      hardcode_libdir_flag_spec='-R$libdir'
11524      hardcode_direct=yes
11525      hardcode_shlibpath_var=no
11526      ;;
11527
11528    hpux9*)
11529      if test yes = "$GCC"; then
11530	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'
11531      else
11532	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'
11533      fi
11534      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11535      hardcode_libdir_separator=:
11536      hardcode_direct=yes
11537
11538      # hardcode_minus_L: Not really in the search PATH,
11539      # but as the default location of the library.
11540      hardcode_minus_L=yes
11541      export_dynamic_flag_spec='$wl-E'
11542      ;;
11543
11544    hpux10*)
11545      if test yes,no = "$GCC,$with_gnu_ld"; then
11546	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11547      else
11548	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11549      fi
11550      if test no = "$with_gnu_ld"; then
11551	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11552	hardcode_libdir_separator=:
11553	hardcode_direct=yes
11554	hardcode_direct_absolute=yes
11555	export_dynamic_flag_spec='$wl-E'
11556	# hardcode_minus_L: Not really in the search PATH,
11557	# but as the default location of the library.
11558	hardcode_minus_L=yes
11559      fi
11560      ;;
11561
11562    hpux11*)
11563      if test yes,no = "$GCC,$with_gnu_ld"; then
11564	case $host_cpu in
11565	hppa*64*)
11566	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11567	  ;;
11568	ia64*)
11569	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11570	  ;;
11571	*)
11572	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11573	  ;;
11574	esac
11575      else
11576	case $host_cpu in
11577	hppa*64*)
11578	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11579	  ;;
11580	ia64*)
11581	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11582	  ;;
11583	*)
11584
11585	  # Older versions of the 11.00 compiler do not understand -b yet
11586	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11587	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11588$as_echo_n "checking if $CC understands -b... " >&6; }
11589if ${lt_cv_prog_compiler__b+:} false; then :
11590  $as_echo_n "(cached) " >&6
11591else
11592  lt_cv_prog_compiler__b=no
11593   save_LDFLAGS=$LDFLAGS
11594   LDFLAGS="$LDFLAGS -b"
11595   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11596   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11597     # The linker can only warn and ignore the option if not recognized
11598     # So say no if there are warnings
11599     if test -s conftest.err; then
11600       # Append any errors to the config.log.
11601       cat conftest.err 1>&5
11602       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11603       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11604       if diff conftest.exp conftest.er2 >/dev/null; then
11605         lt_cv_prog_compiler__b=yes
11606       fi
11607     else
11608       lt_cv_prog_compiler__b=yes
11609     fi
11610   fi
11611   $RM -r conftest*
11612   LDFLAGS=$save_LDFLAGS
11613
11614fi
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11616$as_echo "$lt_cv_prog_compiler__b" >&6; }
11617
11618if test yes = "$lt_cv_prog_compiler__b"; then
11619    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11620else
11621    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11622fi
11623
11624	  ;;
11625	esac
11626      fi
11627      if test no = "$with_gnu_ld"; then
11628	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11629	hardcode_libdir_separator=:
11630
11631	case $host_cpu in
11632	hppa*64*|ia64*)
11633	  hardcode_direct=no
11634	  hardcode_shlibpath_var=no
11635	  ;;
11636	*)
11637	  hardcode_direct=yes
11638	  hardcode_direct_absolute=yes
11639	  export_dynamic_flag_spec='$wl-E'
11640
11641	  # hardcode_minus_L: Not really in the search PATH,
11642	  # but as the default location of the library.
11643	  hardcode_minus_L=yes
11644	  ;;
11645	esac
11646      fi
11647      ;;
11648
11649    irix5* | irix6* | nonstopux*)
11650      if test yes = "$GCC"; then
11651	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'
11652	# Try to use the -exported_symbol ld option, if it does not
11653	# work, assume that -exports_file does not work either and
11654	# implicitly export all symbols.
11655	# This should be the same for all languages, so no per-tag cache variable.
11656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11657$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11658if ${lt_cv_irix_exported_symbol+:} false; then :
11659  $as_echo_n "(cached) " >&6
11660else
11661  save_LDFLAGS=$LDFLAGS
11662	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11663	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664/* end confdefs.h.  */
11665int foo (void) { return 0; }
11666_ACEOF
11667if ac_fn_c_try_link "$LINENO"; then :
11668  lt_cv_irix_exported_symbol=yes
11669else
11670  lt_cv_irix_exported_symbol=no
11671fi
11672rm -f core conftest.err conftest.$ac_objext \
11673    conftest$ac_exeext conftest.$ac_ext
11674           LDFLAGS=$save_LDFLAGS
11675fi
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11677$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11678	if test yes = "$lt_cv_irix_exported_symbol"; then
11679          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'
11680	fi
11681      else
11682	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'
11683	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'
11684      fi
11685      archive_cmds_need_lc='no'
11686      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11687      hardcode_libdir_separator=:
11688      inherit_rpath=yes
11689      link_all_deplibs=yes
11690      ;;
11691
11692    linux*)
11693      case $cc_basename in
11694      tcc*)
11695	# Fabrice Bellard et al's Tiny C Compiler
11696	ld_shlibs=yes
11697	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11698	;;
11699      esac
11700      ;;
11701
11702    netbsd*)
11703      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11704	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11705      else
11706	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11707      fi
11708      hardcode_libdir_flag_spec='-R$libdir'
11709      hardcode_direct=yes
11710      hardcode_shlibpath_var=no
11711      ;;
11712
11713    newsos6)
11714      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11715      hardcode_direct=yes
11716      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11717      hardcode_libdir_separator=:
11718      hardcode_shlibpath_var=no
11719      ;;
11720
11721    *nto* | *qnx*)
11722      ;;
11723
11724    openbsd* | bitrig*)
11725      if test -f /usr/libexec/ld.so; then
11726	hardcode_direct=yes
11727	hardcode_shlibpath_var=no
11728	hardcode_direct_absolute=yes
11729	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11730	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11731	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11732	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11733	  export_dynamic_flag_spec='$wl-E'
11734	else
11735	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11736	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11737	fi
11738      else
11739	ld_shlibs=no
11740      fi
11741      ;;
11742
11743    os2*)
11744      hardcode_libdir_flag_spec='-L$libdir'
11745      hardcode_minus_L=yes
11746      allow_undefined_flag=unsupported
11747      shrext_cmds=.dll
11748      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11749	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11750	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11751	$ECHO EXPORTS >> $output_objdir/$libname.def~
11752	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11753	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11754	emximp -o $lib $output_objdir/$libname.def'
11755      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11756	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11757	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11758	$ECHO EXPORTS >> $output_objdir/$libname.def~
11759	prefix_cmds="$SED"~
11760	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11761	  prefix_cmds="$prefix_cmds -e 1d";
11762	fi~
11763	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11764	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11765	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11766	emximp -o $lib $output_objdir/$libname.def'
11767      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11768      enable_shared_with_static_runtimes=yes
11769      ;;
11770
11771    osf3*)
11772      if test yes = "$GCC"; then
11773	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11774	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'
11775      else
11776	allow_undefined_flag=' -expect_unresolved \*'
11777	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'
11778      fi
11779      archive_cmds_need_lc='no'
11780      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11781      hardcode_libdir_separator=:
11782      ;;
11783
11784    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11785      if test yes = "$GCC"; then
11786	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11787	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'
11788	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11789      else
11790	allow_undefined_flag=' -expect_unresolved \*'
11791	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'
11792	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~
11793          $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'
11794
11795	# Both c and cxx compiler support -rpath directly
11796	hardcode_libdir_flag_spec='-rpath $libdir'
11797      fi
11798      archive_cmds_need_lc='no'
11799      hardcode_libdir_separator=:
11800      ;;
11801
11802    solaris*)
11803      no_undefined_flag=' -z defs'
11804      if test yes = "$GCC"; then
11805	wlarc='$wl'
11806	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11807	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11808          $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'
11809      else
11810	case `$CC -V 2>&1` in
11811	*"Compilers 5.0"*)
11812	  wlarc=''
11813	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11814	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11815            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11816	  ;;
11817	*)
11818	  wlarc='$wl'
11819	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11820	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11821            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11822	  ;;
11823	esac
11824      fi
11825      hardcode_libdir_flag_spec='-R$libdir'
11826      hardcode_shlibpath_var=no
11827      case $host_os in
11828      solaris2.[0-5] | solaris2.[0-5].*) ;;
11829      *)
11830	# The compiler driver will combine and reorder linker options,
11831	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11832	# but is careful enough not to reorder.
11833	# Supported since Solaris 2.6 (maybe 2.5.1?)
11834	if test yes = "$GCC"; then
11835	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11836	else
11837	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11838	fi
11839	;;
11840      esac
11841      link_all_deplibs=yes
11842      ;;
11843
11844    sunos4*)
11845      if test sequent = "$host_vendor"; then
11846	# Use $CC to link under sequent, because it throws in some extra .o
11847	# files that make .init and .fini sections work.
11848	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11849      else
11850	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11851      fi
11852      hardcode_libdir_flag_spec='-L$libdir'
11853      hardcode_direct=yes
11854      hardcode_minus_L=yes
11855      hardcode_shlibpath_var=no
11856      ;;
11857
11858    sysv4)
11859      case $host_vendor in
11860	sni)
11861	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11862	  hardcode_direct=yes # is this really true???
11863	;;
11864	siemens)
11865	  ## LD is ld it makes a PLAMLIB
11866	  ## CC just makes a GrossModule.
11867	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11868	  reload_cmds='$CC -r -o $output$reload_objs'
11869	  hardcode_direct=no
11870        ;;
11871	motorola)
11872	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11873	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11874	;;
11875      esac
11876      runpath_var='LD_RUN_PATH'
11877      hardcode_shlibpath_var=no
11878      ;;
11879
11880    sysv4.3*)
11881      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11882      hardcode_shlibpath_var=no
11883      export_dynamic_flag_spec='-Bexport'
11884      ;;
11885
11886    sysv4*MP*)
11887      if test -d /usr/nec; then
11888	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11889	hardcode_shlibpath_var=no
11890	runpath_var=LD_RUN_PATH
11891	hardcode_runpath_var=yes
11892	ld_shlibs=yes
11893      fi
11894      ;;
11895
11896    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11897      no_undefined_flag='$wl-z,text'
11898      archive_cmds_need_lc=no
11899      hardcode_shlibpath_var=no
11900      runpath_var='LD_RUN_PATH'
11901
11902      if test yes = "$GCC"; then
11903	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11904	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11905      else
11906	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11907	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11908      fi
11909      ;;
11910
11911    sysv5* | sco3.2v5* | sco5v6*)
11912      # Note: We CANNOT use -z defs as we might desire, because we do not
11913      # link with -lc, and that would cause any symbols used from libc to
11914      # always be unresolved, which means just about no library would
11915      # ever link correctly.  If we're not using GNU ld we use -z text
11916      # though, which does catch some bad symbols but isn't as heavy-handed
11917      # as -z defs.
11918      no_undefined_flag='$wl-z,text'
11919      allow_undefined_flag='$wl-z,nodefs'
11920      archive_cmds_need_lc=no
11921      hardcode_shlibpath_var=no
11922      hardcode_libdir_flag_spec='$wl-R,$libdir'
11923      hardcode_libdir_separator=':'
11924      link_all_deplibs=yes
11925      export_dynamic_flag_spec='$wl-Bexport'
11926      runpath_var='LD_RUN_PATH'
11927
11928      if test yes = "$GCC"; then
11929	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11930	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11931      else
11932	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11933	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11934      fi
11935      ;;
11936
11937    uts4*)
11938      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11939      hardcode_libdir_flag_spec='-L$libdir'
11940      hardcode_shlibpath_var=no
11941      ;;
11942
11943    *)
11944      ld_shlibs=no
11945      ;;
11946    esac
11947
11948    if test sni = "$host_vendor"; then
11949      case $host in
11950      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11951	export_dynamic_flag_spec='$wl-Blargedynsym'
11952	;;
11953      esac
11954    fi
11955  fi
11956
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11958$as_echo "$ld_shlibs" >&6; }
11959test no = "$ld_shlibs" && can_build_shared=no
11960
11961with_gnu_ld=$with_gnu_ld
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977#
11978# Do we need to explicitly link libc?
11979#
11980case "x$archive_cmds_need_lc" in
11981x|xyes)
11982  # Assume -lc should be added
11983  archive_cmds_need_lc=yes
11984
11985  if test yes,yes = "$GCC,$enable_shared"; then
11986    case $archive_cmds in
11987    *'~'*)
11988      # FIXME: we may have to deal with multi-command sequences.
11989      ;;
11990    '$CC '*)
11991      # Test whether the compiler implicitly links with -lc since on some
11992      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11993      # to ld, don't add -lc before -lgcc.
11994      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11995$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11996if ${lt_cv_archive_cmds_need_lc+:} false; then :
11997  $as_echo_n "(cached) " >&6
11998else
11999  $RM conftest*
12000	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12001
12002	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12003  (eval $ac_compile) 2>&5
12004  ac_status=$?
12005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12006  test $ac_status = 0; } 2>conftest.err; then
12007	  soname=conftest
12008	  lib=conftest
12009	  libobjs=conftest.$ac_objext
12010	  deplibs=
12011	  wl=$lt_prog_compiler_wl
12012	  pic_flag=$lt_prog_compiler_pic
12013	  compiler_flags=-v
12014	  linker_flags=-v
12015	  verstring=
12016	  output_objdir=.
12017	  libname=conftest
12018	  lt_save_allow_undefined_flag=$allow_undefined_flag
12019	  allow_undefined_flag=
12020	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12021  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12022  ac_status=$?
12023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024  test $ac_status = 0; }
12025	  then
12026	    lt_cv_archive_cmds_need_lc=no
12027	  else
12028	    lt_cv_archive_cmds_need_lc=yes
12029	  fi
12030	  allow_undefined_flag=$lt_save_allow_undefined_flag
12031	else
12032	  cat conftest.err 1>&5
12033	fi
12034	$RM conftest*
12035
12036fi
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12038$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12039      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12040      ;;
12041    esac
12042  fi
12043  ;;
12044esac
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12198$as_echo_n "checking dynamic linker characteristics... " >&6; }
12199
12200if test yes = "$GCC"; then
12201  case $host_os in
12202    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12203    *) lt_awk_arg='/^libraries:/' ;;
12204  esac
12205  case $host_os in
12206    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12207    *) lt_sed_strip_eq='s|=/|/|g' ;;
12208  esac
12209  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12210  case $lt_search_path_spec in
12211  *\;*)
12212    # if the path contains ";" then we assume it to be the separator
12213    # otherwise default to the standard path separator (i.e. ":") - it is
12214    # assumed that no part of a normal pathname contains ";" but that should
12215    # okay in the real world where ";" in dirpaths is itself problematic.
12216    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12217    ;;
12218  *)
12219    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12220    ;;
12221  esac
12222  # Ok, now we have the path, separated by spaces, we can step through it
12223  # and add multilib dir if necessary...
12224  lt_tmp_lt_search_path_spec=
12225  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12226  # ...but if some path component already ends with the multilib dir we assume
12227  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12228  case "$lt_multi_os_dir; $lt_search_path_spec " in
12229  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12230    lt_multi_os_dir=
12231    ;;
12232  esac
12233  for lt_sys_path in $lt_search_path_spec; do
12234    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12235      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12236    elif test -n "$lt_multi_os_dir"; then
12237      test -d "$lt_sys_path" && \
12238	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12239    fi
12240  done
12241  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12242BEGIN {RS = " "; FS = "/|\n";} {
12243  lt_foo = "";
12244  lt_count = 0;
12245  for (lt_i = NF; lt_i > 0; lt_i--) {
12246    if ($lt_i != "" && $lt_i != ".") {
12247      if ($lt_i == "..") {
12248        lt_count++;
12249      } else {
12250        if (lt_count == 0) {
12251          lt_foo = "/" $lt_i lt_foo;
12252        } else {
12253          lt_count--;
12254        }
12255      }
12256    }
12257  }
12258  if (lt_foo != "") { lt_freq[lt_foo]++; }
12259  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12260}'`
12261  # AWK program above erroneously prepends '/' to C:/dos/paths
12262  # for these hosts.
12263  case $host_os in
12264    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12265      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12266  esac
12267  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12268else
12269  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12270fi
12271library_names_spec=
12272libname_spec='lib$name'
12273soname_spec=
12274shrext_cmds=.so
12275postinstall_cmds=
12276postuninstall_cmds=
12277finish_cmds=
12278finish_eval=
12279shlibpath_var=
12280shlibpath_overrides_runpath=unknown
12281version_type=none
12282dynamic_linker="$host_os ld.so"
12283sys_lib_dlsearch_path_spec="/lib /usr/lib"
12284need_lib_prefix=unknown
12285hardcode_into_libs=no
12286
12287# when you set need_version to no, make sure it does not cause -set_version
12288# flags to be left without arguments
12289need_version=unknown
12290
12291
12292
12293case $host_os in
12294aix3*)
12295  version_type=linux # correct to gnu/linux during the next big refactor
12296  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12297  shlibpath_var=LIBPATH
12298
12299  # AIX 3 has no versioning support, so we append a major version to the name.
12300  soname_spec='$libname$release$shared_ext$major'
12301  ;;
12302
12303aix[4-9]*)
12304  version_type=linux # correct to gnu/linux during the next big refactor
12305  need_lib_prefix=no
12306  need_version=no
12307  hardcode_into_libs=yes
12308  if test ia64 = "$host_cpu"; then
12309    # AIX 5 supports IA64
12310    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12311    shlibpath_var=LD_LIBRARY_PATH
12312  else
12313    # With GCC up to 2.95.x, collect2 would create an import file
12314    # for dependence libraries.  The import file would start with
12315    # the line '#! .'.  This would cause the generated library to
12316    # depend on '.', always an invalid library.  This was fixed in
12317    # development snapshots of GCC prior to 3.0.
12318    case $host_os in
12319      aix4 | aix4.[01] | aix4.[01].*)
12320      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12321	   echo ' yes '
12322	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12323	:
12324      else
12325	can_build_shared=no
12326      fi
12327      ;;
12328    esac
12329    # Using Import Files as archive members, it is possible to support
12330    # filename-based versioning of shared library archives on AIX. While
12331    # this would work for both with and without runtime linking, it will
12332    # prevent static linking of such archives. So we do filename-based
12333    # shared library versioning with .so extension only, which is used
12334    # when both runtime linking and shared linking is enabled.
12335    # Unfortunately, runtime linking may impact performance, so we do
12336    # not want this to be the default eventually. Also, we use the
12337    # versioned .so libs for executables only if there is the -brtl
12338    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12339    # To allow for filename-based versioning support, we need to create
12340    # libNAME.so.V as an archive file, containing:
12341    # *) an Import File, referring to the versioned filename of the
12342    #    archive as well as the shared archive member, telling the
12343    #    bitwidth (32 or 64) of that shared object, and providing the
12344    #    list of exported symbols of that shared object, eventually
12345    #    decorated with the 'weak' keyword
12346    # *) the shared object with the F_LOADONLY flag set, to really avoid
12347    #    it being seen by the linker.
12348    # At run time we better use the real file rather than another symlink,
12349    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12350
12351    case $with_aix_soname,$aix_use_runtimelinking in
12352    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12353    # soname into executable. Probably we can add versioning support to
12354    # collect2, so additional links can be useful in future.
12355    aix,yes) # traditional libtool
12356      dynamic_linker='AIX unversionable lib.so'
12357      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12358      # instead of lib<name>.a to let people know that these are not
12359      # typical AIX shared libraries.
12360      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12361      ;;
12362    aix,no) # traditional AIX only
12363      dynamic_linker='AIX lib.a(lib.so.V)'
12364      # We preserve .a as extension for shared libraries through AIX4.2
12365      # and later when we are not doing run time linking.
12366      library_names_spec='$libname$release.a $libname.a'
12367      soname_spec='$libname$release$shared_ext$major'
12368      ;;
12369    svr4,*) # full svr4 only
12370      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12371      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12372      # We do not specify a path in Import Files, so LIBPATH fires.
12373      shlibpath_overrides_runpath=yes
12374      ;;
12375    *,yes) # both, prefer svr4
12376      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12377      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12378      # unpreferred sharedlib libNAME.a needs extra handling
12379      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"'
12380      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"'
12381      # We do not specify a path in Import Files, so LIBPATH fires.
12382      shlibpath_overrides_runpath=yes
12383      ;;
12384    *,no) # both, prefer aix
12385      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12386      library_names_spec='$libname$release.a $libname.a'
12387      soname_spec='$libname$release$shared_ext$major'
12388      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12389      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)'
12390      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"'
12391      ;;
12392    esac
12393    shlibpath_var=LIBPATH
12394  fi
12395  ;;
12396
12397amigaos*)
12398  case $host_cpu in
12399  powerpc)
12400    # Since July 2007 AmigaOS4 officially supports .so libraries.
12401    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12402    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12403    ;;
12404  m68k)
12405    library_names_spec='$libname.ixlibrary $libname.a'
12406    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12407    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'
12408    ;;
12409  esac
12410  ;;
12411
12412beos*)
12413  library_names_spec='$libname$shared_ext'
12414  dynamic_linker="$host_os ld.so"
12415  shlibpath_var=LIBRARY_PATH
12416  ;;
12417
12418bsdi[45]*)
12419  version_type=linux # correct to gnu/linux during the next big refactor
12420  need_version=no
12421  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422  soname_spec='$libname$release$shared_ext$major'
12423  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12424  shlibpath_var=LD_LIBRARY_PATH
12425  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12426  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12427  # the default ld.so.conf also contains /usr/contrib/lib and
12428  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12429  # libtool to hard-code these into programs
12430  ;;
12431
12432cygwin* | mingw* | pw32* | cegcc*)
12433  version_type=windows
12434  shrext_cmds=.dll
12435  need_version=no
12436  need_lib_prefix=no
12437
12438  case $GCC,$cc_basename in
12439  yes,*)
12440    # gcc
12441    library_names_spec='$libname.dll.a'
12442    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12443    postinstall_cmds='base_file=`basename \$file`~
12444      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12445      dldir=$destdir/`dirname \$dlpath`~
12446      test -d \$dldir || mkdir -p \$dldir~
12447      $install_prog $dir/$dlname \$dldir/$dlname~
12448      chmod a+x \$dldir/$dlname~
12449      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12450        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12451      fi'
12452    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12453      dlpath=$dir/\$dldll~
12454       $RM \$dlpath'
12455    shlibpath_overrides_runpath=yes
12456
12457    case $host_os in
12458    cygwin*)
12459      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12460      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12461
12462      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12463      ;;
12464    mingw* | cegcc*)
12465      # MinGW DLLs use traditional 'lib' prefix
12466      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12467      ;;
12468    pw32*)
12469      # pw32 DLLs use 'pw' prefix rather than 'lib'
12470      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12471      ;;
12472    esac
12473    dynamic_linker='Win32 ld.exe'
12474    ;;
12475
12476  *,cl*)
12477    # Native MSVC
12478    libname_spec='$name'
12479    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12480    library_names_spec='$libname.dll.lib'
12481
12482    case $build_os in
12483    mingw*)
12484      sys_lib_search_path_spec=
12485      lt_save_ifs=$IFS
12486      IFS=';'
12487      for lt_path in $LIB
12488      do
12489        IFS=$lt_save_ifs
12490        # Let DOS variable expansion print the short 8.3 style file name.
12491        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12492        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12493      done
12494      IFS=$lt_save_ifs
12495      # Convert to MSYS style.
12496      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12497      ;;
12498    cygwin*)
12499      # Convert to unix form, then to dos form, then back to unix form
12500      # but this time dos style (no spaces!) so that the unix form looks
12501      # like /cygdrive/c/PROGRA~1:/cygdr...
12502      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12503      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12504      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12505      ;;
12506    *)
12507      sys_lib_search_path_spec=$LIB
12508      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12509        # It is most probably a Windows format PATH.
12510        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12511      else
12512        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12513      fi
12514      # FIXME: find the short name or the path components, as spaces are
12515      # common. (e.g. "Program Files" -> "PROGRA~1")
12516      ;;
12517    esac
12518
12519    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12520    postinstall_cmds='base_file=`basename \$file`~
12521      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12522      dldir=$destdir/`dirname \$dlpath`~
12523      test -d \$dldir || mkdir -p \$dldir~
12524      $install_prog $dir/$dlname \$dldir/$dlname'
12525    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12526      dlpath=$dir/\$dldll~
12527       $RM \$dlpath'
12528    shlibpath_overrides_runpath=yes
12529    dynamic_linker='Win32 link.exe'
12530    ;;
12531
12532  *)
12533    # Assume MSVC wrapper
12534    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12535    dynamic_linker='Win32 ld.exe'
12536    ;;
12537  esac
12538  # FIXME: first we should search . and the directory the executable is in
12539  shlibpath_var=PATH
12540  ;;
12541
12542darwin* | rhapsody*)
12543  dynamic_linker="$host_os dyld"
12544  version_type=darwin
12545  need_lib_prefix=no
12546  need_version=no
12547  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12548  soname_spec='$libname$release$major$shared_ext'
12549  shlibpath_overrides_runpath=yes
12550  shlibpath_var=DYLD_LIBRARY_PATH
12551  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12552
12553  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12554  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12555  ;;
12556
12557dgux*)
12558  version_type=linux # correct to gnu/linux during the next big refactor
12559  need_lib_prefix=no
12560  need_version=no
12561  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12562  soname_spec='$libname$release$shared_ext$major'
12563  shlibpath_var=LD_LIBRARY_PATH
12564  ;;
12565
12566freebsd* | dragonfly*)
12567  # DragonFly does not have aout.  When/if they implement a new
12568  # versioning mechanism, adjust this.
12569  if test -x /usr/bin/objformat; then
12570    objformat=`/usr/bin/objformat`
12571  else
12572    case $host_os in
12573    freebsd[23].*) objformat=aout ;;
12574    *) objformat=elf ;;
12575    esac
12576  fi
12577  version_type=freebsd-$objformat
12578  case $version_type in
12579    freebsd-elf*)
12580      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12581      soname_spec='$libname$release$shared_ext$major'
12582      need_version=no
12583      need_lib_prefix=no
12584      ;;
12585    freebsd-*)
12586      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12587      need_version=yes
12588      ;;
12589  esac
12590  shlibpath_var=LD_LIBRARY_PATH
12591  case $host_os in
12592  freebsd2.*)
12593    shlibpath_overrides_runpath=yes
12594    ;;
12595  freebsd3.[01]* | freebsdelf3.[01]*)
12596    shlibpath_overrides_runpath=yes
12597    hardcode_into_libs=yes
12598    ;;
12599  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12600  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12601    shlibpath_overrides_runpath=no
12602    hardcode_into_libs=yes
12603    ;;
12604  *) # from 4.6 on, and DragonFly
12605    shlibpath_overrides_runpath=yes
12606    hardcode_into_libs=yes
12607    ;;
12608  esac
12609  ;;
12610
12611haiku*)
12612  version_type=linux # correct to gnu/linux during the next big refactor
12613  need_lib_prefix=no
12614  need_version=no
12615  dynamic_linker="$host_os runtime_loader"
12616  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12617  soname_spec='$libname$release$shared_ext$major'
12618  shlibpath_var=LIBRARY_PATH
12619  shlibpath_overrides_runpath=no
12620  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12621  hardcode_into_libs=yes
12622  ;;
12623
12624hpux9* | hpux10* | hpux11*)
12625  # Give a soname corresponding to the major version so that dld.sl refuses to
12626  # link against other versions.
12627  version_type=sunos
12628  need_lib_prefix=no
12629  need_version=no
12630  case $host_cpu in
12631  ia64*)
12632    shrext_cmds='.so'
12633    hardcode_into_libs=yes
12634    dynamic_linker="$host_os dld.so"
12635    shlibpath_var=LD_LIBRARY_PATH
12636    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12637    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12638    soname_spec='$libname$release$shared_ext$major'
12639    if test 32 = "$HPUX_IA64_MODE"; then
12640      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12641      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12642    else
12643      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12644      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12645    fi
12646    ;;
12647  hppa*64*)
12648    shrext_cmds='.sl'
12649    hardcode_into_libs=yes
12650    dynamic_linker="$host_os dld.sl"
12651    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12652    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12653    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12654    soname_spec='$libname$release$shared_ext$major'
12655    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12656    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12657    ;;
12658  *)
12659    shrext_cmds='.sl'
12660    dynamic_linker="$host_os dld.sl"
12661    shlibpath_var=SHLIB_PATH
12662    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12663    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12664    soname_spec='$libname$release$shared_ext$major'
12665    ;;
12666  esac
12667  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12668  postinstall_cmds='chmod 555 $lib'
12669  # or fails outright, so override atomically:
12670  install_override_mode=555
12671  ;;
12672
12673interix[3-9]*)
12674  version_type=linux # correct to gnu/linux during the next big refactor
12675  need_lib_prefix=no
12676  need_version=no
12677  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12678  soname_spec='$libname$release$shared_ext$major'
12679  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12680  shlibpath_var=LD_LIBRARY_PATH
12681  shlibpath_overrides_runpath=no
12682  hardcode_into_libs=yes
12683  ;;
12684
12685irix5* | irix6* | nonstopux*)
12686  case $host_os in
12687    nonstopux*) version_type=nonstopux ;;
12688    *)
12689	if test yes = "$lt_cv_prog_gnu_ld"; then
12690		version_type=linux # correct to gnu/linux during the next big refactor
12691	else
12692		version_type=irix
12693	fi ;;
12694  esac
12695  need_lib_prefix=no
12696  need_version=no
12697  soname_spec='$libname$release$shared_ext$major'
12698  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12699  case $host_os in
12700  irix5* | nonstopux*)
12701    libsuff= shlibsuff=
12702    ;;
12703  *)
12704    case $LD in # libtool.m4 will add one of these switches to LD
12705    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12706      libsuff= shlibsuff= libmagic=32-bit;;
12707    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12708      libsuff=32 shlibsuff=N32 libmagic=N32;;
12709    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12710      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12711    *) libsuff= shlibsuff= libmagic=never-match;;
12712    esac
12713    ;;
12714  esac
12715  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12716  shlibpath_overrides_runpath=no
12717  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12718  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12719  hardcode_into_libs=yes
12720  ;;
12721
12722# No shared lib support for Linux oldld, aout, or coff.
12723linux*oldld* | linux*aout* | linux*coff*)
12724  dynamic_linker=no
12725  ;;
12726
12727linux*android*)
12728  version_type=none # Android doesn't support versioned libraries.
12729  need_lib_prefix=no
12730  need_version=no
12731  library_names_spec='$libname$release$shared_ext'
12732  soname_spec='$libname$release$shared_ext'
12733  finish_cmds=
12734  shlibpath_var=LD_LIBRARY_PATH
12735  shlibpath_overrides_runpath=yes
12736
12737  # This implies no fast_install, which is unacceptable.
12738  # Some rework will be needed to allow for fast_install
12739  # before this can be enabled.
12740  hardcode_into_libs=yes
12741
12742  dynamic_linker='Android linker'
12743  # Don't embed -rpath directories since the linker doesn't support them.
12744  hardcode_libdir_flag_spec='-L$libdir'
12745  ;;
12746
12747# This must be glibc/ELF.
12748linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12749  version_type=linux # correct to gnu/linux during the next big refactor
12750  need_lib_prefix=no
12751  need_version=no
12752  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12753  soname_spec='$libname$release$shared_ext$major'
12754  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12755  shlibpath_var=LD_LIBRARY_PATH
12756  shlibpath_overrides_runpath=no
12757
12758  # Some binutils ld are patched to set DT_RUNPATH
12759  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12760  $as_echo_n "(cached) " >&6
12761else
12762  lt_cv_shlibpath_overrides_runpath=no
12763    save_LDFLAGS=$LDFLAGS
12764    save_libdir=$libdir
12765    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12766	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12767    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768/* end confdefs.h.  */
12769
12770int
12771main ()
12772{
12773
12774  ;
12775  return 0;
12776}
12777_ACEOF
12778if ac_fn_c_try_link "$LINENO"; then :
12779  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12780  lt_cv_shlibpath_overrides_runpath=yes
12781fi
12782fi
12783rm -f core conftest.err conftest.$ac_objext \
12784    conftest$ac_exeext conftest.$ac_ext
12785    LDFLAGS=$save_LDFLAGS
12786    libdir=$save_libdir
12787
12788fi
12789
12790  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12791
12792  # This implies no fast_install, which is unacceptable.
12793  # Some rework will be needed to allow for fast_install
12794  # before this can be enabled.
12795  hardcode_into_libs=yes
12796
12797  # Add ABI-specific directories to the system library path.
12798  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12799
12800  # Ideally, we could use ldconfig to report *all* directores which are
12801  # searched for libraries, however this is still not possible.  Aside from not
12802  # being certain /sbin/ldconfig is available, command
12803  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12804  # even though it is searched at run-time.  Try to do the best guess by
12805  # appending ld.so.conf contents (and includes) to the search path.
12806  if test -f /etc/ld.so.conf; then
12807    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' ' '`
12808    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12809  fi
12810
12811  # We used to test for /lib/ld.so.1 and disable shared libraries on
12812  # powerpc, because MkLinux only supported shared libraries with the
12813  # GNU dynamic linker.  Since this was broken with cross compilers,
12814  # most powerpc-linux boxes support dynamic linking these days and
12815  # people can always --disable-shared, the test was removed, and we
12816  # assume the GNU/Linux dynamic linker is in use.
12817  dynamic_linker='GNU/Linux ld.so'
12818  ;;
12819
12820netbsd*)
12821  version_type=sunos
12822  need_lib_prefix=no
12823  need_version=no
12824  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12825    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12826    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12827    dynamic_linker='NetBSD (a.out) ld.so'
12828  else
12829    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12830    soname_spec='$libname$release$shared_ext$major'
12831    dynamic_linker='NetBSD ld.elf_so'
12832  fi
12833  shlibpath_var=LD_LIBRARY_PATH
12834  shlibpath_overrides_runpath=yes
12835  hardcode_into_libs=yes
12836  ;;
12837
12838newsos6)
12839  version_type=linux # correct to gnu/linux during the next big refactor
12840  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12841  shlibpath_var=LD_LIBRARY_PATH
12842  shlibpath_overrides_runpath=yes
12843  ;;
12844
12845*nto* | *qnx*)
12846  version_type=qnx
12847  need_lib_prefix=no
12848  need_version=no
12849  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12850  soname_spec='$libname$release$shared_ext$major'
12851  shlibpath_var=LD_LIBRARY_PATH
12852  shlibpath_overrides_runpath=no
12853  hardcode_into_libs=yes
12854  dynamic_linker='ldqnx.so'
12855  ;;
12856
12857openbsd* | bitrig*)
12858  version_type=sunos
12859  sys_lib_dlsearch_path_spec=/usr/lib
12860  need_lib_prefix=no
12861  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12862    need_version=no
12863  else
12864    need_version=yes
12865  fi
12866  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12867  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12868  shlibpath_var=LD_LIBRARY_PATH
12869  shlibpath_overrides_runpath=yes
12870  ;;
12871
12872os2*)
12873  libname_spec='$name'
12874  version_type=windows
12875  shrext_cmds=.dll
12876  need_version=no
12877  need_lib_prefix=no
12878  # OS/2 can only load a DLL with a base name of 8 characters or less.
12879  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12880    v=$($ECHO $release$versuffix | tr -d .-);
12881    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12882    $ECHO $n$v`$shared_ext'
12883  library_names_spec='${libname}_dll.$libext'
12884  dynamic_linker='OS/2 ld.exe'
12885  shlibpath_var=BEGINLIBPATH
12886  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12887  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12888  postinstall_cmds='base_file=`basename \$file`~
12889    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12890    dldir=$destdir/`dirname \$dlpath`~
12891    test -d \$dldir || mkdir -p \$dldir~
12892    $install_prog $dir/$dlname \$dldir/$dlname~
12893    chmod a+x \$dldir/$dlname~
12894    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12895      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12896    fi'
12897  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12898    dlpath=$dir/\$dldll~
12899    $RM \$dlpath'
12900  ;;
12901
12902osf3* | osf4* | osf5*)
12903  version_type=osf
12904  need_lib_prefix=no
12905  need_version=no
12906  soname_spec='$libname$release$shared_ext$major'
12907  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12908  shlibpath_var=LD_LIBRARY_PATH
12909  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12910  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12911  ;;
12912
12913rdos*)
12914  dynamic_linker=no
12915  ;;
12916
12917solaris*)
12918  version_type=linux # correct to gnu/linux during the next big refactor
12919  need_lib_prefix=no
12920  need_version=no
12921  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12922  soname_spec='$libname$release$shared_ext$major'
12923  shlibpath_var=LD_LIBRARY_PATH
12924  shlibpath_overrides_runpath=yes
12925  hardcode_into_libs=yes
12926  # ldd complains unless libraries are executable
12927  postinstall_cmds='chmod +x $lib'
12928  ;;
12929
12930sunos4*)
12931  version_type=sunos
12932  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12933  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12934  shlibpath_var=LD_LIBRARY_PATH
12935  shlibpath_overrides_runpath=yes
12936  if test yes = "$with_gnu_ld"; then
12937    need_lib_prefix=no
12938  fi
12939  need_version=yes
12940  ;;
12941
12942sysv4 | sysv4.3*)
12943  version_type=linux # correct to gnu/linux during the next big refactor
12944  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12945  soname_spec='$libname$release$shared_ext$major'
12946  shlibpath_var=LD_LIBRARY_PATH
12947  case $host_vendor in
12948    sni)
12949      shlibpath_overrides_runpath=no
12950      need_lib_prefix=no
12951      runpath_var=LD_RUN_PATH
12952      ;;
12953    siemens)
12954      need_lib_prefix=no
12955      ;;
12956    motorola)
12957      need_lib_prefix=no
12958      need_version=no
12959      shlibpath_overrides_runpath=no
12960      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12961      ;;
12962  esac
12963  ;;
12964
12965sysv4*MP*)
12966  if test -d /usr/nec; then
12967    version_type=linux # correct to gnu/linux during the next big refactor
12968    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12969    soname_spec='$libname$shared_ext.$major'
12970    shlibpath_var=LD_LIBRARY_PATH
12971  fi
12972  ;;
12973
12974sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12975  version_type=sco
12976  need_lib_prefix=no
12977  need_version=no
12978  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12979  soname_spec='$libname$release$shared_ext$major'
12980  shlibpath_var=LD_LIBRARY_PATH
12981  shlibpath_overrides_runpath=yes
12982  hardcode_into_libs=yes
12983  if test yes = "$with_gnu_ld"; then
12984    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12985  else
12986    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12987    case $host_os in
12988      sco3.2v5*)
12989        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12990	;;
12991    esac
12992  fi
12993  sys_lib_dlsearch_path_spec='/usr/lib'
12994  ;;
12995
12996tpf*)
12997  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12998  version_type=linux # correct to gnu/linux during the next big refactor
12999  need_lib_prefix=no
13000  need_version=no
13001  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13002  shlibpath_var=LD_LIBRARY_PATH
13003  shlibpath_overrides_runpath=no
13004  hardcode_into_libs=yes
13005  ;;
13006
13007uts4*)
13008  version_type=linux # correct to gnu/linux during the next big refactor
13009  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13010  soname_spec='$libname$release$shared_ext$major'
13011  shlibpath_var=LD_LIBRARY_PATH
13012  ;;
13013
13014*)
13015  dynamic_linker=no
13016  ;;
13017esac
13018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13019$as_echo "$dynamic_linker" >&6; }
13020test no = "$dynamic_linker" && can_build_shared=no
13021
13022variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13023if test yes = "$GCC"; then
13024  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13025fi
13026
13027if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13028  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13029fi
13030
13031if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13032  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13033fi
13034
13035# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13036configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13037
13038# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13039func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13040
13041# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13042configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13141$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13142hardcode_action=
13143if test -n "$hardcode_libdir_flag_spec" ||
13144   test -n "$runpath_var" ||
13145   test yes = "$hardcode_automatic"; then
13146
13147  # We can hardcode non-existent directories.
13148  if test no != "$hardcode_direct" &&
13149     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13150     # have to relink, otherwise we might link with an installed library
13151     # when we should be linking with a yet-to-be-installed one
13152     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13153     test no != "$hardcode_minus_L"; then
13154    # Linking always hardcodes the temporary library directory.
13155    hardcode_action=relink
13156  else
13157    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13158    hardcode_action=immediate
13159  fi
13160else
13161  # We cannot hardcode anything, or else we can only hardcode existing
13162  # directories.
13163  hardcode_action=unsupported
13164fi
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13166$as_echo "$hardcode_action" >&6; }
13167
13168if test relink = "$hardcode_action" ||
13169   test yes = "$inherit_rpath"; then
13170  # Fast installation is not supported
13171  enable_fast_install=no
13172elif test yes = "$shlibpath_overrides_runpath" ||
13173     test no = "$enable_shared"; then
13174  # Fast installation is not necessary
13175  enable_fast_install=needless
13176fi
13177
13178
13179
13180
13181
13182
13183  if test yes != "$enable_dlopen"; then
13184  enable_dlopen=unknown
13185  enable_dlopen_self=unknown
13186  enable_dlopen_self_static=unknown
13187else
13188  lt_cv_dlopen=no
13189  lt_cv_dlopen_libs=
13190
13191  case $host_os in
13192  beos*)
13193    lt_cv_dlopen=load_add_on
13194    lt_cv_dlopen_libs=
13195    lt_cv_dlopen_self=yes
13196    ;;
13197
13198  mingw* | pw32* | cegcc*)
13199    lt_cv_dlopen=LoadLibrary
13200    lt_cv_dlopen_libs=
13201    ;;
13202
13203  cygwin*)
13204    lt_cv_dlopen=dlopen
13205    lt_cv_dlopen_libs=
13206    ;;
13207
13208  darwin*)
13209    # if libdl is installed we need to link against it
13210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13211$as_echo_n "checking for dlopen in -ldl... " >&6; }
13212if ${ac_cv_lib_dl_dlopen+:} false; then :
13213  $as_echo_n "(cached) " >&6
13214else
13215  ac_check_lib_save_LIBS=$LIBS
13216LIBS="-ldl  $LIBS"
13217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218/* end confdefs.h.  */
13219
13220/* Override any GCC internal prototype to avoid an error.
13221   Use char because int might match the return type of a GCC
13222   builtin and then its argument prototype would still apply.  */
13223#ifdef __cplusplus
13224extern "C"
13225#endif
13226char dlopen ();
13227int
13228main ()
13229{
13230return dlopen ();
13231  ;
13232  return 0;
13233}
13234_ACEOF
13235if ac_fn_c_try_link "$LINENO"; then :
13236  ac_cv_lib_dl_dlopen=yes
13237else
13238  ac_cv_lib_dl_dlopen=no
13239fi
13240rm -f core conftest.err conftest.$ac_objext \
13241    conftest$ac_exeext conftest.$ac_ext
13242LIBS=$ac_check_lib_save_LIBS
13243fi
13244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13245$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13246if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13247  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13248else
13249
13250    lt_cv_dlopen=dyld
13251    lt_cv_dlopen_libs=
13252    lt_cv_dlopen_self=yes
13253
13254fi
13255
13256    ;;
13257
13258  tpf*)
13259    # Don't try to run any link tests for TPF.  We know it's impossible
13260    # because TPF is a cross-compiler, and we know how we open DSOs.
13261    lt_cv_dlopen=dlopen
13262    lt_cv_dlopen_libs=
13263    lt_cv_dlopen_self=no
13264    ;;
13265
13266  *)
13267    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13268if test "x$ac_cv_func_shl_load" = xyes; then :
13269  lt_cv_dlopen=shl_load
13270else
13271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13272$as_echo_n "checking for shl_load in -ldld... " >&6; }
13273if ${ac_cv_lib_dld_shl_load+:} false; then :
13274  $as_echo_n "(cached) " >&6
13275else
13276  ac_check_lib_save_LIBS=$LIBS
13277LIBS="-ldld  $LIBS"
13278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279/* end confdefs.h.  */
13280
13281/* Override any GCC internal prototype to avoid an error.
13282   Use char because int might match the return type of a GCC
13283   builtin and then its argument prototype would still apply.  */
13284#ifdef __cplusplus
13285extern "C"
13286#endif
13287char shl_load ();
13288int
13289main ()
13290{
13291return shl_load ();
13292  ;
13293  return 0;
13294}
13295_ACEOF
13296if ac_fn_c_try_link "$LINENO"; then :
13297  ac_cv_lib_dld_shl_load=yes
13298else
13299  ac_cv_lib_dld_shl_load=no
13300fi
13301rm -f core conftest.err conftest.$ac_objext \
13302    conftest$ac_exeext conftest.$ac_ext
13303LIBS=$ac_check_lib_save_LIBS
13304fi
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13306$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13307if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13308  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13309else
13310  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13311if test "x$ac_cv_func_dlopen" = xyes; then :
13312  lt_cv_dlopen=dlopen
13313else
13314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13315$as_echo_n "checking for dlopen in -ldl... " >&6; }
13316if ${ac_cv_lib_dl_dlopen+:} false; then :
13317  $as_echo_n "(cached) " >&6
13318else
13319  ac_check_lib_save_LIBS=$LIBS
13320LIBS="-ldl  $LIBS"
13321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322/* end confdefs.h.  */
13323
13324/* Override any GCC internal prototype to avoid an error.
13325   Use char because int might match the return type of a GCC
13326   builtin and then its argument prototype would still apply.  */
13327#ifdef __cplusplus
13328extern "C"
13329#endif
13330char dlopen ();
13331int
13332main ()
13333{
13334return dlopen ();
13335  ;
13336  return 0;
13337}
13338_ACEOF
13339if ac_fn_c_try_link "$LINENO"; then :
13340  ac_cv_lib_dl_dlopen=yes
13341else
13342  ac_cv_lib_dl_dlopen=no
13343fi
13344rm -f core conftest.err conftest.$ac_objext \
13345    conftest$ac_exeext conftest.$ac_ext
13346LIBS=$ac_check_lib_save_LIBS
13347fi
13348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13349$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13350if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13351  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13352else
13353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13354$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13355if ${ac_cv_lib_svld_dlopen+:} false; then :
13356  $as_echo_n "(cached) " >&6
13357else
13358  ac_check_lib_save_LIBS=$LIBS
13359LIBS="-lsvld  $LIBS"
13360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361/* end confdefs.h.  */
13362
13363/* Override any GCC internal prototype to avoid an error.
13364   Use char because int might match the return type of a GCC
13365   builtin and then its argument prototype would still apply.  */
13366#ifdef __cplusplus
13367extern "C"
13368#endif
13369char dlopen ();
13370int
13371main ()
13372{
13373return dlopen ();
13374  ;
13375  return 0;
13376}
13377_ACEOF
13378if ac_fn_c_try_link "$LINENO"; then :
13379  ac_cv_lib_svld_dlopen=yes
13380else
13381  ac_cv_lib_svld_dlopen=no
13382fi
13383rm -f core conftest.err conftest.$ac_objext \
13384    conftest$ac_exeext conftest.$ac_ext
13385LIBS=$ac_check_lib_save_LIBS
13386fi
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13388$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13389if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13390  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13391else
13392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13393$as_echo_n "checking for dld_link in -ldld... " >&6; }
13394if ${ac_cv_lib_dld_dld_link+:} false; then :
13395  $as_echo_n "(cached) " >&6
13396else
13397  ac_check_lib_save_LIBS=$LIBS
13398LIBS="-ldld  $LIBS"
13399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400/* end confdefs.h.  */
13401
13402/* Override any GCC internal prototype to avoid an error.
13403   Use char because int might match the return type of a GCC
13404   builtin and then its argument prototype would still apply.  */
13405#ifdef __cplusplus
13406extern "C"
13407#endif
13408char dld_link ();
13409int
13410main ()
13411{
13412return dld_link ();
13413  ;
13414  return 0;
13415}
13416_ACEOF
13417if ac_fn_c_try_link "$LINENO"; then :
13418  ac_cv_lib_dld_dld_link=yes
13419else
13420  ac_cv_lib_dld_dld_link=no
13421fi
13422rm -f core conftest.err conftest.$ac_objext \
13423    conftest$ac_exeext conftest.$ac_ext
13424LIBS=$ac_check_lib_save_LIBS
13425fi
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13427$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13428if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13429  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13430fi
13431
13432
13433fi
13434
13435
13436fi
13437
13438
13439fi
13440
13441
13442fi
13443
13444
13445fi
13446
13447    ;;
13448  esac
13449
13450  if test no = "$lt_cv_dlopen"; then
13451    enable_dlopen=no
13452  else
13453    enable_dlopen=yes
13454  fi
13455
13456  case $lt_cv_dlopen in
13457  dlopen)
13458    save_CPPFLAGS=$CPPFLAGS
13459    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13460
13461    save_LDFLAGS=$LDFLAGS
13462    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13463
13464    save_LIBS=$LIBS
13465    LIBS="$lt_cv_dlopen_libs $LIBS"
13466
13467    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13468$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13469if ${lt_cv_dlopen_self+:} false; then :
13470  $as_echo_n "(cached) " >&6
13471else
13472  	  if test yes = "$cross_compiling"; then :
13473  lt_cv_dlopen_self=cross
13474else
13475  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13476  lt_status=$lt_dlunknown
13477  cat > conftest.$ac_ext <<_LT_EOF
13478#line $LINENO "configure"
13479#include "confdefs.h"
13480
13481#if HAVE_DLFCN_H
13482#include <dlfcn.h>
13483#endif
13484
13485#include <stdio.h>
13486
13487#ifdef RTLD_GLOBAL
13488#  define LT_DLGLOBAL		RTLD_GLOBAL
13489#else
13490#  ifdef DL_GLOBAL
13491#    define LT_DLGLOBAL		DL_GLOBAL
13492#  else
13493#    define LT_DLGLOBAL		0
13494#  endif
13495#endif
13496
13497/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13498   find out it does not work in some platform. */
13499#ifndef LT_DLLAZY_OR_NOW
13500#  ifdef RTLD_LAZY
13501#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13502#  else
13503#    ifdef DL_LAZY
13504#      define LT_DLLAZY_OR_NOW		DL_LAZY
13505#    else
13506#      ifdef RTLD_NOW
13507#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13508#      else
13509#        ifdef DL_NOW
13510#          define LT_DLLAZY_OR_NOW	DL_NOW
13511#        else
13512#          define LT_DLLAZY_OR_NOW	0
13513#        endif
13514#      endif
13515#    endif
13516#  endif
13517#endif
13518
13519/* When -fvisibility=hidden is used, assume the code has been annotated
13520   correspondingly for the symbols needed.  */
13521#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13522int fnord () __attribute__((visibility("default")));
13523#endif
13524
13525int fnord () { return 42; }
13526int main ()
13527{
13528  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13529  int status = $lt_dlunknown;
13530
13531  if (self)
13532    {
13533      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13534      else
13535        {
13536	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13537          else puts (dlerror ());
13538	}
13539      /* dlclose (self); */
13540    }
13541  else
13542    puts (dlerror ());
13543
13544  return status;
13545}
13546_LT_EOF
13547  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13548  (eval $ac_link) 2>&5
13549  ac_status=$?
13550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13551  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13552    (./conftest; exit; ) >&5 2>/dev/null
13553    lt_status=$?
13554    case x$lt_status in
13555      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13556      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13557      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13558    esac
13559  else :
13560    # compilation failed
13561    lt_cv_dlopen_self=no
13562  fi
13563fi
13564rm -fr conftest*
13565
13566
13567fi
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13569$as_echo "$lt_cv_dlopen_self" >&6; }
13570
13571    if test yes = "$lt_cv_dlopen_self"; then
13572      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13573      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13574$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13575if ${lt_cv_dlopen_self_static+:} false; then :
13576  $as_echo_n "(cached) " >&6
13577else
13578  	  if test yes = "$cross_compiling"; then :
13579  lt_cv_dlopen_self_static=cross
13580else
13581  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13582  lt_status=$lt_dlunknown
13583  cat > conftest.$ac_ext <<_LT_EOF
13584#line $LINENO "configure"
13585#include "confdefs.h"
13586
13587#if HAVE_DLFCN_H
13588#include <dlfcn.h>
13589#endif
13590
13591#include <stdio.h>
13592
13593#ifdef RTLD_GLOBAL
13594#  define LT_DLGLOBAL		RTLD_GLOBAL
13595#else
13596#  ifdef DL_GLOBAL
13597#    define LT_DLGLOBAL		DL_GLOBAL
13598#  else
13599#    define LT_DLGLOBAL		0
13600#  endif
13601#endif
13602
13603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13604   find out it does not work in some platform. */
13605#ifndef LT_DLLAZY_OR_NOW
13606#  ifdef RTLD_LAZY
13607#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13608#  else
13609#    ifdef DL_LAZY
13610#      define LT_DLLAZY_OR_NOW		DL_LAZY
13611#    else
13612#      ifdef RTLD_NOW
13613#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13614#      else
13615#        ifdef DL_NOW
13616#          define LT_DLLAZY_OR_NOW	DL_NOW
13617#        else
13618#          define LT_DLLAZY_OR_NOW	0
13619#        endif
13620#      endif
13621#    endif
13622#  endif
13623#endif
13624
13625/* When -fvisibility=hidden is used, assume the code has been annotated
13626   correspondingly for the symbols needed.  */
13627#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13628int fnord () __attribute__((visibility("default")));
13629#endif
13630
13631int fnord () { return 42; }
13632int main ()
13633{
13634  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13635  int status = $lt_dlunknown;
13636
13637  if (self)
13638    {
13639      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13640      else
13641        {
13642	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13643          else puts (dlerror ());
13644	}
13645      /* dlclose (self); */
13646    }
13647  else
13648    puts (dlerror ());
13649
13650  return status;
13651}
13652_LT_EOF
13653  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13654  (eval $ac_link) 2>&5
13655  ac_status=$?
13656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13657  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13658    (./conftest; exit; ) >&5 2>/dev/null
13659    lt_status=$?
13660    case x$lt_status in
13661      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13662      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13663      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13664    esac
13665  else :
13666    # compilation failed
13667    lt_cv_dlopen_self_static=no
13668  fi
13669fi
13670rm -fr conftest*
13671
13672
13673fi
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13675$as_echo "$lt_cv_dlopen_self_static" >&6; }
13676    fi
13677
13678    CPPFLAGS=$save_CPPFLAGS
13679    LDFLAGS=$save_LDFLAGS
13680    LIBS=$save_LIBS
13681    ;;
13682  esac
13683
13684  case $lt_cv_dlopen_self in
13685  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13686  *) enable_dlopen_self=unknown ;;
13687  esac
13688
13689  case $lt_cv_dlopen_self_static in
13690  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13691  *) enable_dlopen_self_static=unknown ;;
13692  esac
13693fi
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711striplib=
13712old_striplib=
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13714$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13715if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13716  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13717  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13719$as_echo "yes" >&6; }
13720else
13721# FIXME - insert some real tests, host_os isn't really good enough
13722  case $host_os in
13723  darwin*)
13724    if test -n "$STRIP"; then
13725      striplib="$STRIP -x"
13726      old_striplib="$STRIP -S"
13727      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13728$as_echo "yes" >&6; }
13729    else
13730      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731$as_echo "no" >&6; }
13732    fi
13733    ;;
13734  *)
13735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736$as_echo "no" >&6; }
13737    ;;
13738  esac
13739fi
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752  # Report what library types will actually be built
13753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13754$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13756$as_echo "$can_build_shared" >&6; }
13757
13758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13759$as_echo_n "checking whether to build shared libraries... " >&6; }
13760  test no = "$can_build_shared" && enable_shared=no
13761
13762  # On AIX, shared libraries and static libraries use the same namespace, and
13763  # are all built from PIC.
13764  case $host_os in
13765  aix3*)
13766    test yes = "$enable_shared" && enable_static=no
13767    if test -n "$RANLIB"; then
13768      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13769      postinstall_cmds='$RANLIB $lib'
13770    fi
13771    ;;
13772
13773  aix[4-9]*)
13774    if test ia64 != "$host_cpu"; then
13775      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13776      yes,aix,yes) ;;			# shared object as lib.so file only
13777      yes,svr4,*) ;;			# shared object as lib.so archive member only
13778      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13779      esac
13780    fi
13781    ;;
13782  esac
13783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13784$as_echo "$enable_shared" >&6; }
13785
13786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13787$as_echo_n "checking whether to build static libraries... " >&6; }
13788  # Make sure either enable_shared or enable_static is yes.
13789  test yes = "$enable_shared" || enable_static=yes
13790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13791$as_echo "$enable_static" >&6; }
13792
13793
13794
13795
13796fi
13797ac_ext=c
13798ac_cpp='$CPP $CPPFLAGS'
13799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13801ac_compiler_gnu=$ac_cv_c_compiler_gnu
13802
13803CC=$lt_save_CC
13804
13805      if test -n "$CXX" && ( test no != "$CXX" &&
13806    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13807    (test g++ != "$CXX"))); then
13808  ac_ext=cpp
13809ac_cpp='$CXXCPP $CPPFLAGS'
13810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13814$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13815if test -z "$CXXCPP"; then
13816  if ${ac_cv_prog_CXXCPP+:} false; then :
13817  $as_echo_n "(cached) " >&6
13818else
13819      # Double quotes because CXXCPP needs to be expanded
13820    for CXXCPP in "$CXX -E" "/lib/cpp"
13821    do
13822      ac_preproc_ok=false
13823for ac_cxx_preproc_warn_flag in '' yes
13824do
13825  # Use a header file that comes with gcc, so configuring glibc
13826  # with a fresh cross-compiler works.
13827  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13828  # <limits.h> exists even on freestanding compilers.
13829  # On the NeXT, cc -E runs the code through the compiler's parser,
13830  # not just through cpp. "Syntax error" is here to catch this case.
13831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832/* end confdefs.h.  */
13833#ifdef __STDC__
13834# include <limits.h>
13835#else
13836# include <assert.h>
13837#endif
13838		     Syntax error
13839_ACEOF
13840if ac_fn_cxx_try_cpp "$LINENO"; then :
13841
13842else
13843  # Broken: fails on valid input.
13844continue
13845fi
13846rm -f conftest.err conftest.i conftest.$ac_ext
13847
13848  # OK, works on sane cases.  Now check whether nonexistent headers
13849  # can be detected and how.
13850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851/* end confdefs.h.  */
13852#include <ac_nonexistent.h>
13853_ACEOF
13854if ac_fn_cxx_try_cpp "$LINENO"; then :
13855  # Broken: success on invalid input.
13856continue
13857else
13858  # Passes both tests.
13859ac_preproc_ok=:
13860break
13861fi
13862rm -f conftest.err conftest.i conftest.$ac_ext
13863
13864done
13865# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13866rm -f conftest.i conftest.err conftest.$ac_ext
13867if $ac_preproc_ok; then :
13868  break
13869fi
13870
13871    done
13872    ac_cv_prog_CXXCPP=$CXXCPP
13873
13874fi
13875  CXXCPP=$ac_cv_prog_CXXCPP
13876else
13877  ac_cv_prog_CXXCPP=$CXXCPP
13878fi
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13880$as_echo "$CXXCPP" >&6; }
13881ac_preproc_ok=false
13882for ac_cxx_preproc_warn_flag in '' yes
13883do
13884  # Use a header file that comes with gcc, so configuring glibc
13885  # with a fresh cross-compiler works.
13886  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13887  # <limits.h> exists even on freestanding compilers.
13888  # On the NeXT, cc -E runs the code through the compiler's parser,
13889  # not just through cpp. "Syntax error" is here to catch this case.
13890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891/* end confdefs.h.  */
13892#ifdef __STDC__
13893# include <limits.h>
13894#else
13895# include <assert.h>
13896#endif
13897		     Syntax error
13898_ACEOF
13899if ac_fn_cxx_try_cpp "$LINENO"; then :
13900
13901else
13902  # Broken: fails on valid input.
13903continue
13904fi
13905rm -f conftest.err conftest.i conftest.$ac_ext
13906
13907  # OK, works on sane cases.  Now check whether nonexistent headers
13908  # can be detected and how.
13909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910/* end confdefs.h.  */
13911#include <ac_nonexistent.h>
13912_ACEOF
13913if ac_fn_cxx_try_cpp "$LINENO"; then :
13914  # Broken: success on invalid input.
13915continue
13916else
13917  # Passes both tests.
13918ac_preproc_ok=:
13919break
13920fi
13921rm -f conftest.err conftest.i conftest.$ac_ext
13922
13923done
13924# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13925rm -f conftest.i conftest.err conftest.$ac_ext
13926if $ac_preproc_ok; then :
13927
13928else
13929  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13931as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13932See \`config.log' for more details" "$LINENO" 5; }
13933fi
13934
13935ac_ext=c
13936ac_cpp='$CPP $CPPFLAGS'
13937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13939ac_compiler_gnu=$ac_cv_c_compiler_gnu
13940
13941else
13942  _lt_caught_CXX_error=yes
13943fi
13944
13945ac_ext=cpp
13946ac_cpp='$CXXCPP $CPPFLAGS'
13947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13950
13951archive_cmds_need_lc_CXX=no
13952allow_undefined_flag_CXX=
13953always_export_symbols_CXX=no
13954archive_expsym_cmds_CXX=
13955compiler_needs_object_CXX=no
13956export_dynamic_flag_spec_CXX=
13957hardcode_direct_CXX=no
13958hardcode_direct_absolute_CXX=no
13959hardcode_libdir_flag_spec_CXX=
13960hardcode_libdir_separator_CXX=
13961hardcode_minus_L_CXX=no
13962hardcode_shlibpath_var_CXX=unsupported
13963hardcode_automatic_CXX=no
13964inherit_rpath_CXX=no
13965module_cmds_CXX=
13966module_expsym_cmds_CXX=
13967link_all_deplibs_CXX=unknown
13968old_archive_cmds_CXX=$old_archive_cmds
13969reload_flag_CXX=$reload_flag
13970reload_cmds_CXX=$reload_cmds
13971no_undefined_flag_CXX=
13972whole_archive_flag_spec_CXX=
13973enable_shared_with_static_runtimes_CXX=no
13974
13975# Source file extension for C++ test sources.
13976ac_ext=cpp
13977
13978# Object file extension for compiled C++ test sources.
13979objext=o
13980objext_CXX=$objext
13981
13982# No sense in running all these tests if we already determined that
13983# the CXX compiler isn't working.  Some variables (like enable_shared)
13984# are currently assumed to apply to all compilers on this platform,
13985# and will be corrupted by setting them based on a non-working compiler.
13986if test yes != "$_lt_caught_CXX_error"; then
13987  # Code to be used in simple compile tests
13988  lt_simple_compile_test_code="int some_variable = 0;"
13989
13990  # Code to be used in simple link tests
13991  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13992
13993  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13994
13995
13996
13997
13998
13999
14000# If no C compiler was specified, use CC.
14001LTCC=${LTCC-"$CC"}
14002
14003# If no C compiler flags were specified, use CFLAGS.
14004LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14005
14006# Allow CC to be a program name with arguments.
14007compiler=$CC
14008
14009
14010  # save warnings/boilerplate of simple test code
14011  ac_outfile=conftest.$ac_objext
14012echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14013eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14014_lt_compiler_boilerplate=`cat conftest.err`
14015$RM conftest*
14016
14017  ac_outfile=conftest.$ac_objext
14018echo "$lt_simple_link_test_code" >conftest.$ac_ext
14019eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14020_lt_linker_boilerplate=`cat conftest.err`
14021$RM -r conftest*
14022
14023
14024  # Allow CC to be a program name with arguments.
14025  lt_save_CC=$CC
14026  lt_save_CFLAGS=$CFLAGS
14027  lt_save_LD=$LD
14028  lt_save_GCC=$GCC
14029  GCC=$GXX
14030  lt_save_with_gnu_ld=$with_gnu_ld
14031  lt_save_path_LD=$lt_cv_path_LD
14032  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14033    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14034  else
14035    $as_unset lt_cv_prog_gnu_ld
14036  fi
14037  if test -n "${lt_cv_path_LDCXX+set}"; then
14038    lt_cv_path_LD=$lt_cv_path_LDCXX
14039  else
14040    $as_unset lt_cv_path_LD
14041  fi
14042  test -z "${LDCXX+set}" || LD=$LDCXX
14043  CC=${CXX-"c++"}
14044  CFLAGS=$CXXFLAGS
14045  compiler=$CC
14046  compiler_CXX=$CC
14047  func_cc_basename $compiler
14048cc_basename=$func_cc_basename_result
14049
14050
14051  if test -n "$compiler"; then
14052    # We don't want -fno-exception when compiling C++ code, so set the
14053    # no_builtin_flag separately
14054    if test yes = "$GXX"; then
14055      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14056    else
14057      lt_prog_compiler_no_builtin_flag_CXX=
14058    fi
14059
14060    if test yes = "$GXX"; then
14061      # Set up default GNU C++ configuration
14062
14063
14064
14065# Check whether --with-gnu-ld was given.
14066if test "${with_gnu_ld+set}" = set; then :
14067  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14068else
14069  with_gnu_ld=no
14070fi
14071
14072ac_prog=ld
14073if test yes = "$GCC"; then
14074  # Check if gcc -print-prog-name=ld gives a path.
14075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14076$as_echo_n "checking for ld used by $CC... " >&6; }
14077  case $host in
14078  *-*-mingw*)
14079    # gcc leaves a trailing carriage return, which upsets mingw
14080    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14081  *)
14082    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14083  esac
14084  case $ac_prog in
14085    # Accept absolute paths.
14086    [\\/]* | ?:[\\/]*)
14087      re_direlt='/[^/][^/]*/\.\./'
14088      # Canonicalize the pathname of ld
14089      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14090      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14091	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14092      done
14093      test -z "$LD" && LD=$ac_prog
14094      ;;
14095  "")
14096    # If it fails, then pretend we aren't using GCC.
14097    ac_prog=ld
14098    ;;
14099  *)
14100    # If it is relative, then search for the first ld in PATH.
14101    with_gnu_ld=unknown
14102    ;;
14103  esac
14104elif test yes = "$with_gnu_ld"; then
14105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14106$as_echo_n "checking for GNU ld... " >&6; }
14107else
14108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14109$as_echo_n "checking for non-GNU ld... " >&6; }
14110fi
14111if ${lt_cv_path_LD+:} false; then :
14112  $as_echo_n "(cached) " >&6
14113else
14114  if test -z "$LD"; then
14115  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14116  for ac_dir in $PATH; do
14117    IFS=$lt_save_ifs
14118    test -z "$ac_dir" && ac_dir=.
14119    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14120      lt_cv_path_LD=$ac_dir/$ac_prog
14121      # Check to see if the program is GNU ld.  I'd rather use --version,
14122      # but apparently some variants of GNU ld only accept -v.
14123      # Break only if it was the GNU/non-GNU ld that we prefer.
14124      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14125      *GNU* | *'with BFD'*)
14126	test no != "$with_gnu_ld" && break
14127	;;
14128      *)
14129	test yes != "$with_gnu_ld" && break
14130	;;
14131      esac
14132    fi
14133  done
14134  IFS=$lt_save_ifs
14135else
14136  lt_cv_path_LD=$LD # Let the user override the test with a path.
14137fi
14138fi
14139
14140LD=$lt_cv_path_LD
14141if test -n "$LD"; then
14142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14143$as_echo "$LD" >&6; }
14144else
14145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146$as_echo "no" >&6; }
14147fi
14148test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14150$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14151if ${lt_cv_prog_gnu_ld+:} false; then :
14152  $as_echo_n "(cached) " >&6
14153else
14154  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14155case `$LD -v 2>&1 </dev/null` in
14156*GNU* | *'with BFD'*)
14157  lt_cv_prog_gnu_ld=yes
14158  ;;
14159*)
14160  lt_cv_prog_gnu_ld=no
14161  ;;
14162esac
14163fi
14164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14165$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14166with_gnu_ld=$lt_cv_prog_gnu_ld
14167
14168
14169
14170
14171
14172
14173
14174      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14175      # archiving commands below assume that GNU ld is being used.
14176      if test yes = "$with_gnu_ld"; then
14177        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14178        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14179
14180        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14181        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14182
14183        # If archive_cmds runs LD, not CC, wlarc should be empty
14184        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14185        #     investigate it a little bit more. (MM)
14186        wlarc='$wl'
14187
14188        # ancient GNU ld didn't support --whole-archive et. al.
14189        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14190	  $GREP 'no-whole-archive' > /dev/null; then
14191          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14192        else
14193          whole_archive_flag_spec_CXX=
14194        fi
14195      else
14196        with_gnu_ld=no
14197        wlarc=
14198
14199        # A generic and very simple default shared library creation
14200        # command for GNU C++ for the case where it uses the native
14201        # linker, instead of GNU ld.  If possible, this setting should
14202        # overridden to take advantage of the native linker features on
14203        # the platform it is being used on.
14204        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14205      fi
14206
14207      # Commands to make compiler produce verbose output that lists
14208      # what "hidden" libraries, object files and flags are used when
14209      # linking a shared library.
14210      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14211
14212    else
14213      GXX=no
14214      with_gnu_ld=no
14215      wlarc=
14216    fi
14217
14218    # PORTME: fill in a description of your system's C++ link characteristics
14219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14220$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14221    ld_shlibs_CXX=yes
14222    case $host_os in
14223      aix3*)
14224        # FIXME: insert proper C++ library support
14225        ld_shlibs_CXX=no
14226        ;;
14227      aix[4-9]*)
14228        if test ia64 = "$host_cpu"; then
14229          # On IA64, the linker does run time linking by default, so we don't
14230          # have to do anything special.
14231          aix_use_runtimelinking=no
14232          exp_sym_flag='-Bexport'
14233          no_entry_flag=
14234        else
14235          aix_use_runtimelinking=no
14236
14237          # Test if we are trying to use run time linking or normal
14238          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14239          # have runtime linking enabled, and use it for executables.
14240          # For shared libraries, we enable/disable runtime linking
14241          # depending on the kind of the shared library created -
14242          # when "with_aix_soname,aix_use_runtimelinking" is:
14243          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14244          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14245          #            lib.a           static archive
14246          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14247          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14248          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14249          #            lib.a(lib.so.V) shared, rtl:no
14250          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14251          #            lib.a           static archive
14252          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14253	    for ld_flag in $LDFLAGS; do
14254	      case $ld_flag in
14255	      *-brtl*)
14256	        aix_use_runtimelinking=yes
14257	        break
14258	        ;;
14259	      esac
14260	    done
14261	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14262	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14263	      # so we don't have lib.a shared libs to link our executables.
14264	      # We have to force runtime linking in this case.
14265	      aix_use_runtimelinking=yes
14266	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14267	    fi
14268	    ;;
14269          esac
14270
14271          exp_sym_flag='-bexport'
14272          no_entry_flag='-bnoentry'
14273        fi
14274
14275        # When large executables or shared objects are built, AIX ld can
14276        # have problems creating the table of contents.  If linking a library
14277        # or program results in "error TOC overflow" add -mminimal-toc to
14278        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14279        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14280
14281        archive_cmds_CXX=''
14282        hardcode_direct_CXX=yes
14283        hardcode_direct_absolute_CXX=yes
14284        hardcode_libdir_separator_CXX=':'
14285        link_all_deplibs_CXX=yes
14286        file_list_spec_CXX='$wl-f,'
14287        case $with_aix_soname,$aix_use_runtimelinking in
14288        aix,*) ;;	# no import file
14289        svr4,* | *,yes) # use import file
14290          # The Import File defines what to hardcode.
14291          hardcode_direct_CXX=no
14292          hardcode_direct_absolute_CXX=no
14293          ;;
14294        esac
14295
14296        if test yes = "$GXX"; then
14297          case $host_os in aix4.[012]|aix4.[012].*)
14298          # We only want to do this on AIX 4.2 and lower, the check
14299          # below for broken collect2 doesn't work under 4.3+
14300	  collect2name=`$CC -print-prog-name=collect2`
14301	  if test -f "$collect2name" &&
14302	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14303	  then
14304	    # We have reworked collect2
14305	    :
14306	  else
14307	    # We have old collect2
14308	    hardcode_direct_CXX=unsupported
14309	    # It fails to find uninstalled libraries when the uninstalled
14310	    # path is not listed in the libpath.  Setting hardcode_minus_L
14311	    # to unsupported forces relinking
14312	    hardcode_minus_L_CXX=yes
14313	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14314	    hardcode_libdir_separator_CXX=
14315	  fi
14316          esac
14317          shared_flag='-shared'
14318	  if test yes = "$aix_use_runtimelinking"; then
14319	    shared_flag=$shared_flag' $wl-G'
14320	  fi
14321	  # Need to ensure runtime linking is disabled for the traditional
14322	  # shared library, or the linker may eventually find shared libraries
14323	  # /with/ Import File - we do not want to mix them.
14324	  shared_flag_aix='-shared'
14325	  shared_flag_svr4='-shared $wl-G'
14326        else
14327          # not using gcc
14328          if test ia64 = "$host_cpu"; then
14329	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14330	  # chokes on -Wl,-G. The following line is correct:
14331	  shared_flag='-G'
14332          else
14333	    if test yes = "$aix_use_runtimelinking"; then
14334	      shared_flag='$wl-G'
14335	    else
14336	      shared_flag='$wl-bM:SRE'
14337	    fi
14338	    shared_flag_aix='$wl-bM:SRE'
14339	    shared_flag_svr4='$wl-G'
14340          fi
14341        fi
14342
14343        export_dynamic_flag_spec_CXX='$wl-bexpall'
14344        # It seems that -bexpall does not export symbols beginning with
14345        # underscore (_), so it is better to generate a list of symbols to
14346	# export.
14347        always_export_symbols_CXX=yes
14348	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14349          # Warning - without using the other runtime loading flags (-brtl),
14350          # -berok will link without error, but may produce a broken library.
14351          # The "-G" linker flag allows undefined symbols.
14352          no_undefined_flag_CXX='-bernotok'
14353          # Determine the default libpath from the value encoded in an empty
14354          # executable.
14355          if test set = "${lt_cv_aix_libpath+set}"; then
14356  aix_libpath=$lt_cv_aix_libpath
14357else
14358  if ${lt_cv_aix_libpath__CXX+:} false; then :
14359  $as_echo_n "(cached) " >&6
14360else
14361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362/* end confdefs.h.  */
14363
14364int
14365main ()
14366{
14367
14368  ;
14369  return 0;
14370}
14371_ACEOF
14372if ac_fn_cxx_try_link "$LINENO"; then :
14373
14374  lt_aix_libpath_sed='
14375      /Import File Strings/,/^$/ {
14376	  /^0/ {
14377	      s/^0  *\([^ ]*\) *$/\1/
14378	      p
14379	  }
14380      }'
14381  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14382  # Check for a 64-bit object if we didn't find anything.
14383  if test -z "$lt_cv_aix_libpath__CXX"; then
14384    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14385  fi
14386fi
14387rm -f core conftest.err conftest.$ac_objext \
14388    conftest$ac_exeext conftest.$ac_ext
14389  if test -z "$lt_cv_aix_libpath__CXX"; then
14390    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14391  fi
14392
14393fi
14394
14395  aix_libpath=$lt_cv_aix_libpath__CXX
14396fi
14397
14398          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14399
14400          archive_expsym_cmds_CXX='$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
14401        else
14402          if test ia64 = "$host_cpu"; then
14403	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14404	    allow_undefined_flag_CXX="-z nodefs"
14405	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
14406          else
14407	    # Determine the default libpath from the value encoded in an
14408	    # empty executable.
14409	    if test set = "${lt_cv_aix_libpath+set}"; then
14410  aix_libpath=$lt_cv_aix_libpath
14411else
14412  if ${lt_cv_aix_libpath__CXX+:} false; then :
14413  $as_echo_n "(cached) " >&6
14414else
14415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416/* end confdefs.h.  */
14417
14418int
14419main ()
14420{
14421
14422  ;
14423  return 0;
14424}
14425_ACEOF
14426if ac_fn_cxx_try_link "$LINENO"; then :
14427
14428  lt_aix_libpath_sed='
14429      /Import File Strings/,/^$/ {
14430	  /^0/ {
14431	      s/^0  *\([^ ]*\) *$/\1/
14432	      p
14433	  }
14434      }'
14435  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14436  # Check for a 64-bit object if we didn't find anything.
14437  if test -z "$lt_cv_aix_libpath__CXX"; then
14438    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14439  fi
14440fi
14441rm -f core conftest.err conftest.$ac_objext \
14442    conftest$ac_exeext conftest.$ac_ext
14443  if test -z "$lt_cv_aix_libpath__CXX"; then
14444    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14445  fi
14446
14447fi
14448
14449  aix_libpath=$lt_cv_aix_libpath__CXX
14450fi
14451
14452	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14453	    # Warning - without using the other run time loading flags,
14454	    # -berok will link without error, but may produce a broken library.
14455	    no_undefined_flag_CXX=' $wl-bernotok'
14456	    allow_undefined_flag_CXX=' $wl-berok'
14457	    if test yes = "$with_gnu_ld"; then
14458	      # We only use this code for GNU lds that support --whole-archive.
14459	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14460	    else
14461	      # Exported symbols can be pulled into shared objects from archives
14462	      whole_archive_flag_spec_CXX='$convenience'
14463	    fi
14464	    archive_cmds_need_lc_CXX=yes
14465	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14466	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14467	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14468	    if test svr4 != "$with_aix_soname"; then
14469	      # This is similar to how AIX traditionally builds its shared
14470	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14471	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14472	    fi
14473	    if test aix != "$with_aix_soname"; then
14474	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14475	    else
14476	      # used by -dlpreopen to get the symbols
14477	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14478	    fi
14479	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14480          fi
14481        fi
14482        ;;
14483
14484      beos*)
14485	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14486	  allow_undefined_flag_CXX=unsupported
14487	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14488	  # support --undefined.  This deserves some investigation.  FIXME
14489	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14490	else
14491	  ld_shlibs_CXX=no
14492	fi
14493	;;
14494
14495      chorus*)
14496        case $cc_basename in
14497          *)
14498	  # FIXME: insert proper C++ library support
14499	  ld_shlibs_CXX=no
14500	  ;;
14501        esac
14502        ;;
14503
14504      cygwin* | mingw* | pw32* | cegcc*)
14505	case $GXX,$cc_basename in
14506	,cl* | no,cl*)
14507	  # Native MSVC
14508	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14509	  # no search path for DLLs.
14510	  hardcode_libdir_flag_spec_CXX=' '
14511	  allow_undefined_flag_CXX=unsupported
14512	  always_export_symbols_CXX=yes
14513	  file_list_spec_CXX='@'
14514	  # Tell ltmain to make .lib files, not .a files.
14515	  libext=lib
14516	  # Tell ltmain to make .dll files, not .so files.
14517	  shrext_cmds=.dll
14518	  # FIXME: Setting linknames here is a bad hack.
14519	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14520	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14521              cp "$export_symbols" "$output_objdir/$soname.def";
14522              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14523            else
14524              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14525            fi~
14526            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14527            linknames='
14528	  # The linker will not automatically build a static lib if we build a DLL.
14529	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14530	  enable_shared_with_static_runtimes_CXX=yes
14531	  # Don't use ranlib
14532	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14533	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14534            lt_tool_outputfile="@TOOL_OUTPUT@"~
14535            case $lt_outputfile in
14536              *.exe|*.EXE) ;;
14537              *)
14538                lt_outputfile=$lt_outputfile.exe
14539                lt_tool_outputfile=$lt_tool_outputfile.exe
14540                ;;
14541            esac~
14542            func_to_tool_file "$lt_outputfile"~
14543            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14544              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14545              $RM "$lt_outputfile.manifest";
14546            fi'
14547	  ;;
14548	*)
14549	  # g++
14550	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14551	  # as there is no search path for DLLs.
14552	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14553	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14554	  allow_undefined_flag_CXX=unsupported
14555	  always_export_symbols_CXX=no
14556	  enable_shared_with_static_runtimes_CXX=yes
14557
14558	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14559	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14560	    # If the export-symbols file already is a .def file, use it as
14561	    # is; otherwise, prepend EXPORTS...
14562	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14563              cp $export_symbols $output_objdir/$soname.def;
14564            else
14565              echo EXPORTS > $output_objdir/$soname.def;
14566              cat $export_symbols >> $output_objdir/$soname.def;
14567            fi~
14568            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14569	  else
14570	    ld_shlibs_CXX=no
14571	  fi
14572	  ;;
14573	esac
14574	;;
14575      darwin* | rhapsody*)
14576
14577
14578  archive_cmds_need_lc_CXX=no
14579  hardcode_direct_CXX=no
14580  hardcode_automatic_CXX=yes
14581  hardcode_shlibpath_var_CXX=unsupported
14582  if test yes = "$lt_cv_ld_force_load"; then
14583    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14584
14585  else
14586    whole_archive_flag_spec_CXX=''
14587  fi
14588  link_all_deplibs_CXX=yes
14589  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14590  case $cc_basename in
14591     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14592     *) _lt_dar_can_shared=$GCC ;;
14593  esac
14594  if test yes = "$_lt_dar_can_shared"; then
14595    output_verbose_link_cmd=func_echo_all
14596    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14597    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14598    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
14599    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
14600       if test yes != "$lt_cv_apple_cc_single_mod"; then
14601      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14602      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14603    fi
14604
14605  else
14606  ld_shlibs_CXX=no
14607  fi
14608
14609	;;
14610
14611      os2*)
14612	hardcode_libdir_flag_spec_CXX='-L$libdir'
14613	hardcode_minus_L_CXX=yes
14614	allow_undefined_flag_CXX=unsupported
14615	shrext_cmds=.dll
14616	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14617	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14618	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14619	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14620	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14621	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14622	  emximp -o $lib $output_objdir/$libname.def'
14623	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14624	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14625	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14626	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14627	  prefix_cmds="$SED"~
14628	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14629	    prefix_cmds="$prefix_cmds -e 1d";
14630	  fi~
14631	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14632	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14633	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14634	  emximp -o $lib $output_objdir/$libname.def'
14635	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14636	enable_shared_with_static_runtimes_CXX=yes
14637	;;
14638
14639      dgux*)
14640        case $cc_basename in
14641          ec++*)
14642	    # FIXME: insert proper C++ library support
14643	    ld_shlibs_CXX=no
14644	    ;;
14645          ghcx*)
14646	    # Green Hills C++ Compiler
14647	    # FIXME: insert proper C++ library support
14648	    ld_shlibs_CXX=no
14649	    ;;
14650          *)
14651	    # FIXME: insert proper C++ library support
14652	    ld_shlibs_CXX=no
14653	    ;;
14654        esac
14655        ;;
14656
14657      freebsd2.*)
14658        # C++ shared libraries reported to be fairly broken before
14659	# switch to ELF
14660        ld_shlibs_CXX=no
14661        ;;
14662
14663      freebsd-elf*)
14664        archive_cmds_need_lc_CXX=no
14665        ;;
14666
14667      freebsd* | dragonfly*)
14668        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14669        # conventions
14670        ld_shlibs_CXX=yes
14671        ;;
14672
14673      haiku*)
14674        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14675        link_all_deplibs_CXX=yes
14676        ;;
14677
14678      hpux9*)
14679        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14680        hardcode_libdir_separator_CXX=:
14681        export_dynamic_flag_spec_CXX='$wl-E'
14682        hardcode_direct_CXX=yes
14683        hardcode_minus_L_CXX=yes # Not in the search PATH,
14684				             # but as the default
14685				             # location of the library.
14686
14687        case $cc_basename in
14688          CC*)
14689            # FIXME: insert proper C++ library support
14690            ld_shlibs_CXX=no
14691            ;;
14692          aCC*)
14693            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14694            # Commands to make compiler produce verbose output that lists
14695            # what "hidden" libraries, object files and flags are used when
14696            # linking a shared library.
14697            #
14698            # There doesn't appear to be a way to prevent this compiler from
14699            # explicitly linking system object files so we need to strip them
14700            # from the output so that they don't get included in the library
14701            # dependencies.
14702            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14703            ;;
14704          *)
14705            if test yes = "$GXX"; then
14706              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14707            else
14708              # FIXME: insert proper C++ library support
14709              ld_shlibs_CXX=no
14710            fi
14711            ;;
14712        esac
14713        ;;
14714
14715      hpux10*|hpux11*)
14716        if test no = "$with_gnu_ld"; then
14717	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14718	  hardcode_libdir_separator_CXX=:
14719
14720          case $host_cpu in
14721            hppa*64*|ia64*)
14722              ;;
14723            *)
14724	      export_dynamic_flag_spec_CXX='$wl-E'
14725              ;;
14726          esac
14727        fi
14728        case $host_cpu in
14729          hppa*64*|ia64*)
14730            hardcode_direct_CXX=no
14731            hardcode_shlibpath_var_CXX=no
14732            ;;
14733          *)
14734            hardcode_direct_CXX=yes
14735            hardcode_direct_absolute_CXX=yes
14736            hardcode_minus_L_CXX=yes # Not in the search PATH,
14737					         # but as the default
14738					         # location of the library.
14739            ;;
14740        esac
14741
14742        case $cc_basename in
14743          CC*)
14744	    # FIXME: insert proper C++ library support
14745	    ld_shlibs_CXX=no
14746	    ;;
14747          aCC*)
14748	    case $host_cpu in
14749	      hppa*64*)
14750	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14751	        ;;
14752	      ia64*)
14753	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14754	        ;;
14755	      *)
14756	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14757	        ;;
14758	    esac
14759	    # Commands to make compiler produce verbose output that lists
14760	    # what "hidden" libraries, object files and flags are used when
14761	    # linking a shared library.
14762	    #
14763	    # There doesn't appear to be a way to prevent this compiler from
14764	    # explicitly linking system object files so we need to strip them
14765	    # from the output so that they don't get included in the library
14766	    # dependencies.
14767	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14768	    ;;
14769          *)
14770	    if test yes = "$GXX"; then
14771	      if test no = "$with_gnu_ld"; then
14772	        case $host_cpu in
14773	          hppa*64*)
14774	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14775	            ;;
14776	          ia64*)
14777	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14778	            ;;
14779	          *)
14780	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14781	            ;;
14782	        esac
14783	      fi
14784	    else
14785	      # FIXME: insert proper C++ library support
14786	      ld_shlibs_CXX=no
14787	    fi
14788	    ;;
14789        esac
14790        ;;
14791
14792      interix[3-9]*)
14793	hardcode_direct_CXX=no
14794	hardcode_shlibpath_var_CXX=no
14795	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14796	export_dynamic_flag_spec_CXX='$wl-E'
14797	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14798	# Instead, shared libraries are loaded at an image base (0x10000000 by
14799	# default) and relocated if they conflict, which is a slow very memory
14800	# consuming and fragmenting process.  To avoid this, we pick a random,
14801	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14802	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14803	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14804	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14805	;;
14806      irix5* | irix6*)
14807        case $cc_basename in
14808          CC*)
14809	    # SGI C++
14810	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14811
14812	    # Archives containing C++ object files must be created using
14813	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14814	    # necessary to make sure instantiated templates are included
14815	    # in the archive.
14816	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14817	    ;;
14818          *)
14819	    if test yes = "$GXX"; then
14820	      if test no = "$with_gnu_ld"; then
14821	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14822	      else
14823	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14824	      fi
14825	    fi
14826	    link_all_deplibs_CXX=yes
14827	    ;;
14828        esac
14829        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14830        hardcode_libdir_separator_CXX=:
14831        inherit_rpath_CXX=yes
14832        ;;
14833
14834      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14835        case $cc_basename in
14836          KCC*)
14837	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14838
14839	    # KCC will only create a shared library if the output file
14840	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14841	    # to its proper name (with version) after linking.
14842	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14843	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14844	    # Commands to make compiler produce verbose output that lists
14845	    # what "hidden" libraries, object files and flags are used when
14846	    # linking a shared library.
14847	    #
14848	    # There doesn't appear to be a way to prevent this compiler from
14849	    # explicitly linking system object files so we need to strip them
14850	    # from the output so that they don't get included in the library
14851	    # dependencies.
14852	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14853
14854	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14855	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14856
14857	    # Archives containing C++ object files must be created using
14858	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14859	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14860	    ;;
14861	  icpc* | ecpc* )
14862	    # Intel C++
14863	    with_gnu_ld=yes
14864	    # version 8.0 and above of icpc choke on multiply defined symbols
14865	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14866	    # earlier do not add the objects themselves.
14867	    case `$CC -V 2>&1` in
14868	      *"Version 7."*)
14869	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14870		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14871		;;
14872	      *)  # Version 8.0 or newer
14873	        tmp_idyn=
14874	        case $host_cpu in
14875		  ia64*) tmp_idyn=' -i_dynamic';;
14876		esac
14877	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14878		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14879		;;
14880	    esac
14881	    archive_cmds_need_lc_CXX=no
14882	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14883	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14884	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14885	    ;;
14886          pgCC* | pgcpp*)
14887            # Portland Group C++ compiler
14888	    case `$CC -V` in
14889	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14890	      prelink_cmds_CXX='tpldir=Template.dir~
14891               rm -rf $tpldir~
14892               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14893               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14894	      old_archive_cmds_CXX='tpldir=Template.dir~
14895                rm -rf $tpldir~
14896                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14897                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14898                $RANLIB $oldlib'
14899	      archive_cmds_CXX='tpldir=Template.dir~
14900                rm -rf $tpldir~
14901                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14902                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14903	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14904                rm -rf $tpldir~
14905                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14906                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14907	      ;;
14908	    *) # Version 6 and above use weak symbols
14909	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14910	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14911	      ;;
14912	    esac
14913
14914	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14915	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14916	    whole_archive_flag_spec_CXX='$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'
14917            ;;
14918	  cxx*)
14919	    # Compaq C++
14920	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14921	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
14922
14923	    runpath_var=LD_RUN_PATH
14924	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14925	    hardcode_libdir_separator_CXX=:
14926
14927	    # Commands to make compiler produce verbose output that lists
14928	    # what "hidden" libraries, object files and flags are used when
14929	    # linking a shared library.
14930	    #
14931	    # There doesn't appear to be a way to prevent this compiler from
14932	    # explicitly linking system object files so we need to strip them
14933	    # from the output so that they don't get included in the library
14934	    # dependencies.
14935	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14936	    ;;
14937	  xl* | mpixl* | bgxl*)
14938	    # IBM XL 8.0 on PPC, with GNU ld
14939	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14940	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14941	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14942	    if test yes = "$supports_anon_versioning"; then
14943	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14944                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14945                echo "local: *; };" >> $output_objdir/$libname.ver~
14946                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14947	    fi
14948	    ;;
14949	  *)
14950	    case `$CC -V 2>&1 | sed 5q` in
14951	    *Sun\ C*)
14952	      # Sun C++ 5.9
14953	      no_undefined_flag_CXX=' -zdefs'
14954	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14955	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
14956	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14957	      whole_archive_flag_spec_CXX='$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'
14958	      compiler_needs_object_CXX=yes
14959
14960	      # Not sure whether something based on
14961	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14962	      # would be better.
14963	      output_verbose_link_cmd='func_echo_all'
14964
14965	      # Archives containing C++ object files must be created using
14966	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14967	      # necessary to make sure instantiated templates are included
14968	      # in the archive.
14969	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14970	      ;;
14971	    esac
14972	    ;;
14973	esac
14974	;;
14975
14976      lynxos*)
14977        # FIXME: insert proper C++ library support
14978	ld_shlibs_CXX=no
14979	;;
14980
14981      m88k*)
14982        # FIXME: insert proper C++ library support
14983        ld_shlibs_CXX=no
14984	;;
14985
14986      mvs*)
14987        case $cc_basename in
14988          cxx*)
14989	    # FIXME: insert proper C++ library support
14990	    ld_shlibs_CXX=no
14991	    ;;
14992	  *)
14993	    # FIXME: insert proper C++ library support
14994	    ld_shlibs_CXX=no
14995	    ;;
14996	esac
14997	;;
14998
14999      netbsd*)
15000        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15001	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15002	  wlarc=
15003	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15004	  hardcode_direct_CXX=yes
15005	  hardcode_shlibpath_var_CXX=no
15006	fi
15007	# Workaround some broken pre-1.5 toolchains
15008	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15009	;;
15010
15011      *nto* | *qnx*)
15012        ld_shlibs_CXX=yes
15013	;;
15014
15015      openbsd* | bitrig*)
15016	if test -f /usr/libexec/ld.so; then
15017	  hardcode_direct_CXX=yes
15018	  hardcode_shlibpath_var_CXX=no
15019	  hardcode_direct_absolute_CXX=yes
15020	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15021	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15022	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15023	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15024	    export_dynamic_flag_spec_CXX='$wl-E'
15025	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15026	  fi
15027	  output_verbose_link_cmd=func_echo_all
15028	else
15029	  ld_shlibs_CXX=no
15030	fi
15031	;;
15032
15033      osf3* | osf4* | osf5*)
15034        case $cc_basename in
15035          KCC*)
15036	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15037
15038	    # KCC will only create a shared library if the output file
15039	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15040	    # to its proper name (with version) after linking.
15041	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15042
15043	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15044	    hardcode_libdir_separator_CXX=:
15045
15046	    # Archives containing C++ object files must be created using
15047	    # the KAI C++ compiler.
15048	    case $host in
15049	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15050	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15051	    esac
15052	    ;;
15053          RCC*)
15054	    # Rational C++ 2.4.1
15055	    # FIXME: insert proper C++ library support
15056	    ld_shlibs_CXX=no
15057	    ;;
15058          cxx*)
15059	    case $host in
15060	      osf3*)
15061	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15062	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15063	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15064		;;
15065	      *)
15066	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15067	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15068	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15069                  echo "-hidden">> $lib.exp~
15070                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15071                  $RM $lib.exp'
15072	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15073		;;
15074	    esac
15075
15076	    hardcode_libdir_separator_CXX=:
15077
15078	    # Commands to make compiler produce verbose output that lists
15079	    # what "hidden" libraries, object files and flags are used when
15080	    # linking a shared library.
15081	    #
15082	    # There doesn't appear to be a way to prevent this compiler from
15083	    # explicitly linking system object files so we need to strip them
15084	    # from the output so that they don't get included in the library
15085	    # dependencies.
15086	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15087	    ;;
15088	  *)
15089	    if test yes,no = "$GXX,$with_gnu_ld"; then
15090	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15091	      case $host in
15092	        osf3*)
15093	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15094		  ;;
15095	        *)
15096	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15097		  ;;
15098	      esac
15099
15100	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15101	      hardcode_libdir_separator_CXX=:
15102
15103	      # Commands to make compiler produce verbose output that lists
15104	      # what "hidden" libraries, object files and flags are used when
15105	      # linking a shared library.
15106	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15107
15108	    else
15109	      # FIXME: insert proper C++ library support
15110	      ld_shlibs_CXX=no
15111	    fi
15112	    ;;
15113        esac
15114        ;;
15115
15116      psos*)
15117        # FIXME: insert proper C++ library support
15118        ld_shlibs_CXX=no
15119        ;;
15120
15121      sunos4*)
15122        case $cc_basename in
15123          CC*)
15124	    # Sun C++ 4.x
15125	    # FIXME: insert proper C++ library support
15126	    ld_shlibs_CXX=no
15127	    ;;
15128          lcc*)
15129	    # Lucid
15130	    # FIXME: insert proper C++ library support
15131	    ld_shlibs_CXX=no
15132	    ;;
15133          *)
15134	    # FIXME: insert proper C++ library support
15135	    ld_shlibs_CXX=no
15136	    ;;
15137        esac
15138        ;;
15139
15140      solaris*)
15141        case $cc_basename in
15142          CC* | sunCC*)
15143	    # Sun C++ 4.2, 5.x and Centerline C++
15144            archive_cmds_need_lc_CXX=yes
15145	    no_undefined_flag_CXX=' -zdefs'
15146	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15147	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15148              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15149
15150	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15151	    hardcode_shlibpath_var_CXX=no
15152	    case $host_os in
15153	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15154	      *)
15155		# The compiler driver will combine and reorder linker options,
15156		# but understands '-z linker_flag'.
15157	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15158		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15159	        ;;
15160	    esac
15161	    link_all_deplibs_CXX=yes
15162
15163	    output_verbose_link_cmd='func_echo_all'
15164
15165	    # Archives containing C++ object files must be created using
15166	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15167	    # necessary to make sure instantiated templates are included
15168	    # in the archive.
15169	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15170	    ;;
15171          gcx*)
15172	    # Green Hills C++ Compiler
15173	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15174
15175	    # The C++ compiler must be used to create the archive.
15176	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15177	    ;;
15178          *)
15179	    # GNU C++ compiler with Solaris linker
15180	    if test yes,no = "$GXX,$with_gnu_ld"; then
15181	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15182	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15183	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15184	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15185                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15186
15187	        # Commands to make compiler produce verbose output that lists
15188	        # what "hidden" libraries, object files and flags are used when
15189	        # linking a shared library.
15190	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15191	      else
15192	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15193	        # platform.
15194	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15195	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15196                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15197
15198	        # Commands to make compiler produce verbose output that lists
15199	        # what "hidden" libraries, object files and flags are used when
15200	        # linking a shared library.
15201	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15202	      fi
15203
15204	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15205	      case $host_os in
15206		solaris2.[0-5] | solaris2.[0-5].*) ;;
15207		*)
15208		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15209		  ;;
15210	      esac
15211	    fi
15212	    ;;
15213        esac
15214        ;;
15215
15216    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15217      no_undefined_flag_CXX='$wl-z,text'
15218      archive_cmds_need_lc_CXX=no
15219      hardcode_shlibpath_var_CXX=no
15220      runpath_var='LD_RUN_PATH'
15221
15222      case $cc_basename in
15223        CC*)
15224	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15225	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15226	  ;;
15227	*)
15228	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15229	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15230	  ;;
15231      esac
15232      ;;
15233
15234      sysv5* | sco3.2v5* | sco5v6*)
15235	# Note: We CANNOT use -z defs as we might desire, because we do not
15236	# link with -lc, and that would cause any symbols used from libc to
15237	# always be unresolved, which means just about no library would
15238	# ever link correctly.  If we're not using GNU ld we use -z text
15239	# though, which does catch some bad symbols but isn't as heavy-handed
15240	# as -z defs.
15241	no_undefined_flag_CXX='$wl-z,text'
15242	allow_undefined_flag_CXX='$wl-z,nodefs'
15243	archive_cmds_need_lc_CXX=no
15244	hardcode_shlibpath_var_CXX=no
15245	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15246	hardcode_libdir_separator_CXX=':'
15247	link_all_deplibs_CXX=yes
15248	export_dynamic_flag_spec_CXX='$wl-Bexport'
15249	runpath_var='LD_RUN_PATH'
15250
15251	case $cc_basename in
15252          CC*)
15253	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15254	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15255	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15256              '"$old_archive_cmds_CXX"
15257	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15258              '"$reload_cmds_CXX"
15259	    ;;
15260	  *)
15261	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15262	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15263	    ;;
15264	esac
15265      ;;
15266
15267      tandem*)
15268        case $cc_basename in
15269          NCC*)
15270	    # NonStop-UX NCC 3.20
15271	    # FIXME: insert proper C++ library support
15272	    ld_shlibs_CXX=no
15273	    ;;
15274          *)
15275	    # FIXME: insert proper C++ library support
15276	    ld_shlibs_CXX=no
15277	    ;;
15278        esac
15279        ;;
15280
15281      vxworks*)
15282        # FIXME: insert proper C++ library support
15283        ld_shlibs_CXX=no
15284        ;;
15285
15286      *)
15287        # FIXME: insert proper C++ library support
15288        ld_shlibs_CXX=no
15289        ;;
15290    esac
15291
15292    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15293$as_echo "$ld_shlibs_CXX" >&6; }
15294    test no = "$ld_shlibs_CXX" && can_build_shared=no
15295
15296    GCC_CXX=$GXX
15297    LD_CXX=$LD
15298
15299    ## CAVEAT EMPTOR:
15300    ## There is no encapsulation within the following macros, do not change
15301    ## the running order or otherwise move them around unless you know exactly
15302    ## what you are doing...
15303    # Dependencies to place before and after the object being linked:
15304predep_objects_CXX=
15305postdep_objects_CXX=
15306predeps_CXX=
15307postdeps_CXX=
15308compiler_lib_search_path_CXX=
15309
15310cat > conftest.$ac_ext <<_LT_EOF
15311class Foo
15312{
15313public:
15314  Foo (void) { a = 0; }
15315private:
15316  int a;
15317};
15318_LT_EOF
15319
15320
15321_lt_libdeps_save_CFLAGS=$CFLAGS
15322case "$CC $CFLAGS " in #(
15323*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15324*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15325*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15326esac
15327
15328if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15329  (eval $ac_compile) 2>&5
15330  ac_status=$?
15331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15332  test $ac_status = 0; }; then
15333  # Parse the compiler output and extract the necessary
15334  # objects, libraries and library flags.
15335
15336  # Sentinel used to keep track of whether or not we are before
15337  # the conftest object file.
15338  pre_test_object_deps_done=no
15339
15340  for p in `eval "$output_verbose_link_cmd"`; do
15341    case $prev$p in
15342
15343    -L* | -R* | -l*)
15344       # Some compilers place space between "-{L,R}" and the path.
15345       # Remove the space.
15346       if test x-L = "$p" ||
15347          test x-R = "$p"; then
15348	 prev=$p
15349	 continue
15350       fi
15351
15352       # Expand the sysroot to ease extracting the directories later.
15353       if test -z "$prev"; then
15354         case $p in
15355         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15356         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15357         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15358         esac
15359       fi
15360       case $p in
15361       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15362       esac
15363       if test no = "$pre_test_object_deps_done"; then
15364	 case $prev in
15365	 -L | -R)
15366	   # Internal compiler library paths should come after those
15367	   # provided the user.  The postdeps already come after the
15368	   # user supplied libs so there is no need to process them.
15369	   if test -z "$compiler_lib_search_path_CXX"; then
15370	     compiler_lib_search_path_CXX=$prev$p
15371	   else
15372	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15373	   fi
15374	   ;;
15375	 # The "-l" case would never come before the object being
15376	 # linked, so don't bother handling this case.
15377	 esac
15378       else
15379	 if test -z "$postdeps_CXX"; then
15380	   postdeps_CXX=$prev$p
15381	 else
15382	   postdeps_CXX="${postdeps_CXX} $prev$p"
15383	 fi
15384       fi
15385       prev=
15386       ;;
15387
15388    *.lto.$objext) ;; # Ignore GCC LTO objects
15389    *.$objext)
15390       # This assumes that the test object file only shows up
15391       # once in the compiler output.
15392       if test "$p" = "conftest.$objext"; then
15393	 pre_test_object_deps_done=yes
15394	 continue
15395       fi
15396
15397       if test no = "$pre_test_object_deps_done"; then
15398	 if test -z "$predep_objects_CXX"; then
15399	   predep_objects_CXX=$p
15400	 else
15401	   predep_objects_CXX="$predep_objects_CXX $p"
15402	 fi
15403       else
15404	 if test -z "$postdep_objects_CXX"; then
15405	   postdep_objects_CXX=$p
15406	 else
15407	   postdep_objects_CXX="$postdep_objects_CXX $p"
15408	 fi
15409       fi
15410       ;;
15411
15412    *) ;; # Ignore the rest.
15413
15414    esac
15415  done
15416
15417  # Clean up.
15418  rm -f a.out a.exe
15419else
15420  echo "libtool.m4: error: problem compiling CXX test program"
15421fi
15422
15423$RM -f confest.$objext
15424CFLAGS=$_lt_libdeps_save_CFLAGS
15425
15426# PORTME: override above test on systems where it is broken
15427case $host_os in
15428interix[3-9]*)
15429  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15430  # hack all around it, let's just trust "g++" to DTRT.
15431  predep_objects_CXX=
15432  postdep_objects_CXX=
15433  postdeps_CXX=
15434  ;;
15435esac
15436
15437
15438case " $postdeps_CXX " in
15439*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15440esac
15441 compiler_lib_search_dirs_CXX=
15442if test -n "${compiler_lib_search_path_CXX}"; then
15443 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15444fi
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476    lt_prog_compiler_wl_CXX=
15477lt_prog_compiler_pic_CXX=
15478lt_prog_compiler_static_CXX=
15479
15480
15481  # C++ specific cases for pic, static, wl, etc.
15482  if test yes = "$GXX"; then
15483    lt_prog_compiler_wl_CXX='-Wl,'
15484    lt_prog_compiler_static_CXX='-static'
15485
15486    case $host_os in
15487    aix*)
15488      # All AIX code is PIC.
15489      if test ia64 = "$host_cpu"; then
15490	# AIX 5 now supports IA64 processor
15491	lt_prog_compiler_static_CXX='-Bstatic'
15492      fi
15493      lt_prog_compiler_pic_CXX='-fPIC'
15494      ;;
15495
15496    amigaos*)
15497      case $host_cpu in
15498      powerpc)
15499            # see comment about AmigaOS4 .so support
15500            lt_prog_compiler_pic_CXX='-fPIC'
15501        ;;
15502      m68k)
15503            # FIXME: we need at least 68020 code to build shared libraries, but
15504            # adding the '-m68020' flag to GCC prevents building anything better,
15505            # like '-m68040'.
15506            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15507        ;;
15508      esac
15509      ;;
15510
15511    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15512      # PIC is the default for these OSes.
15513      ;;
15514    mingw* | cygwin* | os2* | pw32* | cegcc*)
15515      # This hack is so that the source file can tell whether it is being
15516      # built for inclusion in a dll (and should export symbols for example).
15517      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15518      # (--disable-auto-import) libraries
15519      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15520      case $host_os in
15521      os2*)
15522	lt_prog_compiler_static_CXX='$wl-static'
15523	;;
15524      esac
15525      ;;
15526    darwin* | rhapsody*)
15527      # PIC is the default on this platform
15528      # Common symbols not allowed in MH_DYLIB files
15529      lt_prog_compiler_pic_CXX='-fno-common'
15530      ;;
15531    *djgpp*)
15532      # DJGPP does not support shared libraries at all
15533      lt_prog_compiler_pic_CXX=
15534      ;;
15535    haiku*)
15536      # PIC is the default for Haiku.
15537      # The "-static" flag exists, but is broken.
15538      lt_prog_compiler_static_CXX=
15539      ;;
15540    interix[3-9]*)
15541      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15542      # Instead, we relocate shared libraries at runtime.
15543      ;;
15544    sysv4*MP*)
15545      if test -d /usr/nec; then
15546	lt_prog_compiler_pic_CXX=-Kconform_pic
15547      fi
15548      ;;
15549    hpux*)
15550      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15551      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15552      # sets the default TLS model and affects inlining.
15553      case $host_cpu in
15554      hppa*64*)
15555	;;
15556      *)
15557	lt_prog_compiler_pic_CXX='-fPIC'
15558	;;
15559      esac
15560      ;;
15561    *qnx* | *nto*)
15562      # QNX uses GNU C++, but need to define -shared option too, otherwise
15563      # it will coredump.
15564      lt_prog_compiler_pic_CXX='-fPIC -shared'
15565      ;;
15566    *)
15567      lt_prog_compiler_pic_CXX='-fPIC'
15568      ;;
15569    esac
15570  else
15571    case $host_os in
15572      aix[4-9]*)
15573	# All AIX code is PIC.
15574	if test ia64 = "$host_cpu"; then
15575	  # AIX 5 now supports IA64 processor
15576	  lt_prog_compiler_static_CXX='-Bstatic'
15577	else
15578	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15579	fi
15580	;;
15581      chorus*)
15582	case $cc_basename in
15583	cxch68*)
15584	  # Green Hills C++ Compiler
15585	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15586	  ;;
15587	esac
15588	;;
15589      mingw* | cygwin* | os2* | pw32* | cegcc*)
15590	# This hack is so that the source file can tell whether it is being
15591	# built for inclusion in a dll (and should export symbols for example).
15592	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15593	;;
15594      dgux*)
15595	case $cc_basename in
15596	  ec++*)
15597	    lt_prog_compiler_pic_CXX='-KPIC'
15598	    ;;
15599	  ghcx*)
15600	    # Green Hills C++ Compiler
15601	    lt_prog_compiler_pic_CXX='-pic'
15602	    ;;
15603	  *)
15604	    ;;
15605	esac
15606	;;
15607      freebsd* | dragonfly*)
15608	# FreeBSD uses GNU C++
15609	;;
15610      hpux9* | hpux10* | hpux11*)
15611	case $cc_basename in
15612	  CC*)
15613	    lt_prog_compiler_wl_CXX='-Wl,'
15614	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15615	    if test ia64 != "$host_cpu"; then
15616	      lt_prog_compiler_pic_CXX='+Z'
15617	    fi
15618	    ;;
15619	  aCC*)
15620	    lt_prog_compiler_wl_CXX='-Wl,'
15621	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15622	    case $host_cpu in
15623	    hppa*64*|ia64*)
15624	      # +Z the default
15625	      ;;
15626	    *)
15627	      lt_prog_compiler_pic_CXX='+Z'
15628	      ;;
15629	    esac
15630	    ;;
15631	  *)
15632	    ;;
15633	esac
15634	;;
15635      interix*)
15636	# This is c89, which is MS Visual C++ (no shared libs)
15637	# Anyone wants to do a port?
15638	;;
15639      irix5* | irix6* | nonstopux*)
15640	case $cc_basename in
15641	  CC*)
15642	    lt_prog_compiler_wl_CXX='-Wl,'
15643	    lt_prog_compiler_static_CXX='-non_shared'
15644	    # CC pic flag -KPIC is the default.
15645	    ;;
15646	  *)
15647	    ;;
15648	esac
15649	;;
15650      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15651	case $cc_basename in
15652	  KCC*)
15653	    # KAI C++ Compiler
15654	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15655	    lt_prog_compiler_pic_CXX='-fPIC'
15656	    ;;
15657	  ecpc* )
15658	    # old Intel C++ for x86_64, which still supported -KPIC.
15659	    lt_prog_compiler_wl_CXX='-Wl,'
15660	    lt_prog_compiler_pic_CXX='-KPIC'
15661	    lt_prog_compiler_static_CXX='-static'
15662	    ;;
15663	  icpc* )
15664	    # Intel C++, used to be incompatible with GCC.
15665	    # ICC 10 doesn't accept -KPIC any more.
15666	    lt_prog_compiler_wl_CXX='-Wl,'
15667	    lt_prog_compiler_pic_CXX='-fPIC'
15668	    lt_prog_compiler_static_CXX='-static'
15669	    ;;
15670	  pgCC* | pgcpp*)
15671	    # Portland Group C++ compiler
15672	    lt_prog_compiler_wl_CXX='-Wl,'
15673	    lt_prog_compiler_pic_CXX='-fpic'
15674	    lt_prog_compiler_static_CXX='-Bstatic'
15675	    ;;
15676	  cxx*)
15677	    # Compaq C++
15678	    # Make sure the PIC flag is empty.  It appears that all Alpha
15679	    # Linux and Compaq Tru64 Unix objects are PIC.
15680	    lt_prog_compiler_pic_CXX=
15681	    lt_prog_compiler_static_CXX='-non_shared'
15682	    ;;
15683	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15684	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15685	    lt_prog_compiler_wl_CXX='-Wl,'
15686	    lt_prog_compiler_pic_CXX='-qpic'
15687	    lt_prog_compiler_static_CXX='-qstaticlink'
15688	    ;;
15689	  *)
15690	    case `$CC -V 2>&1 | sed 5q` in
15691	    *Sun\ C*)
15692	      # Sun C++ 5.9
15693	      lt_prog_compiler_pic_CXX='-KPIC'
15694	      lt_prog_compiler_static_CXX='-Bstatic'
15695	      lt_prog_compiler_wl_CXX='-Qoption ld '
15696	      ;;
15697	    esac
15698	    ;;
15699	esac
15700	;;
15701      lynxos*)
15702	;;
15703      m88k*)
15704	;;
15705      mvs*)
15706	case $cc_basename in
15707	  cxx*)
15708	    lt_prog_compiler_pic_CXX='-W c,exportall'
15709	    ;;
15710	  *)
15711	    ;;
15712	esac
15713	;;
15714      netbsd*)
15715	;;
15716      *qnx* | *nto*)
15717        # QNX uses GNU C++, but need to define -shared option too, otherwise
15718        # it will coredump.
15719        lt_prog_compiler_pic_CXX='-fPIC -shared'
15720        ;;
15721      osf3* | osf4* | osf5*)
15722	case $cc_basename in
15723	  KCC*)
15724	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15725	    ;;
15726	  RCC*)
15727	    # Rational C++ 2.4.1
15728	    lt_prog_compiler_pic_CXX='-pic'
15729	    ;;
15730	  cxx*)
15731	    # Digital/Compaq C++
15732	    lt_prog_compiler_wl_CXX='-Wl,'
15733	    # Make sure the PIC flag is empty.  It appears that all Alpha
15734	    # Linux and Compaq Tru64 Unix objects are PIC.
15735	    lt_prog_compiler_pic_CXX=
15736	    lt_prog_compiler_static_CXX='-non_shared'
15737	    ;;
15738	  *)
15739	    ;;
15740	esac
15741	;;
15742      psos*)
15743	;;
15744      solaris*)
15745	case $cc_basename in
15746	  CC* | sunCC*)
15747	    # Sun C++ 4.2, 5.x and Centerline C++
15748	    lt_prog_compiler_pic_CXX='-KPIC'
15749	    lt_prog_compiler_static_CXX='-Bstatic'
15750	    lt_prog_compiler_wl_CXX='-Qoption ld '
15751	    ;;
15752	  gcx*)
15753	    # Green Hills C++ Compiler
15754	    lt_prog_compiler_pic_CXX='-PIC'
15755	    ;;
15756	  *)
15757	    ;;
15758	esac
15759	;;
15760      sunos4*)
15761	case $cc_basename in
15762	  CC*)
15763	    # Sun C++ 4.x
15764	    lt_prog_compiler_pic_CXX='-pic'
15765	    lt_prog_compiler_static_CXX='-Bstatic'
15766	    ;;
15767	  lcc*)
15768	    # Lucid
15769	    lt_prog_compiler_pic_CXX='-pic'
15770	    ;;
15771	  *)
15772	    ;;
15773	esac
15774	;;
15775      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15776	case $cc_basename in
15777	  CC*)
15778	    lt_prog_compiler_wl_CXX='-Wl,'
15779	    lt_prog_compiler_pic_CXX='-KPIC'
15780	    lt_prog_compiler_static_CXX='-Bstatic'
15781	    ;;
15782	esac
15783	;;
15784      tandem*)
15785	case $cc_basename in
15786	  NCC*)
15787	    # NonStop-UX NCC 3.20
15788	    lt_prog_compiler_pic_CXX='-KPIC'
15789	    ;;
15790	  *)
15791	    ;;
15792	esac
15793	;;
15794      vxworks*)
15795	;;
15796      *)
15797	lt_prog_compiler_can_build_shared_CXX=no
15798	;;
15799    esac
15800  fi
15801
15802case $host_os in
15803  # For platforms that do not support PIC, -DPIC is meaningless:
15804  *djgpp*)
15805    lt_prog_compiler_pic_CXX=
15806    ;;
15807  *)
15808    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15809    ;;
15810esac
15811
15812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15813$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15814if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15815  $as_echo_n "(cached) " >&6
15816else
15817  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15818fi
15819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15820$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15821lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15822
15823#
15824# Check to make sure the PIC flag actually works.
15825#
15826if test -n "$lt_prog_compiler_pic_CXX"; then
15827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15828$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15829if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15830  $as_echo_n "(cached) " >&6
15831else
15832  lt_cv_prog_compiler_pic_works_CXX=no
15833   ac_outfile=conftest.$ac_objext
15834   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15835   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15836   # Insert the option either (1) after the last *FLAGS variable, or
15837   # (2) before a word containing "conftest.", or (3) at the end.
15838   # Note that $ac_compile itself does not contain backslashes and begins
15839   # with a dollar sign (not a hyphen), so the echo should work correctly.
15840   # The option is referenced via a variable to avoid confusing sed.
15841   lt_compile=`echo "$ac_compile" | $SED \
15842   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15843   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15844   -e 's:$: $lt_compiler_flag:'`
15845   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15846   (eval "$lt_compile" 2>conftest.err)
15847   ac_status=$?
15848   cat conftest.err >&5
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   if (exit $ac_status) && test -s "$ac_outfile"; then
15851     # The compiler can only warn and ignore the option if not recognized
15852     # So say no if there are warnings other than the usual output.
15853     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15854     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15855     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15856       lt_cv_prog_compiler_pic_works_CXX=yes
15857     fi
15858   fi
15859   $RM conftest*
15860
15861fi
15862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15863$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15864
15865if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15866    case $lt_prog_compiler_pic_CXX in
15867     "" | " "*) ;;
15868     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15869     esac
15870else
15871    lt_prog_compiler_pic_CXX=
15872     lt_prog_compiler_can_build_shared_CXX=no
15873fi
15874
15875fi
15876
15877
15878
15879
15880
15881#
15882# Check to make sure the static flag actually works.
15883#
15884wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15886$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15887if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15888  $as_echo_n "(cached) " >&6
15889else
15890  lt_cv_prog_compiler_static_works_CXX=no
15891   save_LDFLAGS=$LDFLAGS
15892   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15893   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15894   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15895     # The linker can only warn and ignore the option if not recognized
15896     # So say no if there are warnings
15897     if test -s conftest.err; then
15898       # Append any errors to the config.log.
15899       cat conftest.err 1>&5
15900       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15901       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15902       if diff conftest.exp conftest.er2 >/dev/null; then
15903         lt_cv_prog_compiler_static_works_CXX=yes
15904       fi
15905     else
15906       lt_cv_prog_compiler_static_works_CXX=yes
15907     fi
15908   fi
15909   $RM -r conftest*
15910   LDFLAGS=$save_LDFLAGS
15911
15912fi
15913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15914$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15915
15916if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15917    :
15918else
15919    lt_prog_compiler_static_CXX=
15920fi
15921
15922
15923
15924
15925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15926$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15927if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15928  $as_echo_n "(cached) " >&6
15929else
15930  lt_cv_prog_compiler_c_o_CXX=no
15931   $RM -r conftest 2>/dev/null
15932   mkdir conftest
15933   cd conftest
15934   mkdir out
15935   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15936
15937   lt_compiler_flag="-o out/conftest2.$ac_objext"
15938   # Insert the option either (1) after the last *FLAGS variable, or
15939   # (2) before a word containing "conftest.", or (3) at the end.
15940   # Note that $ac_compile itself does not contain backslashes and begins
15941   # with a dollar sign (not a hyphen), so the echo should work correctly.
15942   lt_compile=`echo "$ac_compile" | $SED \
15943   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15944   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15945   -e 's:$: $lt_compiler_flag:'`
15946   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15947   (eval "$lt_compile" 2>out/conftest.err)
15948   ac_status=$?
15949   cat out/conftest.err >&5
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15952   then
15953     # The compiler can only warn and ignore the option if not recognized
15954     # So say no if there are warnings
15955     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15956     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15957     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15958       lt_cv_prog_compiler_c_o_CXX=yes
15959     fi
15960   fi
15961   chmod u+w . 2>&5
15962   $RM conftest*
15963   # SGI C++ compiler will create directory out/ii_files/ for
15964   # template instantiation
15965   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15966   $RM out/* && rmdir out
15967   cd ..
15968   $RM -r conftest
15969   $RM conftest*
15970
15971fi
15972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15973$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15974
15975
15976
15977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15978$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15979if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15980  $as_echo_n "(cached) " >&6
15981else
15982  lt_cv_prog_compiler_c_o_CXX=no
15983   $RM -r conftest 2>/dev/null
15984   mkdir conftest
15985   cd conftest
15986   mkdir out
15987   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15988
15989   lt_compiler_flag="-o out/conftest2.$ac_objext"
15990   # Insert the option either (1) after the last *FLAGS variable, or
15991   # (2) before a word containing "conftest.", or (3) at the end.
15992   # Note that $ac_compile itself does not contain backslashes and begins
15993   # with a dollar sign (not a hyphen), so the echo should work correctly.
15994   lt_compile=`echo "$ac_compile" | $SED \
15995   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15996   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15997   -e 's:$: $lt_compiler_flag:'`
15998   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15999   (eval "$lt_compile" 2>out/conftest.err)
16000   ac_status=$?
16001   cat out/conftest.err >&5
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16004   then
16005     # The compiler can only warn and ignore the option if not recognized
16006     # So say no if there are warnings
16007     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16008     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16009     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16010       lt_cv_prog_compiler_c_o_CXX=yes
16011     fi
16012   fi
16013   chmod u+w . 2>&5
16014   $RM conftest*
16015   # SGI C++ compiler will create directory out/ii_files/ for
16016   # template instantiation
16017   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16018   $RM out/* && rmdir out
16019   cd ..
16020   $RM -r conftest
16021   $RM conftest*
16022
16023fi
16024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16025$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16026
16027
16028
16029
16030hard_links=nottested
16031if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16032  # do not overwrite the value of need_locks provided by the user
16033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16034$as_echo_n "checking if we can lock with hard links... " >&6; }
16035  hard_links=yes
16036  $RM conftest*
16037  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16038  touch conftest.a
16039  ln conftest.a conftest.b 2>&5 || hard_links=no
16040  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16042$as_echo "$hard_links" >&6; }
16043  if test no = "$hard_links"; then
16044    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16045$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16046    need_locks=warn
16047  fi
16048else
16049  need_locks=no
16050fi
16051
16052
16053
16054    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16055$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16056
16057  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16058  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16059  case $host_os in
16060  aix[4-9]*)
16061    # If we're using GNU nm, then we don't want the "-C" option.
16062    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16063    # Without the "-l" option, or with the "-B" option, AIX nm treats
16064    # weak defined symbols like other global defined symbols, whereas
16065    # GNU nm marks them as "W".
16066    # While the 'weak' keyword is ignored in the Export File, we need
16067    # it in the Import File for the 'aix-soname' feature, so we have
16068    # to replace the "-B" option with "-P" for AIX nm.
16069    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16070      export_symbols_cmds_CXX='$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'
16071    else
16072      export_symbols_cmds_CXX='`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'
16073    fi
16074    ;;
16075  pw32*)
16076    export_symbols_cmds_CXX=$ltdll_cmds
16077    ;;
16078  cygwin* | mingw* | cegcc*)
16079    case $cc_basename in
16080    cl*)
16081      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16082      ;;
16083    *)
16084      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16085      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16086      ;;
16087    esac
16088    ;;
16089  *)
16090    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16091    ;;
16092  esac
16093
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16095$as_echo "$ld_shlibs_CXX" >&6; }
16096test no = "$ld_shlibs_CXX" && can_build_shared=no
16097
16098with_gnu_ld_CXX=$with_gnu_ld
16099
16100
16101
16102
16103
16104
16105#
16106# Do we need to explicitly link libc?
16107#
16108case "x$archive_cmds_need_lc_CXX" in
16109x|xyes)
16110  # Assume -lc should be added
16111  archive_cmds_need_lc_CXX=yes
16112
16113  if test yes,yes = "$GCC,$enable_shared"; then
16114    case $archive_cmds_CXX in
16115    *'~'*)
16116      # FIXME: we may have to deal with multi-command sequences.
16117      ;;
16118    '$CC '*)
16119      # Test whether the compiler implicitly links with -lc since on some
16120      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16121      # to ld, don't add -lc before -lgcc.
16122      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16123$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16124if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16125  $as_echo_n "(cached) " >&6
16126else
16127  $RM conftest*
16128	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16129
16130	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16131  (eval $ac_compile) 2>&5
16132  ac_status=$?
16133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16134  test $ac_status = 0; } 2>conftest.err; then
16135	  soname=conftest
16136	  lib=conftest
16137	  libobjs=conftest.$ac_objext
16138	  deplibs=
16139	  wl=$lt_prog_compiler_wl_CXX
16140	  pic_flag=$lt_prog_compiler_pic_CXX
16141	  compiler_flags=-v
16142	  linker_flags=-v
16143	  verstring=
16144	  output_objdir=.
16145	  libname=conftest
16146	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16147	  allow_undefined_flag_CXX=
16148	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16149  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16150  ac_status=$?
16151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16152  test $ac_status = 0; }
16153	  then
16154	    lt_cv_archive_cmds_need_lc_CXX=no
16155	  else
16156	    lt_cv_archive_cmds_need_lc_CXX=yes
16157	  fi
16158	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16159	else
16160	  cat conftest.err 1>&5
16161	fi
16162	$RM conftest*
16163
16164fi
16165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16166$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16167      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16168      ;;
16169    esac
16170  fi
16171  ;;
16172esac
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16236$as_echo_n "checking dynamic linker characteristics... " >&6; }
16237
16238library_names_spec=
16239libname_spec='lib$name'
16240soname_spec=
16241shrext_cmds=.so
16242postinstall_cmds=
16243postuninstall_cmds=
16244finish_cmds=
16245finish_eval=
16246shlibpath_var=
16247shlibpath_overrides_runpath=unknown
16248version_type=none
16249dynamic_linker="$host_os ld.so"
16250sys_lib_dlsearch_path_spec="/lib /usr/lib"
16251need_lib_prefix=unknown
16252hardcode_into_libs=no
16253
16254# when you set need_version to no, make sure it does not cause -set_version
16255# flags to be left without arguments
16256need_version=unknown
16257
16258
16259
16260case $host_os in
16261aix3*)
16262  version_type=linux # correct to gnu/linux during the next big refactor
16263  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16264  shlibpath_var=LIBPATH
16265
16266  # AIX 3 has no versioning support, so we append a major version to the name.
16267  soname_spec='$libname$release$shared_ext$major'
16268  ;;
16269
16270aix[4-9]*)
16271  version_type=linux # correct to gnu/linux during the next big refactor
16272  need_lib_prefix=no
16273  need_version=no
16274  hardcode_into_libs=yes
16275  if test ia64 = "$host_cpu"; then
16276    # AIX 5 supports IA64
16277    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16278    shlibpath_var=LD_LIBRARY_PATH
16279  else
16280    # With GCC up to 2.95.x, collect2 would create an import file
16281    # for dependence libraries.  The import file would start with
16282    # the line '#! .'.  This would cause the generated library to
16283    # depend on '.', always an invalid library.  This was fixed in
16284    # development snapshots of GCC prior to 3.0.
16285    case $host_os in
16286      aix4 | aix4.[01] | aix4.[01].*)
16287      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16288	   echo ' yes '
16289	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16290	:
16291      else
16292	can_build_shared=no
16293      fi
16294      ;;
16295    esac
16296    # Using Import Files as archive members, it is possible to support
16297    # filename-based versioning of shared library archives on AIX. While
16298    # this would work for both with and without runtime linking, it will
16299    # prevent static linking of such archives. So we do filename-based
16300    # shared library versioning with .so extension only, which is used
16301    # when both runtime linking and shared linking is enabled.
16302    # Unfortunately, runtime linking may impact performance, so we do
16303    # not want this to be the default eventually. Also, we use the
16304    # versioned .so libs for executables only if there is the -brtl
16305    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16306    # To allow for filename-based versioning support, we need to create
16307    # libNAME.so.V as an archive file, containing:
16308    # *) an Import File, referring to the versioned filename of the
16309    #    archive as well as the shared archive member, telling the
16310    #    bitwidth (32 or 64) of that shared object, and providing the
16311    #    list of exported symbols of that shared object, eventually
16312    #    decorated with the 'weak' keyword
16313    # *) the shared object with the F_LOADONLY flag set, to really avoid
16314    #    it being seen by the linker.
16315    # At run time we better use the real file rather than another symlink,
16316    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16317
16318    case $with_aix_soname,$aix_use_runtimelinking in
16319    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16320    # soname into executable. Probably we can add versioning support to
16321    # collect2, so additional links can be useful in future.
16322    aix,yes) # traditional libtool
16323      dynamic_linker='AIX unversionable lib.so'
16324      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16325      # instead of lib<name>.a to let people know that these are not
16326      # typical AIX shared libraries.
16327      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16328      ;;
16329    aix,no) # traditional AIX only
16330      dynamic_linker='AIX lib.a(lib.so.V)'
16331      # We preserve .a as extension for shared libraries through AIX4.2
16332      # and later when we are not doing run time linking.
16333      library_names_spec='$libname$release.a $libname.a'
16334      soname_spec='$libname$release$shared_ext$major'
16335      ;;
16336    svr4,*) # full svr4 only
16337      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16338      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16339      # We do not specify a path in Import Files, so LIBPATH fires.
16340      shlibpath_overrides_runpath=yes
16341      ;;
16342    *,yes) # both, prefer svr4
16343      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16344      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16345      # unpreferred sharedlib libNAME.a needs extra handling
16346      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"'
16347      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"'
16348      # We do not specify a path in Import Files, so LIBPATH fires.
16349      shlibpath_overrides_runpath=yes
16350      ;;
16351    *,no) # both, prefer aix
16352      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16353      library_names_spec='$libname$release.a $libname.a'
16354      soname_spec='$libname$release$shared_ext$major'
16355      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16356      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)'
16357      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"'
16358      ;;
16359    esac
16360    shlibpath_var=LIBPATH
16361  fi
16362  ;;
16363
16364amigaos*)
16365  case $host_cpu in
16366  powerpc)
16367    # Since July 2007 AmigaOS4 officially supports .so libraries.
16368    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16369    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16370    ;;
16371  m68k)
16372    library_names_spec='$libname.ixlibrary $libname.a'
16373    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16374    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'
16375    ;;
16376  esac
16377  ;;
16378
16379beos*)
16380  library_names_spec='$libname$shared_ext'
16381  dynamic_linker="$host_os ld.so"
16382  shlibpath_var=LIBRARY_PATH
16383  ;;
16384
16385bsdi[45]*)
16386  version_type=linux # correct to gnu/linux during the next big refactor
16387  need_version=no
16388  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16389  soname_spec='$libname$release$shared_ext$major'
16390  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16391  shlibpath_var=LD_LIBRARY_PATH
16392  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16393  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16394  # the default ld.so.conf also contains /usr/contrib/lib and
16395  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16396  # libtool to hard-code these into programs
16397  ;;
16398
16399cygwin* | mingw* | pw32* | cegcc*)
16400  version_type=windows
16401  shrext_cmds=.dll
16402  need_version=no
16403  need_lib_prefix=no
16404
16405  case $GCC,$cc_basename in
16406  yes,*)
16407    # gcc
16408    library_names_spec='$libname.dll.a'
16409    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16410    postinstall_cmds='base_file=`basename \$file`~
16411      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16412      dldir=$destdir/`dirname \$dlpath`~
16413      test -d \$dldir || mkdir -p \$dldir~
16414      $install_prog $dir/$dlname \$dldir/$dlname~
16415      chmod a+x \$dldir/$dlname~
16416      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16417        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16418      fi'
16419    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16420      dlpath=$dir/\$dldll~
16421       $RM \$dlpath'
16422    shlibpath_overrides_runpath=yes
16423
16424    case $host_os in
16425    cygwin*)
16426      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16427      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16428
16429      ;;
16430    mingw* | cegcc*)
16431      # MinGW DLLs use traditional 'lib' prefix
16432      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16433      ;;
16434    pw32*)
16435      # pw32 DLLs use 'pw' prefix rather than 'lib'
16436      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16437      ;;
16438    esac
16439    dynamic_linker='Win32 ld.exe'
16440    ;;
16441
16442  *,cl*)
16443    # Native MSVC
16444    libname_spec='$name'
16445    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16446    library_names_spec='$libname.dll.lib'
16447
16448    case $build_os in
16449    mingw*)
16450      sys_lib_search_path_spec=
16451      lt_save_ifs=$IFS
16452      IFS=';'
16453      for lt_path in $LIB
16454      do
16455        IFS=$lt_save_ifs
16456        # Let DOS variable expansion print the short 8.3 style file name.
16457        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16458        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16459      done
16460      IFS=$lt_save_ifs
16461      # Convert to MSYS style.
16462      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16463      ;;
16464    cygwin*)
16465      # Convert to unix form, then to dos form, then back to unix form
16466      # but this time dos style (no spaces!) so that the unix form looks
16467      # like /cygdrive/c/PROGRA~1:/cygdr...
16468      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16469      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16470      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16471      ;;
16472    *)
16473      sys_lib_search_path_spec=$LIB
16474      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16475        # It is most probably a Windows format PATH.
16476        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16477      else
16478        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16479      fi
16480      # FIXME: find the short name or the path components, as spaces are
16481      # common. (e.g. "Program Files" -> "PROGRA~1")
16482      ;;
16483    esac
16484
16485    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16486    postinstall_cmds='base_file=`basename \$file`~
16487      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16488      dldir=$destdir/`dirname \$dlpath`~
16489      test -d \$dldir || mkdir -p \$dldir~
16490      $install_prog $dir/$dlname \$dldir/$dlname'
16491    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16492      dlpath=$dir/\$dldll~
16493       $RM \$dlpath'
16494    shlibpath_overrides_runpath=yes
16495    dynamic_linker='Win32 link.exe'
16496    ;;
16497
16498  *)
16499    # Assume MSVC wrapper
16500    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16501    dynamic_linker='Win32 ld.exe'
16502    ;;
16503  esac
16504  # FIXME: first we should search . and the directory the executable is in
16505  shlibpath_var=PATH
16506  ;;
16507
16508darwin* | rhapsody*)
16509  dynamic_linker="$host_os dyld"
16510  version_type=darwin
16511  need_lib_prefix=no
16512  need_version=no
16513  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16514  soname_spec='$libname$release$major$shared_ext'
16515  shlibpath_overrides_runpath=yes
16516  shlibpath_var=DYLD_LIBRARY_PATH
16517  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16518
16519  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16520  ;;
16521
16522dgux*)
16523  version_type=linux # correct to gnu/linux during the next big refactor
16524  need_lib_prefix=no
16525  need_version=no
16526  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16527  soname_spec='$libname$release$shared_ext$major'
16528  shlibpath_var=LD_LIBRARY_PATH
16529  ;;
16530
16531freebsd* | dragonfly*)
16532  # DragonFly does not have aout.  When/if they implement a new
16533  # versioning mechanism, adjust this.
16534  if test -x /usr/bin/objformat; then
16535    objformat=`/usr/bin/objformat`
16536  else
16537    case $host_os in
16538    freebsd[23].*) objformat=aout ;;
16539    *) objformat=elf ;;
16540    esac
16541  fi
16542  version_type=freebsd-$objformat
16543  case $version_type in
16544    freebsd-elf*)
16545      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16546      soname_spec='$libname$release$shared_ext$major'
16547      need_version=no
16548      need_lib_prefix=no
16549      ;;
16550    freebsd-*)
16551      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16552      need_version=yes
16553      ;;
16554  esac
16555  shlibpath_var=LD_LIBRARY_PATH
16556  case $host_os in
16557  freebsd2.*)
16558    shlibpath_overrides_runpath=yes
16559    ;;
16560  freebsd3.[01]* | freebsdelf3.[01]*)
16561    shlibpath_overrides_runpath=yes
16562    hardcode_into_libs=yes
16563    ;;
16564  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16565  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16566    shlibpath_overrides_runpath=no
16567    hardcode_into_libs=yes
16568    ;;
16569  *) # from 4.6 on, and DragonFly
16570    shlibpath_overrides_runpath=yes
16571    hardcode_into_libs=yes
16572    ;;
16573  esac
16574  ;;
16575
16576haiku*)
16577  version_type=linux # correct to gnu/linux during the next big refactor
16578  need_lib_prefix=no
16579  need_version=no
16580  dynamic_linker="$host_os runtime_loader"
16581  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16582  soname_spec='$libname$release$shared_ext$major'
16583  shlibpath_var=LIBRARY_PATH
16584  shlibpath_overrides_runpath=no
16585  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16586  hardcode_into_libs=yes
16587  ;;
16588
16589hpux9* | hpux10* | hpux11*)
16590  # Give a soname corresponding to the major version so that dld.sl refuses to
16591  # link against other versions.
16592  version_type=sunos
16593  need_lib_prefix=no
16594  need_version=no
16595  case $host_cpu in
16596  ia64*)
16597    shrext_cmds='.so'
16598    hardcode_into_libs=yes
16599    dynamic_linker="$host_os dld.so"
16600    shlibpath_var=LD_LIBRARY_PATH
16601    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16602    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16603    soname_spec='$libname$release$shared_ext$major'
16604    if test 32 = "$HPUX_IA64_MODE"; then
16605      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16606      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16607    else
16608      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16609      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16610    fi
16611    ;;
16612  hppa*64*)
16613    shrext_cmds='.sl'
16614    hardcode_into_libs=yes
16615    dynamic_linker="$host_os dld.sl"
16616    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16617    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16618    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16619    soname_spec='$libname$release$shared_ext$major'
16620    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16621    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16622    ;;
16623  *)
16624    shrext_cmds='.sl'
16625    dynamic_linker="$host_os dld.sl"
16626    shlibpath_var=SHLIB_PATH
16627    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16628    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16629    soname_spec='$libname$release$shared_ext$major'
16630    ;;
16631  esac
16632  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16633  postinstall_cmds='chmod 555 $lib'
16634  # or fails outright, so override atomically:
16635  install_override_mode=555
16636  ;;
16637
16638interix[3-9]*)
16639  version_type=linux # correct to gnu/linux during the next big refactor
16640  need_lib_prefix=no
16641  need_version=no
16642  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16643  soname_spec='$libname$release$shared_ext$major'
16644  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16645  shlibpath_var=LD_LIBRARY_PATH
16646  shlibpath_overrides_runpath=no
16647  hardcode_into_libs=yes
16648  ;;
16649
16650irix5* | irix6* | nonstopux*)
16651  case $host_os in
16652    nonstopux*) version_type=nonstopux ;;
16653    *)
16654	if test yes = "$lt_cv_prog_gnu_ld"; then
16655		version_type=linux # correct to gnu/linux during the next big refactor
16656	else
16657		version_type=irix
16658	fi ;;
16659  esac
16660  need_lib_prefix=no
16661  need_version=no
16662  soname_spec='$libname$release$shared_ext$major'
16663  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16664  case $host_os in
16665  irix5* | nonstopux*)
16666    libsuff= shlibsuff=
16667    ;;
16668  *)
16669    case $LD in # libtool.m4 will add one of these switches to LD
16670    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16671      libsuff= shlibsuff= libmagic=32-bit;;
16672    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16673      libsuff=32 shlibsuff=N32 libmagic=N32;;
16674    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16675      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16676    *) libsuff= shlibsuff= libmagic=never-match;;
16677    esac
16678    ;;
16679  esac
16680  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16681  shlibpath_overrides_runpath=no
16682  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16683  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16684  hardcode_into_libs=yes
16685  ;;
16686
16687# No shared lib support for Linux oldld, aout, or coff.
16688linux*oldld* | linux*aout* | linux*coff*)
16689  dynamic_linker=no
16690  ;;
16691
16692linux*android*)
16693  version_type=none # Android doesn't support versioned libraries.
16694  need_lib_prefix=no
16695  need_version=no
16696  library_names_spec='$libname$release$shared_ext'
16697  soname_spec='$libname$release$shared_ext'
16698  finish_cmds=
16699  shlibpath_var=LD_LIBRARY_PATH
16700  shlibpath_overrides_runpath=yes
16701
16702  # This implies no fast_install, which is unacceptable.
16703  # Some rework will be needed to allow for fast_install
16704  # before this can be enabled.
16705  hardcode_into_libs=yes
16706
16707  dynamic_linker='Android linker'
16708  # Don't embed -rpath directories since the linker doesn't support them.
16709  hardcode_libdir_flag_spec_CXX='-L$libdir'
16710  ;;
16711
16712# This must be glibc/ELF.
16713linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16714  version_type=linux # correct to gnu/linux during the next big refactor
16715  need_lib_prefix=no
16716  need_version=no
16717  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16718  soname_spec='$libname$release$shared_ext$major'
16719  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16720  shlibpath_var=LD_LIBRARY_PATH
16721  shlibpath_overrides_runpath=no
16722
16723  # Some binutils ld are patched to set DT_RUNPATH
16724  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16725  $as_echo_n "(cached) " >&6
16726else
16727  lt_cv_shlibpath_overrides_runpath=no
16728    save_LDFLAGS=$LDFLAGS
16729    save_libdir=$libdir
16730    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16731	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16732    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16733/* end confdefs.h.  */
16734
16735int
16736main ()
16737{
16738
16739  ;
16740  return 0;
16741}
16742_ACEOF
16743if ac_fn_cxx_try_link "$LINENO"; then :
16744  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16745  lt_cv_shlibpath_overrides_runpath=yes
16746fi
16747fi
16748rm -f core conftest.err conftest.$ac_objext \
16749    conftest$ac_exeext conftest.$ac_ext
16750    LDFLAGS=$save_LDFLAGS
16751    libdir=$save_libdir
16752
16753fi
16754
16755  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16756
16757  # This implies no fast_install, which is unacceptable.
16758  # Some rework will be needed to allow for fast_install
16759  # before this can be enabled.
16760  hardcode_into_libs=yes
16761
16762  # Add ABI-specific directories to the system library path.
16763  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16764
16765  # Ideally, we could use ldconfig to report *all* directores which are
16766  # searched for libraries, however this is still not possible.  Aside from not
16767  # being certain /sbin/ldconfig is available, command
16768  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16769  # even though it is searched at run-time.  Try to do the best guess by
16770  # appending ld.so.conf contents (and includes) to the search path.
16771  if test -f /etc/ld.so.conf; then
16772    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' ' '`
16773    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16774  fi
16775
16776  # We used to test for /lib/ld.so.1 and disable shared libraries on
16777  # powerpc, because MkLinux only supported shared libraries with the
16778  # GNU dynamic linker.  Since this was broken with cross compilers,
16779  # most powerpc-linux boxes support dynamic linking these days and
16780  # people can always --disable-shared, the test was removed, and we
16781  # assume the GNU/Linux dynamic linker is in use.
16782  dynamic_linker='GNU/Linux ld.so'
16783  ;;
16784
16785netbsd*)
16786  version_type=sunos
16787  need_lib_prefix=no
16788  need_version=no
16789  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16790    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16791    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16792    dynamic_linker='NetBSD (a.out) ld.so'
16793  else
16794    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16795    soname_spec='$libname$release$shared_ext$major'
16796    dynamic_linker='NetBSD ld.elf_so'
16797  fi
16798  shlibpath_var=LD_LIBRARY_PATH
16799  shlibpath_overrides_runpath=yes
16800  hardcode_into_libs=yes
16801  ;;
16802
16803newsos6)
16804  version_type=linux # correct to gnu/linux during the next big refactor
16805  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16806  shlibpath_var=LD_LIBRARY_PATH
16807  shlibpath_overrides_runpath=yes
16808  ;;
16809
16810*nto* | *qnx*)
16811  version_type=qnx
16812  need_lib_prefix=no
16813  need_version=no
16814  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16815  soname_spec='$libname$release$shared_ext$major'
16816  shlibpath_var=LD_LIBRARY_PATH
16817  shlibpath_overrides_runpath=no
16818  hardcode_into_libs=yes
16819  dynamic_linker='ldqnx.so'
16820  ;;
16821
16822openbsd* | bitrig*)
16823  version_type=sunos
16824  sys_lib_dlsearch_path_spec=/usr/lib
16825  need_lib_prefix=no
16826  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16827    need_version=no
16828  else
16829    need_version=yes
16830  fi
16831  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16832  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16833  shlibpath_var=LD_LIBRARY_PATH
16834  shlibpath_overrides_runpath=yes
16835  ;;
16836
16837os2*)
16838  libname_spec='$name'
16839  version_type=windows
16840  shrext_cmds=.dll
16841  need_version=no
16842  need_lib_prefix=no
16843  # OS/2 can only load a DLL with a base name of 8 characters or less.
16844  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16845    v=$($ECHO $release$versuffix | tr -d .-);
16846    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16847    $ECHO $n$v`$shared_ext'
16848  library_names_spec='${libname}_dll.$libext'
16849  dynamic_linker='OS/2 ld.exe'
16850  shlibpath_var=BEGINLIBPATH
16851  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16852  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16853  postinstall_cmds='base_file=`basename \$file`~
16854    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16855    dldir=$destdir/`dirname \$dlpath`~
16856    test -d \$dldir || mkdir -p \$dldir~
16857    $install_prog $dir/$dlname \$dldir/$dlname~
16858    chmod a+x \$dldir/$dlname~
16859    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16860      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16861    fi'
16862  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16863    dlpath=$dir/\$dldll~
16864    $RM \$dlpath'
16865  ;;
16866
16867osf3* | osf4* | osf5*)
16868  version_type=osf
16869  need_lib_prefix=no
16870  need_version=no
16871  soname_spec='$libname$release$shared_ext$major'
16872  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16873  shlibpath_var=LD_LIBRARY_PATH
16874  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16875  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16876  ;;
16877
16878rdos*)
16879  dynamic_linker=no
16880  ;;
16881
16882solaris*)
16883  version_type=linux # correct to gnu/linux during the next big refactor
16884  need_lib_prefix=no
16885  need_version=no
16886  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16887  soname_spec='$libname$release$shared_ext$major'
16888  shlibpath_var=LD_LIBRARY_PATH
16889  shlibpath_overrides_runpath=yes
16890  hardcode_into_libs=yes
16891  # ldd complains unless libraries are executable
16892  postinstall_cmds='chmod +x $lib'
16893  ;;
16894
16895sunos4*)
16896  version_type=sunos
16897  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16898  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16899  shlibpath_var=LD_LIBRARY_PATH
16900  shlibpath_overrides_runpath=yes
16901  if test yes = "$with_gnu_ld"; then
16902    need_lib_prefix=no
16903  fi
16904  need_version=yes
16905  ;;
16906
16907sysv4 | sysv4.3*)
16908  version_type=linux # correct to gnu/linux during the next big refactor
16909  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16910  soname_spec='$libname$release$shared_ext$major'
16911  shlibpath_var=LD_LIBRARY_PATH
16912  case $host_vendor in
16913    sni)
16914      shlibpath_overrides_runpath=no
16915      need_lib_prefix=no
16916      runpath_var=LD_RUN_PATH
16917      ;;
16918    siemens)
16919      need_lib_prefix=no
16920      ;;
16921    motorola)
16922      need_lib_prefix=no
16923      need_version=no
16924      shlibpath_overrides_runpath=no
16925      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16926      ;;
16927  esac
16928  ;;
16929
16930sysv4*MP*)
16931  if test -d /usr/nec; then
16932    version_type=linux # correct to gnu/linux during the next big refactor
16933    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16934    soname_spec='$libname$shared_ext.$major'
16935    shlibpath_var=LD_LIBRARY_PATH
16936  fi
16937  ;;
16938
16939sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16940  version_type=sco
16941  need_lib_prefix=no
16942  need_version=no
16943  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16944  soname_spec='$libname$release$shared_ext$major'
16945  shlibpath_var=LD_LIBRARY_PATH
16946  shlibpath_overrides_runpath=yes
16947  hardcode_into_libs=yes
16948  if test yes = "$with_gnu_ld"; then
16949    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16950  else
16951    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16952    case $host_os in
16953      sco3.2v5*)
16954        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16955	;;
16956    esac
16957  fi
16958  sys_lib_dlsearch_path_spec='/usr/lib'
16959  ;;
16960
16961tpf*)
16962  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16963  version_type=linux # correct to gnu/linux during the next big refactor
16964  need_lib_prefix=no
16965  need_version=no
16966  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16967  shlibpath_var=LD_LIBRARY_PATH
16968  shlibpath_overrides_runpath=no
16969  hardcode_into_libs=yes
16970  ;;
16971
16972uts4*)
16973  version_type=linux # correct to gnu/linux during the next big refactor
16974  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16975  soname_spec='$libname$release$shared_ext$major'
16976  shlibpath_var=LD_LIBRARY_PATH
16977  ;;
16978
16979*)
16980  dynamic_linker=no
16981  ;;
16982esac
16983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16984$as_echo "$dynamic_linker" >&6; }
16985test no = "$dynamic_linker" && can_build_shared=no
16986
16987variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16988if test yes = "$GCC"; then
16989  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16990fi
16991
16992if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16993  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16994fi
16995
16996if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16997  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16998fi
16999
17000# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17001configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17002
17003# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17004func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17005
17006# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17007configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17049$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17050hardcode_action_CXX=
17051if test -n "$hardcode_libdir_flag_spec_CXX" ||
17052   test -n "$runpath_var_CXX" ||
17053   test yes = "$hardcode_automatic_CXX"; then
17054
17055  # We can hardcode non-existent directories.
17056  if test no != "$hardcode_direct_CXX" &&
17057     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17058     # have to relink, otherwise we might link with an installed library
17059     # when we should be linking with a yet-to-be-installed one
17060     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17061     test no != "$hardcode_minus_L_CXX"; then
17062    # Linking always hardcodes the temporary library directory.
17063    hardcode_action_CXX=relink
17064  else
17065    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17066    hardcode_action_CXX=immediate
17067  fi
17068else
17069  # We cannot hardcode anything, or else we can only hardcode existing
17070  # directories.
17071  hardcode_action_CXX=unsupported
17072fi
17073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17074$as_echo "$hardcode_action_CXX" >&6; }
17075
17076if test relink = "$hardcode_action_CXX" ||
17077   test yes = "$inherit_rpath_CXX"; then
17078  # Fast installation is not supported
17079  enable_fast_install=no
17080elif test yes = "$shlibpath_overrides_runpath" ||
17081     test no = "$enable_shared"; then
17082  # Fast installation is not necessary
17083  enable_fast_install=needless
17084fi
17085
17086
17087
17088
17089
17090
17091
17092  fi # test -n "$compiler"
17093
17094  CC=$lt_save_CC
17095  CFLAGS=$lt_save_CFLAGS
17096  LDCXX=$LD
17097  LD=$lt_save_LD
17098  GCC=$lt_save_GCC
17099  with_gnu_ld=$lt_save_with_gnu_ld
17100  lt_cv_path_LDCXX=$lt_cv_path_LD
17101  lt_cv_path_LD=$lt_save_path_LD
17102  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17103  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17104fi # test yes != "$_lt_caught_CXX_error"
17105
17106ac_ext=c
17107ac_cpp='$CPP $CPPFLAGS'
17108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17110ac_compiler_gnu=$ac_cv_c_compiler_gnu
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126        ac_config_commands="$ac_config_commands libtool"
17127
17128
17129
17130
17131# Only expand once:
17132
17133
17134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
17135$as_echo_n "checking for a sed that does not truncate output... " >&6; }
17136if ${ac_cv_path_SED+:} false; then :
17137  $as_echo_n "(cached) " >&6
17138else
17139            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
17140     for ac_i in 1 2 3 4 5 6 7; do
17141       ac_script="$ac_script$as_nl$ac_script"
17142     done
17143     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
17144     { ac_script=; unset ac_script;}
17145     if test -z "$SED"; then
17146  ac_path_SED_found=false
17147  # Loop through the user's path and test for each of PROGNAME-LIST
17148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17149for as_dir in $PATH
17150do
17151  IFS=$as_save_IFS
17152  test -z "$as_dir" && as_dir=.
17153    for ac_prog in sed gsed; do
17154    for ac_exec_ext in '' $ac_executable_extensions; do
17155      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
17156      as_fn_executable_p "$ac_path_SED" || continue
17157# Check for GNU ac_path_SED and select it if it is found.
17158  # Check for GNU $ac_path_SED
17159case `"$ac_path_SED" --version 2>&1` in
17160*GNU*)
17161  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
17162*)
17163  ac_count=0
17164  $as_echo_n 0123456789 >"conftest.in"
17165  while :
17166  do
17167    cat "conftest.in" "conftest.in" >"conftest.tmp"
17168    mv "conftest.tmp" "conftest.in"
17169    cp "conftest.in" "conftest.nl"
17170    $as_echo '' >> "conftest.nl"
17171    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
17172    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17173    as_fn_arith $ac_count + 1 && ac_count=$as_val
17174    if test $ac_count -gt ${ac_path_SED_max-0}; then
17175      # Best one so far, save it but keep looking for a better one
17176      ac_cv_path_SED="$ac_path_SED"
17177      ac_path_SED_max=$ac_count
17178    fi
17179    # 10*(2^10) chars as input seems more than enough
17180    test $ac_count -gt 10 && break
17181  done
17182  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17183esac
17184
17185      $ac_path_SED_found && break 3
17186    done
17187  done
17188  done
17189IFS=$as_save_IFS
17190  if test -z "$ac_cv_path_SED"; then
17191    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
17192  fi
17193else
17194  ac_cv_path_SED=$SED
17195fi
17196
17197fi
17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
17199$as_echo "$ac_cv_path_SED" >&6; }
17200 SED="$ac_cv_path_SED"
17201  rm -f conftest.sed
17202
17203
17204# check ibus
17205
17206
17207
17208
17209
17210
17211
17212if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17213	if test -n "$ac_tool_prefix"; then
17214  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17215set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17217$as_echo_n "checking for $ac_word... " >&6; }
17218if ${ac_cv_path_PKG_CONFIG+:} false; then :
17219  $as_echo_n "(cached) " >&6
17220else
17221  case $PKG_CONFIG in
17222  [\\/]* | ?:[\\/]*)
17223  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17224  ;;
17225  *)
17226  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17227for as_dir in $PATH
17228do
17229  IFS=$as_save_IFS
17230  test -z "$as_dir" && as_dir=.
17231    for ac_exec_ext in '' $ac_executable_extensions; do
17232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17233    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17235    break 2
17236  fi
17237done
17238  done
17239IFS=$as_save_IFS
17240
17241  ;;
17242esac
17243fi
17244PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17245if test -n "$PKG_CONFIG"; then
17246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17247$as_echo "$PKG_CONFIG" >&6; }
17248else
17249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17250$as_echo "no" >&6; }
17251fi
17252
17253
17254fi
17255if test -z "$ac_cv_path_PKG_CONFIG"; then
17256  ac_pt_PKG_CONFIG=$PKG_CONFIG
17257  # Extract the first word of "pkg-config", so it can be a program name with args.
17258set dummy pkg-config; ac_word=$2
17259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17260$as_echo_n "checking for $ac_word... " >&6; }
17261if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17262  $as_echo_n "(cached) " >&6
17263else
17264  case $ac_pt_PKG_CONFIG in
17265  [\\/]* | ?:[\\/]*)
17266  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17267  ;;
17268  *)
17269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17270for as_dir in $PATH
17271do
17272  IFS=$as_save_IFS
17273  test -z "$as_dir" && as_dir=.
17274    for ac_exec_ext in '' $ac_executable_extensions; do
17275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17276    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17278    break 2
17279  fi
17280done
17281  done
17282IFS=$as_save_IFS
17283
17284  ;;
17285esac
17286fi
17287ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17288if test -n "$ac_pt_PKG_CONFIG"; then
17289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17290$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17291else
17292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17293$as_echo "no" >&6; }
17294fi
17295
17296  if test "x$ac_pt_PKG_CONFIG" = x; then
17297    PKG_CONFIG=""
17298  else
17299    case $cross_compiling:$ac_tool_warned in
17300yes:)
17301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17303ac_tool_warned=yes ;;
17304esac
17305    PKG_CONFIG=$ac_pt_PKG_CONFIG
17306  fi
17307else
17308  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17309fi
17310
17311fi
17312if test -n "$PKG_CONFIG"; then
17313	_pkg_min_version=0.9.0
17314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17315$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17316	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17317		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17318$as_echo "yes" >&6; }
17319	else
17320		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17321$as_echo "no" >&6; }
17322		PKG_CONFIG=""
17323	fi
17324fi
17325
17326pkg_failed=no
17327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
17328$as_echo_n "checking for IBUS... " >&6; }
17329
17330if test -n "$IBUS_CFLAGS"; then
17331    pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
17332 elif test -n "$PKG_CONFIG"; then
17333    if test -n "$PKG_CONFIG" && \
17334    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17335    ibus-1.0 >= 1.5.11
17336\""; } >&5
17337  ($PKG_CONFIG --exists --print-errors "
17338    ibus-1.0 >= 1.5.11
17339") 2>&5
17340  ac_status=$?
17341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17342  test $ac_status = 0; }; then
17343  pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "
17344    ibus-1.0 >= 1.5.11
17345" 2>/dev/null`
17346		      test "x$?" != "x0" && pkg_failed=yes
17347else
17348  pkg_failed=yes
17349fi
17350 else
17351    pkg_failed=untried
17352fi
17353if test -n "$IBUS_LIBS"; then
17354    pkg_cv_IBUS_LIBS="$IBUS_LIBS"
17355 elif test -n "$PKG_CONFIG"; then
17356    if test -n "$PKG_CONFIG" && \
17357    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17358    ibus-1.0 >= 1.5.11
17359\""; } >&5
17360  ($PKG_CONFIG --exists --print-errors "
17361    ibus-1.0 >= 1.5.11
17362") 2>&5
17363  ac_status=$?
17364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17365  test $ac_status = 0; }; then
17366  pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "
17367    ibus-1.0 >= 1.5.11
17368" 2>/dev/null`
17369		      test "x$?" != "x0" && pkg_failed=yes
17370else
17371  pkg_failed=yes
17372fi
17373 else
17374    pkg_failed=untried
17375fi
17376
17377
17378
17379if test $pkg_failed = yes; then
17380   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17381$as_echo "no" >&6; }
17382
17383if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17384        _pkg_short_errors_supported=yes
17385else
17386        _pkg_short_errors_supported=no
17387fi
17388        if test $_pkg_short_errors_supported = yes; then
17389	        IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17390    ibus-1.0 >= 1.5.11
17391" 2>&1`
17392        else
17393	        IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17394    ibus-1.0 >= 1.5.11
17395" 2>&1`
17396        fi
17397	# Put the nasty error message in config.log where it belongs
17398	echo "$IBUS_PKG_ERRORS" >&5
17399
17400	as_fn_error $? "Package requirements (
17401    ibus-1.0 >= 1.5.11
17402) were not met:
17403
17404$IBUS_PKG_ERRORS
17405
17406Consider adjusting the PKG_CONFIG_PATH environment variable if you
17407installed software in a non-standard prefix.
17408
17409Alternatively, you may set the environment variables IBUS_CFLAGS
17410and IBUS_LIBS to avoid the need to call pkg-config.
17411See the pkg-config man page for more details." "$LINENO" 5
17412elif test $pkg_failed = untried; then
17413     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17414$as_echo "no" >&6; }
17415	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17417as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17418is in your PATH or set the PKG_CONFIG environment variable to the full
17419path to pkg-config.
17420
17421Alternatively, you may set the environment variables IBUS_CFLAGS
17422and IBUS_LIBS to avoid the need to call pkg-config.
17423See the pkg-config man page for more details.
17424
17425To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17426See \`config.log' for more details" "$LINENO" 5; }
17427else
17428	IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
17429	IBUS_LIBS=$pkg_cv_IBUS_LIBS
17430        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17431$as_echo "yes" >&6; }
17432
17433fi
17434
17435# check sqlite
17436
17437pkg_failed=no
17438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
17439$as_echo_n "checking for SQLITE... " >&6; }
17440
17441if test -n "$SQLITE_CFLAGS"; then
17442    pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
17443 elif test -n "$PKG_CONFIG"; then
17444    if test -n "$PKG_CONFIG" && \
17445    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17446    sqlite3
17447\""; } >&5
17448  ($PKG_CONFIG --exists --print-errors "
17449    sqlite3
17450") 2>&5
17451  ac_status=$?
17452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17453  test $ac_status = 0; }; then
17454  pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "
17455    sqlite3
17456" 2>/dev/null`
17457		      test "x$?" != "x0" && pkg_failed=yes
17458else
17459  pkg_failed=yes
17460fi
17461 else
17462    pkg_failed=untried
17463fi
17464if test -n "$SQLITE_LIBS"; then
17465    pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
17466 elif test -n "$PKG_CONFIG"; then
17467    if test -n "$PKG_CONFIG" && \
17468    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17469    sqlite3
17470\""; } >&5
17471  ($PKG_CONFIG --exists --print-errors "
17472    sqlite3
17473") 2>&5
17474  ac_status=$?
17475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17476  test $ac_status = 0; }; then
17477  pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "
17478    sqlite3
17479" 2>/dev/null`
17480		      test "x$?" != "x0" && pkg_failed=yes
17481else
17482  pkg_failed=yes
17483fi
17484 else
17485    pkg_failed=untried
17486fi
17487
17488
17489
17490if test $pkg_failed = yes; then
17491   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17492$as_echo "no" >&6; }
17493
17494if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17495        _pkg_short_errors_supported=yes
17496else
17497        _pkg_short_errors_supported=no
17498fi
17499        if test $_pkg_short_errors_supported = yes; then
17500	        SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17501    sqlite3
17502" 2>&1`
17503        else
17504	        SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17505    sqlite3
17506" 2>&1`
17507        fi
17508	# Put the nasty error message in config.log where it belongs
17509	echo "$SQLITE_PKG_ERRORS" >&5
17510
17511	as_fn_error $? "Package requirements (
17512    sqlite3
17513) were not met:
17514
17515$SQLITE_PKG_ERRORS
17516
17517Consider adjusting the PKG_CONFIG_PATH environment variable if you
17518installed software in a non-standard prefix.
17519
17520Alternatively, you may set the environment variables SQLITE_CFLAGS
17521and SQLITE_LIBS to avoid the need to call pkg-config.
17522See the pkg-config man page for more details." "$LINENO" 5
17523elif test $pkg_failed = untried; then
17524     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525$as_echo "no" >&6; }
17526	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17528as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17529is in your PATH or set the PKG_CONFIG environment variable to the full
17530path to pkg-config.
17531
17532Alternatively, you may set the environment variables SQLITE_CFLAGS
17533and SQLITE_LIBS to avoid the need to call pkg-config.
17534See the pkg-config man page for more details.
17535
17536To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17537See \`config.log' for more details" "$LINENO" 5; }
17538else
17539	SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
17540	SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
17541        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17542$as_echo "yes" >&6; }
17543
17544fi
17545
17546# Extract the first word of "sqlite3", so it can be a program name with args.
17547set dummy sqlite3; ac_word=$2
17548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17549$as_echo_n "checking for $ac_word... " >&6; }
17550if ${ac_cv_path_SQLITE3+:} false; then :
17551  $as_echo_n "(cached) " >&6
17552else
17553  case $SQLITE3 in
17554  [\\/]* | ?:[\\/]*)
17555  ac_cv_path_SQLITE3="$SQLITE3" # Let the user override the test with a path.
17556  ;;
17557  *)
17558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17559for as_dir in $PATH
17560do
17561  IFS=$as_save_IFS
17562  test -z "$as_dir" && as_dir=.
17563    for ac_exec_ext in '' $ac_executable_extensions; do
17564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17565    ac_cv_path_SQLITE3="$as_dir/$ac_word$ac_exec_ext"
17566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17567    break 2
17568  fi
17569done
17570  done
17571IFS=$as_save_IFS
17572
17573  ;;
17574esac
17575fi
17576SQLITE3=$ac_cv_path_SQLITE3
17577if test -n "$SQLITE3"; then
17578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE3" >&5
17579$as_echo "$SQLITE3" >&6; }
17580else
17581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17582$as_echo "no" >&6; }
17583fi
17584
17585
17586if test -z "$SQLITE3"; then
17587    as_fn_error $? "could not find sqlite3 tool." "$LINENO" 5
17588fi
17589
17590
17591pkg_failed=no
17592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPINYIN" >&5
17593$as_echo_n "checking for LIBPINYIN... " >&6; }
17594
17595if test -n "$LIBPINYIN_CFLAGS"; then
17596    pkg_cv_LIBPINYIN_CFLAGS="$LIBPINYIN_CFLAGS"
17597 elif test -n "$PKG_CONFIG"; then
17598    if test -n "$PKG_CONFIG" && \
17599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17600    libpinyin >= 2.2.1
17601\""; } >&5
17602  ($PKG_CONFIG --exists --print-errors "
17603    libpinyin >= 2.2.1
17604") 2>&5
17605  ac_status=$?
17606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17607  test $ac_status = 0; }; then
17608  pkg_cv_LIBPINYIN_CFLAGS=`$PKG_CONFIG --cflags "
17609    libpinyin >= 2.2.1
17610" 2>/dev/null`
17611		      test "x$?" != "x0" && pkg_failed=yes
17612else
17613  pkg_failed=yes
17614fi
17615 else
17616    pkg_failed=untried
17617fi
17618if test -n "$LIBPINYIN_LIBS"; then
17619    pkg_cv_LIBPINYIN_LIBS="$LIBPINYIN_LIBS"
17620 elif test -n "$PKG_CONFIG"; then
17621    if test -n "$PKG_CONFIG" && \
17622    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17623    libpinyin >= 2.2.1
17624\""; } >&5
17625  ($PKG_CONFIG --exists --print-errors "
17626    libpinyin >= 2.2.1
17627") 2>&5
17628  ac_status=$?
17629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17630  test $ac_status = 0; }; then
17631  pkg_cv_LIBPINYIN_LIBS=`$PKG_CONFIG --libs "
17632    libpinyin >= 2.2.1
17633" 2>/dev/null`
17634		      test "x$?" != "x0" && pkg_failed=yes
17635else
17636  pkg_failed=yes
17637fi
17638 else
17639    pkg_failed=untried
17640fi
17641
17642
17643
17644if test $pkg_failed = yes; then
17645   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17646$as_echo "no" >&6; }
17647
17648if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17649        _pkg_short_errors_supported=yes
17650else
17651        _pkg_short_errors_supported=no
17652fi
17653        if test $_pkg_short_errors_supported = yes; then
17654	        LIBPINYIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17655    libpinyin >= 2.2.1
17656" 2>&1`
17657        else
17658	        LIBPINYIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17659    libpinyin >= 2.2.1
17660" 2>&1`
17661        fi
17662	# Put the nasty error message in config.log where it belongs
17663	echo "$LIBPINYIN_PKG_ERRORS" >&5
17664
17665	as_fn_error $? "Package requirements (
17666    libpinyin >= 2.2.1
17667) were not met:
17668
17669$LIBPINYIN_PKG_ERRORS
17670
17671Consider adjusting the PKG_CONFIG_PATH environment variable if you
17672installed software in a non-standard prefix.
17673
17674Alternatively, you may set the environment variables LIBPINYIN_CFLAGS
17675and LIBPINYIN_LIBS to avoid the need to call pkg-config.
17676See the pkg-config man page for more details." "$LINENO" 5
17677elif test $pkg_failed = untried; then
17678     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17679$as_echo "no" >&6; }
17680	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17682as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17683is in your PATH or set the PKG_CONFIG environment variable to the full
17684path to pkg-config.
17685
17686Alternatively, you may set the environment variables LIBPINYIN_CFLAGS
17687and LIBPINYIN_LIBS to avoid the need to call pkg-config.
17688See the pkg-config man page for more details.
17689
17690To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17691See \`config.log' for more details" "$LINENO" 5; }
17692else
17693	LIBPINYIN_CFLAGS=$pkg_cv_LIBPINYIN_CFLAGS
17694	LIBPINYIN_LIBS=$pkg_cv_LIBPINYIN_LIBS
17695        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17696$as_echo "yes" >&6; }
17697	enable_libpinyin=yes
17698fi
17699
17700LIBPINYIN_DATADIR=`$PKG_CONFIG --variable=pkgdatadir libpinyin`
17701
17702
17703
17704# check if ibus_config_get_values, which is available in ibus-1.3.99+ (git master)
17705save_CFLAGS="$CFLAGS"
17706save_LIBS="$LIBS"
17707CFLAGS="$CFLAGS $IBUS_CFLAGS"
17708LIBS="$LIBS $IBUS_LIBS"
17709for ac_func in ibus_config_get_values
17710do :
17711  ac_fn_c_check_func "$LINENO" "ibus_config_get_values" "ac_cv_func_ibus_config_get_values"
17712if test "x$ac_cv_func_ibus_config_get_values" = xyes; then :
17713  cat >>confdefs.h <<_ACEOF
17714#define HAVE_IBUS_CONFIG_GET_VALUES 1
17715_ACEOF
17716
17717fi
17718done
17719
17720CFLAGS="$save_CFLAGS"
17721LIBS="$save_LIBS"
17722
17723
17724# check env
17725# Extract the first word of "env", so it can be a program name with args.
17726set dummy env; ac_word=$2
17727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17728$as_echo_n "checking for $ac_word... " >&6; }
17729if ${ac_cv_path_ENV+:} false; then :
17730  $as_echo_n "(cached) " >&6
17731else
17732  case $ENV in
17733  [\\/]* | ?:[\\/]*)
17734  ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
17735  ;;
17736  *)
17737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17738for as_dir in $PATH
17739do
17740  IFS=$as_save_IFS
17741  test -z "$as_dir" && as_dir=.
17742    for ac_exec_ext in '' $ac_executable_extensions; do
17743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17744    ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
17745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17746    break 2
17747  fi
17748done
17749  done
17750IFS=$as_save_IFS
17751
17752  ;;
17753esac
17754fi
17755ENV=$ac_cv_path_ENV
17756if test -n "$ENV"; then
17757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENV" >&5
17758$as_echo "$ENV" >&6; }
17759else
17760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17761$as_echo "no" >&6; }
17762fi
17763
17764
17765
17766
17767# check python
17768
17769# Check whether --with-python was given.
17770if test "${with_python+set}" = set; then :
17771  withval=$with_python; PYTHON=$with_python
17772fi
17773
17774
17775
17776
17777
17778
17779
17780        if test -n "$PYTHON"; then
17781      # If the user set $PYTHON, use it and don't search something else.
17782      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
17783$as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
17784      prog="import sys
17785# split strings by '.' and convert to numeric.  Append some zeros
17786# because we need at least 4 digits for the hex conversion.
17787# map returns an iterator in Python 3.0 and a list in 2.x
17788minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
17789minverhex = 0
17790# xrange is not present in Python 3.0 and range returns an iterator
17791for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17792sys.exit(sys.hexversion < minverhex)"
17793  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
17794   ($PYTHON -c "$prog") >&5 2>&5
17795   ac_status=$?
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); }; then :
17798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17799$as_echo "yes" >&6; }
17800else
17801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17802$as_echo "no" >&6; }
17803			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
17804fi
17805      am_display_PYTHON=$PYTHON
17806    else
17807      # Otherwise, try each interpreter until we find one that satisfies
17808      # VERSION.
17809      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
17810$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
17811if ${am_cv_pathless_PYTHON+:} false; then :
17812  $as_echo_n "(cached) " >&6
17813else
17814
17815	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
17816	  test "$am_cv_pathless_PYTHON" = none && break
17817	  prog="import sys
17818# split strings by '.' and convert to numeric.  Append some zeros
17819# because we need at least 4 digits for the hex conversion.
17820# map returns an iterator in Python 3.0 and a list in 2.x
17821minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
17822minverhex = 0
17823# xrange is not present in Python 3.0 and range returns an iterator
17824for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17825sys.exit(sys.hexversion < minverhex)"
17826  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
17827   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
17828   ac_status=$?
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); }; then :
17831  break
17832fi
17833	done
17834fi
17835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
17836$as_echo "$am_cv_pathless_PYTHON" >&6; }
17837      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
17838      if test "$am_cv_pathless_PYTHON" = none; then
17839	PYTHON=:
17840      else
17841        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
17842set dummy $am_cv_pathless_PYTHON; ac_word=$2
17843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17844$as_echo_n "checking for $ac_word... " >&6; }
17845if ${ac_cv_path_PYTHON+:} false; then :
17846  $as_echo_n "(cached) " >&6
17847else
17848  case $PYTHON in
17849  [\\/]* | ?:[\\/]*)
17850  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17851  ;;
17852  *)
17853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17854for as_dir in $PATH
17855do
17856  IFS=$as_save_IFS
17857  test -z "$as_dir" && as_dir=.
17858    for ac_exec_ext in '' $ac_executable_extensions; do
17859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17860    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17862    break 2
17863  fi
17864done
17865  done
17866IFS=$as_save_IFS
17867
17868  ;;
17869esac
17870fi
17871PYTHON=$ac_cv_path_PYTHON
17872if test -n "$PYTHON"; then
17873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17874$as_echo "$PYTHON" >&6; }
17875else
17876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17877$as_echo "no" >&6; }
17878fi
17879
17880
17881      fi
17882      am_display_PYTHON=$am_cv_pathless_PYTHON
17883    fi
17884
17885
17886  if test "$PYTHON" = :; then
17887      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
17888  else
17889
17890
17891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17892$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
17893if ${am_cv_python_version+:} false; then :
17894  $as_echo_n "(cached) " >&6
17895else
17896  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
17897fi
17898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17899$as_echo "$am_cv_python_version" >&6; }
17900  PYTHON_VERSION=$am_cv_python_version
17901
17902
17903
17904  PYTHON_PREFIX='${prefix}'
17905
17906  PYTHON_EXEC_PREFIX='${exec_prefix}'
17907
17908
17909
17910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17911$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
17912if ${am_cv_python_platform+:} false; then :
17913  $as_echo_n "(cached) " >&6
17914else
17915  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17916fi
17917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17918$as_echo "$am_cv_python_platform" >&6; }
17919  PYTHON_PLATFORM=$am_cv_python_platform
17920
17921
17922  # Just factor out some code duplication.
17923  am_python_setup_sysconfig="\
17924import sys
17925# Prefer sysconfig over distutils.sysconfig, for better compatibility
17926# with python 3.x.  See automake bug#10227.
17927try:
17928    import sysconfig
17929except ImportError:
17930    can_use_sysconfig = 0
17931else:
17932    can_use_sysconfig = 1
17933# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17934# <https://github.com/pypa/virtualenv/issues/118>
17935try:
17936    from platform import python_implementation
17937    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17938        can_use_sysconfig = 0
17939except ImportError:
17940    pass"
17941
17942
17943            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
17944$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
17945if ${am_cv_python_pythondir+:} false; then :
17946  $as_echo_n "(cached) " >&6
17947else
17948  if test "x$prefix" = xNONE
17949     then
17950       am_py_prefix=$ac_default_prefix
17951     else
17952       am_py_prefix=$prefix
17953     fi
17954     am_cv_python_pythondir=`$PYTHON -c "
17955$am_python_setup_sysconfig
17956if can_use_sysconfig:
17957    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
17958else:
17959    from distutils import sysconfig
17960    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17961sys.stdout.write(sitedir)"`
17962     case $am_cv_python_pythondir in
17963     $am_py_prefix*)
17964       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17965       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
17966       ;;
17967     *)
17968       case $am_py_prefix in
17969         /usr|/System*) ;;
17970         *)
17971	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
17972	  ;;
17973       esac
17974       ;;
17975     esac
17976
17977fi
17978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17979$as_echo "$am_cv_python_pythondir" >&6; }
17980  pythondir=$am_cv_python_pythondir
17981
17982
17983
17984  pkgpythondir=\${pythondir}/$PACKAGE
17985
17986
17987        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
17988$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
17989if ${am_cv_python_pyexecdir+:} false; then :
17990  $as_echo_n "(cached) " >&6
17991else
17992  if test "x$exec_prefix" = xNONE
17993     then
17994       am_py_exec_prefix=$am_py_prefix
17995     else
17996       am_py_exec_prefix=$exec_prefix
17997     fi
17998     am_cv_python_pyexecdir=`$PYTHON -c "
17999$am_python_setup_sysconfig
18000if can_use_sysconfig:
18001    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
18002else:
18003    from distutils import sysconfig
18004    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
18005sys.stdout.write(sitedir)"`
18006     case $am_cv_python_pyexecdir in
18007     $am_py_exec_prefix*)
18008       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
18009       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
18010       ;;
18011     *)
18012       case $am_py_exec_prefix in
18013         /usr|/System*) ;;
18014         *)
18015	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
18016	   ;;
18017       esac
18018       ;;
18019     esac
18020
18021fi
18022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
18023$as_echo "$am_cv_python_pyexecdir" >&6; }
18024  pyexecdir=$am_cv_python_pyexecdir
18025
18026
18027
18028  pkgpyexecdir=\${pyexecdir}/$PACKAGE
18029
18030
18031
18032  fi
18033
18034
18035
18036# check icon_prop_key in IBus.EngineDesc
18037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IBus.EngineDesc has get_icon_prop_key" >&5
18038$as_echo_n "checking if IBus.EngineDesc has get_icon_prop_key... " >&6; }
18039ICON_PROP_KEY_TEST="import gi
18040gi.require_version('IBus', '1.0')
18041from gi.repository import IBus
18042exit(not hasattr(IBus.EngineDesc, 'get_icon_prop_key'))
18043"
18044$PYTHON -c "$ICON_PROP_KEY_TEST"
18045if test $? -eq 0; then
18046    ICON_PROP_KEY_XML="<icon_prop_key>InputMode</icon_prop_key>"
18047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18048$as_echo "yes" >&6; }
18049else
18050    ICON_PROP_KEY_XML="<!-- <icon_prop_key>InputMode</icon_prop_key> -->"
18051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ibus 1.5.11 or later supports icon-prop-key in IBus.EngineDesc" >&5
18052$as_echo "ibus 1.5.11 or later supports icon-prop-key in IBus.EngineDesc" >&6; }
18053fi
18054
18055
18056# --enable-boost
18057# Check whether --enable-boost was given.
18058if test "${enable_boost+set}" = set; then :
18059  enableval=$enable_boost; enable_boost=$enableval
18060else
18061  enable_boost=no
18062
18063fi
18064
18065if test x"$enable_boost" = x"yes"; then
18066    # check boost
18067
18068echo "$as_me: this is boost.m4 serial 26" >&5
18069boost_save_IFS=$IFS
18070boost_version_req=1.39
18071IFS=.
18072set x $boost_version_req 0 0 0
18073IFS=$boost_save_IFS
18074shift
18075boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
18076boost_version_req_string=$1.$2.$3
18077
18078# Check whether --with-boost was given.
18079if test "${with_boost+set}" = set; then :
18080  withval=$with_boost;
18081fi
18082# If BOOST_ROOT is set and the user has not provided a value to
18083# --with-boost, then treat BOOST_ROOT as if it the user supplied it.
18084if test x"$BOOST_ROOT" != x; then
18085  if test x"$with_boost" = x; then
18086    { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
18087$as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
18088    with_boost=$BOOST_ROOT
18089  else
18090    { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
18091$as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
18092  fi
18093fi
18094DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
18095boost_save_CPPFLAGS=$CPPFLAGS
18096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
18097$as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
18098if ${boost_cv_inc_path+:} false; then :
18099  $as_echo_n "(cached) " >&6
18100else
18101  boost_cv_inc_path=no
18102ac_ext=cpp
18103ac_cpp='$CXXCPP $CPPFLAGS'
18104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18107    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108/* end confdefs.h.  */
18109#include <boost/version.hpp>
18110#if !defined BOOST_VERSION
18111# error BOOST_VERSION is not defined
18112#elif BOOST_VERSION < $boost_version_req
18113# error Boost headers version < $boost_version_req
18114#endif
18115
18116int
18117main ()
18118{
18119
18120  ;
18121  return 0;
18122}
18123_ACEOF
18124    # If the user provided a value to --with-boost, use it and only it.
18125    case $with_boost in #(
18126      ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
18127                 /usr/include C:/Boost/include;; #(
18128      *)      set x "$with_boost/include" "$with_boost";;
18129    esac
18130    shift
18131    for boost_dir
18132    do
18133    # Without --layout=system, Boost (or at least some versions) installs
18134    # itself in <prefix>/include/boost-<version>.  This inner loop helps to
18135    # find headers in such directories.
18136    #
18137    # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
18138    # order followed by ${boost_dir}.  The final '.' is a sentinel for
18139    # searching $boost_dir" itself.  Entries are whitespace separated.
18140    #
18141    # I didn't indent this loop on purpose (to avoid over-indented code)
18142    boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
18143        && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
18144        && echo .`
18145    for boost_inc in $boost_layout_system_search_list
18146    do
18147      if test x"$boost_inc" != x.; then
18148        boost_inc="$boost_dir/$boost_inc"
18149      else
18150        boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
18151      fi
18152      if test x"$boost_inc" != x; then
18153        # We are going to check whether the version of Boost installed
18154        # in $boost_inc is usable by running a compilation that
18155        # #includes it.  But if we pass a -I/some/path in which Boost
18156        # is not installed, the compiler will just skip this -I and
18157        # use other locations (either from CPPFLAGS, or from its list
18158        # of system include directories).  As a result we would use
18159        # header installed on the machine instead of the /some/path
18160        # specified by the user.  So in that precise case (trying
18161        # $boost_inc), make sure the version.hpp exists.
18162        #
18163        # Use test -e as there can be symlinks.
18164        test -e "$boost_inc/boost/version.hpp" || continue
18165        CPPFLAGS="$CPPFLAGS -I$boost_inc"
18166      fi
18167      if ac_fn_cxx_try_compile "$LINENO"; then :
18168  boost_cv_inc_path=yes
18169else
18170  boost_cv_version=no
18171fi
18172rm -f core conftest.err conftest.$ac_objext
18173      if test x"$boost_cv_inc_path" = xyes; then
18174        if test x"$boost_inc" != x; then
18175          boost_cv_inc_path=$boost_inc
18176        fi
18177        break 2
18178      fi
18179    done
18180    done
18181ac_ext=c
18182ac_cpp='$CPP $CPPFLAGS'
18183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18185ac_compiler_gnu=$ac_cv_c_compiler_gnu
18186
18187fi
18188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
18189$as_echo "$boost_cv_inc_path" >&6; }
18190    case $boost_cv_inc_path in #(
18191      no)
18192        boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
18193        as_fn_error $? "$boost_errmsg" "$LINENO" 5
18194
18195        ;;#(
18196      yes)
18197        BOOST_CPPFLAGS=
18198        ;;#(
18199      *)
18200        BOOST_CPPFLAGS="-I$boost_cv_inc_path"
18201        ;;
18202    esac
18203  if test x"$boost_cv_inc_path" != xno; then
18204
18205$as_echo "#define HAVE_BOOST 1" >>confdefs.h
18206
18207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
18208$as_echo_n "checking for Boost's header version... " >&6; }
18209if ${boost_cv_lib_version+:} false; then :
18210  $as_echo_n "(cached) " >&6
18211else
18212       ac_ext=cpp
18213ac_cpp='$CXXCPP $CPPFLAGS'
18214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18218/* end confdefs.h.  */
18219#include <boost/version.hpp>
18220boost-lib-version = BOOST_LIB_VERSION
18221_ACEOF
18222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18223  grep -v '#' |
18224  grep -v '^[[:space:]]*$' |
18225  tr -d '\r' |
18226  tr -s '\n' ' ' |
18227  $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
18228  boost_cv_lib_version=`cat conftest.i`
18229fi
18230rm -rf conftest*
18231ac_ext=c
18232ac_cpp='$CPP $CPPFLAGS'
18233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18235ac_compiler_gnu=$ac_cv_c_compiler_gnu
18236
18237fi
18238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
18239$as_echo "$boost_cv_lib_version" >&6; }
18240    # e.g. "134" for 1_34_1 or "135" for 1_35
18241    boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
18242    case $boost_major_version in #(
18243      '' | *[!0-9]*)
18244        as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
18245        ;;
18246    esac
18247fi
18248CPPFLAGS=$boost_save_CPPFLAGS
18249
18250    if test x"$boost_cv_inc_path" = xno; then
18251  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/bind.hpp" >&5
18252$as_echo "$as_me: Boost not available, not searching for boost/bind.hpp" >&6;}
18253else
18254ac_ext=cpp
18255ac_cpp='$CXXCPP $CPPFLAGS'
18256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18259boost_save_CPPFLAGS=$CPPFLAGS
18260CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18261ac_fn_cxx_check_header_mongrel "$LINENO" "boost/bind.hpp" "ac_cv_header_boost_bind_hpp" "$ac_includes_default"
18262if test "x$ac_cv_header_boost_bind_hpp" = xyes; then :
18263
18264$as_echo "#define HAVE_BOOST_BIND_HPP 1" >>confdefs.h
18265
18266else
18267  as_fn_error $? "cannot find boost/bind.hpp" "$LINENO" 5
18268fi
18269
18270
18271CPPFLAGS=$boost_save_CPPFLAGS
18272ac_ext=c
18273ac_cpp='$CPP $CPPFLAGS'
18274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18276ac_compiler_gnu=$ac_cv_c_compiler_gnu
18277fi
18278
18279    if test x"$boost_cv_inc_path" = xno; then
18280  { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/signals2.hpp" >&5
18281$as_echo "$as_me: Boost not available, not searching for boost/signals2.hpp" >&6;}
18282else
18283ac_ext=cpp
18284ac_cpp='$CXXCPP $CPPFLAGS'
18285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18288boost_save_CPPFLAGS=$CPPFLAGS
18289CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18290ac_fn_cxx_check_header_mongrel "$LINENO" "boost/signals2.hpp" "ac_cv_header_boost_signals2_hpp" "$ac_includes_default"
18291if test "x$ac_cv_header_boost_signals2_hpp" = xyes; then :
18292
18293$as_echo "#define HAVE_BOOST_SIGNALS2_HPP 1" >>confdefs.h
18294
18295else
18296  as_fn_error $? "cannot find boost/signals2.hpp" "$LINENO" 5
18297fi
18298
18299
18300CPPFLAGS=$boost_save_CPPFLAGS
18301ac_ext=c
18302ac_cpp='$CPP $CPPFLAGS'
18303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18305ac_compiler_gnu=$ac_cv_c_compiler_gnu
18306fi
18307
18308fi
18309 if test x"$enable_boost" = x"yes"; then
18310  HAVE_BOOST_TRUE=
18311  HAVE_BOOST_FALSE='#'
18312else
18313  HAVE_BOOST_TRUE='#'
18314  HAVE_BOOST_FALSE=
18315fi
18316
18317
18318# --enable-opencc
18319# Check whether --enable-opencc was given.
18320if test "${enable_opencc+set}" = set; then :
18321  enableval=$enable_opencc; enable_opencc=$enableval
18322else
18323  enable_opencc=no
18324
18325fi
18326
18327if test x"$enable_opencc" = x"yes"; then
18328    # check opencc
18329
18330pkg_failed=no
18331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENCC" >&5
18332$as_echo_n "checking for OPENCC... " >&6; }
18333
18334if test -n "$OPENCC_CFLAGS"; then
18335    pkg_cv_OPENCC_CFLAGS="$OPENCC_CFLAGS"
18336 elif test -n "$PKG_CONFIG"; then
18337    if test -n "$PKG_CONFIG" && \
18338    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencc >= 1.0.0\""; } >&5
18339  ($PKG_CONFIG --exists --print-errors "opencc >= 1.0.0") 2>&5
18340  ac_status=$?
18341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18342  test $ac_status = 0; }; then
18343  pkg_cv_OPENCC_CFLAGS=`$PKG_CONFIG --cflags "opencc >= 1.0.0" 2>/dev/null`
18344		      test "x$?" != "x0" && pkg_failed=yes
18345else
18346  pkg_failed=yes
18347fi
18348 else
18349    pkg_failed=untried
18350fi
18351if test -n "$OPENCC_LIBS"; then
18352    pkg_cv_OPENCC_LIBS="$OPENCC_LIBS"
18353 elif test -n "$PKG_CONFIG"; then
18354    if test -n "$PKG_CONFIG" && \
18355    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencc >= 1.0.0\""; } >&5
18356  ($PKG_CONFIG --exists --print-errors "opencc >= 1.0.0") 2>&5
18357  ac_status=$?
18358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18359  test $ac_status = 0; }; then
18360  pkg_cv_OPENCC_LIBS=`$PKG_CONFIG --libs "opencc >= 1.0.0" 2>/dev/null`
18361		      test "x$?" != "x0" && pkg_failed=yes
18362else
18363  pkg_failed=yes
18364fi
18365 else
18366    pkg_failed=untried
18367fi
18368
18369
18370
18371if test $pkg_failed = yes; then
18372   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18373$as_echo "no" >&6; }
18374
18375if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18376        _pkg_short_errors_supported=yes
18377else
18378        _pkg_short_errors_supported=no
18379fi
18380        if test $_pkg_short_errors_supported = yes; then
18381	        OPENCC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencc >= 1.0.0" 2>&1`
18382        else
18383	        OPENCC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencc >= 1.0.0" 2>&1`
18384        fi
18385	# Put the nasty error message in config.log where it belongs
18386	echo "$OPENCC_PKG_ERRORS" >&5
18387
18388	as_fn_error $? "Package requirements (opencc >= 1.0.0) were not met:
18389
18390$OPENCC_PKG_ERRORS
18391
18392Consider adjusting the PKG_CONFIG_PATH environment variable if you
18393installed software in a non-standard prefix.
18394
18395Alternatively, you may set the environment variables OPENCC_CFLAGS
18396and OPENCC_LIBS to avoid the need to call pkg-config.
18397See the pkg-config man page for more details." "$LINENO" 5
18398elif test $pkg_failed = untried; then
18399     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18400$as_echo "no" >&6; }
18401	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18403as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18404is in your PATH or set the PKG_CONFIG environment variable to the full
18405path to pkg-config.
18406
18407Alternatively, you may set the environment variables OPENCC_CFLAGS
18408and OPENCC_LIBS to avoid the need to call pkg-config.
18409See the pkg-config man page for more details.
18410
18411To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18412See \`config.log' for more details" "$LINENO" 5; }
18413else
18414	OPENCC_CFLAGS=$pkg_cv_OPENCC_CFLAGS
18415	OPENCC_LIBS=$pkg_cv_OPENCC_LIBS
18416        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18417$as_echo "yes" >&6; }
18418
18419
18420$as_echo "#define HAVE_OPENCC 1" >>confdefs.h
18421
18422
18423fi
18424fi
18425
18426# define GETTEXT_* variables
18427GETTEXT_PACKAGE=ibus-libpinyin
18428
18429
18430cat >>confdefs.h <<_ACEOF
18431#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
18432_ACEOF
18433
18434
18435
18436
18437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18438$as_echo_n "checking whether NLS is requested... " >&6; }
18439    # Check whether --enable-nls was given.
18440if test "${enable_nls+set}" = set; then :
18441  enableval=$enable_nls; USE_NLS=$enableval
18442else
18443  USE_NLS=yes
18444fi
18445
18446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18447$as_echo "$USE_NLS" >&6; }
18448
18449
18450
18451
18452      GETTEXT_MACRO_VERSION=0.19
18453
18454
18455
18456
18457# Prepare PATH_SEPARATOR.
18458# The user is always right.
18459if test "${PATH_SEPARATOR+set}" != set; then
18460  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18461  # contains only /bin. Note that ksh looks also at the FPATH variable,
18462  # so we have to set that as well for the test.
18463  PATH_SEPARATOR=:
18464  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18465    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18466           || PATH_SEPARATOR=';'
18467       }
18468fi
18469
18470# Find out how to test for executable files. Don't use a zero-byte file,
18471# as systems may use methods other than mode bits to determine executability.
18472cat >conf$$.file <<_ASEOF
18473#! /bin/sh
18474exit 0
18475_ASEOF
18476chmod +x conf$$.file
18477if test -x conf$$.file >/dev/null 2>&1; then
18478  ac_executable_p="test -x"
18479else
18480  ac_executable_p="test -f"
18481fi
18482rm -f conf$$.file
18483
18484# Extract the first word of "msgfmt", so it can be a program name with args.
18485set dummy msgfmt; ac_word=$2
18486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18487$as_echo_n "checking for $ac_word... " >&6; }
18488if ${ac_cv_path_MSGFMT+:} false; then :
18489  $as_echo_n "(cached) " >&6
18490else
18491  case "$MSGFMT" in
18492  [\\/]* | ?:[\\/]*)
18493    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18494    ;;
18495  *)
18496    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18497    for ac_dir in $PATH; do
18498      IFS="$ac_save_IFS"
18499      test -z "$ac_dir" && ac_dir=.
18500      for ac_exec_ext in '' $ac_executable_extensions; do
18501        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18502          echo "$as_me: trying $ac_dir/$ac_word..." >&5
18503          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
18504     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18505            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18506            break 2
18507          fi
18508        fi
18509      done
18510    done
18511    IFS="$ac_save_IFS"
18512  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18513    ;;
18514esac
18515fi
18516MSGFMT="$ac_cv_path_MSGFMT"
18517if test "$MSGFMT" != ":"; then
18518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18519$as_echo "$MSGFMT" >&6; }
18520else
18521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522$as_echo "no" >&6; }
18523fi
18524
18525  # Extract the first word of "gmsgfmt", so it can be a program name with args.
18526set dummy gmsgfmt; ac_word=$2
18527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18528$as_echo_n "checking for $ac_word... " >&6; }
18529if ${ac_cv_path_GMSGFMT+:} false; then :
18530  $as_echo_n "(cached) " >&6
18531else
18532  case $GMSGFMT in
18533  [\\/]* | ?:[\\/]*)
18534  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18535  ;;
18536  *)
18537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18538for as_dir in $PATH
18539do
18540  IFS=$as_save_IFS
18541  test -z "$as_dir" && as_dir=.
18542    for ac_exec_ext in '' $ac_executable_extensions; do
18543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18544    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18546    break 2
18547  fi
18548done
18549  done
18550IFS=$as_save_IFS
18551
18552  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18553  ;;
18554esac
18555fi
18556GMSGFMT=$ac_cv_path_GMSGFMT
18557if test -n "$GMSGFMT"; then
18558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18559$as_echo "$GMSGFMT" >&6; }
18560else
18561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18562$as_echo "no" >&6; }
18563fi
18564
18565
18566
18567    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18568    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
18569    *) MSGFMT_015=$MSGFMT ;;
18570  esac
18571
18572  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18573    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
18574    *) GMSGFMT_015=$GMSGFMT ;;
18575  esac
18576
18577
18578
18579# Prepare PATH_SEPARATOR.
18580# The user is always right.
18581if test "${PATH_SEPARATOR+set}" != set; then
18582  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18583  # contains only /bin. Note that ksh looks also at the FPATH variable,
18584  # so we have to set that as well for the test.
18585  PATH_SEPARATOR=:
18586  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18587    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18588           || PATH_SEPARATOR=';'
18589       }
18590fi
18591
18592# Find out how to test for executable files. Don't use a zero-byte file,
18593# as systems may use methods other than mode bits to determine executability.
18594cat >conf$$.file <<_ASEOF
18595#! /bin/sh
18596exit 0
18597_ASEOF
18598chmod +x conf$$.file
18599if test -x conf$$.file >/dev/null 2>&1; then
18600  ac_executable_p="test -x"
18601else
18602  ac_executable_p="test -f"
18603fi
18604rm -f conf$$.file
18605
18606# Extract the first word of "xgettext", so it can be a program name with args.
18607set dummy xgettext; ac_word=$2
18608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18609$as_echo_n "checking for $ac_word... " >&6; }
18610if ${ac_cv_path_XGETTEXT+:} false; then :
18611  $as_echo_n "(cached) " >&6
18612else
18613  case "$XGETTEXT" in
18614  [\\/]* | ?:[\\/]*)
18615    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18616    ;;
18617  *)
18618    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18619    for ac_dir in $PATH; do
18620      IFS="$ac_save_IFS"
18621      test -z "$ac_dir" && ac_dir=.
18622      for ac_exec_ext in '' $ac_executable_extensions; do
18623        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18624          echo "$as_me: trying $ac_dir/$ac_word..." >&5
18625          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
18626     (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
18627            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18628            break 2
18629          fi
18630        fi
18631      done
18632    done
18633    IFS="$ac_save_IFS"
18634  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18635    ;;
18636esac
18637fi
18638XGETTEXT="$ac_cv_path_XGETTEXT"
18639if test "$XGETTEXT" != ":"; then
18640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18641$as_echo "$XGETTEXT" >&6; }
18642else
18643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644$as_echo "no" >&6; }
18645fi
18646
18647    rm -f messages.po
18648
18649    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
18650    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
18651    *) XGETTEXT_015=$XGETTEXT ;;
18652  esac
18653
18654
18655
18656# Prepare PATH_SEPARATOR.
18657# The user is always right.
18658if test "${PATH_SEPARATOR+set}" != set; then
18659  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18660  # contains only /bin. Note that ksh looks also at the FPATH variable,
18661  # so we have to set that as well for the test.
18662  PATH_SEPARATOR=:
18663  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18664    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18665           || PATH_SEPARATOR=';'
18666       }
18667fi
18668
18669# Find out how to test for executable files. Don't use a zero-byte file,
18670# as systems may use methods other than mode bits to determine executability.
18671cat >conf$$.file <<_ASEOF
18672#! /bin/sh
18673exit 0
18674_ASEOF
18675chmod +x conf$$.file
18676if test -x conf$$.file >/dev/null 2>&1; then
18677  ac_executable_p="test -x"
18678else
18679  ac_executable_p="test -f"
18680fi
18681rm -f conf$$.file
18682
18683# Extract the first word of "msgmerge", so it can be a program name with args.
18684set dummy msgmerge; ac_word=$2
18685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18686$as_echo_n "checking for $ac_word... " >&6; }
18687if ${ac_cv_path_MSGMERGE+:} false; then :
18688  $as_echo_n "(cached) " >&6
18689else
18690  case "$MSGMERGE" in
18691  [\\/]* | ?:[\\/]*)
18692    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18693    ;;
18694  *)
18695    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18696    for ac_dir in $PATH; do
18697      IFS="$ac_save_IFS"
18698      test -z "$ac_dir" && ac_dir=.
18699      for ac_exec_ext in '' $ac_executable_extensions; do
18700        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18701          echo "$as_me: trying $ac_dir/$ac_word..." >&5
18702          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
18703            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18704            break 2
18705          fi
18706        fi
18707      done
18708    done
18709    IFS="$ac_save_IFS"
18710  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18711    ;;
18712esac
18713fi
18714MSGMERGE="$ac_cv_path_MSGMERGE"
18715if test "$MSGMERGE" != ":"; then
18716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18717$as_echo "$MSGMERGE" >&6; }
18718else
18719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18720$as_echo "no" >&6; }
18721fi
18722
18723
18724        test -n "$localedir" || localedir='${datadir}/locale'
18725
18726
18727    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
18728
18729
18730  ac_config_commands="$ac_config_commands po-directories"
18731
18732
18733
18734      if test "X$prefix" = "XNONE"; then
18735    acl_final_prefix="$ac_default_prefix"
18736  else
18737    acl_final_prefix="$prefix"
18738  fi
18739  if test "X$exec_prefix" = "XNONE"; then
18740    acl_final_exec_prefix='${prefix}'
18741  else
18742    acl_final_exec_prefix="$exec_prefix"
18743  fi
18744  acl_save_prefix="$prefix"
18745  prefix="$acl_final_prefix"
18746  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18747  prefix="$acl_save_prefix"
18748
18749
18750
18751# Check whether --with-gnu-ld was given.
18752if test "${with_gnu_ld+set}" = set; then :
18753  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18754else
18755  with_gnu_ld=no
18756fi
18757
18758# Prepare PATH_SEPARATOR.
18759# The user is always right.
18760if test "${PATH_SEPARATOR+set}" != set; then
18761  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18762  # contains only /bin. Note that ksh looks also at the FPATH variable,
18763  # so we have to set that as well for the test.
18764  PATH_SEPARATOR=:
18765  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18766    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18767           || PATH_SEPARATOR=';'
18768       }
18769fi
18770
18771ac_prog=ld
18772if test "$GCC" = yes; then
18773  # Check if gcc -print-prog-name=ld gives a path.
18774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18775$as_echo_n "checking for ld used by $CC... " >&6; }
18776  case $host in
18777  *-*-mingw*)
18778    # gcc leaves a trailing carriage return which upsets mingw
18779    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18780  *)
18781    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18782  esac
18783  case $ac_prog in
18784    # Accept absolute paths.
18785    [\\/]* | ?:[\\/]*)
18786      re_direlt='/[^/][^/]*/\.\./'
18787      # Canonicalize the pathname of ld
18788      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
18789      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
18790        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18791      done
18792      test -z "$LD" && LD="$ac_prog"
18793      ;;
18794  "")
18795    # If it fails, then pretend we aren't using GCC.
18796    ac_prog=ld
18797    ;;
18798  *)
18799    # If it is relative, then search for the first ld in PATH.
18800    with_gnu_ld=unknown
18801    ;;
18802  esac
18803elif test "$with_gnu_ld" = yes; then
18804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18805$as_echo_n "checking for GNU ld... " >&6; }
18806else
18807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18808$as_echo_n "checking for non-GNU ld... " >&6; }
18809fi
18810if ${acl_cv_path_LD+:} false; then :
18811  $as_echo_n "(cached) " >&6
18812else
18813  if test -z "$LD"; then
18814  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18815  for ac_dir in $PATH; do
18816    IFS="$acl_save_ifs"
18817    test -z "$ac_dir" && ac_dir=.
18818    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18819      acl_cv_path_LD="$ac_dir/$ac_prog"
18820      # Check to see if the program is GNU ld.  I'd rather use --version,
18821      # but apparently some variants of GNU ld only accept -v.
18822      # Break only if it was the GNU/non-GNU ld that we prefer.
18823      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18824      *GNU* | *'with BFD'*)
18825        test "$with_gnu_ld" != no && break
18826        ;;
18827      *)
18828        test "$with_gnu_ld" != yes && break
18829        ;;
18830      esac
18831    fi
18832  done
18833  IFS="$acl_save_ifs"
18834else
18835  acl_cv_path_LD="$LD" # Let the user override the test with a path.
18836fi
18837fi
18838
18839LD="$acl_cv_path_LD"
18840if test -n "$LD"; then
18841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18842$as_echo "$LD" >&6; }
18843else
18844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18845$as_echo "no" >&6; }
18846fi
18847test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18849$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18850if ${acl_cv_prog_gnu_ld+:} false; then :
18851  $as_echo_n "(cached) " >&6
18852else
18853  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18854case `$LD -v 2>&1 </dev/null` in
18855*GNU* | *'with BFD'*)
18856  acl_cv_prog_gnu_ld=yes
18857  ;;
18858*)
18859  acl_cv_prog_gnu_ld=no
18860  ;;
18861esac
18862fi
18863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18864$as_echo "$acl_cv_prog_gnu_ld" >&6; }
18865with_gnu_ld=$acl_cv_prog_gnu_ld
18866
18867
18868
18869
18870                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18871$as_echo_n "checking for shared library run path origin... " >&6; }
18872if ${acl_cv_rpath+:} false; then :
18873  $as_echo_n "(cached) " >&6
18874else
18875
18876    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18877    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18878    . ./conftest.sh
18879    rm -f ./conftest.sh
18880    acl_cv_rpath=done
18881
18882fi
18883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18884$as_echo "$acl_cv_rpath" >&6; }
18885  wl="$acl_cv_wl"
18886  acl_libext="$acl_cv_libext"
18887  acl_shlibext="$acl_cv_shlibext"
18888  acl_libname_spec="$acl_cv_libname_spec"
18889  acl_library_names_spec="$acl_cv_library_names_spec"
18890  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18891  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18892  acl_hardcode_direct="$acl_cv_hardcode_direct"
18893  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18894    # Check whether --enable-rpath was given.
18895if test "${enable_rpath+set}" = set; then :
18896  enableval=$enable_rpath; :
18897else
18898  enable_rpath=yes
18899fi
18900
18901
18902
18903
18904  acl_libdirstem=lib
18905  acl_libdirstem2=
18906  case "$host_os" in
18907    solaris*)
18908                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18909$as_echo_n "checking for 64-bit host... " >&6; }
18910if ${gl_cv_solaris_64bit+:} false; then :
18911  $as_echo_n "(cached) " >&6
18912else
18913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914/* end confdefs.h.  */
18915
18916#ifdef _LP64
18917sixtyfour bits
18918#endif
18919
18920_ACEOF
18921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18922  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
18923  gl_cv_solaris_64bit=yes
18924else
18925  gl_cv_solaris_64bit=no
18926fi
18927rm -f conftest*
18928
18929
18930fi
18931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18932$as_echo "$gl_cv_solaris_64bit" >&6; }
18933      if test $gl_cv_solaris_64bit = yes; then
18934        acl_libdirstem=lib/64
18935        case "$host_cpu" in
18936          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
18937          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18938        esac
18939      fi
18940      ;;
18941    *)
18942      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18943      if test -n "$searchpath"; then
18944        acl_save_IFS="${IFS= 	}"; IFS=":"
18945        for searchdir in $searchpath; do
18946          if test -d "$searchdir"; then
18947            case "$searchdir" in
18948              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18949              */../ | */.. )
18950                # Better ignore directories of this form. They are misleading.
18951                ;;
18952              *) searchdir=`cd "$searchdir" && pwd`
18953                 case "$searchdir" in
18954                   */lib64 ) acl_libdirstem=lib64 ;;
18955                 esac ;;
18956            esac
18957          fi
18958        done
18959        IFS="$acl_save_IFS"
18960      fi
18961      ;;
18962  esac
18963  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976    use_additional=yes
18977
18978  acl_save_prefix="$prefix"
18979  prefix="$acl_final_prefix"
18980  acl_save_exec_prefix="$exec_prefix"
18981  exec_prefix="$acl_final_exec_prefix"
18982
18983    eval additional_includedir=\"$includedir\"
18984    eval additional_libdir=\"$libdir\"
18985
18986  exec_prefix="$acl_save_exec_prefix"
18987  prefix="$acl_save_prefix"
18988
18989
18990# Check whether --with-libiconv-prefix was given.
18991if test "${with_libiconv_prefix+set}" = set; then :
18992  withval=$with_libiconv_prefix;
18993    if test "X$withval" = "Xno"; then
18994      use_additional=no
18995    else
18996      if test "X$withval" = "X"; then
18997
18998  acl_save_prefix="$prefix"
18999  prefix="$acl_final_prefix"
19000  acl_save_exec_prefix="$exec_prefix"
19001  exec_prefix="$acl_final_exec_prefix"
19002
19003          eval additional_includedir=\"$includedir\"
19004          eval additional_libdir=\"$libdir\"
19005
19006  exec_prefix="$acl_save_exec_prefix"
19007  prefix="$acl_save_prefix"
19008
19009      else
19010        additional_includedir="$withval/include"
19011        additional_libdir="$withval/$acl_libdirstem"
19012        if test "$acl_libdirstem2" != "$acl_libdirstem" \
19013           && ! test -d "$withval/$acl_libdirstem"; then
19014          additional_libdir="$withval/$acl_libdirstem2"
19015        fi
19016      fi
19017    fi
19018
19019fi
19020
19021      LIBICONV=
19022  LTLIBICONV=
19023  INCICONV=
19024  LIBICONV_PREFIX=
19025      HAVE_LIBICONV=
19026  rpathdirs=
19027  ltrpathdirs=
19028  names_already_handled=
19029  names_next_round='iconv '
19030  while test -n "$names_next_round"; do
19031    names_this_round="$names_next_round"
19032    names_next_round=
19033    for name in $names_this_round; do
19034      already_handled=
19035      for n in $names_already_handled; do
19036        if test "$n" = "$name"; then
19037          already_handled=yes
19038          break
19039        fi
19040      done
19041      if test -z "$already_handled"; then
19042        names_already_handled="$names_already_handled $name"
19043                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19044        eval value=\"\$HAVE_LIB$uppername\"
19045        if test -n "$value"; then
19046          if test "$value" = yes; then
19047            eval value=\"\$LIB$uppername\"
19048            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19049            eval value=\"\$LTLIB$uppername\"
19050            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19051          else
19052                                    :
19053          fi
19054        else
19055                              found_dir=
19056          found_la=
19057          found_so=
19058          found_a=
19059          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19060          if test -n "$acl_shlibext"; then
19061            shrext=".$acl_shlibext"             # typically: shrext=.so
19062          else
19063            shrext=
19064          fi
19065          if test $use_additional = yes; then
19066            dir="$additional_libdir"
19067                                    if test -n "$acl_shlibext"; then
19068              if test -f "$dir/$libname$shrext"; then
19069                found_dir="$dir"
19070                found_so="$dir/$libname$shrext"
19071              else
19072                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19073                  ver=`(cd "$dir" && \
19074                        for f in "$libname$shrext".*; do echo "$f"; done \
19075                        | sed -e "s,^$libname$shrext\\\\.,," \
19076                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19077                        | sed 1q ) 2>/dev/null`
19078                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19079                    found_dir="$dir"
19080                    found_so="$dir/$libname$shrext.$ver"
19081                  fi
19082                else
19083                  eval library_names=\"$acl_library_names_spec\"
19084                  for f in $library_names; do
19085                    if test -f "$dir/$f"; then
19086                      found_dir="$dir"
19087                      found_so="$dir/$f"
19088                      break
19089                    fi
19090                  done
19091                fi
19092              fi
19093            fi
19094                        if test "X$found_dir" = "X"; then
19095              if test -f "$dir/$libname.$acl_libext"; then
19096                found_dir="$dir"
19097                found_a="$dir/$libname.$acl_libext"
19098              fi
19099            fi
19100            if test "X$found_dir" != "X"; then
19101              if test -f "$dir/$libname.la"; then
19102                found_la="$dir/$libname.la"
19103              fi
19104            fi
19105          fi
19106          if test "X$found_dir" = "X"; then
19107            for x in $LDFLAGS $LTLIBICONV; do
19108
19109  acl_save_prefix="$prefix"
19110  prefix="$acl_final_prefix"
19111  acl_save_exec_prefix="$exec_prefix"
19112  exec_prefix="$acl_final_exec_prefix"
19113  eval x=\"$x\"
19114  exec_prefix="$acl_save_exec_prefix"
19115  prefix="$acl_save_prefix"
19116
19117              case "$x" in
19118                -L*)
19119                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19120                                    if test -n "$acl_shlibext"; then
19121                    if test -f "$dir/$libname$shrext"; then
19122                      found_dir="$dir"
19123                      found_so="$dir/$libname$shrext"
19124                    else
19125                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19126                        ver=`(cd "$dir" && \
19127                              for f in "$libname$shrext".*; do echo "$f"; done \
19128                              | sed -e "s,^$libname$shrext\\\\.,," \
19129                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19130                              | sed 1q ) 2>/dev/null`
19131                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19132                          found_dir="$dir"
19133                          found_so="$dir/$libname$shrext.$ver"
19134                        fi
19135                      else
19136                        eval library_names=\"$acl_library_names_spec\"
19137                        for f in $library_names; do
19138                          if test -f "$dir/$f"; then
19139                            found_dir="$dir"
19140                            found_so="$dir/$f"
19141                            break
19142                          fi
19143                        done
19144                      fi
19145                    fi
19146                  fi
19147                                    if test "X$found_dir" = "X"; then
19148                    if test -f "$dir/$libname.$acl_libext"; then
19149                      found_dir="$dir"
19150                      found_a="$dir/$libname.$acl_libext"
19151                    fi
19152                  fi
19153                  if test "X$found_dir" != "X"; then
19154                    if test -f "$dir/$libname.la"; then
19155                      found_la="$dir/$libname.la"
19156                    fi
19157                  fi
19158                  ;;
19159              esac
19160              if test "X$found_dir" != "X"; then
19161                break
19162              fi
19163            done
19164          fi
19165          if test "X$found_dir" != "X"; then
19166                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19167            if test "X$found_so" != "X"; then
19168                                                        if test "$enable_rpath" = no \
19169                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19170                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19171                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19172              else
19173                                                                                haveit=
19174                for x in $ltrpathdirs; do
19175                  if test "X$x" = "X$found_dir"; then
19176                    haveit=yes
19177                    break
19178                  fi
19179                done
19180                if test -z "$haveit"; then
19181                  ltrpathdirs="$ltrpathdirs $found_dir"
19182                fi
19183                                if test "$acl_hardcode_direct" = yes; then
19184                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19185                else
19186                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19187                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19188                                                            haveit=
19189                    for x in $rpathdirs; do
19190                      if test "X$x" = "X$found_dir"; then
19191                        haveit=yes
19192                        break
19193                      fi
19194                    done
19195                    if test -z "$haveit"; then
19196                      rpathdirs="$rpathdirs $found_dir"
19197                    fi
19198                  else
19199                                                                                haveit=
19200                    for x in $LDFLAGS $LIBICONV; do
19201
19202  acl_save_prefix="$prefix"
19203  prefix="$acl_final_prefix"
19204  acl_save_exec_prefix="$exec_prefix"
19205  exec_prefix="$acl_final_exec_prefix"
19206  eval x=\"$x\"
19207  exec_prefix="$acl_save_exec_prefix"
19208  prefix="$acl_save_prefix"
19209
19210                      if test "X$x" = "X-L$found_dir"; then
19211                        haveit=yes
19212                        break
19213                      fi
19214                    done
19215                    if test -z "$haveit"; then
19216                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19217                    fi
19218                    if test "$acl_hardcode_minus_L" != no; then
19219                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19220                    else
19221                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19222                    fi
19223                  fi
19224                fi
19225              fi
19226            else
19227              if test "X$found_a" != "X"; then
19228                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19229              else
19230                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19231              fi
19232            fi
19233                        additional_includedir=
19234            case "$found_dir" in
19235              */$acl_libdirstem | */$acl_libdirstem/)
19236                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19237                if test "$name" = 'iconv'; then
19238                  LIBICONV_PREFIX="$basedir"
19239                fi
19240                additional_includedir="$basedir/include"
19241                ;;
19242              */$acl_libdirstem2 | */$acl_libdirstem2/)
19243                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19244                if test "$name" = 'iconv'; then
19245                  LIBICONV_PREFIX="$basedir"
19246                fi
19247                additional_includedir="$basedir/include"
19248                ;;
19249            esac
19250            if test "X$additional_includedir" != "X"; then
19251                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19252                haveit=
19253                if test "X$additional_includedir" = "X/usr/local/include"; then
19254                  if test -n "$GCC"; then
19255                    case $host_os in
19256                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19257                    esac
19258                  fi
19259                fi
19260                if test -z "$haveit"; then
19261                  for x in $CPPFLAGS $INCICONV; do
19262
19263  acl_save_prefix="$prefix"
19264  prefix="$acl_final_prefix"
19265  acl_save_exec_prefix="$exec_prefix"
19266  exec_prefix="$acl_final_exec_prefix"
19267  eval x=\"$x\"
19268  exec_prefix="$acl_save_exec_prefix"
19269  prefix="$acl_save_prefix"
19270
19271                    if test "X$x" = "X-I$additional_includedir"; then
19272                      haveit=yes
19273                      break
19274                    fi
19275                  done
19276                  if test -z "$haveit"; then
19277                    if test -d "$additional_includedir"; then
19278                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19279                    fi
19280                  fi
19281                fi
19282              fi
19283            fi
19284                        if test -n "$found_la"; then
19285                                                        save_libdir="$libdir"
19286              case "$found_la" in
19287                */* | *\\*) . "$found_la" ;;
19288                *) . "./$found_la" ;;
19289              esac
19290              libdir="$save_libdir"
19291                            for dep in $dependency_libs; do
19292                case "$dep" in
19293                  -L*)
19294                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19295                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19296                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19297                      haveit=
19298                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19299                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19300                        if test -n "$GCC"; then
19301                          case $host_os in
19302                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19303                          esac
19304                        fi
19305                      fi
19306                      if test -z "$haveit"; then
19307                        haveit=
19308                        for x in $LDFLAGS $LIBICONV; do
19309
19310  acl_save_prefix="$prefix"
19311  prefix="$acl_final_prefix"
19312  acl_save_exec_prefix="$exec_prefix"
19313  exec_prefix="$acl_final_exec_prefix"
19314  eval x=\"$x\"
19315  exec_prefix="$acl_save_exec_prefix"
19316  prefix="$acl_save_prefix"
19317
19318                          if test "X$x" = "X-L$additional_libdir"; then
19319                            haveit=yes
19320                            break
19321                          fi
19322                        done
19323                        if test -z "$haveit"; then
19324                          if test -d "$additional_libdir"; then
19325                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19326                          fi
19327                        fi
19328                        haveit=
19329                        for x in $LDFLAGS $LTLIBICONV; do
19330
19331  acl_save_prefix="$prefix"
19332  prefix="$acl_final_prefix"
19333  acl_save_exec_prefix="$exec_prefix"
19334  exec_prefix="$acl_final_exec_prefix"
19335  eval x=\"$x\"
19336  exec_prefix="$acl_save_exec_prefix"
19337  prefix="$acl_save_prefix"
19338
19339                          if test "X$x" = "X-L$additional_libdir"; then
19340                            haveit=yes
19341                            break
19342                          fi
19343                        done
19344                        if test -z "$haveit"; then
19345                          if test -d "$additional_libdir"; then
19346                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19347                          fi
19348                        fi
19349                      fi
19350                    fi
19351                    ;;
19352                  -R*)
19353                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19354                    if test "$enable_rpath" != no; then
19355                                                                  haveit=
19356                      for x in $rpathdirs; do
19357                        if test "X$x" = "X$dir"; then
19358                          haveit=yes
19359                          break
19360                        fi
19361                      done
19362                      if test -z "$haveit"; then
19363                        rpathdirs="$rpathdirs $dir"
19364                      fi
19365                                                                  haveit=
19366                      for x in $ltrpathdirs; do
19367                        if test "X$x" = "X$dir"; then
19368                          haveit=yes
19369                          break
19370                        fi
19371                      done
19372                      if test -z "$haveit"; then
19373                        ltrpathdirs="$ltrpathdirs $dir"
19374                      fi
19375                    fi
19376                    ;;
19377                  -l*)
19378                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19379                    ;;
19380                  *.la)
19381                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19382                    ;;
19383                  *)
19384                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19385                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19386                    ;;
19387                esac
19388              done
19389            fi
19390          else
19391                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19392            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19393          fi
19394        fi
19395      fi
19396    done
19397  done
19398  if test "X$rpathdirs" != "X"; then
19399    if test -n "$acl_hardcode_libdir_separator"; then
19400                        alldirs=
19401      for found_dir in $rpathdirs; do
19402        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19403      done
19404            acl_save_libdir="$libdir"
19405      libdir="$alldirs"
19406      eval flag=\"$acl_hardcode_libdir_flag_spec\"
19407      libdir="$acl_save_libdir"
19408      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19409    else
19410            for found_dir in $rpathdirs; do
19411        acl_save_libdir="$libdir"
19412        libdir="$found_dir"
19413        eval flag=\"$acl_hardcode_libdir_flag_spec\"
19414        libdir="$acl_save_libdir"
19415        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19416      done
19417    fi
19418  fi
19419  if test "X$ltrpathdirs" != "X"; then
19420            for found_dir in $ltrpathdirs; do
19421      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19422    done
19423  fi
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19456$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19457if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19458  $as_echo_n "(cached) " >&6
19459else
19460  gt_save_LIBS="$LIBS"
19461     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19462     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463/* end confdefs.h.  */
19464#include <CoreFoundation/CFPreferences.h>
19465int
19466main ()
19467{
19468CFPreferencesCopyAppValue(NULL, NULL)
19469  ;
19470  return 0;
19471}
19472_ACEOF
19473if ac_fn_c_try_link "$LINENO"; then :
19474  gt_cv_func_CFPreferencesCopyAppValue=yes
19475else
19476  gt_cv_func_CFPreferencesCopyAppValue=no
19477fi
19478rm -f core conftest.err conftest.$ac_objext \
19479    conftest$ac_exeext conftest.$ac_ext
19480     LIBS="$gt_save_LIBS"
19481fi
19482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19483$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19484  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19485
19486$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19487
19488  fi
19489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19490$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19491if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19492  $as_echo_n "(cached) " >&6
19493else
19494  gt_save_LIBS="$LIBS"
19495     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19497/* end confdefs.h.  */
19498#include <CoreFoundation/CFLocale.h>
19499int
19500main ()
19501{
19502CFLocaleCopyCurrent();
19503  ;
19504  return 0;
19505}
19506_ACEOF
19507if ac_fn_c_try_link "$LINENO"; then :
19508  gt_cv_func_CFLocaleCopyCurrent=yes
19509else
19510  gt_cv_func_CFLocaleCopyCurrent=no
19511fi
19512rm -f core conftest.err conftest.$ac_objext \
19513    conftest$ac_exeext conftest.$ac_ext
19514     LIBS="$gt_save_LIBS"
19515fi
19516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19517$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19518  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19519
19520$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19521
19522  fi
19523  INTL_MACOSX_LIBS=
19524  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19525    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19526  fi
19527
19528
19529
19530
19531
19532
19533  LIBINTL=
19534  LTLIBINTL=
19535  POSUB=
19536
19537    case " $gt_needs " in
19538    *" need-formatstring-macros "*) gt_api_version=3 ;;
19539    *" need-ngettext "*) gt_api_version=2 ;;
19540    *) gt_api_version=1 ;;
19541  esac
19542  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19543  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19544
19545    if test "$USE_NLS" = "yes"; then
19546    gt_use_preinstalled_gnugettext=no
19547
19548
19549        if test $gt_api_version -ge 3; then
19550          gt_revision_test_code='
19551#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19552#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19553#endif
19554typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19555'
19556        else
19557          gt_revision_test_code=
19558        fi
19559        if test $gt_api_version -ge 2; then
19560          gt_expression_test_code=' + * ngettext ("", "", 0)'
19561        else
19562          gt_expression_test_code=
19563        fi
19564
19565        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19566$as_echo_n "checking for GNU gettext in libc... " >&6; }
19567if eval \${$gt_func_gnugettext_libc+:} false; then :
19568  $as_echo_n "(cached) " >&6
19569else
19570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571/* end confdefs.h.  */
19572
19573#include <libintl.h>
19574#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19575extern int _nl_msg_cat_cntr;
19576extern int *_nl_domain_bindings;
19577#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
19578#else
19579#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19580#endif
19581$gt_revision_test_code
19582
19583int
19584main ()
19585{
19586
19587bindtextdomain ("", "");
19588return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19589
19590  ;
19591  return 0;
19592}
19593_ACEOF
19594if ac_fn_c_try_link "$LINENO"; then :
19595  eval "$gt_func_gnugettext_libc=yes"
19596else
19597  eval "$gt_func_gnugettext_libc=no"
19598fi
19599rm -f core conftest.err conftest.$ac_objext \
19600    conftest$ac_exeext conftest.$ac_ext
19601fi
19602eval ac_res=\$$gt_func_gnugettext_libc
19603	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19604$as_echo "$ac_res" >&6; }
19605
19606        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19607
19608
19609
19610
19611
19612          am_save_CPPFLAGS="$CPPFLAGS"
19613
19614  for element in $INCICONV; do
19615    haveit=
19616    for x in $CPPFLAGS; do
19617
19618  acl_save_prefix="$prefix"
19619  prefix="$acl_final_prefix"
19620  acl_save_exec_prefix="$exec_prefix"
19621  exec_prefix="$acl_final_exec_prefix"
19622  eval x=\"$x\"
19623  exec_prefix="$acl_save_exec_prefix"
19624  prefix="$acl_save_prefix"
19625
19626      if test "X$x" = "X$element"; then
19627        haveit=yes
19628        break
19629      fi
19630    done
19631    if test -z "$haveit"; then
19632      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19633    fi
19634  done
19635
19636
19637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19638$as_echo_n "checking for iconv... " >&6; }
19639if ${am_cv_func_iconv+:} false; then :
19640  $as_echo_n "(cached) " >&6
19641else
19642
19643    am_cv_func_iconv="no, consider installing GNU libiconv"
19644    am_cv_lib_iconv=no
19645    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646/* end confdefs.h.  */
19647
19648#include <stdlib.h>
19649#include <iconv.h>
19650
19651int
19652main ()
19653{
19654iconv_t cd = iconv_open("","");
19655           iconv(cd,NULL,NULL,NULL,NULL);
19656           iconv_close(cd);
19657  ;
19658  return 0;
19659}
19660_ACEOF
19661if ac_fn_c_try_link "$LINENO"; then :
19662  am_cv_func_iconv=yes
19663fi
19664rm -f core conftest.err conftest.$ac_objext \
19665    conftest$ac_exeext conftest.$ac_ext
19666    if test "$am_cv_func_iconv" != yes; then
19667      am_save_LIBS="$LIBS"
19668      LIBS="$LIBS $LIBICONV"
19669      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670/* end confdefs.h.  */
19671
19672#include <stdlib.h>
19673#include <iconv.h>
19674
19675int
19676main ()
19677{
19678iconv_t cd = iconv_open("","");
19679             iconv(cd,NULL,NULL,NULL,NULL);
19680             iconv_close(cd);
19681  ;
19682  return 0;
19683}
19684_ACEOF
19685if ac_fn_c_try_link "$LINENO"; then :
19686  am_cv_lib_iconv=yes
19687        am_cv_func_iconv=yes
19688fi
19689rm -f core conftest.err conftest.$ac_objext \
19690    conftest$ac_exeext conftest.$ac_ext
19691      LIBS="$am_save_LIBS"
19692    fi
19693
19694fi
19695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19696$as_echo "$am_cv_func_iconv" >&6; }
19697  if test "$am_cv_func_iconv" = yes; then
19698    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19699$as_echo_n "checking for working iconv... " >&6; }
19700if ${am_cv_func_iconv_works+:} false; then :
19701  $as_echo_n "(cached) " >&6
19702else
19703
19704                  am_save_LIBS="$LIBS"
19705      if test $am_cv_lib_iconv = yes; then
19706        LIBS="$LIBS $LIBICONV"
19707      fi
19708      am_cv_func_iconv_works=no
19709      for ac_iconv_const in '' 'const'; do
19710        if test "$cross_compiling" = yes; then :
19711  case "$host_os" in
19712             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19713             *)            am_cv_func_iconv_works="guessing yes" ;;
19714           esac
19715else
19716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19717/* end confdefs.h.  */
19718
19719#include <iconv.h>
19720#include <string.h>
19721
19722#ifndef ICONV_CONST
19723# define ICONV_CONST $ac_iconv_const
19724#endif
19725
19726int
19727main ()
19728{
19729int result = 0;
19730  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19731     returns.  */
19732  {
19733    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19734    if (cd_utf8_to_88591 != (iconv_t)(-1))
19735      {
19736        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
19737        char buf[10];
19738        ICONV_CONST char *inptr = input;
19739        size_t inbytesleft = strlen (input);
19740        char *outptr = buf;
19741        size_t outbytesleft = sizeof (buf);
19742        size_t res = iconv (cd_utf8_to_88591,
19743                            &inptr, &inbytesleft,
19744                            &outptr, &outbytesleft);
19745        if (res == 0)
19746          result |= 1;
19747        iconv_close (cd_utf8_to_88591);
19748      }
19749  }
19750  /* Test against Solaris 10 bug: Failures are not distinguishable from
19751     successful returns.  */
19752  {
19753    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19754    if (cd_ascii_to_88591 != (iconv_t)(-1))
19755      {
19756        static ICONV_CONST char input[] = "\263";
19757        char buf[10];
19758        ICONV_CONST char *inptr = input;
19759        size_t inbytesleft = strlen (input);
19760        char *outptr = buf;
19761        size_t outbytesleft = sizeof (buf);
19762        size_t res = iconv (cd_ascii_to_88591,
19763                            &inptr, &inbytesleft,
19764                            &outptr, &outbytesleft);
19765        if (res == 0)
19766          result |= 2;
19767        iconv_close (cd_ascii_to_88591);
19768      }
19769  }
19770  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
19771  {
19772    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
19773    if (cd_88591_to_utf8 != (iconv_t)(-1))
19774      {
19775        static ICONV_CONST char input[] = "\304";
19776        static char buf[2] = { (char)0xDE, (char)0xAD };
19777        ICONV_CONST char *inptr = input;
19778        size_t inbytesleft = 1;
19779        char *outptr = buf;
19780        size_t outbytesleft = 1;
19781        size_t res = iconv (cd_88591_to_utf8,
19782                            &inptr, &inbytesleft,
19783                            &outptr, &outbytesleft);
19784        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
19785          result |= 4;
19786        iconv_close (cd_88591_to_utf8);
19787      }
19788  }
19789#if 0 /* This bug could be worked around by the caller.  */
19790  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
19791  {
19792    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19793    if (cd_88591_to_utf8 != (iconv_t)(-1))
19794      {
19795        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19796        char buf[50];
19797        ICONV_CONST char *inptr = input;
19798        size_t inbytesleft = strlen (input);
19799        char *outptr = buf;
19800        size_t outbytesleft = sizeof (buf);
19801        size_t res = iconv (cd_88591_to_utf8,
19802                            &inptr, &inbytesleft,
19803                            &outptr, &outbytesleft);
19804        if ((int)res > 0)
19805          result |= 8;
19806        iconv_close (cd_88591_to_utf8);
19807      }
19808  }
19809#endif
19810  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19811     provided.  */
19812  if (/* Try standardized names.  */
19813      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19814      /* Try IRIX, OSF/1 names.  */
19815      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19816      /* Try AIX names.  */
19817      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19818      /* Try HP-UX names.  */
19819      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19820    result |= 16;
19821  return result;
19822
19823  ;
19824  return 0;
19825}
19826_ACEOF
19827if ac_fn_c_try_run "$LINENO"; then :
19828  am_cv_func_iconv_works=yes
19829fi
19830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19831  conftest.$ac_objext conftest.beam conftest.$ac_ext
19832fi
19833
19834        test "$am_cv_func_iconv_works" = no || break
19835      done
19836      LIBS="$am_save_LIBS"
19837
19838fi
19839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19840$as_echo "$am_cv_func_iconv_works" >&6; }
19841    case "$am_cv_func_iconv_works" in
19842      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19843      *)   am_func_iconv=yes ;;
19844    esac
19845  else
19846    am_func_iconv=no am_cv_lib_iconv=no
19847  fi
19848  if test "$am_func_iconv" = yes; then
19849
19850$as_echo "#define HAVE_ICONV 1" >>confdefs.h
19851
19852  fi
19853  if test "$am_cv_lib_iconv" = yes; then
19854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19855$as_echo_n "checking how to link with libiconv... " >&6; }
19856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19857$as_echo "$LIBICONV" >&6; }
19858  else
19859            CPPFLAGS="$am_save_CPPFLAGS"
19860    LIBICONV=
19861    LTLIBICONV=
19862  fi
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874    use_additional=yes
19875
19876  acl_save_prefix="$prefix"
19877  prefix="$acl_final_prefix"
19878  acl_save_exec_prefix="$exec_prefix"
19879  exec_prefix="$acl_final_exec_prefix"
19880
19881    eval additional_includedir=\"$includedir\"
19882    eval additional_libdir=\"$libdir\"
19883
19884  exec_prefix="$acl_save_exec_prefix"
19885  prefix="$acl_save_prefix"
19886
19887
19888# Check whether --with-libintl-prefix was given.
19889if test "${with_libintl_prefix+set}" = set; then :
19890  withval=$with_libintl_prefix;
19891    if test "X$withval" = "Xno"; then
19892      use_additional=no
19893    else
19894      if test "X$withval" = "X"; then
19895
19896  acl_save_prefix="$prefix"
19897  prefix="$acl_final_prefix"
19898  acl_save_exec_prefix="$exec_prefix"
19899  exec_prefix="$acl_final_exec_prefix"
19900
19901          eval additional_includedir=\"$includedir\"
19902          eval additional_libdir=\"$libdir\"
19903
19904  exec_prefix="$acl_save_exec_prefix"
19905  prefix="$acl_save_prefix"
19906
19907      else
19908        additional_includedir="$withval/include"
19909        additional_libdir="$withval/$acl_libdirstem"
19910        if test "$acl_libdirstem2" != "$acl_libdirstem" \
19911           && ! test -d "$withval/$acl_libdirstem"; then
19912          additional_libdir="$withval/$acl_libdirstem2"
19913        fi
19914      fi
19915    fi
19916
19917fi
19918
19919      LIBINTL=
19920  LTLIBINTL=
19921  INCINTL=
19922  LIBINTL_PREFIX=
19923      HAVE_LIBINTL=
19924  rpathdirs=
19925  ltrpathdirs=
19926  names_already_handled=
19927  names_next_round='intl '
19928  while test -n "$names_next_round"; do
19929    names_this_round="$names_next_round"
19930    names_next_round=
19931    for name in $names_this_round; do
19932      already_handled=
19933      for n in $names_already_handled; do
19934        if test "$n" = "$name"; then
19935          already_handled=yes
19936          break
19937        fi
19938      done
19939      if test -z "$already_handled"; then
19940        names_already_handled="$names_already_handled $name"
19941                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19942        eval value=\"\$HAVE_LIB$uppername\"
19943        if test -n "$value"; then
19944          if test "$value" = yes; then
19945            eval value=\"\$LIB$uppername\"
19946            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19947            eval value=\"\$LTLIB$uppername\"
19948            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19949          else
19950                                    :
19951          fi
19952        else
19953                              found_dir=
19954          found_la=
19955          found_so=
19956          found_a=
19957          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19958          if test -n "$acl_shlibext"; then
19959            shrext=".$acl_shlibext"             # typically: shrext=.so
19960          else
19961            shrext=
19962          fi
19963          if test $use_additional = yes; then
19964            dir="$additional_libdir"
19965                                    if test -n "$acl_shlibext"; then
19966              if test -f "$dir/$libname$shrext"; then
19967                found_dir="$dir"
19968                found_so="$dir/$libname$shrext"
19969              else
19970                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19971                  ver=`(cd "$dir" && \
19972                        for f in "$libname$shrext".*; do echo "$f"; done \
19973                        | sed -e "s,^$libname$shrext\\\\.,," \
19974                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19975                        | sed 1q ) 2>/dev/null`
19976                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19977                    found_dir="$dir"
19978                    found_so="$dir/$libname$shrext.$ver"
19979                  fi
19980                else
19981                  eval library_names=\"$acl_library_names_spec\"
19982                  for f in $library_names; do
19983                    if test -f "$dir/$f"; then
19984                      found_dir="$dir"
19985                      found_so="$dir/$f"
19986                      break
19987                    fi
19988                  done
19989                fi
19990              fi
19991            fi
19992                        if test "X$found_dir" = "X"; then
19993              if test -f "$dir/$libname.$acl_libext"; then
19994                found_dir="$dir"
19995                found_a="$dir/$libname.$acl_libext"
19996              fi
19997            fi
19998            if test "X$found_dir" != "X"; then
19999              if test -f "$dir/$libname.la"; then
20000                found_la="$dir/$libname.la"
20001              fi
20002            fi
20003          fi
20004          if test "X$found_dir" = "X"; then
20005            for x in $LDFLAGS $LTLIBINTL; do
20006
20007  acl_save_prefix="$prefix"
20008  prefix="$acl_final_prefix"
20009  acl_save_exec_prefix="$exec_prefix"
20010  exec_prefix="$acl_final_exec_prefix"
20011  eval x=\"$x\"
20012  exec_prefix="$acl_save_exec_prefix"
20013  prefix="$acl_save_prefix"
20014
20015              case "$x" in
20016                -L*)
20017                  dir=`echo "X$x" | sed -e 's/^X-L//'`
20018                                    if test -n "$acl_shlibext"; then
20019                    if test -f "$dir/$libname$shrext"; then
20020                      found_dir="$dir"
20021                      found_so="$dir/$libname$shrext"
20022                    else
20023                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20024                        ver=`(cd "$dir" && \
20025                              for f in "$libname$shrext".*; do echo "$f"; done \
20026                              | sed -e "s,^$libname$shrext\\\\.,," \
20027                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20028                              | sed 1q ) 2>/dev/null`
20029                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20030                          found_dir="$dir"
20031                          found_so="$dir/$libname$shrext.$ver"
20032                        fi
20033                      else
20034                        eval library_names=\"$acl_library_names_spec\"
20035                        for f in $library_names; do
20036                          if test -f "$dir/$f"; then
20037                            found_dir="$dir"
20038                            found_so="$dir/$f"
20039                            break
20040                          fi
20041                        done
20042                      fi
20043                    fi
20044                  fi
20045                                    if test "X$found_dir" = "X"; then
20046                    if test -f "$dir/$libname.$acl_libext"; then
20047                      found_dir="$dir"
20048                      found_a="$dir/$libname.$acl_libext"
20049                    fi
20050                  fi
20051                  if test "X$found_dir" != "X"; then
20052                    if test -f "$dir/$libname.la"; then
20053                      found_la="$dir/$libname.la"
20054                    fi
20055                  fi
20056                  ;;
20057              esac
20058              if test "X$found_dir" != "X"; then
20059                break
20060              fi
20061            done
20062          fi
20063          if test "X$found_dir" != "X"; then
20064                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20065            if test "X$found_so" != "X"; then
20066                                                        if test "$enable_rpath" = no \
20067                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20068                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20069                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20070              else
20071                                                                                haveit=
20072                for x in $ltrpathdirs; do
20073                  if test "X$x" = "X$found_dir"; then
20074                    haveit=yes
20075                    break
20076                  fi
20077                done
20078                if test -z "$haveit"; then
20079                  ltrpathdirs="$ltrpathdirs $found_dir"
20080                fi
20081                                if test "$acl_hardcode_direct" = yes; then
20082                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20083                else
20084                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20085                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20086                                                            haveit=
20087                    for x in $rpathdirs; do
20088                      if test "X$x" = "X$found_dir"; then
20089                        haveit=yes
20090                        break
20091                      fi
20092                    done
20093                    if test -z "$haveit"; then
20094                      rpathdirs="$rpathdirs $found_dir"
20095                    fi
20096                  else
20097                                                                                haveit=
20098                    for x in $LDFLAGS $LIBINTL; do
20099
20100  acl_save_prefix="$prefix"
20101  prefix="$acl_final_prefix"
20102  acl_save_exec_prefix="$exec_prefix"
20103  exec_prefix="$acl_final_exec_prefix"
20104  eval x=\"$x\"
20105  exec_prefix="$acl_save_exec_prefix"
20106  prefix="$acl_save_prefix"
20107
20108                      if test "X$x" = "X-L$found_dir"; then
20109                        haveit=yes
20110                        break
20111                      fi
20112                    done
20113                    if test -z "$haveit"; then
20114                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20115                    fi
20116                    if test "$acl_hardcode_minus_L" != no; then
20117                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20118                    else
20119                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20120                    fi
20121                  fi
20122                fi
20123              fi
20124            else
20125              if test "X$found_a" != "X"; then
20126                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20127              else
20128                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20129              fi
20130            fi
20131                        additional_includedir=
20132            case "$found_dir" in
20133              */$acl_libdirstem | */$acl_libdirstem/)
20134                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20135                if test "$name" = 'intl'; then
20136                  LIBINTL_PREFIX="$basedir"
20137                fi
20138                additional_includedir="$basedir/include"
20139                ;;
20140              */$acl_libdirstem2 | */$acl_libdirstem2/)
20141                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20142                if test "$name" = 'intl'; then
20143                  LIBINTL_PREFIX="$basedir"
20144                fi
20145                additional_includedir="$basedir/include"
20146                ;;
20147            esac
20148            if test "X$additional_includedir" != "X"; then
20149                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
20150                haveit=
20151                if test "X$additional_includedir" = "X/usr/local/include"; then
20152                  if test -n "$GCC"; then
20153                    case $host_os in
20154                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20155                    esac
20156                  fi
20157                fi
20158                if test -z "$haveit"; then
20159                  for x in $CPPFLAGS $INCINTL; do
20160
20161  acl_save_prefix="$prefix"
20162  prefix="$acl_final_prefix"
20163  acl_save_exec_prefix="$exec_prefix"
20164  exec_prefix="$acl_final_exec_prefix"
20165  eval x=\"$x\"
20166  exec_prefix="$acl_save_exec_prefix"
20167  prefix="$acl_save_prefix"
20168
20169                    if test "X$x" = "X-I$additional_includedir"; then
20170                      haveit=yes
20171                      break
20172                    fi
20173                  done
20174                  if test -z "$haveit"; then
20175                    if test -d "$additional_includedir"; then
20176                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20177                    fi
20178                  fi
20179                fi
20180              fi
20181            fi
20182                        if test -n "$found_la"; then
20183                                                        save_libdir="$libdir"
20184              case "$found_la" in
20185                */* | *\\*) . "$found_la" ;;
20186                *) . "./$found_la" ;;
20187              esac
20188              libdir="$save_libdir"
20189                            for dep in $dependency_libs; do
20190                case "$dep" in
20191                  -L*)
20192                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20193                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20194                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20195                      haveit=
20196                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20197                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20198                        if test -n "$GCC"; then
20199                          case $host_os in
20200                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20201                          esac
20202                        fi
20203                      fi
20204                      if test -z "$haveit"; then
20205                        haveit=
20206                        for x in $LDFLAGS $LIBINTL; do
20207
20208  acl_save_prefix="$prefix"
20209  prefix="$acl_final_prefix"
20210  acl_save_exec_prefix="$exec_prefix"
20211  exec_prefix="$acl_final_exec_prefix"
20212  eval x=\"$x\"
20213  exec_prefix="$acl_save_exec_prefix"
20214  prefix="$acl_save_prefix"
20215
20216                          if test "X$x" = "X-L$additional_libdir"; then
20217                            haveit=yes
20218                            break
20219                          fi
20220                        done
20221                        if test -z "$haveit"; then
20222                          if test -d "$additional_libdir"; then
20223                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20224                          fi
20225                        fi
20226                        haveit=
20227                        for x in $LDFLAGS $LTLIBINTL; do
20228
20229  acl_save_prefix="$prefix"
20230  prefix="$acl_final_prefix"
20231  acl_save_exec_prefix="$exec_prefix"
20232  exec_prefix="$acl_final_exec_prefix"
20233  eval x=\"$x\"
20234  exec_prefix="$acl_save_exec_prefix"
20235  prefix="$acl_save_prefix"
20236
20237                          if test "X$x" = "X-L$additional_libdir"; then
20238                            haveit=yes
20239                            break
20240                          fi
20241                        done
20242                        if test -z "$haveit"; then
20243                          if test -d "$additional_libdir"; then
20244                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20245                          fi
20246                        fi
20247                      fi
20248                    fi
20249                    ;;
20250                  -R*)
20251                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
20252                    if test "$enable_rpath" != no; then
20253                                                                  haveit=
20254                      for x in $rpathdirs; do
20255                        if test "X$x" = "X$dir"; then
20256                          haveit=yes
20257                          break
20258                        fi
20259                      done
20260                      if test -z "$haveit"; then
20261                        rpathdirs="$rpathdirs $dir"
20262                      fi
20263                                                                  haveit=
20264                      for x in $ltrpathdirs; do
20265                        if test "X$x" = "X$dir"; then
20266                          haveit=yes
20267                          break
20268                        fi
20269                      done
20270                      if test -z "$haveit"; then
20271                        ltrpathdirs="$ltrpathdirs $dir"
20272                      fi
20273                    fi
20274                    ;;
20275                  -l*)
20276                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20277                    ;;
20278                  *.la)
20279                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20280                    ;;
20281                  *)
20282                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20283                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20284                    ;;
20285                esac
20286              done
20287            fi
20288          else
20289                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20290            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20291          fi
20292        fi
20293      fi
20294    done
20295  done
20296  if test "X$rpathdirs" != "X"; then
20297    if test -n "$acl_hardcode_libdir_separator"; then
20298                        alldirs=
20299      for found_dir in $rpathdirs; do
20300        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20301      done
20302            acl_save_libdir="$libdir"
20303      libdir="$alldirs"
20304      eval flag=\"$acl_hardcode_libdir_flag_spec\"
20305      libdir="$acl_save_libdir"
20306      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20307    else
20308            for found_dir in $rpathdirs; do
20309        acl_save_libdir="$libdir"
20310        libdir="$found_dir"
20311        eval flag=\"$acl_hardcode_libdir_flag_spec\"
20312        libdir="$acl_save_libdir"
20313        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20314      done
20315    fi
20316  fi
20317  if test "X$ltrpathdirs" != "X"; then
20318            for found_dir in $ltrpathdirs; do
20319      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20320    done
20321  fi
20322
20323
20324
20325
20326
20327
20328          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20329$as_echo_n "checking for GNU gettext in libintl... " >&6; }
20330if eval \${$gt_func_gnugettext_libintl+:} false; then :
20331  $as_echo_n "(cached) " >&6
20332else
20333  gt_save_CPPFLAGS="$CPPFLAGS"
20334            CPPFLAGS="$CPPFLAGS $INCINTL"
20335            gt_save_LIBS="$LIBS"
20336            LIBS="$LIBS $LIBINTL"
20337                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338/* end confdefs.h.  */
20339
20340#include <libintl.h>
20341#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20342extern int _nl_msg_cat_cntr;
20343extern
20344#ifdef __cplusplus
20345"C"
20346#endif
20347const char *_nl_expand_alias (const char *);
20348#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
20349#else
20350#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20351#endif
20352$gt_revision_test_code
20353
20354int
20355main ()
20356{
20357
20358bindtextdomain ("", "");
20359return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20360
20361  ;
20362  return 0;
20363}
20364_ACEOF
20365if ac_fn_c_try_link "$LINENO"; then :
20366  eval "$gt_func_gnugettext_libintl=yes"
20367else
20368  eval "$gt_func_gnugettext_libintl=no"
20369fi
20370rm -f core conftest.err conftest.$ac_objext \
20371    conftest$ac_exeext conftest.$ac_ext
20372                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
20373              LIBS="$LIBS $LIBICONV"
20374              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20375/* end confdefs.h.  */
20376
20377#include <libintl.h>
20378#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20379extern int _nl_msg_cat_cntr;
20380extern
20381#ifdef __cplusplus
20382"C"
20383#endif
20384const char *_nl_expand_alias (const char *);
20385#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
20386#else
20387#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20388#endif
20389$gt_revision_test_code
20390
20391int
20392main ()
20393{
20394
20395bindtextdomain ("", "");
20396return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20397
20398  ;
20399  return 0;
20400}
20401_ACEOF
20402if ac_fn_c_try_link "$LINENO"; then :
20403  LIBINTL="$LIBINTL $LIBICONV"
20404                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20405                 eval "$gt_func_gnugettext_libintl=yes"
20406
20407fi
20408rm -f core conftest.err conftest.$ac_objext \
20409    conftest$ac_exeext conftest.$ac_ext
20410            fi
20411            CPPFLAGS="$gt_save_CPPFLAGS"
20412            LIBS="$gt_save_LIBS"
20413fi
20414eval ac_res=\$$gt_func_gnugettext_libintl
20415	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20416$as_echo "$ac_res" >&6; }
20417        fi
20418
20419                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
20420           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
20421                && test "$PACKAGE" != gettext-runtime \
20422                && test "$PACKAGE" != gettext-tools; }; then
20423          gt_use_preinstalled_gnugettext=yes
20424        else
20425                    LIBINTL=
20426          LTLIBINTL=
20427          INCINTL=
20428        fi
20429
20430
20431
20432    if test -n "$INTL_MACOSX_LIBS"; then
20433      if test "$gt_use_preinstalled_gnugettext" = "yes" \
20434         || test "$nls_cv_use_gnu_gettext" = "yes"; then
20435                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20436        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20437      fi
20438    fi
20439
20440    if test "$gt_use_preinstalled_gnugettext" = "yes" \
20441       || test "$nls_cv_use_gnu_gettext" = "yes"; then
20442
20443$as_echo "#define ENABLE_NLS 1" >>confdefs.h
20444
20445    else
20446      USE_NLS=no
20447    fi
20448  fi
20449
20450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20451$as_echo_n "checking whether to use NLS... " >&6; }
20452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20453$as_echo "$USE_NLS" >&6; }
20454  if test "$USE_NLS" = "yes"; then
20455    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20456$as_echo_n "checking where the gettext function comes from... " >&6; }
20457    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20458      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20459        gt_source="external libintl"
20460      else
20461        gt_source="libc"
20462      fi
20463    else
20464      gt_source="included intl directory"
20465    fi
20466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20467$as_echo "$gt_source" >&6; }
20468  fi
20469
20470  if test "$USE_NLS" = "yes"; then
20471
20472    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20473      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20474        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20475$as_echo_n "checking how to link with libintl... " >&6; }
20476        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20477$as_echo "$LIBINTL" >&6; }
20478
20479  for element in $INCINTL; do
20480    haveit=
20481    for x in $CPPFLAGS; do
20482
20483  acl_save_prefix="$prefix"
20484  prefix="$acl_final_prefix"
20485  acl_save_exec_prefix="$exec_prefix"
20486  exec_prefix="$acl_final_exec_prefix"
20487  eval x=\"$x\"
20488  exec_prefix="$acl_save_exec_prefix"
20489  prefix="$acl_save_prefix"
20490
20491      if test "X$x" = "X$element"; then
20492        haveit=yes
20493        break
20494      fi
20495    done
20496    if test -z "$haveit"; then
20497      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20498    fi
20499  done
20500
20501      fi
20502
20503
20504$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20505
20506
20507$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20508
20509    fi
20510
20511        POSUB=po
20512  fi
20513
20514
20515
20516    INTLLIBS="$LIBINTL"
20517
20518
20519
20520
20521
20522
20523
20524# Checks for GSettings.
20525
20526pkg_failed=no
20527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO2" >&5
20528$as_echo_n "checking for GIO2... " >&6; }
20529
20530if test -n "$GIO2_CFLAGS"; then
20531    pkg_cv_GIO2_CFLAGS="$GIO2_CFLAGS"
20532 elif test -n "$PKG_CONFIG"; then
20533    if test -n "$PKG_CONFIG" && \
20534    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26.0\""; } >&5
20535  ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26.0") 2>&5
20536  ac_status=$?
20537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20538  test $ac_status = 0; }; then
20539  pkg_cv_GIO2_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26.0" 2>/dev/null`
20540		      test "x$?" != "x0" && pkg_failed=yes
20541else
20542  pkg_failed=yes
20543fi
20544 else
20545    pkg_failed=untried
20546fi
20547if test -n "$GIO2_LIBS"; then
20548    pkg_cv_GIO2_LIBS="$GIO2_LIBS"
20549 elif test -n "$PKG_CONFIG"; then
20550    if test -n "$PKG_CONFIG" && \
20551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26.0\""; } >&5
20552  ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26.0") 2>&5
20553  ac_status=$?
20554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20555  test $ac_status = 0; }; then
20556  pkg_cv_GIO2_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26.0" 2>/dev/null`
20557		      test "x$?" != "x0" && pkg_failed=yes
20558else
20559  pkg_failed=yes
20560fi
20561 else
20562    pkg_failed=untried
20563fi
20564
20565
20566
20567if test $pkg_failed = yes; then
20568   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20569$as_echo "no" >&6; }
20570
20571if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20572        _pkg_short_errors_supported=yes
20573else
20574        _pkg_short_errors_supported=no
20575fi
20576        if test $_pkg_short_errors_supported = yes; then
20577	        GIO2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26.0" 2>&1`
20578        else
20579	        GIO2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26.0" 2>&1`
20580        fi
20581	# Put the nasty error message in config.log where it belongs
20582	echo "$GIO2_PKG_ERRORS" >&5
20583
20584	as_fn_error $? "Package requirements (gio-2.0 >= 2.26.0) were not met:
20585
20586$GIO2_PKG_ERRORS
20587
20588Consider adjusting the PKG_CONFIG_PATH environment variable if you
20589installed software in a non-standard prefix.
20590
20591Alternatively, you may set the environment variables GIO2_CFLAGS
20592and GIO2_LIBS to avoid the need to call pkg-config.
20593See the pkg-config man page for more details." "$LINENO" 5
20594elif test $pkg_failed = untried; then
20595     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20596$as_echo "no" >&6; }
20597	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20599as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20600is in your PATH or set the PKG_CONFIG environment variable to the full
20601path to pkg-config.
20602
20603Alternatively, you may set the environment variables GIO2_CFLAGS
20604and GIO2_LIBS to avoid the need to call pkg-config.
20605See the pkg-config man page for more details.
20606
20607To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20608See \`config.log' for more details" "$LINENO" 5; }
20609else
20610	GIO2_CFLAGS=$pkg_cv_GIO2_CFLAGS
20611	GIO2_LIBS=$pkg_cv_GIO2_LIBS
20612        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20613$as_echo "yes" >&6; }
20614
20615fi
20616
20617
20618
20619
20620
20621  # Check whether --enable-schemas-compile was given.
20622if test "${enable_schemas_compile+set}" = set; then :
20623  enableval=$enable_schemas_compile; case ${enableval} in
20624                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
20625                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
20626                  *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
20627                 esac
20628fi
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20639	if test -n "$ac_tool_prefix"; then
20640  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20641set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20643$as_echo_n "checking for $ac_word... " >&6; }
20644if ${ac_cv_path_PKG_CONFIG+:} false; then :
20645  $as_echo_n "(cached) " >&6
20646else
20647  case $PKG_CONFIG in
20648  [\\/]* | ?:[\\/]*)
20649  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20650  ;;
20651  *)
20652  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20653for as_dir in $PATH
20654do
20655  IFS=$as_save_IFS
20656  test -z "$as_dir" && as_dir=.
20657    for ac_exec_ext in '' $ac_executable_extensions; do
20658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20659    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20661    break 2
20662  fi
20663done
20664  done
20665IFS=$as_save_IFS
20666
20667  ;;
20668esac
20669fi
20670PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20671if test -n "$PKG_CONFIG"; then
20672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20673$as_echo "$PKG_CONFIG" >&6; }
20674else
20675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20676$as_echo "no" >&6; }
20677fi
20678
20679
20680fi
20681if test -z "$ac_cv_path_PKG_CONFIG"; then
20682  ac_pt_PKG_CONFIG=$PKG_CONFIG
20683  # Extract the first word of "pkg-config", so it can be a program name with args.
20684set dummy pkg-config; ac_word=$2
20685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20686$as_echo_n "checking for $ac_word... " >&6; }
20687if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
20688  $as_echo_n "(cached) " >&6
20689else
20690  case $ac_pt_PKG_CONFIG in
20691  [\\/]* | ?:[\\/]*)
20692  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20693  ;;
20694  *)
20695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20696for as_dir in $PATH
20697do
20698  IFS=$as_save_IFS
20699  test -z "$as_dir" && as_dir=.
20700    for ac_exec_ext in '' $ac_executable_extensions; do
20701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20702    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20704    break 2
20705  fi
20706done
20707  done
20708IFS=$as_save_IFS
20709
20710  ;;
20711esac
20712fi
20713ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20714if test -n "$ac_pt_PKG_CONFIG"; then
20715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20716$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20717else
20718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20719$as_echo "no" >&6; }
20720fi
20721
20722  if test "x$ac_pt_PKG_CONFIG" = x; then
20723    PKG_CONFIG=""
20724  else
20725    case $cross_compiling:$ac_tool_warned in
20726yes:)
20727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20729ac_tool_warned=yes ;;
20730esac
20731    PKG_CONFIG=$ac_pt_PKG_CONFIG
20732  fi
20733else
20734  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20735fi
20736
20737fi
20738if test -n "$PKG_CONFIG"; then
20739	_pkg_min_version=0.16
20740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20741$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20742	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20743		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20744$as_echo "yes" >&6; }
20745	else
20746		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20747$as_echo "no" >&6; }
20748		PKG_CONFIG=""
20749	fi
20750fi
20751  gsettingsschemadir=${datadir}/glib-2.0/schemas
20752
20753  if test x$cross_compiling != xyes; then :
20754
20755if test -n "$GLIB_COMPILE_SCHEMAS"; then
20756    pkg_cv_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS"
20757 elif test -n "$PKG_CONFIG"; then
20758    if test -n "$PKG_CONFIG" && \
20759    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
20760  ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
20761  ac_status=$?
20762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20763  test $ac_status = 0; }; then
20764  pkg_cv_GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable="glib_compile_schemas" "gio-2.0" 2>/dev/null`
20765		      test "x$?" != "x0" && pkg_failed=yes
20766else
20767  pkg_failed=yes
20768fi
20769 else
20770    pkg_failed=untried
20771fi
20772GLIB_COMPILE_SCHEMAS=$pkg_cv_GLIB_COMPILE_SCHEMAS
20773
20774if test "x$GLIB_COMPILE_SCHEMAS" = x""; then :
20775
20776fi
20777else
20778  # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
20779set dummy glib-compile-schemas; ac_word=$2
20780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20781$as_echo_n "checking for $ac_word... " >&6; }
20782if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
20783  $as_echo_n "(cached) " >&6
20784else
20785  case $GLIB_COMPILE_SCHEMAS in
20786  [\\/]* | ?:[\\/]*)
20787  ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
20788  ;;
20789  *)
20790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20791for as_dir in $PATH
20792do
20793  IFS=$as_save_IFS
20794  test -z "$as_dir" && as_dir=.
20795    for ac_exec_ext in '' $ac_executable_extensions; do
20796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20797    ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
20798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20799    break 2
20800  fi
20801done
20802  done
20803IFS=$as_save_IFS
20804
20805  ;;
20806esac
20807fi
20808GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
20809if test -n "$GLIB_COMPILE_SCHEMAS"; then
20810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
20811$as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
20812else
20813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20814$as_echo "no" >&6; }
20815fi
20816
20817
20818fi
20819
20820  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
20821    as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
20822  else
20823    :
20824  fi
20825
20826  GSETTINGS_RULES='
20827.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
20828
20829mostlyclean-am: clean-gsettings-schemas
20830
20831gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
20832
20833%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
20834	$(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@
20835
20836all-am: $(gsettings_SCHEMAS:.xml=.valid)
20837uninstall-am: uninstall-gsettings-schemas
20838install-data-am: install-gsettings-schemas
20839
20840.SECONDARY: $(gsettings_SCHEMAS)
20841
20842install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
20843	@$(NORMAL_INSTALL)
20844	if test -n "$^"; then \
20845		test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
20846		$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
20847		test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
20848	fi
20849
20850uninstall-gsettings-schemas:
20851	@$(NORMAL_UNINSTALL)
20852	@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
20853	files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
20854	test -n "$$files" || exit 0; \
20855	echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
20856	cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
20857	test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
20858
20859clean-gsettings-schemas:
20860	rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
20861
20862ifdef gsettings_ENUM_NAMESPACE
20863$(gsettings__enum_file): $(gsettings_ENUM_FILES)
20864	$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@
20865endif
20866'
20867
20868
20869
20870
20871
20872
20873
20874# --disable-lua-extension
20875# Check whether --enable-lua-extension was given.
20876if test "${enable_lua_extension+set}" = set; then :
20877  enableval=$enable_lua_extension; enable_lua_extension=$enableval
20878else
20879  enable_lua_extension=yes
20880
20881fi
20882
20883
20884# check lua
20885
20886pkg_failed=no
20887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
20888$as_echo_n "checking for LUA... " >&6; }
20889
20890if test -n "$LUA_CFLAGS"; then
20891    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
20892 elif test -n "$PKG_CONFIG"; then
20893    if test -n "$PKG_CONFIG" && \
20894    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
20895    lua >= 5.1
20896\""; } >&5
20897  ($PKG_CONFIG --exists --print-errors "
20898    lua >= 5.1
20899") 2>&5
20900  ac_status=$?
20901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20902  test $ac_status = 0; }; then
20903  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "
20904    lua >= 5.1
20905" 2>/dev/null`
20906		      test "x$?" != "x0" && pkg_failed=yes
20907else
20908  pkg_failed=yes
20909fi
20910 else
20911    pkg_failed=untried
20912fi
20913if test -n "$LUA_LIBS"; then
20914    pkg_cv_LUA_LIBS="$LUA_LIBS"
20915 elif test -n "$PKG_CONFIG"; then
20916    if test -n "$PKG_CONFIG" && \
20917    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
20918    lua >= 5.1
20919\""; } >&5
20920  ($PKG_CONFIG --exists --print-errors "
20921    lua >= 5.1
20922") 2>&5
20923  ac_status=$?
20924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20925  test $ac_status = 0; }; then
20926  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "
20927    lua >= 5.1
20928" 2>/dev/null`
20929		      test "x$?" != "x0" && pkg_failed=yes
20930else
20931  pkg_failed=yes
20932fi
20933 else
20934    pkg_failed=untried
20935fi
20936
20937
20938
20939if test $pkg_failed = yes; then
20940   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20941$as_echo "no" >&6; }
20942
20943if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20944        _pkg_short_errors_supported=yes
20945else
20946        _pkg_short_errors_supported=no
20947fi
20948        if test $_pkg_short_errors_supported = yes; then
20949	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
20950    lua >= 5.1
20951" 2>&1`
20952        else
20953	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
20954    lua >= 5.1
20955" 2>&1`
20956        fi
20957	# Put the nasty error message in config.log where it belongs
20958	echo "$LUA_PKG_ERRORS" >&5
20959
20960	has_lua_extension=no
20961
20962elif test $pkg_failed = untried; then
20963     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20964$as_echo "no" >&6; }
20965	has_lua_extension=no
20966
20967else
20968	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
20969	LUA_LIBS=$pkg_cv_LUA_LIBS
20970        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20971$as_echo "yes" >&6; }
20972
20973fi
20974
20975if test x"$has_lua_extension" = x"no";
20976then
20977
20978pkg_failed=no
20979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
20980$as_echo_n "checking for LUA... " >&6; }
20981
20982if test -n "$LUA_CFLAGS"; then
20983    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
20984 elif test -n "$PKG_CONFIG"; then
20985    if test -n "$PKG_CONFIG" && \
20986    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
20987        lua5.1
20988    \""; } >&5
20989  ($PKG_CONFIG --exists --print-errors "
20990        lua5.1
20991    ") 2>&5
20992  ac_status=$?
20993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20994  test $ac_status = 0; }; then
20995  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "
20996        lua5.1
20997    " 2>/dev/null`
20998		      test "x$?" != "x0" && pkg_failed=yes
20999else
21000  pkg_failed=yes
21001fi
21002 else
21003    pkg_failed=untried
21004fi
21005if test -n "$LUA_LIBS"; then
21006    pkg_cv_LUA_LIBS="$LUA_LIBS"
21007 elif test -n "$PKG_CONFIG"; then
21008    if test -n "$PKG_CONFIG" && \
21009    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
21010        lua5.1
21011    \""; } >&5
21012  ($PKG_CONFIG --exists --print-errors "
21013        lua5.1
21014    ") 2>&5
21015  ac_status=$?
21016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21017  test $ac_status = 0; }; then
21018  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "
21019        lua5.1
21020    " 2>/dev/null`
21021		      test "x$?" != "x0" && pkg_failed=yes
21022else
21023  pkg_failed=yes
21024fi
21025 else
21026    pkg_failed=untried
21027fi
21028
21029
21030
21031if test $pkg_failed = yes; then
21032   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21033$as_echo "no" >&6; }
21034
21035if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21036        _pkg_short_errors_supported=yes
21037else
21038        _pkg_short_errors_supported=no
21039fi
21040        if test $_pkg_short_errors_supported = yes; then
21041	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
21042        lua5.1
21043    " 2>&1`
21044        else
21045	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
21046        lua5.1
21047    " 2>&1`
21048        fi
21049	# Put the nasty error message in config.log where it belongs
21050	echo "$LUA_PKG_ERRORS" >&5
21051
21052	enable_lua_extension=no
21053
21054elif test $pkg_failed = untried; then
21055     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21056$as_echo "no" >&6; }
21057	enable_lua_extension=no
21058
21059else
21060	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
21061	LUA_LIBS=$pkg_cv_LUA_LIBS
21062        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21063$as_echo "yes" >&6; }
21064
21065fi;
21066fi
21067
21068 if test x"$enable_lua_extension" = x"yes"; then
21069  IBUS_BUILD_LUA_EXTENSION_TRUE=
21070  IBUS_BUILD_LUA_EXTENSION_FALSE='#'
21071else
21072  IBUS_BUILD_LUA_EXTENSION_TRUE='#'
21073  IBUS_BUILD_LUA_EXTENSION_FALSE=
21074fi
21075
21076
21077# --disable-english-input-mode
21078# Check whether --enable-english-input-mode was given.
21079if test "${enable_english_input_mode+set}" = set; then :
21080  enableval=$enable_english_input_mode; enable_english_input_mode=$enableval
21081else
21082  enable_english_input_mode=yes
21083
21084fi
21085
21086
21087 if test x"$enable_english_input_mode" = x"yes"; then
21088  IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE=
21089  IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE='#'
21090else
21091  IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE='#'
21092  IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE=
21093fi
21094
21095
21096# --disable-stroke-input-mode
21097# Check whether --enable-stroke-input-mode was given.
21098if test "${enable_stroke_input_mode+set}" = set; then :
21099  enableval=$enable_stroke_input_mode; enable_stroke_input_mode=$enableval
21100else
21101  enable_stroke_input_mode=yes
21102
21103fi
21104
21105
21106 if test x"$enable_stroke_input_mode" = x"yes"; then
21107  IBUS_BUILD_STROKE_INPUT_MODE_TRUE=
21108  IBUS_BUILD_STROKE_INPUT_MODE_FALSE='#'
21109else
21110  IBUS_BUILD_STROKE_INPUT_MODE_TRUE='#'
21111  IBUS_BUILD_STROKE_INPUT_MODE_FALSE=
21112fi
21113
21114
21115# OUTPUT files
21116ac_config_files="$ac_config_files po/Makefile.in Makefile ibus-libpinyin.spec lua/Makefile src/Makefile src/libpinyin.xml.in setup/Makefile setup/ibus-setup-libpinyin setup/config.py data/Makefile data/icons/Makefile m4/Makefile"
21117
21118
21119cat >confcache <<\_ACEOF
21120# This file is a shell script that caches the results of configure
21121# tests run on this system so they can be shared between configure
21122# scripts and configure runs, see configure's option --config-cache.
21123# It is not useful on other systems.  If it contains results you don't
21124# want to keep, you may remove or edit it.
21125#
21126# config.status only pays attention to the cache file if you give it
21127# the --recheck option to rerun configure.
21128#
21129# `ac_cv_env_foo' variables (set or unset) will be overridden when
21130# loading this file, other *unset* `ac_cv_foo' will be assigned the
21131# following values.
21132
21133_ACEOF
21134
21135# The following way of writing the cache mishandles newlines in values,
21136# but we know of no workaround that is simple, portable, and efficient.
21137# So, we kill variables containing newlines.
21138# Ultrix sh set writes to stderr and can't be redirected directly,
21139# and sets the high bit in the cache file unless we assign to the vars.
21140(
21141  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21142    eval ac_val=\$$ac_var
21143    case $ac_val in #(
21144    *${as_nl}*)
21145      case $ac_var in #(
21146      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21147$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21148      esac
21149      case $ac_var in #(
21150      _ | IFS | as_nl) ;; #(
21151      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21152      *) { eval $ac_var=; unset $ac_var;} ;;
21153      esac ;;
21154    esac
21155  done
21156
21157  (set) 2>&1 |
21158    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21159    *${as_nl}ac_space=\ *)
21160      # `set' does not quote correctly, so add quotes: double-quote
21161      # substitution turns \\\\ into \\, and sed turns \\ into \.
21162      sed -n \
21163	"s/'/'\\\\''/g;
21164	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21165      ;; #(
21166    *)
21167      # `set' quotes correctly as required by POSIX, so do not add quotes.
21168      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21169      ;;
21170    esac |
21171    sort
21172) |
21173  sed '
21174     /^ac_cv_env_/b end
21175     t clear
21176     :clear
21177     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21178     t end
21179     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21180     :end' >>confcache
21181if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21182  if test -w "$cache_file"; then
21183    if test "x$cache_file" != "x/dev/null"; then
21184      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21185$as_echo "$as_me: updating cache $cache_file" >&6;}
21186      if test ! -f "$cache_file" || test -h "$cache_file"; then
21187	cat confcache >"$cache_file"
21188      else
21189        case $cache_file in #(
21190        */* | ?:*)
21191	  mv -f confcache "$cache_file"$$ &&
21192	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21193        *)
21194	  mv -f confcache "$cache_file" ;;
21195	esac
21196      fi
21197    fi
21198  else
21199    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21200$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21201  fi
21202fi
21203rm -f confcache
21204
21205test "x$prefix" = xNONE && prefix=$ac_default_prefix
21206# Let make expand exec_prefix.
21207test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21208
21209DEFS=-DHAVE_CONFIG_H
21210
21211ac_libobjs=
21212ac_ltlibobjs=
21213U=
21214for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21215  # 1. Remove the extension, and $U if already installed.
21216  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21217  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21218  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21219  #    will be set to the directory where LIBOBJS objects are built.
21220  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21221  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21222done
21223LIBOBJS=$ac_libobjs
21224
21225LTLIBOBJS=$ac_ltlibobjs
21226
21227
21228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21229$as_echo_n "checking that generated files are newer than configure... " >&6; }
21230   if test -n "$am_sleep_pid"; then
21231     # Hide warnings about reused PIDs.
21232     wait $am_sleep_pid 2>/dev/null
21233   fi
21234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21235$as_echo "done" >&6; }
21236 if test -n "$EXEEXT"; then
21237  am__EXEEXT_TRUE=
21238  am__EXEEXT_FALSE='#'
21239else
21240  am__EXEEXT_TRUE='#'
21241  am__EXEEXT_FALSE=
21242fi
21243
21244if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21245  as_fn_error $? "conditional \"AMDEP\" was never defined.
21246Usually this means the macro was only invoked conditionally." "$LINENO" 5
21247fi
21248if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21249  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21250Usually this means the macro was only invoked conditionally." "$LINENO" 5
21251fi
21252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21253$as_echo_n "checking that generated files are newer than configure... " >&6; }
21254   if test -n "$am_sleep_pid"; then
21255     # Hide warnings about reused PIDs.
21256     wait $am_sleep_pid 2>/dev/null
21257   fi
21258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21259$as_echo "done" >&6; }
21260if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21261  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21262Usually this means the macro was only invoked conditionally." "$LINENO" 5
21263fi
21264if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21265  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21266Usually this means the macro was only invoked conditionally." "$LINENO" 5
21267fi
21268if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21269  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21270Usually this means the macro was only invoked conditionally." "$LINENO" 5
21271fi
21272if test -z "${HAVE_BOOST_TRUE}" && test -z "${HAVE_BOOST_FALSE}"; then
21273  as_fn_error $? "conditional \"HAVE_BOOST\" was never defined.
21274Usually this means the macro was only invoked conditionally." "$LINENO" 5
21275fi
21276if test -z "${IBUS_BUILD_LUA_EXTENSION_TRUE}" && test -z "${IBUS_BUILD_LUA_EXTENSION_FALSE}"; then
21277  as_fn_error $? "conditional \"IBUS_BUILD_LUA_EXTENSION\" was never defined.
21278Usually this means the macro was only invoked conditionally." "$LINENO" 5
21279fi
21280if test -z "${IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE}" && test -z "${IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE}"; then
21281  as_fn_error $? "conditional \"IBUS_BUILD_ENGLISH_INPUT_MODE\" was never defined.
21282Usually this means the macro was only invoked conditionally." "$LINENO" 5
21283fi
21284if test -z "${IBUS_BUILD_STROKE_INPUT_MODE_TRUE}" && test -z "${IBUS_BUILD_STROKE_INPUT_MODE_FALSE}"; then
21285  as_fn_error $? "conditional \"IBUS_BUILD_STROKE_INPUT_MODE\" was never defined.
21286Usually this means the macro was only invoked conditionally." "$LINENO" 5
21287fi
21288
21289: "${CONFIG_STATUS=./config.status}"
21290ac_write_fail=0
21291ac_clean_files_save=$ac_clean_files
21292ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21293{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21294$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21295as_write_fail=0
21296cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21297#! $SHELL
21298# Generated by $as_me.
21299# Run this file to recreate the current configuration.
21300# Compiler output produced by configure, useful for debugging
21301# configure, is in config.log if it exists.
21302
21303debug=false
21304ac_cs_recheck=false
21305ac_cs_silent=false
21306
21307SHELL=\${CONFIG_SHELL-$SHELL}
21308export SHELL
21309_ASEOF
21310cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21311## -------------------- ##
21312## M4sh Initialization. ##
21313## -------------------- ##
21314
21315# Be more Bourne compatible
21316DUALCASE=1; export DUALCASE # for MKS sh
21317if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21318  emulate sh
21319  NULLCMD=:
21320  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21321  # is contrary to our usage.  Disable this feature.
21322  alias -g '${1+"$@"}'='"$@"'
21323  setopt NO_GLOB_SUBST
21324else
21325  case `(set -o) 2>/dev/null` in #(
21326  *posix*) :
21327    set -o posix ;; #(
21328  *) :
21329     ;;
21330esac
21331fi
21332
21333
21334as_nl='
21335'
21336export as_nl
21337# Printing a long string crashes Solaris 7 /usr/bin/printf.
21338as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21339as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21340as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21341# Prefer a ksh shell builtin over an external printf program on Solaris,
21342# but without wasting forks for bash or zsh.
21343if test -z "$BASH_VERSION$ZSH_VERSION" \
21344    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21345  as_echo='print -r --'
21346  as_echo_n='print -rn --'
21347elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21348  as_echo='printf %s\n'
21349  as_echo_n='printf %s'
21350else
21351  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21352    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21353    as_echo_n='/usr/ucb/echo -n'
21354  else
21355    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21356    as_echo_n_body='eval
21357      arg=$1;
21358      case $arg in #(
21359      *"$as_nl"*)
21360	expr "X$arg" : "X\\(.*\\)$as_nl";
21361	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21362      esac;
21363      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21364    '
21365    export as_echo_n_body
21366    as_echo_n='sh -c $as_echo_n_body as_echo'
21367  fi
21368  export as_echo_body
21369  as_echo='sh -c $as_echo_body as_echo'
21370fi
21371
21372# The user is always right.
21373if test "${PATH_SEPARATOR+set}" != set; then
21374  PATH_SEPARATOR=:
21375  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21376    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21377      PATH_SEPARATOR=';'
21378  }
21379fi
21380
21381
21382# IFS
21383# We need space, tab and new line, in precisely that order.  Quoting is
21384# there to prevent editors from complaining about space-tab.
21385# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21386# splitting by setting IFS to empty value.)
21387IFS=" ""	$as_nl"
21388
21389# Find who we are.  Look in the path if we contain no directory separator.
21390as_myself=
21391case $0 in #((
21392  *[\\/]* ) as_myself=$0 ;;
21393  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21394for as_dir in $PATH
21395do
21396  IFS=$as_save_IFS
21397  test -z "$as_dir" && as_dir=.
21398    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21399  done
21400IFS=$as_save_IFS
21401
21402     ;;
21403esac
21404# We did not find ourselves, most probably we were run as `sh COMMAND'
21405# in which case we are not to be found in the path.
21406if test "x$as_myself" = x; then
21407  as_myself=$0
21408fi
21409if test ! -f "$as_myself"; then
21410  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21411  exit 1
21412fi
21413
21414# Unset variables that we do not need and which cause bugs (e.g. in
21415# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21416# suppresses any "Segmentation fault" message there.  '((' could
21417# trigger a bug in pdksh 5.2.14.
21418for as_var in BASH_ENV ENV MAIL MAILPATH
21419do eval test x\${$as_var+set} = xset \
21420  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21421done
21422PS1='$ '
21423PS2='> '
21424PS4='+ '
21425
21426# NLS nuisances.
21427LC_ALL=C
21428export LC_ALL
21429LANGUAGE=C
21430export LANGUAGE
21431
21432# CDPATH.
21433(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21434
21435
21436# as_fn_error STATUS ERROR [LINENO LOG_FD]
21437# ----------------------------------------
21438# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21439# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21440# script with STATUS, using 1 if that was 0.
21441as_fn_error ()
21442{
21443  as_status=$1; test $as_status -eq 0 && as_status=1
21444  if test "$4"; then
21445    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21446    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21447  fi
21448  $as_echo "$as_me: error: $2" >&2
21449  as_fn_exit $as_status
21450} # as_fn_error
21451
21452
21453# as_fn_set_status STATUS
21454# -----------------------
21455# Set $? to STATUS, without forking.
21456as_fn_set_status ()
21457{
21458  return $1
21459} # as_fn_set_status
21460
21461# as_fn_exit STATUS
21462# -----------------
21463# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21464as_fn_exit ()
21465{
21466  set +e
21467  as_fn_set_status $1
21468  exit $1
21469} # as_fn_exit
21470
21471# as_fn_unset VAR
21472# ---------------
21473# Portably unset VAR.
21474as_fn_unset ()
21475{
21476  { eval $1=; unset $1;}
21477}
21478as_unset=as_fn_unset
21479# as_fn_append VAR VALUE
21480# ----------------------
21481# Append the text in VALUE to the end of the definition contained in VAR. Take
21482# advantage of any shell optimizations that allow amortized linear growth over
21483# repeated appends, instead of the typical quadratic growth present in naive
21484# implementations.
21485if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21486  eval 'as_fn_append ()
21487  {
21488    eval $1+=\$2
21489  }'
21490else
21491  as_fn_append ()
21492  {
21493    eval $1=\$$1\$2
21494  }
21495fi # as_fn_append
21496
21497# as_fn_arith ARG...
21498# ------------------
21499# Perform arithmetic evaluation on the ARGs, and store the result in the
21500# global $as_val. Take advantage of shells that can avoid forks. The arguments
21501# must be portable across $(()) and expr.
21502if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21503  eval 'as_fn_arith ()
21504  {
21505    as_val=$(( $* ))
21506  }'
21507else
21508  as_fn_arith ()
21509  {
21510    as_val=`expr "$@" || test $? -eq 1`
21511  }
21512fi # as_fn_arith
21513
21514
21515if expr a : '\(a\)' >/dev/null 2>&1 &&
21516   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21517  as_expr=expr
21518else
21519  as_expr=false
21520fi
21521
21522if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21523  as_basename=basename
21524else
21525  as_basename=false
21526fi
21527
21528if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21529  as_dirname=dirname
21530else
21531  as_dirname=false
21532fi
21533
21534as_me=`$as_basename -- "$0" ||
21535$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21536	 X"$0" : 'X\(//\)$' \| \
21537	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21538$as_echo X/"$0" |
21539    sed '/^.*\/\([^/][^/]*\)\/*$/{
21540	    s//\1/
21541	    q
21542	  }
21543	  /^X\/\(\/\/\)$/{
21544	    s//\1/
21545	    q
21546	  }
21547	  /^X\/\(\/\).*/{
21548	    s//\1/
21549	    q
21550	  }
21551	  s/.*/./; q'`
21552
21553# Avoid depending upon Character Ranges.
21554as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21555as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21556as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21557as_cr_digits='0123456789'
21558as_cr_alnum=$as_cr_Letters$as_cr_digits
21559
21560ECHO_C= ECHO_N= ECHO_T=
21561case `echo -n x` in #(((((
21562-n*)
21563  case `echo 'xy\c'` in
21564  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21565  xy)  ECHO_C='\c';;
21566  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21567       ECHO_T='	';;
21568  esac;;
21569*)
21570  ECHO_N='-n';;
21571esac
21572
21573rm -f conf$$ conf$$.exe conf$$.file
21574if test -d conf$$.dir; then
21575  rm -f conf$$.dir/conf$$.file
21576else
21577  rm -f conf$$.dir
21578  mkdir conf$$.dir 2>/dev/null
21579fi
21580if (echo >conf$$.file) 2>/dev/null; then
21581  if ln -s conf$$.file conf$$ 2>/dev/null; then
21582    as_ln_s='ln -s'
21583    # ... but there are two gotchas:
21584    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21585    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21586    # In both cases, we have to default to `cp -pR'.
21587    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21588      as_ln_s='cp -pR'
21589  elif ln conf$$.file conf$$ 2>/dev/null; then
21590    as_ln_s=ln
21591  else
21592    as_ln_s='cp -pR'
21593  fi
21594else
21595  as_ln_s='cp -pR'
21596fi
21597rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21598rmdir conf$$.dir 2>/dev/null
21599
21600
21601# as_fn_mkdir_p
21602# -------------
21603# Create "$as_dir" as a directory, including parents if necessary.
21604as_fn_mkdir_p ()
21605{
21606
21607  case $as_dir in #(
21608  -*) as_dir=./$as_dir;;
21609  esac
21610  test -d "$as_dir" || eval $as_mkdir_p || {
21611    as_dirs=
21612    while :; do
21613      case $as_dir in #(
21614      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21615      *) as_qdir=$as_dir;;
21616      esac
21617      as_dirs="'$as_qdir' $as_dirs"
21618      as_dir=`$as_dirname -- "$as_dir" ||
21619$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21620	 X"$as_dir" : 'X\(//\)[^/]' \| \
21621	 X"$as_dir" : 'X\(//\)$' \| \
21622	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21623$as_echo X"$as_dir" |
21624    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21625	    s//\1/
21626	    q
21627	  }
21628	  /^X\(\/\/\)[^/].*/{
21629	    s//\1/
21630	    q
21631	  }
21632	  /^X\(\/\/\)$/{
21633	    s//\1/
21634	    q
21635	  }
21636	  /^X\(\/\).*/{
21637	    s//\1/
21638	    q
21639	  }
21640	  s/.*/./; q'`
21641      test -d "$as_dir" && break
21642    done
21643    test -z "$as_dirs" || eval "mkdir $as_dirs"
21644  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21645
21646
21647} # as_fn_mkdir_p
21648if mkdir -p . 2>/dev/null; then
21649  as_mkdir_p='mkdir -p "$as_dir"'
21650else
21651  test -d ./-p && rmdir ./-p
21652  as_mkdir_p=false
21653fi
21654
21655
21656# as_fn_executable_p FILE
21657# -----------------------
21658# Test if FILE is an executable regular file.
21659as_fn_executable_p ()
21660{
21661  test -f "$1" && test -x "$1"
21662} # as_fn_executable_p
21663as_test_x='test -x'
21664as_executable_p=as_fn_executable_p
21665
21666# Sed expression to map a string onto a valid CPP name.
21667as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21668
21669# Sed expression to map a string onto a valid variable name.
21670as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21671
21672
21673exec 6>&1
21674## ----------------------------------- ##
21675## Main body of $CONFIG_STATUS script. ##
21676## ----------------------------------- ##
21677_ASEOF
21678test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21679
21680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21681# Save the log message, to keep $0 and so on meaningful, and to
21682# report actual input values of CONFIG_FILES etc. instead of their
21683# values after options handling.
21684ac_log="
21685This file was extended by ibus-libpinyin $as_me 1.11.1, which was
21686generated by GNU Autoconf 2.69.  Invocation command line was
21687
21688  CONFIG_FILES    = $CONFIG_FILES
21689  CONFIG_HEADERS  = $CONFIG_HEADERS
21690  CONFIG_LINKS    = $CONFIG_LINKS
21691  CONFIG_COMMANDS = $CONFIG_COMMANDS
21692  $ $0 $@
21693
21694on `(hostname || uname -n) 2>/dev/null | sed 1q`
21695"
21696
21697_ACEOF
21698
21699case $ac_config_files in *"
21700"*) set x $ac_config_files; shift; ac_config_files=$*;;
21701esac
21702
21703case $ac_config_headers in *"
21704"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21705esac
21706
21707
21708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21709# Files that config.status was made for.
21710config_files="$ac_config_files"
21711config_headers="$ac_config_headers"
21712config_commands="$ac_config_commands"
21713
21714_ACEOF
21715
21716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21717ac_cs_usage="\
21718\`$as_me' instantiates files and other configuration actions
21719from templates according to the current configuration.  Unless the files
21720and actions are specified as TAGs, all are instantiated by default.
21721
21722Usage: $0 [OPTION]... [TAG]...
21723
21724  -h, --help       print this help, then exit
21725  -V, --version    print version number and configuration settings, then exit
21726      --config     print configuration, then exit
21727  -q, --quiet, --silent
21728                   do not print progress messages
21729  -d, --debug      don't remove temporary files
21730      --recheck    update $as_me by reconfiguring in the same conditions
21731      --file=FILE[:TEMPLATE]
21732                   instantiate the configuration file FILE
21733      --header=FILE[:TEMPLATE]
21734                   instantiate the configuration header FILE
21735
21736Configuration files:
21737$config_files
21738
21739Configuration headers:
21740$config_headers
21741
21742Configuration commands:
21743$config_commands
21744
21745Report bugs to <https://github.com/libpinyin/ibus-libpinyin/issues/new>."
21746
21747_ACEOF
21748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21749ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21750ac_cs_version="\\
21751ibus-libpinyin config.status 1.11.1
21752configured by $0, generated by GNU Autoconf 2.69,
21753  with options \\"\$ac_cs_config\\"
21754
21755Copyright (C) 2012 Free Software Foundation, Inc.
21756This config.status script is free software; the Free Software Foundation
21757gives unlimited permission to copy, distribute and modify it."
21758
21759ac_pwd='$ac_pwd'
21760srcdir='$srcdir'
21761INSTALL='$INSTALL'
21762MKDIR_P='$MKDIR_P'
21763AWK='$AWK'
21764test -n "\$AWK" || AWK=awk
21765_ACEOF
21766
21767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21768# The default lists apply if the user does not specify any file.
21769ac_need_defaults=:
21770while test $# != 0
21771do
21772  case $1 in
21773  --*=?*)
21774    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21775    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21776    ac_shift=:
21777    ;;
21778  --*=)
21779    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21780    ac_optarg=
21781    ac_shift=:
21782    ;;
21783  *)
21784    ac_option=$1
21785    ac_optarg=$2
21786    ac_shift=shift
21787    ;;
21788  esac
21789
21790  case $ac_option in
21791  # Handling of the options.
21792  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21793    ac_cs_recheck=: ;;
21794  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21795    $as_echo "$ac_cs_version"; exit ;;
21796  --config | --confi | --conf | --con | --co | --c )
21797    $as_echo "$ac_cs_config"; exit ;;
21798  --debug | --debu | --deb | --de | --d | -d )
21799    debug=: ;;
21800  --file | --fil | --fi | --f )
21801    $ac_shift
21802    case $ac_optarg in
21803    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21804    '') as_fn_error $? "missing file argument" ;;
21805    esac
21806    as_fn_append CONFIG_FILES " '$ac_optarg'"
21807    ac_need_defaults=false;;
21808  --header | --heade | --head | --hea )
21809    $ac_shift
21810    case $ac_optarg in
21811    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21812    esac
21813    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21814    ac_need_defaults=false;;
21815  --he | --h)
21816    # Conflict between --help and --header
21817    as_fn_error $? "ambiguous option: \`$1'
21818Try \`$0 --help' for more information.";;
21819  --help | --hel | -h )
21820    $as_echo "$ac_cs_usage"; exit ;;
21821  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21822  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21823    ac_cs_silent=: ;;
21824
21825  # This is an error.
21826  -*) as_fn_error $? "unrecognized option: \`$1'
21827Try \`$0 --help' for more information." ;;
21828
21829  *) as_fn_append ac_config_targets " $1"
21830     ac_need_defaults=false ;;
21831
21832  esac
21833  shift
21834done
21835
21836ac_configure_extra_args=
21837
21838if $ac_cs_silent; then
21839  exec 6>/dev/null
21840  ac_configure_extra_args="$ac_configure_extra_args --silent"
21841fi
21842
21843_ACEOF
21844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21845if \$ac_cs_recheck; then
21846  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21847  shift
21848  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21849  CONFIG_SHELL='$SHELL'
21850  export CONFIG_SHELL
21851  exec "\$@"
21852fi
21853
21854_ACEOF
21855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21856exec 5>>config.log
21857{
21858  echo
21859  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21860## Running $as_me. ##
21861_ASBOX
21862  $as_echo "$ac_log"
21863} >&5
21864
21865_ACEOF
21866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21867#
21868# INIT-COMMANDS
21869#
21870AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21871
21872
21873# The HP-UX ksh and POSIX shell print the target directory to stdout
21874# if CDPATH is set.
21875(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21876
21877sed_quote_subst='$sed_quote_subst'
21878double_quote_subst='$double_quote_subst'
21879delay_variable_subst='$delay_variable_subst'
21880enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21881macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21882macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21883enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21884pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21885enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21886shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21887SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21888ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21889PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21890host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21891host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21892host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21893build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21894build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21895build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21896SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21897Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21898GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21899EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21900FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21901LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21902NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21903LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21904max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21905ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21906exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21907lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21908lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21909lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21910lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21911lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21912reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21913reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21914OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21915deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21916file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21917file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21918want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21919DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21920sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21921AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21922AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21923archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21924STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21925RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21926old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21927old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21928old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21929lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21930CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21931CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21932compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21933GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21934lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21935lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21936lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21937lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21938lt_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"`'
21939lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21940nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21941lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21942lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21943objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21944MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21945lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21946lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21947lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21948lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21949lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21950need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21951MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21952DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21953NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21954LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21955OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21956OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21957libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21958shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21959extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21960archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21961enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21962export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21963whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21964compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21965old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21966old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21967archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21968archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21969module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21970module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21971with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21972allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21973no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21974hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21975hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21976hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21977hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21978hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21979hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21980hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21981inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21982link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21983always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21984export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21985exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21986include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21987prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21988postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21989file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21990variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21991need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21992need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21993version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21994runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21995shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21996shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21997libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21998library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21999soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22000install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22001postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22002postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22003finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22004finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22005hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22006sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22007configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22008configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22009hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22010enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22011enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22012enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22013old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22014striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22015compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22016predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22017postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22018predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22019postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22020compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22021LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22022reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22023reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22024old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22025compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22026GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22027lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22028lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22029lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22030lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22031lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22032archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22033enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22034export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22035whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22036compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22037old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22038old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22039archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22040archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22041module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22042module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22043with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22044allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22045no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22046hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22047hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22048hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22049hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22050hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22051hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22052hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22053inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22054link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22055always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22056export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22057exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22058include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22059prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22060postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22061file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22062hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22063compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22064predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22065postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22066predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22067postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22068compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22069
22070LTCC='$LTCC'
22071LTCFLAGS='$LTCFLAGS'
22072compiler='$compiler_DEFAULT'
22073
22074# A function that is used when there is no print builtin or printf.
22075func_fallback_echo ()
22076{
22077  eval 'cat <<_LTECHO_EOF
22078\$1
22079_LTECHO_EOF'
22080}
22081
22082# Quote evaled strings.
22083for var in SHELL \
22084ECHO \
22085PATH_SEPARATOR \
22086SED \
22087GREP \
22088EGREP \
22089FGREP \
22090LD \
22091NM \
22092LN_S \
22093lt_SP2NL \
22094lt_NL2SP \
22095reload_flag \
22096OBJDUMP \
22097deplibs_check_method \
22098file_magic_cmd \
22099file_magic_glob \
22100want_nocaseglob \
22101DLLTOOL \
22102sharedlib_from_linklib_cmd \
22103AR \
22104AR_FLAGS \
22105archiver_list_spec \
22106STRIP \
22107RANLIB \
22108CC \
22109CFLAGS \
22110compiler \
22111lt_cv_sys_global_symbol_pipe \
22112lt_cv_sys_global_symbol_to_cdecl \
22113lt_cv_sys_global_symbol_to_import \
22114lt_cv_sys_global_symbol_to_c_name_address \
22115lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22116lt_cv_nm_interface \
22117nm_file_list_spec \
22118lt_cv_truncate_bin \
22119lt_prog_compiler_no_builtin_flag \
22120lt_prog_compiler_pic \
22121lt_prog_compiler_wl \
22122lt_prog_compiler_static \
22123lt_cv_prog_compiler_c_o \
22124need_locks \
22125MANIFEST_TOOL \
22126DSYMUTIL \
22127NMEDIT \
22128LIPO \
22129OTOOL \
22130OTOOL64 \
22131shrext_cmds \
22132export_dynamic_flag_spec \
22133whole_archive_flag_spec \
22134compiler_needs_object \
22135with_gnu_ld \
22136allow_undefined_flag \
22137no_undefined_flag \
22138hardcode_libdir_flag_spec \
22139hardcode_libdir_separator \
22140exclude_expsyms \
22141include_expsyms \
22142file_list_spec \
22143variables_saved_for_relink \
22144libname_spec \
22145library_names_spec \
22146soname_spec \
22147install_override_mode \
22148finish_eval \
22149old_striplib \
22150striplib \
22151compiler_lib_search_dirs \
22152predep_objects \
22153postdep_objects \
22154predeps \
22155postdeps \
22156compiler_lib_search_path \
22157LD_CXX \
22158reload_flag_CXX \
22159compiler_CXX \
22160lt_prog_compiler_no_builtin_flag_CXX \
22161lt_prog_compiler_pic_CXX \
22162lt_prog_compiler_wl_CXX \
22163lt_prog_compiler_static_CXX \
22164lt_cv_prog_compiler_c_o_CXX \
22165export_dynamic_flag_spec_CXX \
22166whole_archive_flag_spec_CXX \
22167compiler_needs_object_CXX \
22168with_gnu_ld_CXX \
22169allow_undefined_flag_CXX \
22170no_undefined_flag_CXX \
22171hardcode_libdir_flag_spec_CXX \
22172hardcode_libdir_separator_CXX \
22173exclude_expsyms_CXX \
22174include_expsyms_CXX \
22175file_list_spec_CXX \
22176compiler_lib_search_dirs_CXX \
22177predep_objects_CXX \
22178postdep_objects_CXX \
22179predeps_CXX \
22180postdeps_CXX \
22181compiler_lib_search_path_CXX; do
22182    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22183    *[\\\\\\\`\\"\\\$]*)
22184      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22185      ;;
22186    *)
22187      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22188      ;;
22189    esac
22190done
22191
22192# Double-quote double-evaled strings.
22193for var in reload_cmds \
22194old_postinstall_cmds \
22195old_postuninstall_cmds \
22196old_archive_cmds \
22197extract_expsyms_cmds \
22198old_archive_from_new_cmds \
22199old_archive_from_expsyms_cmds \
22200archive_cmds \
22201archive_expsym_cmds \
22202module_cmds \
22203module_expsym_cmds \
22204export_symbols_cmds \
22205prelink_cmds \
22206postlink_cmds \
22207postinstall_cmds \
22208postuninstall_cmds \
22209finish_cmds \
22210sys_lib_search_path_spec \
22211configure_time_dlsearch_path \
22212configure_time_lt_sys_library_path \
22213reload_cmds_CXX \
22214old_archive_cmds_CXX \
22215old_archive_from_new_cmds_CXX \
22216old_archive_from_expsyms_cmds_CXX \
22217archive_cmds_CXX \
22218archive_expsym_cmds_CXX \
22219module_cmds_CXX \
22220module_expsym_cmds_CXX \
22221export_symbols_cmds_CXX \
22222prelink_cmds_CXX \
22223postlink_cmds_CXX; do
22224    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22225    *[\\\\\\\`\\"\\\$]*)
22226      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22227      ;;
22228    *)
22229      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22230      ;;
22231    esac
22232done
22233
22234ac_aux_dir='$ac_aux_dir'
22235
22236# See if we are running on zsh, and set the options that allow our
22237# commands through without removal of \ escapes INIT.
22238if test -n "\${ZSH_VERSION+set}"; then
22239   setopt NO_GLOB_SUBST
22240fi
22241
22242
22243    PACKAGE='$PACKAGE'
22244    VERSION='$VERSION'
22245    RM='$RM'
22246    ofile='$ofile'
22247
22248
22249
22250
22251
22252# Capture the value of obsolete ALL_LINGUAS because we need it to compute
22253    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22254    # from automake < 1.5.
22255    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22256    # Capture the value of LINGUAS because we need it to compute CATALOGS.
22257    LINGUAS="${LINGUAS-%UNSET%}"
22258
22259
22260_ACEOF
22261
22262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22263
22264# Handling of arguments.
22265for ac_config_target in $ac_config_targets
22266do
22267  case $ac_config_target in
22268    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22269    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22270    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22271    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22272    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22273    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22274    "ibus-libpinyin.spec") CONFIG_FILES="$CONFIG_FILES ibus-libpinyin.spec" ;;
22275    "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;;
22276    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22277    "src/libpinyin.xml.in") CONFIG_FILES="$CONFIG_FILES src/libpinyin.xml.in" ;;
22278    "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;;
22279    "setup/ibus-setup-libpinyin") CONFIG_FILES="$CONFIG_FILES setup/ibus-setup-libpinyin" ;;
22280    "setup/config.py") CONFIG_FILES="$CONFIG_FILES setup/config.py" ;;
22281    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
22282    "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;;
22283    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22284
22285  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22286  esac
22287done
22288
22289
22290# If the user did not use the arguments to specify the items to instantiate,
22291# then the envvar interface is used.  Set only those that are not.
22292# We use the long form for the default assignment because of an extremely
22293# bizarre bug on SunOS 4.1.3.
22294if $ac_need_defaults; then
22295  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22296  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22297  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22298fi
22299
22300# Have a temporary directory for convenience.  Make it in the build tree
22301# simply because there is no reason against having it here, and in addition,
22302# creating and moving files from /tmp can sometimes cause problems.
22303# Hook for its removal unless debugging.
22304# Note that there is a small window in which the directory will not be cleaned:
22305# after its creation but before its name has been assigned to `$tmp'.
22306$debug ||
22307{
22308  tmp= ac_tmp=
22309  trap 'exit_status=$?
22310  : "${ac_tmp:=$tmp}"
22311  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22312' 0
22313  trap 'as_fn_exit 1' 1 2 13 15
22314}
22315# Create a (secure) tmp directory for tmp files.
22316
22317{
22318  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22319  test -d "$tmp"
22320}  ||
22321{
22322  tmp=./conf$$-$RANDOM
22323  (umask 077 && mkdir "$tmp")
22324} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22325ac_tmp=$tmp
22326
22327# Set up the scripts for CONFIG_FILES section.
22328# No need to generate them if there are no CONFIG_FILES.
22329# This happens for instance with `./config.status config.h'.
22330if test -n "$CONFIG_FILES"; then
22331
22332
22333ac_cr=`echo X | tr X '\015'`
22334# On cygwin, bash can eat \r inside `` if the user requested igncr.
22335# But we know of no other shell where ac_cr would be empty at this
22336# point, so we can use a bashism as a fallback.
22337if test "x$ac_cr" = x; then
22338  eval ac_cr=\$\'\\r\'
22339fi
22340ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22341if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22342  ac_cs_awk_cr='\\r'
22343else
22344  ac_cs_awk_cr=$ac_cr
22345fi
22346
22347echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22348_ACEOF
22349
22350
22351{
22352  echo "cat >conf$$subs.awk <<_ACEOF" &&
22353  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22354  echo "_ACEOF"
22355} >conf$$subs.sh ||
22356  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22357ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22358ac_delim='%!_!# '
22359for ac_last_try in false false false false false :; do
22360  . ./conf$$subs.sh ||
22361    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22362
22363  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22364  if test $ac_delim_n = $ac_delim_num; then
22365    break
22366  elif $ac_last_try; then
22367    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22368  else
22369    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22370  fi
22371done
22372rm -f conf$$subs.sh
22373
22374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22375cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22376_ACEOF
22377sed -n '
22378h
22379s/^/S["/; s/!.*/"]=/
22380p
22381g
22382s/^[^!]*!//
22383:repl
22384t repl
22385s/'"$ac_delim"'$//
22386t delim
22387:nl
22388h
22389s/\(.\{148\}\)..*/\1/
22390t more1
22391s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22392p
22393n
22394b repl
22395:more1
22396s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22397p
22398g
22399s/.\{148\}//
22400t nl
22401:delim
22402h
22403s/\(.\{148\}\)..*/\1/
22404t more2
22405s/["\\]/\\&/g; s/^/"/; s/$/"/
22406p
22407b
22408:more2
22409s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22410p
22411g
22412s/.\{148\}//
22413t delim
22414' <conf$$subs.awk | sed '
22415/^[^""]/{
22416  N
22417  s/\n//
22418}
22419' >>$CONFIG_STATUS || ac_write_fail=1
22420rm -f conf$$subs.awk
22421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22422_ACAWK
22423cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22424  for (key in S) S_is_set[key] = 1
22425  FS = ""
22426
22427}
22428{
22429  line = $ 0
22430  nfields = split(line, field, "@")
22431  substed = 0
22432  len = length(field[1])
22433  for (i = 2; i < nfields; i++) {
22434    key = field[i]
22435    keylen = length(key)
22436    if (S_is_set[key]) {
22437      value = S[key]
22438      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22439      len += length(value) + length(field[++i])
22440      substed = 1
22441    } else
22442      len += 1 + keylen
22443  }
22444
22445  print line
22446}
22447
22448_ACAWK
22449_ACEOF
22450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22451if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22452  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22453else
22454  cat
22455fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22456  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22457_ACEOF
22458
22459# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22460# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22461# trailing colons and then remove the whole line if VPATH becomes empty
22462# (actually we leave an empty line to preserve line numbers).
22463if test "x$srcdir" = x.; then
22464  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22465h
22466s///
22467s/^/:/
22468s/[	 ]*$/:/
22469s/:\$(srcdir):/:/g
22470s/:\${srcdir}:/:/g
22471s/:@srcdir@:/:/g
22472s/^:*//
22473s/:*$//
22474x
22475s/\(=[	 ]*\).*/\1/
22476G
22477s/\n//
22478s/^[^=]*=[	 ]*$//
22479}'
22480fi
22481
22482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22483fi # test -n "$CONFIG_FILES"
22484
22485# Set up the scripts for CONFIG_HEADERS section.
22486# No need to generate them if there are no CONFIG_HEADERS.
22487# This happens for instance with `./config.status Makefile'.
22488if test -n "$CONFIG_HEADERS"; then
22489cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22490BEGIN {
22491_ACEOF
22492
22493# Transform confdefs.h into an awk script `defines.awk', embedded as
22494# here-document in config.status, that substitutes the proper values into
22495# config.h.in to produce config.h.
22496
22497# Create a delimiter string that does not exist in confdefs.h, to ease
22498# handling of long lines.
22499ac_delim='%!_!# '
22500for ac_last_try in false false :; do
22501  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22502  if test -z "$ac_tt"; then
22503    break
22504  elif $ac_last_try; then
22505    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22506  else
22507    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22508  fi
22509done
22510
22511# For the awk script, D is an array of macro values keyed by name,
22512# likewise P contains macro parameters if any.  Preserve backslash
22513# newline sequences.
22514
22515ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22516sed -n '
22517s/.\{148\}/&'"$ac_delim"'/g
22518t rset
22519:rset
22520s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22521t def
22522d
22523:def
22524s/\\$//
22525t bsnl
22526s/["\\]/\\&/g
22527s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22528D["\1"]=" \3"/p
22529s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22530d
22531:bsnl
22532s/["\\]/\\&/g
22533s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22534D["\1"]=" \3\\\\\\n"\\/p
22535t cont
22536s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22537t cont
22538d
22539:cont
22540n
22541s/.\{148\}/&'"$ac_delim"'/g
22542t clear
22543:clear
22544s/\\$//
22545t bsnlc
22546s/["\\]/\\&/g; s/^/"/; s/$/"/p
22547d
22548:bsnlc
22549s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22550b cont
22551' <confdefs.h | sed '
22552s/'"$ac_delim"'/"\\\
22553"/g' >>$CONFIG_STATUS || ac_write_fail=1
22554
22555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22556  for (key in D) D_is_set[key] = 1
22557  FS = ""
22558}
22559/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22560  line = \$ 0
22561  split(line, arg, " ")
22562  if (arg[1] == "#") {
22563    defundef = arg[2]
22564    mac1 = arg[3]
22565  } else {
22566    defundef = substr(arg[1], 2)
22567    mac1 = arg[2]
22568  }
22569  split(mac1, mac2, "(") #)
22570  macro = mac2[1]
22571  prefix = substr(line, 1, index(line, defundef) - 1)
22572  if (D_is_set[macro]) {
22573    # Preserve the white space surrounding the "#".
22574    print prefix "define", macro P[macro] D[macro]
22575    next
22576  } else {
22577    # Replace #undef with comments.  This is necessary, for example,
22578    # in the case of _POSIX_SOURCE, which is predefined and required
22579    # on some systems where configure will not decide to define it.
22580    if (defundef == "undef") {
22581      print "/*", prefix defundef, macro, "*/"
22582      next
22583    }
22584  }
22585}
22586{ print }
22587_ACAWK
22588_ACEOF
22589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22590  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22591fi # test -n "$CONFIG_HEADERS"
22592
22593
22594eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22595shift
22596for ac_tag
22597do
22598  case $ac_tag in
22599  :[FHLC]) ac_mode=$ac_tag; continue;;
22600  esac
22601  case $ac_mode$ac_tag in
22602  :[FHL]*:*);;
22603  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22604  :[FH]-) ac_tag=-:-;;
22605  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22606  esac
22607  ac_save_IFS=$IFS
22608  IFS=:
22609  set x $ac_tag
22610  IFS=$ac_save_IFS
22611  shift
22612  ac_file=$1
22613  shift
22614
22615  case $ac_mode in
22616  :L) ac_source=$1;;
22617  :[FH])
22618    ac_file_inputs=
22619    for ac_f
22620    do
22621      case $ac_f in
22622      -) ac_f="$ac_tmp/stdin";;
22623      *) # Look for the file first in the build tree, then in the source tree
22624	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22625	 # because $ac_f cannot contain `:'.
22626	 test -f "$ac_f" ||
22627	   case $ac_f in
22628	   [\\/$]*) false;;
22629	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22630	   esac ||
22631	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22632      esac
22633      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22634      as_fn_append ac_file_inputs " '$ac_f'"
22635    done
22636
22637    # Let's still pretend it is `configure' which instantiates (i.e., don't
22638    # use $as_me), people would be surprised to read:
22639    #    /* config.h.  Generated by config.status.  */
22640    configure_input='Generated from '`
22641	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22642	`' by configure.'
22643    if test x"$ac_file" != x-; then
22644      configure_input="$ac_file.  $configure_input"
22645      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22646$as_echo "$as_me: creating $ac_file" >&6;}
22647    fi
22648    # Neutralize special characters interpreted by sed in replacement strings.
22649    case $configure_input in #(
22650    *\&* | *\|* | *\\* )
22651       ac_sed_conf_input=`$as_echo "$configure_input" |
22652       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22653    *) ac_sed_conf_input=$configure_input;;
22654    esac
22655
22656    case $ac_tag in
22657    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22658      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22659    esac
22660    ;;
22661  esac
22662
22663  ac_dir=`$as_dirname -- "$ac_file" ||
22664$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22665	 X"$ac_file" : 'X\(//\)[^/]' \| \
22666	 X"$ac_file" : 'X\(//\)$' \| \
22667	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22668$as_echo X"$ac_file" |
22669    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22670	    s//\1/
22671	    q
22672	  }
22673	  /^X\(\/\/\)[^/].*/{
22674	    s//\1/
22675	    q
22676	  }
22677	  /^X\(\/\/\)$/{
22678	    s//\1/
22679	    q
22680	  }
22681	  /^X\(\/\).*/{
22682	    s//\1/
22683	    q
22684	  }
22685	  s/.*/./; q'`
22686  as_dir="$ac_dir"; as_fn_mkdir_p
22687  ac_builddir=.
22688
22689case "$ac_dir" in
22690.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22691*)
22692  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22693  # A ".." for each directory in $ac_dir_suffix.
22694  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22695  case $ac_top_builddir_sub in
22696  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22697  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22698  esac ;;
22699esac
22700ac_abs_top_builddir=$ac_pwd
22701ac_abs_builddir=$ac_pwd$ac_dir_suffix
22702# for backward compatibility:
22703ac_top_builddir=$ac_top_build_prefix
22704
22705case $srcdir in
22706  .)  # We are building in place.
22707    ac_srcdir=.
22708    ac_top_srcdir=$ac_top_builddir_sub
22709    ac_abs_top_srcdir=$ac_pwd ;;
22710  [\\/]* | ?:[\\/]* )  # Absolute name.
22711    ac_srcdir=$srcdir$ac_dir_suffix;
22712    ac_top_srcdir=$srcdir
22713    ac_abs_top_srcdir=$srcdir ;;
22714  *) # Relative name.
22715    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22716    ac_top_srcdir=$ac_top_build_prefix$srcdir
22717    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22718esac
22719ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22720
22721
22722  case $ac_mode in
22723  :F)
22724  #
22725  # CONFIG_FILE
22726  #
22727
22728  case $INSTALL in
22729  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22730  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22731  esac
22732  ac_MKDIR_P=$MKDIR_P
22733  case $MKDIR_P in
22734  [\\/$]* | ?:[\\/]* ) ;;
22735  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22736  esac
22737_ACEOF
22738
22739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22740# If the template does not know about datarootdir, expand it.
22741# FIXME: This hack should be removed a few years after 2.60.
22742ac_datarootdir_hack=; ac_datarootdir_seen=
22743ac_sed_dataroot='
22744/datarootdir/ {
22745  p
22746  q
22747}
22748/@datadir@/p
22749/@docdir@/p
22750/@infodir@/p
22751/@localedir@/p
22752/@mandir@/p'
22753case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22754*datarootdir*) ac_datarootdir_seen=yes;;
22755*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22756  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22757$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22758_ACEOF
22759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22760  ac_datarootdir_hack='
22761  s&@datadir@&$datadir&g
22762  s&@docdir@&$docdir&g
22763  s&@infodir@&$infodir&g
22764  s&@localedir@&$localedir&g
22765  s&@mandir@&$mandir&g
22766  s&\\\${datarootdir}&$datarootdir&g' ;;
22767esac
22768_ACEOF
22769
22770# Neutralize VPATH when `$srcdir' = `.'.
22771# Shell code in configure.ac might set extrasub.
22772# FIXME: do we really want to maintain this feature?
22773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22774ac_sed_extra="$ac_vpsub
22775$extrasub
22776_ACEOF
22777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22778:t
22779/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22780s|@configure_input@|$ac_sed_conf_input|;t t
22781s&@top_builddir@&$ac_top_builddir_sub&;t t
22782s&@top_build_prefix@&$ac_top_build_prefix&;t t
22783s&@srcdir@&$ac_srcdir&;t t
22784s&@abs_srcdir@&$ac_abs_srcdir&;t t
22785s&@top_srcdir@&$ac_top_srcdir&;t t
22786s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22787s&@builddir@&$ac_builddir&;t t
22788s&@abs_builddir@&$ac_abs_builddir&;t t
22789s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22790s&@INSTALL@&$ac_INSTALL&;t t
22791s&@MKDIR_P@&$ac_MKDIR_P&;t t
22792$ac_datarootdir_hack
22793"
22794eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22795  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22796
22797test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22798  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22799  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22800      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22801  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22802which seems to be undefined.  Please make sure it is defined" >&5
22803$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22804which seems to be undefined.  Please make sure it is defined" >&2;}
22805
22806  rm -f "$ac_tmp/stdin"
22807  case $ac_file in
22808  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22809  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22810  esac \
22811  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22812 ;;
22813  :H)
22814  #
22815  # CONFIG_HEADER
22816  #
22817  if test x"$ac_file" != x-; then
22818    {
22819      $as_echo "/* $configure_input  */" \
22820      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22821    } >"$ac_tmp/config.h" \
22822      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22823    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22824      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22825$as_echo "$as_me: $ac_file is unchanged" >&6;}
22826    else
22827      rm -f "$ac_file"
22828      mv "$ac_tmp/config.h" "$ac_file" \
22829	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22830    fi
22831  else
22832    $as_echo "/* $configure_input  */" \
22833      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22834      || as_fn_error $? "could not create -" "$LINENO" 5
22835  fi
22836# Compute "$ac_file"'s index in $config_headers.
22837_am_arg="$ac_file"
22838_am_stamp_count=1
22839for _am_header in $config_headers :; do
22840  case $_am_header in
22841    $_am_arg | $_am_arg:* )
22842      break ;;
22843    * )
22844      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22845  esac
22846done
22847echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22848$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22849	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22850	 X"$_am_arg" : 'X\(//\)$' \| \
22851	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22852$as_echo X"$_am_arg" |
22853    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22854	    s//\1/
22855	    q
22856	  }
22857	  /^X\(\/\/\)[^/].*/{
22858	    s//\1/
22859	    q
22860	  }
22861	  /^X\(\/\/\)$/{
22862	    s//\1/
22863	    q
22864	  }
22865	  /^X\(\/\).*/{
22866	    s//\1/
22867	    q
22868	  }
22869	  s/.*/./; q'`/stamp-h$_am_stamp_count
22870 ;;
22871
22872  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22873$as_echo "$as_me: executing $ac_file commands" >&6;}
22874 ;;
22875  esac
22876
22877
22878  case $ac_file$ac_mode in
22879    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22880  # Older Autoconf quotes --file arguments for eval, but not when files
22881  # are listed without --file.  Let's play safe and only enable the eval
22882  # if we detect the quoting.
22883  # TODO: see whether this extra hack can be removed once we start
22884  # requiring Autoconf 2.70 or later.
22885  case $CONFIG_FILES in #(
22886  *\'*) :
22887    eval set x "$CONFIG_FILES" ;; #(
22888  *) :
22889    set x $CONFIG_FILES ;; #(
22890  *) :
22891     ;;
22892esac
22893  shift
22894  # Used to flag and report bootstrapping failures.
22895  am_rc=0
22896  for am_mf
22897  do
22898    # Strip MF so we end up with the name of the file.
22899    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22900    # Check whether this is an Automake generated Makefile which includes
22901    # dependency-tracking related rules and includes.
22902    # Grep'ing the whole file directly is not great: AIX grep has a line
22903    # limit of 2048, but all sed's we know have understand at least 4000.
22904    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22905      || continue
22906    am_dirpart=`$as_dirname -- "$am_mf" ||
22907$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22908	 X"$am_mf" : 'X\(//\)[^/]' \| \
22909	 X"$am_mf" : 'X\(//\)$' \| \
22910	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22911$as_echo X"$am_mf" |
22912    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22913	    s//\1/
22914	    q
22915	  }
22916	  /^X\(\/\/\)[^/].*/{
22917	    s//\1/
22918	    q
22919	  }
22920	  /^X\(\/\/\)$/{
22921	    s//\1/
22922	    q
22923	  }
22924	  /^X\(\/\).*/{
22925	    s//\1/
22926	    q
22927	  }
22928	  s/.*/./; q'`
22929    am_filepart=`$as_basename -- "$am_mf" ||
22930$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22931	 X"$am_mf" : 'X\(//\)$' \| \
22932	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22933$as_echo X/"$am_mf" |
22934    sed '/^.*\/\([^/][^/]*\)\/*$/{
22935	    s//\1/
22936	    q
22937	  }
22938	  /^X\/\(\/\/\)$/{
22939	    s//\1/
22940	    q
22941	  }
22942	  /^X\/\(\/\).*/{
22943	    s//\1/
22944	    q
22945	  }
22946	  s/.*/./; q'`
22947    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22948      && sed -e '/# am--include-marker/d' "$am_filepart" \
22949        | $MAKE -f - am--depfiles" >&5
22950   (cd "$am_dirpart" \
22951      && sed -e '/# am--include-marker/d' "$am_filepart" \
22952        | $MAKE -f - am--depfiles) >&5 2>&5
22953   ac_status=$?
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); } || am_rc=$?
22956  done
22957  if test $am_rc -ne 0; then
22958    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22960as_fn_error $? "Something went wrong bootstrapping makefile fragments
22961    for automatic dependency tracking.  Try re-running configure with the
22962    '--disable-dependency-tracking' option to at least be able to build
22963    the package (albeit without support for automatic dependency tracking).
22964See \`config.log' for more details" "$LINENO" 5; }
22965  fi
22966  { am_dirpart=; unset am_dirpart;}
22967  { am_filepart=; unset am_filepart;}
22968  { am_mf=; unset am_mf;}
22969  { am_rc=; unset am_rc;}
22970  rm -f conftest-deps.mk
22971}
22972 ;;
22973    "libtool":C)
22974
22975    # See if we are running on zsh, and set the options that allow our
22976    # commands through without removal of \ escapes.
22977    if test -n "${ZSH_VERSION+set}"; then
22978      setopt NO_GLOB_SUBST
22979    fi
22980
22981    cfgfile=${ofile}T
22982    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22983    $RM "$cfgfile"
22984
22985    cat <<_LT_EOF >> "$cfgfile"
22986#! $SHELL
22987# Generated automatically by $as_me ($PACKAGE) $VERSION
22988# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22989# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22990
22991# Provide generalized library-building support services.
22992# Written by Gordon Matzigkeit, 1996
22993
22994# Copyright (C) 2014 Free Software Foundation, Inc.
22995# This is free software; see the source for copying conditions.  There is NO
22996# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22997
22998# GNU Libtool is free software; you can redistribute it and/or modify
22999# it under the terms of the GNU General Public License as published by
23000# the Free Software Foundation; either version 2 of of the License, or
23001# (at your option) any later version.
23002#
23003# As a special exception to the GNU General Public License, if you
23004# distribute this file as part of a program or library that is built
23005# using GNU Libtool, you may include this file under the  same
23006# distribution terms that you use for the rest of that program.
23007#
23008# GNU Libtool is distributed in the hope that it will be useful, but
23009# WITHOUT ANY WARRANTY; without even the implied warranty of
23010# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23011# GNU General Public License for more details.
23012#
23013# You should have received a copy of the GNU General Public License
23014# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23015
23016
23017# The names of the tagged configurations supported by this script.
23018available_tags='CXX '
23019
23020# Configured defaults for sys_lib_dlsearch_path munging.
23021: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23022
23023# ### BEGIN LIBTOOL CONFIG
23024
23025# Whether or not to build static libraries.
23026build_old_libs=$enable_static
23027
23028# Which release of libtool.m4 was used?
23029macro_version=$macro_version
23030macro_revision=$macro_revision
23031
23032# Whether or not to build shared libraries.
23033build_libtool_libs=$enable_shared
23034
23035# What type of objects to build.
23036pic_mode=$pic_mode
23037
23038# Whether or not to optimize for fast installation.
23039fast_install=$enable_fast_install
23040
23041# Shared archive member basename,for filename based shared library versioning on AIX.
23042shared_archive_member_spec=$shared_archive_member_spec
23043
23044# Shell to use when invoking shell scripts.
23045SHELL=$lt_SHELL
23046
23047# An echo program that protects backslashes.
23048ECHO=$lt_ECHO
23049
23050# The PATH separator for the build system.
23051PATH_SEPARATOR=$lt_PATH_SEPARATOR
23052
23053# The host system.
23054host_alias=$host_alias
23055host=$host
23056host_os=$host_os
23057
23058# The build system.
23059build_alias=$build_alias
23060build=$build
23061build_os=$build_os
23062
23063# A sed program that does not truncate output.
23064SED=$lt_SED
23065
23066# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23067Xsed="\$SED -e 1s/^X//"
23068
23069# A grep program that handles long lines.
23070GREP=$lt_GREP
23071
23072# An ERE matcher.
23073EGREP=$lt_EGREP
23074
23075# A literal string matcher.
23076FGREP=$lt_FGREP
23077
23078# A BSD- or MS-compatible name lister.
23079NM=$lt_NM
23080
23081# Whether we need soft or hard links.
23082LN_S=$lt_LN_S
23083
23084# What is the maximum length of a command?
23085max_cmd_len=$max_cmd_len
23086
23087# Object file suffix (normally "o").
23088objext=$ac_objext
23089
23090# Executable file suffix (normally "").
23091exeext=$exeext
23092
23093# whether the shell understands "unset".
23094lt_unset=$lt_unset
23095
23096# turn spaces into newlines.
23097SP2NL=$lt_lt_SP2NL
23098
23099# turn newlines into spaces.
23100NL2SP=$lt_lt_NL2SP
23101
23102# convert \$build file names to \$host format.
23103to_host_file_cmd=$lt_cv_to_host_file_cmd
23104
23105# convert \$build files to toolchain format.
23106to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23107
23108# An object symbol dumper.
23109OBJDUMP=$lt_OBJDUMP
23110
23111# Method to check whether dependent libraries are shared objects.
23112deplibs_check_method=$lt_deplibs_check_method
23113
23114# Command to use when deplibs_check_method = "file_magic".
23115file_magic_cmd=$lt_file_magic_cmd
23116
23117# How to find potential files when deplibs_check_method = "file_magic".
23118file_magic_glob=$lt_file_magic_glob
23119
23120# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23121want_nocaseglob=$lt_want_nocaseglob
23122
23123# DLL creation program.
23124DLLTOOL=$lt_DLLTOOL
23125
23126# Command to associate shared and link libraries.
23127sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23128
23129# The archiver.
23130AR=$lt_AR
23131
23132# Flags to create an archive.
23133AR_FLAGS=$lt_AR_FLAGS
23134
23135# How to feed a file listing to the archiver.
23136archiver_list_spec=$lt_archiver_list_spec
23137
23138# A symbol stripping program.
23139STRIP=$lt_STRIP
23140
23141# Commands used to install an old-style archive.
23142RANLIB=$lt_RANLIB
23143old_postinstall_cmds=$lt_old_postinstall_cmds
23144old_postuninstall_cmds=$lt_old_postuninstall_cmds
23145
23146# Whether to use a lock for old archive extraction.
23147lock_old_archive_extraction=$lock_old_archive_extraction
23148
23149# A C compiler.
23150LTCC=$lt_CC
23151
23152# LTCC compiler flags.
23153LTCFLAGS=$lt_CFLAGS
23154
23155# Take the output of nm and produce a listing of raw symbols and C names.
23156global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23157
23158# Transform the output of nm in a proper C declaration.
23159global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23160
23161# Transform the output of nm into a list of symbols to manually relocate.
23162global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23163
23164# Transform the output of nm in a C name address pair.
23165global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23166
23167# Transform the output of nm in a C name address pair when lib prefix is needed.
23168global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23169
23170# The name lister interface.
23171nm_interface=$lt_lt_cv_nm_interface
23172
23173# Specify filename containing input files for \$NM.
23174nm_file_list_spec=$lt_nm_file_list_spec
23175
23176# The root where to search for dependent libraries,and where our libraries should be installed.
23177lt_sysroot=$lt_sysroot
23178
23179# Command to truncate a binary pipe.
23180lt_truncate_bin=$lt_lt_cv_truncate_bin
23181
23182# The name of the directory that contains temporary libtool files.
23183objdir=$objdir
23184
23185# Used to examine libraries when file_magic_cmd begins with "file".
23186MAGIC_CMD=$MAGIC_CMD
23187
23188# Must we lock files when doing compilation?
23189need_locks=$lt_need_locks
23190
23191# Manifest tool.
23192MANIFEST_TOOL=$lt_MANIFEST_TOOL
23193
23194# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23195DSYMUTIL=$lt_DSYMUTIL
23196
23197# Tool to change global to local symbols on Mac OS X.
23198NMEDIT=$lt_NMEDIT
23199
23200# Tool to manipulate fat objects and archives on Mac OS X.
23201LIPO=$lt_LIPO
23202
23203# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23204OTOOL=$lt_OTOOL
23205
23206# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23207OTOOL64=$lt_OTOOL64
23208
23209# Old archive suffix (normally "a").
23210libext=$libext
23211
23212# Shared library suffix (normally ".so").
23213shrext_cmds=$lt_shrext_cmds
23214
23215# The commands to extract the exported symbol list from a shared archive.
23216extract_expsyms_cmds=$lt_extract_expsyms_cmds
23217
23218# Variables whose values should be saved in libtool wrapper scripts and
23219# restored at link time.
23220variables_saved_for_relink=$lt_variables_saved_for_relink
23221
23222# Do we need the "lib" prefix for modules?
23223need_lib_prefix=$need_lib_prefix
23224
23225# Do we need a version for libraries?
23226need_version=$need_version
23227
23228# Library versioning type.
23229version_type=$version_type
23230
23231# Shared library runtime path variable.
23232runpath_var=$runpath_var
23233
23234# Shared library path variable.
23235shlibpath_var=$shlibpath_var
23236
23237# Is shlibpath searched before the hard-coded library search path?
23238shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23239
23240# Format of library name prefix.
23241libname_spec=$lt_libname_spec
23242
23243# List of archive names.  First name is the real one, the rest are links.
23244# The last name is the one that the linker finds with -lNAME
23245library_names_spec=$lt_library_names_spec
23246
23247# The coded name of the library, if different from the real name.
23248soname_spec=$lt_soname_spec
23249
23250# Permission mode override for installation of shared libraries.
23251install_override_mode=$lt_install_override_mode
23252
23253# Command to use after installation of a shared archive.
23254postinstall_cmds=$lt_postinstall_cmds
23255
23256# Command to use after uninstallation of a shared archive.
23257postuninstall_cmds=$lt_postuninstall_cmds
23258
23259# Commands used to finish a libtool library installation in a directory.
23260finish_cmds=$lt_finish_cmds
23261
23262# As "finish_cmds", except a single script fragment to be evaled but
23263# not shown.
23264finish_eval=$lt_finish_eval
23265
23266# Whether we should hardcode library paths into libraries.
23267hardcode_into_libs=$hardcode_into_libs
23268
23269# Compile-time system search path for libraries.
23270sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23271
23272# Detected run-time system search path for libraries.
23273sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23274
23275# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23276configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23277
23278# Whether dlopen is supported.
23279dlopen_support=$enable_dlopen
23280
23281# Whether dlopen of programs is supported.
23282dlopen_self=$enable_dlopen_self
23283
23284# Whether dlopen of statically linked programs is supported.
23285dlopen_self_static=$enable_dlopen_self_static
23286
23287# Commands to strip libraries.
23288old_striplib=$lt_old_striplib
23289striplib=$lt_striplib
23290
23291
23292# The linker used to build libraries.
23293LD=$lt_LD
23294
23295# How to create reloadable object files.
23296reload_flag=$lt_reload_flag
23297reload_cmds=$lt_reload_cmds
23298
23299# Commands used to build an old-style archive.
23300old_archive_cmds=$lt_old_archive_cmds
23301
23302# A language specific compiler.
23303CC=$lt_compiler
23304
23305# Is the compiler the GNU compiler?
23306with_gcc=$GCC
23307
23308# Compiler flag to turn off builtin functions.
23309no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23310
23311# Additional compiler flags for building library objects.
23312pic_flag=$lt_lt_prog_compiler_pic
23313
23314# How to pass a linker flag through the compiler.
23315wl=$lt_lt_prog_compiler_wl
23316
23317# Compiler flag to prevent dynamic linking.
23318link_static_flag=$lt_lt_prog_compiler_static
23319
23320# Does compiler simultaneously support -c and -o options?
23321compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23322
23323# Whether or not to add -lc for building shared libraries.
23324build_libtool_need_lc=$archive_cmds_need_lc
23325
23326# Whether or not to disallow shared libs when runtime libs are static.
23327allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23328
23329# Compiler flag to allow reflexive dlopens.
23330export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23331
23332# Compiler flag to generate shared objects directly from archives.
23333whole_archive_flag_spec=$lt_whole_archive_flag_spec
23334
23335# Whether the compiler copes with passing no objects directly.
23336compiler_needs_object=$lt_compiler_needs_object
23337
23338# Create an old-style archive from a shared archive.
23339old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23340
23341# Create a temporary old-style archive to link instead of a shared archive.
23342old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23343
23344# Commands used to build a shared archive.
23345archive_cmds=$lt_archive_cmds
23346archive_expsym_cmds=$lt_archive_expsym_cmds
23347
23348# Commands used to build a loadable module if different from building
23349# a shared archive.
23350module_cmds=$lt_module_cmds
23351module_expsym_cmds=$lt_module_expsym_cmds
23352
23353# Whether we are building with GNU ld or not.
23354with_gnu_ld=$lt_with_gnu_ld
23355
23356# Flag that allows shared libraries with undefined symbols to be built.
23357allow_undefined_flag=$lt_allow_undefined_flag
23358
23359# Flag that enforces no undefined symbols.
23360no_undefined_flag=$lt_no_undefined_flag
23361
23362# Flag to hardcode \$libdir into a binary during linking.
23363# This must work even if \$libdir does not exist
23364hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23365
23366# Whether we need a single "-rpath" flag with a separated argument.
23367hardcode_libdir_separator=$lt_hardcode_libdir_separator
23368
23369# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23370# DIR into the resulting binary.
23371hardcode_direct=$hardcode_direct
23372
23373# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23374# DIR into the resulting binary and the resulting library dependency is
23375# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23376# library is relocated.
23377hardcode_direct_absolute=$hardcode_direct_absolute
23378
23379# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23380# into the resulting binary.
23381hardcode_minus_L=$hardcode_minus_L
23382
23383# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23384# into the resulting binary.
23385hardcode_shlibpath_var=$hardcode_shlibpath_var
23386
23387# Set to "yes" if building a shared library automatically hardcodes DIR
23388# into the library and all subsequent libraries and executables linked
23389# against it.
23390hardcode_automatic=$hardcode_automatic
23391
23392# Set to yes if linker adds runtime paths of dependent libraries
23393# to runtime path list.
23394inherit_rpath=$inherit_rpath
23395
23396# Whether libtool must link a program against all its dependency libraries.
23397link_all_deplibs=$link_all_deplibs
23398
23399# Set to "yes" if exported symbols are required.
23400always_export_symbols=$always_export_symbols
23401
23402# The commands to list exported symbols.
23403export_symbols_cmds=$lt_export_symbols_cmds
23404
23405# Symbols that should not be listed in the preloaded symbols.
23406exclude_expsyms=$lt_exclude_expsyms
23407
23408# Symbols that must always be exported.
23409include_expsyms=$lt_include_expsyms
23410
23411# Commands necessary for linking programs (against libraries) with templates.
23412prelink_cmds=$lt_prelink_cmds
23413
23414# Commands necessary for finishing linking programs.
23415postlink_cmds=$lt_postlink_cmds
23416
23417# Specify filename containing input files.
23418file_list_spec=$lt_file_list_spec
23419
23420# How to hardcode a shared library path into an executable.
23421hardcode_action=$hardcode_action
23422
23423# The directories searched by this compiler when creating a shared library.
23424compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23425
23426# Dependencies to place before and after the objects being linked to
23427# create a shared library.
23428predep_objects=$lt_predep_objects
23429postdep_objects=$lt_postdep_objects
23430predeps=$lt_predeps
23431postdeps=$lt_postdeps
23432
23433# The library search path used internally by the compiler when linking
23434# a shared library.
23435compiler_lib_search_path=$lt_compiler_lib_search_path
23436
23437# ### END LIBTOOL CONFIG
23438
23439_LT_EOF
23440
23441    cat <<'_LT_EOF' >> "$cfgfile"
23442
23443# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23444
23445# func_munge_path_list VARIABLE PATH
23446# -----------------------------------
23447# VARIABLE is name of variable containing _space_ separated list of
23448# directories to be munged by the contents of PATH, which is string
23449# having a format:
23450# "DIR[:DIR]:"
23451#       string "DIR[ DIR]" will be prepended to VARIABLE
23452# ":DIR[:DIR]"
23453#       string "DIR[ DIR]" will be appended to VARIABLE
23454# "DIRP[:DIRP]::[DIRA:]DIRA"
23455#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23456#       "DIRA[ DIRA]" will be appended to VARIABLE
23457# "DIR[:DIR]"
23458#       VARIABLE will be replaced by "DIR[ DIR]"
23459func_munge_path_list ()
23460{
23461    case x$2 in
23462    x)
23463        ;;
23464    *:)
23465        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23466        ;;
23467    x:*)
23468        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23469        ;;
23470    *::*)
23471        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23472        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23473        ;;
23474    *)
23475        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23476        ;;
23477    esac
23478}
23479
23480
23481# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23482func_cc_basename ()
23483{
23484    for cc_temp in $*""; do
23485      case $cc_temp in
23486        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23487        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23488        \-*) ;;
23489        *) break;;
23490      esac
23491    done
23492    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23493}
23494
23495
23496# ### END FUNCTIONS SHARED WITH CONFIGURE
23497
23498_LT_EOF
23499
23500  case $host_os in
23501  aix3*)
23502    cat <<\_LT_EOF >> "$cfgfile"
23503# AIX sometimes has problems with the GCC collect2 program.  For some
23504# reason, if we set the COLLECT_NAMES environment variable, the problems
23505# vanish in a puff of smoke.
23506if test set != "${COLLECT_NAMES+set}"; then
23507  COLLECT_NAMES=
23508  export COLLECT_NAMES
23509fi
23510_LT_EOF
23511    ;;
23512  esac
23513
23514
23515ltmain=$ac_aux_dir/ltmain.sh
23516
23517
23518  # We use sed instead of cat because bash on DJGPP gets confused if
23519  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23520  # text mode, it properly converts lines to CR/LF.  This bash problem
23521  # is reportedly fixed, but why not run on old versions too?
23522  sed '$q' "$ltmain" >> "$cfgfile" \
23523     || (rm -f "$cfgfile"; exit 1)
23524
23525   mv -f "$cfgfile" "$ofile" ||
23526    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23527  chmod +x "$ofile"
23528
23529
23530    cat <<_LT_EOF >> "$ofile"
23531
23532# ### BEGIN LIBTOOL TAG CONFIG: CXX
23533
23534# The linker used to build libraries.
23535LD=$lt_LD_CXX
23536
23537# How to create reloadable object files.
23538reload_flag=$lt_reload_flag_CXX
23539reload_cmds=$lt_reload_cmds_CXX
23540
23541# Commands used to build an old-style archive.
23542old_archive_cmds=$lt_old_archive_cmds_CXX
23543
23544# A language specific compiler.
23545CC=$lt_compiler_CXX
23546
23547# Is the compiler the GNU compiler?
23548with_gcc=$GCC_CXX
23549
23550# Compiler flag to turn off builtin functions.
23551no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23552
23553# Additional compiler flags for building library objects.
23554pic_flag=$lt_lt_prog_compiler_pic_CXX
23555
23556# How to pass a linker flag through the compiler.
23557wl=$lt_lt_prog_compiler_wl_CXX
23558
23559# Compiler flag to prevent dynamic linking.
23560link_static_flag=$lt_lt_prog_compiler_static_CXX
23561
23562# Does compiler simultaneously support -c and -o options?
23563compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23564
23565# Whether or not to add -lc for building shared libraries.
23566build_libtool_need_lc=$archive_cmds_need_lc_CXX
23567
23568# Whether or not to disallow shared libs when runtime libs are static.
23569allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23570
23571# Compiler flag to allow reflexive dlopens.
23572export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23573
23574# Compiler flag to generate shared objects directly from archives.
23575whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23576
23577# Whether the compiler copes with passing no objects directly.
23578compiler_needs_object=$lt_compiler_needs_object_CXX
23579
23580# Create an old-style archive from a shared archive.
23581old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23582
23583# Create a temporary old-style archive to link instead of a shared archive.
23584old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23585
23586# Commands used to build a shared archive.
23587archive_cmds=$lt_archive_cmds_CXX
23588archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23589
23590# Commands used to build a loadable module if different from building
23591# a shared archive.
23592module_cmds=$lt_module_cmds_CXX
23593module_expsym_cmds=$lt_module_expsym_cmds_CXX
23594
23595# Whether we are building with GNU ld or not.
23596with_gnu_ld=$lt_with_gnu_ld_CXX
23597
23598# Flag that allows shared libraries with undefined symbols to be built.
23599allow_undefined_flag=$lt_allow_undefined_flag_CXX
23600
23601# Flag that enforces no undefined symbols.
23602no_undefined_flag=$lt_no_undefined_flag_CXX
23603
23604# Flag to hardcode \$libdir into a binary during linking.
23605# This must work even if \$libdir does not exist
23606hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23607
23608# Whether we need a single "-rpath" flag with a separated argument.
23609hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23610
23611# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23612# DIR into the resulting binary.
23613hardcode_direct=$hardcode_direct_CXX
23614
23615# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23616# DIR into the resulting binary and the resulting library dependency is
23617# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23618# library is relocated.
23619hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23620
23621# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23622# into the resulting binary.
23623hardcode_minus_L=$hardcode_minus_L_CXX
23624
23625# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23626# into the resulting binary.
23627hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23628
23629# Set to "yes" if building a shared library automatically hardcodes DIR
23630# into the library and all subsequent libraries and executables linked
23631# against it.
23632hardcode_automatic=$hardcode_automatic_CXX
23633
23634# Set to yes if linker adds runtime paths of dependent libraries
23635# to runtime path list.
23636inherit_rpath=$inherit_rpath_CXX
23637
23638# Whether libtool must link a program against all its dependency libraries.
23639link_all_deplibs=$link_all_deplibs_CXX
23640
23641# Set to "yes" if exported symbols are required.
23642always_export_symbols=$always_export_symbols_CXX
23643
23644# The commands to list exported symbols.
23645export_symbols_cmds=$lt_export_symbols_cmds_CXX
23646
23647# Symbols that should not be listed in the preloaded symbols.
23648exclude_expsyms=$lt_exclude_expsyms_CXX
23649
23650# Symbols that must always be exported.
23651include_expsyms=$lt_include_expsyms_CXX
23652
23653# Commands necessary for linking programs (against libraries) with templates.
23654prelink_cmds=$lt_prelink_cmds_CXX
23655
23656# Commands necessary for finishing linking programs.
23657postlink_cmds=$lt_postlink_cmds_CXX
23658
23659# Specify filename containing input files.
23660file_list_spec=$lt_file_list_spec_CXX
23661
23662# How to hardcode a shared library path into an executable.
23663hardcode_action=$hardcode_action_CXX
23664
23665# The directories searched by this compiler when creating a shared library.
23666compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23667
23668# Dependencies to place before and after the objects being linked to
23669# create a shared library.
23670predep_objects=$lt_predep_objects_CXX
23671postdep_objects=$lt_postdep_objects_CXX
23672predeps=$lt_predeps_CXX
23673postdeps=$lt_postdeps_CXX
23674
23675# The library search path used internally by the compiler when linking
23676# a shared library.
23677compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23678
23679# ### END LIBTOOL TAG CONFIG: CXX
23680_LT_EOF
23681
23682 ;;
23683    "po-directories":C)
23684    for ac_file in $CONFIG_FILES; do
23685      # Support "outfile[:infile[:infile...]]"
23686      case "$ac_file" in
23687        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23688      esac
23689      # PO directories have a Makefile.in generated from Makefile.in.in.
23690      case "$ac_file" in */Makefile.in)
23691        # Adjust a relative srcdir.
23692        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23693        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
23694        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23695        # In autoconf-2.13 it is called $ac_given_srcdir.
23696        # In autoconf-2.50 it is called $srcdir.
23697        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23698        case "$ac_given_srcdir" in
23699          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23700          /*) top_srcdir="$ac_given_srcdir" ;;
23701          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23702        esac
23703        # Treat a directory as a PO directory if and only if it has a
23704        # POTFILES.in file. This allows packages to have multiple PO
23705        # directories under different names or in different locations.
23706        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23707          rm -f "$ac_dir/POTFILES"
23708          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23709          gt_tab=`printf '\t'`
23710          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"
23711          POMAKEFILEDEPS="POTFILES.in"
23712          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23713          # on $ac_dir but don't depend on user-specified configuration
23714          # parameters.
23715          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23716            # The LINGUAS file contains the set of available languages.
23717            if test -n "$OBSOLETE_ALL_LINGUAS"; then
23718              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23719            fi
23720            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23721            # Hide the ALL_LINGUAS assignment from automake < 1.5.
23722            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23723            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23724          else
23725            # The set of available languages was given in configure.in.
23726            # Hide the ALL_LINGUAS assignment from automake < 1.5.
23727            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23728          fi
23729          # Compute POFILES
23730          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23731          # Compute UPDATEPOFILES
23732          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23733          # Compute DUMMYPOFILES
23734          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23735          # Compute GMOFILES
23736          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23737          case "$ac_given_srcdir" in
23738            .) srcdirpre= ;;
23739            *) srcdirpre='$(srcdir)/' ;;
23740          esac
23741          POFILES=
23742          UPDATEPOFILES=
23743          DUMMYPOFILES=
23744          GMOFILES=
23745          for lang in $ALL_LINGUAS; do
23746            POFILES="$POFILES $srcdirpre$lang.po"
23747            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23748            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23749            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23750          done
23751          # CATALOGS depends on both $ac_dir and the user's LINGUAS
23752          # environment variable.
23753          INST_LINGUAS=
23754          if test -n "$ALL_LINGUAS"; then
23755            for presentlang in $ALL_LINGUAS; do
23756              useit=no
23757              if test "%UNSET%" != "$LINGUAS"; then
23758                desiredlanguages="$LINGUAS"
23759              else
23760                desiredlanguages="$ALL_LINGUAS"
23761              fi
23762              for desiredlang in $desiredlanguages; do
23763                # Use the presentlang catalog if desiredlang is
23764                #   a. equal to presentlang, or
23765                #   b. a variant of presentlang (because in this case,
23766                #      presentlang can be used as a fallback for messages
23767                #      which are not translated in the desiredlang catalog).
23768                case "$desiredlang" in
23769                  "$presentlang"*) useit=yes;;
23770                esac
23771              done
23772              if test $useit = yes; then
23773                INST_LINGUAS="$INST_LINGUAS $presentlang"
23774              fi
23775            done
23776          fi
23777          CATALOGS=
23778          if test -n "$INST_LINGUAS"; then
23779            for lang in $INST_LINGUAS; do
23780              CATALOGS="$CATALOGS $lang.gmo"
23781            done
23782          fi
23783          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23784          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"
23785          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23786            if test -f "$f"; then
23787              case "$f" in
23788                *.orig | *.bak | *~) ;;
23789                *) cat "$f" >> "$ac_dir/Makefile" ;;
23790              esac
23791            fi
23792          done
23793        fi
23794        ;;
23795      esac
23796    done ;;
23797
23798  esac
23799done # for ac_tag
23800
23801
23802as_fn_exit 0
23803_ACEOF
23804ac_clean_files=$ac_clean_files_save
23805
23806test $ac_write_fail = 0 ||
23807  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23808
23809
23810# configure is writing to config.log, and then calls config.status.
23811# config.status does its own redirection, appending to config.log.
23812# Unfortunately, on DOS this fails, as config.log is still kept open
23813# by configure, so config.status won't be able to write to it; its
23814# output is simply discarded.  So we exec the FD to /dev/null,
23815# effectively closing config.log, so it can be properly (re)opened and
23816# appended to by config.status.  When coming back to configure, we
23817# need to make the FD available again.
23818if test "$no_create" != yes; then
23819  ac_cs_success=:
23820  ac_config_status_args=
23821  test "$silent" = yes &&
23822    ac_config_status_args="$ac_config_status_args --quiet"
23823  exec 5>/dev/null
23824  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23825  exec 5>>config.log
23826  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23827  # would make configure fail if this is the last instruction.
23828  $ac_cs_success || as_fn_exit 1
23829fi
23830if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23831  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23832$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23833fi
23834
23835
23836{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
23837Build options:
23838    Version                     $VERSION
23839    Install prefix              $prefix
23840    Use boost                   $enable_boost
23841    Use opencc                  $enable_opencc
23842    Use libpinyin               $enable_libpinyin
23843    Build lua extension         $enable_lua_extension
23844    Build stroke input mode     $enable_stroke_input_mode
23845    Build english input mode    $enable_english_input_mode
23846" >&5
23847$as_echo "
23848Build options:
23849    Version                     $VERSION
23850    Install prefix              $prefix
23851    Use boost                   $enable_boost
23852    Use opencc                  $enable_opencc
23853    Use libpinyin               $enable_libpinyin
23854    Build lua extension         $enable_lua_extension
23855    Build stroke input mode     $enable_stroke_input_mode
23856    Build english input mode    $enable_english_input_mode
23857" >&6; }
23858
23859