1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for zbar 0.23.90.
4#
5# Report bugs to <mchehab+huawei@kernel.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: mchehab+huawei@kernel.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='zbar'
592PACKAGE_TARNAME='zbar'
593PACKAGE_VERSION='0.23.90'
594PACKAGE_STRING='zbar 0.23.90'
595PACKAGE_BUGREPORT='mchehab+huawei@kernel.org'
596PACKAGE_URL=''
597
598ac_unique_file="zbar/scanner.c"
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_header_list=
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640HAVE_JAVA_FALSE
641HAVE_JAVA_TRUE
642JAVA_CFLAGS
643HAVE_JAVA_UNIT_FALSE
644HAVE_JAVA_UNIT_TRUE
645CLASSPATH
646JAVA
647JAR
648HAVE_JAVAH_FALSE
649HAVE_JAVAH_TRUE
650JAVAH
651JAVAC
652JAVA_HOME
653HAVE_QT_FALSE
654HAVE_QT_TRUE
655QT_LIBS
656QT_CFLAGS
657MOC
658HAVE_INTROSPECTION_FALSE
659HAVE_INTROSPECTION_TRUE
660INTROSPECTION_MAKEFILE
661INTROSPECTION_LIBS
662INTROSPECTION_CFLAGS
663INTROSPECTION_TYPELIBDIR
664INTROSPECTION_GIRDIR
665INTROSPECTION_GENERATE
666INTROSPECTION_COMPILER
667INTROSPECTION_SCANNER
668_GI_EXP_LIBDIR
669_GI_EXP_DATADIR
670HAVE_PYGTK2_FALSE
671HAVE_PYGTK2_TRUE
672HAVE_PYTHON_FALSE
673HAVE_PYTHON_TRUE
674PYGTK_LIBS
675PYGTK_CFLAGS
676pkgpyexecdir
677pyexecdir
678pkgpythondir
679pythondir
680PYTHON_PLATFORM
681PYTHON_EXEC_PREFIX
682PYTHON_PREFIX
683PYTHON_VERSION
684PYTHON
685PYGTK_DEFS
686PYGTK_CODEGEN
687PYGTK_H2DEF
688PYTHON_LDFLAGS
689PYTHON_CFLAGS
690PYTHON_CONFIG
691HAVE_GTK_FALSE
692HAVE_GTK_TRUE
693GTK_CFLAGS
694GTK_LIBS
695GTK2_LIBS
696GTK2_CFLAGS
697GTK3_LIBS
698GTK3_CFLAGS
699GTK_VERSION_MAJOR
700GLIB_GENMARSHAL
701HAVE_NPAPI_FALSE
702HAVE_NPAPI_TRUE
703NPAPI_LIBS
704NPAPI_CFLAGS
705HAVE_MAGICK_FALSE
706HAVE_MAGICK_TRUE
707GM_LIBS
708GM_CFLAGS
709MAGICK_LIBS
710MAGICK_CFLAGS
711HAVE_JPEG_FALSE
712HAVE_JPEG_TRUE
713DBUS_CONFDIR
714HAVE_DBUS_FALSE
715HAVE_DBUS_TRUE
716DBUS_LIBS
717DBUS_CFLAGS
718HAVE_XV_FALSE
719HAVE_XV_TRUE
720XV_LIBS
721HAVE_XSHM_FALSE
722HAVE_XSHM_TRUE
723HAVE_X_FALSE
724HAVE_X_TRUE
725X_EXTRA_LIBS
726X_LIBS
727X_PRE_LIBS
728X_CFLAGS
729XMKMF
730XSHM_LIBS
731WITH_DIRECTSHOW_FALSE
732WITH_DIRECTSHOW_TRUE
733HAVE_LIBV4L_FALSE
734HAVE_LIBV4L_TRUE
735HAVE_V4L2_FALSE
736HAVE_V4L2_TRUE
737HAVE_V4L1_FALSE
738HAVE_V4L1_TRUE
739HAVE_VIDEO_FALSE
740HAVE_VIDEO_TRUE
741V4L2_LIBS
742V4L2_CFLAGS
743HAVE_DOC_FALSE
744HAVE_DOC_TRUE
745XMLTOFLAGS
746XMLTO
747HAVE_POLL_FALSE
748HAVE_POLL_TRUE
749LIBQT_EXTRA_LDFLAGS
750USE_NLS_FALSE
751USE_NLS_TRUE
752POSUB
753LTLIBINTL
754LIBINTL
755INTLLIBS
756INTL_MACOSX_LIBS
757XGETTEXT_EXTRA_OPTIONS
758MSGMERGE_FOR_MSGFMT_OPTION
759MSGMERGE
760XGETTEXT_015
761XGETTEXT
762GMSGFMT_015
763GMSGFMT
764MSGFMT
765GETTEXT_MACRO_VERSION
766USE_NLS
767LTLIBICONV
768LIBICONV
769ENABLE_PDF417_FALSE
770ENABLE_PDF417_TRUE
771ENABLE_PDF417
772ENABLE_SQCODE_FALSE
773ENABLE_SQCODE_TRUE
774ENABLE_SQCODE
775ENABLE_QRCODE_FALSE
776ENABLE_QRCODE_TRUE
777ENABLE_QRCODE
778ENABLE_I25_FALSE
779ENABLE_I25_TRUE
780ENABLE_I25
781ENABLE_CODABAR_FALSE
782ENABLE_CODABAR_TRUE
783ENABLE_CODABAR
784ENABLE_CODE39_FALSE
785ENABLE_CODE39_TRUE
786ENABLE_CODE39
787ENABLE_CODE93_FALSE
788ENABLE_CODE93_TRUE
789ENABLE_CODE93
790ENABLE_CODE128_FALSE
791ENABLE_CODE128_TRUE
792ENABLE_CODE128
793ENABLE_DATABAR_FALSE
794ENABLE_DATABAR_TRUE
795ENABLE_DATABAR
796ENABLE_EAN_FALSE
797ENABLE_EAN_TRUE
798ENABLE_EAN
799PKG_CONFIG_LIBDIR
800PKG_CONFIG_PATH
801PKG_CONFIG
802CXXCPP
803am__fastdepCXX_FALSE
804am__fastdepCXX_TRUE
805CXXDEPMODE
806ac_ct_CXX
807CXXFLAGS
808CXX
809WIN32_FALSE
810WIN32_TRUE
811LIBOBJS
812ALLOCA
813AM_CXXFLAGS
814AM_CFLAGS
815AM_CPPFLAGS
816ZQT_LIB_VERSION
817ZGTK_LIB_VERSION
818RELDATE
819LIB_VERSION
820RC
821CPP
822LT_SYS_LIBRARY_PATH
823OTOOL64
824OTOOL
825LIPO
826NMEDIT
827DSYMUTIL
828MANIFEST_TOOL
829RANLIB
830ac_ct_AR
831AR
832LN_S
833NM
834ac_ct_DUMPBIN
835DUMPBIN
836LD
837FGREP
838EGREP
839GREP
840SED
841am__fastdepCC_FALSE
842am__fastdepCC_TRUE
843CCDEPMODE
844am__nodep
845AMDEPBACKSLASH
846AMDEP_FALSE
847AMDEP_TRUE
848am__include
849DEPDIR
850OBJEXT
851EXEEXT
852ac_ct_CC
853CPPFLAGS
854LDFLAGS
855CFLAGS
856CC
857host_os
858host_vendor
859host_cpu
860host
861build_os
862build_vendor
863build_cpu
864build
865LIBTOOL
866OBJDUMP
867DLLTOOL
868AS
869AM_BACKSLASH
870AM_DEFAULT_VERBOSITY
871AM_DEFAULT_V
872AM_V
873am__untar
874am__tar
875AMTAR
876am__leading_dot
877SET_MAKE
878AWK
879mkdir_p
880MKDIR_P
881INSTALL_STRIP_PROGRAM
882STRIP
883install_sh
884MAKEINFO
885AUTOHEADER
886AUTOMAKE
887AUTOCONF
888ACLOCAL
889VERSION
890PACKAGE
891CYGPATH_W
892am__isrc
893INSTALL_DATA
894INSTALL_SCRIPT
895INSTALL_PROGRAM
896target_alias
897host_alias
898build_alias
899LIBS
900ECHO_T
901ECHO_N
902ECHO_C
903DEFS
904mandir
905localedir
906libdir
907psdir
908pdfdir
909dvidir
910htmldir
911infodir
912docdir
913oldincludedir
914includedir
915localstatedir
916sharedstatedir
917sysconfdir
918datadir
919datarootdir
920libexecdir
921sbindir
922bindir
923program_transform_name
924prefix
925exec_prefix
926PACKAGE_URL
927PACKAGE_BUGREPORT
928PACKAGE_STRING
929PACKAGE_VERSION
930PACKAGE_TARNAME
931PACKAGE_NAME
932PATH_SEPARATOR
933SHELL
934am__quote'
935ac_subst_files=''
936ac_user_opts='
937enable_option_checking
938enable_silent_rules
939enable_shared
940enable_static
941with_pic
942enable_fast_install
943with_aix_soname
944enable_dependency_tracking
945with_gnu_ld
946with_sysroot
947enable_libtool_lock
948enable_codes
949enable_rpath
950with_libiconv_prefix
951enable_nls
952with_libintl_prefix
953enable_static_qt
954enable_pthread
955enable_doc
956enable_video
957with_directshow
958with_x
959with_xshm
960with_xv
961with_dbus
962with_dbusconfdir
963with_jpeg
964with_imagemagick
965with_graphicsmagick
966with_npapi
967with_gtk
968with_gir
969with_python
970enable_introspection
971with_qt
972with_qt5
973with_java
974enable_assert
975'
976      ac_precious_vars='build_alias
977host_alias
978target_alias
979CC
980CFLAGS
981LDFLAGS
982LIBS
983CPPFLAGS
984LT_SYS_LIBRARY_PATH
985CPP
986CXX
987CXXFLAGS
988CCC
989CXXCPP
990PKG_CONFIG
991PKG_CONFIG_PATH
992PKG_CONFIG_LIBDIR
993XMLTO
994XMLTOFLAGS
995V4L2_CFLAGS
996V4L2_LIBS
997XSHM_LIBS
998XMKMF
999XV_LIBS
1000DBUS_CFLAGS
1001DBUS_LIBS
1002MAGICK_CFLAGS
1003MAGICK_LIBS
1004GM_CFLAGS
1005GM_LIBS
1006NPAPI_CFLAGS
1007NPAPI_LIBS
1008GLIB_GENMARSHAL
1009GTK_VERSION_MAJOR
1010GTK3_CFLAGS
1011GTK3_LIBS
1012GTK2_CFLAGS
1013GTK2_LIBS
1014PYTHON_CONFIG
1015PYTHON_CFLAGS
1016PYTHON_LDFLAGS
1017PYGTK_H2DEF
1018PYGTK_CODEGEN
1019PYGTK_DEFS
1020PYTHON
1021PYGTK_CFLAGS
1022PYGTK_LIBS
1023MOC
1024QT_CFLAGS
1025QT_LIBS
1026JAVA_HOME
1027JAVAC
1028JAVAH
1029JAR
1030JAVA
1031CLASSPATH
1032JAVA_CFLAGS'
1033
1034
1035# Initialize some variables set by options.
1036ac_init_help=
1037ac_init_version=false
1038ac_unrecognized_opts=
1039ac_unrecognized_sep=
1040# The variables have the same names as the options, with
1041# dashes changed to underlines.
1042cache_file=/dev/null
1043exec_prefix=NONE
1044no_create=
1045no_recursion=
1046prefix=NONE
1047program_prefix=NONE
1048program_suffix=NONE
1049program_transform_name=s,x,x,
1050silent=
1051site=
1052srcdir=
1053verbose=
1054x_includes=NONE
1055x_libraries=NONE
1056
1057# Installation directory options.
1058# These are left unexpanded so users can "make install exec_prefix=/foo"
1059# and all the variables that are supposed to be based on exec_prefix
1060# by default will actually change.
1061# Use braces instead of parens because sh, perl, etc. also accept them.
1062# (The list follows the same order as the GNU Coding Standards.)
1063bindir='${exec_prefix}/bin'
1064sbindir='${exec_prefix}/sbin'
1065libexecdir='${exec_prefix}/libexec'
1066datarootdir='${prefix}/share'
1067datadir='${datarootdir}'
1068sysconfdir='${prefix}/etc'
1069sharedstatedir='${prefix}/com'
1070localstatedir='${prefix}/var'
1071includedir='${prefix}/include'
1072oldincludedir='/usr/include'
1073docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1074infodir='${datarootdir}/info'
1075htmldir='${docdir}'
1076dvidir='${docdir}'
1077pdfdir='${docdir}'
1078psdir='${docdir}'
1079libdir='${exec_prefix}/lib'
1080localedir='${datarootdir}/locale'
1081mandir='${datarootdir}/man'
1082
1083ac_prev=
1084ac_dashdash=
1085for ac_option
1086do
1087  # If the previous option needs an argument, assign it.
1088  if test -n "$ac_prev"; then
1089    eval $ac_prev=\$ac_option
1090    ac_prev=
1091    continue
1092  fi
1093
1094  case $ac_option in
1095  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1096  *=)   ac_optarg= ;;
1097  *)    ac_optarg=yes ;;
1098  esac
1099
1100  # Accept the important Cygnus configure options, so we can diagnose typos.
1101
1102  case $ac_dashdash$ac_option in
1103  --)
1104    ac_dashdash=yes ;;
1105
1106  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1107    ac_prev=bindir ;;
1108  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1109    bindir=$ac_optarg ;;
1110
1111  -build | --build | --buil | --bui | --bu)
1112    ac_prev=build_alias ;;
1113  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1114    build_alias=$ac_optarg ;;
1115
1116  -cache-file | --cache-file | --cache-fil | --cache-fi \
1117  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1118    ac_prev=cache_file ;;
1119  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1120  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1121    cache_file=$ac_optarg ;;
1122
1123  --config-cache | -C)
1124    cache_file=config.cache ;;
1125
1126  -datadir | --datadir | --datadi | --datad)
1127    ac_prev=datadir ;;
1128  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1129    datadir=$ac_optarg ;;
1130
1131  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1132  | --dataroo | --dataro | --datar)
1133    ac_prev=datarootdir ;;
1134  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1135  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1136    datarootdir=$ac_optarg ;;
1137
1138  -disable-* | --disable-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid feature name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"enable_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval enable_$ac_useropt=no ;;
1153
1154  -docdir | --docdir | --docdi | --doc | --do)
1155    ac_prev=docdir ;;
1156  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1157    docdir=$ac_optarg ;;
1158
1159  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1160    ac_prev=dvidir ;;
1161  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1162    dvidir=$ac_optarg ;;
1163
1164  -enable-* | --enable-*)
1165    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1166    # Reject names that are not valid shell variable names.
1167    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168      as_fn_error $? "invalid feature name: $ac_useropt"
1169    ac_useropt_orig=$ac_useropt
1170    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171    case $ac_user_opts in
1172      *"
1173"enable_$ac_useropt"
1174"*) ;;
1175      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1176	 ac_unrecognized_sep=', ';;
1177    esac
1178    eval enable_$ac_useropt=\$ac_optarg ;;
1179
1180  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1181  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1182  | --exec | --exe | --ex)
1183    ac_prev=exec_prefix ;;
1184  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1185  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1186  | --exec=* | --exe=* | --ex=*)
1187    exec_prefix=$ac_optarg ;;
1188
1189  -gas | --gas | --ga | --g)
1190    # Obsolete; use --with-gas.
1191    with_gas=yes ;;
1192
1193  -help | --help | --hel | --he | -h)
1194    ac_init_help=long ;;
1195  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1196    ac_init_help=recursive ;;
1197  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1198    ac_init_help=short ;;
1199
1200  -host | --host | --hos | --ho)
1201    ac_prev=host_alias ;;
1202  -host=* | --host=* | --hos=* | --ho=*)
1203    host_alias=$ac_optarg ;;
1204
1205  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1206    ac_prev=htmldir ;;
1207  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1208  | --ht=*)
1209    htmldir=$ac_optarg ;;
1210
1211  -includedir | --includedir | --includedi | --included | --include \
1212  | --includ | --inclu | --incl | --inc)
1213    ac_prev=includedir ;;
1214  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1215  | --includ=* | --inclu=* | --incl=* | --inc=*)
1216    includedir=$ac_optarg ;;
1217
1218  -infodir | --infodir | --infodi | --infod | --info | --inf)
1219    ac_prev=infodir ;;
1220  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1221    infodir=$ac_optarg ;;
1222
1223  -libdir | --libdir | --libdi | --libd)
1224    ac_prev=libdir ;;
1225  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1226    libdir=$ac_optarg ;;
1227
1228  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1229  | --libexe | --libex | --libe)
1230    ac_prev=libexecdir ;;
1231  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1232  | --libexe=* | --libex=* | --libe=*)
1233    libexecdir=$ac_optarg ;;
1234
1235  -localedir | --localedir | --localedi | --localed | --locale)
1236    ac_prev=localedir ;;
1237  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1238    localedir=$ac_optarg ;;
1239
1240  -localstatedir | --localstatedir | --localstatedi | --localstated \
1241  | --localstate | --localstat | --localsta | --localst | --locals)
1242    ac_prev=localstatedir ;;
1243  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1244  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1245    localstatedir=$ac_optarg ;;
1246
1247  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1248    ac_prev=mandir ;;
1249  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1250    mandir=$ac_optarg ;;
1251
1252  -nfp | --nfp | --nf)
1253    # Obsolete; use --without-fp.
1254    with_fp=no ;;
1255
1256  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1257  | --no-cr | --no-c | -n)
1258    no_create=yes ;;
1259
1260  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1261  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1262    no_recursion=yes ;;
1263
1264  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1265  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1266  | --oldin | --oldi | --old | --ol | --o)
1267    ac_prev=oldincludedir ;;
1268  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1269  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1270  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1271    oldincludedir=$ac_optarg ;;
1272
1273  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1274    ac_prev=prefix ;;
1275  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1276    prefix=$ac_optarg ;;
1277
1278  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1279  | --program-pre | --program-pr | --program-p)
1280    ac_prev=program_prefix ;;
1281  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1282  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1283    program_prefix=$ac_optarg ;;
1284
1285  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1286  | --program-suf | --program-su | --program-s)
1287    ac_prev=program_suffix ;;
1288  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1289  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1290    program_suffix=$ac_optarg ;;
1291
1292  -program-transform-name | --program-transform-name \
1293  | --program-transform-nam | --program-transform-na \
1294  | --program-transform-n | --program-transform- \
1295  | --program-transform | --program-transfor \
1296  | --program-transfo | --program-transf \
1297  | --program-trans | --program-tran \
1298  | --progr-tra | --program-tr | --program-t)
1299    ac_prev=program_transform_name ;;
1300  -program-transform-name=* | --program-transform-name=* \
1301  | --program-transform-nam=* | --program-transform-na=* \
1302  | --program-transform-n=* | --program-transform-=* \
1303  | --program-transform=* | --program-transfor=* \
1304  | --program-transfo=* | --program-transf=* \
1305  | --program-trans=* | --program-tran=* \
1306  | --progr-tra=* | --program-tr=* | --program-t=*)
1307    program_transform_name=$ac_optarg ;;
1308
1309  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1310    ac_prev=pdfdir ;;
1311  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1312    pdfdir=$ac_optarg ;;
1313
1314  -psdir | --psdir | --psdi | --psd | --ps)
1315    ac_prev=psdir ;;
1316  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1317    psdir=$ac_optarg ;;
1318
1319  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1320  | -silent | --silent | --silen | --sile | --sil)
1321    silent=yes ;;
1322
1323  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1324    ac_prev=sbindir ;;
1325  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1326  | --sbi=* | --sb=*)
1327    sbindir=$ac_optarg ;;
1328
1329  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1330  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1331  | --sharedst | --shareds | --shared | --share | --shar \
1332  | --sha | --sh)
1333    ac_prev=sharedstatedir ;;
1334  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1335  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1336  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1337  | --sha=* | --sh=*)
1338    sharedstatedir=$ac_optarg ;;
1339
1340  -site | --site | --sit)
1341    ac_prev=site ;;
1342  -site=* | --site=* | --sit=*)
1343    site=$ac_optarg ;;
1344
1345  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1346    ac_prev=srcdir ;;
1347  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1348    srcdir=$ac_optarg ;;
1349
1350  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1351  | --syscon | --sysco | --sysc | --sys | --sy)
1352    ac_prev=sysconfdir ;;
1353  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1354  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1355    sysconfdir=$ac_optarg ;;
1356
1357  -target | --target | --targe | --targ | --tar | --ta | --t)
1358    ac_prev=target_alias ;;
1359  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1360    target_alias=$ac_optarg ;;
1361
1362  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1363    verbose=yes ;;
1364
1365  -version | --version | --versio | --versi | --vers | -V)
1366    ac_init_version=: ;;
1367
1368  -with-* | --with-*)
1369    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1370    # Reject names that are not valid shell variable names.
1371    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1372      as_fn_error $? "invalid package name: $ac_useropt"
1373    ac_useropt_orig=$ac_useropt
1374    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1375    case $ac_user_opts in
1376      *"
1377"with_$ac_useropt"
1378"*) ;;
1379      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1380	 ac_unrecognized_sep=', ';;
1381    esac
1382    eval with_$ac_useropt=\$ac_optarg ;;
1383
1384  -without-* | --without-*)
1385    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1386    # Reject names that are not valid shell variable names.
1387    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1388      as_fn_error $? "invalid package name: $ac_useropt"
1389    ac_useropt_orig=$ac_useropt
1390    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391    case $ac_user_opts in
1392      *"
1393"with_$ac_useropt"
1394"*) ;;
1395      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1396	 ac_unrecognized_sep=', ';;
1397    esac
1398    eval with_$ac_useropt=no ;;
1399
1400  --x)
1401    # Obsolete; use --with-x.
1402    with_x=yes ;;
1403
1404  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1405  | --x-incl | --x-inc | --x-in | --x-i)
1406    ac_prev=x_includes ;;
1407  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1408  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1409    x_includes=$ac_optarg ;;
1410
1411  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1412  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1413    ac_prev=x_libraries ;;
1414  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1415  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1416    x_libraries=$ac_optarg ;;
1417
1418  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1419Try \`$0 --help' for more information"
1420    ;;
1421
1422  *=*)
1423    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1424    # Reject names that are not valid shell variable names.
1425    case $ac_envvar in #(
1426      '' | [0-9]* | *[!_$as_cr_alnum]* )
1427      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1428    esac
1429    eval $ac_envvar=\$ac_optarg
1430    export $ac_envvar ;;
1431
1432  *)
1433    # FIXME: should be removed in autoconf 3.0.
1434    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1435    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1436      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1437    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1438    ;;
1439
1440  esac
1441done
1442
1443if test -n "$ac_prev"; then
1444  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1445  as_fn_error $? "missing argument to $ac_option"
1446fi
1447
1448if test -n "$ac_unrecognized_opts"; then
1449  case $enable_option_checking in
1450    no) ;;
1451    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1452    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1453  esac
1454fi
1455
1456# Check all directory arguments for consistency.
1457for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1458		datadir sysconfdir sharedstatedir localstatedir includedir \
1459		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1460		libdir localedir mandir
1461do
1462  eval ac_val=\$$ac_var
1463  # Remove trailing slashes.
1464  case $ac_val in
1465    */ )
1466      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1467      eval $ac_var=\$ac_val;;
1468  esac
1469  # Be sure to have absolute directory names.
1470  case $ac_val in
1471    [\\/$]* | ?:[\\/]* )  continue;;
1472    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1473  esac
1474  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1475done
1476
1477# There might be people who depend on the old broken behavior: `$host'
1478# used to hold the argument of --host etc.
1479# FIXME: To remove some day.
1480build=$build_alias
1481host=$host_alias
1482target=$target_alias
1483
1484# FIXME: To remove some day.
1485if test "x$host_alias" != x; then
1486  if test "x$build_alias" = x; then
1487    cross_compiling=maybe
1488  elif test "x$build_alias" != "x$host_alias"; then
1489    cross_compiling=yes
1490  fi
1491fi
1492
1493ac_tool_prefix=
1494test -n "$host_alias" && ac_tool_prefix=$host_alias-
1495
1496test "$silent" = yes && exec 6>/dev/null
1497
1498
1499ac_pwd=`pwd` && test -n "$ac_pwd" &&
1500ac_ls_di=`ls -di .` &&
1501ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1502  as_fn_error $? "working directory cannot be determined"
1503test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1504  as_fn_error $? "pwd does not report name of working directory"
1505
1506
1507# Find the source files, if location was not specified.
1508if test -z "$srcdir"; then
1509  ac_srcdir_defaulted=yes
1510  # Try the directory containing this script, then the parent directory.
1511  ac_confdir=`$as_dirname -- "$as_myself" ||
1512$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1513	 X"$as_myself" : 'X\(//\)[^/]' \| \
1514	 X"$as_myself" : 'X\(//\)$' \| \
1515	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1516$as_echo X"$as_myself" |
1517    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1518	    s//\1/
1519	    q
1520	  }
1521	  /^X\(\/\/\)[^/].*/{
1522	    s//\1/
1523	    q
1524	  }
1525	  /^X\(\/\/\)$/{
1526	    s//\1/
1527	    q
1528	  }
1529	  /^X\(\/\).*/{
1530	    s//\1/
1531	    q
1532	  }
1533	  s/.*/./; q'`
1534  srcdir=$ac_confdir
1535  if test ! -r "$srcdir/$ac_unique_file"; then
1536    srcdir=..
1537  fi
1538else
1539  ac_srcdir_defaulted=no
1540fi
1541if test ! -r "$srcdir/$ac_unique_file"; then
1542  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1543  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1544fi
1545ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1546ac_abs_confdir=`(
1547	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1548	pwd)`
1549# When building in place, set srcdir=.
1550if test "$ac_abs_confdir" = "$ac_pwd"; then
1551  srcdir=.
1552fi
1553# Remove unnecessary trailing slashes from srcdir.
1554# Double slashes in file names in object file debugging info
1555# mess up M-x gdb in Emacs.
1556case $srcdir in
1557*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1558esac
1559for ac_var in $ac_precious_vars; do
1560  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1561  eval ac_env_${ac_var}_value=\$${ac_var}
1562  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1563  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1564done
1565
1566#
1567# Report the --help message.
1568#
1569if test "$ac_init_help" = "long"; then
1570  # Omit some internal or obsolete options to make the list less imposing.
1571  # This message is too long to be a string in the A/UX 3.1 sh.
1572  cat <<_ACEOF
1573\`configure' configures zbar 0.23.90 to adapt to many kinds of systems.
1574
1575Usage: $0 [OPTION]... [VAR=VALUE]...
1576
1577To assign environment variables (e.g., CC, CFLAGS...), specify them as
1578VAR=VALUE.  See below for descriptions of some of the useful variables.
1579
1580Defaults for the options are specified in brackets.
1581
1582Configuration:
1583  -h, --help              display this help and exit
1584      --help=short        display options specific to this package
1585      --help=recursive    display the short help of all the included packages
1586  -V, --version           display version information and exit
1587  -q, --quiet, --silent   do not print \`checking ...' messages
1588      --cache-file=FILE   cache test results in FILE [disabled]
1589  -C, --config-cache      alias for \`--cache-file=config.cache'
1590  -n, --no-create         do not create output files
1591      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1592
1593Installation directories:
1594  --prefix=PREFIX         install architecture-independent files in PREFIX
1595                          [$ac_default_prefix]
1596  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1597                          [PREFIX]
1598
1599By default, \`make install' will install all the files in
1600\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1601an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1602for instance \`--prefix=\$HOME'.
1603
1604For better control, use the options below.
1605
1606Fine tuning of the installation directories:
1607  --bindir=DIR            user executables [EPREFIX/bin]
1608  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1609  --libexecdir=DIR        program executables [EPREFIX/libexec]
1610  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1611  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1612  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1613  --libdir=DIR            object code libraries [EPREFIX/lib]
1614  --includedir=DIR        C header files [PREFIX/include]
1615  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1616  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1617  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1618  --infodir=DIR           info documentation [DATAROOTDIR/info]
1619  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1620  --mandir=DIR            man documentation [DATAROOTDIR/man]
1621  --docdir=DIR            documentation root [DATAROOTDIR/doc/zbar]
1622  --htmldir=DIR           html documentation [DOCDIR]
1623  --dvidir=DIR            dvi documentation [DOCDIR]
1624  --pdfdir=DIR            pdf documentation [DOCDIR]
1625  --psdir=DIR             ps documentation [DOCDIR]
1626_ACEOF
1627
1628  cat <<\_ACEOF
1629
1630Program names:
1631  --program-prefix=PREFIX            prepend PREFIX to installed program names
1632  --program-suffix=SUFFIX            append SUFFIX to installed program names
1633  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1634
1635X features:
1636  --x-includes=DIR    X include files are in DIR
1637  --x-libraries=DIR   X library files are in DIR
1638
1639System types:
1640  --build=BUILD     configure for building on BUILD [guessed]
1641  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1642_ACEOF
1643fi
1644
1645if test -n "$ac_init_help"; then
1646  case $ac_init_help in
1647     short | recursive ) echo "Configuration of zbar 0.23.90:";;
1648   esac
1649  cat <<\_ACEOF
1650
1651Optional Features:
1652  --disable-option-checking  ignore unrecognized --enable/--with options
1653  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1654  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1655  --enable-silent-rules   less verbose build output (undo: "make V=1")
1656  --disable-silent-rules  verbose build output (undo: "make V=0")
1657  --enable-shared[=PKGS]  build shared libraries [default=yes]
1658  --enable-static[=PKGS]  build static libraries [default=yes]
1659  --enable-fast-install[=PKGS]
1660                          optimize for fast installation [default=yes]
1661  --enable-dependency-tracking
1662                          do not reject slow dependency extractors
1663  --disable-dependency-tracking
1664                          speeds up one-time build
1665  --disable-libtool-lock  avoid locking (might break parallel builds)
1666  --enable-codes=SYMS     select symbologies to compile
1667                          [default=ean,databar,code128,code93,code39,codabar,i25,qrcode,sqcode]
1668  --disable-rpath         do not hardcode runtime library paths
1669  --disable-nls           do not use Native Language Support
1670  --enable-static-qt      Produce a static library for libzbarcam-qt
1671  --disable-pthread       omit support for threaded applications
1672  --disable-doc           disable building docs
1673  --disable-video         exclude video scanner features
1674  --enable-introspection=[no/auto/yes]
1675                          Enable introspection for this build
1676  --disable-assert        turn off assertions
1677
1678Optional Packages:
1679  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1680  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1681  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1682                          both]
1683  --with-aix-soname=aix|svr4|both
1684                          shared library versioning (aka "SONAME") variant to
1685                          provide on AIX, [default=aix].
1686  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1687  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1688                          compiler's sysroot if not specified).
1689  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1690  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1691  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1692  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1693  --without-libintl-prefix     don't search for libintl in includedir and libdir
1694  --with-directshow       compile directshow driver on windows instead of vfw,
1695                          available only when video support is enabled
1696  --with-x                use the X Window System
1697  --without-xshm          disable support for X shared memory extension
1698  --without-xv            disable support for XVideo extension
1699  --without-dbus          disable support for dbus
1700  --with-dbusconfdir=PATH path to D-Bus config directory
1701  --without-jpeg          disable support for JPEG image conversions
1702  --without-imagemagick   disable support for scanning images with ImageMagick
1703  --with-graphicsmagick   use GraphicsMagick alternative to ImageMagick
1704  --with-npapi            enable support for Firefox/Mozilla/OpenOffice plugin
1705  --with-gtk              Specify support for GTK. Valid values are: no, auto,
1706                          gtk2, gtk3 (default is auto)
1707  --with-gir              enable support for GObject Introspection
1708  --with-python           Specify support for Python. Valid values are: no,
1709                          auto, python2, python3 (default is auto). Please
1710                          notice that PYTHON var, if especified, takes
1711                          precedence.
1712  --without-qt            disable support for Qt widget
1713  --without-qt5           disable support for Qt5 widget. if --with-qt, it
1714                          will seek only for Qt4
1715  --without-java          disable support for Java interface
1716
1717Some influential environment variables:
1718  CC          C compiler command
1719  CFLAGS      C compiler flags
1720  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1721              nonstandard directory <lib dir>
1722  LIBS        libraries to pass to the linker, e.g. -l<library>
1723  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1724              you have headers in a nonstandard directory <include dir>
1725  LT_SYS_LIBRARY_PATH
1726              User-defined run-time library search path.
1727  CPP         C preprocessor
1728  CXX         C++ compiler command
1729  CXXFLAGS    C++ compiler flags
1730  CXXCPP      C++ preprocessor
1731  PKG_CONFIG  path to pkg-config utility
1732  PKG_CONFIG_PATH
1733              directories to add to pkg-config's search path
1734  PKG_CONFIG_LIBDIR
1735              path overriding pkg-config's built-in search path
1736  XMLTO       location of xmlto, used for optional documentation generation
1737  XMLTOFLAGS  additional arguments for xmlto
1738  V4L2_CFLAGS C compiler flags for V4L2, overriding pkg-config
1739  V4L2_LIBS   linker flags for V4L2, overriding pkg-config
1740  XSHM_LIBS   linker flags for X shared memory extension
1741  XMKMF       Path to xmkmf, Makefile generator for X Window System
1742  XV_LIBS     linker flags for XVideo extension
1743  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1744  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1745  MAGICK_CFLAGS
1746              C compiler flags for MAGICK, overriding pkg-config
1747  MAGICK_LIBS linker flags for MAGICK, overriding pkg-config
1748  GM_CFLAGS   C compiler flags for GM, overriding pkg-config
1749  GM_LIBS     linker flags for GM, overriding pkg-config
1750  NPAPI_CFLAGS
1751              C compiler flags for NPAPI, overriding pkg-config
1752  NPAPI_LIBS  linker flags for NPAPI, overriding pkg-config
1753  GLIB_GENMARSHAL
1754              full path to glib-genmarshal
1755  GTK_VERSION_MAJOR
1756
1757  GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
1758  GTK3_LIBS   linker flags for GTK3, overriding pkg-config
1759  GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1760  GTK2_LIBS   linker flags for GTK2, overriding pkg-config
1761  PYTHON_CONFIG
1762              full path to python-config program
1763  PYTHON_CFLAGS
1764              compiler flags for building python extensions
1765  PYTHON_LDFLAGS
1766              linker flags for building python extensions
1767  PYGTK_H2DEF full path to PyGTK h2def.py module (python2 only)
1768  PYGTK_CODEGEN
1769              full path to pygtk-codegen program (python2 only)
1770  PYGTK_DEFS  directory where PyGTK definitions may be found (python2 only)
1771  PYTHON      the Python interpreter
1772  PYGTK_CFLAGS
1773              C compiler flags for PYGTK, overriding pkg-config
1774  PYGTK_LIBS  linker flags for PYGTK, overriding pkg-config
1775  MOC         full path to Qt moc program
1776  QT_CFLAGS   C compiler flags for QT, overriding pkg-config
1777  QT_LIBS     linker flags for QT, overriding pkg-config
1778  JAVA_HOME   root location of JDK
1779  JAVAC       location of Java language compiler
1780  JAVAH       location of Java header generator
1781  JAR         location of Java archive tool
1782  JAVA        location of Java application launcher
1783  CLASSPATH   Java class path (include JUnit to run java tests)
1784  JAVA_CFLAGS compiler flags for building JNI extensions
1785
1786Use these variables to override the choices made by `configure' or to help
1787it to find libraries and programs with nonstandard names/locations.
1788
1789Report bugs to <mchehab+huawei@kernel.org>.
1790_ACEOF
1791ac_status=$?
1792fi
1793
1794if test "$ac_init_help" = "recursive"; then
1795  # If there are subdirs, report their specific --help.
1796  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1797    test -d "$ac_dir" ||
1798      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1799      continue
1800    ac_builddir=.
1801
1802case "$ac_dir" in
1803.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1804*)
1805  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1806  # A ".." for each directory in $ac_dir_suffix.
1807  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1808  case $ac_top_builddir_sub in
1809  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1810  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1811  esac ;;
1812esac
1813ac_abs_top_builddir=$ac_pwd
1814ac_abs_builddir=$ac_pwd$ac_dir_suffix
1815# for backward compatibility:
1816ac_top_builddir=$ac_top_build_prefix
1817
1818case $srcdir in
1819  .)  # We are building in place.
1820    ac_srcdir=.
1821    ac_top_srcdir=$ac_top_builddir_sub
1822    ac_abs_top_srcdir=$ac_pwd ;;
1823  [\\/]* | ?:[\\/]* )  # Absolute name.
1824    ac_srcdir=$srcdir$ac_dir_suffix;
1825    ac_top_srcdir=$srcdir
1826    ac_abs_top_srcdir=$srcdir ;;
1827  *) # Relative name.
1828    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1829    ac_top_srcdir=$ac_top_build_prefix$srcdir
1830    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1831esac
1832ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1833
1834    cd "$ac_dir" || { ac_status=$?; continue; }
1835    # Check for guested configure.
1836    if test -f "$ac_srcdir/configure.gnu"; then
1837      echo &&
1838      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1839    elif test -f "$ac_srcdir/configure"; then
1840      echo &&
1841      $SHELL "$ac_srcdir/configure" --help=recursive
1842    else
1843      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1844    fi || ac_status=$?
1845    cd "$ac_pwd" || { ac_status=$?; break; }
1846  done
1847fi
1848
1849test -n "$ac_init_help" && exit $ac_status
1850if $ac_init_version; then
1851  cat <<\_ACEOF
1852zbar configure 0.23.90
1853generated by GNU Autoconf 2.69
1854
1855Copyright (C) 2012 Free Software Foundation, Inc.
1856This configure script is free software; the Free Software Foundation
1857gives unlimited permission to copy, distribute and modify it.
1858_ACEOF
1859  exit
1860fi
1861
1862## ------------------------ ##
1863## Autoconf initialization. ##
1864## ------------------------ ##
1865
1866# ac_fn_c_try_compile LINENO
1867# --------------------------
1868# Try to compile conftest.$ac_ext, and return whether this succeeded.
1869ac_fn_c_try_compile ()
1870{
1871  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872  rm -f conftest.$ac_objext
1873  if { { ac_try="$ac_compile"
1874case "(($ac_try" in
1875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876  *) ac_try_echo=$ac_try;;
1877esac
1878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879$as_echo "$ac_try_echo"; } >&5
1880  (eval "$ac_compile") 2>conftest.err
1881  ac_status=$?
1882  if test -s conftest.err; then
1883    grep -v '^ *+' conftest.err >conftest.er1
1884    cat conftest.er1 >&5
1885    mv -f conftest.er1 conftest.err
1886  fi
1887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888  test $ac_status = 0; } && {
1889	 test -z "$ac_c_werror_flag" ||
1890	 test ! -s conftest.err
1891       } && test -s conftest.$ac_objext; then :
1892  ac_retval=0
1893else
1894  $as_echo "$as_me: failed program was:" >&5
1895sed 's/^/| /' conftest.$ac_ext >&5
1896
1897	ac_retval=1
1898fi
1899  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900  as_fn_set_status $ac_retval
1901
1902} # ac_fn_c_try_compile
1903
1904# ac_fn_c_try_link LINENO
1905# -----------------------
1906# Try to link conftest.$ac_ext, and return whether this succeeded.
1907ac_fn_c_try_link ()
1908{
1909  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910  rm -f conftest.$ac_objext conftest$ac_exeext
1911  if { { ac_try="$ac_link"
1912case "(($ac_try" in
1913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914  *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918  (eval "$ac_link") 2>conftest.err
1919  ac_status=$?
1920  if test -s conftest.err; then
1921    grep -v '^ *+' conftest.err >conftest.er1
1922    cat conftest.er1 >&5
1923    mv -f conftest.er1 conftest.err
1924  fi
1925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926  test $ac_status = 0; } && {
1927	 test -z "$ac_c_werror_flag" ||
1928	 test ! -s conftest.err
1929       } && test -s conftest$ac_exeext && {
1930	 test "$cross_compiling" = yes ||
1931	 test -x conftest$ac_exeext
1932       }; then :
1933  ac_retval=0
1934else
1935  $as_echo "$as_me: failed program was:" >&5
1936sed 's/^/| /' conftest.$ac_ext >&5
1937
1938	ac_retval=1
1939fi
1940  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1941  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1942  # interfere with the next link command; also delete a directory that is
1943  # left behind by Apple's compiler.  We do this before executing the actions.
1944  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946  as_fn_set_status $ac_retval
1947
1948} # ac_fn_c_try_link
1949
1950# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1951# -------------------------------------------------------
1952# Tests whether HEADER exists and can be compiled using the include files in
1953# INCLUDES, setting the cache variable VAR accordingly.
1954ac_fn_c_check_header_compile ()
1955{
1956  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
1959if eval \${$3+:} false; then :
1960  $as_echo_n "(cached) " >&6
1961else
1962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h.  */
1964$4
1965#include <$2>
1966_ACEOF
1967if ac_fn_c_try_compile "$LINENO"; then :
1968  eval "$3=yes"
1969else
1970  eval "$3=no"
1971fi
1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973fi
1974eval ac_res=\$$3
1975	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976$as_echo "$ac_res" >&6; }
1977  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979} # ac_fn_c_check_header_compile
1980
1981# ac_fn_c_try_cpp LINENO
1982# ----------------------
1983# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1984ac_fn_c_try_cpp ()
1985{
1986  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987  if { { ac_try="$ac_cpp conftest.$ac_ext"
1988case "(($ac_try" in
1989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990  *) ac_try_echo=$ac_try;;
1991esac
1992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993$as_echo "$ac_try_echo"; } >&5
1994  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1995  ac_status=$?
1996  if test -s conftest.err; then
1997    grep -v '^ *+' conftest.err >conftest.er1
1998    cat conftest.er1 >&5
1999    mv -f conftest.er1 conftest.err
2000  fi
2001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002  test $ac_status = 0; } > conftest.i && {
2003	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2004	 test ! -s conftest.err
2005       }; then :
2006  ac_retval=0
2007else
2008  $as_echo "$as_me: failed program was:" >&5
2009sed 's/^/| /' conftest.$ac_ext >&5
2010
2011    ac_retval=1
2012fi
2013  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014  as_fn_set_status $ac_retval
2015
2016} # ac_fn_c_try_cpp
2017
2018# ac_fn_c_try_run LINENO
2019# ----------------------
2020# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2021# that executables *can* be run.
2022ac_fn_c_try_run ()
2023{
2024  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025  if { { ac_try="$ac_link"
2026case "(($ac_try" in
2027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028  *) ac_try_echo=$ac_try;;
2029esac
2030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031$as_echo "$ac_try_echo"; } >&5
2032  (eval "$ac_link") 2>&5
2033  ac_status=$?
2034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2036  { { case "(($ac_try" in
2037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038  *) ac_try_echo=$ac_try;;
2039esac
2040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041$as_echo "$ac_try_echo"; } >&5
2042  (eval "$ac_try") 2>&5
2043  ac_status=$?
2044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045  test $ac_status = 0; }; }; then :
2046  ac_retval=0
2047else
2048  $as_echo "$as_me: program exited with status $ac_status" >&5
2049       $as_echo "$as_me: failed program was:" >&5
2050sed 's/^/| /' conftest.$ac_ext >&5
2051
2052       ac_retval=$ac_status
2053fi
2054  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2055  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056  as_fn_set_status $ac_retval
2057
2058} # ac_fn_c_try_run
2059
2060# ac_fn_c_check_func LINENO FUNC VAR
2061# ----------------------------------
2062# Tests whether FUNC exists, setting the cache variable VAR accordingly
2063ac_fn_c_check_func ()
2064{
2065  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067$as_echo_n "checking for $2... " >&6; }
2068if eval \${$3+:} false; then :
2069  $as_echo_n "(cached) " >&6
2070else
2071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h.  */
2073/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2074   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2075#define $2 innocuous_$2
2076
2077/* System header to define __stub macros and hopefully few prototypes,
2078    which can conflict with char $2 (); below.
2079    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2080    <limits.h> exists even on freestanding compilers.  */
2081
2082#ifdef __STDC__
2083# include <limits.h>
2084#else
2085# include <assert.h>
2086#endif
2087
2088#undef $2
2089
2090/* Override any GCC internal prototype to avoid an error.
2091   Use char because int might match the return type of a GCC
2092   builtin and then its argument prototype would still apply.  */
2093#ifdef __cplusplus
2094extern "C"
2095#endif
2096char $2 ();
2097/* The GNU C library defines this for functions which it implements
2098    to always fail with ENOSYS.  Some functions are actually named
2099    something starting with __ and the normal name is an alias.  */
2100#if defined __stub_$2 || defined __stub___$2
2101choke me
2102#endif
2103
2104int
2105main ()
2106{
2107return $2 ();
2108  ;
2109  return 0;
2110}
2111_ACEOF
2112if ac_fn_c_try_link "$LINENO"; then :
2113  eval "$3=yes"
2114else
2115  eval "$3=no"
2116fi
2117rm -f core conftest.err conftest.$ac_objext \
2118    conftest$ac_exeext conftest.$ac_ext
2119fi
2120eval ac_res=\$$3
2121	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124
2125} # ac_fn_c_check_func
2126
2127# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2128# -------------------------------------------
2129# Tests whether TYPE exists after having included INCLUDES, setting cache
2130# variable VAR accordingly.
2131ac_fn_c_check_type ()
2132{
2133  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2135$as_echo_n "checking for $2... " >&6; }
2136if eval \${$3+:} false; then :
2137  $as_echo_n "(cached) " >&6
2138else
2139  eval "$3=no"
2140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h.  */
2142$4
2143int
2144main ()
2145{
2146if (sizeof ($2))
2147	 return 0;
2148  ;
2149  return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h.  */
2155$4
2156int
2157main ()
2158{
2159if (sizeof (($2)))
2160	    return 0;
2161  ;
2162  return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166
2167else
2168  eval "$3=yes"
2169fi
2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171fi
2172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173fi
2174eval ac_res=\$$3
2175	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176$as_echo "$ac_res" >&6; }
2177  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178
2179} # ac_fn_c_check_type
2180
2181# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2182# -------------------------------------------------------
2183# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2184# the include files in INCLUDES and setting the cache variable VAR
2185# accordingly.
2186ac_fn_c_check_header_mongrel ()
2187{
2188  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189  if eval \${$3+:} false; then :
2190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191$as_echo_n "checking for $2... " >&6; }
2192if eval \${$3+:} false; then :
2193  $as_echo_n "(cached) " >&6
2194fi
2195eval ac_res=\$$3
2196	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197$as_echo "$ac_res" >&6; }
2198else
2199  # Is the header compilable?
2200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2201$as_echo_n "checking $2 usability... " >&6; }
2202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h.  */
2204$4
2205#include <$2>
2206_ACEOF
2207if ac_fn_c_try_compile "$LINENO"; then :
2208  ac_header_compiler=yes
2209else
2210  ac_header_compiler=no
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2214$as_echo "$ac_header_compiler" >&6; }
2215
2216# Is the header present?
2217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2218$as_echo_n "checking $2 presence... " >&6; }
2219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h.  */
2221#include <$2>
2222_ACEOF
2223if ac_fn_c_try_cpp "$LINENO"; then :
2224  ac_header_preproc=yes
2225else
2226  ac_header_preproc=no
2227fi
2228rm -f conftest.err conftest.i conftest.$ac_ext
2229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2230$as_echo "$ac_header_preproc" >&6; }
2231
2232# So?  What about this header?
2233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2234  yes:no: )
2235    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2236$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2237    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2238$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2239    ;;
2240  no:yes:* )
2241    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2242$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2243    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2244$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2245    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2246$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2247    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2248$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2249    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2250$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2251( $as_echo "## ---------------------------------------- ##
2252## Report this to mchehab+huawei@kernel.org ##
2253## ---------------------------------------- ##"
2254     ) | sed "s/^/$as_me: WARNING:     /" >&2
2255    ;;
2256esac
2257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258$as_echo_n "checking for $2... " >&6; }
2259if eval \${$3+:} false; then :
2260  $as_echo_n "(cached) " >&6
2261else
2262  eval "$3=\$ac_header_compiler"
2263fi
2264eval ac_res=\$$3
2265	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266$as_echo "$ac_res" >&6; }
2267fi
2268  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269
2270} # ac_fn_c_check_header_mongrel
2271
2272# ac_fn_cxx_try_compile LINENO
2273# ----------------------------
2274# Try to compile conftest.$ac_ext, and return whether this succeeded.
2275ac_fn_cxx_try_compile ()
2276{
2277  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278  rm -f conftest.$ac_objext
2279  if { { ac_try="$ac_compile"
2280case "(($ac_try" in
2281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282  *) ac_try_echo=$ac_try;;
2283esac
2284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2285$as_echo "$ac_try_echo"; } >&5
2286  (eval "$ac_compile") 2>conftest.err
2287  ac_status=$?
2288  if test -s conftest.err; then
2289    grep -v '^ *+' conftest.err >conftest.er1
2290    cat conftest.er1 >&5
2291    mv -f conftest.er1 conftest.err
2292  fi
2293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294  test $ac_status = 0; } && {
2295	 test -z "$ac_cxx_werror_flag" ||
2296	 test ! -s conftest.err
2297       } && test -s conftest.$ac_objext; then :
2298  ac_retval=0
2299else
2300  $as_echo "$as_me: failed program was:" >&5
2301sed 's/^/| /' conftest.$ac_ext >&5
2302
2303	ac_retval=1
2304fi
2305  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306  as_fn_set_status $ac_retval
2307
2308} # ac_fn_cxx_try_compile
2309
2310# ac_fn_cxx_try_cpp LINENO
2311# ------------------------
2312# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2313ac_fn_cxx_try_cpp ()
2314{
2315  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316  if { { ac_try="$ac_cpp conftest.$ac_ext"
2317case "(($ac_try" in
2318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319  *) ac_try_echo=$ac_try;;
2320esac
2321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2322$as_echo "$ac_try_echo"; } >&5
2323  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2324  ac_status=$?
2325  if test -s conftest.err; then
2326    grep -v '^ *+' conftest.err >conftest.er1
2327    cat conftest.er1 >&5
2328    mv -f conftest.er1 conftest.err
2329  fi
2330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2331  test $ac_status = 0; } > conftest.i && {
2332	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2333	 test ! -s conftest.err
2334       }; then :
2335  ac_retval=0
2336else
2337  $as_echo "$as_me: failed program was:" >&5
2338sed 's/^/| /' conftest.$ac_ext >&5
2339
2340    ac_retval=1
2341fi
2342  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343  as_fn_set_status $ac_retval
2344
2345} # ac_fn_cxx_try_cpp
2346
2347# ac_fn_cxx_try_link LINENO
2348# -------------------------
2349# Try to link conftest.$ac_ext, and return whether this succeeded.
2350ac_fn_cxx_try_link ()
2351{
2352  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353  rm -f conftest.$ac_objext conftest$ac_exeext
2354  if { { ac_try="$ac_link"
2355case "(($ac_try" in
2356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357  *) ac_try_echo=$ac_try;;
2358esac
2359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2360$as_echo "$ac_try_echo"; } >&5
2361  (eval "$ac_link") 2>conftest.err
2362  ac_status=$?
2363  if test -s conftest.err; then
2364    grep -v '^ *+' conftest.err >conftest.er1
2365    cat conftest.er1 >&5
2366    mv -f conftest.er1 conftest.err
2367  fi
2368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369  test $ac_status = 0; } && {
2370	 test -z "$ac_cxx_werror_flag" ||
2371	 test ! -s conftest.err
2372       } && test -s conftest$ac_exeext && {
2373	 test "$cross_compiling" = yes ||
2374	 test -x conftest$ac_exeext
2375       }; then :
2376  ac_retval=0
2377else
2378  $as_echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381	ac_retval=1
2382fi
2383  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2384  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2385  # interfere with the next link command; also delete a directory that is
2386  # left behind by Apple's compiler.  We do this before executing the actions.
2387  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2388  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2389  as_fn_set_status $ac_retval
2390
2391} # ac_fn_cxx_try_link
2392
2393# ac_fn_c_find_intX_t LINENO BITS VAR
2394# -----------------------------------
2395# Finds a signed integer type with width BITS, setting cache variable VAR
2396# accordingly.
2397ac_fn_c_find_intX_t ()
2398{
2399  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2401$as_echo_n "checking for int$2_t... " >&6; }
2402if eval \${$3+:} false; then :
2403  $as_echo_n "(cached) " >&6
2404else
2405  eval "$3=no"
2406     # Order is important - never check a type that is potentially smaller
2407     # than half of the expected target width.
2408     for ac_type in int$2_t 'int' 'long int' \
2409	 'long long int' 'short int' 'signed char'; do
2410       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411/* end confdefs.h.  */
2412$ac_includes_default
2413	     enum { N = $2 / 2 - 1 };
2414int
2415main ()
2416{
2417static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2418test_array [0] = 0;
2419return test_array [0];
2420
2421  ;
2422  return 0;
2423}
2424_ACEOF
2425if ac_fn_c_try_compile "$LINENO"; then :
2426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427/* end confdefs.h.  */
2428$ac_includes_default
2429	        enum { N = $2 / 2 - 1 };
2430int
2431main ()
2432{
2433static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2434		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2435test_array [0] = 0;
2436return test_array [0];
2437
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442if ac_fn_c_try_compile "$LINENO"; then :
2443
2444else
2445  case $ac_type in #(
2446  int$2_t) :
2447    eval "$3=yes" ;; #(
2448  *) :
2449    eval "$3=\$ac_type" ;;
2450esac
2451fi
2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453fi
2454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455       if eval test \"x\$"$3"\" = x"no"; then :
2456
2457else
2458  break
2459fi
2460     done
2461fi
2462eval ac_res=\$$3
2463	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464$as_echo "$ac_res" >&6; }
2465  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2466
2467} # ac_fn_c_find_intX_t
2468
2469# ac_fn_c_find_uintX_t LINENO BITS VAR
2470# ------------------------------------
2471# Finds an unsigned integer type with width BITS, setting cache variable VAR
2472# accordingly.
2473ac_fn_c_find_uintX_t ()
2474{
2475  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2477$as_echo_n "checking for uint$2_t... " >&6; }
2478if eval \${$3+:} false; then :
2479  $as_echo_n "(cached) " >&6
2480else
2481  eval "$3=no"
2482     # Order is important - never check a type that is potentially smaller
2483     # than half of the expected target width.
2484     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2485	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2486       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487/* end confdefs.h.  */
2488$ac_includes_default
2489int
2490main ()
2491{
2492static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2493test_array [0] = 0;
2494return test_array [0];
2495
2496  ;
2497  return 0;
2498}
2499_ACEOF
2500if ac_fn_c_try_compile "$LINENO"; then :
2501  case $ac_type in #(
2502  uint$2_t) :
2503    eval "$3=yes" ;; #(
2504  *) :
2505    eval "$3=\$ac_type" ;;
2506esac
2507fi
2508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509       if eval test \"x\$"$3"\" = x"no"; then :
2510
2511else
2512  break
2513fi
2514     done
2515fi
2516eval ac_res=\$$3
2517	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2518$as_echo "$ac_res" >&6; }
2519  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520
2521} # ac_fn_c_find_uintX_t
2522
2523# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2524# ----------------------------------------------------
2525# Tries to find if the field MEMBER exists in type AGGR, after including
2526# INCLUDES, setting cache variable VAR accordingly.
2527ac_fn_c_check_member ()
2528{
2529  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2531$as_echo_n "checking for $2.$3... " >&6; }
2532if eval \${$4+:} false; then :
2533  $as_echo_n "(cached) " >&6
2534else
2535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2536/* end confdefs.h.  */
2537$5
2538int
2539main ()
2540{
2541static $2 ac_aggr;
2542if (ac_aggr.$3)
2543return 0;
2544  ;
2545  return 0;
2546}
2547_ACEOF
2548if ac_fn_c_try_compile "$LINENO"; then :
2549  eval "$4=yes"
2550else
2551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552/* end confdefs.h.  */
2553$5
2554int
2555main ()
2556{
2557static $2 ac_aggr;
2558if (sizeof ac_aggr.$3)
2559return 0;
2560  ;
2561  return 0;
2562}
2563_ACEOF
2564if ac_fn_c_try_compile "$LINENO"; then :
2565  eval "$4=yes"
2566else
2567  eval "$4=no"
2568fi
2569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570fi
2571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572fi
2573eval ac_res=\$$4
2574	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575$as_echo "$ac_res" >&6; }
2576  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2577
2578} # ac_fn_c_check_member
2579cat >config.log <<_ACEOF
2580This file contains any messages produced by compilers while
2581running configure, to aid debugging if configure makes a mistake.
2582
2583It was created by zbar $as_me 0.23.90, which was
2584generated by GNU Autoconf 2.69.  Invocation command line was
2585
2586  $ $0 $@
2587
2588_ACEOF
2589exec 5>>config.log
2590{
2591cat <<_ASUNAME
2592## --------- ##
2593## Platform. ##
2594## --------- ##
2595
2596hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2597uname -m = `(uname -m) 2>/dev/null || echo unknown`
2598uname -r = `(uname -r) 2>/dev/null || echo unknown`
2599uname -s = `(uname -s) 2>/dev/null || echo unknown`
2600uname -v = `(uname -v) 2>/dev/null || echo unknown`
2601
2602/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2603/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2604
2605/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2606/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2607/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2608/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2609/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2610/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2611/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2612
2613_ASUNAME
2614
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620    $as_echo "PATH: $as_dir"
2621  done
2622IFS=$as_save_IFS
2623
2624} >&5
2625
2626cat >&5 <<_ACEOF
2627
2628
2629## ----------- ##
2630## Core tests. ##
2631## ----------- ##
2632
2633_ACEOF
2634
2635
2636# Keep a trace of the command line.
2637# Strip out --no-create and --no-recursion so they do not pile up.
2638# Strip out --silent because we don't want to record it for future runs.
2639# Also quote any args containing shell meta-characters.
2640# Make two passes to allow for proper duplicate-argument suppression.
2641ac_configure_args=
2642ac_configure_args0=
2643ac_configure_args1=
2644ac_must_keep_next=false
2645for ac_pass in 1 2
2646do
2647  for ac_arg
2648  do
2649    case $ac_arg in
2650    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2651    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2652    | -silent | --silent | --silen | --sile | --sil)
2653      continue ;;
2654    *\'*)
2655      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2656    esac
2657    case $ac_pass in
2658    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2659    2)
2660      as_fn_append ac_configure_args1 " '$ac_arg'"
2661      if test $ac_must_keep_next = true; then
2662	ac_must_keep_next=false # Got value, back to normal.
2663      else
2664	case $ac_arg in
2665	  *=* | --config-cache | -C | -disable-* | --disable-* \
2666	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2667	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2668	  | -with-* | --with-* | -without-* | --without-* | --x)
2669	    case "$ac_configure_args0 " in
2670	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2671	    esac
2672	    ;;
2673	  -* ) ac_must_keep_next=true ;;
2674	esac
2675      fi
2676      as_fn_append ac_configure_args " '$ac_arg'"
2677      ;;
2678    esac
2679  done
2680done
2681{ ac_configure_args0=; unset ac_configure_args0;}
2682{ ac_configure_args1=; unset ac_configure_args1;}
2683
2684# When interrupted or exit'd, cleanup temporary files, and complete
2685# config.log.  We remove comments because anyway the quotes in there
2686# would cause problems or look ugly.
2687# WARNING: Use '\'' to represent an apostrophe within the trap.
2688# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2689trap 'exit_status=$?
2690  # Save into config.log some information that might help in debugging.
2691  {
2692    echo
2693
2694    $as_echo "## ---------------- ##
2695## Cache variables. ##
2696## ---------------- ##"
2697    echo
2698    # The following way of writing the cache mishandles newlines in values,
2699(
2700  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2701    eval ac_val=\$$ac_var
2702    case $ac_val in #(
2703    *${as_nl}*)
2704      case $ac_var in #(
2705      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2706$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2707      esac
2708      case $ac_var in #(
2709      _ | IFS | as_nl) ;; #(
2710      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2711      *) { eval $ac_var=; unset $ac_var;} ;;
2712      esac ;;
2713    esac
2714  done
2715  (set) 2>&1 |
2716    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2717    *${as_nl}ac_space=\ *)
2718      sed -n \
2719	"s/'\''/'\''\\\\'\'''\''/g;
2720	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2721      ;; #(
2722    *)
2723      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2724      ;;
2725    esac |
2726    sort
2727)
2728    echo
2729
2730    $as_echo "## ----------------- ##
2731## Output variables. ##
2732## ----------------- ##"
2733    echo
2734    for ac_var in $ac_subst_vars
2735    do
2736      eval ac_val=\$$ac_var
2737      case $ac_val in
2738      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2739      esac
2740      $as_echo "$ac_var='\''$ac_val'\''"
2741    done | sort
2742    echo
2743
2744    if test -n "$ac_subst_files"; then
2745      $as_echo "## ------------------- ##
2746## File substitutions. ##
2747## ------------------- ##"
2748      echo
2749      for ac_var in $ac_subst_files
2750      do
2751	eval ac_val=\$$ac_var
2752	case $ac_val in
2753	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2754	esac
2755	$as_echo "$ac_var='\''$ac_val'\''"
2756      done | sort
2757      echo
2758    fi
2759
2760    if test -s confdefs.h; then
2761      $as_echo "## ----------- ##
2762## confdefs.h. ##
2763## ----------- ##"
2764      echo
2765      cat confdefs.h
2766      echo
2767    fi
2768    test "$ac_signal" != 0 &&
2769      $as_echo "$as_me: caught signal $ac_signal"
2770    $as_echo "$as_me: exit $exit_status"
2771  } >&5
2772  rm -f core *.core core.conftest.* &&
2773    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2774    exit $exit_status
2775' 0
2776for ac_signal in 1 2 13 15; do
2777  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2778done
2779ac_signal=0
2780
2781# confdefs.h avoids OS command line length limits that DEFS can exceed.
2782rm -f -r conftest* confdefs.h
2783
2784$as_echo "/* confdefs.h */" > confdefs.h
2785
2786# Predefined preprocessor variables.
2787
2788cat >>confdefs.h <<_ACEOF
2789#define PACKAGE_NAME "$PACKAGE_NAME"
2790_ACEOF
2791
2792cat >>confdefs.h <<_ACEOF
2793#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2794_ACEOF
2795
2796cat >>confdefs.h <<_ACEOF
2797#define PACKAGE_VERSION "$PACKAGE_VERSION"
2798_ACEOF
2799
2800cat >>confdefs.h <<_ACEOF
2801#define PACKAGE_STRING "$PACKAGE_STRING"
2802_ACEOF
2803
2804cat >>confdefs.h <<_ACEOF
2805#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2806_ACEOF
2807
2808cat >>confdefs.h <<_ACEOF
2809#define PACKAGE_URL "$PACKAGE_URL"
2810_ACEOF
2811
2812
2813# Let the site file select an alternate cache file if it wants to.
2814# Prefer an explicitly selected file to automatically selected ones.
2815ac_site_file1=NONE
2816ac_site_file2=NONE
2817if test -n "$CONFIG_SITE"; then
2818  # We do not want a PATH search for config.site.
2819  case $CONFIG_SITE in #((
2820    -*)  ac_site_file1=./$CONFIG_SITE;;
2821    */*) ac_site_file1=$CONFIG_SITE;;
2822    *)   ac_site_file1=./$CONFIG_SITE;;
2823  esac
2824elif test "x$prefix" != xNONE; then
2825  ac_site_file1=$prefix/share/config.site
2826  ac_site_file2=$prefix/etc/config.site
2827else
2828  ac_site_file1=$ac_default_prefix/share/config.site
2829  ac_site_file2=$ac_default_prefix/etc/config.site
2830fi
2831for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2832do
2833  test "x$ac_site_file" = xNONE && continue
2834  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2835    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2836$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2837    sed 's/^/| /' "$ac_site_file" >&5
2838    . "$ac_site_file" \
2839      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841as_fn_error $? "failed to load site script $ac_site_file
2842See \`config.log' for more details" "$LINENO" 5; }
2843  fi
2844done
2845
2846if test -r "$cache_file"; then
2847  # Some versions of bash will fail to source /dev/null (special files
2848  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2849  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2850    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2851$as_echo "$as_me: loading cache $cache_file" >&6;}
2852    case $cache_file in
2853      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2854      *)                      . "./$cache_file";;
2855    esac
2856  fi
2857else
2858  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2859$as_echo "$as_me: creating cache $cache_file" >&6;}
2860  >$cache_file
2861fi
2862
2863gt_needs="$gt_needs "
2864as_fn_append ac_header_list " stdlib.h"
2865as_fn_append ac_header_list " unistd.h"
2866as_fn_append ac_header_list " sys/param.h"
2867# Check that the precious variables saved in the cache have kept the same
2868# value.
2869ac_cache_corrupted=false
2870for ac_var in $ac_precious_vars; do
2871  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2872  eval ac_new_set=\$ac_env_${ac_var}_set
2873  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2874  eval ac_new_val=\$ac_env_${ac_var}_value
2875  case $ac_old_set,$ac_new_set in
2876    set,)
2877      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2878$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2879      ac_cache_corrupted=: ;;
2880    ,set)
2881      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2882$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2883      ac_cache_corrupted=: ;;
2884    ,);;
2885    *)
2886      if test "x$ac_old_val" != "x$ac_new_val"; then
2887	# differences in whitespace do not lead to failure.
2888	ac_old_val_w=`echo x $ac_old_val`
2889	ac_new_val_w=`echo x $ac_new_val`
2890	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2891	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2892$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2893	  ac_cache_corrupted=:
2894	else
2895	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2896$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2897	  eval $ac_var=\$ac_old_val
2898	fi
2899	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2900$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2901	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2902$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2903      fi;;
2904  esac
2905  # Pass precious variables to config.status.
2906  if test "$ac_new_set" = set; then
2907    case $ac_new_val in
2908    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2909    *) ac_arg=$ac_var=$ac_new_val ;;
2910    esac
2911    case " $ac_configure_args " in
2912      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2913      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2914    esac
2915  fi
2916done
2917if $ac_cache_corrupted; then
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2921$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2922  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2923fi
2924## -------------------- ##
2925## Main body of script. ##
2926## -------------------- ##
2927
2928ac_ext=c
2929ac_cpp='$CPP $CPPFLAGS'
2930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933
2934
2935
2936ac_aux_dir=
2937for ac_dir in config "$srcdir"/config; do
2938  if test -f "$ac_dir/install-sh"; then
2939    ac_aux_dir=$ac_dir
2940    ac_install_sh="$ac_aux_dir/install-sh -c"
2941    break
2942  elif test -f "$ac_dir/install.sh"; then
2943    ac_aux_dir=$ac_dir
2944    ac_install_sh="$ac_aux_dir/install.sh -c"
2945    break
2946  elif test -f "$ac_dir/shtool"; then
2947    ac_aux_dir=$ac_dir
2948    ac_install_sh="$ac_aux_dir/shtool install -c"
2949    break
2950  fi
2951done
2952if test -z "$ac_aux_dir"; then
2953  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2954fi
2955
2956# These three variables are undocumented and unsupported,
2957# and are intended to be withdrawn in a future Autoconf release.
2958# They can cause serious problems if a builder's source tree is in a directory
2959# whose full name contains unusual characters.
2960ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2961ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2962ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2963
2964
2965
2966am__api_version='1.16'
2967
2968# Find a good install program.  We prefer a C program (faster),
2969# so one script is as good as another.  But avoid the broken or
2970# incompatible versions:
2971# SysV /etc/install, /usr/sbin/install
2972# SunOS /usr/etc/install
2973# IRIX /sbin/install
2974# AIX /bin/install
2975# AmigaOS /C/install, which installs bootblocks on floppy discs
2976# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2977# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2978# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2979# OS/2's system install, which has a completely different semantic
2980# ./install, which can be erroneously created by make from ./install.sh.
2981# Reject install programs that cannot install multiple files.
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2983$as_echo_n "checking for a BSD-compatible install... " >&6; }
2984if test -z "$INSTALL"; then
2985if ${ac_cv_path_install+:} false; then :
2986  $as_echo_n "(cached) " >&6
2987else
2988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991  IFS=$as_save_IFS
2992  test -z "$as_dir" && as_dir=.
2993    # Account for people who put trailing slashes in PATH elements.
2994case $as_dir/ in #((
2995  ./ | .// | /[cC]/* | \
2996  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2997  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2998  /usr/ucb/* ) ;;
2999  *)
3000    # OSF1 and SCO ODT 3.0 have their own names for install.
3001    # Don't use installbsd from OSF since it installs stuff as root
3002    # by default.
3003    for ac_prog in ginstall scoinst install; do
3004      for ac_exec_ext in '' $ac_executable_extensions; do
3005	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3006	  if test $ac_prog = install &&
3007	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3008	    # AIX install.  It has an incompatible calling convention.
3009	    :
3010	  elif test $ac_prog = install &&
3011	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3012	    # program-specific install script used by HP pwplus--don't use.
3013	    :
3014	  else
3015	    rm -rf conftest.one conftest.two conftest.dir
3016	    echo one > conftest.one
3017	    echo two > conftest.two
3018	    mkdir conftest.dir
3019	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3020	      test -s conftest.one && test -s conftest.two &&
3021	      test -s conftest.dir/conftest.one &&
3022	      test -s conftest.dir/conftest.two
3023	    then
3024	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3025	      break 3
3026	    fi
3027	  fi
3028	fi
3029      done
3030    done
3031    ;;
3032esac
3033
3034  done
3035IFS=$as_save_IFS
3036
3037rm -rf conftest.one conftest.two conftest.dir
3038
3039fi
3040  if test "${ac_cv_path_install+set}" = set; then
3041    INSTALL=$ac_cv_path_install
3042  else
3043    # As a last resort, use the slow shell script.  Don't cache a
3044    # value for INSTALL within a source directory, because that will
3045    # break other packages using the cache if that directory is
3046    # removed, or if the value is a relative name.
3047    INSTALL=$ac_install_sh
3048  fi
3049fi
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3051$as_echo "$INSTALL" >&6; }
3052
3053# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3054# It thinks the first close brace ends the variable substitution.
3055test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3056
3057test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3058
3059test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3060
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3062$as_echo_n "checking whether build environment is sane... " >&6; }
3063# Reject unsafe characters in $srcdir or the absolute working directory
3064# name.  Accept space and tab only in the latter.
3065am_lf='
3066'
3067case `pwd` in
3068  *[\\\"\#\$\&\'\`$am_lf]*)
3069    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3070esac
3071case $srcdir in
3072  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3073    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3074esac
3075
3076# Do 'set' in a subshell so we don't clobber the current shell's
3077# arguments.  Must try -L first in case configure is actually a
3078# symlink; some systems play weird games with the mod time of symlinks
3079# (eg FreeBSD returns the mod time of the symlink's containing
3080# directory).
3081if (
3082   am_has_slept=no
3083   for am_try in 1 2; do
3084     echo "timestamp, slept: $am_has_slept" > conftest.file
3085     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3086     if test "$*" = "X"; then
3087	# -L didn't work.
3088	set X `ls -t "$srcdir/configure" conftest.file`
3089     fi
3090     if test "$*" != "X $srcdir/configure conftest.file" \
3091	&& test "$*" != "X conftest.file $srcdir/configure"; then
3092
3093	# If neither matched, then we have a broken ls.  This can happen
3094	# if, for instance, CONFIG_SHELL is bash and it inherits a
3095	# broken ls alias from the environment.  This has actually
3096	# happened.  Such a system could not be considered "sane".
3097	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3098  alias in your environment" "$LINENO" 5
3099     fi
3100     if test "$2" = conftest.file || test $am_try -eq 2; then
3101       break
3102     fi
3103     # Just in case.
3104     sleep 1
3105     am_has_slept=yes
3106   done
3107   test "$2" = conftest.file
3108   )
3109then
3110   # Ok.
3111   :
3112else
3113   as_fn_error $? "newly created file is older than distributed files!
3114Check your system clock" "$LINENO" 5
3115fi
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3117$as_echo "yes" >&6; }
3118# If we didn't sleep, we still need to ensure time stamps of config.status and
3119# generated files are strictly newer.
3120am_sleep_pid=
3121if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3122  ( sleep 1 ) &
3123  am_sleep_pid=$!
3124fi
3125
3126rm -f conftest.file
3127
3128test "$program_prefix" != NONE &&
3129  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3130# Use a double $ so make ignores it.
3131test "$program_suffix" != NONE &&
3132  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3133# Double any \ or $.
3134# By default was `s,x,x', remove it if useless.
3135ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3136program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3137
3138# Expand $ac_aux_dir to an absolute path.
3139am_aux_dir=`cd "$ac_aux_dir" && pwd`
3140
3141if test x"${MISSING+set}" != xset; then
3142  case $am_aux_dir in
3143  *\ * | *\	*)
3144    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3145  *)
3146    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3147  esac
3148fi
3149# Use eval to expand $SHELL
3150if eval "$MISSING --is-lightweight"; then
3151  am_missing_run="$MISSING "
3152else
3153  am_missing_run=
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3155$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3156fi
3157
3158if test x"${install_sh+set}" != xset; then
3159  case $am_aux_dir in
3160  *\ * | *\	*)
3161    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3162  *)
3163    install_sh="\${SHELL} $am_aux_dir/install-sh"
3164  esac
3165fi
3166
3167# Installed binaries are usually stripped using 'strip' when the user
3168# run "make install-strip".  However 'strip' might not be the right
3169# tool to use in cross-compilation environments, therefore Automake
3170# will honor the 'STRIP' environment variable to overrule this program.
3171if test "$cross_compiling" != no; then
3172  if test -n "$ac_tool_prefix"; then
3173  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3174set dummy ${ac_tool_prefix}strip; ac_word=$2
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176$as_echo_n "checking for $ac_word... " >&6; }
3177if ${ac_cv_prog_STRIP+:} false; then :
3178  $as_echo_n "(cached) " >&6
3179else
3180  if test -n "$STRIP"; then
3181  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186  IFS=$as_save_IFS
3187  test -z "$as_dir" && as_dir=.
3188    for ac_exec_ext in '' $ac_executable_extensions; do
3189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192    break 2
3193  fi
3194done
3195  done
3196IFS=$as_save_IFS
3197
3198fi
3199fi
3200STRIP=$ac_cv_prog_STRIP
3201if test -n "$STRIP"; then
3202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3203$as_echo "$STRIP" >&6; }
3204else
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207fi
3208
3209
3210fi
3211if test -z "$ac_cv_prog_STRIP"; then
3212  ac_ct_STRIP=$STRIP
3213  # Extract the first word of "strip", so it can be a program name with args.
3214set dummy strip; ac_word=$2
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216$as_echo_n "checking for $ac_word... " >&6; }
3217if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3218  $as_echo_n "(cached) " >&6
3219else
3220  if test -n "$ac_ct_STRIP"; then
3221  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3222else
3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224for as_dir in $PATH
3225do
3226  IFS=$as_save_IFS
3227  test -z "$as_dir" && as_dir=.
3228    for ac_exec_ext in '' $ac_executable_extensions; do
3229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230    ac_cv_prog_ac_ct_STRIP="strip"
3231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232    break 2
3233  fi
3234done
3235  done
3236IFS=$as_save_IFS
3237
3238fi
3239fi
3240ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3241if test -n "$ac_ct_STRIP"; then
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3243$as_echo "$ac_ct_STRIP" >&6; }
3244else
3245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246$as_echo "no" >&6; }
3247fi
3248
3249  if test "x$ac_ct_STRIP" = x; then
3250    STRIP=":"
3251  else
3252    case $cross_compiling:$ac_tool_warned in
3253yes:)
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3256ac_tool_warned=yes ;;
3257esac
3258    STRIP=$ac_ct_STRIP
3259  fi
3260else
3261  STRIP="$ac_cv_prog_STRIP"
3262fi
3263
3264fi
3265INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3266
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3268$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3269if test -z "$MKDIR_P"; then
3270  if ${ac_cv_path_mkdir+:} false; then :
3271  $as_echo_n "(cached) " >&6
3272else
3273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3275do
3276  IFS=$as_save_IFS
3277  test -z "$as_dir" && as_dir=.
3278    for ac_prog in mkdir gmkdir; do
3279	 for ac_exec_ext in '' $ac_executable_extensions; do
3280	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3281	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3282	     'mkdir (GNU coreutils) '* | \
3283	     'mkdir (coreutils) '* | \
3284	     'mkdir (fileutils) '4.1*)
3285	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3286	       break 3;;
3287	   esac
3288	 done
3289       done
3290  done
3291IFS=$as_save_IFS
3292
3293fi
3294
3295  test -d ./--version && rmdir ./--version
3296  if test "${ac_cv_path_mkdir+set}" = set; then
3297    MKDIR_P="$ac_cv_path_mkdir -p"
3298  else
3299    # As a last resort, use the slow shell script.  Don't cache a
3300    # value for MKDIR_P within a source directory, because that will
3301    # break other packages using the cache if that directory is
3302    # removed, or if the value is a relative name.
3303    MKDIR_P="$ac_install_sh -d"
3304  fi
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3307$as_echo "$MKDIR_P" >&6; }
3308
3309for ac_prog in gawk mawk nawk awk
3310do
3311  # Extract the first word of "$ac_prog", so it can be a program name with args.
3312set dummy $ac_prog; ac_word=$2
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314$as_echo_n "checking for $ac_word... " >&6; }
3315if ${ac_cv_prog_AWK+:} false; then :
3316  $as_echo_n "(cached) " >&6
3317else
3318  if test -n "$AWK"; then
3319  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324  IFS=$as_save_IFS
3325  test -z "$as_dir" && as_dir=.
3326    for ac_exec_ext in '' $ac_executable_extensions; do
3327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328    ac_cv_prog_AWK="$ac_prog"
3329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330    break 2
3331  fi
3332done
3333  done
3334IFS=$as_save_IFS
3335
3336fi
3337fi
3338AWK=$ac_cv_prog_AWK
3339if test -n "$AWK"; then
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3341$as_echo "$AWK" >&6; }
3342else
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344$as_echo "no" >&6; }
3345fi
3346
3347
3348  test -n "$AWK" && break
3349done
3350
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3352$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3353set x ${MAKE-make}
3354ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3355if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3356  $as_echo_n "(cached) " >&6
3357else
3358  cat >conftest.make <<\_ACEOF
3359SHELL = /bin/sh
3360all:
3361	@echo '@@@%%%=$(MAKE)=@@@%%%'
3362_ACEOF
3363# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3364case `${MAKE-make} -f conftest.make 2>/dev/null` in
3365  *@@@%%%=?*=@@@%%%*)
3366    eval ac_cv_prog_make_${ac_make}_set=yes;;
3367  *)
3368    eval ac_cv_prog_make_${ac_make}_set=no;;
3369esac
3370rm -f conftest.make
3371fi
3372if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374$as_echo "yes" >&6; }
3375  SET_MAKE=
3376else
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
3379  SET_MAKE="MAKE=${MAKE-make}"
3380fi
3381
3382rm -rf .tst 2>/dev/null
3383mkdir .tst 2>/dev/null
3384if test -d .tst; then
3385  am__leading_dot=.
3386else
3387  am__leading_dot=_
3388fi
3389rmdir .tst 2>/dev/null
3390
3391# Check whether --enable-silent-rules was given.
3392if test "${enable_silent_rules+set}" = set; then :
3393  enableval=$enable_silent_rules;
3394fi
3395
3396case $enable_silent_rules in # (((
3397  yes) AM_DEFAULT_VERBOSITY=0;;
3398   no) AM_DEFAULT_VERBOSITY=1;;
3399    *) AM_DEFAULT_VERBOSITY=1;;
3400esac
3401am_make=${MAKE-make}
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3403$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3404if ${am_cv_make_support_nested_variables+:} false; then :
3405  $as_echo_n "(cached) " >&6
3406else
3407  if $as_echo 'TRUE=$(BAR$(V))
3408BAR0=false
3409BAR1=true
3410V=1
3411am__doit:
3412	@$(TRUE)
3413.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3414  am_cv_make_support_nested_variables=yes
3415else
3416  am_cv_make_support_nested_variables=no
3417fi
3418fi
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3420$as_echo "$am_cv_make_support_nested_variables" >&6; }
3421if test $am_cv_make_support_nested_variables = yes; then
3422    AM_V='$(V)'
3423  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3424else
3425  AM_V=$AM_DEFAULT_VERBOSITY
3426  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3427fi
3428AM_BACKSLASH='\'
3429
3430if test "`cd $srcdir && pwd`" != "`pwd`"; then
3431  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3432  # is not polluted with repeated "-I."
3433  am__isrc=' -I$(srcdir)'
3434  # test to see if srcdir already configured
3435  if test -f $srcdir/config.status; then
3436    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3437  fi
3438fi
3439
3440# test whether we have cygpath
3441if test -z "$CYGPATH_W"; then
3442  if (cygpath --version) >/dev/null 2>/dev/null; then
3443    CYGPATH_W='cygpath -w'
3444  else
3445    CYGPATH_W=echo
3446  fi
3447fi
3448
3449
3450# Define the identity of the package.
3451 PACKAGE='zbar'
3452 VERSION='0.23.90'
3453
3454
3455cat >>confdefs.h <<_ACEOF
3456#define PACKAGE "$PACKAGE"
3457_ACEOF
3458
3459
3460cat >>confdefs.h <<_ACEOF
3461#define VERSION "$VERSION"
3462_ACEOF
3463
3464# Some tools Automake needs.
3465
3466ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3467
3468
3469AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3470
3471
3472AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3473
3474
3475AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3476
3477
3478MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3479
3480# For better backward compatibility.  To be removed once Automake 1.9.x
3481# dies out for good.  For more background, see:
3482# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3483# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3484mkdir_p='$(MKDIR_P)'
3485
3486# We need awk for the "check" target (and possibly the TAP driver).  The
3487# system "awk" is bad on some platforms.
3488# Always define AMTAR for backward compatibility.  Yes, it's still used
3489# in the wild :-(  We should find a proper way to deprecate it ...
3490AMTAR='$${TAR-tar}'
3491
3492
3493# We'll loop over all known methods to create a tar archive until one works.
3494_am_tools='gnutar  pax cpio none'
3495
3496am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3497
3498
3499
3500
3501
3502
3503# POSIX will say in a future version that running "rm -f" with no argument
3504# is OK; and we want to be able to make that assumption in our Makefile
3505# recipes.  So use an aggressive probe to check that the usage we want is
3506# actually supported "in the wild" to an acceptable degree.
3507# See automake bug#10828.
3508# To make any issue more visible, cause the running configure to be aborted
3509# by default if the 'rm' program in use doesn't match our expectations; the
3510# user can still override this though.
3511if rm -f && rm -fr && rm -rf; then : OK; else
3512  cat >&2 <<'END'
3513Oops!
3514
3515Your 'rm' program seems unable to run without file operands specified
3516on the command line, even when the '-f' option is present.  This is contrary
3517to the behaviour of most rm programs out there, and not conforming with
3518the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3519
3520Please tell bug-automake@gnu.org about your system, including the value
3521of your $PATH and any error possibly output before this message.  This
3522can help us improve future automake versions.
3523
3524END
3525  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3526    echo 'Configuration will proceed anyway, since you have set the' >&2
3527    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3528    echo >&2
3529  else
3530    cat >&2 <<'END'
3531Aborting the configuration process, to ensure you take notice of the issue.
3532
3533You can download and install GNU coreutils to get an 'rm' implementation
3534that behaves properly: <https://www.gnu.org/software/coreutils/>.
3535
3536If you want to complete the configuration process using your problematic
3537'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3538to "yes", and re-run configure.
3539
3540END
3541    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3542  fi
3543fi
3544
3545
3546ac_config_headers="$ac_config_headers include/config.h"
3547
3548
3549
3550case `pwd` in
3551  *\ * | *\	*)
3552    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3553$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3554esac
3555
3556
3557
3558macro_version='2.4.6'
3559macro_revision='2.4.6'
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573ltmain=$ac_aux_dir/ltmain.sh
3574
3575# Make sure we can run config.sub.
3576$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3577  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3578
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3580$as_echo_n "checking build system type... " >&6; }
3581if ${ac_cv_build+:} false; then :
3582  $as_echo_n "(cached) " >&6
3583else
3584  ac_build_alias=$build_alias
3585test "x$ac_build_alias" = x &&
3586  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3587test "x$ac_build_alias" = x &&
3588  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3589ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3590  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3591
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3594$as_echo "$ac_cv_build" >&6; }
3595case $ac_cv_build in
3596*-*-*) ;;
3597*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3598esac
3599build=$ac_cv_build
3600ac_save_IFS=$IFS; IFS='-'
3601set x $ac_cv_build
3602shift
3603build_cpu=$1
3604build_vendor=$2
3605shift; shift
3606# Remember, the first character of IFS is used to create $*,
3607# except with old shells:
3608build_os=$*
3609IFS=$ac_save_IFS
3610case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3611
3612
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3614$as_echo_n "checking host system type... " >&6; }
3615if ${ac_cv_host+:} false; then :
3616  $as_echo_n "(cached) " >&6
3617else
3618  if test "x$host_alias" = x; then
3619  ac_cv_host=$ac_cv_build
3620else
3621  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3622    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3623fi
3624
3625fi
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3627$as_echo "$ac_cv_host" >&6; }
3628case $ac_cv_host in
3629*-*-*) ;;
3630*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3631esac
3632host=$ac_cv_host
3633ac_save_IFS=$IFS; IFS='-'
3634set x $ac_cv_host
3635shift
3636host_cpu=$1
3637host_vendor=$2
3638shift; shift
3639# Remember, the first character of IFS is used to create $*,
3640# except with old shells:
3641host_os=$*
3642IFS=$ac_save_IFS
3643case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3644
3645
3646# Backslashify metacharacters that are still active within
3647# double-quoted strings.
3648sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3649
3650# Same as above, but do not quote variable references.
3651double_quote_subst='s/\(["`\\]\)/\\\1/g'
3652
3653# Sed substitution to delay expansion of an escaped shell variable in a
3654# double_quote_subst'ed string.
3655delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3656
3657# Sed substitution to delay expansion of an escaped single quote.
3658delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3659
3660# Sed substitution to avoid accidental globbing in evaled expressions
3661no_glob_subst='s/\*/\\\*/g'
3662
3663ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3664ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3665ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3666
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3668$as_echo_n "checking how to print strings... " >&6; }
3669# Test print first, because it will be a builtin if present.
3670if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3671   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3672  ECHO='print -r --'
3673elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3674  ECHO='printf %s\n'
3675else
3676  # Use this function as a fallback that always works.
3677  func_fallback_echo ()
3678  {
3679    eval 'cat <<_LTECHO_EOF
3680$1
3681_LTECHO_EOF'
3682  }
3683  ECHO='func_fallback_echo'
3684fi
3685
3686# func_echo_all arg...
3687# Invoke $ECHO with all args, space-separated.
3688func_echo_all ()
3689{
3690    $ECHO ""
3691}
3692
3693case $ECHO in
3694  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3695$as_echo "printf" >&6; } ;;
3696  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3697$as_echo "print -r" >&6; } ;;
3698  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3699$as_echo "cat" >&6; } ;;
3700esac
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715DEPDIR="${am__leading_dot}deps"
3716
3717ac_config_commands="$ac_config_commands depfiles"
3718
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3720$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3721cat > confinc.mk << 'END'
3722am__doit:
3723	@echo this is the am__doit target >confinc.out
3724.PHONY: am__doit
3725END
3726am__include="#"
3727am__quote=
3728# BSD make does it like this.
3729echo '.include "confinc.mk" # ignored' > confmf.BSD
3730# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3731echo 'include confinc.mk # ignored' > confmf.GNU
3732_am_result=no
3733for s in GNU BSD; do
3734  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3735   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }
3739  case $?:`cat confinc.out 2>/dev/null` in #(
3740  '0:this is the am__doit target') :
3741    case $s in #(
3742  BSD) :
3743    am__include='.include' am__quote='"' ;; #(
3744  *) :
3745    am__include='include' am__quote='' ;;
3746esac ;; #(
3747  *) :
3748     ;;
3749esac
3750  if test "$am__include" != "#"; then
3751    _am_result="yes ($s style)"
3752    break
3753  fi
3754done
3755rm -f confinc.* confmf.*
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3757$as_echo "${_am_result}" >&6; }
3758
3759# Check whether --enable-dependency-tracking was given.
3760if test "${enable_dependency_tracking+set}" = set; then :
3761  enableval=$enable_dependency_tracking;
3762fi
3763
3764if test "x$enable_dependency_tracking" != xno; then
3765  am_depcomp="$ac_aux_dir/depcomp"
3766  AMDEPBACKSLASH='\'
3767  am__nodep='_no'
3768fi
3769 if test "x$enable_dependency_tracking" != xno; then
3770  AMDEP_TRUE=
3771  AMDEP_FALSE='#'
3772else
3773  AMDEP_TRUE='#'
3774  AMDEP_FALSE=
3775fi
3776
3777
3778ac_ext=c
3779ac_cpp='$CPP $CPPFLAGS'
3780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783if test -n "$ac_tool_prefix"; then
3784  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3785set dummy ${ac_tool_prefix}gcc; ac_word=$2
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787$as_echo_n "checking for $ac_word... " >&6; }
3788if ${ac_cv_prog_CC+:} false; then :
3789  $as_echo_n "(cached) " >&6
3790else
3791  if test -n "$CC"; then
3792  ac_cv_prog_CC="$CC" # Let the user override the test.
3793else
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797  IFS=$as_save_IFS
3798  test -z "$as_dir" && as_dir=.
3799    for ac_exec_ext in '' $ac_executable_extensions; do
3800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803    break 2
3804  fi
3805done
3806  done
3807IFS=$as_save_IFS
3808
3809fi
3810fi
3811CC=$ac_cv_prog_CC
3812if test -n "$CC"; then
3813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814$as_echo "$CC" >&6; }
3815else
3816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817$as_echo "no" >&6; }
3818fi
3819
3820
3821fi
3822if test -z "$ac_cv_prog_CC"; then
3823  ac_ct_CC=$CC
3824  # Extract the first word of "gcc", so it can be a program name with args.
3825set dummy gcc; ac_word=$2
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827$as_echo_n "checking for $ac_word... " >&6; }
3828if ${ac_cv_prog_ac_ct_CC+:} false; then :
3829  $as_echo_n "(cached) " >&6
3830else
3831  if test -n "$ac_ct_CC"; then
3832  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3833else
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH
3836do
3837  IFS=$as_save_IFS
3838  test -z "$as_dir" && as_dir=.
3839    for ac_exec_ext in '' $ac_executable_extensions; do
3840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841    ac_cv_prog_ac_ct_CC="gcc"
3842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843    break 2
3844  fi
3845done
3846  done
3847IFS=$as_save_IFS
3848
3849fi
3850fi
3851ac_ct_CC=$ac_cv_prog_ac_ct_CC
3852if test -n "$ac_ct_CC"; then
3853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3854$as_echo "$ac_ct_CC" >&6; }
3855else
3856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857$as_echo "no" >&6; }
3858fi
3859
3860  if test "x$ac_ct_CC" = x; then
3861    CC=""
3862  else
3863    case $cross_compiling:$ac_tool_warned in
3864yes:)
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3867ac_tool_warned=yes ;;
3868esac
3869    CC=$ac_ct_CC
3870  fi
3871else
3872  CC="$ac_cv_prog_CC"
3873fi
3874
3875if test -z "$CC"; then
3876          if test -n "$ac_tool_prefix"; then
3877    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3878set dummy ${ac_tool_prefix}cc; ac_word=$2
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880$as_echo_n "checking for $ac_word... " >&6; }
3881if ${ac_cv_prog_CC+:} false; then :
3882  $as_echo_n "(cached) " >&6
3883else
3884  if test -n "$CC"; then
3885  ac_cv_prog_CC="$CC" # Let the user override the test.
3886else
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH
3889do
3890  IFS=$as_save_IFS
3891  test -z "$as_dir" && as_dir=.
3892    for ac_exec_ext in '' $ac_executable_extensions; do
3893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894    ac_cv_prog_CC="${ac_tool_prefix}cc"
3895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896    break 2
3897  fi
3898done
3899  done
3900IFS=$as_save_IFS
3901
3902fi
3903fi
3904CC=$ac_cv_prog_CC
3905if test -n "$CC"; then
3906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3907$as_echo "$CC" >&6; }
3908else
3909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910$as_echo "no" >&6; }
3911fi
3912
3913
3914  fi
3915fi
3916if test -z "$CC"; then
3917  # Extract the first word of "cc", so it can be a program name with args.
3918set dummy cc; ac_word=$2
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920$as_echo_n "checking for $ac_word... " >&6; }
3921if ${ac_cv_prog_CC+:} false; then :
3922  $as_echo_n "(cached) " >&6
3923else
3924  if test -n "$CC"; then
3925  ac_cv_prog_CC="$CC" # Let the user override the test.
3926else
3927  ac_prog_rejected=no
3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH
3930do
3931  IFS=$as_save_IFS
3932  test -z "$as_dir" && as_dir=.
3933    for ac_exec_ext in '' $ac_executable_extensions; do
3934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3936       ac_prog_rejected=yes
3937       continue
3938     fi
3939    ac_cv_prog_CC="cc"
3940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941    break 2
3942  fi
3943done
3944  done
3945IFS=$as_save_IFS
3946
3947if test $ac_prog_rejected = yes; then
3948  # We found a bogon in the path, so make sure we never use it.
3949  set dummy $ac_cv_prog_CC
3950  shift
3951  if test $# != 0; then
3952    # We chose a different compiler from the bogus one.
3953    # However, it has the same basename, so the bogon will be chosen
3954    # first if we set CC to just the basename; use the full file name.
3955    shift
3956    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3957  fi
3958fi
3959fi
3960fi
3961CC=$ac_cv_prog_CC
3962if test -n "$CC"; then
3963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3964$as_echo "$CC" >&6; }
3965else
3966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967$as_echo "no" >&6; }
3968fi
3969
3970
3971fi
3972if test -z "$CC"; then
3973  if test -n "$ac_tool_prefix"; then
3974  for ac_prog in cl.exe
3975  do
3976    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979$as_echo_n "checking for $ac_word... " >&6; }
3980if ${ac_cv_prog_CC+:} false; then :
3981  $as_echo_n "(cached) " >&6
3982else
3983  if test -n "$CC"; then
3984  ac_cv_prog_CC="$CC" # Let the user override the test.
3985else
3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989  IFS=$as_save_IFS
3990  test -z "$as_dir" && as_dir=.
3991    for ac_exec_ext in '' $ac_executable_extensions; do
3992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995    break 2
3996  fi
3997done
3998  done
3999IFS=$as_save_IFS
4000
4001fi
4002fi
4003CC=$ac_cv_prog_CC
4004if test -n "$CC"; then
4005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4006$as_echo "$CC" >&6; }
4007else
4008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009$as_echo "no" >&6; }
4010fi
4011
4012
4013    test -n "$CC" && break
4014  done
4015fi
4016if test -z "$CC"; then
4017  ac_ct_CC=$CC
4018  for ac_prog in cl.exe
4019do
4020  # Extract the first word of "$ac_prog", so it can be a program name with args.
4021set dummy $ac_prog; ac_word=$2
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023$as_echo_n "checking for $ac_word... " >&6; }
4024if ${ac_cv_prog_ac_ct_CC+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  if test -n "$ac_ct_CC"; then
4028  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4029else
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH
4032do
4033  IFS=$as_save_IFS
4034  test -z "$as_dir" && as_dir=.
4035    for ac_exec_ext in '' $ac_executable_extensions; do
4036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037    ac_cv_prog_ac_ct_CC="$ac_prog"
4038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039    break 2
4040  fi
4041done
4042  done
4043IFS=$as_save_IFS
4044
4045fi
4046fi
4047ac_ct_CC=$ac_cv_prog_ac_ct_CC
4048if test -n "$ac_ct_CC"; then
4049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4050$as_echo "$ac_ct_CC" >&6; }
4051else
4052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
4054fi
4055
4056
4057  test -n "$ac_ct_CC" && break
4058done
4059
4060  if test "x$ac_ct_CC" = x; then
4061    CC=""
4062  else
4063    case $cross_compiling:$ac_tool_warned in
4064yes:)
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4067ac_tool_warned=yes ;;
4068esac
4069    CC=$ac_ct_CC
4070  fi
4071fi
4072
4073fi
4074
4075
4076test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4078as_fn_error $? "no acceptable C compiler found in \$PATH
4079See \`config.log' for more details" "$LINENO" 5; }
4080
4081# Provide some information about the compiler.
4082$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4083set X $ac_compile
4084ac_compiler=$2
4085for ac_option in --version -v -V -qversion; do
4086  { { ac_try="$ac_compiler $ac_option >&5"
4087case "(($ac_try" in
4088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089  *) ac_try_echo=$ac_try;;
4090esac
4091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092$as_echo "$ac_try_echo"; } >&5
4093  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4094  ac_status=$?
4095  if test -s conftest.err; then
4096    sed '10a\
4097... rest of stderr output deleted ...
4098         10q' conftest.err >conftest.er1
4099    cat conftest.er1 >&5
4100  fi
4101  rm -f conftest.er1 conftest.err
4102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103  test $ac_status = 0; }
4104done
4105
4106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107/* end confdefs.h.  */
4108
4109int
4110main ()
4111{
4112
4113  ;
4114  return 0;
4115}
4116_ACEOF
4117ac_clean_files_save=$ac_clean_files
4118ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4119# Try to create an executable without -o first, disregard a.out.
4120# It will help us diagnose broken compilers, and finding out an intuition
4121# of exeext.
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4123$as_echo_n "checking whether the C compiler works... " >&6; }
4124ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4125
4126# The possible output files:
4127ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4128
4129ac_rmfiles=
4130for ac_file in $ac_files
4131do
4132  case $ac_file in
4133    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4134    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4135  esac
4136done
4137rm -f $ac_rmfiles
4138
4139if { { ac_try="$ac_link_default"
4140case "(($ac_try" in
4141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142  *) ac_try_echo=$ac_try;;
4143esac
4144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145$as_echo "$ac_try_echo"; } >&5
4146  (eval "$ac_link_default") 2>&5
4147  ac_status=$?
4148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149  test $ac_status = 0; }; then :
4150  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4151# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4152# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4153# so that the user can short-circuit this test for compilers unknown to
4154# Autoconf.
4155for ac_file in $ac_files ''
4156do
4157  test -f "$ac_file" || continue
4158  case $ac_file in
4159    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4160	;;
4161    [ab].out )
4162	# We found the default executable, but exeext='' is most
4163	# certainly right.
4164	break;;
4165    *.* )
4166	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4167	then :; else
4168	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4169	fi
4170	# We set ac_cv_exeext here because the later test for it is not
4171	# safe: cross compilers may not add the suffix if given an `-o'
4172	# argument, so we may need to know it at that point already.
4173	# Even if this section looks crufty: it has the advantage of
4174	# actually working.
4175	break;;
4176    * )
4177	break;;
4178  esac
4179done
4180test "$ac_cv_exeext" = no && ac_cv_exeext=
4181
4182else
4183  ac_file=''
4184fi
4185if test -z "$ac_file"; then :
4186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187$as_echo "no" >&6; }
4188$as_echo "$as_me: failed program was:" >&5
4189sed 's/^/| /' conftest.$ac_ext >&5
4190
4191{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193as_fn_error 77 "C compiler cannot create executables
4194See \`config.log' for more details" "$LINENO" 5; }
4195else
4196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4197$as_echo "yes" >&6; }
4198fi
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4200$as_echo_n "checking for C compiler default output file name... " >&6; }
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4202$as_echo "$ac_file" >&6; }
4203ac_exeext=$ac_cv_exeext
4204
4205rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4206ac_clean_files=$ac_clean_files_save
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4208$as_echo_n "checking for suffix of executables... " >&6; }
4209if { { ac_try="$ac_link"
4210case "(($ac_try" in
4211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212  *) ac_try_echo=$ac_try;;
4213esac
4214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215$as_echo "$ac_try_echo"; } >&5
4216  (eval "$ac_link") 2>&5
4217  ac_status=$?
4218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219  test $ac_status = 0; }; then :
4220  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4221# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4222# work properly (i.e., refer to `conftest.exe'), while it won't with
4223# `rm'.
4224for ac_file in conftest.exe conftest conftest.*; do
4225  test -f "$ac_file" || continue
4226  case $ac_file in
4227    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4228    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4229	  break;;
4230    * ) break;;
4231  esac
4232done
4233else
4234  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4237See \`config.log' for more details" "$LINENO" 5; }
4238fi
4239rm -f conftest conftest$ac_cv_exeext
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4241$as_echo "$ac_cv_exeext" >&6; }
4242
4243rm -f conftest.$ac_ext
4244EXEEXT=$ac_cv_exeext
4245ac_exeext=$EXEEXT
4246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247/* end confdefs.h.  */
4248#include <stdio.h>
4249int
4250main ()
4251{
4252FILE *f = fopen ("conftest.out", "w");
4253 return ferror (f) || fclose (f) != 0;
4254
4255  ;
4256  return 0;
4257}
4258_ACEOF
4259ac_clean_files="$ac_clean_files conftest.out"
4260# Check that the compiler produces executables we can run.  If not, either
4261# the compiler is broken, or we cross compile.
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4263$as_echo_n "checking whether we are cross compiling... " >&6; }
4264if test "$cross_compiling" != yes; then
4265  { { ac_try="$ac_link"
4266case "(($ac_try" in
4267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268  *) ac_try_echo=$ac_try;;
4269esac
4270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271$as_echo "$ac_try_echo"; } >&5
4272  (eval "$ac_link") 2>&5
4273  ac_status=$?
4274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275  test $ac_status = 0; }
4276  if { ac_try='./conftest$ac_cv_exeext'
4277  { { case "(($ac_try" in
4278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279  *) ac_try_echo=$ac_try;;
4280esac
4281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282$as_echo "$ac_try_echo"; } >&5
4283  (eval "$ac_try") 2>&5
4284  ac_status=$?
4285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286  test $ac_status = 0; }; }; then
4287    cross_compiling=no
4288  else
4289    if test "$cross_compiling" = maybe; then
4290	cross_compiling=yes
4291    else
4292	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4294as_fn_error $? "cannot run C compiled programs.
4295If you meant to cross compile, use \`--host'.
4296See \`config.log' for more details" "$LINENO" 5; }
4297    fi
4298  fi
4299fi
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4301$as_echo "$cross_compiling" >&6; }
4302
4303rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4304ac_clean_files=$ac_clean_files_save
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4306$as_echo_n "checking for suffix of object files... " >&6; }
4307if ${ac_cv_objext+:} false; then :
4308  $as_echo_n "(cached) " >&6
4309else
4310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311/* end confdefs.h.  */
4312
4313int
4314main ()
4315{
4316
4317  ;
4318  return 0;
4319}
4320_ACEOF
4321rm -f conftest.o conftest.obj
4322if { { ac_try="$ac_compile"
4323case "(($ac_try" in
4324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325  *) ac_try_echo=$ac_try;;
4326esac
4327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328$as_echo "$ac_try_echo"; } >&5
4329  (eval "$ac_compile") 2>&5
4330  ac_status=$?
4331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332  test $ac_status = 0; }; then :
4333  for ac_file in conftest.o conftest.obj conftest.*; do
4334  test -f "$ac_file" || continue;
4335  case $ac_file in
4336    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4337    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4338       break;;
4339  esac
4340done
4341else
4342  $as_echo "$as_me: failed program was:" >&5
4343sed 's/^/| /' conftest.$ac_ext >&5
4344
4345{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347as_fn_error $? "cannot compute suffix of object files: cannot compile
4348See \`config.log' for more details" "$LINENO" 5; }
4349fi
4350rm -f conftest.$ac_cv_objext conftest.$ac_ext
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4353$as_echo "$ac_cv_objext" >&6; }
4354OBJEXT=$ac_cv_objext
4355ac_objext=$OBJEXT
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4357$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4358if ${ac_cv_c_compiler_gnu+:} false; then :
4359  $as_echo_n "(cached) " >&6
4360else
4361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362/* end confdefs.h.  */
4363
4364int
4365main ()
4366{
4367#ifndef __GNUC__
4368       choke me
4369#endif
4370
4371  ;
4372  return 0;
4373}
4374_ACEOF
4375if ac_fn_c_try_compile "$LINENO"; then :
4376  ac_compiler_gnu=yes
4377else
4378  ac_compiler_gnu=no
4379fi
4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381ac_cv_c_compiler_gnu=$ac_compiler_gnu
4382
4383fi
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4385$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4386if test $ac_compiler_gnu = yes; then
4387  GCC=yes
4388else
4389  GCC=
4390fi
4391ac_test_CFLAGS=${CFLAGS+set}
4392ac_save_CFLAGS=$CFLAGS
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4394$as_echo_n "checking whether $CC accepts -g... " >&6; }
4395if ${ac_cv_prog_cc_g+:} false; then :
4396  $as_echo_n "(cached) " >&6
4397else
4398  ac_save_c_werror_flag=$ac_c_werror_flag
4399   ac_c_werror_flag=yes
4400   ac_cv_prog_cc_g=no
4401   CFLAGS="-g"
4402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403/* end confdefs.h.  */
4404
4405int
4406main ()
4407{
4408
4409  ;
4410  return 0;
4411}
4412_ACEOF
4413if ac_fn_c_try_compile "$LINENO"; then :
4414  ac_cv_prog_cc_g=yes
4415else
4416  CFLAGS=""
4417      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418/* end confdefs.h.  */
4419
4420int
4421main ()
4422{
4423
4424  ;
4425  return 0;
4426}
4427_ACEOF
4428if ac_fn_c_try_compile "$LINENO"; then :
4429
4430else
4431  ac_c_werror_flag=$ac_save_c_werror_flag
4432	 CFLAGS="-g"
4433	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434/* end confdefs.h.  */
4435
4436int
4437main ()
4438{
4439
4440  ;
4441  return 0;
4442}
4443_ACEOF
4444if ac_fn_c_try_compile "$LINENO"; then :
4445  ac_cv_prog_cc_g=yes
4446fi
4447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448fi
4449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450fi
4451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452   ac_c_werror_flag=$ac_save_c_werror_flag
4453fi
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4455$as_echo "$ac_cv_prog_cc_g" >&6; }
4456if test "$ac_test_CFLAGS" = set; then
4457  CFLAGS=$ac_save_CFLAGS
4458elif test $ac_cv_prog_cc_g = yes; then
4459  if test "$GCC" = yes; then
4460    CFLAGS="-g -O2"
4461  else
4462    CFLAGS="-g"
4463  fi
4464else
4465  if test "$GCC" = yes; then
4466    CFLAGS="-O2"
4467  else
4468    CFLAGS=
4469  fi
4470fi
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4472$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4473if ${ac_cv_prog_cc_c89+:} false; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476  ac_cv_prog_cc_c89=no
4477ac_save_CC=$CC
4478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479/* end confdefs.h.  */
4480#include <stdarg.h>
4481#include <stdio.h>
4482struct stat;
4483/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4484struct buf { int x; };
4485FILE * (*rcsopen) (struct buf *, struct stat *, int);
4486static char *e (p, i)
4487     char **p;
4488     int i;
4489{
4490  return p[i];
4491}
4492static char *f (char * (*g) (char **, int), char **p, ...)
4493{
4494  char *s;
4495  va_list v;
4496  va_start (v,p);
4497  s = g (p, va_arg (v,int));
4498  va_end (v);
4499  return s;
4500}
4501
4502/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4503   function prototypes and stuff, but not '\xHH' hex character constants.
4504   These don't provoke an error unfortunately, instead are silently treated
4505   as 'x'.  The following induces an error, until -std is added to get
4506   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4507   array size at least.  It's necessary to write '\x00'==0 to get something
4508   that's true only with -std.  */
4509int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4510
4511/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4512   inside strings and character constants.  */
4513#define FOO(x) 'x'
4514int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4515
4516int test (int i, double x);
4517struct s1 {int (*f) (int a);};
4518struct s2 {int (*f) (double a);};
4519int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4520int argc;
4521char **argv;
4522int
4523main ()
4524{
4525return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4526  ;
4527  return 0;
4528}
4529_ACEOF
4530for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4531	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4532do
4533  CC="$ac_save_CC $ac_arg"
4534  if ac_fn_c_try_compile "$LINENO"; then :
4535  ac_cv_prog_cc_c89=$ac_arg
4536fi
4537rm -f core conftest.err conftest.$ac_objext
4538  test "x$ac_cv_prog_cc_c89" != "xno" && break
4539done
4540rm -f conftest.$ac_ext
4541CC=$ac_save_CC
4542
4543fi
4544# AC_CACHE_VAL
4545case "x$ac_cv_prog_cc_c89" in
4546  x)
4547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4548$as_echo "none needed" >&6; } ;;
4549  xno)
4550    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4551$as_echo "unsupported" >&6; } ;;
4552  *)
4553    CC="$CC $ac_cv_prog_cc_c89"
4554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4555$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4556esac
4557if test "x$ac_cv_prog_cc_c89" != xno; then :
4558
4559fi
4560
4561ac_ext=c
4562ac_cpp='$CPP $CPPFLAGS'
4563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567ac_ext=c
4568ac_cpp='$CPP $CPPFLAGS'
4569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4573$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4574if ${am_cv_prog_cc_c_o+:} false; then :
4575  $as_echo_n "(cached) " >&6
4576else
4577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578/* end confdefs.h.  */
4579
4580int
4581main ()
4582{
4583
4584  ;
4585  return 0;
4586}
4587_ACEOF
4588  # Make sure it works both with $CC and with simple cc.
4589  # Following AC_PROG_CC_C_O, we do the test twice because some
4590  # compilers refuse to overwrite an existing .o file with -o,
4591  # though they will create one.
4592  am_cv_prog_cc_c_o=yes
4593  for am_i in 1 2; do
4594    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4595   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); } \
4599         && test -f conftest2.$ac_objext; then
4600      : OK
4601    else
4602      am_cv_prog_cc_c_o=no
4603      break
4604    fi
4605  done
4606  rm -f core conftest*
4607  unset am_i
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4610$as_echo "$am_cv_prog_cc_c_o" >&6; }
4611if test "$am_cv_prog_cc_c_o" != yes; then
4612   # Losing compiler, so override with the script.
4613   # FIXME: It is wrong to rewrite CC.
4614   # But if we don't then we get into trouble of one sort or another.
4615   # A longer-term fix would be to have automake use am__CC in this case,
4616   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4617   CC="$am_aux_dir/compile $CC"
4618fi
4619ac_ext=c
4620ac_cpp='$CPP $CPPFLAGS'
4621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624
4625
4626depcc="$CC"   am_compiler_list=
4627
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4629$as_echo_n "checking dependency style of $depcc... " >&6; }
4630if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4631  $as_echo_n "(cached) " >&6
4632else
4633  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4634  # We make a subdir and do the tests there.  Otherwise we can end up
4635  # making bogus files that we don't know about and never remove.  For
4636  # instance it was reported that on HP-UX the gcc test will end up
4637  # making a dummy file named 'D' -- because '-MD' means "put the output
4638  # in D".
4639  rm -rf conftest.dir
4640  mkdir conftest.dir
4641  # Copy depcomp to subdir because otherwise we won't find it if we're
4642  # using a relative directory.
4643  cp "$am_depcomp" conftest.dir
4644  cd conftest.dir
4645  # We will build objects and dependencies in a subdirectory because
4646  # it helps to detect inapplicable dependency modes.  For instance
4647  # both Tru64's cc and ICC support -MD to output dependencies as a
4648  # side effect of compilation, but ICC will put the dependencies in
4649  # the current directory while Tru64 will put them in the object
4650  # directory.
4651  mkdir sub
4652
4653  am_cv_CC_dependencies_compiler_type=none
4654  if test "$am_compiler_list" = ""; then
4655     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4656  fi
4657  am__universal=false
4658  case " $depcc " in #(
4659     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4660     esac
4661
4662  for depmode in $am_compiler_list; do
4663    # Setup a source with many dependencies, because some compilers
4664    # like to wrap large dependency lists on column 80 (with \), and
4665    # we should not choose a depcomp mode which is confused by this.
4666    #
4667    # We need to recreate these files for each test, as the compiler may
4668    # overwrite some of them when testing with obscure command lines.
4669    # This happens at least with the AIX C compiler.
4670    : > sub/conftest.c
4671    for i in 1 2 3 4 5 6; do
4672      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4673      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4674      # Solaris 10 /bin/sh.
4675      echo '/* dummy */' > sub/conftst$i.h
4676    done
4677    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4678
4679    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4680    # mode.  It turns out that the SunPro C++ compiler does not properly
4681    # handle '-M -o', and we need to detect this.  Also, some Intel
4682    # versions had trouble with output in subdirs.
4683    am__obj=sub/conftest.${OBJEXT-o}
4684    am__minus_obj="-o $am__obj"
4685    case $depmode in
4686    gcc)
4687      # This depmode causes a compiler race in universal mode.
4688      test "$am__universal" = false || continue
4689      ;;
4690    nosideeffect)
4691      # After this tag, mechanisms are not by side-effect, so they'll
4692      # only be used when explicitly requested.
4693      if test "x$enable_dependency_tracking" = xyes; then
4694	continue
4695      else
4696	break
4697      fi
4698      ;;
4699    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4700      # This compiler won't grok '-c -o', but also, the minuso test has
4701      # not run yet.  These depmodes are late enough in the game, and
4702      # so weak that their functioning should not be impacted.
4703      am__obj=conftest.${OBJEXT-o}
4704      am__minus_obj=
4705      ;;
4706    none) break ;;
4707    esac
4708    if depmode=$depmode \
4709       source=sub/conftest.c object=$am__obj \
4710       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4711       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4712         >/dev/null 2>conftest.err &&
4713       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4714       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4715       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4716       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4717      # icc doesn't choke on unknown options, it will just issue warnings
4718      # or remarks (even with -Werror).  So we grep stderr for any message
4719      # that says an option was ignored or not supported.
4720      # When given -MP, icc 7.0 and 7.1 complain thusly:
4721      #   icc: Command line warning: ignoring option '-M'; no argument required
4722      # The diagnosis changed in icc 8.0:
4723      #   icc: Command line remark: option '-MP' not supported
4724      if (grep 'ignoring option' conftest.err ||
4725          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4726        am_cv_CC_dependencies_compiler_type=$depmode
4727        break
4728      fi
4729    fi
4730  done
4731
4732  cd ..
4733  rm -rf conftest.dir
4734else
4735  am_cv_CC_dependencies_compiler_type=none
4736fi
4737
4738fi
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4740$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4741CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4742
4743 if
4744  test "x$enable_dependency_tracking" != xno \
4745  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4746  am__fastdepCC_TRUE=
4747  am__fastdepCC_FALSE='#'
4748else
4749  am__fastdepCC_TRUE='#'
4750  am__fastdepCC_FALSE=
4751fi
4752
4753
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4755$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4756if ${ac_cv_path_SED+:} false; then :
4757  $as_echo_n "(cached) " >&6
4758else
4759            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4760     for ac_i in 1 2 3 4 5 6 7; do
4761       ac_script="$ac_script$as_nl$ac_script"
4762     done
4763     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4764     { ac_script=; unset ac_script;}
4765     if test -z "$SED"; then
4766  ac_path_SED_found=false
4767  # Loop through the user's path and test for each of PROGNAME-LIST
4768  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771  IFS=$as_save_IFS
4772  test -z "$as_dir" && as_dir=.
4773    for ac_prog in sed gsed; do
4774    for ac_exec_ext in '' $ac_executable_extensions; do
4775      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4776      as_fn_executable_p "$ac_path_SED" || continue
4777# Check for GNU ac_path_SED and select it if it is found.
4778  # Check for GNU $ac_path_SED
4779case `"$ac_path_SED" --version 2>&1` in
4780*GNU*)
4781  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4782*)
4783  ac_count=0
4784  $as_echo_n 0123456789 >"conftest.in"
4785  while :
4786  do
4787    cat "conftest.in" "conftest.in" >"conftest.tmp"
4788    mv "conftest.tmp" "conftest.in"
4789    cp "conftest.in" "conftest.nl"
4790    $as_echo '' >> "conftest.nl"
4791    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4792    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4793    as_fn_arith $ac_count + 1 && ac_count=$as_val
4794    if test $ac_count -gt ${ac_path_SED_max-0}; then
4795      # Best one so far, save it but keep looking for a better one
4796      ac_cv_path_SED="$ac_path_SED"
4797      ac_path_SED_max=$ac_count
4798    fi
4799    # 10*(2^10) chars as input seems more than enough
4800    test $ac_count -gt 10 && break
4801  done
4802  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4803esac
4804
4805      $ac_path_SED_found && break 3
4806    done
4807  done
4808  done
4809IFS=$as_save_IFS
4810  if test -z "$ac_cv_path_SED"; then
4811    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4812  fi
4813else
4814  ac_cv_path_SED=$SED
4815fi
4816
4817fi
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4819$as_echo "$ac_cv_path_SED" >&6; }
4820 SED="$ac_cv_path_SED"
4821  rm -f conftest.sed
4822
4823test -z "$SED" && SED=sed
4824Xsed="$SED -e 1s/^X//"
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4837$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4838if ${ac_cv_path_GREP+:} false; then :
4839  $as_echo_n "(cached) " >&6
4840else
4841  if test -z "$GREP"; then
4842  ac_path_GREP_found=false
4843  # Loop through the user's path and test for each of PROGNAME-LIST
4844  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4846do
4847  IFS=$as_save_IFS
4848  test -z "$as_dir" && as_dir=.
4849    for ac_prog in grep ggrep; do
4850    for ac_exec_ext in '' $ac_executable_extensions; do
4851      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4852      as_fn_executable_p "$ac_path_GREP" || continue
4853# Check for GNU ac_path_GREP and select it if it is found.
4854  # Check for GNU $ac_path_GREP
4855case `"$ac_path_GREP" --version 2>&1` in
4856*GNU*)
4857  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4858*)
4859  ac_count=0
4860  $as_echo_n 0123456789 >"conftest.in"
4861  while :
4862  do
4863    cat "conftest.in" "conftest.in" >"conftest.tmp"
4864    mv "conftest.tmp" "conftest.in"
4865    cp "conftest.in" "conftest.nl"
4866    $as_echo 'GREP' >> "conftest.nl"
4867    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4868    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4869    as_fn_arith $ac_count + 1 && ac_count=$as_val
4870    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4871      # Best one so far, save it but keep looking for a better one
4872      ac_cv_path_GREP="$ac_path_GREP"
4873      ac_path_GREP_max=$ac_count
4874    fi
4875    # 10*(2^10) chars as input seems more than enough
4876    test $ac_count -gt 10 && break
4877  done
4878  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4879esac
4880
4881      $ac_path_GREP_found && break 3
4882    done
4883  done
4884  done
4885IFS=$as_save_IFS
4886  if test -z "$ac_cv_path_GREP"; then
4887    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4888  fi
4889else
4890  ac_cv_path_GREP=$GREP
4891fi
4892
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4895$as_echo "$ac_cv_path_GREP" >&6; }
4896 GREP="$ac_cv_path_GREP"
4897
4898
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4900$as_echo_n "checking for egrep... " >&6; }
4901if ${ac_cv_path_EGREP+:} false; then :
4902  $as_echo_n "(cached) " >&6
4903else
4904  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4905   then ac_cv_path_EGREP="$GREP -E"
4906   else
4907     if test -z "$EGREP"; then
4908  ac_path_EGREP_found=false
4909  # Loop through the user's path and test for each of PROGNAME-LIST
4910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4912do
4913  IFS=$as_save_IFS
4914  test -z "$as_dir" && as_dir=.
4915    for ac_prog in egrep; do
4916    for ac_exec_ext in '' $ac_executable_extensions; do
4917      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4918      as_fn_executable_p "$ac_path_EGREP" || continue
4919# Check for GNU ac_path_EGREP and select it if it is found.
4920  # Check for GNU $ac_path_EGREP
4921case `"$ac_path_EGREP" --version 2>&1` in
4922*GNU*)
4923  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4924*)
4925  ac_count=0
4926  $as_echo_n 0123456789 >"conftest.in"
4927  while :
4928  do
4929    cat "conftest.in" "conftest.in" >"conftest.tmp"
4930    mv "conftest.tmp" "conftest.in"
4931    cp "conftest.in" "conftest.nl"
4932    $as_echo 'EGREP' >> "conftest.nl"
4933    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4934    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4935    as_fn_arith $ac_count + 1 && ac_count=$as_val
4936    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4937      # Best one so far, save it but keep looking for a better one
4938      ac_cv_path_EGREP="$ac_path_EGREP"
4939      ac_path_EGREP_max=$ac_count
4940    fi
4941    # 10*(2^10) chars as input seems more than enough
4942    test $ac_count -gt 10 && break
4943  done
4944  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4945esac
4946
4947      $ac_path_EGREP_found && break 3
4948    done
4949  done
4950  done
4951IFS=$as_save_IFS
4952  if test -z "$ac_cv_path_EGREP"; then
4953    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4954  fi
4955else
4956  ac_cv_path_EGREP=$EGREP
4957fi
4958
4959   fi
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4962$as_echo "$ac_cv_path_EGREP" >&6; }
4963 EGREP="$ac_cv_path_EGREP"
4964
4965
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4967$as_echo_n "checking for fgrep... " >&6; }
4968if ${ac_cv_path_FGREP+:} false; then :
4969  $as_echo_n "(cached) " >&6
4970else
4971  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4972   then ac_cv_path_FGREP="$GREP -F"
4973   else
4974     if test -z "$FGREP"; then
4975  ac_path_FGREP_found=false
4976  # Loop through the user's path and test for each of PROGNAME-LIST
4977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4979do
4980  IFS=$as_save_IFS
4981  test -z "$as_dir" && as_dir=.
4982    for ac_prog in fgrep; do
4983    for ac_exec_ext in '' $ac_executable_extensions; do
4984      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4985      as_fn_executable_p "$ac_path_FGREP" || continue
4986# Check for GNU ac_path_FGREP and select it if it is found.
4987  # Check for GNU $ac_path_FGREP
4988case `"$ac_path_FGREP" --version 2>&1` in
4989*GNU*)
4990  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4991*)
4992  ac_count=0
4993  $as_echo_n 0123456789 >"conftest.in"
4994  while :
4995  do
4996    cat "conftest.in" "conftest.in" >"conftest.tmp"
4997    mv "conftest.tmp" "conftest.in"
4998    cp "conftest.in" "conftest.nl"
4999    $as_echo 'FGREP' >> "conftest.nl"
5000    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5001    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5002    as_fn_arith $ac_count + 1 && ac_count=$as_val
5003    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5004      # Best one so far, save it but keep looking for a better one
5005      ac_cv_path_FGREP="$ac_path_FGREP"
5006      ac_path_FGREP_max=$ac_count
5007    fi
5008    # 10*(2^10) chars as input seems more than enough
5009    test $ac_count -gt 10 && break
5010  done
5011  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5012esac
5013
5014      $ac_path_FGREP_found && break 3
5015    done
5016  done
5017  done
5018IFS=$as_save_IFS
5019  if test -z "$ac_cv_path_FGREP"; then
5020    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5021  fi
5022else
5023  ac_cv_path_FGREP=$FGREP
5024fi
5025
5026   fi
5027fi
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5029$as_echo "$ac_cv_path_FGREP" >&6; }
5030 FGREP="$ac_cv_path_FGREP"
5031
5032
5033test -z "$GREP" && GREP=grep
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053# Check whether --with-gnu-ld was given.
5054if test "${with_gnu_ld+set}" = set; then :
5055  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5056else
5057  with_gnu_ld=no
5058fi
5059
5060ac_prog=ld
5061if test yes = "$GCC"; then
5062  # Check if gcc -print-prog-name=ld gives a path.
5063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5064$as_echo_n "checking for ld used by $CC... " >&6; }
5065  case $host in
5066  *-*-mingw*)
5067    # gcc leaves a trailing carriage return, which upsets mingw
5068    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5069  *)
5070    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5071  esac
5072  case $ac_prog in
5073    # Accept absolute paths.
5074    [\\/]* | ?:[\\/]*)
5075      re_direlt='/[^/][^/]*/\.\./'
5076      # Canonicalize the pathname of ld
5077      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5078      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5079	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5080      done
5081      test -z "$LD" && LD=$ac_prog
5082      ;;
5083  "")
5084    # If it fails, then pretend we aren't using GCC.
5085    ac_prog=ld
5086    ;;
5087  *)
5088    # If it is relative, then search for the first ld in PATH.
5089    with_gnu_ld=unknown
5090    ;;
5091  esac
5092elif test yes = "$with_gnu_ld"; then
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5094$as_echo_n "checking for GNU ld... " >&6; }
5095else
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5097$as_echo_n "checking for non-GNU ld... " >&6; }
5098fi
5099if ${lt_cv_path_LD+:} false; then :
5100  $as_echo_n "(cached) " >&6
5101else
5102  if test -z "$LD"; then
5103  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5104  for ac_dir in $PATH; do
5105    IFS=$lt_save_ifs
5106    test -z "$ac_dir" && ac_dir=.
5107    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5108      lt_cv_path_LD=$ac_dir/$ac_prog
5109      # Check to see if the program is GNU ld.  I'd rather use --version,
5110      # but apparently some variants of GNU ld only accept -v.
5111      # Break only if it was the GNU/non-GNU ld that we prefer.
5112      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5113      *GNU* | *'with BFD'*)
5114	test no != "$with_gnu_ld" && break
5115	;;
5116      *)
5117	test yes != "$with_gnu_ld" && break
5118	;;
5119      esac
5120    fi
5121  done
5122  IFS=$lt_save_ifs
5123else
5124  lt_cv_path_LD=$LD # Let the user override the test with a path.
5125fi
5126fi
5127
5128LD=$lt_cv_path_LD
5129if test -n "$LD"; then
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5131$as_echo "$LD" >&6; }
5132else
5133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134$as_echo "no" >&6; }
5135fi
5136test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5138$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5139if ${lt_cv_prog_gnu_ld+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5143case `$LD -v 2>&1 </dev/null` in
5144*GNU* | *'with BFD'*)
5145  lt_cv_prog_gnu_ld=yes
5146  ;;
5147*)
5148  lt_cv_prog_gnu_ld=no
5149  ;;
5150esac
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5153$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5154with_gnu_ld=$lt_cv_prog_gnu_ld
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5165$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5166if ${lt_cv_path_NM+:} false; then :
5167  $as_echo_n "(cached) " >&6
5168else
5169  if test -n "$NM"; then
5170  # Let the user override the test.
5171  lt_cv_path_NM=$NM
5172else
5173  lt_nm_to_check=${ac_tool_prefix}nm
5174  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5175    lt_nm_to_check="$lt_nm_to_check nm"
5176  fi
5177  for lt_tmp_nm in $lt_nm_to_check; do
5178    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5179    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5180      IFS=$lt_save_ifs
5181      test -z "$ac_dir" && ac_dir=.
5182      tmp_nm=$ac_dir/$lt_tmp_nm
5183      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5184	# Check to see if the nm accepts a BSD-compat flag.
5185	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5186	#   nm: unknown option "B" ignored
5187	# Tru64's nm complains that /dev/null is an invalid object file
5188	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5189	case $build_os in
5190	mingw*) lt_bad_file=conftest.nm/nofile ;;
5191	*) lt_bad_file=/dev/null ;;
5192	esac
5193	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5194	*$lt_bad_file* | *'Invalid file or object type'*)
5195	  lt_cv_path_NM="$tmp_nm -B"
5196	  break 2
5197	  ;;
5198	*)
5199	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5200	  */dev/null*)
5201	    lt_cv_path_NM="$tmp_nm -p"
5202	    break 2
5203	    ;;
5204	  *)
5205	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5206	    continue # so that we can try to find one that supports BSD flags
5207	    ;;
5208	  esac
5209	  ;;
5210	esac
5211      fi
5212    done
5213    IFS=$lt_save_ifs
5214  done
5215  : ${lt_cv_path_NM=no}
5216fi
5217fi
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5219$as_echo "$lt_cv_path_NM" >&6; }
5220if test no != "$lt_cv_path_NM"; then
5221  NM=$lt_cv_path_NM
5222else
5223  # Didn't find any BSD compatible name lister, look for dumpbin.
5224  if test -n "$DUMPBIN"; then :
5225    # Let the user override the test.
5226  else
5227    if test -n "$ac_tool_prefix"; then
5228  for ac_prog in dumpbin "link -dump"
5229  do
5230    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5231set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233$as_echo_n "checking for $ac_word... " >&6; }
5234if ${ac_cv_prog_DUMPBIN+:} false; then :
5235  $as_echo_n "(cached) " >&6
5236else
5237  if test -n "$DUMPBIN"; then
5238  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243  IFS=$as_save_IFS
5244  test -z "$as_dir" && as_dir=.
5245    for ac_exec_ext in '' $ac_executable_extensions; do
5246  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249    break 2
5250  fi
5251done
5252  done
5253IFS=$as_save_IFS
5254
5255fi
5256fi
5257DUMPBIN=$ac_cv_prog_DUMPBIN
5258if test -n "$DUMPBIN"; then
5259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5260$as_echo "$DUMPBIN" >&6; }
5261else
5262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263$as_echo "no" >&6; }
5264fi
5265
5266
5267    test -n "$DUMPBIN" && break
5268  done
5269fi
5270if test -z "$DUMPBIN"; then
5271  ac_ct_DUMPBIN=$DUMPBIN
5272  for ac_prog in dumpbin "link -dump"
5273do
5274  # Extract the first word of "$ac_prog", so it can be a program name with args.
5275set dummy $ac_prog; ac_word=$2
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277$as_echo_n "checking for $ac_word... " >&6; }
5278if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281  if test -n "$ac_ct_DUMPBIN"; then
5282  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5283else
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287  IFS=$as_save_IFS
5288  test -z "$as_dir" && as_dir=.
5289    for ac_exec_ext in '' $ac_executable_extensions; do
5290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293    break 2
5294  fi
5295done
5296  done
5297IFS=$as_save_IFS
5298
5299fi
5300fi
5301ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5302if test -n "$ac_ct_DUMPBIN"; then
5303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5304$as_echo "$ac_ct_DUMPBIN" >&6; }
5305else
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307$as_echo "no" >&6; }
5308fi
5309
5310
5311  test -n "$ac_ct_DUMPBIN" && break
5312done
5313
5314  if test "x$ac_ct_DUMPBIN" = x; then
5315    DUMPBIN=":"
5316  else
5317    case $cross_compiling:$ac_tool_warned in
5318yes:)
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5321ac_tool_warned=yes ;;
5322esac
5323    DUMPBIN=$ac_ct_DUMPBIN
5324  fi
5325fi
5326
5327    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5328    *COFF*)
5329      DUMPBIN="$DUMPBIN -symbols -headers"
5330      ;;
5331    *)
5332      DUMPBIN=:
5333      ;;
5334    esac
5335  fi
5336
5337  if test : != "$DUMPBIN"; then
5338    NM=$DUMPBIN
5339  fi
5340fi
5341test -z "$NM" && NM=nm
5342
5343
5344
5345
5346
5347
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5349$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5350if ${lt_cv_nm_interface+:} false; then :
5351  $as_echo_n "(cached) " >&6
5352else
5353  lt_cv_nm_interface="BSD nm"
5354  echo "int some_variable = 0;" > conftest.$ac_ext
5355  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5356  (eval "$ac_compile" 2>conftest.err)
5357  cat conftest.err >&5
5358  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5359  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5360  cat conftest.err >&5
5361  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5362  cat conftest.out >&5
5363  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5364    lt_cv_nm_interface="MS dumpbin"
5365  fi
5366  rm -f conftest*
5367fi
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5369$as_echo "$lt_cv_nm_interface" >&6; }
5370
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5372$as_echo_n "checking whether ln -s works... " >&6; }
5373LN_S=$as_ln_s
5374if test "$LN_S" = "ln -s"; then
5375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5376$as_echo "yes" >&6; }
5377else
5378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5379$as_echo "no, using $LN_S" >&6; }
5380fi
5381
5382# find the maximum length of command line arguments
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5384$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5385if ${lt_cv_sys_max_cmd_len+:} false; then :
5386  $as_echo_n "(cached) " >&6
5387else
5388    i=0
5389  teststring=ABCD
5390
5391  case $build_os in
5392  msdosdjgpp*)
5393    # On DJGPP, this test can blow up pretty badly due to problems in libc
5394    # (any single argument exceeding 2000 bytes causes a buffer overrun
5395    # during glob expansion).  Even if it were fixed, the result of this
5396    # check would be larger than it should be.
5397    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5398    ;;
5399
5400  gnu*)
5401    # Under GNU Hurd, this test is not required because there is
5402    # no limit to the length of command line arguments.
5403    # Libtool will interpret -1 as no limit whatsoever
5404    lt_cv_sys_max_cmd_len=-1;
5405    ;;
5406
5407  cygwin* | mingw* | cegcc*)
5408    # On Win9x/ME, this test blows up -- it succeeds, but takes
5409    # about 5 minutes as the teststring grows exponentially.
5410    # Worse, since 9x/ME are not pre-emptively multitasking,
5411    # you end up with a "frozen" computer, even though with patience
5412    # the test eventually succeeds (with a max line length of 256k).
5413    # Instead, let's just punt: use the minimum linelength reported by
5414    # all of the supported platforms: 8192 (on NT/2K/XP).
5415    lt_cv_sys_max_cmd_len=8192;
5416    ;;
5417
5418  mint*)
5419    # On MiNT this can take a long time and run out of memory.
5420    lt_cv_sys_max_cmd_len=8192;
5421    ;;
5422
5423  amigaos*)
5424    # On AmigaOS with pdksh, this test takes hours, literally.
5425    # So we just punt and use a minimum line length of 8192.
5426    lt_cv_sys_max_cmd_len=8192;
5427    ;;
5428
5429  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5430    # This has been around since 386BSD, at least.  Likely further.
5431    if test -x /sbin/sysctl; then
5432      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5433    elif test -x /usr/sbin/sysctl; then
5434      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5435    else
5436      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5437    fi
5438    # And add a safety zone
5439    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5440    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5441    ;;
5442
5443  interix*)
5444    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5445    lt_cv_sys_max_cmd_len=196608
5446    ;;
5447
5448  os2*)
5449    # The test takes a long time on OS/2.
5450    lt_cv_sys_max_cmd_len=8192
5451    ;;
5452
5453  osf*)
5454    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5455    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5456    # nice to cause kernel panics so lets avoid the loop below.
5457    # First set a reasonable default.
5458    lt_cv_sys_max_cmd_len=16384
5459    #
5460    if test -x /sbin/sysconfig; then
5461      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5462        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5463      esac
5464    fi
5465    ;;
5466  sco3.2v5*)
5467    lt_cv_sys_max_cmd_len=102400
5468    ;;
5469  sysv5* | sco5v6* | sysv4.2uw2*)
5470    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5471    if test -n "$kargmax"; then
5472      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5473    else
5474      lt_cv_sys_max_cmd_len=32768
5475    fi
5476    ;;
5477  *)
5478    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5479    if test -n "$lt_cv_sys_max_cmd_len" && \
5480       test undefined != "$lt_cv_sys_max_cmd_len"; then
5481      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5482      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5483    else
5484      # Make teststring a little bigger before we do anything with it.
5485      # a 1K string should be a reasonable start.
5486      for i in 1 2 3 4 5 6 7 8; do
5487        teststring=$teststring$teststring
5488      done
5489      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5490      # If test is not a shell built-in, we'll probably end up computing a
5491      # maximum length that is only half of the actual maximum length, but
5492      # we can't tell.
5493      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5494	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5495	      test 17 != "$i" # 1/2 MB should be enough
5496      do
5497        i=`expr $i + 1`
5498        teststring=$teststring$teststring
5499      done
5500      # Only check the string length outside the loop.
5501      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5502      teststring=
5503      # Add a significant safety factor because C++ compilers can tack on
5504      # massive amounts of additional arguments before passing them to the
5505      # linker.  It appears as though 1/2 is a usable value.
5506      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5507    fi
5508    ;;
5509  esac
5510
5511fi
5512
5513if test -n "$lt_cv_sys_max_cmd_len"; then
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5515$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5516else
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5518$as_echo "none" >&6; }
5519fi
5520max_cmd_len=$lt_cv_sys_max_cmd_len
5521
5522
5523
5524
5525
5526
5527: ${CP="cp -f"}
5528: ${MV="mv -f"}
5529: ${RM="rm -f"}
5530
5531if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5532  lt_unset=unset
5533else
5534  lt_unset=false
5535fi
5536
5537
5538
5539
5540
5541# test EBCDIC or ASCII
5542case `echo X|tr X '\101'` in
5543 A) # ASCII based system
5544    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5545  lt_SP2NL='tr \040 \012'
5546  lt_NL2SP='tr \015\012 \040\040'
5547  ;;
5548 *) # EBCDIC based system
5549  lt_SP2NL='tr \100 \n'
5550  lt_NL2SP='tr \r\n \100\100'
5551  ;;
5552esac
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5563$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5564if ${lt_cv_to_host_file_cmd+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  case $host in
5568  *-*-mingw* )
5569    case $build in
5570      *-*-mingw* ) # actually msys
5571        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5572        ;;
5573      *-*-cygwin* )
5574        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5575        ;;
5576      * ) # otherwise, assume *nix
5577        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5578        ;;
5579    esac
5580    ;;
5581  *-*-cygwin* )
5582    case $build in
5583      *-*-mingw* ) # actually msys
5584        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5585        ;;
5586      *-*-cygwin* )
5587        lt_cv_to_host_file_cmd=func_convert_file_noop
5588        ;;
5589      * ) # otherwise, assume *nix
5590        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5591        ;;
5592    esac
5593    ;;
5594  * ) # unhandled hosts (and "normal" native builds)
5595    lt_cv_to_host_file_cmd=func_convert_file_noop
5596    ;;
5597esac
5598
5599fi
5600
5601to_host_file_cmd=$lt_cv_to_host_file_cmd
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5603$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5604
5605
5606
5607
5608
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5610$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5611if ${lt_cv_to_tool_file_cmd+:} false; then :
5612  $as_echo_n "(cached) " >&6
5613else
5614  #assume ordinary cross tools, or native build.
5615lt_cv_to_tool_file_cmd=func_convert_file_noop
5616case $host in
5617  *-*-mingw* )
5618    case $build in
5619      *-*-mingw* ) # actually msys
5620        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5621        ;;
5622    esac
5623    ;;
5624esac
5625
5626fi
5627
5628to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5630$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5631
5632
5633
5634
5635
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5637$as_echo_n "checking for $LD option to reload object files... " >&6; }
5638if ${lt_cv_ld_reload_flag+:} false; then :
5639  $as_echo_n "(cached) " >&6
5640else
5641  lt_cv_ld_reload_flag='-r'
5642fi
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5644$as_echo "$lt_cv_ld_reload_flag" >&6; }
5645reload_flag=$lt_cv_ld_reload_flag
5646case $reload_flag in
5647"" | " "*) ;;
5648*) reload_flag=" $reload_flag" ;;
5649esac
5650reload_cmds='$LD$reload_flag -o $output$reload_objs'
5651case $host_os in
5652  cygwin* | mingw* | pw32* | cegcc*)
5653    if test yes != "$GCC"; then
5654      reload_cmds=false
5655    fi
5656    ;;
5657  darwin*)
5658    if test yes = "$GCC"; then
5659      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5660    else
5661      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5662    fi
5663    ;;
5664esac
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674if test -n "$ac_tool_prefix"; then
5675  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5676set dummy ${ac_tool_prefix}objdump; ac_word=$2
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678$as_echo_n "checking for $ac_word... " >&6; }
5679if ${ac_cv_prog_OBJDUMP+:} false; then :
5680  $as_echo_n "(cached) " >&6
5681else
5682  if test -n "$OBJDUMP"; then
5683  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688  IFS=$as_save_IFS
5689  test -z "$as_dir" && as_dir=.
5690    for ac_exec_ext in '' $ac_executable_extensions; do
5691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694    break 2
5695  fi
5696done
5697  done
5698IFS=$as_save_IFS
5699
5700fi
5701fi
5702OBJDUMP=$ac_cv_prog_OBJDUMP
5703if test -n "$OBJDUMP"; then
5704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5705$as_echo "$OBJDUMP" >&6; }
5706else
5707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708$as_echo "no" >&6; }
5709fi
5710
5711
5712fi
5713if test -z "$ac_cv_prog_OBJDUMP"; then
5714  ac_ct_OBJDUMP=$OBJDUMP
5715  # Extract the first word of "objdump", so it can be a program name with args.
5716set dummy objdump; ac_word=$2
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718$as_echo_n "checking for $ac_word... " >&6; }
5719if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -n "$ac_ct_OBJDUMP"; then
5723  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730    for ac_exec_ext in '' $ac_executable_extensions; do
5731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737  done
5738IFS=$as_save_IFS
5739
5740fi
5741fi
5742ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5743if test -n "$ac_ct_OBJDUMP"; then
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5745$as_echo "$ac_ct_OBJDUMP" >&6; }
5746else
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749fi
5750
5751  if test "x$ac_ct_OBJDUMP" = x; then
5752    OBJDUMP="false"
5753  else
5754    case $cross_compiling:$ac_tool_warned in
5755yes:)
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758ac_tool_warned=yes ;;
5759esac
5760    OBJDUMP=$ac_ct_OBJDUMP
5761  fi
5762else
5763  OBJDUMP="$ac_cv_prog_OBJDUMP"
5764fi
5765
5766test -z "$OBJDUMP" && OBJDUMP=objdump
5767
5768
5769
5770
5771
5772
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5774$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5775if ${lt_cv_deplibs_check_method+:} false; then :
5776  $as_echo_n "(cached) " >&6
5777else
5778  lt_cv_file_magic_cmd='$MAGIC_CMD'
5779lt_cv_file_magic_test_file=
5780lt_cv_deplibs_check_method='unknown'
5781# Need to set the preceding variable on all platforms that support
5782# interlibrary dependencies.
5783# 'none' -- dependencies not supported.
5784# 'unknown' -- same as none, but documents that we really don't know.
5785# 'pass_all' -- all dependencies passed with no checks.
5786# 'test_compile' -- check by making test program.
5787# 'file_magic [[regex]]' -- check by looking for files in library path
5788# that responds to the $file_magic_cmd with a given extended regex.
5789# If you have 'file' or equivalent on your system and you're not sure
5790# whether 'pass_all' will *always* work, you probably want this one.
5791
5792case $host_os in
5793aix[4-9]*)
5794  lt_cv_deplibs_check_method=pass_all
5795  ;;
5796
5797beos*)
5798  lt_cv_deplibs_check_method=pass_all
5799  ;;
5800
5801bsdi[45]*)
5802  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5803  lt_cv_file_magic_cmd='/usr/bin/file -L'
5804  lt_cv_file_magic_test_file=/shlib/libc.so
5805  ;;
5806
5807cygwin*)
5808  # func_win32_libid is a shell function defined in ltmain.sh
5809  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5810  lt_cv_file_magic_cmd='func_win32_libid'
5811  ;;
5812
5813mingw* | pw32*)
5814  # Base MSYS/MinGW do not provide the 'file' command needed by
5815  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5816  # unless we find 'file', for example because we are cross-compiling.
5817  if ( file / ) >/dev/null 2>&1; then
5818    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5819    lt_cv_file_magic_cmd='func_win32_libid'
5820  else
5821    # Keep this pattern in sync with the one in func_win32_libid.
5822    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5823    lt_cv_file_magic_cmd='$OBJDUMP -f'
5824  fi
5825  ;;
5826
5827cegcc*)
5828  # use the weaker test based on 'objdump'. See mingw*.
5829  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5830  lt_cv_file_magic_cmd='$OBJDUMP -f'
5831  ;;
5832
5833darwin* | rhapsody*)
5834  lt_cv_deplibs_check_method=pass_all
5835  ;;
5836
5837freebsd* | dragonfly*)
5838  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5839    case $host_cpu in
5840    i*86 )
5841      # Not sure whether the presence of OpenBSD here was a mistake.
5842      # Let's accept both of them until this is cleared up.
5843      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5844      lt_cv_file_magic_cmd=/usr/bin/file
5845      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5846      ;;
5847    esac
5848  else
5849    lt_cv_deplibs_check_method=pass_all
5850  fi
5851  ;;
5852
5853haiku*)
5854  lt_cv_deplibs_check_method=pass_all
5855  ;;
5856
5857hpux10.20* | hpux11*)
5858  lt_cv_file_magic_cmd=/usr/bin/file
5859  case $host_cpu in
5860  ia64*)
5861    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5862    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5863    ;;
5864  hppa*64*)
5865    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]'
5866    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5867    ;;
5868  *)
5869    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5870    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5871    ;;
5872  esac
5873  ;;
5874
5875interix[3-9]*)
5876  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5877  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5878  ;;
5879
5880irix5* | irix6* | nonstopux*)
5881  case $LD in
5882  *-32|*"-32 ") libmagic=32-bit;;
5883  *-n32|*"-n32 ") libmagic=N32;;
5884  *-64|*"-64 ") libmagic=64-bit;;
5885  *) libmagic=never-match;;
5886  esac
5887  lt_cv_deplibs_check_method=pass_all
5888  ;;
5889
5890# This must be glibc/ELF.
5891linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5892  lt_cv_deplibs_check_method=pass_all
5893  ;;
5894
5895netbsd*)
5896  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5897    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5898  else
5899    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5900  fi
5901  ;;
5902
5903newos6*)
5904  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5905  lt_cv_file_magic_cmd=/usr/bin/file
5906  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5907  ;;
5908
5909*nto* | *qnx*)
5910  lt_cv_deplibs_check_method=pass_all
5911  ;;
5912
5913openbsd* | bitrig*)
5914  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5915    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5916  else
5917    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5918  fi
5919  ;;
5920
5921osf3* | osf4* | osf5*)
5922  lt_cv_deplibs_check_method=pass_all
5923  ;;
5924
5925rdos*)
5926  lt_cv_deplibs_check_method=pass_all
5927  ;;
5928
5929solaris*)
5930  lt_cv_deplibs_check_method=pass_all
5931  ;;
5932
5933sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5934  lt_cv_deplibs_check_method=pass_all
5935  ;;
5936
5937sysv4 | sysv4.3*)
5938  case $host_vendor in
5939  motorola)
5940    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]'
5941    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5942    ;;
5943  ncr)
5944    lt_cv_deplibs_check_method=pass_all
5945    ;;
5946  sequent)
5947    lt_cv_file_magic_cmd='/bin/file'
5948    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5949    ;;
5950  sni)
5951    lt_cv_file_magic_cmd='/bin/file'
5952    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5953    lt_cv_file_magic_test_file=/lib/libc.so
5954    ;;
5955  siemens)
5956    lt_cv_deplibs_check_method=pass_all
5957    ;;
5958  pc)
5959    lt_cv_deplibs_check_method=pass_all
5960    ;;
5961  esac
5962  ;;
5963
5964tpf*)
5965  lt_cv_deplibs_check_method=pass_all
5966  ;;
5967os2*)
5968  lt_cv_deplibs_check_method=pass_all
5969  ;;
5970esac
5971
5972fi
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5974$as_echo "$lt_cv_deplibs_check_method" >&6; }
5975
5976file_magic_glob=
5977want_nocaseglob=no
5978if test "$build" = "$host"; then
5979  case $host_os in
5980  mingw* | pw32*)
5981    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5982      want_nocaseglob=yes
5983    else
5984      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5985    fi
5986    ;;
5987  esac
5988fi
5989
5990file_magic_cmd=$lt_cv_file_magic_cmd
5991deplibs_check_method=$lt_cv_deplibs_check_method
5992test -z "$deplibs_check_method" && deplibs_check_method=unknown
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015if test -n "$ac_tool_prefix"; then
6016  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6017set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019$as_echo_n "checking for $ac_word... " >&6; }
6020if ${ac_cv_prog_DLLTOOL+:} false; then :
6021  $as_echo_n "(cached) " >&6
6022else
6023  if test -n "$DLLTOOL"; then
6024  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6025else
6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027for as_dir in $PATH
6028do
6029  IFS=$as_save_IFS
6030  test -z "$as_dir" && as_dir=.
6031    for ac_exec_ext in '' $ac_executable_extensions; do
6032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035    break 2
6036  fi
6037done
6038  done
6039IFS=$as_save_IFS
6040
6041fi
6042fi
6043DLLTOOL=$ac_cv_prog_DLLTOOL
6044if test -n "$DLLTOOL"; then
6045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6046$as_echo "$DLLTOOL" >&6; }
6047else
6048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049$as_echo "no" >&6; }
6050fi
6051
6052
6053fi
6054if test -z "$ac_cv_prog_DLLTOOL"; then
6055  ac_ct_DLLTOOL=$DLLTOOL
6056  # Extract the first word of "dlltool", so it can be a program name with args.
6057set dummy dlltool; ac_word=$2
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059$as_echo_n "checking for $ac_word... " >&6; }
6060if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6061  $as_echo_n "(cached) " >&6
6062else
6063  if test -n "$ac_ct_DLLTOOL"; then
6064  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6065else
6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069  IFS=$as_save_IFS
6070  test -z "$as_dir" && as_dir=.
6071    for ac_exec_ext in '' $ac_executable_extensions; do
6072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075    break 2
6076  fi
6077done
6078  done
6079IFS=$as_save_IFS
6080
6081fi
6082fi
6083ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6084if test -n "$ac_ct_DLLTOOL"; then
6085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6086$as_echo "$ac_ct_DLLTOOL" >&6; }
6087else
6088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089$as_echo "no" >&6; }
6090fi
6091
6092  if test "x$ac_ct_DLLTOOL" = x; then
6093    DLLTOOL="false"
6094  else
6095    case $cross_compiling:$ac_tool_warned in
6096yes:)
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099ac_tool_warned=yes ;;
6100esac
6101    DLLTOOL=$ac_ct_DLLTOOL
6102  fi
6103else
6104  DLLTOOL="$ac_cv_prog_DLLTOOL"
6105fi
6106
6107test -z "$DLLTOOL" && DLLTOOL=dlltool
6108
6109
6110
6111
6112
6113
6114
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6116$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6117if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6118  $as_echo_n "(cached) " >&6
6119else
6120  lt_cv_sharedlib_from_linklib_cmd='unknown'
6121
6122case $host_os in
6123cygwin* | mingw* | pw32* | cegcc*)
6124  # two different shell functions defined in ltmain.sh;
6125  # decide which one to use based on capabilities of $DLLTOOL
6126  case `$DLLTOOL --help 2>&1` in
6127  *--identify-strict*)
6128    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6129    ;;
6130  *)
6131    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6132    ;;
6133  esac
6134  ;;
6135*)
6136  # fallback: assume linklib IS sharedlib
6137  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6138  ;;
6139esac
6140
6141fi
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6143$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6144sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6145test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6146
6147
6148
6149
6150
6151
6152
6153
6154if test -n "$ac_tool_prefix"; then
6155  for ac_prog in ar
6156  do
6157    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6158set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160$as_echo_n "checking for $ac_word... " >&6; }
6161if ${ac_cv_prog_AR+:} false; then :
6162  $as_echo_n "(cached) " >&6
6163else
6164  if test -n "$AR"; then
6165  ac_cv_prog_AR="$AR" # Let the user override the test.
6166else
6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170  IFS=$as_save_IFS
6171  test -z "$as_dir" && as_dir=.
6172    for ac_exec_ext in '' $ac_executable_extensions; do
6173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176    break 2
6177  fi
6178done
6179  done
6180IFS=$as_save_IFS
6181
6182fi
6183fi
6184AR=$ac_cv_prog_AR
6185if test -n "$AR"; then
6186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6187$as_echo "$AR" >&6; }
6188else
6189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190$as_echo "no" >&6; }
6191fi
6192
6193
6194    test -n "$AR" && break
6195  done
6196fi
6197if test -z "$AR"; then
6198  ac_ct_AR=$AR
6199  for ac_prog in ar
6200do
6201  # Extract the first word of "$ac_prog", so it can be a program name with args.
6202set dummy $ac_prog; ac_word=$2
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204$as_echo_n "checking for $ac_word... " >&6; }
6205if ${ac_cv_prog_ac_ct_AR+:} false; then :
6206  $as_echo_n "(cached) " >&6
6207else
6208  if test -n "$ac_ct_AR"; then
6209  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6210else
6211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212for as_dir in $PATH
6213do
6214  IFS=$as_save_IFS
6215  test -z "$as_dir" && as_dir=.
6216    for ac_exec_ext in '' $ac_executable_extensions; do
6217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218    ac_cv_prog_ac_ct_AR="$ac_prog"
6219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220    break 2
6221  fi
6222done
6223  done
6224IFS=$as_save_IFS
6225
6226fi
6227fi
6228ac_ct_AR=$ac_cv_prog_ac_ct_AR
6229if test -n "$ac_ct_AR"; then
6230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6231$as_echo "$ac_ct_AR" >&6; }
6232else
6233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234$as_echo "no" >&6; }
6235fi
6236
6237
6238  test -n "$ac_ct_AR" && break
6239done
6240
6241  if test "x$ac_ct_AR" = x; then
6242    AR="false"
6243  else
6244    case $cross_compiling:$ac_tool_warned in
6245yes:)
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6248ac_tool_warned=yes ;;
6249esac
6250    AR=$ac_ct_AR
6251  fi
6252fi
6253
6254: ${AR=ar}
6255: ${AR_FLAGS=cru}
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6268$as_echo_n "checking for archiver @FILE support... " >&6; }
6269if ${lt_cv_ar_at_file+:} false; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272  lt_cv_ar_at_file=no
6273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h.  */
6275
6276int
6277main ()
6278{
6279
6280  ;
6281  return 0;
6282}
6283_ACEOF
6284if ac_fn_c_try_compile "$LINENO"; then :
6285  echo conftest.$ac_objext > conftest.lst
6286      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6287      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6288  (eval $lt_ar_try) 2>&5
6289  ac_status=$?
6290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291  test $ac_status = 0; }
6292      if test 0 -eq "$ac_status"; then
6293	# Ensure the archiver fails upon bogus file names.
6294	rm -f conftest.$ac_objext libconftest.a
6295	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6296  (eval $lt_ar_try) 2>&5
6297  ac_status=$?
6298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6299  test $ac_status = 0; }
6300	if test 0 -ne "$ac_status"; then
6301          lt_cv_ar_at_file=@
6302        fi
6303      fi
6304      rm -f conftest.* libconftest.a
6305
6306fi
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308
6309fi
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6311$as_echo "$lt_cv_ar_at_file" >&6; }
6312
6313if test no = "$lt_cv_ar_at_file"; then
6314  archiver_list_spec=
6315else
6316  archiver_list_spec=$lt_cv_ar_at_file
6317fi
6318
6319
6320
6321
6322
6323
6324
6325if test -n "$ac_tool_prefix"; then
6326  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6327set dummy ${ac_tool_prefix}strip; ac_word=$2
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329$as_echo_n "checking for $ac_word... " >&6; }
6330if ${ac_cv_prog_STRIP+:} false; then :
6331  $as_echo_n "(cached) " >&6
6332else
6333  if test -n "$STRIP"; then
6334  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6335else
6336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337for as_dir in $PATH
6338do
6339  IFS=$as_save_IFS
6340  test -z "$as_dir" && as_dir=.
6341    for ac_exec_ext in '' $ac_executable_extensions; do
6342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345    break 2
6346  fi
6347done
6348  done
6349IFS=$as_save_IFS
6350
6351fi
6352fi
6353STRIP=$ac_cv_prog_STRIP
6354if test -n "$STRIP"; then
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6356$as_echo "$STRIP" >&6; }
6357else
6358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359$as_echo "no" >&6; }
6360fi
6361
6362
6363fi
6364if test -z "$ac_cv_prog_STRIP"; then
6365  ac_ct_STRIP=$STRIP
6366  # Extract the first word of "strip", so it can be a program name with args.
6367set dummy strip; ac_word=$2
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369$as_echo_n "checking for $ac_word... " >&6; }
6370if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6371  $as_echo_n "(cached) " >&6
6372else
6373  if test -n "$ac_ct_STRIP"; then
6374  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6375else
6376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377for as_dir in $PATH
6378do
6379  IFS=$as_save_IFS
6380  test -z "$as_dir" && as_dir=.
6381    for ac_exec_ext in '' $ac_executable_extensions; do
6382  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383    ac_cv_prog_ac_ct_STRIP="strip"
6384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385    break 2
6386  fi
6387done
6388  done
6389IFS=$as_save_IFS
6390
6391fi
6392fi
6393ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6394if test -n "$ac_ct_STRIP"; then
6395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6396$as_echo "$ac_ct_STRIP" >&6; }
6397else
6398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399$as_echo "no" >&6; }
6400fi
6401
6402  if test "x$ac_ct_STRIP" = x; then
6403    STRIP=":"
6404  else
6405    case $cross_compiling:$ac_tool_warned in
6406yes:)
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6409ac_tool_warned=yes ;;
6410esac
6411    STRIP=$ac_ct_STRIP
6412  fi
6413else
6414  STRIP="$ac_cv_prog_STRIP"
6415fi
6416
6417test -z "$STRIP" && STRIP=:
6418
6419
6420
6421
6422
6423
6424if test -n "$ac_tool_prefix"; then
6425  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6426set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428$as_echo_n "checking for $ac_word... " >&6; }
6429if ${ac_cv_prog_RANLIB+:} false; then :
6430  $as_echo_n "(cached) " >&6
6431else
6432  if test -n "$RANLIB"; then
6433  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6434else
6435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436for as_dir in $PATH
6437do
6438  IFS=$as_save_IFS
6439  test -z "$as_dir" && as_dir=.
6440    for ac_exec_ext in '' $ac_executable_extensions; do
6441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444    break 2
6445  fi
6446done
6447  done
6448IFS=$as_save_IFS
6449
6450fi
6451fi
6452RANLIB=$ac_cv_prog_RANLIB
6453if test -n "$RANLIB"; then
6454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6455$as_echo "$RANLIB" >&6; }
6456else
6457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458$as_echo "no" >&6; }
6459fi
6460
6461
6462fi
6463if test -z "$ac_cv_prog_RANLIB"; then
6464  ac_ct_RANLIB=$RANLIB
6465  # Extract the first word of "ranlib", so it can be a program name with args.
6466set dummy ranlib; ac_word=$2
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468$as_echo_n "checking for $ac_word... " >&6; }
6469if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6470  $as_echo_n "(cached) " >&6
6471else
6472  if test -n "$ac_ct_RANLIB"; then
6473  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6474else
6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478  IFS=$as_save_IFS
6479  test -z "$as_dir" && as_dir=.
6480    for ac_exec_ext in '' $ac_executable_extensions; do
6481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482    ac_cv_prog_ac_ct_RANLIB="ranlib"
6483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484    break 2
6485  fi
6486done
6487  done
6488IFS=$as_save_IFS
6489
6490fi
6491fi
6492ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6493if test -n "$ac_ct_RANLIB"; then
6494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6495$as_echo "$ac_ct_RANLIB" >&6; }
6496else
6497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498$as_echo "no" >&6; }
6499fi
6500
6501  if test "x$ac_ct_RANLIB" = x; then
6502    RANLIB=":"
6503  else
6504    case $cross_compiling:$ac_tool_warned in
6505yes:)
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6508ac_tool_warned=yes ;;
6509esac
6510    RANLIB=$ac_ct_RANLIB
6511  fi
6512else
6513  RANLIB="$ac_cv_prog_RANLIB"
6514fi
6515
6516test -z "$RANLIB" && RANLIB=:
6517
6518
6519
6520
6521
6522
6523# Determine commands to create old-style static archives.
6524old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6525old_postinstall_cmds='chmod 644 $oldlib'
6526old_postuninstall_cmds=
6527
6528if test -n "$RANLIB"; then
6529  case $host_os in
6530  bitrig* | openbsd*)
6531    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6532    ;;
6533  *)
6534    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6535    ;;
6536  esac
6537  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6538fi
6539
6540case $host_os in
6541  darwin*)
6542    lock_old_archive_extraction=yes ;;
6543  *)
6544    lock_old_archive_extraction=no ;;
6545esac
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585# If no C compiler was specified, use CC.
6586LTCC=${LTCC-"$CC"}
6587
6588# If no C compiler flags were specified, use CFLAGS.
6589LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6590
6591# Allow CC to be a program name with arguments.
6592compiler=$CC
6593
6594
6595# Check for command to grab the raw symbol name followed by C symbol from nm.
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6597$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6598if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601
6602# These are sane defaults that work on at least a few old systems.
6603# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6604
6605# Character class describing NM global symbol codes.
6606symcode='[BCDEGRST]'
6607
6608# Regexp to match symbols that can be accessed directly from C.
6609sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6610
6611# Define system-specific variables.
6612case $host_os in
6613aix*)
6614  symcode='[BCDT]'
6615  ;;
6616cygwin* | mingw* | pw32* | cegcc*)
6617  symcode='[ABCDGISTW]'
6618  ;;
6619hpux*)
6620  if test ia64 = "$host_cpu"; then
6621    symcode='[ABCDEGRST]'
6622  fi
6623  ;;
6624irix* | nonstopux*)
6625  symcode='[BCDEGRST]'
6626  ;;
6627osf*)
6628  symcode='[BCDEGQRST]'
6629  ;;
6630solaris*)
6631  symcode='[BDRT]'
6632  ;;
6633sco3.2v5*)
6634  symcode='[DT]'
6635  ;;
6636sysv4.2uw2*)
6637  symcode='[DT]'
6638  ;;
6639sysv5* | sco5v6* | unixware* | OpenUNIX*)
6640  symcode='[ABDT]'
6641  ;;
6642sysv4)
6643  symcode='[DFNSTU]'
6644  ;;
6645esac
6646
6647# If we're using GNU nm, then use its standard symbol codes.
6648case `$NM -V 2>&1` in
6649*GNU* | *'with BFD'*)
6650  symcode='[ABCDGIRSTW]' ;;
6651esac
6652
6653if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6654  # Gets list of data symbols to import.
6655  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6656  # Adjust the below global symbol transforms to fixup imported variables.
6657  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6658  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6659  lt_c_name_lib_hook="\
6660  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6661  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6662else
6663  # Disable hooks by default.
6664  lt_cv_sys_global_symbol_to_import=
6665  lt_cdecl_hook=
6666  lt_c_name_hook=
6667  lt_c_name_lib_hook=
6668fi
6669
6670# Transform an extracted symbol line into a proper C declaration.
6671# Some systems (esp. on ia64) link data and code symbols differently,
6672# so use this general approach.
6673lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6674$lt_cdecl_hook\
6675" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6676" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6677
6678# Transform an extracted symbol line into symbol name and symbol address
6679lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6680$lt_c_name_hook\
6681" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6682" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6683
6684# Transform an extracted symbol line into symbol name with lib prefix and
6685# symbol address.
6686lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6687$lt_c_name_lib_hook\
6688" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6689" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6690" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6691
6692# Handle CRLF in mingw tool chain
6693opt_cr=
6694case $build_os in
6695mingw*)
6696  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6697  ;;
6698esac
6699
6700# Try without a prefix underscore, then with it.
6701for ac_symprfx in "" "_"; do
6702
6703  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6704  symxfrm="\\1 $ac_symprfx\\2 \\2"
6705
6706  # Write the raw and C identifiers.
6707  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6708    # Fake it for dumpbin and say T for any non-static function,
6709    # D for any global variable and I for any imported variable.
6710    # Also find C++ and __fastcall symbols from MSVC++,
6711    # which start with @ or ?.
6712    lt_cv_sys_global_symbol_pipe="$AWK '"\
6713"     {last_section=section; section=\$ 3};"\
6714"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6715"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6716"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6717"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6718"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6719"     \$ 0!~/External *\|/{next};"\
6720"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6721"     {if(hide[section]) next};"\
6722"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6723"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6724"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6725"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6726"     ' prfx=^$ac_symprfx"
6727  else
6728    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6729  fi
6730  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6731
6732  # Check to see that the pipe works correctly.
6733  pipe_works=no
6734
6735  rm -f conftest*
6736  cat > conftest.$ac_ext <<_LT_EOF
6737#ifdef __cplusplus
6738extern "C" {
6739#endif
6740char nm_test_var;
6741void nm_test_func(void);
6742void nm_test_func(void){}
6743#ifdef __cplusplus
6744}
6745#endif
6746int main(){nm_test_var='a';nm_test_func();return(0);}
6747_LT_EOF
6748
6749  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750  (eval $ac_compile) 2>&5
6751  ac_status=$?
6752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753  test $ac_status = 0; }; then
6754    # Now try to grab the symbols.
6755    nlist=conftest.nm
6756    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6757  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6758  ac_status=$?
6759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760  test $ac_status = 0; } && test -s "$nlist"; then
6761      # Try sorting and uniquifying the output.
6762      if sort "$nlist" | uniq > "$nlist"T; then
6763	mv -f "$nlist"T "$nlist"
6764      else
6765	rm -f "$nlist"T
6766      fi
6767
6768      # Make sure that we snagged all the symbols we need.
6769      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6770	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6771	  cat <<_LT_EOF > conftest.$ac_ext
6772/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6773#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6774/* DATA imports from DLLs on WIN32 can't be const, because runtime
6775   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6776# define LT_DLSYM_CONST
6777#elif defined __osf__
6778/* This system does not cope well with relocations in const data.  */
6779# define LT_DLSYM_CONST
6780#else
6781# define LT_DLSYM_CONST const
6782#endif
6783
6784#ifdef __cplusplus
6785extern "C" {
6786#endif
6787
6788_LT_EOF
6789	  # Now generate the symbol file.
6790	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6791
6792	  cat <<_LT_EOF >> conftest.$ac_ext
6793
6794/* The mapping between symbol names and symbols.  */
6795LT_DLSYM_CONST struct {
6796  const char *name;
6797  void       *address;
6798}
6799lt__PROGRAM__LTX_preloaded_symbols[] =
6800{
6801  { "@PROGRAM@", (void *) 0 },
6802_LT_EOF
6803	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6804	  cat <<\_LT_EOF >> conftest.$ac_ext
6805  {0, (void *) 0}
6806};
6807
6808/* This works around a problem in FreeBSD linker */
6809#ifdef FREEBSD_WORKAROUND
6810static const void *lt_preloaded_setup() {
6811  return lt__PROGRAM__LTX_preloaded_symbols;
6812}
6813#endif
6814
6815#ifdef __cplusplus
6816}
6817#endif
6818_LT_EOF
6819	  # Now try linking the two files.
6820	  mv conftest.$ac_objext conftstm.$ac_objext
6821	  lt_globsym_save_LIBS=$LIBS
6822	  lt_globsym_save_CFLAGS=$CFLAGS
6823	  LIBS=conftstm.$ac_objext
6824	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6825	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6826  (eval $ac_link) 2>&5
6827  ac_status=$?
6828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6830	    pipe_works=yes
6831	  fi
6832	  LIBS=$lt_globsym_save_LIBS
6833	  CFLAGS=$lt_globsym_save_CFLAGS
6834	else
6835	  echo "cannot find nm_test_func in $nlist" >&5
6836	fi
6837      else
6838	echo "cannot find nm_test_var in $nlist" >&5
6839      fi
6840    else
6841      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6842    fi
6843  else
6844    echo "$progname: failed program was:" >&5
6845    cat conftest.$ac_ext >&5
6846  fi
6847  rm -rf conftest* conftst*
6848
6849  # Do not use the global_symbol_pipe unless it works.
6850  if test yes = "$pipe_works"; then
6851    break
6852  else
6853    lt_cv_sys_global_symbol_pipe=
6854  fi
6855done
6856
6857fi
6858
6859if test -z "$lt_cv_sys_global_symbol_pipe"; then
6860  lt_cv_sys_global_symbol_to_cdecl=
6861fi
6862if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6864$as_echo "failed" >&6; }
6865else
6866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6867$as_echo "ok" >&6; }
6868fi
6869
6870# Response file support.
6871if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6872  nm_file_list_spec='@'
6873elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6874  nm_file_list_spec='@'
6875fi
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6914$as_echo_n "checking for sysroot... " >&6; }
6915
6916# Check whether --with-sysroot was given.
6917if test "${with_sysroot+set}" = set; then :
6918  withval=$with_sysroot;
6919else
6920  with_sysroot=no
6921fi
6922
6923
6924lt_sysroot=
6925case $with_sysroot in #(
6926 yes)
6927   if test yes = "$GCC"; then
6928     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6929   fi
6930   ;; #(
6931 /*)
6932   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6933   ;; #(
6934 no|'')
6935   ;; #(
6936 *)
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6938$as_echo "$with_sysroot" >&6; }
6939   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6940   ;;
6941esac
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6944$as_echo "${lt_sysroot:-no}" >&6; }
6945
6946
6947
6948
6949
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6951$as_echo_n "checking for a working dd... " >&6; }
6952if ${ac_cv_path_lt_DD+:} false; then :
6953  $as_echo_n "(cached) " >&6
6954else
6955  printf 0123456789abcdef0123456789abcdef >conftest.i
6956cat conftest.i conftest.i >conftest2.i
6957: ${lt_DD:=$DD}
6958if test -z "$lt_DD"; then
6959  ac_path_lt_DD_found=false
6960  # Loop through the user's path and test for each of PROGNAME-LIST
6961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964  IFS=$as_save_IFS
6965  test -z "$as_dir" && as_dir=.
6966    for ac_prog in dd; do
6967    for ac_exec_ext in '' $ac_executable_extensions; do
6968      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6969      as_fn_executable_p "$ac_path_lt_DD" || continue
6970if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6971  cmp -s conftest.i conftest.out \
6972  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6973fi
6974      $ac_path_lt_DD_found && break 3
6975    done
6976  done
6977  done
6978IFS=$as_save_IFS
6979  if test -z "$ac_cv_path_lt_DD"; then
6980    :
6981  fi
6982else
6983  ac_cv_path_lt_DD=$lt_DD
6984fi
6985
6986rm -f conftest.i conftest2.i conftest.out
6987fi
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6989$as_echo "$ac_cv_path_lt_DD" >&6; }
6990
6991
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6993$as_echo_n "checking how to truncate binary pipes... " >&6; }
6994if ${lt_cv_truncate_bin+:} false; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  printf 0123456789abcdef0123456789abcdef >conftest.i
6998cat conftest.i conftest.i >conftest2.i
6999lt_cv_truncate_bin=
7000if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7001  cmp -s conftest.i conftest.out \
7002  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7003fi
7004rm -f conftest.i conftest2.i conftest.out
7005test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7006fi
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7008$as_echo "$lt_cv_truncate_bin" >&6; }
7009
7010
7011
7012
7013
7014
7015
7016# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7017func_cc_basename ()
7018{
7019    for cc_temp in $*""; do
7020      case $cc_temp in
7021        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7022        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7023        \-*) ;;
7024        *) break;;
7025      esac
7026    done
7027    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7028}
7029
7030# Check whether --enable-libtool-lock was given.
7031if test "${enable_libtool_lock+set}" = set; then :
7032  enableval=$enable_libtool_lock;
7033fi
7034
7035test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7036
7037# Some flags need to be propagated to the compiler or linker for good
7038# libtool support.
7039case $host in
7040ia64-*-hpux*)
7041  # Find out what ABI is being produced by ac_compile, and set mode
7042  # options accordingly.
7043  echo 'int i;' > conftest.$ac_ext
7044  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045  (eval $ac_compile) 2>&5
7046  ac_status=$?
7047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048  test $ac_status = 0; }; then
7049    case `/usr/bin/file conftest.$ac_objext` in
7050      *ELF-32*)
7051	HPUX_IA64_MODE=32
7052	;;
7053      *ELF-64*)
7054	HPUX_IA64_MODE=64
7055	;;
7056    esac
7057  fi
7058  rm -rf conftest*
7059  ;;
7060*-*-irix6*)
7061  # Find out what ABI is being produced by ac_compile, and set linker
7062  # options accordingly.
7063  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7064  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7065  (eval $ac_compile) 2>&5
7066  ac_status=$?
7067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068  test $ac_status = 0; }; then
7069    if test yes = "$lt_cv_prog_gnu_ld"; then
7070      case `/usr/bin/file conftest.$ac_objext` in
7071	*32-bit*)
7072	  LD="${LD-ld} -melf32bsmip"
7073	  ;;
7074	*N32*)
7075	  LD="${LD-ld} -melf32bmipn32"
7076	  ;;
7077	*64-bit*)
7078	  LD="${LD-ld} -melf64bmip"
7079	;;
7080      esac
7081    else
7082      case `/usr/bin/file conftest.$ac_objext` in
7083	*32-bit*)
7084	  LD="${LD-ld} -32"
7085	  ;;
7086	*N32*)
7087	  LD="${LD-ld} -n32"
7088	  ;;
7089	*64-bit*)
7090	  LD="${LD-ld} -64"
7091	  ;;
7092      esac
7093    fi
7094  fi
7095  rm -rf conftest*
7096  ;;
7097
7098mips64*-*linux*)
7099  # Find out what ABI is being produced by ac_compile, and set linker
7100  # options accordingly.
7101  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7102  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7103  (eval $ac_compile) 2>&5
7104  ac_status=$?
7105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7106  test $ac_status = 0; }; then
7107    emul=elf
7108    case `/usr/bin/file conftest.$ac_objext` in
7109      *32-bit*)
7110	emul="${emul}32"
7111	;;
7112      *64-bit*)
7113	emul="${emul}64"
7114	;;
7115    esac
7116    case `/usr/bin/file conftest.$ac_objext` in
7117      *MSB*)
7118	emul="${emul}btsmip"
7119	;;
7120      *LSB*)
7121	emul="${emul}ltsmip"
7122	;;
7123    esac
7124    case `/usr/bin/file conftest.$ac_objext` in
7125      *N32*)
7126	emul="${emul}n32"
7127	;;
7128    esac
7129    LD="${LD-ld} -m $emul"
7130  fi
7131  rm -rf conftest*
7132  ;;
7133
7134x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7135s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7136  # Find out what ABI is being produced by ac_compile, and set linker
7137  # options accordingly.  Note that the listed cases only cover the
7138  # situations where additional linker options are needed (such as when
7139  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7140  # vice versa); the common cases where no linker options are needed do
7141  # not appear in the list.
7142  echo 'int i;' > conftest.$ac_ext
7143  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7144  (eval $ac_compile) 2>&5
7145  ac_status=$?
7146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7147  test $ac_status = 0; }; then
7148    case `/usr/bin/file conftest.o` in
7149      *32-bit*)
7150	case $host in
7151	  x86_64-*kfreebsd*-gnu)
7152	    LD="${LD-ld} -m elf_i386_fbsd"
7153	    ;;
7154	  x86_64-*linux*)
7155	    case `/usr/bin/file conftest.o` in
7156	      *x86-64*)
7157		LD="${LD-ld} -m elf32_x86_64"
7158		;;
7159	      *)
7160		LD="${LD-ld} -m elf_i386"
7161		;;
7162	    esac
7163	    ;;
7164	  powerpc64le-*linux*)
7165	    LD="${LD-ld} -m elf32lppclinux"
7166	    ;;
7167	  powerpc64-*linux*)
7168	    LD="${LD-ld} -m elf32ppclinux"
7169	    ;;
7170	  s390x-*linux*)
7171	    LD="${LD-ld} -m elf_s390"
7172	    ;;
7173	  sparc64-*linux*)
7174	    LD="${LD-ld} -m elf32_sparc"
7175	    ;;
7176	esac
7177	;;
7178      *64-bit*)
7179	case $host in
7180	  x86_64-*kfreebsd*-gnu)
7181	    LD="${LD-ld} -m elf_x86_64_fbsd"
7182	    ;;
7183	  x86_64-*linux*)
7184	    LD="${LD-ld} -m elf_x86_64"
7185	    ;;
7186	  powerpcle-*linux*)
7187	    LD="${LD-ld} -m elf64lppc"
7188	    ;;
7189	  powerpc-*linux*)
7190	    LD="${LD-ld} -m elf64ppc"
7191	    ;;
7192	  s390*-*linux*|s390*-*tpf*)
7193	    LD="${LD-ld} -m elf64_s390"
7194	    ;;
7195	  sparc*-*linux*)
7196	    LD="${LD-ld} -m elf64_sparc"
7197	    ;;
7198	esac
7199	;;
7200    esac
7201  fi
7202  rm -rf conftest*
7203  ;;
7204
7205*-*-sco3.2v5*)
7206  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7207  SAVE_CFLAGS=$CFLAGS
7208  CFLAGS="$CFLAGS -belf"
7209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7210$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7211if ${lt_cv_cc_needs_belf+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  ac_ext=c
7215ac_cpp='$CPP $CPPFLAGS'
7216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218ac_compiler_gnu=$ac_cv_c_compiler_gnu
7219
7220     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221/* end confdefs.h.  */
7222
7223int
7224main ()
7225{
7226
7227  ;
7228  return 0;
7229}
7230_ACEOF
7231if ac_fn_c_try_link "$LINENO"; then :
7232  lt_cv_cc_needs_belf=yes
7233else
7234  lt_cv_cc_needs_belf=no
7235fi
7236rm -f core conftest.err conftest.$ac_objext \
7237    conftest$ac_exeext conftest.$ac_ext
7238     ac_ext=c
7239ac_cpp='$CPP $CPPFLAGS'
7240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7242ac_compiler_gnu=$ac_cv_c_compiler_gnu
7243
7244fi
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7246$as_echo "$lt_cv_cc_needs_belf" >&6; }
7247  if test yes != "$lt_cv_cc_needs_belf"; then
7248    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7249    CFLAGS=$SAVE_CFLAGS
7250  fi
7251  ;;
7252*-*solaris*)
7253  # Find out what ABI is being produced by ac_compile, and set linker
7254  # options accordingly.
7255  echo 'int i;' > conftest.$ac_ext
7256  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7257  (eval $ac_compile) 2>&5
7258  ac_status=$?
7259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7260  test $ac_status = 0; }; then
7261    case `/usr/bin/file conftest.o` in
7262    *64-bit*)
7263      case $lt_cv_prog_gnu_ld in
7264      yes*)
7265        case $host in
7266        i?86-*-solaris*|x86_64-*-solaris*)
7267          LD="${LD-ld} -m elf_x86_64"
7268          ;;
7269        sparc*-*-solaris*)
7270          LD="${LD-ld} -m elf64_sparc"
7271          ;;
7272        esac
7273        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7274        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7275          LD=${LD-ld}_sol2
7276        fi
7277        ;;
7278      *)
7279	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7280	  LD="${LD-ld} -64"
7281	fi
7282	;;
7283      esac
7284      ;;
7285    esac
7286  fi
7287  rm -rf conftest*
7288  ;;
7289esac
7290
7291need_locks=$enable_libtool_lock
7292
7293if test -n "$ac_tool_prefix"; then
7294  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7295set dummy ${ac_tool_prefix}mt; ac_word=$2
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297$as_echo_n "checking for $ac_word... " >&6; }
7298if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7299  $as_echo_n "(cached) " >&6
7300else
7301  if test -n "$MANIFEST_TOOL"; then
7302  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7303else
7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307  IFS=$as_save_IFS
7308  test -z "$as_dir" && as_dir=.
7309    for ac_exec_ext in '' $ac_executable_extensions; do
7310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313    break 2
7314  fi
7315done
7316  done
7317IFS=$as_save_IFS
7318
7319fi
7320fi
7321MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7322if test -n "$MANIFEST_TOOL"; then
7323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7324$as_echo "$MANIFEST_TOOL" >&6; }
7325else
7326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327$as_echo "no" >&6; }
7328fi
7329
7330
7331fi
7332if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7333  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7334  # Extract the first word of "mt", so it can be a program name with args.
7335set dummy mt; ac_word=$2
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337$as_echo_n "checking for $ac_word... " >&6; }
7338if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  if test -n "$ac_ct_MANIFEST_TOOL"; then
7342  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7343else
7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347  IFS=$as_save_IFS
7348  test -z "$as_dir" && as_dir=.
7349    for ac_exec_ext in '' $ac_executable_extensions; do
7350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353    break 2
7354  fi
7355done
7356  done
7357IFS=$as_save_IFS
7358
7359fi
7360fi
7361ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7362if test -n "$ac_ct_MANIFEST_TOOL"; then
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7364$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7365else
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367$as_echo "no" >&6; }
7368fi
7369
7370  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7371    MANIFEST_TOOL=":"
7372  else
7373    case $cross_compiling:$ac_tool_warned in
7374yes:)
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377ac_tool_warned=yes ;;
7378esac
7379    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7380  fi
7381else
7382  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7383fi
7384
7385test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7387$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7388if ${lt_cv_path_mainfest_tool+:} false; then :
7389  $as_echo_n "(cached) " >&6
7390else
7391  lt_cv_path_mainfest_tool=no
7392  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7393  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7394  cat conftest.err >&5
7395  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7396    lt_cv_path_mainfest_tool=yes
7397  fi
7398  rm -f conftest*
7399fi
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7401$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7402if test yes != "$lt_cv_path_mainfest_tool"; then
7403  MANIFEST_TOOL=:
7404fi
7405
7406
7407
7408
7409
7410
7411  case $host_os in
7412    rhapsody* | darwin*)
7413    if test -n "$ac_tool_prefix"; then
7414  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7415set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417$as_echo_n "checking for $ac_word... " >&6; }
7418if ${ac_cv_prog_DSYMUTIL+:} false; then :
7419  $as_echo_n "(cached) " >&6
7420else
7421  if test -n "$DSYMUTIL"; then
7422  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7423else
7424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427  IFS=$as_save_IFS
7428  test -z "$as_dir" && as_dir=.
7429    for ac_exec_ext in '' $ac_executable_extensions; do
7430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7431    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433    break 2
7434  fi
7435done
7436  done
7437IFS=$as_save_IFS
7438
7439fi
7440fi
7441DSYMUTIL=$ac_cv_prog_DSYMUTIL
7442if test -n "$DSYMUTIL"; then
7443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7444$as_echo "$DSYMUTIL" >&6; }
7445else
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447$as_echo "no" >&6; }
7448fi
7449
7450
7451fi
7452if test -z "$ac_cv_prog_DSYMUTIL"; then
7453  ac_ct_DSYMUTIL=$DSYMUTIL
7454  # Extract the first word of "dsymutil", so it can be a program name with args.
7455set dummy dsymutil; ac_word=$2
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457$as_echo_n "checking for $ac_word... " >&6; }
7458if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7459  $as_echo_n "(cached) " >&6
7460else
7461  if test -n "$ac_ct_DSYMUTIL"; then
7462  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7463else
7464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467  IFS=$as_save_IFS
7468  test -z "$as_dir" && as_dir=.
7469    for ac_exec_ext in '' $ac_executable_extensions; do
7470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7471    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473    break 2
7474  fi
7475done
7476  done
7477IFS=$as_save_IFS
7478
7479fi
7480fi
7481ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7482if test -n "$ac_ct_DSYMUTIL"; then
7483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7484$as_echo "$ac_ct_DSYMUTIL" >&6; }
7485else
7486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
7488fi
7489
7490  if test "x$ac_ct_DSYMUTIL" = x; then
7491    DSYMUTIL=":"
7492  else
7493    case $cross_compiling:$ac_tool_warned in
7494yes:)
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7497ac_tool_warned=yes ;;
7498esac
7499    DSYMUTIL=$ac_ct_DSYMUTIL
7500  fi
7501else
7502  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7503fi
7504
7505    if test -n "$ac_tool_prefix"; then
7506  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7507set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509$as_echo_n "checking for $ac_word... " >&6; }
7510if ${ac_cv_prog_NMEDIT+:} false; then :
7511  $as_echo_n "(cached) " >&6
7512else
7513  if test -n "$NMEDIT"; then
7514  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7515else
7516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519  IFS=$as_save_IFS
7520  test -z "$as_dir" && as_dir=.
7521    for ac_exec_ext in '' $ac_executable_extensions; do
7522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525    break 2
7526  fi
7527done
7528  done
7529IFS=$as_save_IFS
7530
7531fi
7532fi
7533NMEDIT=$ac_cv_prog_NMEDIT
7534if test -n "$NMEDIT"; then
7535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7536$as_echo "$NMEDIT" >&6; }
7537else
7538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539$as_echo "no" >&6; }
7540fi
7541
7542
7543fi
7544if test -z "$ac_cv_prog_NMEDIT"; then
7545  ac_ct_NMEDIT=$NMEDIT
7546  # Extract the first word of "nmedit", so it can be a program name with args.
7547set dummy nmedit; ac_word=$2
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549$as_echo_n "checking for $ac_word... " >&6; }
7550if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7551  $as_echo_n "(cached) " >&6
7552else
7553  if test -n "$ac_ct_NMEDIT"; then
7554  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7555else
7556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559  IFS=$as_save_IFS
7560  test -z "$as_dir" && as_dir=.
7561    for ac_exec_ext in '' $ac_executable_extensions; do
7562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565    break 2
7566  fi
7567done
7568  done
7569IFS=$as_save_IFS
7570
7571fi
7572fi
7573ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7574if test -n "$ac_ct_NMEDIT"; then
7575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7576$as_echo "$ac_ct_NMEDIT" >&6; }
7577else
7578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579$as_echo "no" >&6; }
7580fi
7581
7582  if test "x$ac_ct_NMEDIT" = x; then
7583    NMEDIT=":"
7584  else
7585    case $cross_compiling:$ac_tool_warned in
7586yes:)
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7589ac_tool_warned=yes ;;
7590esac
7591    NMEDIT=$ac_ct_NMEDIT
7592  fi
7593else
7594  NMEDIT="$ac_cv_prog_NMEDIT"
7595fi
7596
7597    if test -n "$ac_tool_prefix"; then
7598  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7599set dummy ${ac_tool_prefix}lipo; ac_word=$2
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601$as_echo_n "checking for $ac_word... " >&6; }
7602if ${ac_cv_prog_LIPO+:} false; then :
7603  $as_echo_n "(cached) " >&6
7604else
7605  if test -n "$LIPO"; then
7606  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7607else
7608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609for as_dir in $PATH
7610do
7611  IFS=$as_save_IFS
7612  test -z "$as_dir" && as_dir=.
7613    for ac_exec_ext in '' $ac_executable_extensions; do
7614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617    break 2
7618  fi
7619done
7620  done
7621IFS=$as_save_IFS
7622
7623fi
7624fi
7625LIPO=$ac_cv_prog_LIPO
7626if test -n "$LIPO"; then
7627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7628$as_echo "$LIPO" >&6; }
7629else
7630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631$as_echo "no" >&6; }
7632fi
7633
7634
7635fi
7636if test -z "$ac_cv_prog_LIPO"; then
7637  ac_ct_LIPO=$LIPO
7638  # Extract the first word of "lipo", so it can be a program name with args.
7639set dummy lipo; ac_word=$2
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641$as_echo_n "checking for $ac_word... " >&6; }
7642if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7643  $as_echo_n "(cached) " >&6
7644else
7645  if test -n "$ac_ct_LIPO"; then
7646  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7647else
7648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649for as_dir in $PATH
7650do
7651  IFS=$as_save_IFS
7652  test -z "$as_dir" && as_dir=.
7653    for ac_exec_ext in '' $ac_executable_extensions; do
7654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7655    ac_cv_prog_ac_ct_LIPO="lipo"
7656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657    break 2
7658  fi
7659done
7660  done
7661IFS=$as_save_IFS
7662
7663fi
7664fi
7665ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7666if test -n "$ac_ct_LIPO"; then
7667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7668$as_echo "$ac_ct_LIPO" >&6; }
7669else
7670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671$as_echo "no" >&6; }
7672fi
7673
7674  if test "x$ac_ct_LIPO" = x; then
7675    LIPO=":"
7676  else
7677    case $cross_compiling:$ac_tool_warned in
7678yes:)
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7681ac_tool_warned=yes ;;
7682esac
7683    LIPO=$ac_ct_LIPO
7684  fi
7685else
7686  LIPO="$ac_cv_prog_LIPO"
7687fi
7688
7689    if test -n "$ac_tool_prefix"; then
7690  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7691set dummy ${ac_tool_prefix}otool; ac_word=$2
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693$as_echo_n "checking for $ac_word... " >&6; }
7694if ${ac_cv_prog_OTOOL+:} false; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  if test -n "$OTOOL"; then
7698  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7699else
7700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703  IFS=$as_save_IFS
7704  test -z "$as_dir" && as_dir=.
7705    for ac_exec_ext in '' $ac_executable_extensions; do
7706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709    break 2
7710  fi
7711done
7712  done
7713IFS=$as_save_IFS
7714
7715fi
7716fi
7717OTOOL=$ac_cv_prog_OTOOL
7718if test -n "$OTOOL"; then
7719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7720$as_echo "$OTOOL" >&6; }
7721else
7722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723$as_echo "no" >&6; }
7724fi
7725
7726
7727fi
7728if test -z "$ac_cv_prog_OTOOL"; then
7729  ac_ct_OTOOL=$OTOOL
7730  # Extract the first word of "otool", so it can be a program name with args.
7731set dummy otool; ac_word=$2
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
7734if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737  if test -n "$ac_ct_OTOOL"; then
7738  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743  IFS=$as_save_IFS
7744  test -z "$as_dir" && as_dir=.
7745    for ac_exec_ext in '' $ac_executable_extensions; do
7746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747    ac_cv_prog_ac_ct_OTOOL="otool"
7748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749    break 2
7750  fi
7751done
7752  done
7753IFS=$as_save_IFS
7754
7755fi
7756fi
7757ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7758if test -n "$ac_ct_OTOOL"; then
7759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7760$as_echo "$ac_ct_OTOOL" >&6; }
7761else
7762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
7764fi
7765
7766  if test "x$ac_ct_OTOOL" = x; then
7767    OTOOL=":"
7768  else
7769    case $cross_compiling:$ac_tool_warned in
7770yes:)
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7773ac_tool_warned=yes ;;
7774esac
7775    OTOOL=$ac_ct_OTOOL
7776  fi
7777else
7778  OTOOL="$ac_cv_prog_OTOOL"
7779fi
7780
7781    if test -n "$ac_tool_prefix"; then
7782  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7783set dummy ${ac_tool_prefix}otool64; ac_word=$2
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785$as_echo_n "checking for $ac_word... " >&6; }
7786if ${ac_cv_prog_OTOOL64+:} false; then :
7787  $as_echo_n "(cached) " >&6
7788else
7789  if test -n "$OTOOL64"; then
7790  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795  IFS=$as_save_IFS
7796  test -z "$as_dir" && as_dir=.
7797    for ac_exec_ext in '' $ac_executable_extensions; do
7798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801    break 2
7802  fi
7803done
7804  done
7805IFS=$as_save_IFS
7806
7807fi
7808fi
7809OTOOL64=$ac_cv_prog_OTOOL64
7810if test -n "$OTOOL64"; then
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7812$as_echo "$OTOOL64" >&6; }
7813else
7814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
7816fi
7817
7818
7819fi
7820if test -z "$ac_cv_prog_OTOOL64"; then
7821  ac_ct_OTOOL64=$OTOOL64
7822  # Extract the first word of "otool64", so it can be a program name with args.
7823set dummy otool64; ac_word=$2
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825$as_echo_n "checking for $ac_word... " >&6; }
7826if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7827  $as_echo_n "(cached) " >&6
7828else
7829  if test -n "$ac_ct_OTOOL64"; then
7830  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7831else
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835  IFS=$as_save_IFS
7836  test -z "$as_dir" && as_dir=.
7837    for ac_exec_ext in '' $ac_executable_extensions; do
7838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839    ac_cv_prog_ac_ct_OTOOL64="otool64"
7840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841    break 2
7842  fi
7843done
7844  done
7845IFS=$as_save_IFS
7846
7847fi
7848fi
7849ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7850if test -n "$ac_ct_OTOOL64"; then
7851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7852$as_echo "$ac_ct_OTOOL64" >&6; }
7853else
7854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855$as_echo "no" >&6; }
7856fi
7857
7858  if test "x$ac_ct_OTOOL64" = x; then
7859    OTOOL64=":"
7860  else
7861    case $cross_compiling:$ac_tool_warned in
7862yes:)
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7865ac_tool_warned=yes ;;
7866esac
7867    OTOOL64=$ac_ct_OTOOL64
7868  fi
7869else
7870  OTOOL64="$ac_cv_prog_OTOOL64"
7871fi
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7900$as_echo_n "checking for -single_module linker flag... " >&6; }
7901if ${lt_cv_apple_cc_single_mod+:} false; then :
7902  $as_echo_n "(cached) " >&6
7903else
7904  lt_cv_apple_cc_single_mod=no
7905      if test -z "$LT_MULTI_MODULE"; then
7906	# By default we will add the -single_module flag. You can override
7907	# by either setting the environment variable LT_MULTI_MODULE
7908	# non-empty at configure time, or by adding -multi_module to the
7909	# link flags.
7910	rm -rf libconftest.dylib*
7911	echo "int foo(void){return 1;}" > conftest.c
7912	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7913-dynamiclib -Wl,-single_module conftest.c" >&5
7914	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7915	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7916        _lt_result=$?
7917	# If there is a non-empty error log, and "single_module"
7918	# appears in it, assume the flag caused a linker warning
7919        if test -s conftest.err && $GREP single_module conftest.err; then
7920	  cat conftest.err >&5
7921	# Otherwise, if the output was created with a 0 exit code from
7922	# the compiler, it worked.
7923	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7924	  lt_cv_apple_cc_single_mod=yes
7925	else
7926	  cat conftest.err >&5
7927	fi
7928	rm -rf libconftest.dylib*
7929	rm -f conftest.*
7930      fi
7931fi
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7933$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7934
7935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7936$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7937if ${lt_cv_ld_exported_symbols_list+:} false; then :
7938  $as_echo_n "(cached) " >&6
7939else
7940  lt_cv_ld_exported_symbols_list=no
7941      save_LDFLAGS=$LDFLAGS
7942      echo "_main" > conftest.sym
7943      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7944      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h.  */
7946
7947int
7948main ()
7949{
7950
7951  ;
7952  return 0;
7953}
7954_ACEOF
7955if ac_fn_c_try_link "$LINENO"; then :
7956  lt_cv_ld_exported_symbols_list=yes
7957else
7958  lt_cv_ld_exported_symbols_list=no
7959fi
7960rm -f core conftest.err conftest.$ac_objext \
7961    conftest$ac_exeext conftest.$ac_ext
7962	LDFLAGS=$save_LDFLAGS
7963
7964fi
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7966$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7967
7968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7969$as_echo_n "checking for -force_load linker flag... " >&6; }
7970if ${lt_cv_ld_force_load+:} false; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  lt_cv_ld_force_load=no
7974      cat > conftest.c << _LT_EOF
7975int forced_loaded() { return 2;}
7976_LT_EOF
7977      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7978      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7979      echo "$AR cru libconftest.a conftest.o" >&5
7980      $AR cru libconftest.a conftest.o 2>&5
7981      echo "$RANLIB libconftest.a" >&5
7982      $RANLIB libconftest.a 2>&5
7983      cat > conftest.c << _LT_EOF
7984int main() { return 0;}
7985_LT_EOF
7986      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7987      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7988      _lt_result=$?
7989      if test -s conftest.err && $GREP force_load conftest.err; then
7990	cat conftest.err >&5
7991      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7992	lt_cv_ld_force_load=yes
7993      else
7994	cat conftest.err >&5
7995      fi
7996        rm -f conftest.err libconftest.a conftest conftest.c
7997        rm -rf conftest.dSYM
7998
7999fi
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8001$as_echo "$lt_cv_ld_force_load" >&6; }
8002    case $host_os in
8003    rhapsody* | darwin1.[012])
8004      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8005    darwin1.*)
8006      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8007    darwin*) # darwin 5.x on
8008      # if running on 10.5 or later, the deployment target defaults
8009      # to the OS version, if on x86, and 10.4, the deployment
8010      # target defaults to 10.4. Don't you love it?
8011      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8012	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8013	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8014	10.[012][,.]*)
8015	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8016	10.*)
8017	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8018      esac
8019    ;;
8020  esac
8021    if test yes = "$lt_cv_apple_cc_single_mod"; then
8022      _lt_dar_single_mod='$single_module'
8023    fi
8024    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8025      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8026    else
8027      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8028    fi
8029    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8030      _lt_dsymutil='~$DSYMUTIL $lib || :'
8031    else
8032      _lt_dsymutil=
8033    fi
8034    ;;
8035  esac
8036
8037# func_munge_path_list VARIABLE PATH
8038# -----------------------------------
8039# VARIABLE is name of variable containing _space_ separated list of
8040# directories to be munged by the contents of PATH, which is string
8041# having a format:
8042# "DIR[:DIR]:"
8043#       string "DIR[ DIR]" will be prepended to VARIABLE
8044# ":DIR[:DIR]"
8045#       string "DIR[ DIR]" will be appended to VARIABLE
8046# "DIRP[:DIRP]::[DIRA:]DIRA"
8047#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8048#       "DIRA[ DIRA]" will be appended to VARIABLE
8049# "DIR[:DIR]"
8050#       VARIABLE will be replaced by "DIR[ DIR]"
8051func_munge_path_list ()
8052{
8053    case x$2 in
8054    x)
8055        ;;
8056    *:)
8057        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8058        ;;
8059    x:*)
8060        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8061        ;;
8062    *::*)
8063        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8064        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8065        ;;
8066    *)
8067        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8068        ;;
8069    esac
8070}
8071
8072ac_ext=c
8073ac_cpp='$CPP $CPPFLAGS'
8074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8076ac_compiler_gnu=$ac_cv_c_compiler_gnu
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8078$as_echo_n "checking how to run the C preprocessor... " >&6; }
8079# On Suns, sometimes $CPP names a directory.
8080if test -n "$CPP" && test -d "$CPP"; then
8081  CPP=
8082fi
8083if test -z "$CPP"; then
8084  if ${ac_cv_prog_CPP+:} false; then :
8085  $as_echo_n "(cached) " >&6
8086else
8087      # Double quotes because CPP needs to be expanded
8088    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8089    do
8090      ac_preproc_ok=false
8091for ac_c_preproc_warn_flag in '' yes
8092do
8093  # Use a header file that comes with gcc, so configuring glibc
8094  # with a fresh cross-compiler works.
8095  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8096  # <limits.h> exists even on freestanding compilers.
8097  # On the NeXT, cc -E runs the code through the compiler's parser,
8098  # not just through cpp. "Syntax error" is here to catch this case.
8099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100/* end confdefs.h.  */
8101#ifdef __STDC__
8102# include <limits.h>
8103#else
8104# include <assert.h>
8105#endif
8106		     Syntax error
8107_ACEOF
8108if ac_fn_c_try_cpp "$LINENO"; then :
8109
8110else
8111  # Broken: fails on valid input.
8112continue
8113fi
8114rm -f conftest.err conftest.i conftest.$ac_ext
8115
8116  # OK, works on sane cases.  Now check whether nonexistent headers
8117  # can be detected and how.
8118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119/* end confdefs.h.  */
8120#include <ac_nonexistent.h>
8121_ACEOF
8122if ac_fn_c_try_cpp "$LINENO"; then :
8123  # Broken: success on invalid input.
8124continue
8125else
8126  # Passes both tests.
8127ac_preproc_ok=:
8128break
8129fi
8130rm -f conftest.err conftest.i conftest.$ac_ext
8131
8132done
8133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8134rm -f conftest.i conftest.err conftest.$ac_ext
8135if $ac_preproc_ok; then :
8136  break
8137fi
8138
8139    done
8140    ac_cv_prog_CPP=$CPP
8141
8142fi
8143  CPP=$ac_cv_prog_CPP
8144else
8145  ac_cv_prog_CPP=$CPP
8146fi
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8148$as_echo "$CPP" >&6; }
8149ac_preproc_ok=false
8150for ac_c_preproc_warn_flag in '' yes
8151do
8152  # Use a header file that comes with gcc, so configuring glibc
8153  # with a fresh cross-compiler works.
8154  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8155  # <limits.h> exists even on freestanding compilers.
8156  # On the NeXT, cc -E runs the code through the compiler's parser,
8157  # not just through cpp. "Syntax error" is here to catch this case.
8158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h.  */
8160#ifdef __STDC__
8161# include <limits.h>
8162#else
8163# include <assert.h>
8164#endif
8165		     Syntax error
8166_ACEOF
8167if ac_fn_c_try_cpp "$LINENO"; then :
8168
8169else
8170  # Broken: fails on valid input.
8171continue
8172fi
8173rm -f conftest.err conftest.i conftest.$ac_ext
8174
8175  # OK, works on sane cases.  Now check whether nonexistent headers
8176  # can be detected and how.
8177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h.  */
8179#include <ac_nonexistent.h>
8180_ACEOF
8181if ac_fn_c_try_cpp "$LINENO"; then :
8182  # Broken: success on invalid input.
8183continue
8184else
8185  # Passes both tests.
8186ac_preproc_ok=:
8187break
8188fi
8189rm -f conftest.err conftest.i conftest.$ac_ext
8190
8191done
8192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8193rm -f conftest.i conftest.err conftest.$ac_ext
8194if $ac_preproc_ok; then :
8195
8196else
8197  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8199as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8200See \`config.log' for more details" "$LINENO" 5; }
8201fi
8202
8203ac_ext=c
8204ac_cpp='$CPP $CPPFLAGS'
8205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8207ac_compiler_gnu=$ac_cv_c_compiler_gnu
8208
8209
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8211$as_echo_n "checking for ANSI C header files... " >&6; }
8212if ${ac_cv_header_stdc+:} false; then :
8213  $as_echo_n "(cached) " >&6
8214else
8215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216/* end confdefs.h.  */
8217#include <stdlib.h>
8218#include <stdarg.h>
8219#include <string.h>
8220#include <float.h>
8221
8222int
8223main ()
8224{
8225
8226  ;
8227  return 0;
8228}
8229_ACEOF
8230if ac_fn_c_try_compile "$LINENO"; then :
8231  ac_cv_header_stdc=yes
8232else
8233  ac_cv_header_stdc=no
8234fi
8235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8236
8237if test $ac_cv_header_stdc = yes; then
8238  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h.  */
8241#include <string.h>
8242
8243_ACEOF
8244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245  $EGREP "memchr" >/dev/null 2>&1; then :
8246
8247else
8248  ac_cv_header_stdc=no
8249fi
8250rm -f conftest*
8251
8252fi
8253
8254if test $ac_cv_header_stdc = yes; then
8255  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257/* end confdefs.h.  */
8258#include <stdlib.h>
8259
8260_ACEOF
8261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8262  $EGREP "free" >/dev/null 2>&1; then :
8263
8264else
8265  ac_cv_header_stdc=no
8266fi
8267rm -f conftest*
8268
8269fi
8270
8271if test $ac_cv_header_stdc = yes; then
8272  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8273  if test "$cross_compiling" = yes; then :
8274  :
8275else
8276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h.  */
8278#include <ctype.h>
8279#include <stdlib.h>
8280#if ((' ' & 0x0FF) == 0x020)
8281# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8282# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8283#else
8284# define ISLOWER(c) \
8285		   (('a' <= (c) && (c) <= 'i') \
8286		     || ('j' <= (c) && (c) <= 'r') \
8287		     || ('s' <= (c) && (c) <= 'z'))
8288# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8289#endif
8290
8291#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8292int
8293main ()
8294{
8295  int i;
8296  for (i = 0; i < 256; i++)
8297    if (XOR (islower (i), ISLOWER (i))
8298	|| toupper (i) != TOUPPER (i))
8299      return 2;
8300  return 0;
8301}
8302_ACEOF
8303if ac_fn_c_try_run "$LINENO"; then :
8304
8305else
8306  ac_cv_header_stdc=no
8307fi
8308rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8309  conftest.$ac_objext conftest.beam conftest.$ac_ext
8310fi
8311
8312fi
8313fi
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8315$as_echo "$ac_cv_header_stdc" >&6; }
8316if test $ac_cv_header_stdc = yes; then
8317
8318$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8319
8320fi
8321
8322# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8323for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8324		  inttypes.h stdint.h unistd.h
8325do :
8326  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8327ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8328"
8329if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8330  cat >>confdefs.h <<_ACEOF
8331#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8332_ACEOF
8333
8334fi
8335
8336done
8337
8338
8339for ac_header in dlfcn.h
8340do :
8341  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8342"
8343if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8344  cat >>confdefs.h <<_ACEOF
8345#define HAVE_DLFCN_H 1
8346_ACEOF
8347
8348fi
8349
8350done
8351
8352
8353
8354
8355
8356# Set options
8357enable_dlopen=yes
8358enable_win32_dll=yes
8359
8360case $host in
8361*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8362  if test -n "$ac_tool_prefix"; then
8363  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8364set dummy ${ac_tool_prefix}as; ac_word=$2
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366$as_echo_n "checking for $ac_word... " >&6; }
8367if ${ac_cv_prog_AS+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370  if test -n "$AS"; then
8371  ac_cv_prog_AS="$AS" # Let the user override the test.
8372else
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376  IFS=$as_save_IFS
8377  test -z "$as_dir" && as_dir=.
8378    for ac_exec_ext in '' $ac_executable_extensions; do
8379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380    ac_cv_prog_AS="${ac_tool_prefix}as"
8381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382    break 2
8383  fi
8384done
8385  done
8386IFS=$as_save_IFS
8387
8388fi
8389fi
8390AS=$ac_cv_prog_AS
8391if test -n "$AS"; then
8392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8393$as_echo "$AS" >&6; }
8394else
8395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
8397fi
8398
8399
8400fi
8401if test -z "$ac_cv_prog_AS"; then
8402  ac_ct_AS=$AS
8403  # Extract the first word of "as", so it can be a program name with args.
8404set dummy as; ac_word=$2
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406$as_echo_n "checking for $ac_word... " >&6; }
8407if ${ac_cv_prog_ac_ct_AS+:} false; then :
8408  $as_echo_n "(cached) " >&6
8409else
8410  if test -n "$ac_ct_AS"; then
8411  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8412else
8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416  IFS=$as_save_IFS
8417  test -z "$as_dir" && as_dir=.
8418    for ac_exec_ext in '' $ac_executable_extensions; do
8419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8420    ac_cv_prog_ac_ct_AS="as"
8421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422    break 2
8423  fi
8424done
8425  done
8426IFS=$as_save_IFS
8427
8428fi
8429fi
8430ac_ct_AS=$ac_cv_prog_ac_ct_AS
8431if test -n "$ac_ct_AS"; then
8432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8433$as_echo "$ac_ct_AS" >&6; }
8434else
8435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
8437fi
8438
8439  if test "x$ac_ct_AS" = x; then
8440    AS="false"
8441  else
8442    case $cross_compiling:$ac_tool_warned in
8443yes:)
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8446ac_tool_warned=yes ;;
8447esac
8448    AS=$ac_ct_AS
8449  fi
8450else
8451  AS="$ac_cv_prog_AS"
8452fi
8453
8454  if test -n "$ac_tool_prefix"; then
8455  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8456set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458$as_echo_n "checking for $ac_word... " >&6; }
8459if ${ac_cv_prog_DLLTOOL+:} false; then :
8460  $as_echo_n "(cached) " >&6
8461else
8462  if test -n "$DLLTOOL"; then
8463  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8464else
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468  IFS=$as_save_IFS
8469  test -z "$as_dir" && as_dir=.
8470    for ac_exec_ext in '' $ac_executable_extensions; do
8471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474    break 2
8475  fi
8476done
8477  done
8478IFS=$as_save_IFS
8479
8480fi
8481fi
8482DLLTOOL=$ac_cv_prog_DLLTOOL
8483if test -n "$DLLTOOL"; then
8484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8485$as_echo "$DLLTOOL" >&6; }
8486else
8487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
8489fi
8490
8491
8492fi
8493if test -z "$ac_cv_prog_DLLTOOL"; then
8494  ac_ct_DLLTOOL=$DLLTOOL
8495  # Extract the first word of "dlltool", so it can be a program name with args.
8496set dummy dlltool; ac_word=$2
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498$as_echo_n "checking for $ac_word... " >&6; }
8499if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8500  $as_echo_n "(cached) " >&6
8501else
8502  if test -n "$ac_ct_DLLTOOL"; then
8503  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8504else
8505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506for as_dir in $PATH
8507do
8508  IFS=$as_save_IFS
8509  test -z "$as_dir" && as_dir=.
8510    for ac_exec_ext in '' $ac_executable_extensions; do
8511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514    break 2
8515  fi
8516done
8517  done
8518IFS=$as_save_IFS
8519
8520fi
8521fi
8522ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8523if test -n "$ac_ct_DLLTOOL"; then
8524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8525$as_echo "$ac_ct_DLLTOOL" >&6; }
8526else
8527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528$as_echo "no" >&6; }
8529fi
8530
8531  if test "x$ac_ct_DLLTOOL" = x; then
8532    DLLTOOL="false"
8533  else
8534    case $cross_compiling:$ac_tool_warned in
8535yes:)
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8538ac_tool_warned=yes ;;
8539esac
8540    DLLTOOL=$ac_ct_DLLTOOL
8541  fi
8542else
8543  DLLTOOL="$ac_cv_prog_DLLTOOL"
8544fi
8545
8546  if test -n "$ac_tool_prefix"; then
8547  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8548set dummy ${ac_tool_prefix}objdump; ac_word=$2
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550$as_echo_n "checking for $ac_word... " >&6; }
8551if ${ac_cv_prog_OBJDUMP+:} false; then :
8552  $as_echo_n "(cached) " >&6
8553else
8554  if test -n "$OBJDUMP"; then
8555  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8556else
8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558for as_dir in $PATH
8559do
8560  IFS=$as_save_IFS
8561  test -z "$as_dir" && as_dir=.
8562    for ac_exec_ext in '' $ac_executable_extensions; do
8563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566    break 2
8567  fi
8568done
8569  done
8570IFS=$as_save_IFS
8571
8572fi
8573fi
8574OBJDUMP=$ac_cv_prog_OBJDUMP
8575if test -n "$OBJDUMP"; then
8576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8577$as_echo "$OBJDUMP" >&6; }
8578else
8579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580$as_echo "no" >&6; }
8581fi
8582
8583
8584fi
8585if test -z "$ac_cv_prog_OBJDUMP"; then
8586  ac_ct_OBJDUMP=$OBJDUMP
8587  # Extract the first word of "objdump", so it can be a program name with args.
8588set dummy objdump; ac_word=$2
8589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590$as_echo_n "checking for $ac_word... " >&6; }
8591if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8592  $as_echo_n "(cached) " >&6
8593else
8594  if test -n "$ac_ct_OBJDUMP"; then
8595  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8596else
8597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598for as_dir in $PATH
8599do
8600  IFS=$as_save_IFS
8601  test -z "$as_dir" && as_dir=.
8602    for ac_exec_ext in '' $ac_executable_extensions; do
8603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8604    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606    break 2
8607  fi
8608done
8609  done
8610IFS=$as_save_IFS
8611
8612fi
8613fi
8614ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8615if test -n "$ac_ct_OBJDUMP"; then
8616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8617$as_echo "$ac_ct_OBJDUMP" >&6; }
8618else
8619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620$as_echo "no" >&6; }
8621fi
8622
8623  if test "x$ac_ct_OBJDUMP" = x; then
8624    OBJDUMP="false"
8625  else
8626    case $cross_compiling:$ac_tool_warned in
8627yes:)
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8630ac_tool_warned=yes ;;
8631esac
8632    OBJDUMP=$ac_ct_OBJDUMP
8633  fi
8634else
8635  OBJDUMP="$ac_cv_prog_OBJDUMP"
8636fi
8637
8638  ;;
8639esac
8640
8641test -z "$AS" && AS=as
8642
8643
8644
8645
8646
8647test -z "$DLLTOOL" && DLLTOOL=dlltool
8648
8649
8650
8651
8652
8653test -z "$OBJDUMP" && OBJDUMP=objdump
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663            # Check whether --enable-shared was given.
8664if test "${enable_shared+set}" = set; then :
8665  enableval=$enable_shared; p=${PACKAGE-default}
8666    case $enableval in
8667    yes) enable_shared=yes ;;
8668    no) enable_shared=no ;;
8669    *)
8670      enable_shared=no
8671      # Look at the argument we got.  We use all the common list separators.
8672      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8673      for pkg in $enableval; do
8674	IFS=$lt_save_ifs
8675	if test "X$pkg" = "X$p"; then
8676	  enable_shared=yes
8677	fi
8678      done
8679      IFS=$lt_save_ifs
8680      ;;
8681    esac
8682else
8683  enable_shared=yes
8684fi
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694  # Check whether --enable-static was given.
8695if test "${enable_static+set}" = set; then :
8696  enableval=$enable_static; p=${PACKAGE-default}
8697    case $enableval in
8698    yes) enable_static=yes ;;
8699    no) enable_static=no ;;
8700    *)
8701     enable_static=no
8702      # Look at the argument we got.  We use all the common list separators.
8703      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8704      for pkg in $enableval; do
8705	IFS=$lt_save_ifs
8706	if test "X$pkg" = "X$p"; then
8707	  enable_static=yes
8708	fi
8709      done
8710      IFS=$lt_save_ifs
8711      ;;
8712    esac
8713else
8714  enable_static=yes
8715fi
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726# Check whether --with-pic was given.
8727if test "${with_pic+set}" = set; then :
8728  withval=$with_pic; lt_p=${PACKAGE-default}
8729    case $withval in
8730    yes|no) pic_mode=$withval ;;
8731    *)
8732      pic_mode=default
8733      # Look at the argument we got.  We use all the common list separators.
8734      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8735      for lt_pkg in $withval; do
8736	IFS=$lt_save_ifs
8737	if test "X$lt_pkg" = "X$lt_p"; then
8738	  pic_mode=yes
8739	fi
8740      done
8741      IFS=$lt_save_ifs
8742      ;;
8743    esac
8744else
8745  pic_mode=default
8746fi
8747
8748
8749
8750
8751
8752
8753
8754
8755  # Check whether --enable-fast-install was given.
8756if test "${enable_fast_install+set}" = set; then :
8757  enableval=$enable_fast_install; p=${PACKAGE-default}
8758    case $enableval in
8759    yes) enable_fast_install=yes ;;
8760    no) enable_fast_install=no ;;
8761    *)
8762      enable_fast_install=no
8763      # Look at the argument we got.  We use all the common list separators.
8764      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8765      for pkg in $enableval; do
8766	IFS=$lt_save_ifs
8767	if test "X$pkg" = "X$p"; then
8768	  enable_fast_install=yes
8769	fi
8770      done
8771      IFS=$lt_save_ifs
8772      ;;
8773    esac
8774else
8775  enable_fast_install=yes
8776fi
8777
8778
8779
8780
8781
8782
8783
8784
8785  shared_archive_member_spec=
8786case $host,$enable_shared in
8787power*-*-aix[5-9]*,yes)
8788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8789$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8790
8791# Check whether --with-aix-soname was given.
8792if test "${with_aix_soname+set}" = set; then :
8793  withval=$with_aix_soname; case $withval in
8794    aix|svr4|both)
8795      ;;
8796    *)
8797      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8798      ;;
8799    esac
8800    lt_cv_with_aix_soname=$with_aix_soname
8801else
8802  if ${lt_cv_with_aix_soname+:} false; then :
8803  $as_echo_n "(cached) " >&6
8804else
8805  lt_cv_with_aix_soname=aix
8806fi
8807
8808    with_aix_soname=$lt_cv_with_aix_soname
8809fi
8810
8811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8812$as_echo "$with_aix_soname" >&6; }
8813  if test aix != "$with_aix_soname"; then
8814    # For the AIX way of multilib, we name the shared archive member
8815    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8816    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8817    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8818    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8819    if test 64 = "${OBJECT_MODE-32}"; then
8820      shared_archive_member_spec=shr_64
8821    else
8822      shared_archive_member_spec=shr
8823    fi
8824  fi
8825  ;;
8826*)
8827  with_aix_soname=aix
8828  ;;
8829esac
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840# This can be used to rebuild libtool when needed
8841LIBTOOL_DEPS=$ltmain
8842
8843# Always use our own libtool.
8844LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875test -z "$LN_S" && LN_S="ln -s"
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890if test -n "${ZSH_VERSION+set}"; then
8891   setopt NO_GLOB_SUBST
8892fi
8893
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8895$as_echo_n "checking for objdir... " >&6; }
8896if ${lt_cv_objdir+:} false; then :
8897  $as_echo_n "(cached) " >&6
8898else
8899  rm -f .libs 2>/dev/null
8900mkdir .libs 2>/dev/null
8901if test -d .libs; then
8902  lt_cv_objdir=.libs
8903else
8904  # MS-DOS does not allow filenames that begin with a dot.
8905  lt_cv_objdir=_libs
8906fi
8907rmdir .libs 2>/dev/null
8908fi
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8910$as_echo "$lt_cv_objdir" >&6; }
8911objdir=$lt_cv_objdir
8912
8913
8914
8915
8916
8917cat >>confdefs.h <<_ACEOF
8918#define LT_OBJDIR "$lt_cv_objdir/"
8919_ACEOF
8920
8921
8922
8923
8924case $host_os in
8925aix3*)
8926  # AIX sometimes has problems with the GCC collect2 program.  For some
8927  # reason, if we set the COLLECT_NAMES environment variable, the problems
8928  # vanish in a puff of smoke.
8929  if test set != "${COLLECT_NAMES+set}"; then
8930    COLLECT_NAMES=
8931    export COLLECT_NAMES
8932  fi
8933  ;;
8934esac
8935
8936# Global variables:
8937ofile=libtool
8938can_build_shared=yes
8939
8940# All known linkers require a '.a' archive for static linking (except MSVC,
8941# which needs '.lib').
8942libext=a
8943
8944with_gnu_ld=$lt_cv_prog_gnu_ld
8945
8946old_CC=$CC
8947old_CFLAGS=$CFLAGS
8948
8949# Set sane defaults for various variables
8950test -z "$CC" && CC=cc
8951test -z "$LTCC" && LTCC=$CC
8952test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8953test -z "$LD" && LD=ld
8954test -z "$ac_objext" && ac_objext=o
8955
8956func_cc_basename $compiler
8957cc_basename=$func_cc_basename_result
8958
8959
8960# Only perform the check for file, if the check method requires it
8961test -z "$MAGIC_CMD" && MAGIC_CMD=file
8962case $deplibs_check_method in
8963file_magic*)
8964  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8965    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8966$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8967if ${lt_cv_path_MAGIC_CMD+:} false; then :
8968  $as_echo_n "(cached) " >&6
8969else
8970  case $MAGIC_CMD in
8971[\\/*] |  ?:[\\/]*)
8972  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8973  ;;
8974*)
8975  lt_save_MAGIC_CMD=$MAGIC_CMD
8976  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8977  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8978  for ac_dir in $ac_dummy; do
8979    IFS=$lt_save_ifs
8980    test -z "$ac_dir" && ac_dir=.
8981    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8982      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8983      if test -n "$file_magic_test_file"; then
8984	case $deplibs_check_method in
8985	"file_magic "*)
8986	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8987	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8988	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8989	    $EGREP "$file_magic_regex" > /dev/null; then
8990	    :
8991	  else
8992	    cat <<_LT_EOF 1>&2
8993
8994*** Warning: the command libtool uses to detect shared libraries,
8995*** $file_magic_cmd, produces output that libtool cannot recognize.
8996*** The result is that libtool may fail to recognize shared libraries
8997*** as such.  This will affect the creation of libtool libraries that
8998*** depend on shared libraries, but programs linked with such libtool
8999*** libraries will work regardless of this problem.  Nevertheless, you
9000*** may want to report the problem to your system manager and/or to
9001*** bug-libtool@gnu.org
9002
9003_LT_EOF
9004	  fi ;;
9005	esac
9006      fi
9007      break
9008    fi
9009  done
9010  IFS=$lt_save_ifs
9011  MAGIC_CMD=$lt_save_MAGIC_CMD
9012  ;;
9013esac
9014fi
9015
9016MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9017if test -n "$MAGIC_CMD"; then
9018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9019$as_echo "$MAGIC_CMD" >&6; }
9020else
9021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022$as_echo "no" >&6; }
9023fi
9024
9025
9026
9027
9028
9029if test -z "$lt_cv_path_MAGIC_CMD"; then
9030  if test -n "$ac_tool_prefix"; then
9031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9032$as_echo_n "checking for file... " >&6; }
9033if ${lt_cv_path_MAGIC_CMD+:} false; then :
9034  $as_echo_n "(cached) " >&6
9035else
9036  case $MAGIC_CMD in
9037[\\/*] |  ?:[\\/]*)
9038  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9039  ;;
9040*)
9041  lt_save_MAGIC_CMD=$MAGIC_CMD
9042  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9043  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9044  for ac_dir in $ac_dummy; do
9045    IFS=$lt_save_ifs
9046    test -z "$ac_dir" && ac_dir=.
9047    if test -f "$ac_dir/file"; then
9048      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9049      if test -n "$file_magic_test_file"; then
9050	case $deplibs_check_method in
9051	"file_magic "*)
9052	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9053	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9054	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9055	    $EGREP "$file_magic_regex" > /dev/null; then
9056	    :
9057	  else
9058	    cat <<_LT_EOF 1>&2
9059
9060*** Warning: the command libtool uses to detect shared libraries,
9061*** $file_magic_cmd, produces output that libtool cannot recognize.
9062*** The result is that libtool may fail to recognize shared libraries
9063*** as such.  This will affect the creation of libtool libraries that
9064*** depend on shared libraries, but programs linked with such libtool
9065*** libraries will work regardless of this problem.  Nevertheless, you
9066*** may want to report the problem to your system manager and/or to
9067*** bug-libtool@gnu.org
9068
9069_LT_EOF
9070	  fi ;;
9071	esac
9072      fi
9073      break
9074    fi
9075  done
9076  IFS=$lt_save_ifs
9077  MAGIC_CMD=$lt_save_MAGIC_CMD
9078  ;;
9079esac
9080fi
9081
9082MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9083if test -n "$MAGIC_CMD"; then
9084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9085$as_echo "$MAGIC_CMD" >&6; }
9086else
9087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088$as_echo "no" >&6; }
9089fi
9090
9091
9092  else
9093    MAGIC_CMD=:
9094  fi
9095fi
9096
9097  fi
9098  ;;
9099esac
9100
9101# Use C for the default configuration in the libtool script
9102
9103lt_save_CC=$CC
9104ac_ext=c
9105ac_cpp='$CPP $CPPFLAGS'
9106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108ac_compiler_gnu=$ac_cv_c_compiler_gnu
9109
9110
9111# Source file extension for C test sources.
9112ac_ext=c
9113
9114# Object file extension for compiled C test sources.
9115objext=o
9116objext=$objext
9117
9118# Code to be used in simple compile tests
9119lt_simple_compile_test_code="int some_variable = 0;"
9120
9121# Code to be used in simple link tests
9122lt_simple_link_test_code='int main(){return(0);}'
9123
9124
9125
9126
9127
9128
9129
9130# If no C compiler was specified, use CC.
9131LTCC=${LTCC-"$CC"}
9132
9133# If no C compiler flags were specified, use CFLAGS.
9134LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9135
9136# Allow CC to be a program name with arguments.
9137compiler=$CC
9138
9139# Save the default compiler, since it gets overwritten when the other
9140# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9141compiler_DEFAULT=$CC
9142
9143# save warnings/boilerplate of simple test code
9144ac_outfile=conftest.$ac_objext
9145echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9146eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9147_lt_compiler_boilerplate=`cat conftest.err`
9148$RM conftest*
9149
9150ac_outfile=conftest.$ac_objext
9151echo "$lt_simple_link_test_code" >conftest.$ac_ext
9152eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9153_lt_linker_boilerplate=`cat conftest.err`
9154$RM -r conftest*
9155
9156
9157## CAVEAT EMPTOR:
9158## There is no encapsulation within the following macros, do not change
9159## the running order or otherwise move them around unless you know exactly
9160## what you are doing...
9161if test -n "$compiler"; then
9162
9163lt_prog_compiler_no_builtin_flag=
9164
9165if test yes = "$GCC"; then
9166  case $cc_basename in
9167  nvcc*)
9168    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9169  *)
9170    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9171  esac
9172
9173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9174$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9175if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9176  $as_echo_n "(cached) " >&6
9177else
9178  lt_cv_prog_compiler_rtti_exceptions=no
9179   ac_outfile=conftest.$ac_objext
9180   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9181   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9182   # Insert the option either (1) after the last *FLAGS variable, or
9183   # (2) before a word containing "conftest.", or (3) at the end.
9184   # Note that $ac_compile itself does not contain backslashes and begins
9185   # with a dollar sign (not a hyphen), so the echo should work correctly.
9186   # The option is referenced via a variable to avoid confusing sed.
9187   lt_compile=`echo "$ac_compile" | $SED \
9188   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9189   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9190   -e 's:$: $lt_compiler_flag:'`
9191   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9192   (eval "$lt_compile" 2>conftest.err)
9193   ac_status=$?
9194   cat conftest.err >&5
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   if (exit $ac_status) && test -s "$ac_outfile"; then
9197     # The compiler can only warn and ignore the option if not recognized
9198     # So say no if there are warnings other than the usual output.
9199     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9200     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9202       lt_cv_prog_compiler_rtti_exceptions=yes
9203     fi
9204   fi
9205   $RM conftest*
9206
9207fi
9208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9209$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9210
9211if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9212    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9213else
9214    :
9215fi
9216
9217fi
9218
9219
9220
9221
9222
9223
9224  lt_prog_compiler_wl=
9225lt_prog_compiler_pic=
9226lt_prog_compiler_static=
9227
9228
9229  if test yes = "$GCC"; then
9230    lt_prog_compiler_wl='-Wl,'
9231    lt_prog_compiler_static='-static'
9232
9233    case $host_os in
9234      aix*)
9235      # All AIX code is PIC.
9236      if test ia64 = "$host_cpu"; then
9237	# AIX 5 now supports IA64 processor
9238	lt_prog_compiler_static='-Bstatic'
9239      fi
9240      lt_prog_compiler_pic='-fPIC'
9241      ;;
9242
9243    amigaos*)
9244      case $host_cpu in
9245      powerpc)
9246            # see comment about AmigaOS4 .so support
9247            lt_prog_compiler_pic='-fPIC'
9248        ;;
9249      m68k)
9250            # FIXME: we need at least 68020 code to build shared libraries, but
9251            # adding the '-m68020' flag to GCC prevents building anything better,
9252            # like '-m68040'.
9253            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9254        ;;
9255      esac
9256      ;;
9257
9258    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9259      # PIC is the default for these OSes.
9260      ;;
9261
9262    mingw* | cygwin* | pw32* | os2* | cegcc*)
9263      # This hack is so that the source file can tell whether it is being
9264      # built for inclusion in a dll (and should export symbols for example).
9265      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9266      # (--disable-auto-import) libraries
9267      lt_prog_compiler_pic='-DDLL_EXPORT'
9268      case $host_os in
9269      os2*)
9270	lt_prog_compiler_static='$wl-static'
9271	;;
9272      esac
9273      ;;
9274
9275    darwin* | rhapsody*)
9276      # PIC is the default on this platform
9277      # Common symbols not allowed in MH_DYLIB files
9278      lt_prog_compiler_pic='-fno-common'
9279      ;;
9280
9281    haiku*)
9282      # PIC is the default for Haiku.
9283      # The "-static" flag exists, but is broken.
9284      lt_prog_compiler_static=
9285      ;;
9286
9287    hpux*)
9288      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9289      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9290      # sets the default TLS model and affects inlining.
9291      case $host_cpu in
9292      hppa*64*)
9293	# +Z the default
9294	;;
9295      *)
9296	lt_prog_compiler_pic='-fPIC'
9297	;;
9298      esac
9299      ;;
9300
9301    interix[3-9]*)
9302      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9303      # Instead, we relocate shared libraries at runtime.
9304      ;;
9305
9306    msdosdjgpp*)
9307      # Just because we use GCC doesn't mean we suddenly get shared libraries
9308      # on systems that don't support them.
9309      lt_prog_compiler_can_build_shared=no
9310      enable_shared=no
9311      ;;
9312
9313    *nto* | *qnx*)
9314      # QNX uses GNU C++, but need to define -shared option too, otherwise
9315      # it will coredump.
9316      lt_prog_compiler_pic='-fPIC -shared'
9317      ;;
9318
9319    sysv4*MP*)
9320      if test -d /usr/nec; then
9321	lt_prog_compiler_pic=-Kconform_pic
9322      fi
9323      ;;
9324
9325    *)
9326      lt_prog_compiler_pic='-fPIC'
9327      ;;
9328    esac
9329
9330    case $cc_basename in
9331    nvcc*) # Cuda Compiler Driver 2.2
9332      lt_prog_compiler_wl='-Xlinker '
9333      if test -n "$lt_prog_compiler_pic"; then
9334        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9335      fi
9336      ;;
9337    esac
9338  else
9339    # PORTME Check for flag to pass linker flags through the system compiler.
9340    case $host_os in
9341    aix*)
9342      lt_prog_compiler_wl='-Wl,'
9343      if test ia64 = "$host_cpu"; then
9344	# AIX 5 now supports IA64 processor
9345	lt_prog_compiler_static='-Bstatic'
9346      else
9347	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9348      fi
9349      ;;
9350
9351    darwin* | rhapsody*)
9352      # PIC is the default on this platform
9353      # Common symbols not allowed in MH_DYLIB files
9354      lt_prog_compiler_pic='-fno-common'
9355      case $cc_basename in
9356      nagfor*)
9357        # NAG Fortran compiler
9358        lt_prog_compiler_wl='-Wl,-Wl,,'
9359        lt_prog_compiler_pic='-PIC'
9360        lt_prog_compiler_static='-Bstatic'
9361        ;;
9362      esac
9363      ;;
9364
9365    mingw* | cygwin* | pw32* | os2* | cegcc*)
9366      # This hack is so that the source file can tell whether it is being
9367      # built for inclusion in a dll (and should export symbols for example).
9368      lt_prog_compiler_pic='-DDLL_EXPORT'
9369      case $host_os in
9370      os2*)
9371	lt_prog_compiler_static='$wl-static'
9372	;;
9373      esac
9374      ;;
9375
9376    hpux9* | hpux10* | hpux11*)
9377      lt_prog_compiler_wl='-Wl,'
9378      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9379      # not for PA HP-UX.
9380      case $host_cpu in
9381      hppa*64*|ia64*)
9382	# +Z the default
9383	;;
9384      *)
9385	lt_prog_compiler_pic='+Z'
9386	;;
9387      esac
9388      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9389      lt_prog_compiler_static='$wl-a ${wl}archive'
9390      ;;
9391
9392    irix5* | irix6* | nonstopux*)
9393      lt_prog_compiler_wl='-Wl,'
9394      # PIC (with -KPIC) is the default.
9395      lt_prog_compiler_static='-non_shared'
9396      ;;
9397
9398    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9399      case $cc_basename in
9400      # old Intel for x86_64, which still supported -KPIC.
9401      ecc*)
9402	lt_prog_compiler_wl='-Wl,'
9403	lt_prog_compiler_pic='-KPIC'
9404	lt_prog_compiler_static='-static'
9405        ;;
9406      # icc used to be incompatible with GCC.
9407      # ICC 10 doesn't accept -KPIC any more.
9408      icc* | ifort*)
9409	lt_prog_compiler_wl='-Wl,'
9410	lt_prog_compiler_pic='-fPIC'
9411	lt_prog_compiler_static='-static'
9412        ;;
9413      # Lahey Fortran 8.1.
9414      lf95*)
9415	lt_prog_compiler_wl='-Wl,'
9416	lt_prog_compiler_pic='--shared'
9417	lt_prog_compiler_static='--static'
9418	;;
9419      nagfor*)
9420	# NAG Fortran compiler
9421	lt_prog_compiler_wl='-Wl,-Wl,,'
9422	lt_prog_compiler_pic='-PIC'
9423	lt_prog_compiler_static='-Bstatic'
9424	;;
9425      tcc*)
9426	# Fabrice Bellard et al's Tiny C Compiler
9427	lt_prog_compiler_wl='-Wl,'
9428	lt_prog_compiler_pic='-fPIC'
9429	lt_prog_compiler_static='-static'
9430	;;
9431      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9432        # Portland Group compilers (*not* the Pentium gcc compiler,
9433	# which looks to be a dead project)
9434	lt_prog_compiler_wl='-Wl,'
9435	lt_prog_compiler_pic='-fpic'
9436	lt_prog_compiler_static='-Bstatic'
9437        ;;
9438      ccc*)
9439        lt_prog_compiler_wl='-Wl,'
9440        # All Alpha code is PIC.
9441        lt_prog_compiler_static='-non_shared'
9442        ;;
9443      xl* | bgxl* | bgf* | mpixl*)
9444	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9445	lt_prog_compiler_wl='-Wl,'
9446	lt_prog_compiler_pic='-qpic'
9447	lt_prog_compiler_static='-qstaticlink'
9448	;;
9449      *)
9450	case `$CC -V 2>&1 | sed 5q` in
9451	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9452	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9453	  lt_prog_compiler_pic='-KPIC'
9454	  lt_prog_compiler_static='-Bstatic'
9455	  lt_prog_compiler_wl=''
9456	  ;;
9457	*Sun\ F* | *Sun*Fortran*)
9458	  lt_prog_compiler_pic='-KPIC'
9459	  lt_prog_compiler_static='-Bstatic'
9460	  lt_prog_compiler_wl='-Qoption ld '
9461	  ;;
9462	*Sun\ C*)
9463	  # Sun C 5.9
9464	  lt_prog_compiler_pic='-KPIC'
9465	  lt_prog_compiler_static='-Bstatic'
9466	  lt_prog_compiler_wl='-Wl,'
9467	  ;;
9468        *Intel*\ [CF]*Compiler*)
9469	  lt_prog_compiler_wl='-Wl,'
9470	  lt_prog_compiler_pic='-fPIC'
9471	  lt_prog_compiler_static='-static'
9472	  ;;
9473	*Portland\ Group*)
9474	  lt_prog_compiler_wl='-Wl,'
9475	  lt_prog_compiler_pic='-fpic'
9476	  lt_prog_compiler_static='-Bstatic'
9477	  ;;
9478	esac
9479	;;
9480      esac
9481      ;;
9482
9483    newsos6)
9484      lt_prog_compiler_pic='-KPIC'
9485      lt_prog_compiler_static='-Bstatic'
9486      ;;
9487
9488    *nto* | *qnx*)
9489      # QNX uses GNU C++, but need to define -shared option too, otherwise
9490      # it will coredump.
9491      lt_prog_compiler_pic='-fPIC -shared'
9492      ;;
9493
9494    osf3* | osf4* | osf5*)
9495      lt_prog_compiler_wl='-Wl,'
9496      # All OSF/1 code is PIC.
9497      lt_prog_compiler_static='-non_shared'
9498      ;;
9499
9500    rdos*)
9501      lt_prog_compiler_static='-non_shared'
9502      ;;
9503
9504    solaris*)
9505      lt_prog_compiler_pic='-KPIC'
9506      lt_prog_compiler_static='-Bstatic'
9507      case $cc_basename in
9508      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9509	lt_prog_compiler_wl='-Qoption ld ';;
9510      *)
9511	lt_prog_compiler_wl='-Wl,';;
9512      esac
9513      ;;
9514
9515    sunos4*)
9516      lt_prog_compiler_wl='-Qoption ld '
9517      lt_prog_compiler_pic='-PIC'
9518      lt_prog_compiler_static='-Bstatic'
9519      ;;
9520
9521    sysv4 | sysv4.2uw2* | sysv4.3*)
9522      lt_prog_compiler_wl='-Wl,'
9523      lt_prog_compiler_pic='-KPIC'
9524      lt_prog_compiler_static='-Bstatic'
9525      ;;
9526
9527    sysv4*MP*)
9528      if test -d /usr/nec; then
9529	lt_prog_compiler_pic='-Kconform_pic'
9530	lt_prog_compiler_static='-Bstatic'
9531      fi
9532      ;;
9533
9534    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9535      lt_prog_compiler_wl='-Wl,'
9536      lt_prog_compiler_pic='-KPIC'
9537      lt_prog_compiler_static='-Bstatic'
9538      ;;
9539
9540    unicos*)
9541      lt_prog_compiler_wl='-Wl,'
9542      lt_prog_compiler_can_build_shared=no
9543      ;;
9544
9545    uts4*)
9546      lt_prog_compiler_pic='-pic'
9547      lt_prog_compiler_static='-Bstatic'
9548      ;;
9549
9550    *)
9551      lt_prog_compiler_can_build_shared=no
9552      ;;
9553    esac
9554  fi
9555
9556case $host_os in
9557  # For platforms that do not support PIC, -DPIC is meaningless:
9558  *djgpp*)
9559    lt_prog_compiler_pic=
9560    ;;
9561  *)
9562    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9563    ;;
9564esac
9565
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9567$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9568if ${lt_cv_prog_compiler_pic+:} false; then :
9569  $as_echo_n "(cached) " >&6
9570else
9571  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9572fi
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9574$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9575lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9576
9577#
9578# Check to make sure the PIC flag actually works.
9579#
9580if test -n "$lt_prog_compiler_pic"; then
9581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9582$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9583if ${lt_cv_prog_compiler_pic_works+:} false; then :
9584  $as_echo_n "(cached) " >&6
9585else
9586  lt_cv_prog_compiler_pic_works=no
9587   ac_outfile=conftest.$ac_objext
9588   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9589   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9590   # Insert the option either (1) after the last *FLAGS variable, or
9591   # (2) before a word containing "conftest.", or (3) at the end.
9592   # Note that $ac_compile itself does not contain backslashes and begins
9593   # with a dollar sign (not a hyphen), so the echo should work correctly.
9594   # The option is referenced via a variable to avoid confusing sed.
9595   lt_compile=`echo "$ac_compile" | $SED \
9596   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9597   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9598   -e 's:$: $lt_compiler_flag:'`
9599   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9600   (eval "$lt_compile" 2>conftest.err)
9601   ac_status=$?
9602   cat conftest.err >&5
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   if (exit $ac_status) && test -s "$ac_outfile"; then
9605     # The compiler can only warn and ignore the option if not recognized
9606     # So say no if there are warnings other than the usual output.
9607     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9608     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9609     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9610       lt_cv_prog_compiler_pic_works=yes
9611     fi
9612   fi
9613   $RM conftest*
9614
9615fi
9616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9617$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9618
9619if test yes = "$lt_cv_prog_compiler_pic_works"; then
9620    case $lt_prog_compiler_pic in
9621     "" | " "*) ;;
9622     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9623     esac
9624else
9625    lt_prog_compiler_pic=
9626     lt_prog_compiler_can_build_shared=no
9627fi
9628
9629fi
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641#
9642# Check to make sure the static flag actually works.
9643#
9644wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9646$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9647if ${lt_cv_prog_compiler_static_works+:} false; then :
9648  $as_echo_n "(cached) " >&6
9649else
9650  lt_cv_prog_compiler_static_works=no
9651   save_LDFLAGS=$LDFLAGS
9652   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9653   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9654   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9655     # The linker can only warn and ignore the option if not recognized
9656     # So say no if there are warnings
9657     if test -s conftest.err; then
9658       # Append any errors to the config.log.
9659       cat conftest.err 1>&5
9660       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9661       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9662       if diff conftest.exp conftest.er2 >/dev/null; then
9663         lt_cv_prog_compiler_static_works=yes
9664       fi
9665     else
9666       lt_cv_prog_compiler_static_works=yes
9667     fi
9668   fi
9669   $RM -r conftest*
9670   LDFLAGS=$save_LDFLAGS
9671
9672fi
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9674$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9675
9676if test yes = "$lt_cv_prog_compiler_static_works"; then
9677    :
9678else
9679    lt_prog_compiler_static=
9680fi
9681
9682
9683
9684
9685
9686
9687
9688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9689$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9690if ${lt_cv_prog_compiler_c_o+:} false; then :
9691  $as_echo_n "(cached) " >&6
9692else
9693  lt_cv_prog_compiler_c_o=no
9694   $RM -r conftest 2>/dev/null
9695   mkdir conftest
9696   cd conftest
9697   mkdir out
9698   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699
9700   lt_compiler_flag="-o out/conftest2.$ac_objext"
9701   # Insert the option either (1) after the last *FLAGS variable, or
9702   # (2) before a word containing "conftest.", or (3) at the end.
9703   # Note that $ac_compile itself does not contain backslashes and begins
9704   # with a dollar sign (not a hyphen), so the echo should work correctly.
9705   lt_compile=`echo "$ac_compile" | $SED \
9706   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9707   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9708   -e 's:$: $lt_compiler_flag:'`
9709   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9710   (eval "$lt_compile" 2>out/conftest.err)
9711   ac_status=$?
9712   cat out/conftest.err >&5
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9715   then
9716     # The compiler can only warn and ignore the option if not recognized
9717     # So say no if there are warnings
9718     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9719     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9720     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9721       lt_cv_prog_compiler_c_o=yes
9722     fi
9723   fi
9724   chmod u+w . 2>&5
9725   $RM conftest*
9726   # SGI C++ compiler will create directory out/ii_files/ for
9727   # template instantiation
9728   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9729   $RM out/* && rmdir out
9730   cd ..
9731   $RM -r conftest
9732   $RM conftest*
9733
9734fi
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9736$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9737
9738
9739
9740
9741
9742
9743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9744$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9745if ${lt_cv_prog_compiler_c_o+:} false; then :
9746  $as_echo_n "(cached) " >&6
9747else
9748  lt_cv_prog_compiler_c_o=no
9749   $RM -r conftest 2>/dev/null
9750   mkdir conftest
9751   cd conftest
9752   mkdir out
9753   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9754
9755   lt_compiler_flag="-o out/conftest2.$ac_objext"
9756   # Insert the option either (1) after the last *FLAGS variable, or
9757   # (2) before a word containing "conftest.", or (3) at the end.
9758   # Note that $ac_compile itself does not contain backslashes and begins
9759   # with a dollar sign (not a hyphen), so the echo should work correctly.
9760   lt_compile=`echo "$ac_compile" | $SED \
9761   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763   -e 's:$: $lt_compiler_flag:'`
9764   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9765   (eval "$lt_compile" 2>out/conftest.err)
9766   ac_status=$?
9767   cat out/conftest.err >&5
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9770   then
9771     # The compiler can only warn and ignore the option if not recognized
9772     # So say no if there are warnings
9773     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9774     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9775     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9776       lt_cv_prog_compiler_c_o=yes
9777     fi
9778   fi
9779   chmod u+w . 2>&5
9780   $RM conftest*
9781   # SGI C++ compiler will create directory out/ii_files/ for
9782   # template instantiation
9783   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9784   $RM out/* && rmdir out
9785   cd ..
9786   $RM -r conftest
9787   $RM conftest*
9788
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9791$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9792
9793
9794
9795
9796hard_links=nottested
9797if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9798  # do not overwrite the value of need_locks provided by the user
9799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9800$as_echo_n "checking if we can lock with hard links... " >&6; }
9801  hard_links=yes
9802  $RM conftest*
9803  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9804  touch conftest.a
9805  ln conftest.a conftest.b 2>&5 || hard_links=no
9806  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9808$as_echo "$hard_links" >&6; }
9809  if test no = "$hard_links"; then
9810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9811$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9812    need_locks=warn
9813  fi
9814else
9815  need_locks=no
9816fi
9817
9818
9819
9820
9821
9822
9823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9824$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9825
9826  runpath_var=
9827  allow_undefined_flag=
9828  always_export_symbols=no
9829  archive_cmds=
9830  archive_expsym_cmds=
9831  compiler_needs_object=no
9832  enable_shared_with_static_runtimes=no
9833  export_dynamic_flag_spec=
9834  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9835  hardcode_automatic=no
9836  hardcode_direct=no
9837  hardcode_direct_absolute=no
9838  hardcode_libdir_flag_spec=
9839  hardcode_libdir_separator=
9840  hardcode_minus_L=no
9841  hardcode_shlibpath_var=unsupported
9842  inherit_rpath=no
9843  link_all_deplibs=unknown
9844  module_cmds=
9845  module_expsym_cmds=
9846  old_archive_from_new_cmds=
9847  old_archive_from_expsyms_cmds=
9848  thread_safe_flag_spec=
9849  whole_archive_flag_spec=
9850  # include_expsyms should be a list of space-separated symbols to be *always*
9851  # included in the symbol list
9852  include_expsyms=
9853  # exclude_expsyms can be an extended regexp of symbols to exclude
9854  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9855  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9856  # as well as any symbol that contains 'd'.
9857  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9858  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9859  # platforms (ab)use it in PIC code, but their linkers get confused if
9860  # the symbol is explicitly referenced.  Since portable code cannot
9861  # rely on this symbol name, it's probably fine to never include it in
9862  # preloaded symbol tables.
9863  # Exclude shared library initialization/finalization symbols.
9864  extract_expsyms_cmds=
9865
9866  case $host_os in
9867  cygwin* | mingw* | pw32* | cegcc*)
9868    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9869    # When not using gcc, we currently assume that we are using
9870    # Microsoft Visual C++.
9871    if test yes != "$GCC"; then
9872      with_gnu_ld=no
9873    fi
9874    ;;
9875  interix*)
9876    # we just hope/assume this is gcc and not c89 (= MSVC++)
9877    with_gnu_ld=yes
9878    ;;
9879  openbsd* | bitrig*)
9880    with_gnu_ld=no
9881    ;;
9882  esac
9883
9884  ld_shlibs=yes
9885
9886  # On some targets, GNU ld is compatible enough with the native linker
9887  # that we're better off using the native interface for both.
9888  lt_use_gnu_ld_interface=no
9889  if test yes = "$with_gnu_ld"; then
9890    case $host_os in
9891      aix*)
9892	# The AIX port of GNU ld has always aspired to compatibility
9893	# with the native linker.  However, as the warning in the GNU ld
9894	# block says, versions before 2.19.5* couldn't really create working
9895	# shared libraries, regardless of the interface used.
9896	case `$LD -v 2>&1` in
9897	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9898	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9899	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9900	  *)
9901	    lt_use_gnu_ld_interface=yes
9902	    ;;
9903	esac
9904	;;
9905      *)
9906	lt_use_gnu_ld_interface=yes
9907	;;
9908    esac
9909  fi
9910
9911  if test yes = "$lt_use_gnu_ld_interface"; then
9912    # If archive_cmds runs LD, not CC, wlarc should be empty
9913    wlarc='$wl'
9914
9915    # Set some defaults for GNU ld with shared library support. These
9916    # are reset later if shared libraries are not supported. Putting them
9917    # here allows them to be overridden if necessary.
9918    runpath_var=LD_RUN_PATH
9919    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9920    export_dynamic_flag_spec='$wl--export-dynamic'
9921    # ancient GNU ld didn't support --whole-archive et. al.
9922    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9923      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9924    else
9925      whole_archive_flag_spec=
9926    fi
9927    supports_anon_versioning=no
9928    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9929      *GNU\ gold*) supports_anon_versioning=yes ;;
9930      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9931      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9932      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9933      *\ 2.11.*) ;; # other 2.11 versions
9934      *) supports_anon_versioning=yes ;;
9935    esac
9936
9937    # See if GNU ld supports shared libraries.
9938    case $host_os in
9939    aix[3-9]*)
9940      # On AIX/PPC, the GNU linker is very broken
9941      if test ia64 != "$host_cpu"; then
9942	ld_shlibs=no
9943	cat <<_LT_EOF 1>&2
9944
9945*** Warning: the GNU linker, at least up to release 2.19, is reported
9946*** to be unable to reliably create shared libraries on AIX.
9947*** Therefore, libtool is disabling shared libraries support.  If you
9948*** really care for shared libraries, you may want to install binutils
9949*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9950*** You will then need to restart the configuration process.
9951
9952_LT_EOF
9953      fi
9954      ;;
9955
9956    amigaos*)
9957      case $host_cpu in
9958      powerpc)
9959            # see comment about AmigaOS4 .so support
9960            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9961            archive_expsym_cmds=''
9962        ;;
9963      m68k)
9964            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)'
9965            hardcode_libdir_flag_spec='-L$libdir'
9966            hardcode_minus_L=yes
9967        ;;
9968      esac
9969      ;;
9970
9971    beos*)
9972      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9973	allow_undefined_flag=unsupported
9974	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9975	# support --undefined.  This deserves some investigation.  FIXME
9976	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9977      else
9978	ld_shlibs=no
9979      fi
9980      ;;
9981
9982    cygwin* | mingw* | pw32* | cegcc*)
9983      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9984      # as there is no search path for DLLs.
9985      hardcode_libdir_flag_spec='-L$libdir'
9986      export_dynamic_flag_spec='$wl--export-all-symbols'
9987      allow_undefined_flag=unsupported
9988      always_export_symbols=no
9989      enable_shared_with_static_runtimes=yes
9990      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'
9991      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9992
9993      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9994        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9995	# If the export-symbols file already is a .def file, use it as
9996	# is; otherwise, prepend EXPORTS...
9997	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9998          cp $export_symbols $output_objdir/$soname.def;
9999        else
10000          echo EXPORTS > $output_objdir/$soname.def;
10001          cat $export_symbols >> $output_objdir/$soname.def;
10002        fi~
10003        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10004      else
10005	ld_shlibs=no
10006      fi
10007      ;;
10008
10009    haiku*)
10010      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10011      link_all_deplibs=yes
10012      ;;
10013
10014    os2*)
10015      hardcode_libdir_flag_spec='-L$libdir'
10016      hardcode_minus_L=yes
10017      allow_undefined_flag=unsupported
10018      shrext_cmds=.dll
10019      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10020	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10021	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10022	$ECHO EXPORTS >> $output_objdir/$libname.def~
10023	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10024	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10025	emximp -o $lib $output_objdir/$libname.def'
10026      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10027	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10028	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10029	$ECHO EXPORTS >> $output_objdir/$libname.def~
10030	prefix_cmds="$SED"~
10031	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10032	  prefix_cmds="$prefix_cmds -e 1d";
10033	fi~
10034	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10035	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10036	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10037	emximp -o $lib $output_objdir/$libname.def'
10038      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10039      enable_shared_with_static_runtimes=yes
10040      ;;
10041
10042    interix[3-9]*)
10043      hardcode_direct=no
10044      hardcode_shlibpath_var=no
10045      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10046      export_dynamic_flag_spec='$wl-E'
10047      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10048      # Instead, shared libraries are loaded at an image base (0x10000000 by
10049      # default) and relocated if they conflict, which is a slow very memory
10050      # consuming and fragmenting process.  To avoid this, we pick a random,
10051      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10052      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10053      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10054      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'
10055      ;;
10056
10057    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10058      tmp_diet=no
10059      if test linux-dietlibc = "$host_os"; then
10060	case $cc_basename in
10061	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10062	esac
10063      fi
10064      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10065	 && test no = "$tmp_diet"
10066      then
10067	tmp_addflag=' $pic_flag'
10068	tmp_sharedflag='-shared'
10069	case $cc_basename,$host_cpu in
10070        pgcc*)				# Portland Group C compiler
10071	  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'
10072	  tmp_addflag=' $pic_flag'
10073	  ;;
10074	pgf77* | pgf90* | pgf95* | pgfortran*)
10075					# Portland Group f77 and f90 compilers
10076	  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'
10077	  tmp_addflag=' $pic_flag -Mnomain' ;;
10078	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10079	  tmp_addflag=' -i_dynamic' ;;
10080	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10081	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10082	ifc* | ifort*)			# Intel Fortran compiler
10083	  tmp_addflag=' -nofor_main' ;;
10084	lf95*)				# Lahey Fortran 8.1
10085	  whole_archive_flag_spec=
10086	  tmp_sharedflag='--shared' ;;
10087        nagfor*)                        # NAGFOR 5.3
10088          tmp_sharedflag='-Wl,-shared' ;;
10089	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10090	  tmp_sharedflag='-qmkshrobj'
10091	  tmp_addflag= ;;
10092	nvcc*)	# Cuda Compiler Driver 2.2
10093	  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'
10094	  compiler_needs_object=yes
10095	  ;;
10096	esac
10097	case `$CC -V 2>&1 | sed 5q` in
10098	*Sun\ C*)			# Sun C 5.9
10099	  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'
10100	  compiler_needs_object=yes
10101	  tmp_sharedflag='-G' ;;
10102	*Sun\ F*)			# Sun Fortran 8.3
10103	  tmp_sharedflag='-G' ;;
10104	esac
10105	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10106
10107        if test yes = "$supports_anon_versioning"; then
10108          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10109            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10110            echo "local: *; };" >> $output_objdir/$libname.ver~
10111            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10112        fi
10113
10114	case $cc_basename in
10115	tcc*)
10116	  export_dynamic_flag_spec='-rdynamic'
10117	  ;;
10118	xlf* | bgf* | bgxlf* | mpixlf*)
10119	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10120	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10121	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10122	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10123	  if test yes = "$supports_anon_versioning"; then
10124	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10125              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10126              echo "local: *; };" >> $output_objdir/$libname.ver~
10127              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10128	  fi
10129	  ;;
10130	esac
10131      else
10132        ld_shlibs=no
10133      fi
10134      ;;
10135
10136    netbsd*)
10137      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10138	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10139	wlarc=
10140      else
10141	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10142	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10143      fi
10144      ;;
10145
10146    solaris*)
10147      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10148	ld_shlibs=no
10149	cat <<_LT_EOF 1>&2
10150
10151*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10152*** create shared libraries on Solaris systems.  Therefore, libtool
10153*** is disabling shared libraries support.  We urge you to upgrade GNU
10154*** binutils to release 2.9.1 or newer.  Another option is to modify
10155*** your PATH or compiler configuration so that the native linker is
10156*** used, and then restart.
10157
10158_LT_EOF
10159      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10160	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10161	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10162      else
10163	ld_shlibs=no
10164      fi
10165      ;;
10166
10167    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10168      case `$LD -v 2>&1` in
10169        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10170	ld_shlibs=no
10171	cat <<_LT_EOF 1>&2
10172
10173*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10174*** reliably create shared libraries on SCO systems.  Therefore, libtool
10175*** is disabling shared libraries support.  We urge you to upgrade GNU
10176*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10177*** your PATH or compiler configuration so that the native linker is
10178*** used, and then restart.
10179
10180_LT_EOF
10181	;;
10182	*)
10183	  # For security reasons, it is highly recommended that you always
10184	  # use absolute paths for naming shared libraries, and exclude the
10185	  # DT_RUNPATH tag from executables and libraries.  But doing so
10186	  # requires that you compile everything twice, which is a pain.
10187	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10188	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10189	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10190	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10191	  else
10192	    ld_shlibs=no
10193	  fi
10194	;;
10195      esac
10196      ;;
10197
10198    sunos4*)
10199      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10200      wlarc=
10201      hardcode_direct=yes
10202      hardcode_shlibpath_var=no
10203      ;;
10204
10205    *)
10206      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10207	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10208	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10209      else
10210	ld_shlibs=no
10211      fi
10212      ;;
10213    esac
10214
10215    if test no = "$ld_shlibs"; then
10216      runpath_var=
10217      hardcode_libdir_flag_spec=
10218      export_dynamic_flag_spec=
10219      whole_archive_flag_spec=
10220    fi
10221  else
10222    # PORTME fill in a description of your system's linker (not GNU ld)
10223    case $host_os in
10224    aix3*)
10225      allow_undefined_flag=unsupported
10226      always_export_symbols=yes
10227      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'
10228      # Note: this linker hardcodes the directories in LIBPATH if there
10229      # are no directories specified by -L.
10230      hardcode_minus_L=yes
10231      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10232	# Neither direct hardcoding nor static linking is supported with a
10233	# broken collect2.
10234	hardcode_direct=unsupported
10235      fi
10236      ;;
10237
10238    aix[4-9]*)
10239      if test ia64 = "$host_cpu"; then
10240	# On IA64, the linker does run time linking by default, so we don't
10241	# have to do anything special.
10242	aix_use_runtimelinking=no
10243	exp_sym_flag='-Bexport'
10244	no_entry_flag=
10245      else
10246	# If we're using GNU nm, then we don't want the "-C" option.
10247	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10248	# Without the "-l" option, or with the "-B" option, AIX nm treats
10249	# weak defined symbols like other global defined symbols, whereas
10250	# GNU nm marks them as "W".
10251	# While the 'weak' keyword is ignored in the Export File, we need
10252	# it in the Import File for the 'aix-soname' feature, so we have
10253	# to replace the "-B" option with "-P" for AIX nm.
10254	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10255	  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'
10256	else
10257	  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'
10258	fi
10259	aix_use_runtimelinking=no
10260
10261	# Test if we are trying to use run time linking or normal
10262	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10263	# have runtime linking enabled, and use it for executables.
10264	# For shared libraries, we enable/disable runtime linking
10265	# depending on the kind of the shared library created -
10266	# when "with_aix_soname,aix_use_runtimelinking" is:
10267	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10268	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10269	#            lib.a           static archive
10270	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10271	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10272	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10273	#            lib.a(lib.so.V) shared, rtl:no
10274	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10275	#            lib.a           static archive
10276	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10277	  for ld_flag in $LDFLAGS; do
10278	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10279	    aix_use_runtimelinking=yes
10280	    break
10281	  fi
10282	  done
10283	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10284	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10285	    # so we don't have lib.a shared libs to link our executables.
10286	    # We have to force runtime linking in this case.
10287	    aix_use_runtimelinking=yes
10288	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10289	  fi
10290	  ;;
10291	esac
10292
10293	exp_sym_flag='-bexport'
10294	no_entry_flag='-bnoentry'
10295      fi
10296
10297      # When large executables or shared objects are built, AIX ld can
10298      # have problems creating the table of contents.  If linking a library
10299      # or program results in "error TOC overflow" add -mminimal-toc to
10300      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10301      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10302
10303      archive_cmds=''
10304      hardcode_direct=yes
10305      hardcode_direct_absolute=yes
10306      hardcode_libdir_separator=':'
10307      link_all_deplibs=yes
10308      file_list_spec='$wl-f,'
10309      case $with_aix_soname,$aix_use_runtimelinking in
10310      aix,*) ;; # traditional, no import file
10311      svr4,* | *,yes) # use import file
10312	# The Import File defines what to hardcode.
10313	hardcode_direct=no
10314	hardcode_direct_absolute=no
10315	;;
10316      esac
10317
10318      if test yes = "$GCC"; then
10319	case $host_os in aix4.[012]|aix4.[012].*)
10320	# We only want to do this on AIX 4.2 and lower, the check
10321	# below for broken collect2 doesn't work under 4.3+
10322	  collect2name=`$CC -print-prog-name=collect2`
10323	  if test -f "$collect2name" &&
10324	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10325	  then
10326	  # We have reworked collect2
10327	  :
10328	  else
10329	  # We have old collect2
10330	  hardcode_direct=unsupported
10331	  # It fails to find uninstalled libraries when the uninstalled
10332	  # path is not listed in the libpath.  Setting hardcode_minus_L
10333	  # to unsupported forces relinking
10334	  hardcode_minus_L=yes
10335	  hardcode_libdir_flag_spec='-L$libdir'
10336	  hardcode_libdir_separator=
10337	  fi
10338	  ;;
10339	esac
10340	shared_flag='-shared'
10341	if test yes = "$aix_use_runtimelinking"; then
10342	  shared_flag="$shared_flag "'$wl-G'
10343	fi
10344	# Need to ensure runtime linking is disabled for the traditional
10345	# shared library, or the linker may eventually find shared libraries
10346	# /with/ Import File - we do not want to mix them.
10347	shared_flag_aix='-shared'
10348	shared_flag_svr4='-shared $wl-G'
10349      else
10350	# not using gcc
10351	if test ia64 = "$host_cpu"; then
10352	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10353	# chokes on -Wl,-G. The following line is correct:
10354	  shared_flag='-G'
10355	else
10356	  if test yes = "$aix_use_runtimelinking"; then
10357	    shared_flag='$wl-G'
10358	  else
10359	    shared_flag='$wl-bM:SRE'
10360	  fi
10361	  shared_flag_aix='$wl-bM:SRE'
10362	  shared_flag_svr4='$wl-G'
10363	fi
10364      fi
10365
10366      export_dynamic_flag_spec='$wl-bexpall'
10367      # It seems that -bexpall does not export symbols beginning with
10368      # underscore (_), so it is better to generate a list of symbols to export.
10369      always_export_symbols=yes
10370      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10371	# Warning - without using the other runtime loading flags (-brtl),
10372	# -berok will link without error, but may produce a broken library.
10373	allow_undefined_flag='-berok'
10374        # Determine the default libpath from the value encoded in an
10375        # empty executable.
10376        if test set = "${lt_cv_aix_libpath+set}"; then
10377  aix_libpath=$lt_cv_aix_libpath
10378else
10379  if ${lt_cv_aix_libpath_+:} false; then :
10380  $as_echo_n "(cached) " >&6
10381else
10382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383/* end confdefs.h.  */
10384
10385int
10386main ()
10387{
10388
10389  ;
10390  return 0;
10391}
10392_ACEOF
10393if ac_fn_c_try_link "$LINENO"; then :
10394
10395  lt_aix_libpath_sed='
10396      /Import File Strings/,/^$/ {
10397	  /^0/ {
10398	      s/^0  *\([^ ]*\) *$/\1/
10399	      p
10400	  }
10401      }'
10402  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10403  # Check for a 64-bit object if we didn't find anything.
10404  if test -z "$lt_cv_aix_libpath_"; then
10405    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10406  fi
10407fi
10408rm -f core conftest.err conftest.$ac_objext \
10409    conftest$ac_exeext conftest.$ac_ext
10410  if test -z "$lt_cv_aix_libpath_"; then
10411    lt_cv_aix_libpath_=/usr/lib:/lib
10412  fi
10413
10414fi
10415
10416  aix_libpath=$lt_cv_aix_libpath_
10417fi
10418
10419        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10420        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
10421      else
10422	if test ia64 = "$host_cpu"; then
10423	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10424	  allow_undefined_flag="-z nodefs"
10425	  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"
10426	else
10427	 # Determine the default libpath from the value encoded in an
10428	 # empty executable.
10429	 if test set = "${lt_cv_aix_libpath+set}"; then
10430  aix_libpath=$lt_cv_aix_libpath
10431else
10432  if ${lt_cv_aix_libpath_+:} false; then :
10433  $as_echo_n "(cached) " >&6
10434else
10435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h.  */
10437
10438int
10439main ()
10440{
10441
10442  ;
10443  return 0;
10444}
10445_ACEOF
10446if ac_fn_c_try_link "$LINENO"; then :
10447
10448  lt_aix_libpath_sed='
10449      /Import File Strings/,/^$/ {
10450	  /^0/ {
10451	      s/^0  *\([^ ]*\) *$/\1/
10452	      p
10453	  }
10454      }'
10455  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10456  # Check for a 64-bit object if we didn't find anything.
10457  if test -z "$lt_cv_aix_libpath_"; then
10458    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10459  fi
10460fi
10461rm -f core conftest.err conftest.$ac_objext \
10462    conftest$ac_exeext conftest.$ac_ext
10463  if test -z "$lt_cv_aix_libpath_"; then
10464    lt_cv_aix_libpath_=/usr/lib:/lib
10465  fi
10466
10467fi
10468
10469  aix_libpath=$lt_cv_aix_libpath_
10470fi
10471
10472	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10473	  # Warning - without using the other run time loading flags,
10474	  # -berok will link without error, but may produce a broken library.
10475	  no_undefined_flag=' $wl-bernotok'
10476	  allow_undefined_flag=' $wl-berok'
10477	  if test yes = "$with_gnu_ld"; then
10478	    # We only use this code for GNU lds that support --whole-archive.
10479	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10480	  else
10481	    # Exported symbols can be pulled into shared objects from archives
10482	    whole_archive_flag_spec='$convenience'
10483	  fi
10484	  archive_cmds_need_lc=yes
10485	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10486	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10487	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10488	  if test svr4 != "$with_aix_soname"; then
10489	    # This is similar to how AIX traditionally builds its shared libraries.
10490	    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'
10491	  fi
10492	  if test aix != "$with_aix_soname"; then
10493	    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'
10494	  else
10495	    # used by -dlpreopen to get the symbols
10496	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10497	  fi
10498	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10499	fi
10500      fi
10501      ;;
10502
10503    amigaos*)
10504      case $host_cpu in
10505      powerpc)
10506            # see comment about AmigaOS4 .so support
10507            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10508            archive_expsym_cmds=''
10509        ;;
10510      m68k)
10511            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)'
10512            hardcode_libdir_flag_spec='-L$libdir'
10513            hardcode_minus_L=yes
10514        ;;
10515      esac
10516      ;;
10517
10518    bsdi[45]*)
10519      export_dynamic_flag_spec=-rdynamic
10520      ;;
10521
10522    cygwin* | mingw* | pw32* | cegcc*)
10523      # When not using gcc, we currently assume that we are using
10524      # Microsoft Visual C++.
10525      # hardcode_libdir_flag_spec is actually meaningless, as there is
10526      # no search path for DLLs.
10527      case $cc_basename in
10528      cl*)
10529	# Native MSVC
10530	hardcode_libdir_flag_spec=' '
10531	allow_undefined_flag=unsupported
10532	always_export_symbols=yes
10533	file_list_spec='@'
10534	# Tell ltmain to make .lib files, not .a files.
10535	libext=lib
10536	# Tell ltmain to make .dll files, not .so files.
10537	shrext_cmds=.dll
10538	# FIXME: Setting linknames here is a bad hack.
10539	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10540	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10541            cp "$export_symbols" "$output_objdir/$soname.def";
10542            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10543          else
10544            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10545          fi~
10546          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10547          linknames='
10548	# The linker will not automatically build a static lib if we build a DLL.
10549	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10550	enable_shared_with_static_runtimes=yes
10551	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10552	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10553	# Don't use ranlib
10554	old_postinstall_cmds='chmod 644 $oldlib'
10555	postlink_cmds='lt_outputfile="@OUTPUT@"~
10556          lt_tool_outputfile="@TOOL_OUTPUT@"~
10557          case $lt_outputfile in
10558            *.exe|*.EXE) ;;
10559            *)
10560              lt_outputfile=$lt_outputfile.exe
10561              lt_tool_outputfile=$lt_tool_outputfile.exe
10562              ;;
10563          esac~
10564          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10565            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10566            $RM "$lt_outputfile.manifest";
10567          fi'
10568	;;
10569      *)
10570	# Assume MSVC wrapper
10571	hardcode_libdir_flag_spec=' '
10572	allow_undefined_flag=unsupported
10573	# Tell ltmain to make .lib files, not .a files.
10574	libext=lib
10575	# Tell ltmain to make .dll files, not .so files.
10576	shrext_cmds=.dll
10577	# FIXME: Setting linknames here is a bad hack.
10578	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10579	# The linker will automatically build a .lib file if we build a DLL.
10580	old_archive_from_new_cmds='true'
10581	# FIXME: Should let the user specify the lib program.
10582	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10583	enable_shared_with_static_runtimes=yes
10584	;;
10585      esac
10586      ;;
10587
10588    darwin* | rhapsody*)
10589
10590
10591  archive_cmds_need_lc=no
10592  hardcode_direct=no
10593  hardcode_automatic=yes
10594  hardcode_shlibpath_var=unsupported
10595  if test yes = "$lt_cv_ld_force_load"; then
10596    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\"`'
10597
10598  else
10599    whole_archive_flag_spec=''
10600  fi
10601  link_all_deplibs=yes
10602  allow_undefined_flag=$_lt_dar_allow_undefined
10603  case $cc_basename in
10604     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10605     *) _lt_dar_can_shared=$GCC ;;
10606  esac
10607  if test yes = "$_lt_dar_can_shared"; then
10608    output_verbose_link_cmd=func_echo_all
10609    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10610    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10611    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"
10612    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"
10613
10614  else
10615  ld_shlibs=no
10616  fi
10617
10618      ;;
10619
10620    dgux*)
10621      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622      hardcode_libdir_flag_spec='-L$libdir'
10623      hardcode_shlibpath_var=no
10624      ;;
10625
10626    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10627    # support.  Future versions do this automatically, but an explicit c++rt0.o
10628    # does not break anything, and helps significantly (at the cost of a little
10629    # extra space).
10630    freebsd2.2*)
10631      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10632      hardcode_libdir_flag_spec='-R$libdir'
10633      hardcode_direct=yes
10634      hardcode_shlibpath_var=no
10635      ;;
10636
10637    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10638    freebsd2.*)
10639      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10640      hardcode_direct=yes
10641      hardcode_minus_L=yes
10642      hardcode_shlibpath_var=no
10643      ;;
10644
10645    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10646    freebsd* | dragonfly*)
10647      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10648      hardcode_libdir_flag_spec='-R$libdir'
10649      hardcode_direct=yes
10650      hardcode_shlibpath_var=no
10651      ;;
10652
10653    hpux9*)
10654      if test yes = "$GCC"; then
10655	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'
10656      else
10657	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'
10658      fi
10659      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10660      hardcode_libdir_separator=:
10661      hardcode_direct=yes
10662
10663      # hardcode_minus_L: Not really in the search PATH,
10664      # but as the default location of the library.
10665      hardcode_minus_L=yes
10666      export_dynamic_flag_spec='$wl-E'
10667      ;;
10668
10669    hpux10*)
10670      if test yes,no = "$GCC,$with_gnu_ld"; then
10671	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10672      else
10673	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10674      fi
10675      if test no = "$with_gnu_ld"; then
10676	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10677	hardcode_libdir_separator=:
10678	hardcode_direct=yes
10679	hardcode_direct_absolute=yes
10680	export_dynamic_flag_spec='$wl-E'
10681	# hardcode_minus_L: Not really in the search PATH,
10682	# but as the default location of the library.
10683	hardcode_minus_L=yes
10684      fi
10685      ;;
10686
10687    hpux11*)
10688      if test yes,no = "$GCC,$with_gnu_ld"; then
10689	case $host_cpu in
10690	hppa*64*)
10691	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10692	  ;;
10693	ia64*)
10694	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10695	  ;;
10696	*)
10697	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10698	  ;;
10699	esac
10700      else
10701	case $host_cpu in
10702	hppa*64*)
10703	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10704	  ;;
10705	ia64*)
10706	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10707	  ;;
10708	*)
10709
10710	  # Older versions of the 11.00 compiler do not understand -b yet
10711	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10712	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10713$as_echo_n "checking if $CC understands -b... " >&6; }
10714if ${lt_cv_prog_compiler__b+:} false; then :
10715  $as_echo_n "(cached) " >&6
10716else
10717  lt_cv_prog_compiler__b=no
10718   save_LDFLAGS=$LDFLAGS
10719   LDFLAGS="$LDFLAGS -b"
10720   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10721   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10722     # The linker can only warn and ignore the option if not recognized
10723     # So say no if there are warnings
10724     if test -s conftest.err; then
10725       # Append any errors to the config.log.
10726       cat conftest.err 1>&5
10727       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10728       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10729       if diff conftest.exp conftest.er2 >/dev/null; then
10730         lt_cv_prog_compiler__b=yes
10731       fi
10732     else
10733       lt_cv_prog_compiler__b=yes
10734     fi
10735   fi
10736   $RM -r conftest*
10737   LDFLAGS=$save_LDFLAGS
10738
10739fi
10740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10741$as_echo "$lt_cv_prog_compiler__b" >&6; }
10742
10743if test yes = "$lt_cv_prog_compiler__b"; then
10744    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10745else
10746    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10747fi
10748
10749	  ;;
10750	esac
10751      fi
10752      if test no = "$with_gnu_ld"; then
10753	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10754	hardcode_libdir_separator=:
10755
10756	case $host_cpu in
10757	hppa*64*|ia64*)
10758	  hardcode_direct=no
10759	  hardcode_shlibpath_var=no
10760	  ;;
10761	*)
10762	  hardcode_direct=yes
10763	  hardcode_direct_absolute=yes
10764	  export_dynamic_flag_spec='$wl-E'
10765
10766	  # hardcode_minus_L: Not really in the search PATH,
10767	  # but as the default location of the library.
10768	  hardcode_minus_L=yes
10769	  ;;
10770	esac
10771      fi
10772      ;;
10773
10774    irix5* | irix6* | nonstopux*)
10775      if test yes = "$GCC"; then
10776	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'
10777	# Try to use the -exported_symbol ld option, if it does not
10778	# work, assume that -exports_file does not work either and
10779	# implicitly export all symbols.
10780	# This should be the same for all languages, so no per-tag cache variable.
10781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10782$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10783if ${lt_cv_irix_exported_symbol+:} false; then :
10784  $as_echo_n "(cached) " >&6
10785else
10786  save_LDFLAGS=$LDFLAGS
10787	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10788	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789/* end confdefs.h.  */
10790int foo (void) { return 0; }
10791_ACEOF
10792if ac_fn_c_try_link "$LINENO"; then :
10793  lt_cv_irix_exported_symbol=yes
10794else
10795  lt_cv_irix_exported_symbol=no
10796fi
10797rm -f core conftest.err conftest.$ac_objext \
10798    conftest$ac_exeext conftest.$ac_ext
10799           LDFLAGS=$save_LDFLAGS
10800fi
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10802$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10803	if test yes = "$lt_cv_irix_exported_symbol"; then
10804          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'
10805	fi
10806      else
10807	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'
10808	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'
10809      fi
10810      archive_cmds_need_lc='no'
10811      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10812      hardcode_libdir_separator=:
10813      inherit_rpath=yes
10814      link_all_deplibs=yes
10815      ;;
10816
10817    linux*)
10818      case $cc_basename in
10819      tcc*)
10820	# Fabrice Bellard et al's Tiny C Compiler
10821	ld_shlibs=yes
10822	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10823	;;
10824      esac
10825      ;;
10826
10827    netbsd*)
10828      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10829	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10830      else
10831	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10832      fi
10833      hardcode_libdir_flag_spec='-R$libdir'
10834      hardcode_direct=yes
10835      hardcode_shlibpath_var=no
10836      ;;
10837
10838    newsos6)
10839      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840      hardcode_direct=yes
10841      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10842      hardcode_libdir_separator=:
10843      hardcode_shlibpath_var=no
10844      ;;
10845
10846    *nto* | *qnx*)
10847      ;;
10848
10849    openbsd* | bitrig*)
10850      if test -f /usr/libexec/ld.so; then
10851	hardcode_direct=yes
10852	hardcode_shlibpath_var=no
10853	hardcode_direct_absolute=yes
10854	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10855	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10856	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10857	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10858	  export_dynamic_flag_spec='$wl-E'
10859	else
10860	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10861	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10862	fi
10863      else
10864	ld_shlibs=no
10865      fi
10866      ;;
10867
10868    os2*)
10869      hardcode_libdir_flag_spec='-L$libdir'
10870      hardcode_minus_L=yes
10871      allow_undefined_flag=unsupported
10872      shrext_cmds=.dll
10873      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10874	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10875	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10876	$ECHO EXPORTS >> $output_objdir/$libname.def~
10877	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10878	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10879	emximp -o $lib $output_objdir/$libname.def'
10880      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10881	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10882	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10883	$ECHO EXPORTS >> $output_objdir/$libname.def~
10884	prefix_cmds="$SED"~
10885	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10886	  prefix_cmds="$prefix_cmds -e 1d";
10887	fi~
10888	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10889	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10890	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10891	emximp -o $lib $output_objdir/$libname.def'
10892      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10893      enable_shared_with_static_runtimes=yes
10894      ;;
10895
10896    osf3*)
10897      if test yes = "$GCC"; then
10898	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10899	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'
10900      else
10901	allow_undefined_flag=' -expect_unresolved \*'
10902	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'
10903      fi
10904      archive_cmds_need_lc='no'
10905      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10906      hardcode_libdir_separator=:
10907      ;;
10908
10909    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10910      if test yes = "$GCC"; then
10911	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10912	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'
10913	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10914      else
10915	allow_undefined_flag=' -expect_unresolved \*'
10916	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'
10917	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~
10918          $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'
10919
10920	# Both c and cxx compiler support -rpath directly
10921	hardcode_libdir_flag_spec='-rpath $libdir'
10922      fi
10923      archive_cmds_need_lc='no'
10924      hardcode_libdir_separator=:
10925      ;;
10926
10927    solaris*)
10928      no_undefined_flag=' -z defs'
10929      if test yes = "$GCC"; then
10930	wlarc='$wl'
10931	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10932	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10933          $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'
10934      else
10935	case `$CC -V 2>&1` in
10936	*"Compilers 5.0"*)
10937	  wlarc=''
10938	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10939	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10940            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10941	  ;;
10942	*)
10943	  wlarc='$wl'
10944	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10945	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10946            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10947	  ;;
10948	esac
10949      fi
10950      hardcode_libdir_flag_spec='-R$libdir'
10951      hardcode_shlibpath_var=no
10952      case $host_os in
10953      solaris2.[0-5] | solaris2.[0-5].*) ;;
10954      *)
10955	# The compiler driver will combine and reorder linker options,
10956	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10957	# but is careful enough not to reorder.
10958	# Supported since Solaris 2.6 (maybe 2.5.1?)
10959	if test yes = "$GCC"; then
10960	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10961	else
10962	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10963	fi
10964	;;
10965      esac
10966      link_all_deplibs=yes
10967      ;;
10968
10969    sunos4*)
10970      if test sequent = "$host_vendor"; then
10971	# Use $CC to link under sequent, because it throws in some extra .o
10972	# files that make .init and .fini sections work.
10973	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10974      else
10975	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10976      fi
10977      hardcode_libdir_flag_spec='-L$libdir'
10978      hardcode_direct=yes
10979      hardcode_minus_L=yes
10980      hardcode_shlibpath_var=no
10981      ;;
10982
10983    sysv4)
10984      case $host_vendor in
10985	sni)
10986	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10987	  hardcode_direct=yes # is this really true???
10988	;;
10989	siemens)
10990	  ## LD is ld it makes a PLAMLIB
10991	  ## CC just makes a GrossModule.
10992	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10993	  reload_cmds='$CC -r -o $output$reload_objs'
10994	  hardcode_direct=no
10995        ;;
10996	motorola)
10997	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10998	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10999	;;
11000      esac
11001      runpath_var='LD_RUN_PATH'
11002      hardcode_shlibpath_var=no
11003      ;;
11004
11005    sysv4.3*)
11006      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007      hardcode_shlibpath_var=no
11008      export_dynamic_flag_spec='-Bexport'
11009      ;;
11010
11011    sysv4*MP*)
11012      if test -d /usr/nec; then
11013	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11014	hardcode_shlibpath_var=no
11015	runpath_var=LD_RUN_PATH
11016	hardcode_runpath_var=yes
11017	ld_shlibs=yes
11018      fi
11019      ;;
11020
11021    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11022      no_undefined_flag='$wl-z,text'
11023      archive_cmds_need_lc=no
11024      hardcode_shlibpath_var=no
11025      runpath_var='LD_RUN_PATH'
11026
11027      if test yes = "$GCC"; then
11028	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030      else
11031	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033      fi
11034      ;;
11035
11036    sysv5* | sco3.2v5* | sco5v6*)
11037      # Note: We CANNOT use -z defs as we might desire, because we do not
11038      # link with -lc, and that would cause any symbols used from libc to
11039      # always be unresolved, which means just about no library would
11040      # ever link correctly.  If we're not using GNU ld we use -z text
11041      # though, which does catch some bad symbols but isn't as heavy-handed
11042      # as -z defs.
11043      no_undefined_flag='$wl-z,text'
11044      allow_undefined_flag='$wl-z,nodefs'
11045      archive_cmds_need_lc=no
11046      hardcode_shlibpath_var=no
11047      hardcode_libdir_flag_spec='$wl-R,$libdir'
11048      hardcode_libdir_separator=':'
11049      link_all_deplibs=yes
11050      export_dynamic_flag_spec='$wl-Bexport'
11051      runpath_var='LD_RUN_PATH'
11052
11053      if test yes = "$GCC"; then
11054	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11056      else
11057	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059      fi
11060      ;;
11061
11062    uts4*)
11063      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11064      hardcode_libdir_flag_spec='-L$libdir'
11065      hardcode_shlibpath_var=no
11066      ;;
11067
11068    *)
11069      ld_shlibs=no
11070      ;;
11071    esac
11072
11073    if test sni = "$host_vendor"; then
11074      case $host in
11075      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11076	export_dynamic_flag_spec='$wl-Blargedynsym'
11077	;;
11078      esac
11079    fi
11080  fi
11081
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11083$as_echo "$ld_shlibs" >&6; }
11084test no = "$ld_shlibs" && can_build_shared=no
11085
11086with_gnu_ld=$with_gnu_ld
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102#
11103# Do we need to explicitly link libc?
11104#
11105case "x$archive_cmds_need_lc" in
11106x|xyes)
11107  # Assume -lc should be added
11108  archive_cmds_need_lc=yes
11109
11110  if test yes,yes = "$GCC,$enable_shared"; then
11111    case $archive_cmds in
11112    *'~'*)
11113      # FIXME: we may have to deal with multi-command sequences.
11114      ;;
11115    '$CC '*)
11116      # Test whether the compiler implicitly links with -lc since on some
11117      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11118      # to ld, don't add -lc before -lgcc.
11119      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11120$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11121if ${lt_cv_archive_cmds_need_lc+:} false; then :
11122  $as_echo_n "(cached) " >&6
11123else
11124  $RM conftest*
11125	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11126
11127	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11128  (eval $ac_compile) 2>&5
11129  ac_status=$?
11130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11131  test $ac_status = 0; } 2>conftest.err; then
11132	  soname=conftest
11133	  lib=conftest
11134	  libobjs=conftest.$ac_objext
11135	  deplibs=
11136	  wl=$lt_prog_compiler_wl
11137	  pic_flag=$lt_prog_compiler_pic
11138	  compiler_flags=-v
11139	  linker_flags=-v
11140	  verstring=
11141	  output_objdir=.
11142	  libname=conftest
11143	  lt_save_allow_undefined_flag=$allow_undefined_flag
11144	  allow_undefined_flag=
11145	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11146  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11147  ac_status=$?
11148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11149  test $ac_status = 0; }
11150	  then
11151	    lt_cv_archive_cmds_need_lc=no
11152	  else
11153	    lt_cv_archive_cmds_need_lc=yes
11154	  fi
11155	  allow_undefined_flag=$lt_save_allow_undefined_flag
11156	else
11157	  cat conftest.err 1>&5
11158	fi
11159	$RM conftest*
11160
11161fi
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11163$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11164      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11165      ;;
11166    esac
11167  fi
11168  ;;
11169esac
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11323$as_echo_n "checking dynamic linker characteristics... " >&6; }
11324
11325if test yes = "$GCC"; then
11326  case $host_os in
11327    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11328    *) lt_awk_arg='/^libraries:/' ;;
11329  esac
11330  case $host_os in
11331    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11332    *) lt_sed_strip_eq='s|=/|/|g' ;;
11333  esac
11334  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11335  case $lt_search_path_spec in
11336  *\;*)
11337    # if the path contains ";" then we assume it to be the separator
11338    # otherwise default to the standard path separator (i.e. ":") - it is
11339    # assumed that no part of a normal pathname contains ";" but that should
11340    # okay in the real world where ";" in dirpaths is itself problematic.
11341    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11342    ;;
11343  *)
11344    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11345    ;;
11346  esac
11347  # Ok, now we have the path, separated by spaces, we can step through it
11348  # and add multilib dir if necessary...
11349  lt_tmp_lt_search_path_spec=
11350  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11351  # ...but if some path component already ends with the multilib dir we assume
11352  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11353  case "$lt_multi_os_dir; $lt_search_path_spec " in
11354  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11355    lt_multi_os_dir=
11356    ;;
11357  esac
11358  for lt_sys_path in $lt_search_path_spec; do
11359    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11360      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11361    elif test -n "$lt_multi_os_dir"; then
11362      test -d "$lt_sys_path" && \
11363	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11364    fi
11365  done
11366  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11367BEGIN {RS = " "; FS = "/|\n";} {
11368  lt_foo = "";
11369  lt_count = 0;
11370  for (lt_i = NF; lt_i > 0; lt_i--) {
11371    if ($lt_i != "" && $lt_i != ".") {
11372      if ($lt_i == "..") {
11373        lt_count++;
11374      } else {
11375        if (lt_count == 0) {
11376          lt_foo = "/" $lt_i lt_foo;
11377        } else {
11378          lt_count--;
11379        }
11380      }
11381    }
11382  }
11383  if (lt_foo != "") { lt_freq[lt_foo]++; }
11384  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11385}'`
11386  # AWK program above erroneously prepends '/' to C:/dos/paths
11387  # for these hosts.
11388  case $host_os in
11389    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11390      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11391  esac
11392  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11393else
11394  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11395fi
11396library_names_spec=
11397libname_spec='lib$name'
11398soname_spec=
11399shrext_cmds=.so
11400postinstall_cmds=
11401postuninstall_cmds=
11402finish_cmds=
11403finish_eval=
11404shlibpath_var=
11405shlibpath_overrides_runpath=unknown
11406version_type=none
11407dynamic_linker="$host_os ld.so"
11408sys_lib_dlsearch_path_spec="/lib /usr/lib"
11409need_lib_prefix=unknown
11410hardcode_into_libs=no
11411
11412# when you set need_version to no, make sure it does not cause -set_version
11413# flags to be left without arguments
11414need_version=unknown
11415
11416
11417
11418case $host_os in
11419aix3*)
11420  version_type=linux # correct to gnu/linux during the next big refactor
11421  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11422  shlibpath_var=LIBPATH
11423
11424  # AIX 3 has no versioning support, so we append a major version to the name.
11425  soname_spec='$libname$release$shared_ext$major'
11426  ;;
11427
11428aix[4-9]*)
11429  version_type=linux # correct to gnu/linux during the next big refactor
11430  need_lib_prefix=no
11431  need_version=no
11432  hardcode_into_libs=yes
11433  if test ia64 = "$host_cpu"; then
11434    # AIX 5 supports IA64
11435    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11436    shlibpath_var=LD_LIBRARY_PATH
11437  else
11438    # With GCC up to 2.95.x, collect2 would create an import file
11439    # for dependence libraries.  The import file would start with
11440    # the line '#! .'.  This would cause the generated library to
11441    # depend on '.', always an invalid library.  This was fixed in
11442    # development snapshots of GCC prior to 3.0.
11443    case $host_os in
11444      aix4 | aix4.[01] | aix4.[01].*)
11445      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11446	   echo ' yes '
11447	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11448	:
11449      else
11450	can_build_shared=no
11451      fi
11452      ;;
11453    esac
11454    # Using Import Files as archive members, it is possible to support
11455    # filename-based versioning of shared library archives on AIX. While
11456    # this would work for both with and without runtime linking, it will
11457    # prevent static linking of such archives. So we do filename-based
11458    # shared library versioning with .so extension only, which is used
11459    # when both runtime linking and shared linking is enabled.
11460    # Unfortunately, runtime linking may impact performance, so we do
11461    # not want this to be the default eventually. Also, we use the
11462    # versioned .so libs for executables only if there is the -brtl
11463    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11464    # To allow for filename-based versioning support, we need to create
11465    # libNAME.so.V as an archive file, containing:
11466    # *) an Import File, referring to the versioned filename of the
11467    #    archive as well as the shared archive member, telling the
11468    #    bitwidth (32 or 64) of that shared object, and providing the
11469    #    list of exported symbols of that shared object, eventually
11470    #    decorated with the 'weak' keyword
11471    # *) the shared object with the F_LOADONLY flag set, to really avoid
11472    #    it being seen by the linker.
11473    # At run time we better use the real file rather than another symlink,
11474    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11475
11476    case $with_aix_soname,$aix_use_runtimelinking in
11477    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11478    # soname into executable. Probably we can add versioning support to
11479    # collect2, so additional links can be useful in future.
11480    aix,yes) # traditional libtool
11481      dynamic_linker='AIX unversionable lib.so'
11482      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11483      # instead of lib<name>.a to let people know that these are not
11484      # typical AIX shared libraries.
11485      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11486      ;;
11487    aix,no) # traditional AIX only
11488      dynamic_linker='AIX lib.a(lib.so.V)'
11489      # We preserve .a as extension for shared libraries through AIX4.2
11490      # and later when we are not doing run time linking.
11491      library_names_spec='$libname$release.a $libname.a'
11492      soname_spec='$libname$release$shared_ext$major'
11493      ;;
11494    svr4,*) # full svr4 only
11495      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11496      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11497      # We do not specify a path in Import Files, so LIBPATH fires.
11498      shlibpath_overrides_runpath=yes
11499      ;;
11500    *,yes) # both, prefer svr4
11501      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11502      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11503      # unpreferred sharedlib libNAME.a needs extra handling
11504      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"'
11505      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"'
11506      # We do not specify a path in Import Files, so LIBPATH fires.
11507      shlibpath_overrides_runpath=yes
11508      ;;
11509    *,no) # both, prefer aix
11510      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11511      library_names_spec='$libname$release.a $libname.a'
11512      soname_spec='$libname$release$shared_ext$major'
11513      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11514      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)'
11515      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"'
11516      ;;
11517    esac
11518    shlibpath_var=LIBPATH
11519  fi
11520  ;;
11521
11522amigaos*)
11523  case $host_cpu in
11524  powerpc)
11525    # Since July 2007 AmigaOS4 officially supports .so libraries.
11526    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11527    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11528    ;;
11529  m68k)
11530    library_names_spec='$libname.ixlibrary $libname.a'
11531    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11532    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'
11533    ;;
11534  esac
11535  ;;
11536
11537beos*)
11538  library_names_spec='$libname$shared_ext'
11539  dynamic_linker="$host_os ld.so"
11540  shlibpath_var=LIBRARY_PATH
11541  ;;
11542
11543bsdi[45]*)
11544  version_type=linux # correct to gnu/linux during the next big refactor
11545  need_version=no
11546  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11547  soname_spec='$libname$release$shared_ext$major'
11548  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11549  shlibpath_var=LD_LIBRARY_PATH
11550  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11551  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11552  # the default ld.so.conf also contains /usr/contrib/lib and
11553  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11554  # libtool to hard-code these into programs
11555  ;;
11556
11557cygwin* | mingw* | pw32* | cegcc*)
11558  version_type=windows
11559  shrext_cmds=.dll
11560  need_version=no
11561  need_lib_prefix=no
11562
11563  case $GCC,$cc_basename in
11564  yes,*)
11565    # gcc
11566    library_names_spec='$libname.dll.a'
11567    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11568    postinstall_cmds='base_file=`basename \$file`~
11569      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11570      dldir=$destdir/`dirname \$dlpath`~
11571      test -d \$dldir || mkdir -p \$dldir~
11572      $install_prog $dir/$dlname \$dldir/$dlname~
11573      chmod a+x \$dldir/$dlname~
11574      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11575        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11576      fi'
11577    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11578      dlpath=$dir/\$dldll~
11579       $RM \$dlpath'
11580    shlibpath_overrides_runpath=yes
11581
11582    case $host_os in
11583    cygwin*)
11584      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11585      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11586
11587      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11588      ;;
11589    mingw* | cegcc*)
11590      # MinGW DLLs use traditional 'lib' prefix
11591      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11592      ;;
11593    pw32*)
11594      # pw32 DLLs use 'pw' prefix rather than 'lib'
11595      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11596      ;;
11597    esac
11598    dynamic_linker='Win32 ld.exe'
11599    ;;
11600
11601  *,cl*)
11602    # Native MSVC
11603    libname_spec='$name'
11604    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11605    library_names_spec='$libname.dll.lib'
11606
11607    case $build_os in
11608    mingw*)
11609      sys_lib_search_path_spec=
11610      lt_save_ifs=$IFS
11611      IFS=';'
11612      for lt_path in $LIB
11613      do
11614        IFS=$lt_save_ifs
11615        # Let DOS variable expansion print the short 8.3 style file name.
11616        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11617        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11618      done
11619      IFS=$lt_save_ifs
11620      # Convert to MSYS style.
11621      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11622      ;;
11623    cygwin*)
11624      # Convert to unix form, then to dos form, then back to unix form
11625      # but this time dos style (no spaces!) so that the unix form looks
11626      # like /cygdrive/c/PROGRA~1:/cygdr...
11627      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11628      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11629      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11630      ;;
11631    *)
11632      sys_lib_search_path_spec=$LIB
11633      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11634        # It is most probably a Windows format PATH.
11635        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11636      else
11637        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11638      fi
11639      # FIXME: find the short name or the path components, as spaces are
11640      # common. (e.g. "Program Files" -> "PROGRA~1")
11641      ;;
11642    esac
11643
11644    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11645    postinstall_cmds='base_file=`basename \$file`~
11646      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11647      dldir=$destdir/`dirname \$dlpath`~
11648      test -d \$dldir || mkdir -p \$dldir~
11649      $install_prog $dir/$dlname \$dldir/$dlname'
11650    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11651      dlpath=$dir/\$dldll~
11652       $RM \$dlpath'
11653    shlibpath_overrides_runpath=yes
11654    dynamic_linker='Win32 link.exe'
11655    ;;
11656
11657  *)
11658    # Assume MSVC wrapper
11659    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11660    dynamic_linker='Win32 ld.exe'
11661    ;;
11662  esac
11663  # FIXME: first we should search . and the directory the executable is in
11664  shlibpath_var=PATH
11665  ;;
11666
11667darwin* | rhapsody*)
11668  dynamic_linker="$host_os dyld"
11669  version_type=darwin
11670  need_lib_prefix=no
11671  need_version=no
11672  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11673  soname_spec='$libname$release$major$shared_ext'
11674  shlibpath_overrides_runpath=yes
11675  shlibpath_var=DYLD_LIBRARY_PATH
11676  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11677
11678  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11679  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11680  ;;
11681
11682dgux*)
11683  version_type=linux # correct to gnu/linux during the next big refactor
11684  need_lib_prefix=no
11685  need_version=no
11686  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687  soname_spec='$libname$release$shared_ext$major'
11688  shlibpath_var=LD_LIBRARY_PATH
11689  ;;
11690
11691freebsd* | dragonfly*)
11692  # DragonFly does not have aout.  When/if they implement a new
11693  # versioning mechanism, adjust this.
11694  if test -x /usr/bin/objformat; then
11695    objformat=`/usr/bin/objformat`
11696  else
11697    case $host_os in
11698    freebsd[23].*) objformat=aout ;;
11699    *) objformat=elf ;;
11700    esac
11701  fi
11702  version_type=freebsd-$objformat
11703  case $version_type in
11704    freebsd-elf*)
11705      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706      soname_spec='$libname$release$shared_ext$major'
11707      need_version=no
11708      need_lib_prefix=no
11709      ;;
11710    freebsd-*)
11711      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11712      need_version=yes
11713      ;;
11714  esac
11715  shlibpath_var=LD_LIBRARY_PATH
11716  case $host_os in
11717  freebsd2.*)
11718    shlibpath_overrides_runpath=yes
11719    ;;
11720  freebsd3.[01]* | freebsdelf3.[01]*)
11721    shlibpath_overrides_runpath=yes
11722    hardcode_into_libs=yes
11723    ;;
11724  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11725  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11726    shlibpath_overrides_runpath=no
11727    hardcode_into_libs=yes
11728    ;;
11729  *) # from 4.6 on, and DragonFly
11730    shlibpath_overrides_runpath=yes
11731    hardcode_into_libs=yes
11732    ;;
11733  esac
11734  ;;
11735
11736haiku*)
11737  version_type=linux # correct to gnu/linux during the next big refactor
11738  need_lib_prefix=no
11739  need_version=no
11740  dynamic_linker="$host_os runtime_loader"
11741  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11742  soname_spec='$libname$release$shared_ext$major'
11743  shlibpath_var=LIBRARY_PATH
11744  shlibpath_overrides_runpath=no
11745  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11746  hardcode_into_libs=yes
11747  ;;
11748
11749hpux9* | hpux10* | hpux11*)
11750  # Give a soname corresponding to the major version so that dld.sl refuses to
11751  # link against other versions.
11752  version_type=sunos
11753  need_lib_prefix=no
11754  need_version=no
11755  case $host_cpu in
11756  ia64*)
11757    shrext_cmds='.so'
11758    hardcode_into_libs=yes
11759    dynamic_linker="$host_os dld.so"
11760    shlibpath_var=LD_LIBRARY_PATH
11761    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11762    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11763    soname_spec='$libname$release$shared_ext$major'
11764    if test 32 = "$HPUX_IA64_MODE"; then
11765      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11766      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11767    else
11768      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11769      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11770    fi
11771    ;;
11772  hppa*64*)
11773    shrext_cmds='.sl'
11774    hardcode_into_libs=yes
11775    dynamic_linker="$host_os dld.sl"
11776    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11777    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11778    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11779    soname_spec='$libname$release$shared_ext$major'
11780    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11781    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11782    ;;
11783  *)
11784    shrext_cmds='.sl'
11785    dynamic_linker="$host_os dld.sl"
11786    shlibpath_var=SHLIB_PATH
11787    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11788    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11789    soname_spec='$libname$release$shared_ext$major'
11790    ;;
11791  esac
11792  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11793  postinstall_cmds='chmod 555 $lib'
11794  # or fails outright, so override atomically:
11795  install_override_mode=555
11796  ;;
11797
11798interix[3-9]*)
11799  version_type=linux # correct to gnu/linux during the next big refactor
11800  need_lib_prefix=no
11801  need_version=no
11802  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11803  soname_spec='$libname$release$shared_ext$major'
11804  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11805  shlibpath_var=LD_LIBRARY_PATH
11806  shlibpath_overrides_runpath=no
11807  hardcode_into_libs=yes
11808  ;;
11809
11810irix5* | irix6* | nonstopux*)
11811  case $host_os in
11812    nonstopux*) version_type=nonstopux ;;
11813    *)
11814	if test yes = "$lt_cv_prog_gnu_ld"; then
11815		version_type=linux # correct to gnu/linux during the next big refactor
11816	else
11817		version_type=irix
11818	fi ;;
11819  esac
11820  need_lib_prefix=no
11821  need_version=no
11822  soname_spec='$libname$release$shared_ext$major'
11823  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11824  case $host_os in
11825  irix5* | nonstopux*)
11826    libsuff= shlibsuff=
11827    ;;
11828  *)
11829    case $LD in # libtool.m4 will add one of these switches to LD
11830    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11831      libsuff= shlibsuff= libmagic=32-bit;;
11832    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11833      libsuff=32 shlibsuff=N32 libmagic=N32;;
11834    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11835      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11836    *) libsuff= shlibsuff= libmagic=never-match;;
11837    esac
11838    ;;
11839  esac
11840  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11841  shlibpath_overrides_runpath=no
11842  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11843  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11844  hardcode_into_libs=yes
11845  ;;
11846
11847# No shared lib support for Linux oldld, aout, or coff.
11848linux*oldld* | linux*aout* | linux*coff*)
11849  dynamic_linker=no
11850  ;;
11851
11852linux*android*)
11853  version_type=none # Android doesn't support versioned libraries.
11854  need_lib_prefix=no
11855  need_version=no
11856  library_names_spec='$libname$release$shared_ext'
11857  soname_spec='$libname$release$shared_ext'
11858  finish_cmds=
11859  shlibpath_var=LD_LIBRARY_PATH
11860  shlibpath_overrides_runpath=yes
11861
11862  # This implies no fast_install, which is unacceptable.
11863  # Some rework will be needed to allow for fast_install
11864  # before this can be enabled.
11865  hardcode_into_libs=yes
11866
11867  dynamic_linker='Android linker'
11868  # Don't embed -rpath directories since the linker doesn't support them.
11869  hardcode_libdir_flag_spec='-L$libdir'
11870  ;;
11871
11872# This must be glibc/ELF.
11873linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11874  version_type=linux # correct to gnu/linux during the next big refactor
11875  need_lib_prefix=no
11876  need_version=no
11877  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11878  soname_spec='$libname$release$shared_ext$major'
11879  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11880  shlibpath_var=LD_LIBRARY_PATH
11881  shlibpath_overrides_runpath=no
11882
11883  # Some binutils ld are patched to set DT_RUNPATH
11884  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11885  $as_echo_n "(cached) " >&6
11886else
11887  lt_cv_shlibpath_overrides_runpath=no
11888    save_LDFLAGS=$LDFLAGS
11889    save_libdir=$libdir
11890    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11891	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11892    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893/* end confdefs.h.  */
11894
11895int
11896main ()
11897{
11898
11899  ;
11900  return 0;
11901}
11902_ACEOF
11903if ac_fn_c_try_link "$LINENO"; then :
11904  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11905  lt_cv_shlibpath_overrides_runpath=yes
11906fi
11907fi
11908rm -f core conftest.err conftest.$ac_objext \
11909    conftest$ac_exeext conftest.$ac_ext
11910    LDFLAGS=$save_LDFLAGS
11911    libdir=$save_libdir
11912
11913fi
11914
11915  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11916
11917  # This implies no fast_install, which is unacceptable.
11918  # Some rework will be needed to allow for fast_install
11919  # before this can be enabled.
11920  hardcode_into_libs=yes
11921
11922  # Add ABI-specific directories to the system library path.
11923  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11924
11925  # Ideally, we could use ldconfig to report *all* directores which are
11926  # searched for libraries, however this is still not possible.  Aside from not
11927  # being certain /sbin/ldconfig is available, command
11928  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11929  # even though it is searched at run-time.  Try to do the best guess by
11930  # appending ld.so.conf contents (and includes) to the search path.
11931  if test -f /etc/ld.so.conf; then
11932    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' ' '`
11933    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11934  fi
11935
11936  # We used to test for /lib/ld.so.1 and disable shared libraries on
11937  # powerpc, because MkLinux only supported shared libraries with the
11938  # GNU dynamic linker.  Since this was broken with cross compilers,
11939  # most powerpc-linux boxes support dynamic linking these days and
11940  # people can always --disable-shared, the test was removed, and we
11941  # assume the GNU/Linux dynamic linker is in use.
11942  dynamic_linker='GNU/Linux ld.so'
11943  ;;
11944
11945netbsd*)
11946  version_type=sunos
11947  need_lib_prefix=no
11948  need_version=no
11949  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11950    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11951    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11952    dynamic_linker='NetBSD (a.out) ld.so'
11953  else
11954    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11955    soname_spec='$libname$release$shared_ext$major'
11956    dynamic_linker='NetBSD ld.elf_so'
11957  fi
11958  shlibpath_var=LD_LIBRARY_PATH
11959  shlibpath_overrides_runpath=yes
11960  hardcode_into_libs=yes
11961  ;;
11962
11963newsos6)
11964  version_type=linux # correct to gnu/linux during the next big refactor
11965  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11966  shlibpath_var=LD_LIBRARY_PATH
11967  shlibpath_overrides_runpath=yes
11968  ;;
11969
11970*nto* | *qnx*)
11971  version_type=qnx
11972  need_lib_prefix=no
11973  need_version=no
11974  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11975  soname_spec='$libname$release$shared_ext$major'
11976  shlibpath_var=LD_LIBRARY_PATH
11977  shlibpath_overrides_runpath=no
11978  hardcode_into_libs=yes
11979  dynamic_linker='ldqnx.so'
11980  ;;
11981
11982openbsd* | bitrig*)
11983  version_type=sunos
11984  sys_lib_dlsearch_path_spec=/usr/lib
11985  need_lib_prefix=no
11986  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11987    need_version=no
11988  else
11989    need_version=yes
11990  fi
11991  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11992  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11993  shlibpath_var=LD_LIBRARY_PATH
11994  shlibpath_overrides_runpath=yes
11995  ;;
11996
11997os2*)
11998  libname_spec='$name'
11999  version_type=windows
12000  shrext_cmds=.dll
12001  need_version=no
12002  need_lib_prefix=no
12003  # OS/2 can only load a DLL with a base name of 8 characters or less.
12004  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12005    v=$($ECHO $release$versuffix | tr -d .-);
12006    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12007    $ECHO $n$v`$shared_ext'
12008  library_names_spec='${libname}_dll.$libext'
12009  dynamic_linker='OS/2 ld.exe'
12010  shlibpath_var=BEGINLIBPATH
12011  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12012  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12013  postinstall_cmds='base_file=`basename \$file`~
12014    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12015    dldir=$destdir/`dirname \$dlpath`~
12016    test -d \$dldir || mkdir -p \$dldir~
12017    $install_prog $dir/$dlname \$dldir/$dlname~
12018    chmod a+x \$dldir/$dlname~
12019    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12020      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12021    fi'
12022  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12023    dlpath=$dir/\$dldll~
12024    $RM \$dlpath'
12025  ;;
12026
12027osf3* | osf4* | osf5*)
12028  version_type=osf
12029  need_lib_prefix=no
12030  need_version=no
12031  soname_spec='$libname$release$shared_ext$major'
12032  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12033  shlibpath_var=LD_LIBRARY_PATH
12034  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12035  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12036  ;;
12037
12038rdos*)
12039  dynamic_linker=no
12040  ;;
12041
12042solaris*)
12043  version_type=linux # correct to gnu/linux during the next big refactor
12044  need_lib_prefix=no
12045  need_version=no
12046  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12047  soname_spec='$libname$release$shared_ext$major'
12048  shlibpath_var=LD_LIBRARY_PATH
12049  shlibpath_overrides_runpath=yes
12050  hardcode_into_libs=yes
12051  # ldd complains unless libraries are executable
12052  postinstall_cmds='chmod +x $lib'
12053  ;;
12054
12055sunos4*)
12056  version_type=sunos
12057  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12058  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12059  shlibpath_var=LD_LIBRARY_PATH
12060  shlibpath_overrides_runpath=yes
12061  if test yes = "$with_gnu_ld"; then
12062    need_lib_prefix=no
12063  fi
12064  need_version=yes
12065  ;;
12066
12067sysv4 | sysv4.3*)
12068  version_type=linux # correct to gnu/linux during the next big refactor
12069  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12070  soname_spec='$libname$release$shared_ext$major'
12071  shlibpath_var=LD_LIBRARY_PATH
12072  case $host_vendor in
12073    sni)
12074      shlibpath_overrides_runpath=no
12075      need_lib_prefix=no
12076      runpath_var=LD_RUN_PATH
12077      ;;
12078    siemens)
12079      need_lib_prefix=no
12080      ;;
12081    motorola)
12082      need_lib_prefix=no
12083      need_version=no
12084      shlibpath_overrides_runpath=no
12085      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12086      ;;
12087  esac
12088  ;;
12089
12090sysv4*MP*)
12091  if test -d /usr/nec; then
12092    version_type=linux # correct to gnu/linux during the next big refactor
12093    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12094    soname_spec='$libname$shared_ext.$major'
12095    shlibpath_var=LD_LIBRARY_PATH
12096  fi
12097  ;;
12098
12099sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12100  version_type=sco
12101  need_lib_prefix=no
12102  need_version=no
12103  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12104  soname_spec='$libname$release$shared_ext$major'
12105  shlibpath_var=LD_LIBRARY_PATH
12106  shlibpath_overrides_runpath=yes
12107  hardcode_into_libs=yes
12108  if test yes = "$with_gnu_ld"; then
12109    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12110  else
12111    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12112    case $host_os in
12113      sco3.2v5*)
12114        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12115	;;
12116    esac
12117  fi
12118  sys_lib_dlsearch_path_spec='/usr/lib'
12119  ;;
12120
12121tpf*)
12122  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12123  version_type=linux # correct to gnu/linux during the next big refactor
12124  need_lib_prefix=no
12125  need_version=no
12126  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12127  shlibpath_var=LD_LIBRARY_PATH
12128  shlibpath_overrides_runpath=no
12129  hardcode_into_libs=yes
12130  ;;
12131
12132uts4*)
12133  version_type=linux # correct to gnu/linux during the next big refactor
12134  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12135  soname_spec='$libname$release$shared_ext$major'
12136  shlibpath_var=LD_LIBRARY_PATH
12137  ;;
12138
12139*)
12140  dynamic_linker=no
12141  ;;
12142esac
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12144$as_echo "$dynamic_linker" >&6; }
12145test no = "$dynamic_linker" && can_build_shared=no
12146
12147variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12148if test yes = "$GCC"; then
12149  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12150fi
12151
12152if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12153  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12154fi
12155
12156if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12157  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12158fi
12159
12160# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12161configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12162
12163# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12164func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12165
12166# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12167configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12266$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12267hardcode_action=
12268if test -n "$hardcode_libdir_flag_spec" ||
12269   test -n "$runpath_var" ||
12270   test yes = "$hardcode_automatic"; then
12271
12272  # We can hardcode non-existent directories.
12273  if test no != "$hardcode_direct" &&
12274     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12275     # have to relink, otherwise we might link with an installed library
12276     # when we should be linking with a yet-to-be-installed one
12277     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12278     test no != "$hardcode_minus_L"; then
12279    # Linking always hardcodes the temporary library directory.
12280    hardcode_action=relink
12281  else
12282    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12283    hardcode_action=immediate
12284  fi
12285else
12286  # We cannot hardcode anything, or else we can only hardcode existing
12287  # directories.
12288  hardcode_action=unsupported
12289fi
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12291$as_echo "$hardcode_action" >&6; }
12292
12293if test relink = "$hardcode_action" ||
12294   test yes = "$inherit_rpath"; then
12295  # Fast installation is not supported
12296  enable_fast_install=no
12297elif test yes = "$shlibpath_overrides_runpath" ||
12298     test no = "$enable_shared"; then
12299  # Fast installation is not necessary
12300  enable_fast_install=needless
12301fi
12302
12303
12304
12305
12306
12307
12308  if test yes != "$enable_dlopen"; then
12309  enable_dlopen=unknown
12310  enable_dlopen_self=unknown
12311  enable_dlopen_self_static=unknown
12312else
12313  lt_cv_dlopen=no
12314  lt_cv_dlopen_libs=
12315
12316  case $host_os in
12317  beos*)
12318    lt_cv_dlopen=load_add_on
12319    lt_cv_dlopen_libs=
12320    lt_cv_dlopen_self=yes
12321    ;;
12322
12323  mingw* | pw32* | cegcc*)
12324    lt_cv_dlopen=LoadLibrary
12325    lt_cv_dlopen_libs=
12326    ;;
12327
12328  cygwin*)
12329    lt_cv_dlopen=dlopen
12330    lt_cv_dlopen_libs=
12331    ;;
12332
12333  darwin*)
12334    # if libdl is installed we need to link against it
12335    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12336$as_echo_n "checking for dlopen in -ldl... " >&6; }
12337if ${ac_cv_lib_dl_dlopen+:} false; then :
12338  $as_echo_n "(cached) " >&6
12339else
12340  ac_check_lib_save_LIBS=$LIBS
12341LIBS="-ldl  $LIBS"
12342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h.  */
12344
12345/* Override any GCC internal prototype to avoid an error.
12346   Use char because int might match the return type of a GCC
12347   builtin and then its argument prototype would still apply.  */
12348#ifdef __cplusplus
12349extern "C"
12350#endif
12351char dlopen ();
12352int
12353main ()
12354{
12355return dlopen ();
12356  ;
12357  return 0;
12358}
12359_ACEOF
12360if ac_fn_c_try_link "$LINENO"; then :
12361  ac_cv_lib_dl_dlopen=yes
12362else
12363  ac_cv_lib_dl_dlopen=no
12364fi
12365rm -f core conftest.err conftest.$ac_objext \
12366    conftest$ac_exeext conftest.$ac_ext
12367LIBS=$ac_check_lib_save_LIBS
12368fi
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12370$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12371if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12372  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12373else
12374
12375    lt_cv_dlopen=dyld
12376    lt_cv_dlopen_libs=
12377    lt_cv_dlopen_self=yes
12378
12379fi
12380
12381    ;;
12382
12383  tpf*)
12384    # Don't try to run any link tests for TPF.  We know it's impossible
12385    # because TPF is a cross-compiler, and we know how we open DSOs.
12386    lt_cv_dlopen=dlopen
12387    lt_cv_dlopen_libs=
12388    lt_cv_dlopen_self=no
12389    ;;
12390
12391  *)
12392    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12393if test "x$ac_cv_func_shl_load" = xyes; then :
12394  lt_cv_dlopen=shl_load
12395else
12396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12397$as_echo_n "checking for shl_load in -ldld... " >&6; }
12398if ${ac_cv_lib_dld_shl_load+:} false; then :
12399  $as_echo_n "(cached) " >&6
12400else
12401  ac_check_lib_save_LIBS=$LIBS
12402LIBS="-ldld  $LIBS"
12403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404/* end confdefs.h.  */
12405
12406/* Override any GCC internal prototype to avoid an error.
12407   Use char because int might match the return type of a GCC
12408   builtin and then its argument prototype would still apply.  */
12409#ifdef __cplusplus
12410extern "C"
12411#endif
12412char shl_load ();
12413int
12414main ()
12415{
12416return shl_load ();
12417  ;
12418  return 0;
12419}
12420_ACEOF
12421if ac_fn_c_try_link "$LINENO"; then :
12422  ac_cv_lib_dld_shl_load=yes
12423else
12424  ac_cv_lib_dld_shl_load=no
12425fi
12426rm -f core conftest.err conftest.$ac_objext \
12427    conftest$ac_exeext conftest.$ac_ext
12428LIBS=$ac_check_lib_save_LIBS
12429fi
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12431$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12432if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12433  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12434else
12435  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12436if test "x$ac_cv_func_dlopen" = xyes; then :
12437  lt_cv_dlopen=dlopen
12438else
12439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12440$as_echo_n "checking for dlopen in -ldl... " >&6; }
12441if ${ac_cv_lib_dl_dlopen+:} false; then :
12442  $as_echo_n "(cached) " >&6
12443else
12444  ac_check_lib_save_LIBS=$LIBS
12445LIBS="-ldl  $LIBS"
12446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447/* end confdefs.h.  */
12448
12449/* Override any GCC internal prototype to avoid an error.
12450   Use char because int might match the return type of a GCC
12451   builtin and then its argument prototype would still apply.  */
12452#ifdef __cplusplus
12453extern "C"
12454#endif
12455char dlopen ();
12456int
12457main ()
12458{
12459return dlopen ();
12460  ;
12461  return 0;
12462}
12463_ACEOF
12464if ac_fn_c_try_link "$LINENO"; then :
12465  ac_cv_lib_dl_dlopen=yes
12466else
12467  ac_cv_lib_dl_dlopen=no
12468fi
12469rm -f core conftest.err conftest.$ac_objext \
12470    conftest$ac_exeext conftest.$ac_ext
12471LIBS=$ac_check_lib_save_LIBS
12472fi
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12474$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12475if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12476  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12477else
12478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12479$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12480if ${ac_cv_lib_svld_dlopen+:} false; then :
12481  $as_echo_n "(cached) " >&6
12482else
12483  ac_check_lib_save_LIBS=$LIBS
12484LIBS="-lsvld  $LIBS"
12485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h.  */
12487
12488/* Override any GCC internal prototype to avoid an error.
12489   Use char because int might match the return type of a GCC
12490   builtin and then its argument prototype would still apply.  */
12491#ifdef __cplusplus
12492extern "C"
12493#endif
12494char dlopen ();
12495int
12496main ()
12497{
12498return dlopen ();
12499  ;
12500  return 0;
12501}
12502_ACEOF
12503if ac_fn_c_try_link "$LINENO"; then :
12504  ac_cv_lib_svld_dlopen=yes
12505else
12506  ac_cv_lib_svld_dlopen=no
12507fi
12508rm -f core conftest.err conftest.$ac_objext \
12509    conftest$ac_exeext conftest.$ac_ext
12510LIBS=$ac_check_lib_save_LIBS
12511fi
12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12513$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12514if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12515  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12516else
12517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12518$as_echo_n "checking for dld_link in -ldld... " >&6; }
12519if ${ac_cv_lib_dld_dld_link+:} false; then :
12520  $as_echo_n "(cached) " >&6
12521else
12522  ac_check_lib_save_LIBS=$LIBS
12523LIBS="-ldld  $LIBS"
12524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525/* end confdefs.h.  */
12526
12527/* Override any GCC internal prototype to avoid an error.
12528   Use char because int might match the return type of a GCC
12529   builtin and then its argument prototype would still apply.  */
12530#ifdef __cplusplus
12531extern "C"
12532#endif
12533char dld_link ();
12534int
12535main ()
12536{
12537return dld_link ();
12538  ;
12539  return 0;
12540}
12541_ACEOF
12542if ac_fn_c_try_link "$LINENO"; then :
12543  ac_cv_lib_dld_dld_link=yes
12544else
12545  ac_cv_lib_dld_dld_link=no
12546fi
12547rm -f core conftest.err conftest.$ac_objext \
12548    conftest$ac_exeext conftest.$ac_ext
12549LIBS=$ac_check_lib_save_LIBS
12550fi
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12552$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12553if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12554  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12555fi
12556
12557
12558fi
12559
12560
12561fi
12562
12563
12564fi
12565
12566
12567fi
12568
12569
12570fi
12571
12572    ;;
12573  esac
12574
12575  if test no = "$lt_cv_dlopen"; then
12576    enable_dlopen=no
12577  else
12578    enable_dlopen=yes
12579  fi
12580
12581  case $lt_cv_dlopen in
12582  dlopen)
12583    save_CPPFLAGS=$CPPFLAGS
12584    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12585
12586    save_LDFLAGS=$LDFLAGS
12587    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12588
12589    save_LIBS=$LIBS
12590    LIBS="$lt_cv_dlopen_libs $LIBS"
12591
12592    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12593$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12594if ${lt_cv_dlopen_self+:} false; then :
12595  $as_echo_n "(cached) " >&6
12596else
12597  	  if test yes = "$cross_compiling"; then :
12598  lt_cv_dlopen_self=cross
12599else
12600  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12601  lt_status=$lt_dlunknown
12602  cat > conftest.$ac_ext <<_LT_EOF
12603#line $LINENO "configure"
12604#include "confdefs.h"
12605
12606#if HAVE_DLFCN_H
12607#include <dlfcn.h>
12608#endif
12609
12610#include <stdio.h>
12611
12612#ifdef RTLD_GLOBAL
12613#  define LT_DLGLOBAL		RTLD_GLOBAL
12614#else
12615#  ifdef DL_GLOBAL
12616#    define LT_DLGLOBAL		DL_GLOBAL
12617#  else
12618#    define LT_DLGLOBAL		0
12619#  endif
12620#endif
12621
12622/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12623   find out it does not work in some platform. */
12624#ifndef LT_DLLAZY_OR_NOW
12625#  ifdef RTLD_LAZY
12626#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12627#  else
12628#    ifdef DL_LAZY
12629#      define LT_DLLAZY_OR_NOW		DL_LAZY
12630#    else
12631#      ifdef RTLD_NOW
12632#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12633#      else
12634#        ifdef DL_NOW
12635#          define LT_DLLAZY_OR_NOW	DL_NOW
12636#        else
12637#          define LT_DLLAZY_OR_NOW	0
12638#        endif
12639#      endif
12640#    endif
12641#  endif
12642#endif
12643
12644/* When -fvisibility=hidden is used, assume the code has been annotated
12645   correspondingly for the symbols needed.  */
12646#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12647int fnord () __attribute__((visibility("default")));
12648#endif
12649
12650int fnord () { return 42; }
12651int main ()
12652{
12653  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12654  int status = $lt_dlunknown;
12655
12656  if (self)
12657    {
12658      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12659      else
12660        {
12661	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12662          else puts (dlerror ());
12663	}
12664      /* dlclose (self); */
12665    }
12666  else
12667    puts (dlerror ());
12668
12669  return status;
12670}
12671_LT_EOF
12672  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12673  (eval $ac_link) 2>&5
12674  ac_status=$?
12675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12676  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12677    (./conftest; exit; ) >&5 2>/dev/null
12678    lt_status=$?
12679    case x$lt_status in
12680      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12681      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12682      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12683    esac
12684  else :
12685    # compilation failed
12686    lt_cv_dlopen_self=no
12687  fi
12688fi
12689rm -fr conftest*
12690
12691
12692fi
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12694$as_echo "$lt_cv_dlopen_self" >&6; }
12695
12696    if test yes = "$lt_cv_dlopen_self"; then
12697      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12698      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12699$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12700if ${lt_cv_dlopen_self_static+:} false; then :
12701  $as_echo_n "(cached) " >&6
12702else
12703  	  if test yes = "$cross_compiling"; then :
12704  lt_cv_dlopen_self_static=cross
12705else
12706  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12707  lt_status=$lt_dlunknown
12708  cat > conftest.$ac_ext <<_LT_EOF
12709#line $LINENO "configure"
12710#include "confdefs.h"
12711
12712#if HAVE_DLFCN_H
12713#include <dlfcn.h>
12714#endif
12715
12716#include <stdio.h>
12717
12718#ifdef RTLD_GLOBAL
12719#  define LT_DLGLOBAL		RTLD_GLOBAL
12720#else
12721#  ifdef DL_GLOBAL
12722#    define LT_DLGLOBAL		DL_GLOBAL
12723#  else
12724#    define LT_DLGLOBAL		0
12725#  endif
12726#endif
12727
12728/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12729   find out it does not work in some platform. */
12730#ifndef LT_DLLAZY_OR_NOW
12731#  ifdef RTLD_LAZY
12732#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12733#  else
12734#    ifdef DL_LAZY
12735#      define LT_DLLAZY_OR_NOW		DL_LAZY
12736#    else
12737#      ifdef RTLD_NOW
12738#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12739#      else
12740#        ifdef DL_NOW
12741#          define LT_DLLAZY_OR_NOW	DL_NOW
12742#        else
12743#          define LT_DLLAZY_OR_NOW	0
12744#        endif
12745#      endif
12746#    endif
12747#  endif
12748#endif
12749
12750/* When -fvisibility=hidden is used, assume the code has been annotated
12751   correspondingly for the symbols needed.  */
12752#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12753int fnord () __attribute__((visibility("default")));
12754#endif
12755
12756int fnord () { return 42; }
12757int main ()
12758{
12759  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12760  int status = $lt_dlunknown;
12761
12762  if (self)
12763    {
12764      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12765      else
12766        {
12767	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12768          else puts (dlerror ());
12769	}
12770      /* dlclose (self); */
12771    }
12772  else
12773    puts (dlerror ());
12774
12775  return status;
12776}
12777_LT_EOF
12778  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12779  (eval $ac_link) 2>&5
12780  ac_status=$?
12781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12782  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12783    (./conftest; exit; ) >&5 2>/dev/null
12784    lt_status=$?
12785    case x$lt_status in
12786      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12787      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12788      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12789    esac
12790  else :
12791    # compilation failed
12792    lt_cv_dlopen_self_static=no
12793  fi
12794fi
12795rm -fr conftest*
12796
12797
12798fi
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12800$as_echo "$lt_cv_dlopen_self_static" >&6; }
12801    fi
12802
12803    CPPFLAGS=$save_CPPFLAGS
12804    LDFLAGS=$save_LDFLAGS
12805    LIBS=$save_LIBS
12806    ;;
12807  esac
12808
12809  case $lt_cv_dlopen_self in
12810  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12811  *) enable_dlopen_self=unknown ;;
12812  esac
12813
12814  case $lt_cv_dlopen_self_static in
12815  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12816  *) enable_dlopen_self_static=unknown ;;
12817  esac
12818fi
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836striplib=
12837old_striplib=
12838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12839$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12840if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12841  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12842  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12844$as_echo "yes" >&6; }
12845else
12846# FIXME - insert some real tests, host_os isn't really good enough
12847  case $host_os in
12848  darwin*)
12849    if test -n "$STRIP"; then
12850      striplib="$STRIP -x"
12851      old_striplib="$STRIP -S"
12852      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12853$as_echo "yes" >&6; }
12854    else
12855      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856$as_echo "no" >&6; }
12857    fi
12858    ;;
12859  *)
12860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861$as_echo "no" >&6; }
12862    ;;
12863  esac
12864fi
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877  # Report what library types will actually be built
12878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12879$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12881$as_echo "$can_build_shared" >&6; }
12882
12883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12884$as_echo_n "checking whether to build shared libraries... " >&6; }
12885  test no = "$can_build_shared" && enable_shared=no
12886
12887  # On AIX, shared libraries and static libraries use the same namespace, and
12888  # are all built from PIC.
12889  case $host_os in
12890  aix3*)
12891    test yes = "$enable_shared" && enable_static=no
12892    if test -n "$RANLIB"; then
12893      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12894      postinstall_cmds='$RANLIB $lib'
12895    fi
12896    ;;
12897
12898  aix[4-9]*)
12899    if test ia64 != "$host_cpu"; then
12900      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12901      yes,aix,yes) ;;			# shared object as lib.so file only
12902      yes,svr4,*) ;;			# shared object as lib.so archive member only
12903      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12904      esac
12905    fi
12906    ;;
12907  esac
12908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12909$as_echo "$enable_shared" >&6; }
12910
12911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12912$as_echo_n "checking whether to build static libraries... " >&6; }
12913  # Make sure either enable_shared or enable_static is yes.
12914  test yes = "$enable_shared" || enable_static=yes
12915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12916$as_echo "$enable_static" >&6; }
12917
12918
12919
12920
12921fi
12922ac_ext=c
12923ac_cpp='$CPP $CPPFLAGS'
12924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926ac_compiler_gnu=$ac_cv_c_compiler_gnu
12927
12928CC=$lt_save_CC
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944        ac_config_commands="$ac_config_commands libtool"
12945
12946
12947
12948
12949# Only expand once:
12950
12951
12952if test -n "$ac_tool_prefix"; then
12953  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12954set dummy ${ac_tool_prefix}windres; ac_word=$2
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956$as_echo_n "checking for $ac_word... " >&6; }
12957if ${ac_cv_prog_RC+:} false; then :
12958  $as_echo_n "(cached) " >&6
12959else
12960  if test -n "$RC"; then
12961  ac_cv_prog_RC="$RC" # Let the user override the test.
12962else
12963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964for as_dir in $PATH
12965do
12966  IFS=$as_save_IFS
12967  test -z "$as_dir" && as_dir=.
12968    for ac_exec_ext in '' $ac_executable_extensions; do
12969  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12970    ac_cv_prog_RC="${ac_tool_prefix}windres"
12971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12972    break 2
12973  fi
12974done
12975  done
12976IFS=$as_save_IFS
12977
12978fi
12979fi
12980RC=$ac_cv_prog_RC
12981if test -n "$RC"; then
12982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12983$as_echo "$RC" >&6; }
12984else
12985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986$as_echo "no" >&6; }
12987fi
12988
12989
12990fi
12991if test -z "$ac_cv_prog_RC"; then
12992  ac_ct_RC=$RC
12993  # Extract the first word of "windres", so it can be a program name with args.
12994set dummy windres; ac_word=$2
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996$as_echo_n "checking for $ac_word... " >&6; }
12997if ${ac_cv_prog_ac_ct_RC+:} false; then :
12998  $as_echo_n "(cached) " >&6
12999else
13000  if test -n "$ac_ct_RC"; then
13001  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
13002else
13003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004for as_dir in $PATH
13005do
13006  IFS=$as_save_IFS
13007  test -z "$as_dir" && as_dir=.
13008    for ac_exec_ext in '' $ac_executable_extensions; do
13009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13010    ac_cv_prog_ac_ct_RC="windres"
13011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012    break 2
13013  fi
13014done
13015  done
13016IFS=$as_save_IFS
13017
13018fi
13019fi
13020ac_ct_RC=$ac_cv_prog_ac_ct_RC
13021if test -n "$ac_ct_RC"; then
13022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
13023$as_echo "$ac_ct_RC" >&6; }
13024else
13025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026$as_echo "no" >&6; }
13027fi
13028
13029  if test "x$ac_ct_RC" = x; then
13030    RC=""
13031  else
13032    case $cross_compiling:$ac_tool_warned in
13033yes:)
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13036ac_tool_warned=yes ;;
13037esac
13038    RC=$ac_ct_RC
13039  fi
13040else
13041  RC="$ac_cv_prog_RC"
13042fi
13043
13044
13045
13046
13047# Source file extension for RC test sources.
13048ac_ext=rc
13049
13050# Object file extension for compiled RC test sources.
13051objext=o
13052objext_RC=$objext
13053
13054# Code to be used in simple compile tests
13055lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13056
13057# Code to be used in simple link tests
13058lt_simple_link_test_code=$lt_simple_compile_test_code
13059
13060# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13061
13062
13063
13064
13065
13066
13067# If no C compiler was specified, use CC.
13068LTCC=${LTCC-"$CC"}
13069
13070# If no C compiler flags were specified, use CFLAGS.
13071LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13072
13073# Allow CC to be a program name with arguments.
13074compiler=$CC
13075
13076
13077# save warnings/boilerplate of simple test code
13078ac_outfile=conftest.$ac_objext
13079echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13080eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13081_lt_compiler_boilerplate=`cat conftest.err`
13082$RM conftest*
13083
13084ac_outfile=conftest.$ac_objext
13085echo "$lt_simple_link_test_code" >conftest.$ac_ext
13086eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13087_lt_linker_boilerplate=`cat conftest.err`
13088$RM -r conftest*
13089
13090
13091# Allow CC to be a program name with arguments.
13092lt_save_CC=$CC
13093lt_save_CFLAGS=$CFLAGS
13094lt_save_GCC=$GCC
13095GCC=
13096CC=${RC-"windres"}
13097CFLAGS=
13098compiler=$CC
13099compiler_RC=$CC
13100func_cc_basename $compiler
13101cc_basename=$func_cc_basename_result
13102
13103lt_cv_prog_compiler_c_o_RC=yes
13104
13105if test -n "$compiler"; then
13106  :
13107
13108
13109
13110fi
13111
13112GCC=$lt_save_GCC
13113ac_ext=c
13114ac_cpp='$CPP $CPPFLAGS'
13115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13117ac_compiler_gnu=$ac_cv_c_compiler_gnu
13118
13119CC=$lt_save_CC
13120CFLAGS=$lt_save_CFLAGS
13121
13122# Check whether --enable-silent-rules was given.
13123if test "${enable_silent_rules+set}" = set; then :
13124  enableval=$enable_silent_rules;
13125fi
13126
13127case $enable_silent_rules in # (((
13128  yes) AM_DEFAULT_VERBOSITY=0;;
13129   no) AM_DEFAULT_VERBOSITY=1;;
13130    *) AM_DEFAULT_VERBOSITY=0;;
13131esac
13132am_make=${MAKE-make}
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13134$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13135if ${am_cv_make_support_nested_variables+:} false; then :
13136  $as_echo_n "(cached) " >&6
13137else
13138  if $as_echo 'TRUE=$(BAR$(V))
13139BAR0=false
13140BAR1=true
13141V=1
13142am__doit:
13143	@$(TRUE)
13144.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13145  am_cv_make_support_nested_variables=yes
13146else
13147  am_cv_make_support_nested_variables=no
13148fi
13149fi
13150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13151$as_echo "$am_cv_make_support_nested_variables" >&6; }
13152if test $am_cv_make_support_nested_variables = yes; then
13153    AM_V='$(V)'
13154  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13155else
13156  AM_V=$AM_DEFAULT_VERBOSITY
13157  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13158fi
13159AM_BACKSLASH='\'
13160
13161
13162LIB_VERSION=3:0:3
13163
13164RELDATE=2017-04-11
13165
13166
13167ZGTK_LIB_VERSION=0:2:0
13168
13169ZQT_LIB_VERSION=1:2:1
13170
13171
13172
13173cat >>confdefs.h <<_ACEOF
13174#define ZBAR_VERSION_MAJOR `echo "$PACKAGE_VERSION" | sed -e 's/\..*$//'`
13175_ACEOF
13176
13177
13178cat >>confdefs.h <<_ACEOF
13179#define ZBAR_VERSION_MINOR `echo "$PACKAGE_VERSION" | sed -e 's/^[^\.]*\.\([^\.]*\).*/\1/'`
13180_ACEOF
13181
13182
13183cat >>confdefs.h <<_ACEOF
13184#define ZBAR_VERSION_PATCH `echo "$PACKAGE_VERSION" | sed -e 's/^[^\.]*\.[^\.]*\.*//' | sed s,^$,0,`
13185_ACEOF
13186
13187
13188cur=`echo "$LIB_VERSION" | sed -e 's/:.*$//'`
13189age=`echo "$LIB_VERSION" | sed -e 's/^.*://'`
13190
13191cat >>confdefs.h <<_ACEOF
13192#define LIB_VERSION_MAJOR $(( $cur - $age ))
13193_ACEOF
13194
13195
13196cat >>confdefs.h <<_ACEOF
13197#define LIB_VERSION_MINOR $age
13198_ACEOF
13199
13200
13201cat >>confdefs.h <<_ACEOF
13202#define LIB_VERSION_REVISION `echo "$LIB_VERSION" | sed -e 's/^[^:]*:\([^:]*\):.*$/\1/'`
13203_ACEOF
13204
13205
13206AM_CPPFLAGS="-I\$(top_srcdir)/include"
13207AM_CFLAGS="-Wall -Wno-parentheses"
13208AM_CXXFLAGS="$AM_CFLAGS"
13209
13210
13211
13212
13213
13214
13215case $host_os in
13216  *cygwin* | *mingw* | *uwin* | *djgpp* | *ems* )
13217    win32="yes"
13218    with_dbus="no"
13219
13220$as_echo "#define _WIN32_WINNT 0x0500" >>confdefs.h
13221
13222    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13223if test "x$ac_cv_type_size_t" = xyes; then :
13224
13225else
13226
13227cat >>confdefs.h <<_ACEOF
13228#define size_t unsigned int
13229_ACEOF
13230
13231fi
13232
13233# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13234# for constant arguments.  Useless!
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13236$as_echo_n "checking for working alloca.h... " >&6; }
13237if ${ac_cv_working_alloca_h+:} false; then :
13238  $as_echo_n "(cached) " >&6
13239else
13240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241/* end confdefs.h.  */
13242#include <alloca.h>
13243int
13244main ()
13245{
13246char *p = (char *) alloca (2 * sizeof (int));
13247			  if (p) return 0;
13248  ;
13249  return 0;
13250}
13251_ACEOF
13252if ac_fn_c_try_link "$LINENO"; then :
13253  ac_cv_working_alloca_h=yes
13254else
13255  ac_cv_working_alloca_h=no
13256fi
13257rm -f core conftest.err conftest.$ac_objext \
13258    conftest$ac_exeext conftest.$ac_ext
13259fi
13260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13261$as_echo "$ac_cv_working_alloca_h" >&6; }
13262if test $ac_cv_working_alloca_h = yes; then
13263
13264$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13265
13266fi
13267
13268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13269$as_echo_n "checking for alloca... " >&6; }
13270if ${ac_cv_func_alloca_works+:} false; then :
13271  $as_echo_n "(cached) " >&6
13272else
13273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274/* end confdefs.h.  */
13275#ifdef __GNUC__
13276# define alloca __builtin_alloca
13277#else
13278# ifdef _MSC_VER
13279#  include <malloc.h>
13280#  define alloca _alloca
13281# else
13282#  ifdef HAVE_ALLOCA_H
13283#   include <alloca.h>
13284#  else
13285#   ifdef _AIX
13286 #pragma alloca
13287#   else
13288#    ifndef alloca /* predefined by HP cc +Olibcalls */
13289void *alloca (size_t);
13290#    endif
13291#   endif
13292#  endif
13293# endif
13294#endif
13295
13296int
13297main ()
13298{
13299char *p = (char *) alloca (1);
13300				    if (p) return 0;
13301  ;
13302  return 0;
13303}
13304_ACEOF
13305if ac_fn_c_try_link "$LINENO"; then :
13306  ac_cv_func_alloca_works=yes
13307else
13308  ac_cv_func_alloca_works=no
13309fi
13310rm -f core conftest.err conftest.$ac_objext \
13311    conftest$ac_exeext conftest.$ac_ext
13312fi
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13314$as_echo "$ac_cv_func_alloca_works" >&6; }
13315
13316if test $ac_cv_func_alloca_works = yes; then
13317
13318$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13319
13320else
13321  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13322# that cause trouble.  Some versions do not even contain alloca or
13323# contain a buggy version.  If you still want to use their alloca,
13324# use ar to extract alloca.o from them instead of compiling alloca.c.
13325
13326ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13327
13328$as_echo "#define C_ALLOCA 1" >>confdefs.h
13329
13330
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13332$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13333if ${ac_cv_os_cray+:} false; then :
13334  $as_echo_n "(cached) " >&6
13335else
13336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337/* end confdefs.h.  */
13338#if defined CRAY && ! defined CRAY2
13339webecray
13340#else
13341wenotbecray
13342#endif
13343
13344_ACEOF
13345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13346  $EGREP "webecray" >/dev/null 2>&1; then :
13347  ac_cv_os_cray=yes
13348else
13349  ac_cv_os_cray=no
13350fi
13351rm -f conftest*
13352
13353fi
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13355$as_echo "$ac_cv_os_cray" >&6; }
13356if test $ac_cv_os_cray = yes; then
13357  for ac_func in _getb67 GETB67 getb67; do
13358    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13359ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13360if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13361
13362cat >>confdefs.h <<_ACEOF
13363#define CRAY_STACKSEG_END $ac_func
13364_ACEOF
13365
13366    break
13367fi
13368
13369  done
13370fi
13371
13372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13373$as_echo_n "checking stack direction for C alloca... " >&6; }
13374if ${ac_cv_c_stack_direction+:} false; then :
13375  $as_echo_n "(cached) " >&6
13376else
13377  if test "$cross_compiling" = yes; then :
13378  ac_cv_c_stack_direction=0
13379else
13380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381/* end confdefs.h.  */
13382$ac_includes_default
13383int
13384find_stack_direction (int *addr, int depth)
13385{
13386  int dir, dummy = 0;
13387  if (! addr)
13388    addr = &dummy;
13389  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13390  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13391  return dir + dummy;
13392}
13393
13394int
13395main (int argc, char **argv)
13396{
13397  return find_stack_direction (0, argc + !argv + 20) < 0;
13398}
13399_ACEOF
13400if ac_fn_c_try_run "$LINENO"; then :
13401  ac_cv_c_stack_direction=1
13402else
13403  ac_cv_c_stack_direction=-1
13404fi
13405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13406  conftest.$ac_objext conftest.beam conftest.$ac_ext
13407fi
13408
13409fi
13410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13411$as_echo "$ac_cv_c_stack_direction" >&6; }
13412cat >>confdefs.h <<_ACEOF
13413#define STACK_DIRECTION $ac_cv_c_stack_direction
13414_ACEOF
13415
13416
13417fi
13418
13419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
13420$as_echo_n "checking for error_at_line... " >&6; }
13421if ${ac_cv_lib_error_at_line+:} false; then :
13422  $as_echo_n "(cached) " >&6
13423else
13424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425/* end confdefs.h.  */
13426#include <error.h>
13427int
13428main ()
13429{
13430error_at_line (0, 0, "", 0, "an error occurred");
13431  ;
13432  return 0;
13433}
13434_ACEOF
13435if ac_fn_c_try_link "$LINENO"; then :
13436  ac_cv_lib_error_at_line=yes
13437else
13438  ac_cv_lib_error_at_line=no
13439fi
13440rm -f core conftest.err conftest.$ac_objext \
13441    conftest$ac_exeext conftest.$ac_ext
13442fi
13443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
13444$as_echo "$ac_cv_lib_error_at_line" >&6; }
13445if test $ac_cv_lib_error_at_line = no; then
13446  case " $LIBOBJS " in
13447  *" error.$ac_objext "* ) ;;
13448  *) LIBOBJS="$LIBOBJS error.$ac_objext"
13449 ;;
13450esac
13451
13452fi
13453
13454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13455$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13456if ${ac_cv_sys_largefile_source+:} false; then :
13457  $as_echo_n "(cached) " >&6
13458else
13459  while :; do
13460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461/* end confdefs.h.  */
13462#include <sys/types.h> /* for off_t */
13463     #include <stdio.h>
13464int
13465main ()
13466{
13467int (*fp) (FILE *, off_t, int) = fseeko;
13468     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13469  ;
13470  return 0;
13471}
13472_ACEOF
13473if ac_fn_c_try_link "$LINENO"; then :
13474  ac_cv_sys_largefile_source=no; break
13475fi
13476rm -f core conftest.err conftest.$ac_objext \
13477    conftest$ac_exeext conftest.$ac_ext
13478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479/* end confdefs.h.  */
13480#define _LARGEFILE_SOURCE 1
13481#include <sys/types.h> /* for off_t */
13482     #include <stdio.h>
13483int
13484main ()
13485{
13486int (*fp) (FILE *, off_t, int) = fseeko;
13487     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13488  ;
13489  return 0;
13490}
13491_ACEOF
13492if ac_fn_c_try_link "$LINENO"; then :
13493  ac_cv_sys_largefile_source=1; break
13494fi
13495rm -f core conftest.err conftest.$ac_objext \
13496    conftest$ac_exeext conftest.$ac_ext
13497  ac_cv_sys_largefile_source=unknown
13498  break
13499done
13500fi
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13502$as_echo "$ac_cv_sys_largefile_source" >&6; }
13503case $ac_cv_sys_largefile_source in #(
13504  no | unknown) ;;
13505  *)
13506cat >>confdefs.h <<_ACEOF
13507#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13508_ACEOF
13509;;
13510esac
13511rm -rf conftest*
13512
13513# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13514# in glibc 2.1.3, but that breaks too many other things.
13515# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13516if test $ac_cv_sys_largefile_source != unknown; then
13517
13518$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13519
13520fi
13521
13522    for ac_header in arpa/inet.h malloc.h mntent.h netdb.h netinet/in.h shadow.h sys/file.h sys/mount.h sys/param.h sys/socket.h sys/statfs.h sys/statvfs.h sys/vfs.h unistd.h values.h
13523do :
13524  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13525ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13526if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13527  cat >>confdefs.h <<_ACEOF
13528#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13529_ACEOF
13530
13531fi
13532
13533done
13534
13535  ;;
13536  * )
13537    win32="no"
13538  ;;
13539esac
13540 if test "x$win32" = "xyes"; then
13541  WIN32_TRUE=
13542  WIN32_FALSE='#'
13543else
13544  WIN32_TRUE='#'
13545  WIN32_FALSE=
13546fi
13547
13548
13549
13550ac_ext=c
13551ac_cpp='$CPP $CPPFLAGS'
13552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13554ac_compiler_gnu=$ac_cv_c_compiler_gnu
13555if test -n "$ac_tool_prefix"; then
13556  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13557set dummy ${ac_tool_prefix}gcc; ac_word=$2
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13559$as_echo_n "checking for $ac_word... " >&6; }
13560if ${ac_cv_prog_CC+:} false; then :
13561  $as_echo_n "(cached) " >&6
13562else
13563  if test -n "$CC"; then
13564  ac_cv_prog_CC="$CC" # Let the user override the test.
13565else
13566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567for as_dir in $PATH
13568do
13569  IFS=$as_save_IFS
13570  test -z "$as_dir" && as_dir=.
13571    for ac_exec_ext in '' $ac_executable_extensions; do
13572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13573    ac_cv_prog_CC="${ac_tool_prefix}gcc"
13574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13575    break 2
13576  fi
13577done
13578  done
13579IFS=$as_save_IFS
13580
13581fi
13582fi
13583CC=$ac_cv_prog_CC
13584if test -n "$CC"; then
13585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13586$as_echo "$CC" >&6; }
13587else
13588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589$as_echo "no" >&6; }
13590fi
13591
13592
13593fi
13594if test -z "$ac_cv_prog_CC"; then
13595  ac_ct_CC=$CC
13596  # Extract the first word of "gcc", so it can be a program name with args.
13597set dummy gcc; ac_word=$2
13598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13599$as_echo_n "checking for $ac_word... " >&6; }
13600if ${ac_cv_prog_ac_ct_CC+:} false; then :
13601  $as_echo_n "(cached) " >&6
13602else
13603  if test -n "$ac_ct_CC"; then
13604  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13605else
13606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607for as_dir in $PATH
13608do
13609  IFS=$as_save_IFS
13610  test -z "$as_dir" && as_dir=.
13611    for ac_exec_ext in '' $ac_executable_extensions; do
13612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13613    ac_cv_prog_ac_ct_CC="gcc"
13614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13615    break 2
13616  fi
13617done
13618  done
13619IFS=$as_save_IFS
13620
13621fi
13622fi
13623ac_ct_CC=$ac_cv_prog_ac_ct_CC
13624if test -n "$ac_ct_CC"; then
13625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13626$as_echo "$ac_ct_CC" >&6; }
13627else
13628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629$as_echo "no" >&6; }
13630fi
13631
13632  if test "x$ac_ct_CC" = x; then
13633    CC=""
13634  else
13635    case $cross_compiling:$ac_tool_warned in
13636yes:)
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13639ac_tool_warned=yes ;;
13640esac
13641    CC=$ac_ct_CC
13642  fi
13643else
13644  CC="$ac_cv_prog_CC"
13645fi
13646
13647if test -z "$CC"; then
13648          if test -n "$ac_tool_prefix"; then
13649    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13650set dummy ${ac_tool_prefix}cc; ac_word=$2
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652$as_echo_n "checking for $ac_word... " >&6; }
13653if ${ac_cv_prog_CC+:} false; then :
13654  $as_echo_n "(cached) " >&6
13655else
13656  if test -n "$CC"; then
13657  ac_cv_prog_CC="$CC" # Let the user override the test.
13658else
13659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660for as_dir in $PATH
13661do
13662  IFS=$as_save_IFS
13663  test -z "$as_dir" && as_dir=.
13664    for ac_exec_ext in '' $ac_executable_extensions; do
13665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13666    ac_cv_prog_CC="${ac_tool_prefix}cc"
13667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13668    break 2
13669  fi
13670done
13671  done
13672IFS=$as_save_IFS
13673
13674fi
13675fi
13676CC=$ac_cv_prog_CC
13677if test -n "$CC"; then
13678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13679$as_echo "$CC" >&6; }
13680else
13681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682$as_echo "no" >&6; }
13683fi
13684
13685
13686  fi
13687fi
13688if test -z "$CC"; then
13689  # Extract the first word of "cc", so it can be a program name with args.
13690set dummy cc; ac_word=$2
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692$as_echo_n "checking for $ac_word... " >&6; }
13693if ${ac_cv_prog_CC+:} false; then :
13694  $as_echo_n "(cached) " >&6
13695else
13696  if test -n "$CC"; then
13697  ac_cv_prog_CC="$CC" # Let the user override the test.
13698else
13699  ac_prog_rejected=no
13700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13701for as_dir in $PATH
13702do
13703  IFS=$as_save_IFS
13704  test -z "$as_dir" && as_dir=.
13705    for ac_exec_ext in '' $ac_executable_extensions; do
13706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13707    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13708       ac_prog_rejected=yes
13709       continue
13710     fi
13711    ac_cv_prog_CC="cc"
13712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13713    break 2
13714  fi
13715done
13716  done
13717IFS=$as_save_IFS
13718
13719if test $ac_prog_rejected = yes; then
13720  # We found a bogon in the path, so make sure we never use it.
13721  set dummy $ac_cv_prog_CC
13722  shift
13723  if test $# != 0; then
13724    # We chose a different compiler from the bogus one.
13725    # However, it has the same basename, so the bogon will be chosen
13726    # first if we set CC to just the basename; use the full file name.
13727    shift
13728    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13729  fi
13730fi
13731fi
13732fi
13733CC=$ac_cv_prog_CC
13734if test -n "$CC"; then
13735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13736$as_echo "$CC" >&6; }
13737else
13738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13739$as_echo "no" >&6; }
13740fi
13741
13742
13743fi
13744if test -z "$CC"; then
13745  if test -n "$ac_tool_prefix"; then
13746  for ac_prog in cl.exe
13747  do
13748    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751$as_echo_n "checking for $ac_word... " >&6; }
13752if ${ac_cv_prog_CC+:} false; then :
13753  $as_echo_n "(cached) " >&6
13754else
13755  if test -n "$CC"; then
13756  ac_cv_prog_CC="$CC" # Let the user override the test.
13757else
13758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759for as_dir in $PATH
13760do
13761  IFS=$as_save_IFS
13762  test -z "$as_dir" && as_dir=.
13763    for ac_exec_ext in '' $ac_executable_extensions; do
13764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13765    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13767    break 2
13768  fi
13769done
13770  done
13771IFS=$as_save_IFS
13772
13773fi
13774fi
13775CC=$ac_cv_prog_CC
13776if test -n "$CC"; then
13777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13778$as_echo "$CC" >&6; }
13779else
13780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781$as_echo "no" >&6; }
13782fi
13783
13784
13785    test -n "$CC" && break
13786  done
13787fi
13788if test -z "$CC"; then
13789  ac_ct_CC=$CC
13790  for ac_prog in cl.exe
13791do
13792  # Extract the first word of "$ac_prog", so it can be a program name with args.
13793set dummy $ac_prog; ac_word=$2
13794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795$as_echo_n "checking for $ac_word... " >&6; }
13796if ${ac_cv_prog_ac_ct_CC+:} false; then :
13797  $as_echo_n "(cached) " >&6
13798else
13799  if test -n "$ac_ct_CC"; then
13800  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13801else
13802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803for as_dir in $PATH
13804do
13805  IFS=$as_save_IFS
13806  test -z "$as_dir" && as_dir=.
13807    for ac_exec_ext in '' $ac_executable_extensions; do
13808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13809    ac_cv_prog_ac_ct_CC="$ac_prog"
13810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13811    break 2
13812  fi
13813done
13814  done
13815IFS=$as_save_IFS
13816
13817fi
13818fi
13819ac_ct_CC=$ac_cv_prog_ac_ct_CC
13820if test -n "$ac_ct_CC"; then
13821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13822$as_echo "$ac_ct_CC" >&6; }
13823else
13824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825$as_echo "no" >&6; }
13826fi
13827
13828
13829  test -n "$ac_ct_CC" && break
13830done
13831
13832  if test "x$ac_ct_CC" = x; then
13833    CC=""
13834  else
13835    case $cross_compiling:$ac_tool_warned in
13836yes:)
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13839ac_tool_warned=yes ;;
13840esac
13841    CC=$ac_ct_CC
13842  fi
13843fi
13844
13845fi
13846
13847
13848test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13850as_fn_error $? "no acceptable C compiler found in \$PATH
13851See \`config.log' for more details" "$LINENO" 5; }
13852
13853# Provide some information about the compiler.
13854$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13855set X $ac_compile
13856ac_compiler=$2
13857for ac_option in --version -v -V -qversion; do
13858  { { ac_try="$ac_compiler $ac_option >&5"
13859case "(($ac_try" in
13860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861  *) ac_try_echo=$ac_try;;
13862esac
13863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13864$as_echo "$ac_try_echo"; } >&5
13865  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13866  ac_status=$?
13867  if test -s conftest.err; then
13868    sed '10a\
13869... rest of stderr output deleted ...
13870         10q' conftest.err >conftest.er1
13871    cat conftest.er1 >&5
13872  fi
13873  rm -f conftest.er1 conftest.err
13874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13875  test $ac_status = 0; }
13876done
13877
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13879$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13880if ${ac_cv_c_compiler_gnu+:} false; then :
13881  $as_echo_n "(cached) " >&6
13882else
13883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884/* end confdefs.h.  */
13885
13886int
13887main ()
13888{
13889#ifndef __GNUC__
13890       choke me
13891#endif
13892
13893  ;
13894  return 0;
13895}
13896_ACEOF
13897if ac_fn_c_try_compile "$LINENO"; then :
13898  ac_compiler_gnu=yes
13899else
13900  ac_compiler_gnu=no
13901fi
13902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903ac_cv_c_compiler_gnu=$ac_compiler_gnu
13904
13905fi
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13907$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13908if test $ac_compiler_gnu = yes; then
13909  GCC=yes
13910else
13911  GCC=
13912fi
13913ac_test_CFLAGS=${CFLAGS+set}
13914ac_save_CFLAGS=$CFLAGS
13915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13916$as_echo_n "checking whether $CC accepts -g... " >&6; }
13917if ${ac_cv_prog_cc_g+:} false; then :
13918  $as_echo_n "(cached) " >&6
13919else
13920  ac_save_c_werror_flag=$ac_c_werror_flag
13921   ac_c_werror_flag=yes
13922   ac_cv_prog_cc_g=no
13923   CFLAGS="-g"
13924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925/* end confdefs.h.  */
13926
13927int
13928main ()
13929{
13930
13931  ;
13932  return 0;
13933}
13934_ACEOF
13935if ac_fn_c_try_compile "$LINENO"; then :
13936  ac_cv_prog_cc_g=yes
13937else
13938  CFLAGS=""
13939      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940/* end confdefs.h.  */
13941
13942int
13943main ()
13944{
13945
13946  ;
13947  return 0;
13948}
13949_ACEOF
13950if ac_fn_c_try_compile "$LINENO"; then :
13951
13952else
13953  ac_c_werror_flag=$ac_save_c_werror_flag
13954	 CFLAGS="-g"
13955	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956/* end confdefs.h.  */
13957
13958int
13959main ()
13960{
13961
13962  ;
13963  return 0;
13964}
13965_ACEOF
13966if ac_fn_c_try_compile "$LINENO"; then :
13967  ac_cv_prog_cc_g=yes
13968fi
13969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970fi
13971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972fi
13973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13974   ac_c_werror_flag=$ac_save_c_werror_flag
13975fi
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13977$as_echo "$ac_cv_prog_cc_g" >&6; }
13978if test "$ac_test_CFLAGS" = set; then
13979  CFLAGS=$ac_save_CFLAGS
13980elif test $ac_cv_prog_cc_g = yes; then
13981  if test "$GCC" = yes; then
13982    CFLAGS="-g -O2"
13983  else
13984    CFLAGS="-g"
13985  fi
13986else
13987  if test "$GCC" = yes; then
13988    CFLAGS="-O2"
13989  else
13990    CFLAGS=
13991  fi
13992fi
13993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13994$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13995if ${ac_cv_prog_cc_c89+:} false; then :
13996  $as_echo_n "(cached) " >&6
13997else
13998  ac_cv_prog_cc_c89=no
13999ac_save_CC=$CC
14000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001/* end confdefs.h.  */
14002#include <stdarg.h>
14003#include <stdio.h>
14004struct stat;
14005/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14006struct buf { int x; };
14007FILE * (*rcsopen) (struct buf *, struct stat *, int);
14008static char *e (p, i)
14009     char **p;
14010     int i;
14011{
14012  return p[i];
14013}
14014static char *f (char * (*g) (char **, int), char **p, ...)
14015{
14016  char *s;
14017  va_list v;
14018  va_start (v,p);
14019  s = g (p, va_arg (v,int));
14020  va_end (v);
14021  return s;
14022}
14023
14024/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14025   function prototypes and stuff, but not '\xHH' hex character constants.
14026   These don't provoke an error unfortunately, instead are silently treated
14027   as 'x'.  The following induces an error, until -std is added to get
14028   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14029   array size at least.  It's necessary to write '\x00'==0 to get something
14030   that's true only with -std.  */
14031int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14032
14033/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14034   inside strings and character constants.  */
14035#define FOO(x) 'x'
14036int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14037
14038int test (int i, double x);
14039struct s1 {int (*f) (int a);};
14040struct s2 {int (*f) (double a);};
14041int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14042int argc;
14043char **argv;
14044int
14045main ()
14046{
14047return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14048  ;
14049  return 0;
14050}
14051_ACEOF
14052for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14053	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14054do
14055  CC="$ac_save_CC $ac_arg"
14056  if ac_fn_c_try_compile "$LINENO"; then :
14057  ac_cv_prog_cc_c89=$ac_arg
14058fi
14059rm -f core conftest.err conftest.$ac_objext
14060  test "x$ac_cv_prog_cc_c89" != "xno" && break
14061done
14062rm -f conftest.$ac_ext
14063CC=$ac_save_CC
14064
14065fi
14066# AC_CACHE_VAL
14067case "x$ac_cv_prog_cc_c89" in
14068  x)
14069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14070$as_echo "none needed" >&6; } ;;
14071  xno)
14072    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14073$as_echo "unsupported" >&6; } ;;
14074  *)
14075    CC="$CC $ac_cv_prog_cc_c89"
14076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14077$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14078esac
14079if test "x$ac_cv_prog_cc_c89" != xno; then :
14080
14081fi
14082
14083ac_ext=c
14084ac_cpp='$CPP $CPPFLAGS'
14085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14087ac_compiler_gnu=$ac_cv_c_compiler_gnu
14088
14089ac_ext=c
14090ac_cpp='$CPP $CPPFLAGS'
14091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14093ac_compiler_gnu=$ac_cv_c_compiler_gnu
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14095$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14096if ${am_cv_prog_cc_c_o+:} false; then :
14097  $as_echo_n "(cached) " >&6
14098else
14099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100/* end confdefs.h.  */
14101
14102int
14103main ()
14104{
14105
14106  ;
14107  return 0;
14108}
14109_ACEOF
14110  # Make sure it works both with $CC and with simple cc.
14111  # Following AC_PROG_CC_C_O, we do the test twice because some
14112  # compilers refuse to overwrite an existing .o file with -o,
14113  # though they will create one.
14114  am_cv_prog_cc_c_o=yes
14115  for am_i in 1 2; do
14116    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14117   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14118   ac_status=$?
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); } \
14121         && test -f conftest2.$ac_objext; then
14122      : OK
14123    else
14124      am_cv_prog_cc_c_o=no
14125      break
14126    fi
14127  done
14128  rm -f core conftest*
14129  unset am_i
14130fi
14131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14132$as_echo "$am_cv_prog_cc_c_o" >&6; }
14133if test "$am_cv_prog_cc_c_o" != yes; then
14134   # Losing compiler, so override with the script.
14135   # FIXME: It is wrong to rewrite CC.
14136   # But if we don't then we get into trouble of one sort or another.
14137   # A longer-term fix would be to have automake use am__CC in this case,
14138   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14139   CC="$am_aux_dir/compile $CC"
14140fi
14141ac_ext=c
14142ac_cpp='$CPP $CPPFLAGS'
14143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14145ac_compiler_gnu=$ac_cv_c_compiler_gnu
14146
14147
14148depcc="$CC"   am_compiler_list=
14149
14150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14151$as_echo_n "checking dependency style of $depcc... " >&6; }
14152if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14153  $as_echo_n "(cached) " >&6
14154else
14155  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14156  # We make a subdir and do the tests there.  Otherwise we can end up
14157  # making bogus files that we don't know about and never remove.  For
14158  # instance it was reported that on HP-UX the gcc test will end up
14159  # making a dummy file named 'D' -- because '-MD' means "put the output
14160  # in D".
14161  rm -rf conftest.dir
14162  mkdir conftest.dir
14163  # Copy depcomp to subdir because otherwise we won't find it if we're
14164  # using a relative directory.
14165  cp "$am_depcomp" conftest.dir
14166  cd conftest.dir
14167  # We will build objects and dependencies in a subdirectory because
14168  # it helps to detect inapplicable dependency modes.  For instance
14169  # both Tru64's cc and ICC support -MD to output dependencies as a
14170  # side effect of compilation, but ICC will put the dependencies in
14171  # the current directory while Tru64 will put them in the object
14172  # directory.
14173  mkdir sub
14174
14175  am_cv_CC_dependencies_compiler_type=none
14176  if test "$am_compiler_list" = ""; then
14177     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14178  fi
14179  am__universal=false
14180  case " $depcc " in #(
14181     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14182     esac
14183
14184  for depmode in $am_compiler_list; do
14185    # Setup a source with many dependencies, because some compilers
14186    # like to wrap large dependency lists on column 80 (with \), and
14187    # we should not choose a depcomp mode which is confused by this.
14188    #
14189    # We need to recreate these files for each test, as the compiler may
14190    # overwrite some of them when testing with obscure command lines.
14191    # This happens at least with the AIX C compiler.
14192    : > sub/conftest.c
14193    for i in 1 2 3 4 5 6; do
14194      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14195      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14196      # Solaris 10 /bin/sh.
14197      echo '/* dummy */' > sub/conftst$i.h
14198    done
14199    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14200
14201    # We check with '-c' and '-o' for the sake of the "dashmstdout"
14202    # mode.  It turns out that the SunPro C++ compiler does not properly
14203    # handle '-M -o', and we need to detect this.  Also, some Intel
14204    # versions had trouble with output in subdirs.
14205    am__obj=sub/conftest.${OBJEXT-o}
14206    am__minus_obj="-o $am__obj"
14207    case $depmode in
14208    gcc)
14209      # This depmode causes a compiler race in universal mode.
14210      test "$am__universal" = false || continue
14211      ;;
14212    nosideeffect)
14213      # After this tag, mechanisms are not by side-effect, so they'll
14214      # only be used when explicitly requested.
14215      if test "x$enable_dependency_tracking" = xyes; then
14216	continue
14217      else
14218	break
14219      fi
14220      ;;
14221    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14222      # This compiler won't grok '-c -o', but also, the minuso test has
14223      # not run yet.  These depmodes are late enough in the game, and
14224      # so weak that their functioning should not be impacted.
14225      am__obj=conftest.${OBJEXT-o}
14226      am__minus_obj=
14227      ;;
14228    none) break ;;
14229    esac
14230    if depmode=$depmode \
14231       source=sub/conftest.c object=$am__obj \
14232       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14233       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14234         >/dev/null 2>conftest.err &&
14235       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14236       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14237       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14238       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14239      # icc doesn't choke on unknown options, it will just issue warnings
14240      # or remarks (even with -Werror).  So we grep stderr for any message
14241      # that says an option was ignored or not supported.
14242      # When given -MP, icc 7.0 and 7.1 complain thusly:
14243      #   icc: Command line warning: ignoring option '-M'; no argument required
14244      # The diagnosis changed in icc 8.0:
14245      #   icc: Command line remark: option '-MP' not supported
14246      if (grep 'ignoring option' conftest.err ||
14247          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14248        am_cv_CC_dependencies_compiler_type=$depmode
14249        break
14250      fi
14251    fi
14252  done
14253
14254  cd ..
14255  rm -rf conftest.dir
14256else
14257  am_cv_CC_dependencies_compiler_type=none
14258fi
14259
14260fi
14261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14262$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14263CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14264
14265 if
14266  test "x$enable_dependency_tracking" != xno \
14267  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14268  am__fastdepCC_TRUE=
14269  am__fastdepCC_FALSE='#'
14270else
14271  am__fastdepCC_TRUE='#'
14272  am__fastdepCC_FALSE=
14273fi
14274
14275
14276
14277ac_ext=cpp
14278ac_cpp='$CXXCPP $CPPFLAGS'
14279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14282if test -z "$CXX"; then
14283  if test -n "$CCC"; then
14284    CXX=$CCC
14285  else
14286    if test -n "$ac_tool_prefix"; then
14287  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14288  do
14289    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14292$as_echo_n "checking for $ac_word... " >&6; }
14293if ${ac_cv_prog_CXX+:} false; then :
14294  $as_echo_n "(cached) " >&6
14295else
14296  if test -n "$CXX"; then
14297  ac_cv_prog_CXX="$CXX" # Let the user override the test.
14298else
14299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300for as_dir in $PATH
14301do
14302  IFS=$as_save_IFS
14303  test -z "$as_dir" && as_dir=.
14304    for ac_exec_ext in '' $ac_executable_extensions; do
14305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14306    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14308    break 2
14309  fi
14310done
14311  done
14312IFS=$as_save_IFS
14313
14314fi
14315fi
14316CXX=$ac_cv_prog_CXX
14317if test -n "$CXX"; then
14318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14319$as_echo "$CXX" >&6; }
14320else
14321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322$as_echo "no" >&6; }
14323fi
14324
14325
14326    test -n "$CXX" && break
14327  done
14328fi
14329if test -z "$CXX"; then
14330  ac_ct_CXX=$CXX
14331  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14332do
14333  # Extract the first word of "$ac_prog", so it can be a program name with args.
14334set dummy $ac_prog; ac_word=$2
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14336$as_echo_n "checking for $ac_word... " >&6; }
14337if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14338  $as_echo_n "(cached) " >&6
14339else
14340  if test -n "$ac_ct_CXX"; then
14341  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14342else
14343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14344for as_dir in $PATH
14345do
14346  IFS=$as_save_IFS
14347  test -z "$as_dir" && as_dir=.
14348    for ac_exec_ext in '' $ac_executable_extensions; do
14349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14350    ac_cv_prog_ac_ct_CXX="$ac_prog"
14351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14352    break 2
14353  fi
14354done
14355  done
14356IFS=$as_save_IFS
14357
14358fi
14359fi
14360ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14361if test -n "$ac_ct_CXX"; then
14362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14363$as_echo "$ac_ct_CXX" >&6; }
14364else
14365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366$as_echo "no" >&6; }
14367fi
14368
14369
14370  test -n "$ac_ct_CXX" && break
14371done
14372
14373  if test "x$ac_ct_CXX" = x; then
14374    CXX="g++"
14375  else
14376    case $cross_compiling:$ac_tool_warned in
14377yes:)
14378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14380ac_tool_warned=yes ;;
14381esac
14382    CXX=$ac_ct_CXX
14383  fi
14384fi
14385
14386  fi
14387fi
14388# Provide some information about the compiler.
14389$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14390set X $ac_compile
14391ac_compiler=$2
14392for ac_option in --version -v -V -qversion; do
14393  { { ac_try="$ac_compiler $ac_option >&5"
14394case "(($ac_try" in
14395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396  *) ac_try_echo=$ac_try;;
14397esac
14398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14399$as_echo "$ac_try_echo"; } >&5
14400  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14401  ac_status=$?
14402  if test -s conftest.err; then
14403    sed '10a\
14404... rest of stderr output deleted ...
14405         10q' conftest.err >conftest.er1
14406    cat conftest.er1 >&5
14407  fi
14408  rm -f conftest.er1 conftest.err
14409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14410  test $ac_status = 0; }
14411done
14412
14413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14414$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14415if ${ac_cv_cxx_compiler_gnu+:} false; then :
14416  $as_echo_n "(cached) " >&6
14417else
14418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419/* end confdefs.h.  */
14420
14421int
14422main ()
14423{
14424#ifndef __GNUC__
14425       choke me
14426#endif
14427
14428  ;
14429  return 0;
14430}
14431_ACEOF
14432if ac_fn_cxx_try_compile "$LINENO"; then :
14433  ac_compiler_gnu=yes
14434else
14435  ac_compiler_gnu=no
14436fi
14437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14439
14440fi
14441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14442$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14443if test $ac_compiler_gnu = yes; then
14444  GXX=yes
14445else
14446  GXX=
14447fi
14448ac_test_CXXFLAGS=${CXXFLAGS+set}
14449ac_save_CXXFLAGS=$CXXFLAGS
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14451$as_echo_n "checking whether $CXX accepts -g... " >&6; }
14452if ${ac_cv_prog_cxx_g+:} false; then :
14453  $as_echo_n "(cached) " >&6
14454else
14455  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14456   ac_cxx_werror_flag=yes
14457   ac_cv_prog_cxx_g=no
14458   CXXFLAGS="-g"
14459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460/* end confdefs.h.  */
14461
14462int
14463main ()
14464{
14465
14466  ;
14467  return 0;
14468}
14469_ACEOF
14470if ac_fn_cxx_try_compile "$LINENO"; then :
14471  ac_cv_prog_cxx_g=yes
14472else
14473  CXXFLAGS=""
14474      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475/* end confdefs.h.  */
14476
14477int
14478main ()
14479{
14480
14481  ;
14482  return 0;
14483}
14484_ACEOF
14485if ac_fn_cxx_try_compile "$LINENO"; then :
14486
14487else
14488  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14489	 CXXFLAGS="-g"
14490	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491/* end confdefs.h.  */
14492
14493int
14494main ()
14495{
14496
14497  ;
14498  return 0;
14499}
14500_ACEOF
14501if ac_fn_cxx_try_compile "$LINENO"; then :
14502  ac_cv_prog_cxx_g=yes
14503fi
14504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505fi
14506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507fi
14508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14510fi
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14512$as_echo "$ac_cv_prog_cxx_g" >&6; }
14513if test "$ac_test_CXXFLAGS" = set; then
14514  CXXFLAGS=$ac_save_CXXFLAGS
14515elif test $ac_cv_prog_cxx_g = yes; then
14516  if test "$GXX" = yes; then
14517    CXXFLAGS="-g -O2"
14518  else
14519    CXXFLAGS="-g"
14520  fi
14521else
14522  if test "$GXX" = yes; then
14523    CXXFLAGS="-O2"
14524  else
14525    CXXFLAGS=
14526  fi
14527fi
14528ac_ext=c
14529ac_cpp='$CPP $CPPFLAGS'
14530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14532ac_compiler_gnu=$ac_cv_c_compiler_gnu
14533
14534depcc="$CXX"  am_compiler_list=
14535
14536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14537$as_echo_n "checking dependency style of $depcc... " >&6; }
14538if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14539  $as_echo_n "(cached) " >&6
14540else
14541  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14542  # We make a subdir and do the tests there.  Otherwise we can end up
14543  # making bogus files that we don't know about and never remove.  For
14544  # instance it was reported that on HP-UX the gcc test will end up
14545  # making a dummy file named 'D' -- because '-MD' means "put the output
14546  # in D".
14547  rm -rf conftest.dir
14548  mkdir conftest.dir
14549  # Copy depcomp to subdir because otherwise we won't find it if we're
14550  # using a relative directory.
14551  cp "$am_depcomp" conftest.dir
14552  cd conftest.dir
14553  # We will build objects and dependencies in a subdirectory because
14554  # it helps to detect inapplicable dependency modes.  For instance
14555  # both Tru64's cc and ICC support -MD to output dependencies as a
14556  # side effect of compilation, but ICC will put the dependencies in
14557  # the current directory while Tru64 will put them in the object
14558  # directory.
14559  mkdir sub
14560
14561  am_cv_CXX_dependencies_compiler_type=none
14562  if test "$am_compiler_list" = ""; then
14563     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14564  fi
14565  am__universal=false
14566  case " $depcc " in #(
14567     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14568     esac
14569
14570  for depmode in $am_compiler_list; do
14571    # Setup a source with many dependencies, because some compilers
14572    # like to wrap large dependency lists on column 80 (with \), and
14573    # we should not choose a depcomp mode which is confused by this.
14574    #
14575    # We need to recreate these files for each test, as the compiler may
14576    # overwrite some of them when testing with obscure command lines.
14577    # This happens at least with the AIX C compiler.
14578    : > sub/conftest.c
14579    for i in 1 2 3 4 5 6; do
14580      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14581      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14582      # Solaris 10 /bin/sh.
14583      echo '/* dummy */' > sub/conftst$i.h
14584    done
14585    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14586
14587    # We check with '-c' and '-o' for the sake of the "dashmstdout"
14588    # mode.  It turns out that the SunPro C++ compiler does not properly
14589    # handle '-M -o', and we need to detect this.  Also, some Intel
14590    # versions had trouble with output in subdirs.
14591    am__obj=sub/conftest.${OBJEXT-o}
14592    am__minus_obj="-o $am__obj"
14593    case $depmode in
14594    gcc)
14595      # This depmode causes a compiler race in universal mode.
14596      test "$am__universal" = false || continue
14597      ;;
14598    nosideeffect)
14599      # After this tag, mechanisms are not by side-effect, so they'll
14600      # only be used when explicitly requested.
14601      if test "x$enable_dependency_tracking" = xyes; then
14602	continue
14603      else
14604	break
14605      fi
14606      ;;
14607    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14608      # This compiler won't grok '-c -o', but also, the minuso test has
14609      # not run yet.  These depmodes are late enough in the game, and
14610      # so weak that their functioning should not be impacted.
14611      am__obj=conftest.${OBJEXT-o}
14612      am__minus_obj=
14613      ;;
14614    none) break ;;
14615    esac
14616    if depmode=$depmode \
14617       source=sub/conftest.c object=$am__obj \
14618       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14619       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14620         >/dev/null 2>conftest.err &&
14621       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14622       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14623       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14624       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14625      # icc doesn't choke on unknown options, it will just issue warnings
14626      # or remarks (even with -Werror).  So we grep stderr for any message
14627      # that says an option was ignored or not supported.
14628      # When given -MP, icc 7.0 and 7.1 complain thusly:
14629      #   icc: Command line warning: ignoring option '-M'; no argument required
14630      # The diagnosis changed in icc 8.0:
14631      #   icc: Command line remark: option '-MP' not supported
14632      if (grep 'ignoring option' conftest.err ||
14633          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14634        am_cv_CXX_dependencies_compiler_type=$depmode
14635        break
14636      fi
14637    fi
14638  done
14639
14640  cd ..
14641  rm -rf conftest.dir
14642else
14643  am_cv_CXX_dependencies_compiler_type=none
14644fi
14645
14646fi
14647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14648$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14649CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14650
14651 if
14652  test "x$enable_dependency_tracking" != xno \
14653  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14654  am__fastdepCXX_TRUE=
14655  am__fastdepCXX_FALSE='#'
14656else
14657  am__fastdepCXX_TRUE='#'
14658  am__fastdepCXX_FALSE=
14659fi
14660
14661
14662
14663
14664func_stripname_cnf ()
14665{
14666  case $2 in
14667  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14668  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14669  esac
14670} # func_stripname_cnf
14671
14672      if test -n "$CXX" && ( test no != "$CXX" &&
14673    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14674    (test g++ != "$CXX"))); then
14675  ac_ext=cpp
14676ac_cpp='$CXXCPP $CPPFLAGS'
14677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14681$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14682if test -z "$CXXCPP"; then
14683  if ${ac_cv_prog_CXXCPP+:} false; then :
14684  $as_echo_n "(cached) " >&6
14685else
14686      # Double quotes because CXXCPP needs to be expanded
14687    for CXXCPP in "$CXX -E" "/lib/cpp"
14688    do
14689      ac_preproc_ok=false
14690for ac_cxx_preproc_warn_flag in '' yes
14691do
14692  # Use a header file that comes with gcc, so configuring glibc
14693  # with a fresh cross-compiler works.
14694  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14695  # <limits.h> exists even on freestanding compilers.
14696  # On the NeXT, cc -E runs the code through the compiler's parser,
14697  # not just through cpp. "Syntax error" is here to catch this case.
14698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699/* end confdefs.h.  */
14700#ifdef __STDC__
14701# include <limits.h>
14702#else
14703# include <assert.h>
14704#endif
14705		     Syntax error
14706_ACEOF
14707if ac_fn_cxx_try_cpp "$LINENO"; then :
14708
14709else
14710  # Broken: fails on valid input.
14711continue
14712fi
14713rm -f conftest.err conftest.i conftest.$ac_ext
14714
14715  # OK, works on sane cases.  Now check whether nonexistent headers
14716  # can be detected and how.
14717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718/* end confdefs.h.  */
14719#include <ac_nonexistent.h>
14720_ACEOF
14721if ac_fn_cxx_try_cpp "$LINENO"; then :
14722  # Broken: success on invalid input.
14723continue
14724else
14725  # Passes both tests.
14726ac_preproc_ok=:
14727break
14728fi
14729rm -f conftest.err conftest.i conftest.$ac_ext
14730
14731done
14732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14733rm -f conftest.i conftest.err conftest.$ac_ext
14734if $ac_preproc_ok; then :
14735  break
14736fi
14737
14738    done
14739    ac_cv_prog_CXXCPP=$CXXCPP
14740
14741fi
14742  CXXCPP=$ac_cv_prog_CXXCPP
14743else
14744  ac_cv_prog_CXXCPP=$CXXCPP
14745fi
14746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14747$as_echo "$CXXCPP" >&6; }
14748ac_preproc_ok=false
14749for ac_cxx_preproc_warn_flag in '' yes
14750do
14751  # Use a header file that comes with gcc, so configuring glibc
14752  # with a fresh cross-compiler works.
14753  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14754  # <limits.h> exists even on freestanding compilers.
14755  # On the NeXT, cc -E runs the code through the compiler's parser,
14756  # not just through cpp. "Syntax error" is here to catch this case.
14757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758/* end confdefs.h.  */
14759#ifdef __STDC__
14760# include <limits.h>
14761#else
14762# include <assert.h>
14763#endif
14764		     Syntax error
14765_ACEOF
14766if ac_fn_cxx_try_cpp "$LINENO"; then :
14767
14768else
14769  # Broken: fails on valid input.
14770continue
14771fi
14772rm -f conftest.err conftest.i conftest.$ac_ext
14773
14774  # OK, works on sane cases.  Now check whether nonexistent headers
14775  # can be detected and how.
14776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777/* end confdefs.h.  */
14778#include <ac_nonexistent.h>
14779_ACEOF
14780if ac_fn_cxx_try_cpp "$LINENO"; then :
14781  # Broken: success on invalid input.
14782continue
14783else
14784  # Passes both tests.
14785ac_preproc_ok=:
14786break
14787fi
14788rm -f conftest.err conftest.i conftest.$ac_ext
14789
14790done
14791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14792rm -f conftest.i conftest.err conftest.$ac_ext
14793if $ac_preproc_ok; then :
14794
14795else
14796  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14798as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14799See \`config.log' for more details" "$LINENO" 5; }
14800fi
14801
14802ac_ext=c
14803ac_cpp='$CPP $CPPFLAGS'
14804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14806ac_compiler_gnu=$ac_cv_c_compiler_gnu
14807
14808else
14809  _lt_caught_CXX_error=yes
14810fi
14811
14812ac_ext=cpp
14813ac_cpp='$CXXCPP $CPPFLAGS'
14814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14817
14818archive_cmds_need_lc_CXX=no
14819allow_undefined_flag_CXX=
14820always_export_symbols_CXX=no
14821archive_expsym_cmds_CXX=
14822compiler_needs_object_CXX=no
14823export_dynamic_flag_spec_CXX=
14824hardcode_direct_CXX=no
14825hardcode_direct_absolute_CXX=no
14826hardcode_libdir_flag_spec_CXX=
14827hardcode_libdir_separator_CXX=
14828hardcode_minus_L_CXX=no
14829hardcode_shlibpath_var_CXX=unsupported
14830hardcode_automatic_CXX=no
14831inherit_rpath_CXX=no
14832module_cmds_CXX=
14833module_expsym_cmds_CXX=
14834link_all_deplibs_CXX=unknown
14835old_archive_cmds_CXX=$old_archive_cmds
14836reload_flag_CXX=$reload_flag
14837reload_cmds_CXX=$reload_cmds
14838no_undefined_flag_CXX=
14839whole_archive_flag_spec_CXX=
14840enable_shared_with_static_runtimes_CXX=no
14841
14842# Source file extension for C++ test sources.
14843ac_ext=cpp
14844
14845# Object file extension for compiled C++ test sources.
14846objext=o
14847objext_CXX=$objext
14848
14849# No sense in running all these tests if we already determined that
14850# the CXX compiler isn't working.  Some variables (like enable_shared)
14851# are currently assumed to apply to all compilers on this platform,
14852# and will be corrupted by setting them based on a non-working compiler.
14853if test yes != "$_lt_caught_CXX_error"; then
14854  # Code to be used in simple compile tests
14855  lt_simple_compile_test_code="int some_variable = 0;"
14856
14857  # Code to be used in simple link tests
14858  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14859
14860  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14861
14862
14863
14864
14865
14866
14867# If no C compiler was specified, use CC.
14868LTCC=${LTCC-"$CC"}
14869
14870# If no C compiler flags were specified, use CFLAGS.
14871LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14872
14873# Allow CC to be a program name with arguments.
14874compiler=$CC
14875
14876
14877  # save warnings/boilerplate of simple test code
14878  ac_outfile=conftest.$ac_objext
14879echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14880eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14881_lt_compiler_boilerplate=`cat conftest.err`
14882$RM conftest*
14883
14884  ac_outfile=conftest.$ac_objext
14885echo "$lt_simple_link_test_code" >conftest.$ac_ext
14886eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14887_lt_linker_boilerplate=`cat conftest.err`
14888$RM -r conftest*
14889
14890
14891  # Allow CC to be a program name with arguments.
14892  lt_save_CC=$CC
14893  lt_save_CFLAGS=$CFLAGS
14894  lt_save_LD=$LD
14895  lt_save_GCC=$GCC
14896  GCC=$GXX
14897  lt_save_with_gnu_ld=$with_gnu_ld
14898  lt_save_path_LD=$lt_cv_path_LD
14899  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14900    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14901  else
14902    $as_unset lt_cv_prog_gnu_ld
14903  fi
14904  if test -n "${lt_cv_path_LDCXX+set}"; then
14905    lt_cv_path_LD=$lt_cv_path_LDCXX
14906  else
14907    $as_unset lt_cv_path_LD
14908  fi
14909  test -z "${LDCXX+set}" || LD=$LDCXX
14910  CC=${CXX-"c++"}
14911  CFLAGS=$CXXFLAGS
14912  compiler=$CC
14913  compiler_CXX=$CC
14914  func_cc_basename $compiler
14915cc_basename=$func_cc_basename_result
14916
14917
14918  if test -n "$compiler"; then
14919    # We don't want -fno-exception when compiling C++ code, so set the
14920    # no_builtin_flag separately
14921    if test yes = "$GXX"; then
14922      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14923    else
14924      lt_prog_compiler_no_builtin_flag_CXX=
14925    fi
14926
14927    if test yes = "$GXX"; then
14928      # Set up default GNU C++ configuration
14929
14930
14931
14932# Check whether --with-gnu-ld was given.
14933if test "${with_gnu_ld+set}" = set; then :
14934  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14935else
14936  with_gnu_ld=no
14937fi
14938
14939ac_prog=ld
14940if test yes = "$GCC"; then
14941  # Check if gcc -print-prog-name=ld gives a path.
14942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14943$as_echo_n "checking for ld used by $CC... " >&6; }
14944  case $host in
14945  *-*-mingw*)
14946    # gcc leaves a trailing carriage return, which upsets mingw
14947    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14948  *)
14949    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14950  esac
14951  case $ac_prog in
14952    # Accept absolute paths.
14953    [\\/]* | ?:[\\/]*)
14954      re_direlt='/[^/][^/]*/\.\./'
14955      # Canonicalize the pathname of ld
14956      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14957      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14958	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14959      done
14960      test -z "$LD" && LD=$ac_prog
14961      ;;
14962  "")
14963    # If it fails, then pretend we aren't using GCC.
14964    ac_prog=ld
14965    ;;
14966  *)
14967    # If it is relative, then search for the first ld in PATH.
14968    with_gnu_ld=unknown
14969    ;;
14970  esac
14971elif test yes = "$with_gnu_ld"; then
14972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14973$as_echo_n "checking for GNU ld... " >&6; }
14974else
14975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14976$as_echo_n "checking for non-GNU ld... " >&6; }
14977fi
14978if ${lt_cv_path_LD+:} false; then :
14979  $as_echo_n "(cached) " >&6
14980else
14981  if test -z "$LD"; then
14982  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14983  for ac_dir in $PATH; do
14984    IFS=$lt_save_ifs
14985    test -z "$ac_dir" && ac_dir=.
14986    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14987      lt_cv_path_LD=$ac_dir/$ac_prog
14988      # Check to see if the program is GNU ld.  I'd rather use --version,
14989      # but apparently some variants of GNU ld only accept -v.
14990      # Break only if it was the GNU/non-GNU ld that we prefer.
14991      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14992      *GNU* | *'with BFD'*)
14993	test no != "$with_gnu_ld" && break
14994	;;
14995      *)
14996	test yes != "$with_gnu_ld" && break
14997	;;
14998      esac
14999    fi
15000  done
15001  IFS=$lt_save_ifs
15002else
15003  lt_cv_path_LD=$LD # Let the user override the test with a path.
15004fi
15005fi
15006
15007LD=$lt_cv_path_LD
15008if test -n "$LD"; then
15009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15010$as_echo "$LD" >&6; }
15011else
15012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013$as_echo "no" >&6; }
15014fi
15015test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15017$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15018if ${lt_cv_prog_gnu_ld+:} false; then :
15019  $as_echo_n "(cached) " >&6
15020else
15021  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15022case `$LD -v 2>&1 </dev/null` in
15023*GNU* | *'with BFD'*)
15024  lt_cv_prog_gnu_ld=yes
15025  ;;
15026*)
15027  lt_cv_prog_gnu_ld=no
15028  ;;
15029esac
15030fi
15031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15032$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15033with_gnu_ld=$lt_cv_prog_gnu_ld
15034
15035
15036
15037
15038
15039
15040
15041      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15042      # archiving commands below assume that GNU ld is being used.
15043      if test yes = "$with_gnu_ld"; then
15044        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15045        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'
15046
15047        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15048        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15049
15050        # If archive_cmds runs LD, not CC, wlarc should be empty
15051        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15052        #     investigate it a little bit more. (MM)
15053        wlarc='$wl'
15054
15055        # ancient GNU ld didn't support --whole-archive et. al.
15056        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15057	  $GREP 'no-whole-archive' > /dev/null; then
15058          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15059        else
15060          whole_archive_flag_spec_CXX=
15061        fi
15062      else
15063        with_gnu_ld=no
15064        wlarc=
15065
15066        # A generic and very simple default shared library creation
15067        # command for GNU C++ for the case where it uses the native
15068        # linker, instead of GNU ld.  If possible, this setting should
15069        # overridden to take advantage of the native linker features on
15070        # the platform it is being used on.
15071        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15072      fi
15073
15074      # Commands to make compiler produce verbose output that lists
15075      # what "hidden" libraries, object files and flags are used when
15076      # linking a shared library.
15077      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15078
15079    else
15080      GXX=no
15081      with_gnu_ld=no
15082      wlarc=
15083    fi
15084
15085    # PORTME: fill in a description of your system's C++ link characteristics
15086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15087$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15088    ld_shlibs_CXX=yes
15089    case $host_os in
15090      aix3*)
15091        # FIXME: insert proper C++ library support
15092        ld_shlibs_CXX=no
15093        ;;
15094      aix[4-9]*)
15095        if test ia64 = "$host_cpu"; then
15096          # On IA64, the linker does run time linking by default, so we don't
15097          # have to do anything special.
15098          aix_use_runtimelinking=no
15099          exp_sym_flag='-Bexport'
15100          no_entry_flag=
15101        else
15102          aix_use_runtimelinking=no
15103
15104          # Test if we are trying to use run time linking or normal
15105          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15106          # have runtime linking enabled, and use it for executables.
15107          # For shared libraries, we enable/disable runtime linking
15108          # depending on the kind of the shared library created -
15109          # when "with_aix_soname,aix_use_runtimelinking" is:
15110          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15111          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15112          #            lib.a           static archive
15113          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15114          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15115          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15116          #            lib.a(lib.so.V) shared, rtl:no
15117          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15118          #            lib.a           static archive
15119          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15120	    for ld_flag in $LDFLAGS; do
15121	      case $ld_flag in
15122	      *-brtl*)
15123	        aix_use_runtimelinking=yes
15124	        break
15125	        ;;
15126	      esac
15127	    done
15128	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15129	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15130	      # so we don't have lib.a shared libs to link our executables.
15131	      # We have to force runtime linking in this case.
15132	      aix_use_runtimelinking=yes
15133	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15134	    fi
15135	    ;;
15136          esac
15137
15138          exp_sym_flag='-bexport'
15139          no_entry_flag='-bnoentry'
15140        fi
15141
15142        # When large executables or shared objects are built, AIX ld can
15143        # have problems creating the table of contents.  If linking a library
15144        # or program results in "error TOC overflow" add -mminimal-toc to
15145        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15146        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15147
15148        archive_cmds_CXX=''
15149        hardcode_direct_CXX=yes
15150        hardcode_direct_absolute_CXX=yes
15151        hardcode_libdir_separator_CXX=':'
15152        link_all_deplibs_CXX=yes
15153        file_list_spec_CXX='$wl-f,'
15154        case $with_aix_soname,$aix_use_runtimelinking in
15155        aix,*) ;;	# no import file
15156        svr4,* | *,yes) # use import file
15157          # The Import File defines what to hardcode.
15158          hardcode_direct_CXX=no
15159          hardcode_direct_absolute_CXX=no
15160          ;;
15161        esac
15162
15163        if test yes = "$GXX"; then
15164          case $host_os in aix4.[012]|aix4.[012].*)
15165          # We only want to do this on AIX 4.2 and lower, the check
15166          # below for broken collect2 doesn't work under 4.3+
15167	  collect2name=`$CC -print-prog-name=collect2`
15168	  if test -f "$collect2name" &&
15169	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15170	  then
15171	    # We have reworked collect2
15172	    :
15173	  else
15174	    # We have old collect2
15175	    hardcode_direct_CXX=unsupported
15176	    # It fails to find uninstalled libraries when the uninstalled
15177	    # path is not listed in the libpath.  Setting hardcode_minus_L
15178	    # to unsupported forces relinking
15179	    hardcode_minus_L_CXX=yes
15180	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15181	    hardcode_libdir_separator_CXX=
15182	  fi
15183          esac
15184          shared_flag='-shared'
15185	  if test yes = "$aix_use_runtimelinking"; then
15186	    shared_flag=$shared_flag' $wl-G'
15187	  fi
15188	  # Need to ensure runtime linking is disabled for the traditional
15189	  # shared library, or the linker may eventually find shared libraries
15190	  # /with/ Import File - we do not want to mix them.
15191	  shared_flag_aix='-shared'
15192	  shared_flag_svr4='-shared $wl-G'
15193        else
15194          # not using gcc
15195          if test ia64 = "$host_cpu"; then
15196	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15197	  # chokes on -Wl,-G. The following line is correct:
15198	  shared_flag='-G'
15199          else
15200	    if test yes = "$aix_use_runtimelinking"; then
15201	      shared_flag='$wl-G'
15202	    else
15203	      shared_flag='$wl-bM:SRE'
15204	    fi
15205	    shared_flag_aix='$wl-bM:SRE'
15206	    shared_flag_svr4='$wl-G'
15207          fi
15208        fi
15209
15210        export_dynamic_flag_spec_CXX='$wl-bexpall'
15211        # It seems that -bexpall does not export symbols beginning with
15212        # underscore (_), so it is better to generate a list of symbols to
15213	# export.
15214        always_export_symbols_CXX=yes
15215	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15216          # Warning - without using the other runtime loading flags (-brtl),
15217          # -berok will link without error, but may produce a broken library.
15218          # The "-G" linker flag allows undefined symbols.
15219          no_undefined_flag_CXX='-bernotok'
15220          # Determine the default libpath from the value encoded in an empty
15221          # executable.
15222          if test set = "${lt_cv_aix_libpath+set}"; then
15223  aix_libpath=$lt_cv_aix_libpath
15224else
15225  if ${lt_cv_aix_libpath__CXX+:} false; then :
15226  $as_echo_n "(cached) " >&6
15227else
15228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229/* end confdefs.h.  */
15230
15231int
15232main ()
15233{
15234
15235  ;
15236  return 0;
15237}
15238_ACEOF
15239if ac_fn_cxx_try_link "$LINENO"; then :
15240
15241  lt_aix_libpath_sed='
15242      /Import File Strings/,/^$/ {
15243	  /^0/ {
15244	      s/^0  *\([^ ]*\) *$/\1/
15245	      p
15246	  }
15247      }'
15248  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15249  # Check for a 64-bit object if we didn't find anything.
15250  if test -z "$lt_cv_aix_libpath__CXX"; then
15251    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15252  fi
15253fi
15254rm -f core conftest.err conftest.$ac_objext \
15255    conftest$ac_exeext conftest.$ac_ext
15256  if test -z "$lt_cv_aix_libpath__CXX"; then
15257    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15258  fi
15259
15260fi
15261
15262  aix_libpath=$lt_cv_aix_libpath__CXX
15263fi
15264
15265          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15266
15267          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
15268        else
15269          if test ia64 = "$host_cpu"; then
15270	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15271	    allow_undefined_flag_CXX="-z nodefs"
15272	    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"
15273          else
15274	    # Determine the default libpath from the value encoded in an
15275	    # empty executable.
15276	    if test set = "${lt_cv_aix_libpath+set}"; then
15277  aix_libpath=$lt_cv_aix_libpath
15278else
15279  if ${lt_cv_aix_libpath__CXX+:} false; then :
15280  $as_echo_n "(cached) " >&6
15281else
15282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283/* end confdefs.h.  */
15284
15285int
15286main ()
15287{
15288
15289  ;
15290  return 0;
15291}
15292_ACEOF
15293if ac_fn_cxx_try_link "$LINENO"; then :
15294
15295  lt_aix_libpath_sed='
15296      /Import File Strings/,/^$/ {
15297	  /^0/ {
15298	      s/^0  *\([^ ]*\) *$/\1/
15299	      p
15300	  }
15301      }'
15302  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15303  # Check for a 64-bit object if we didn't find anything.
15304  if test -z "$lt_cv_aix_libpath__CXX"; then
15305    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15306  fi
15307fi
15308rm -f core conftest.err conftest.$ac_objext \
15309    conftest$ac_exeext conftest.$ac_ext
15310  if test -z "$lt_cv_aix_libpath__CXX"; then
15311    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15312  fi
15313
15314fi
15315
15316  aix_libpath=$lt_cv_aix_libpath__CXX
15317fi
15318
15319	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15320	    # Warning - without using the other run time loading flags,
15321	    # -berok will link without error, but may produce a broken library.
15322	    no_undefined_flag_CXX=' $wl-bernotok'
15323	    allow_undefined_flag_CXX=' $wl-berok'
15324	    if test yes = "$with_gnu_ld"; then
15325	      # We only use this code for GNU lds that support --whole-archive.
15326	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15327	    else
15328	      # Exported symbols can be pulled into shared objects from archives
15329	      whole_archive_flag_spec_CXX='$convenience'
15330	    fi
15331	    archive_cmds_need_lc_CXX=yes
15332	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15333	    # -brtl affects multiple linker settings, -berok does not and is overridden later
15334	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15335	    if test svr4 != "$with_aix_soname"; then
15336	      # This is similar to how AIX traditionally builds its shared
15337	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15338	      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'
15339	    fi
15340	    if test aix != "$with_aix_soname"; then
15341	      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'
15342	    else
15343	      # used by -dlpreopen to get the symbols
15344	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15345	    fi
15346	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15347          fi
15348        fi
15349        ;;
15350
15351      beos*)
15352	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15353	  allow_undefined_flag_CXX=unsupported
15354	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15355	  # support --undefined.  This deserves some investigation.  FIXME
15356	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15357	else
15358	  ld_shlibs_CXX=no
15359	fi
15360	;;
15361
15362      chorus*)
15363        case $cc_basename in
15364          *)
15365	  # FIXME: insert proper C++ library support
15366	  ld_shlibs_CXX=no
15367	  ;;
15368        esac
15369        ;;
15370
15371      cygwin* | mingw* | pw32* | cegcc*)
15372	case $GXX,$cc_basename in
15373	,cl* | no,cl*)
15374	  # Native MSVC
15375	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15376	  # no search path for DLLs.
15377	  hardcode_libdir_flag_spec_CXX=' '
15378	  allow_undefined_flag_CXX=unsupported
15379	  always_export_symbols_CXX=yes
15380	  file_list_spec_CXX='@'
15381	  # Tell ltmain to make .lib files, not .a files.
15382	  libext=lib
15383	  # Tell ltmain to make .dll files, not .so files.
15384	  shrext_cmds=.dll
15385	  # FIXME: Setting linknames here is a bad hack.
15386	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15387	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15388              cp "$export_symbols" "$output_objdir/$soname.def";
15389              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15390            else
15391              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15392            fi~
15393            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15394            linknames='
15395	  # The linker will not automatically build a static lib if we build a DLL.
15396	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15397	  enable_shared_with_static_runtimes_CXX=yes
15398	  # Don't use ranlib
15399	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15400	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15401            lt_tool_outputfile="@TOOL_OUTPUT@"~
15402            case $lt_outputfile in
15403              *.exe|*.EXE) ;;
15404              *)
15405                lt_outputfile=$lt_outputfile.exe
15406                lt_tool_outputfile=$lt_tool_outputfile.exe
15407                ;;
15408            esac~
15409            func_to_tool_file "$lt_outputfile"~
15410            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15411              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15412              $RM "$lt_outputfile.manifest";
15413            fi'
15414	  ;;
15415	*)
15416	  # g++
15417	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15418	  # as there is no search path for DLLs.
15419	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15420	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15421	  allow_undefined_flag_CXX=unsupported
15422	  always_export_symbols_CXX=no
15423	  enable_shared_with_static_runtimes_CXX=yes
15424
15425	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15426	    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'
15427	    # If the export-symbols file already is a .def file, use it as
15428	    # is; otherwise, prepend EXPORTS...
15429	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15430              cp $export_symbols $output_objdir/$soname.def;
15431            else
15432              echo EXPORTS > $output_objdir/$soname.def;
15433              cat $export_symbols >> $output_objdir/$soname.def;
15434            fi~
15435            $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'
15436	  else
15437	    ld_shlibs_CXX=no
15438	  fi
15439	  ;;
15440	esac
15441	;;
15442      darwin* | rhapsody*)
15443
15444
15445  archive_cmds_need_lc_CXX=no
15446  hardcode_direct_CXX=no
15447  hardcode_automatic_CXX=yes
15448  hardcode_shlibpath_var_CXX=unsupported
15449  if test yes = "$lt_cv_ld_force_load"; then
15450    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\"`'
15451
15452  else
15453    whole_archive_flag_spec_CXX=''
15454  fi
15455  link_all_deplibs_CXX=yes
15456  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15457  case $cc_basename in
15458     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15459     *) _lt_dar_can_shared=$GCC ;;
15460  esac
15461  if test yes = "$_lt_dar_can_shared"; then
15462    output_verbose_link_cmd=func_echo_all
15463    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"
15464    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15465    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"
15466    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"
15467       if test yes != "$lt_cv_apple_cc_single_mod"; then
15468      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"
15469      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"
15470    fi
15471
15472  else
15473  ld_shlibs_CXX=no
15474  fi
15475
15476	;;
15477
15478      os2*)
15479	hardcode_libdir_flag_spec_CXX='-L$libdir'
15480	hardcode_minus_L_CXX=yes
15481	allow_undefined_flag_CXX=unsupported
15482	shrext_cmds=.dll
15483	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15484	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15485	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15486	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15487	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15488	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15489	  emximp -o $lib $output_objdir/$libname.def'
15490	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15491	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15492	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15493	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15494	  prefix_cmds="$SED"~
15495	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
15496	    prefix_cmds="$prefix_cmds -e 1d";
15497	  fi~
15498	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15499	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15500	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15501	  emximp -o $lib $output_objdir/$libname.def'
15502	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15503	enable_shared_with_static_runtimes_CXX=yes
15504	;;
15505
15506      dgux*)
15507        case $cc_basename in
15508          ec++*)
15509	    # FIXME: insert proper C++ library support
15510	    ld_shlibs_CXX=no
15511	    ;;
15512          ghcx*)
15513	    # Green Hills C++ Compiler
15514	    # FIXME: insert proper C++ library support
15515	    ld_shlibs_CXX=no
15516	    ;;
15517          *)
15518	    # FIXME: insert proper C++ library support
15519	    ld_shlibs_CXX=no
15520	    ;;
15521        esac
15522        ;;
15523
15524      freebsd2.*)
15525        # C++ shared libraries reported to be fairly broken before
15526	# switch to ELF
15527        ld_shlibs_CXX=no
15528        ;;
15529
15530      freebsd-elf*)
15531        archive_cmds_need_lc_CXX=no
15532        ;;
15533
15534      freebsd* | dragonfly*)
15535        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15536        # conventions
15537        ld_shlibs_CXX=yes
15538        ;;
15539
15540      haiku*)
15541        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15542        link_all_deplibs_CXX=yes
15543        ;;
15544
15545      hpux9*)
15546        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15547        hardcode_libdir_separator_CXX=:
15548        export_dynamic_flag_spec_CXX='$wl-E'
15549        hardcode_direct_CXX=yes
15550        hardcode_minus_L_CXX=yes # Not in the search PATH,
15551				             # but as the default
15552				             # location of the library.
15553
15554        case $cc_basename in
15555          CC*)
15556            # FIXME: insert proper C++ library support
15557            ld_shlibs_CXX=no
15558            ;;
15559          aCC*)
15560            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'
15561            # Commands to make compiler produce verbose output that lists
15562            # what "hidden" libraries, object files and flags are used when
15563            # linking a shared library.
15564            #
15565            # There doesn't appear to be a way to prevent this compiler from
15566            # explicitly linking system object files so we need to strip them
15567            # from the output so that they don't get included in the library
15568            # dependencies.
15569            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"'
15570            ;;
15571          *)
15572            if test yes = "$GXX"; then
15573              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'
15574            else
15575              # FIXME: insert proper C++ library support
15576              ld_shlibs_CXX=no
15577            fi
15578            ;;
15579        esac
15580        ;;
15581
15582      hpux10*|hpux11*)
15583        if test no = "$with_gnu_ld"; then
15584	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15585	  hardcode_libdir_separator_CXX=:
15586
15587          case $host_cpu in
15588            hppa*64*|ia64*)
15589              ;;
15590            *)
15591	      export_dynamic_flag_spec_CXX='$wl-E'
15592              ;;
15593          esac
15594        fi
15595        case $host_cpu in
15596          hppa*64*|ia64*)
15597            hardcode_direct_CXX=no
15598            hardcode_shlibpath_var_CXX=no
15599            ;;
15600          *)
15601            hardcode_direct_CXX=yes
15602            hardcode_direct_absolute_CXX=yes
15603            hardcode_minus_L_CXX=yes # Not in the search PATH,
15604					         # but as the default
15605					         # location of the library.
15606            ;;
15607        esac
15608
15609        case $cc_basename in
15610          CC*)
15611	    # FIXME: insert proper C++ library support
15612	    ld_shlibs_CXX=no
15613	    ;;
15614          aCC*)
15615	    case $host_cpu in
15616	      hppa*64*)
15617	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15618	        ;;
15619	      ia64*)
15620	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15621	        ;;
15622	      *)
15623	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15624	        ;;
15625	    esac
15626	    # Commands to make compiler produce verbose output that lists
15627	    # what "hidden" libraries, object files and flags are used when
15628	    # linking a shared library.
15629	    #
15630	    # There doesn't appear to be a way to prevent this compiler from
15631	    # explicitly linking system object files so we need to strip them
15632	    # from the output so that they don't get included in the library
15633	    # dependencies.
15634	    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"'
15635	    ;;
15636          *)
15637	    if test yes = "$GXX"; then
15638	      if test no = "$with_gnu_ld"; then
15639	        case $host_cpu in
15640	          hppa*64*)
15641	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15642	            ;;
15643	          ia64*)
15644	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15645	            ;;
15646	          *)
15647	            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'
15648	            ;;
15649	        esac
15650	      fi
15651	    else
15652	      # FIXME: insert proper C++ library support
15653	      ld_shlibs_CXX=no
15654	    fi
15655	    ;;
15656        esac
15657        ;;
15658
15659      interix[3-9]*)
15660	hardcode_direct_CXX=no
15661	hardcode_shlibpath_var_CXX=no
15662	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15663	export_dynamic_flag_spec_CXX='$wl-E'
15664	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15665	# Instead, shared libraries are loaded at an image base (0x10000000 by
15666	# default) and relocated if they conflict, which is a slow very memory
15667	# consuming and fragmenting process.  To avoid this, we pick a random,
15668	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15669	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15670	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'
15671	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'
15672	;;
15673      irix5* | irix6*)
15674        case $cc_basename in
15675          CC*)
15676	    # SGI C++
15677	    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'
15678
15679	    # Archives containing C++ object files must be created using
15680	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15681	    # necessary to make sure instantiated templates are included
15682	    # in the archive.
15683	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15684	    ;;
15685          *)
15686	    if test yes = "$GXX"; then
15687	      if test no = "$with_gnu_ld"; then
15688	        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'
15689	      else
15690	        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'
15691	      fi
15692	    fi
15693	    link_all_deplibs_CXX=yes
15694	    ;;
15695        esac
15696        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15697        hardcode_libdir_separator_CXX=:
15698        inherit_rpath_CXX=yes
15699        ;;
15700
15701      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15702        case $cc_basename in
15703          KCC*)
15704	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15705
15706	    # KCC will only create a shared library if the output file
15707	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15708	    # to its proper name (with version) after linking.
15709	    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'
15710	    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'
15711	    # Commands to make compiler produce verbose output that lists
15712	    # what "hidden" libraries, object files and flags are used when
15713	    # linking a shared library.
15714	    #
15715	    # There doesn't appear to be a way to prevent this compiler from
15716	    # explicitly linking system object files so we need to strip them
15717	    # from the output so that they don't get included in the library
15718	    # dependencies.
15719	    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"'
15720
15721	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15722	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15723
15724	    # Archives containing C++ object files must be created using
15725	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15726	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15727	    ;;
15728	  icpc* | ecpc* )
15729	    # Intel C++
15730	    with_gnu_ld=yes
15731	    # version 8.0 and above of icpc choke on multiply defined symbols
15732	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15733	    # earlier do not add the objects themselves.
15734	    case `$CC -V 2>&1` in
15735	      *"Version 7."*)
15736	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15737		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'
15738		;;
15739	      *)  # Version 8.0 or newer
15740	        tmp_idyn=
15741	        case $host_cpu in
15742		  ia64*) tmp_idyn=' -i_dynamic';;
15743		esac
15744	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15745		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'
15746		;;
15747	    esac
15748	    archive_cmds_need_lc_CXX=no
15749	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15750	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15751	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15752	    ;;
15753          pgCC* | pgcpp*)
15754            # Portland Group C++ compiler
15755	    case `$CC -V` in
15756	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15757	      prelink_cmds_CXX='tpldir=Template.dir~
15758               rm -rf $tpldir~
15759               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15760               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15761	      old_archive_cmds_CXX='tpldir=Template.dir~
15762                rm -rf $tpldir~
15763                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15764                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15765                $RANLIB $oldlib'
15766	      archive_cmds_CXX='tpldir=Template.dir~
15767                rm -rf $tpldir~
15768                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15769                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15770	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15771                rm -rf $tpldir~
15772                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15773                $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'
15774	      ;;
15775	    *) # Version 6 and above use weak symbols
15776	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15777	      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'
15778	      ;;
15779	    esac
15780
15781	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15782	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15783	    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'
15784            ;;
15785	  cxx*)
15786	    # Compaq C++
15787	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15788	    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'
15789
15790	    runpath_var=LD_RUN_PATH
15791	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15792	    hardcode_libdir_separator_CXX=:
15793
15794	    # Commands to make compiler produce verbose output that lists
15795	    # what "hidden" libraries, object files and flags are used when
15796	    # linking a shared library.
15797	    #
15798	    # There doesn't appear to be a way to prevent this compiler from
15799	    # explicitly linking system object files so we need to strip them
15800	    # from the output so that they don't get included in the library
15801	    # dependencies.
15802	    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'
15803	    ;;
15804	  xl* | mpixl* | bgxl*)
15805	    # IBM XL 8.0 on PPC, with GNU ld
15806	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15807	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15808	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15809	    if test yes = "$supports_anon_versioning"; then
15810	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15811                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15812                echo "local: *; };" >> $output_objdir/$libname.ver~
15813                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15814	    fi
15815	    ;;
15816	  *)
15817	    case `$CC -V 2>&1 | sed 5q` in
15818	    *Sun\ C*)
15819	      # Sun C++ 5.9
15820	      no_undefined_flag_CXX=' -zdefs'
15821	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15822	      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'
15823	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15824	      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'
15825	      compiler_needs_object_CXX=yes
15826
15827	      # Not sure whether something based on
15828	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15829	      # would be better.
15830	      output_verbose_link_cmd='func_echo_all'
15831
15832	      # Archives containing C++ object files must be created using
15833	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15834	      # necessary to make sure instantiated templates are included
15835	      # in the archive.
15836	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15837	      ;;
15838	    esac
15839	    ;;
15840	esac
15841	;;
15842
15843      lynxos*)
15844        # FIXME: insert proper C++ library support
15845	ld_shlibs_CXX=no
15846	;;
15847
15848      m88k*)
15849        # FIXME: insert proper C++ library support
15850        ld_shlibs_CXX=no
15851	;;
15852
15853      mvs*)
15854        case $cc_basename in
15855          cxx*)
15856	    # FIXME: insert proper C++ library support
15857	    ld_shlibs_CXX=no
15858	    ;;
15859	  *)
15860	    # FIXME: insert proper C++ library support
15861	    ld_shlibs_CXX=no
15862	    ;;
15863	esac
15864	;;
15865
15866      netbsd*)
15867        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15868	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15869	  wlarc=
15870	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15871	  hardcode_direct_CXX=yes
15872	  hardcode_shlibpath_var_CXX=no
15873	fi
15874	# Workaround some broken pre-1.5 toolchains
15875	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15876	;;
15877
15878      *nto* | *qnx*)
15879        ld_shlibs_CXX=yes
15880	;;
15881
15882      openbsd* | bitrig*)
15883	if test -f /usr/libexec/ld.so; then
15884	  hardcode_direct_CXX=yes
15885	  hardcode_shlibpath_var_CXX=no
15886	  hardcode_direct_absolute_CXX=yes
15887	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15888	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15889	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15890	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15891	    export_dynamic_flag_spec_CXX='$wl-E'
15892	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15893	  fi
15894	  output_verbose_link_cmd=func_echo_all
15895	else
15896	  ld_shlibs_CXX=no
15897	fi
15898	;;
15899
15900      osf3* | osf4* | osf5*)
15901        case $cc_basename in
15902          KCC*)
15903	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15904
15905	    # KCC will only create a shared library if the output file
15906	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15907	    # to its proper name (with version) after linking.
15908	    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'
15909
15910	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15911	    hardcode_libdir_separator_CXX=:
15912
15913	    # Archives containing C++ object files must be created using
15914	    # the KAI C++ compiler.
15915	    case $host in
15916	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15917	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15918	    esac
15919	    ;;
15920          RCC*)
15921	    # Rational C++ 2.4.1
15922	    # FIXME: insert proper C++ library support
15923	    ld_shlibs_CXX=no
15924	    ;;
15925          cxx*)
15926	    case $host in
15927	      osf3*)
15928	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15929	        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'
15930	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15931		;;
15932	      *)
15933	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15934	        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'
15935	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15936                  echo "-hidden">> $lib.exp~
15937                  $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~
15938                  $RM $lib.exp'
15939	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15940		;;
15941	    esac
15942
15943	    hardcode_libdir_separator_CXX=:
15944
15945	    # Commands to make compiler produce verbose output that lists
15946	    # what "hidden" libraries, object files and flags are used when
15947	    # linking a shared library.
15948	    #
15949	    # There doesn't appear to be a way to prevent this compiler from
15950	    # explicitly linking system object files so we need to strip them
15951	    # from the output so that they don't get included in the library
15952	    # dependencies.
15953	    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"'
15954	    ;;
15955	  *)
15956	    if test yes,no = "$GXX,$with_gnu_ld"; then
15957	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15958	      case $host in
15959	        osf3*)
15960	          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'
15961		  ;;
15962	        *)
15963	          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'
15964		  ;;
15965	      esac
15966
15967	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15968	      hardcode_libdir_separator_CXX=:
15969
15970	      # Commands to make compiler produce verbose output that lists
15971	      # what "hidden" libraries, object files and flags are used when
15972	      # linking a shared library.
15973	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15974
15975	    else
15976	      # FIXME: insert proper C++ library support
15977	      ld_shlibs_CXX=no
15978	    fi
15979	    ;;
15980        esac
15981        ;;
15982
15983      psos*)
15984        # FIXME: insert proper C++ library support
15985        ld_shlibs_CXX=no
15986        ;;
15987
15988      sunos4*)
15989        case $cc_basename in
15990          CC*)
15991	    # Sun C++ 4.x
15992	    # FIXME: insert proper C++ library support
15993	    ld_shlibs_CXX=no
15994	    ;;
15995          lcc*)
15996	    # Lucid
15997	    # FIXME: insert proper C++ library support
15998	    ld_shlibs_CXX=no
15999	    ;;
16000          *)
16001	    # FIXME: insert proper C++ library support
16002	    ld_shlibs_CXX=no
16003	    ;;
16004        esac
16005        ;;
16006
16007      solaris*)
16008        case $cc_basename in
16009          CC* | sunCC*)
16010	    # Sun C++ 4.2, 5.x and Centerline C++
16011            archive_cmds_need_lc_CXX=yes
16012	    no_undefined_flag_CXX=' -zdefs'
16013	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16014	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16015              $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'
16016
16017	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16018	    hardcode_shlibpath_var_CXX=no
16019	    case $host_os in
16020	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16021	      *)
16022		# The compiler driver will combine and reorder linker options,
16023		# but understands '-z linker_flag'.
16024	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16025		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16026	        ;;
16027	    esac
16028	    link_all_deplibs_CXX=yes
16029
16030	    output_verbose_link_cmd='func_echo_all'
16031
16032	    # Archives containing C++ object files must be created using
16033	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16034	    # necessary to make sure instantiated templates are included
16035	    # in the archive.
16036	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16037	    ;;
16038          gcx*)
16039	    # Green Hills C++ Compiler
16040	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16041
16042	    # The C++ compiler must be used to create the archive.
16043	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16044	    ;;
16045          *)
16046	    # GNU C++ compiler with Solaris linker
16047	    if test yes,no = "$GXX,$with_gnu_ld"; then
16048	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16049	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16050	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16051	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16052                  $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'
16053
16054	        # Commands to make compiler produce verbose output that lists
16055	        # what "hidden" libraries, object files and flags are used when
16056	        # linking a shared library.
16057	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16058	      else
16059	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16060	        # platform.
16061	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16062	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16063                  $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'
16064
16065	        # Commands to make compiler produce verbose output that lists
16066	        # what "hidden" libraries, object files and flags are used when
16067	        # linking a shared library.
16068	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16069	      fi
16070
16071	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16072	      case $host_os in
16073		solaris2.[0-5] | solaris2.[0-5].*) ;;
16074		*)
16075		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16076		  ;;
16077	      esac
16078	    fi
16079	    ;;
16080        esac
16081        ;;
16082
16083    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16084      no_undefined_flag_CXX='$wl-z,text'
16085      archive_cmds_need_lc_CXX=no
16086      hardcode_shlibpath_var_CXX=no
16087      runpath_var='LD_RUN_PATH'
16088
16089      case $cc_basename in
16090        CC*)
16091	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16092	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16093	  ;;
16094	*)
16095	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16096	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16097	  ;;
16098      esac
16099      ;;
16100
16101      sysv5* | sco3.2v5* | sco5v6*)
16102	# Note: We CANNOT use -z defs as we might desire, because we do not
16103	# link with -lc, and that would cause any symbols used from libc to
16104	# always be unresolved, which means just about no library would
16105	# ever link correctly.  If we're not using GNU ld we use -z text
16106	# though, which does catch some bad symbols but isn't as heavy-handed
16107	# as -z defs.
16108	no_undefined_flag_CXX='$wl-z,text'
16109	allow_undefined_flag_CXX='$wl-z,nodefs'
16110	archive_cmds_need_lc_CXX=no
16111	hardcode_shlibpath_var_CXX=no
16112	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16113	hardcode_libdir_separator_CXX=':'
16114	link_all_deplibs_CXX=yes
16115	export_dynamic_flag_spec_CXX='$wl-Bexport'
16116	runpath_var='LD_RUN_PATH'
16117
16118	case $cc_basename in
16119          CC*)
16120	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16121	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16122	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16123              '"$old_archive_cmds_CXX"
16124	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16125              '"$reload_cmds_CXX"
16126	    ;;
16127	  *)
16128	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16129	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16130	    ;;
16131	esac
16132      ;;
16133
16134      tandem*)
16135        case $cc_basename in
16136          NCC*)
16137	    # NonStop-UX NCC 3.20
16138	    # FIXME: insert proper C++ library support
16139	    ld_shlibs_CXX=no
16140	    ;;
16141          *)
16142	    # FIXME: insert proper C++ library support
16143	    ld_shlibs_CXX=no
16144	    ;;
16145        esac
16146        ;;
16147
16148      vxworks*)
16149        # FIXME: insert proper C++ library support
16150        ld_shlibs_CXX=no
16151        ;;
16152
16153      *)
16154        # FIXME: insert proper C++ library support
16155        ld_shlibs_CXX=no
16156        ;;
16157    esac
16158
16159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16160$as_echo "$ld_shlibs_CXX" >&6; }
16161    test no = "$ld_shlibs_CXX" && can_build_shared=no
16162
16163    GCC_CXX=$GXX
16164    LD_CXX=$LD
16165
16166    ## CAVEAT EMPTOR:
16167    ## There is no encapsulation within the following macros, do not change
16168    ## the running order or otherwise move them around unless you know exactly
16169    ## what you are doing...
16170    # Dependencies to place before and after the object being linked:
16171predep_objects_CXX=
16172postdep_objects_CXX=
16173predeps_CXX=
16174postdeps_CXX=
16175compiler_lib_search_path_CXX=
16176
16177cat > conftest.$ac_ext <<_LT_EOF
16178class Foo
16179{
16180public:
16181  Foo (void) { a = 0; }
16182private:
16183  int a;
16184};
16185_LT_EOF
16186
16187
16188_lt_libdeps_save_CFLAGS=$CFLAGS
16189case "$CC $CFLAGS " in #(
16190*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16191*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16192*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16193esac
16194
16195if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16196  (eval $ac_compile) 2>&5
16197  ac_status=$?
16198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16199  test $ac_status = 0; }; then
16200  # Parse the compiler output and extract the necessary
16201  # objects, libraries and library flags.
16202
16203  # Sentinel used to keep track of whether or not we are before
16204  # the conftest object file.
16205  pre_test_object_deps_done=no
16206
16207  for p in `eval "$output_verbose_link_cmd"`; do
16208    case $prev$p in
16209
16210    -L* | -R* | -l*)
16211       # Some compilers place space between "-{L,R}" and the path.
16212       # Remove the space.
16213       if test x-L = "$p" ||
16214          test x-R = "$p"; then
16215	 prev=$p
16216	 continue
16217       fi
16218
16219       # Expand the sysroot to ease extracting the directories later.
16220       if test -z "$prev"; then
16221         case $p in
16222         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16223         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16224         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16225         esac
16226       fi
16227       case $p in
16228       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16229       esac
16230       if test no = "$pre_test_object_deps_done"; then
16231	 case $prev in
16232	 -L | -R)
16233	   # Internal compiler library paths should come after those
16234	   # provided the user.  The postdeps already come after the
16235	   # user supplied libs so there is no need to process them.
16236	   if test -z "$compiler_lib_search_path_CXX"; then
16237	     compiler_lib_search_path_CXX=$prev$p
16238	   else
16239	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16240	   fi
16241	   ;;
16242	 # The "-l" case would never come before the object being
16243	 # linked, so don't bother handling this case.
16244	 esac
16245       else
16246	 if test -z "$postdeps_CXX"; then
16247	   postdeps_CXX=$prev$p
16248	 else
16249	   postdeps_CXX="${postdeps_CXX} $prev$p"
16250	 fi
16251       fi
16252       prev=
16253       ;;
16254
16255    *.lto.$objext) ;; # Ignore GCC LTO objects
16256    *.$objext)
16257       # This assumes that the test object file only shows up
16258       # once in the compiler output.
16259       if test "$p" = "conftest.$objext"; then
16260	 pre_test_object_deps_done=yes
16261	 continue
16262       fi
16263
16264       if test no = "$pre_test_object_deps_done"; then
16265	 if test -z "$predep_objects_CXX"; then
16266	   predep_objects_CXX=$p
16267	 else
16268	   predep_objects_CXX="$predep_objects_CXX $p"
16269	 fi
16270       else
16271	 if test -z "$postdep_objects_CXX"; then
16272	   postdep_objects_CXX=$p
16273	 else
16274	   postdep_objects_CXX="$postdep_objects_CXX $p"
16275	 fi
16276       fi
16277       ;;
16278
16279    *) ;; # Ignore the rest.
16280
16281    esac
16282  done
16283
16284  # Clean up.
16285  rm -f a.out a.exe
16286else
16287  echo "libtool.m4: error: problem compiling CXX test program"
16288fi
16289
16290$RM -f confest.$objext
16291CFLAGS=$_lt_libdeps_save_CFLAGS
16292
16293# PORTME: override above test on systems where it is broken
16294case $host_os in
16295interix[3-9]*)
16296  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16297  # hack all around it, let's just trust "g++" to DTRT.
16298  predep_objects_CXX=
16299  postdep_objects_CXX=
16300  postdeps_CXX=
16301  ;;
16302esac
16303
16304
16305case " $postdeps_CXX " in
16306*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16307esac
16308 compiler_lib_search_dirs_CXX=
16309if test -n "${compiler_lib_search_path_CXX}"; then
16310 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16311fi
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343    lt_prog_compiler_wl_CXX=
16344lt_prog_compiler_pic_CXX=
16345lt_prog_compiler_static_CXX=
16346
16347
16348  # C++ specific cases for pic, static, wl, etc.
16349  if test yes = "$GXX"; then
16350    lt_prog_compiler_wl_CXX='-Wl,'
16351    lt_prog_compiler_static_CXX='-static'
16352
16353    case $host_os in
16354    aix*)
16355      # All AIX code is PIC.
16356      if test ia64 = "$host_cpu"; then
16357	# AIX 5 now supports IA64 processor
16358	lt_prog_compiler_static_CXX='-Bstatic'
16359      fi
16360      lt_prog_compiler_pic_CXX='-fPIC'
16361      ;;
16362
16363    amigaos*)
16364      case $host_cpu in
16365      powerpc)
16366            # see comment about AmigaOS4 .so support
16367            lt_prog_compiler_pic_CXX='-fPIC'
16368        ;;
16369      m68k)
16370            # FIXME: we need at least 68020 code to build shared libraries, but
16371            # adding the '-m68020' flag to GCC prevents building anything better,
16372            # like '-m68040'.
16373            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16374        ;;
16375      esac
16376      ;;
16377
16378    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16379      # PIC is the default for these OSes.
16380      ;;
16381    mingw* | cygwin* | os2* | pw32* | cegcc*)
16382      # This hack is so that the source file can tell whether it is being
16383      # built for inclusion in a dll (and should export symbols for example).
16384      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16385      # (--disable-auto-import) libraries
16386      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16387      case $host_os in
16388      os2*)
16389	lt_prog_compiler_static_CXX='$wl-static'
16390	;;
16391      esac
16392      ;;
16393    darwin* | rhapsody*)
16394      # PIC is the default on this platform
16395      # Common symbols not allowed in MH_DYLIB files
16396      lt_prog_compiler_pic_CXX='-fno-common'
16397      ;;
16398    *djgpp*)
16399      # DJGPP does not support shared libraries at all
16400      lt_prog_compiler_pic_CXX=
16401      ;;
16402    haiku*)
16403      # PIC is the default for Haiku.
16404      # The "-static" flag exists, but is broken.
16405      lt_prog_compiler_static_CXX=
16406      ;;
16407    interix[3-9]*)
16408      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16409      # Instead, we relocate shared libraries at runtime.
16410      ;;
16411    sysv4*MP*)
16412      if test -d /usr/nec; then
16413	lt_prog_compiler_pic_CXX=-Kconform_pic
16414      fi
16415      ;;
16416    hpux*)
16417      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16418      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16419      # sets the default TLS model and affects inlining.
16420      case $host_cpu in
16421      hppa*64*)
16422	;;
16423      *)
16424	lt_prog_compiler_pic_CXX='-fPIC'
16425	;;
16426      esac
16427      ;;
16428    *qnx* | *nto*)
16429      # QNX uses GNU C++, but need to define -shared option too, otherwise
16430      # it will coredump.
16431      lt_prog_compiler_pic_CXX='-fPIC -shared'
16432      ;;
16433    *)
16434      lt_prog_compiler_pic_CXX='-fPIC'
16435      ;;
16436    esac
16437  else
16438    case $host_os in
16439      aix[4-9]*)
16440	# All AIX code is PIC.
16441	if test ia64 = "$host_cpu"; then
16442	  # AIX 5 now supports IA64 processor
16443	  lt_prog_compiler_static_CXX='-Bstatic'
16444	else
16445	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16446	fi
16447	;;
16448      chorus*)
16449	case $cc_basename in
16450	cxch68*)
16451	  # Green Hills C++ Compiler
16452	  # _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"
16453	  ;;
16454	esac
16455	;;
16456      mingw* | cygwin* | os2* | pw32* | cegcc*)
16457	# This hack is so that the source file can tell whether it is being
16458	# built for inclusion in a dll (and should export symbols for example).
16459	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16460	;;
16461      dgux*)
16462	case $cc_basename in
16463	  ec++*)
16464	    lt_prog_compiler_pic_CXX='-KPIC'
16465	    ;;
16466	  ghcx*)
16467	    # Green Hills C++ Compiler
16468	    lt_prog_compiler_pic_CXX='-pic'
16469	    ;;
16470	  *)
16471	    ;;
16472	esac
16473	;;
16474      freebsd* | dragonfly*)
16475	# FreeBSD uses GNU C++
16476	;;
16477      hpux9* | hpux10* | hpux11*)
16478	case $cc_basename in
16479	  CC*)
16480	    lt_prog_compiler_wl_CXX='-Wl,'
16481	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16482	    if test ia64 != "$host_cpu"; then
16483	      lt_prog_compiler_pic_CXX='+Z'
16484	    fi
16485	    ;;
16486	  aCC*)
16487	    lt_prog_compiler_wl_CXX='-Wl,'
16488	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16489	    case $host_cpu in
16490	    hppa*64*|ia64*)
16491	      # +Z the default
16492	      ;;
16493	    *)
16494	      lt_prog_compiler_pic_CXX='+Z'
16495	      ;;
16496	    esac
16497	    ;;
16498	  *)
16499	    ;;
16500	esac
16501	;;
16502      interix*)
16503	# This is c89, which is MS Visual C++ (no shared libs)
16504	# Anyone wants to do a port?
16505	;;
16506      irix5* | irix6* | nonstopux*)
16507	case $cc_basename in
16508	  CC*)
16509	    lt_prog_compiler_wl_CXX='-Wl,'
16510	    lt_prog_compiler_static_CXX='-non_shared'
16511	    # CC pic flag -KPIC is the default.
16512	    ;;
16513	  *)
16514	    ;;
16515	esac
16516	;;
16517      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16518	case $cc_basename in
16519	  KCC*)
16520	    # KAI C++ Compiler
16521	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16522	    lt_prog_compiler_pic_CXX='-fPIC'
16523	    ;;
16524	  ecpc* )
16525	    # old Intel C++ for x86_64, which still supported -KPIC.
16526	    lt_prog_compiler_wl_CXX='-Wl,'
16527	    lt_prog_compiler_pic_CXX='-KPIC'
16528	    lt_prog_compiler_static_CXX='-static'
16529	    ;;
16530	  icpc* )
16531	    # Intel C++, used to be incompatible with GCC.
16532	    # ICC 10 doesn't accept -KPIC any more.
16533	    lt_prog_compiler_wl_CXX='-Wl,'
16534	    lt_prog_compiler_pic_CXX='-fPIC'
16535	    lt_prog_compiler_static_CXX='-static'
16536	    ;;
16537	  pgCC* | pgcpp*)
16538	    # Portland Group C++ compiler
16539	    lt_prog_compiler_wl_CXX='-Wl,'
16540	    lt_prog_compiler_pic_CXX='-fpic'
16541	    lt_prog_compiler_static_CXX='-Bstatic'
16542	    ;;
16543	  cxx*)
16544	    # Compaq C++
16545	    # Make sure the PIC flag is empty.  It appears that all Alpha
16546	    # Linux and Compaq Tru64 Unix objects are PIC.
16547	    lt_prog_compiler_pic_CXX=
16548	    lt_prog_compiler_static_CXX='-non_shared'
16549	    ;;
16550	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16551	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16552	    lt_prog_compiler_wl_CXX='-Wl,'
16553	    lt_prog_compiler_pic_CXX='-qpic'
16554	    lt_prog_compiler_static_CXX='-qstaticlink'
16555	    ;;
16556	  *)
16557	    case `$CC -V 2>&1 | sed 5q` in
16558	    *Sun\ C*)
16559	      # Sun C++ 5.9
16560	      lt_prog_compiler_pic_CXX='-KPIC'
16561	      lt_prog_compiler_static_CXX='-Bstatic'
16562	      lt_prog_compiler_wl_CXX='-Qoption ld '
16563	      ;;
16564	    esac
16565	    ;;
16566	esac
16567	;;
16568      lynxos*)
16569	;;
16570      m88k*)
16571	;;
16572      mvs*)
16573	case $cc_basename in
16574	  cxx*)
16575	    lt_prog_compiler_pic_CXX='-W c,exportall'
16576	    ;;
16577	  *)
16578	    ;;
16579	esac
16580	;;
16581      netbsd*)
16582	;;
16583      *qnx* | *nto*)
16584        # QNX uses GNU C++, but need to define -shared option too, otherwise
16585        # it will coredump.
16586        lt_prog_compiler_pic_CXX='-fPIC -shared'
16587        ;;
16588      osf3* | osf4* | osf5*)
16589	case $cc_basename in
16590	  KCC*)
16591	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16592	    ;;
16593	  RCC*)
16594	    # Rational C++ 2.4.1
16595	    lt_prog_compiler_pic_CXX='-pic'
16596	    ;;
16597	  cxx*)
16598	    # Digital/Compaq C++
16599	    lt_prog_compiler_wl_CXX='-Wl,'
16600	    # Make sure the PIC flag is empty.  It appears that all Alpha
16601	    # Linux and Compaq Tru64 Unix objects are PIC.
16602	    lt_prog_compiler_pic_CXX=
16603	    lt_prog_compiler_static_CXX='-non_shared'
16604	    ;;
16605	  *)
16606	    ;;
16607	esac
16608	;;
16609      psos*)
16610	;;
16611      solaris*)
16612	case $cc_basename in
16613	  CC* | sunCC*)
16614	    # Sun C++ 4.2, 5.x and Centerline C++
16615	    lt_prog_compiler_pic_CXX='-KPIC'
16616	    lt_prog_compiler_static_CXX='-Bstatic'
16617	    lt_prog_compiler_wl_CXX='-Qoption ld '
16618	    ;;
16619	  gcx*)
16620	    # Green Hills C++ Compiler
16621	    lt_prog_compiler_pic_CXX='-PIC'
16622	    ;;
16623	  *)
16624	    ;;
16625	esac
16626	;;
16627      sunos4*)
16628	case $cc_basename in
16629	  CC*)
16630	    # Sun C++ 4.x
16631	    lt_prog_compiler_pic_CXX='-pic'
16632	    lt_prog_compiler_static_CXX='-Bstatic'
16633	    ;;
16634	  lcc*)
16635	    # Lucid
16636	    lt_prog_compiler_pic_CXX='-pic'
16637	    ;;
16638	  *)
16639	    ;;
16640	esac
16641	;;
16642      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16643	case $cc_basename in
16644	  CC*)
16645	    lt_prog_compiler_wl_CXX='-Wl,'
16646	    lt_prog_compiler_pic_CXX='-KPIC'
16647	    lt_prog_compiler_static_CXX='-Bstatic'
16648	    ;;
16649	esac
16650	;;
16651      tandem*)
16652	case $cc_basename in
16653	  NCC*)
16654	    # NonStop-UX NCC 3.20
16655	    lt_prog_compiler_pic_CXX='-KPIC'
16656	    ;;
16657	  *)
16658	    ;;
16659	esac
16660	;;
16661      vxworks*)
16662	;;
16663      *)
16664	lt_prog_compiler_can_build_shared_CXX=no
16665	;;
16666    esac
16667  fi
16668
16669case $host_os in
16670  # For platforms that do not support PIC, -DPIC is meaningless:
16671  *djgpp*)
16672    lt_prog_compiler_pic_CXX=
16673    ;;
16674  *)
16675    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16676    ;;
16677esac
16678
16679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16680$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16681if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16682  $as_echo_n "(cached) " >&6
16683else
16684  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16685fi
16686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16687$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16688lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16689
16690#
16691# Check to make sure the PIC flag actually works.
16692#
16693if test -n "$lt_prog_compiler_pic_CXX"; then
16694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16695$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16696if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16697  $as_echo_n "(cached) " >&6
16698else
16699  lt_cv_prog_compiler_pic_works_CXX=no
16700   ac_outfile=conftest.$ac_objext
16701   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16702   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16703   # Insert the option either (1) after the last *FLAGS variable, or
16704   # (2) before a word containing "conftest.", or (3) at the end.
16705   # Note that $ac_compile itself does not contain backslashes and begins
16706   # with a dollar sign (not a hyphen), so the echo should work correctly.
16707   # The option is referenced via a variable to avoid confusing sed.
16708   lt_compile=`echo "$ac_compile" | $SED \
16709   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16710   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16711   -e 's:$: $lt_compiler_flag:'`
16712   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16713   (eval "$lt_compile" 2>conftest.err)
16714   ac_status=$?
16715   cat conftest.err >&5
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   if (exit $ac_status) && test -s "$ac_outfile"; then
16718     # The compiler can only warn and ignore the option if not recognized
16719     # So say no if there are warnings other than the usual output.
16720     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16721     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16722     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16723       lt_cv_prog_compiler_pic_works_CXX=yes
16724     fi
16725   fi
16726   $RM conftest*
16727
16728fi
16729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16730$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16731
16732if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16733    case $lt_prog_compiler_pic_CXX in
16734     "" | " "*) ;;
16735     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16736     esac
16737else
16738    lt_prog_compiler_pic_CXX=
16739     lt_prog_compiler_can_build_shared_CXX=no
16740fi
16741
16742fi
16743
16744
16745
16746
16747
16748#
16749# Check to make sure the static flag actually works.
16750#
16751wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16753$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16754if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16755  $as_echo_n "(cached) " >&6
16756else
16757  lt_cv_prog_compiler_static_works_CXX=no
16758   save_LDFLAGS=$LDFLAGS
16759   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16760   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16761   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16762     # The linker can only warn and ignore the option if not recognized
16763     # So say no if there are warnings
16764     if test -s conftest.err; then
16765       # Append any errors to the config.log.
16766       cat conftest.err 1>&5
16767       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16768       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16769       if diff conftest.exp conftest.er2 >/dev/null; then
16770         lt_cv_prog_compiler_static_works_CXX=yes
16771       fi
16772     else
16773       lt_cv_prog_compiler_static_works_CXX=yes
16774     fi
16775   fi
16776   $RM -r conftest*
16777   LDFLAGS=$save_LDFLAGS
16778
16779fi
16780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16781$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16782
16783if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16784    :
16785else
16786    lt_prog_compiler_static_CXX=
16787fi
16788
16789
16790
16791
16792    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16793$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16794if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16795  $as_echo_n "(cached) " >&6
16796else
16797  lt_cv_prog_compiler_c_o_CXX=no
16798   $RM -r conftest 2>/dev/null
16799   mkdir conftest
16800   cd conftest
16801   mkdir out
16802   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16803
16804   lt_compiler_flag="-o out/conftest2.$ac_objext"
16805   # Insert the option either (1) after the last *FLAGS variable, or
16806   # (2) before a word containing "conftest.", or (3) at the end.
16807   # Note that $ac_compile itself does not contain backslashes and begins
16808   # with a dollar sign (not a hyphen), so the echo should work correctly.
16809   lt_compile=`echo "$ac_compile" | $SED \
16810   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16811   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16812   -e 's:$: $lt_compiler_flag:'`
16813   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16814   (eval "$lt_compile" 2>out/conftest.err)
16815   ac_status=$?
16816   cat out/conftest.err >&5
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16819   then
16820     # The compiler can only warn and ignore the option if not recognized
16821     # So say no if there are warnings
16822     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16823     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16824     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16825       lt_cv_prog_compiler_c_o_CXX=yes
16826     fi
16827   fi
16828   chmod u+w . 2>&5
16829   $RM conftest*
16830   # SGI C++ compiler will create directory out/ii_files/ for
16831   # template instantiation
16832   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16833   $RM out/* && rmdir out
16834   cd ..
16835   $RM -r conftest
16836   $RM conftest*
16837
16838fi
16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16840$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16841
16842
16843
16844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16845$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16846if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16847  $as_echo_n "(cached) " >&6
16848else
16849  lt_cv_prog_compiler_c_o_CXX=no
16850   $RM -r conftest 2>/dev/null
16851   mkdir conftest
16852   cd conftest
16853   mkdir out
16854   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16855
16856   lt_compiler_flag="-o out/conftest2.$ac_objext"
16857   # Insert the option either (1) after the last *FLAGS variable, or
16858   # (2) before a word containing "conftest.", or (3) at the end.
16859   # Note that $ac_compile itself does not contain backslashes and begins
16860   # with a dollar sign (not a hyphen), so the echo should work correctly.
16861   lt_compile=`echo "$ac_compile" | $SED \
16862   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16863   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16864   -e 's:$: $lt_compiler_flag:'`
16865   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16866   (eval "$lt_compile" 2>out/conftest.err)
16867   ac_status=$?
16868   cat out/conftest.err >&5
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16871   then
16872     # The compiler can only warn and ignore the option if not recognized
16873     # So say no if there are warnings
16874     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16875     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16876     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16877       lt_cv_prog_compiler_c_o_CXX=yes
16878     fi
16879   fi
16880   chmod u+w . 2>&5
16881   $RM conftest*
16882   # SGI C++ compiler will create directory out/ii_files/ for
16883   # template instantiation
16884   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16885   $RM out/* && rmdir out
16886   cd ..
16887   $RM -r conftest
16888   $RM conftest*
16889
16890fi
16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16892$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16893
16894
16895
16896
16897hard_links=nottested
16898if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16899  # do not overwrite the value of need_locks provided by the user
16900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16901$as_echo_n "checking if we can lock with hard links... " >&6; }
16902  hard_links=yes
16903  $RM conftest*
16904  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16905  touch conftest.a
16906  ln conftest.a conftest.b 2>&5 || hard_links=no
16907  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16909$as_echo "$hard_links" >&6; }
16910  if test no = "$hard_links"; then
16911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16912$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16913    need_locks=warn
16914  fi
16915else
16916  need_locks=no
16917fi
16918
16919
16920
16921    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16922$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16923
16924  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16925  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16926  case $host_os in
16927  aix[4-9]*)
16928    # If we're using GNU nm, then we don't want the "-C" option.
16929    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16930    # Without the "-l" option, or with the "-B" option, AIX nm treats
16931    # weak defined symbols like other global defined symbols, whereas
16932    # GNU nm marks them as "W".
16933    # While the 'weak' keyword is ignored in the Export File, we need
16934    # it in the Import File for the 'aix-soname' feature, so we have
16935    # to replace the "-B" option with "-P" for AIX nm.
16936    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16937      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'
16938    else
16939      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'
16940    fi
16941    ;;
16942  pw32*)
16943    export_symbols_cmds_CXX=$ltdll_cmds
16944    ;;
16945  cygwin* | mingw* | cegcc*)
16946    case $cc_basename in
16947    cl*)
16948      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16949      ;;
16950    *)
16951      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'
16952      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16953      ;;
16954    esac
16955    ;;
16956  *)
16957    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16958    ;;
16959  esac
16960
16961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16962$as_echo "$ld_shlibs_CXX" >&6; }
16963test no = "$ld_shlibs_CXX" && can_build_shared=no
16964
16965with_gnu_ld_CXX=$with_gnu_ld
16966
16967
16968
16969
16970
16971
16972#
16973# Do we need to explicitly link libc?
16974#
16975case "x$archive_cmds_need_lc_CXX" in
16976x|xyes)
16977  # Assume -lc should be added
16978  archive_cmds_need_lc_CXX=yes
16979
16980  if test yes,yes = "$GCC,$enable_shared"; then
16981    case $archive_cmds_CXX in
16982    *'~'*)
16983      # FIXME: we may have to deal with multi-command sequences.
16984      ;;
16985    '$CC '*)
16986      # Test whether the compiler implicitly links with -lc since on some
16987      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16988      # to ld, don't add -lc before -lgcc.
16989      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16990$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16991if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16992  $as_echo_n "(cached) " >&6
16993else
16994  $RM conftest*
16995	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16996
16997	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16998  (eval $ac_compile) 2>&5
16999  ac_status=$?
17000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17001  test $ac_status = 0; } 2>conftest.err; then
17002	  soname=conftest
17003	  lib=conftest
17004	  libobjs=conftest.$ac_objext
17005	  deplibs=
17006	  wl=$lt_prog_compiler_wl_CXX
17007	  pic_flag=$lt_prog_compiler_pic_CXX
17008	  compiler_flags=-v
17009	  linker_flags=-v
17010	  verstring=
17011	  output_objdir=.
17012	  libname=conftest
17013	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17014	  allow_undefined_flag_CXX=
17015	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17016  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17017  ac_status=$?
17018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17019  test $ac_status = 0; }
17020	  then
17021	    lt_cv_archive_cmds_need_lc_CXX=no
17022	  else
17023	    lt_cv_archive_cmds_need_lc_CXX=yes
17024	  fi
17025	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17026	else
17027	  cat conftest.err 1>&5
17028	fi
17029	$RM conftest*
17030
17031fi
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17033$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17034      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17035      ;;
17036    esac
17037  fi
17038  ;;
17039esac
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17103$as_echo_n "checking dynamic linker characteristics... " >&6; }
17104
17105library_names_spec=
17106libname_spec='lib$name'
17107soname_spec=
17108shrext_cmds=.so
17109postinstall_cmds=
17110postuninstall_cmds=
17111finish_cmds=
17112finish_eval=
17113shlibpath_var=
17114shlibpath_overrides_runpath=unknown
17115version_type=none
17116dynamic_linker="$host_os ld.so"
17117sys_lib_dlsearch_path_spec="/lib /usr/lib"
17118need_lib_prefix=unknown
17119hardcode_into_libs=no
17120
17121# when you set need_version to no, make sure it does not cause -set_version
17122# flags to be left without arguments
17123need_version=unknown
17124
17125
17126
17127case $host_os in
17128aix3*)
17129  version_type=linux # correct to gnu/linux during the next big refactor
17130  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17131  shlibpath_var=LIBPATH
17132
17133  # AIX 3 has no versioning support, so we append a major version to the name.
17134  soname_spec='$libname$release$shared_ext$major'
17135  ;;
17136
17137aix[4-9]*)
17138  version_type=linux # correct to gnu/linux during the next big refactor
17139  need_lib_prefix=no
17140  need_version=no
17141  hardcode_into_libs=yes
17142  if test ia64 = "$host_cpu"; then
17143    # AIX 5 supports IA64
17144    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17145    shlibpath_var=LD_LIBRARY_PATH
17146  else
17147    # With GCC up to 2.95.x, collect2 would create an import file
17148    # for dependence libraries.  The import file would start with
17149    # the line '#! .'.  This would cause the generated library to
17150    # depend on '.', always an invalid library.  This was fixed in
17151    # development snapshots of GCC prior to 3.0.
17152    case $host_os in
17153      aix4 | aix4.[01] | aix4.[01].*)
17154      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17155	   echo ' yes '
17156	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17157	:
17158      else
17159	can_build_shared=no
17160      fi
17161      ;;
17162    esac
17163    # Using Import Files as archive members, it is possible to support
17164    # filename-based versioning of shared library archives on AIX. While
17165    # this would work for both with and without runtime linking, it will
17166    # prevent static linking of such archives. So we do filename-based
17167    # shared library versioning with .so extension only, which is used
17168    # when both runtime linking and shared linking is enabled.
17169    # Unfortunately, runtime linking may impact performance, so we do
17170    # not want this to be the default eventually. Also, we use the
17171    # versioned .so libs for executables only if there is the -brtl
17172    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17173    # To allow for filename-based versioning support, we need to create
17174    # libNAME.so.V as an archive file, containing:
17175    # *) an Import File, referring to the versioned filename of the
17176    #    archive as well as the shared archive member, telling the
17177    #    bitwidth (32 or 64) of that shared object, and providing the
17178    #    list of exported symbols of that shared object, eventually
17179    #    decorated with the 'weak' keyword
17180    # *) the shared object with the F_LOADONLY flag set, to really avoid
17181    #    it being seen by the linker.
17182    # At run time we better use the real file rather than another symlink,
17183    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17184
17185    case $with_aix_soname,$aix_use_runtimelinking in
17186    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17187    # soname into executable. Probably we can add versioning support to
17188    # collect2, so additional links can be useful in future.
17189    aix,yes) # traditional libtool
17190      dynamic_linker='AIX unversionable lib.so'
17191      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17192      # instead of lib<name>.a to let people know that these are not
17193      # typical AIX shared libraries.
17194      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17195      ;;
17196    aix,no) # traditional AIX only
17197      dynamic_linker='AIX lib.a(lib.so.V)'
17198      # We preserve .a as extension for shared libraries through AIX4.2
17199      # and later when we are not doing run time linking.
17200      library_names_spec='$libname$release.a $libname.a'
17201      soname_spec='$libname$release$shared_ext$major'
17202      ;;
17203    svr4,*) # full svr4 only
17204      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17205      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17206      # We do not specify a path in Import Files, so LIBPATH fires.
17207      shlibpath_overrides_runpath=yes
17208      ;;
17209    *,yes) # both, prefer svr4
17210      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17211      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17212      # unpreferred sharedlib libNAME.a needs extra handling
17213      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"'
17214      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"'
17215      # We do not specify a path in Import Files, so LIBPATH fires.
17216      shlibpath_overrides_runpath=yes
17217      ;;
17218    *,no) # both, prefer aix
17219      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17220      library_names_spec='$libname$release.a $libname.a'
17221      soname_spec='$libname$release$shared_ext$major'
17222      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17223      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)'
17224      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"'
17225      ;;
17226    esac
17227    shlibpath_var=LIBPATH
17228  fi
17229  ;;
17230
17231amigaos*)
17232  case $host_cpu in
17233  powerpc)
17234    # Since July 2007 AmigaOS4 officially supports .so libraries.
17235    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17236    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17237    ;;
17238  m68k)
17239    library_names_spec='$libname.ixlibrary $libname.a'
17240    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17241    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'
17242    ;;
17243  esac
17244  ;;
17245
17246beos*)
17247  library_names_spec='$libname$shared_ext'
17248  dynamic_linker="$host_os ld.so"
17249  shlibpath_var=LIBRARY_PATH
17250  ;;
17251
17252bsdi[45]*)
17253  version_type=linux # correct to gnu/linux during the next big refactor
17254  need_version=no
17255  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17256  soname_spec='$libname$release$shared_ext$major'
17257  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17258  shlibpath_var=LD_LIBRARY_PATH
17259  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17260  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17261  # the default ld.so.conf also contains /usr/contrib/lib and
17262  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17263  # libtool to hard-code these into programs
17264  ;;
17265
17266cygwin* | mingw* | pw32* | cegcc*)
17267  version_type=windows
17268  shrext_cmds=.dll
17269  need_version=no
17270  need_lib_prefix=no
17271
17272  case $GCC,$cc_basename in
17273  yes,*)
17274    # gcc
17275    library_names_spec='$libname.dll.a'
17276    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17277    postinstall_cmds='base_file=`basename \$file`~
17278      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17279      dldir=$destdir/`dirname \$dlpath`~
17280      test -d \$dldir || mkdir -p \$dldir~
17281      $install_prog $dir/$dlname \$dldir/$dlname~
17282      chmod a+x \$dldir/$dlname~
17283      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17284        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17285      fi'
17286    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17287      dlpath=$dir/\$dldll~
17288       $RM \$dlpath'
17289    shlibpath_overrides_runpath=yes
17290
17291    case $host_os in
17292    cygwin*)
17293      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17294      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17295
17296      ;;
17297    mingw* | cegcc*)
17298      # MinGW DLLs use traditional 'lib' prefix
17299      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17300      ;;
17301    pw32*)
17302      # pw32 DLLs use 'pw' prefix rather than 'lib'
17303      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17304      ;;
17305    esac
17306    dynamic_linker='Win32 ld.exe'
17307    ;;
17308
17309  *,cl*)
17310    # Native MSVC
17311    libname_spec='$name'
17312    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17313    library_names_spec='$libname.dll.lib'
17314
17315    case $build_os in
17316    mingw*)
17317      sys_lib_search_path_spec=
17318      lt_save_ifs=$IFS
17319      IFS=';'
17320      for lt_path in $LIB
17321      do
17322        IFS=$lt_save_ifs
17323        # Let DOS variable expansion print the short 8.3 style file name.
17324        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17325        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17326      done
17327      IFS=$lt_save_ifs
17328      # Convert to MSYS style.
17329      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17330      ;;
17331    cygwin*)
17332      # Convert to unix form, then to dos form, then back to unix form
17333      # but this time dos style (no spaces!) so that the unix form looks
17334      # like /cygdrive/c/PROGRA~1:/cygdr...
17335      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17336      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17337      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17338      ;;
17339    *)
17340      sys_lib_search_path_spec=$LIB
17341      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17342        # It is most probably a Windows format PATH.
17343        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17344      else
17345        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17346      fi
17347      # FIXME: find the short name or the path components, as spaces are
17348      # common. (e.g. "Program Files" -> "PROGRA~1")
17349      ;;
17350    esac
17351
17352    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17353    postinstall_cmds='base_file=`basename \$file`~
17354      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17355      dldir=$destdir/`dirname \$dlpath`~
17356      test -d \$dldir || mkdir -p \$dldir~
17357      $install_prog $dir/$dlname \$dldir/$dlname'
17358    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17359      dlpath=$dir/\$dldll~
17360       $RM \$dlpath'
17361    shlibpath_overrides_runpath=yes
17362    dynamic_linker='Win32 link.exe'
17363    ;;
17364
17365  *)
17366    # Assume MSVC wrapper
17367    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17368    dynamic_linker='Win32 ld.exe'
17369    ;;
17370  esac
17371  # FIXME: first we should search . and the directory the executable is in
17372  shlibpath_var=PATH
17373  ;;
17374
17375darwin* | rhapsody*)
17376  dynamic_linker="$host_os dyld"
17377  version_type=darwin
17378  need_lib_prefix=no
17379  need_version=no
17380  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17381  soname_spec='$libname$release$major$shared_ext'
17382  shlibpath_overrides_runpath=yes
17383  shlibpath_var=DYLD_LIBRARY_PATH
17384  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17385
17386  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17387  ;;
17388
17389dgux*)
17390  version_type=linux # correct to gnu/linux during the next big refactor
17391  need_lib_prefix=no
17392  need_version=no
17393  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17394  soname_spec='$libname$release$shared_ext$major'
17395  shlibpath_var=LD_LIBRARY_PATH
17396  ;;
17397
17398freebsd* | dragonfly*)
17399  # DragonFly does not have aout.  When/if they implement a new
17400  # versioning mechanism, adjust this.
17401  if test -x /usr/bin/objformat; then
17402    objformat=`/usr/bin/objformat`
17403  else
17404    case $host_os in
17405    freebsd[23].*) objformat=aout ;;
17406    *) objformat=elf ;;
17407    esac
17408  fi
17409  version_type=freebsd-$objformat
17410  case $version_type in
17411    freebsd-elf*)
17412      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17413      soname_spec='$libname$release$shared_ext$major'
17414      need_version=no
17415      need_lib_prefix=no
17416      ;;
17417    freebsd-*)
17418      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17419      need_version=yes
17420      ;;
17421  esac
17422  shlibpath_var=LD_LIBRARY_PATH
17423  case $host_os in
17424  freebsd2.*)
17425    shlibpath_overrides_runpath=yes
17426    ;;
17427  freebsd3.[01]* | freebsdelf3.[01]*)
17428    shlibpath_overrides_runpath=yes
17429    hardcode_into_libs=yes
17430    ;;
17431  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17432  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17433    shlibpath_overrides_runpath=no
17434    hardcode_into_libs=yes
17435    ;;
17436  *) # from 4.6 on, and DragonFly
17437    shlibpath_overrides_runpath=yes
17438    hardcode_into_libs=yes
17439    ;;
17440  esac
17441  ;;
17442
17443haiku*)
17444  version_type=linux # correct to gnu/linux during the next big refactor
17445  need_lib_prefix=no
17446  need_version=no
17447  dynamic_linker="$host_os runtime_loader"
17448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17449  soname_spec='$libname$release$shared_ext$major'
17450  shlibpath_var=LIBRARY_PATH
17451  shlibpath_overrides_runpath=no
17452  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17453  hardcode_into_libs=yes
17454  ;;
17455
17456hpux9* | hpux10* | hpux11*)
17457  # Give a soname corresponding to the major version so that dld.sl refuses to
17458  # link against other versions.
17459  version_type=sunos
17460  need_lib_prefix=no
17461  need_version=no
17462  case $host_cpu in
17463  ia64*)
17464    shrext_cmds='.so'
17465    hardcode_into_libs=yes
17466    dynamic_linker="$host_os dld.so"
17467    shlibpath_var=LD_LIBRARY_PATH
17468    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17469    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17470    soname_spec='$libname$release$shared_ext$major'
17471    if test 32 = "$HPUX_IA64_MODE"; then
17472      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17473      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17474    else
17475      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17476      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17477    fi
17478    ;;
17479  hppa*64*)
17480    shrext_cmds='.sl'
17481    hardcode_into_libs=yes
17482    dynamic_linker="$host_os dld.sl"
17483    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17484    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17485    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17486    soname_spec='$libname$release$shared_ext$major'
17487    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17488    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17489    ;;
17490  *)
17491    shrext_cmds='.sl'
17492    dynamic_linker="$host_os dld.sl"
17493    shlibpath_var=SHLIB_PATH
17494    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17495    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17496    soname_spec='$libname$release$shared_ext$major'
17497    ;;
17498  esac
17499  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17500  postinstall_cmds='chmod 555 $lib'
17501  # or fails outright, so override atomically:
17502  install_override_mode=555
17503  ;;
17504
17505interix[3-9]*)
17506  version_type=linux # correct to gnu/linux during the next big refactor
17507  need_lib_prefix=no
17508  need_version=no
17509  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17510  soname_spec='$libname$release$shared_ext$major'
17511  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17512  shlibpath_var=LD_LIBRARY_PATH
17513  shlibpath_overrides_runpath=no
17514  hardcode_into_libs=yes
17515  ;;
17516
17517irix5* | irix6* | nonstopux*)
17518  case $host_os in
17519    nonstopux*) version_type=nonstopux ;;
17520    *)
17521	if test yes = "$lt_cv_prog_gnu_ld"; then
17522		version_type=linux # correct to gnu/linux during the next big refactor
17523	else
17524		version_type=irix
17525	fi ;;
17526  esac
17527  need_lib_prefix=no
17528  need_version=no
17529  soname_spec='$libname$release$shared_ext$major'
17530  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17531  case $host_os in
17532  irix5* | nonstopux*)
17533    libsuff= shlibsuff=
17534    ;;
17535  *)
17536    case $LD in # libtool.m4 will add one of these switches to LD
17537    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17538      libsuff= shlibsuff= libmagic=32-bit;;
17539    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17540      libsuff=32 shlibsuff=N32 libmagic=N32;;
17541    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17542      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17543    *) libsuff= shlibsuff= libmagic=never-match;;
17544    esac
17545    ;;
17546  esac
17547  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17548  shlibpath_overrides_runpath=no
17549  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17550  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17551  hardcode_into_libs=yes
17552  ;;
17553
17554# No shared lib support for Linux oldld, aout, or coff.
17555linux*oldld* | linux*aout* | linux*coff*)
17556  dynamic_linker=no
17557  ;;
17558
17559linux*android*)
17560  version_type=none # Android doesn't support versioned libraries.
17561  need_lib_prefix=no
17562  need_version=no
17563  library_names_spec='$libname$release$shared_ext'
17564  soname_spec='$libname$release$shared_ext'
17565  finish_cmds=
17566  shlibpath_var=LD_LIBRARY_PATH
17567  shlibpath_overrides_runpath=yes
17568
17569  # This implies no fast_install, which is unacceptable.
17570  # Some rework will be needed to allow for fast_install
17571  # before this can be enabled.
17572  hardcode_into_libs=yes
17573
17574  dynamic_linker='Android linker'
17575  # Don't embed -rpath directories since the linker doesn't support them.
17576  hardcode_libdir_flag_spec_CXX='-L$libdir'
17577  ;;
17578
17579# This must be glibc/ELF.
17580linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17581  version_type=linux # correct to gnu/linux during the next big refactor
17582  need_lib_prefix=no
17583  need_version=no
17584  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17585  soname_spec='$libname$release$shared_ext$major'
17586  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17587  shlibpath_var=LD_LIBRARY_PATH
17588  shlibpath_overrides_runpath=no
17589
17590  # Some binutils ld are patched to set DT_RUNPATH
17591  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17592  $as_echo_n "(cached) " >&6
17593else
17594  lt_cv_shlibpath_overrides_runpath=no
17595    save_LDFLAGS=$LDFLAGS
17596    save_libdir=$libdir
17597    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17598	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17599    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600/* end confdefs.h.  */
17601
17602int
17603main ()
17604{
17605
17606  ;
17607  return 0;
17608}
17609_ACEOF
17610if ac_fn_cxx_try_link "$LINENO"; then :
17611  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17612  lt_cv_shlibpath_overrides_runpath=yes
17613fi
17614fi
17615rm -f core conftest.err conftest.$ac_objext \
17616    conftest$ac_exeext conftest.$ac_ext
17617    LDFLAGS=$save_LDFLAGS
17618    libdir=$save_libdir
17619
17620fi
17621
17622  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17623
17624  # This implies no fast_install, which is unacceptable.
17625  # Some rework will be needed to allow for fast_install
17626  # before this can be enabled.
17627  hardcode_into_libs=yes
17628
17629  # Add ABI-specific directories to the system library path.
17630  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17631
17632  # Ideally, we could use ldconfig to report *all* directores which are
17633  # searched for libraries, however this is still not possible.  Aside from not
17634  # being certain /sbin/ldconfig is available, command
17635  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17636  # even though it is searched at run-time.  Try to do the best guess by
17637  # appending ld.so.conf contents (and includes) to the search path.
17638  if test -f /etc/ld.so.conf; then
17639    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' ' '`
17640    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17641  fi
17642
17643  # We used to test for /lib/ld.so.1 and disable shared libraries on
17644  # powerpc, because MkLinux only supported shared libraries with the
17645  # GNU dynamic linker.  Since this was broken with cross compilers,
17646  # most powerpc-linux boxes support dynamic linking these days and
17647  # people can always --disable-shared, the test was removed, and we
17648  # assume the GNU/Linux dynamic linker is in use.
17649  dynamic_linker='GNU/Linux ld.so'
17650  ;;
17651
17652netbsd*)
17653  version_type=sunos
17654  need_lib_prefix=no
17655  need_version=no
17656  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17657    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17658    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17659    dynamic_linker='NetBSD (a.out) ld.so'
17660  else
17661    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17662    soname_spec='$libname$release$shared_ext$major'
17663    dynamic_linker='NetBSD ld.elf_so'
17664  fi
17665  shlibpath_var=LD_LIBRARY_PATH
17666  shlibpath_overrides_runpath=yes
17667  hardcode_into_libs=yes
17668  ;;
17669
17670newsos6)
17671  version_type=linux # correct to gnu/linux during the next big refactor
17672  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17673  shlibpath_var=LD_LIBRARY_PATH
17674  shlibpath_overrides_runpath=yes
17675  ;;
17676
17677*nto* | *qnx*)
17678  version_type=qnx
17679  need_lib_prefix=no
17680  need_version=no
17681  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17682  soname_spec='$libname$release$shared_ext$major'
17683  shlibpath_var=LD_LIBRARY_PATH
17684  shlibpath_overrides_runpath=no
17685  hardcode_into_libs=yes
17686  dynamic_linker='ldqnx.so'
17687  ;;
17688
17689openbsd* | bitrig*)
17690  version_type=sunos
17691  sys_lib_dlsearch_path_spec=/usr/lib
17692  need_lib_prefix=no
17693  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17694    need_version=no
17695  else
17696    need_version=yes
17697  fi
17698  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17699  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17700  shlibpath_var=LD_LIBRARY_PATH
17701  shlibpath_overrides_runpath=yes
17702  ;;
17703
17704os2*)
17705  libname_spec='$name'
17706  version_type=windows
17707  shrext_cmds=.dll
17708  need_version=no
17709  need_lib_prefix=no
17710  # OS/2 can only load a DLL with a base name of 8 characters or less.
17711  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17712    v=$($ECHO $release$versuffix | tr -d .-);
17713    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17714    $ECHO $n$v`$shared_ext'
17715  library_names_spec='${libname}_dll.$libext'
17716  dynamic_linker='OS/2 ld.exe'
17717  shlibpath_var=BEGINLIBPATH
17718  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17719  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17720  postinstall_cmds='base_file=`basename \$file`~
17721    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17722    dldir=$destdir/`dirname \$dlpath`~
17723    test -d \$dldir || mkdir -p \$dldir~
17724    $install_prog $dir/$dlname \$dldir/$dlname~
17725    chmod a+x \$dldir/$dlname~
17726    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17727      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17728    fi'
17729  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17730    dlpath=$dir/\$dldll~
17731    $RM \$dlpath'
17732  ;;
17733
17734osf3* | osf4* | osf5*)
17735  version_type=osf
17736  need_lib_prefix=no
17737  need_version=no
17738  soname_spec='$libname$release$shared_ext$major'
17739  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17740  shlibpath_var=LD_LIBRARY_PATH
17741  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17742  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17743  ;;
17744
17745rdos*)
17746  dynamic_linker=no
17747  ;;
17748
17749solaris*)
17750  version_type=linux # correct to gnu/linux during the next big refactor
17751  need_lib_prefix=no
17752  need_version=no
17753  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17754  soname_spec='$libname$release$shared_ext$major'
17755  shlibpath_var=LD_LIBRARY_PATH
17756  shlibpath_overrides_runpath=yes
17757  hardcode_into_libs=yes
17758  # ldd complains unless libraries are executable
17759  postinstall_cmds='chmod +x $lib'
17760  ;;
17761
17762sunos4*)
17763  version_type=sunos
17764  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17765  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17766  shlibpath_var=LD_LIBRARY_PATH
17767  shlibpath_overrides_runpath=yes
17768  if test yes = "$with_gnu_ld"; then
17769    need_lib_prefix=no
17770  fi
17771  need_version=yes
17772  ;;
17773
17774sysv4 | sysv4.3*)
17775  version_type=linux # correct to gnu/linux during the next big refactor
17776  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17777  soname_spec='$libname$release$shared_ext$major'
17778  shlibpath_var=LD_LIBRARY_PATH
17779  case $host_vendor in
17780    sni)
17781      shlibpath_overrides_runpath=no
17782      need_lib_prefix=no
17783      runpath_var=LD_RUN_PATH
17784      ;;
17785    siemens)
17786      need_lib_prefix=no
17787      ;;
17788    motorola)
17789      need_lib_prefix=no
17790      need_version=no
17791      shlibpath_overrides_runpath=no
17792      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17793      ;;
17794  esac
17795  ;;
17796
17797sysv4*MP*)
17798  if test -d /usr/nec; then
17799    version_type=linux # correct to gnu/linux during the next big refactor
17800    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17801    soname_spec='$libname$shared_ext.$major'
17802    shlibpath_var=LD_LIBRARY_PATH
17803  fi
17804  ;;
17805
17806sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17807  version_type=sco
17808  need_lib_prefix=no
17809  need_version=no
17810  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17811  soname_spec='$libname$release$shared_ext$major'
17812  shlibpath_var=LD_LIBRARY_PATH
17813  shlibpath_overrides_runpath=yes
17814  hardcode_into_libs=yes
17815  if test yes = "$with_gnu_ld"; then
17816    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17817  else
17818    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17819    case $host_os in
17820      sco3.2v5*)
17821        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17822	;;
17823    esac
17824  fi
17825  sys_lib_dlsearch_path_spec='/usr/lib'
17826  ;;
17827
17828tpf*)
17829  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17830  version_type=linux # correct to gnu/linux during the next big refactor
17831  need_lib_prefix=no
17832  need_version=no
17833  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17834  shlibpath_var=LD_LIBRARY_PATH
17835  shlibpath_overrides_runpath=no
17836  hardcode_into_libs=yes
17837  ;;
17838
17839uts4*)
17840  version_type=linux # correct to gnu/linux during the next big refactor
17841  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17842  soname_spec='$libname$release$shared_ext$major'
17843  shlibpath_var=LD_LIBRARY_PATH
17844  ;;
17845
17846*)
17847  dynamic_linker=no
17848  ;;
17849esac
17850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17851$as_echo "$dynamic_linker" >&6; }
17852test no = "$dynamic_linker" && can_build_shared=no
17853
17854variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17855if test yes = "$GCC"; then
17856  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17857fi
17858
17859if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17860  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17861fi
17862
17863if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17864  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17865fi
17866
17867# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17868configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17869
17870# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17871func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17872
17873# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17874configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17916$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17917hardcode_action_CXX=
17918if test -n "$hardcode_libdir_flag_spec_CXX" ||
17919   test -n "$runpath_var_CXX" ||
17920   test yes = "$hardcode_automatic_CXX"; then
17921
17922  # We can hardcode non-existent directories.
17923  if test no != "$hardcode_direct_CXX" &&
17924     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17925     # have to relink, otherwise we might link with an installed library
17926     # when we should be linking with a yet-to-be-installed one
17927     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17928     test no != "$hardcode_minus_L_CXX"; then
17929    # Linking always hardcodes the temporary library directory.
17930    hardcode_action_CXX=relink
17931  else
17932    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17933    hardcode_action_CXX=immediate
17934  fi
17935else
17936  # We cannot hardcode anything, or else we can only hardcode existing
17937  # directories.
17938  hardcode_action_CXX=unsupported
17939fi
17940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17941$as_echo "$hardcode_action_CXX" >&6; }
17942
17943if test relink = "$hardcode_action_CXX" ||
17944   test yes = "$inherit_rpath_CXX"; then
17945  # Fast installation is not supported
17946  enable_fast_install=no
17947elif test yes = "$shlibpath_overrides_runpath" ||
17948     test no = "$enable_shared"; then
17949  # Fast installation is not necessary
17950  enable_fast_install=needless
17951fi
17952
17953
17954
17955
17956
17957
17958
17959  fi # test -n "$compiler"
17960
17961  CC=$lt_save_CC
17962  CFLAGS=$lt_save_CFLAGS
17963  LDCXX=$LD
17964  LD=$lt_save_LD
17965  GCC=$lt_save_GCC
17966  with_gnu_ld=$lt_save_with_gnu_ld
17967  lt_cv_path_LDCXX=$lt_cv_path_LD
17968  lt_cv_path_LD=$lt_save_path_LD
17969  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17970  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17971fi # test yes != "$_lt_caught_CXX_error"
17972
17973ac_ext=c
17974ac_cpp='$CPP $CPPFLAGS'
17975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977ac_compiler_gnu=$ac_cv_c_compiler_gnu
17978
17979
17980   case $ac_cv_prog_cc_stdc in #(
17981  no) :
17982    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
17983  *) :
17984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
17985$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
17986if ${ac_cv_prog_cc_c99+:} false; then :
17987  $as_echo_n "(cached) " >&6
17988else
17989  ac_cv_prog_cc_c99=no
17990ac_save_CC=$CC
17991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17992/* end confdefs.h.  */
17993#include <stdarg.h>
17994#include <stdbool.h>
17995#include <stdlib.h>
17996#include <wchar.h>
17997#include <stdio.h>
17998
17999// Check varargs macros.  These examples are taken from C99 6.10.3.5.
18000#define debug(...) fprintf (stderr, __VA_ARGS__)
18001#define showlist(...) puts (#__VA_ARGS__)
18002#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
18003static void
18004test_varargs_macros (void)
18005{
18006  int x = 1234;
18007  int y = 5678;
18008  debug ("Flag");
18009  debug ("X = %d\n", x);
18010  showlist (The first, second, and third items.);
18011  report (x>y, "x is %d but y is %d", x, y);
18012}
18013
18014// Check long long types.
18015#define BIG64 18446744073709551615ull
18016#define BIG32 4294967295ul
18017#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
18018#if !BIG_OK
18019  your preprocessor is broken;
18020#endif
18021#if BIG_OK
18022#else
18023  your preprocessor is broken;
18024#endif
18025static long long int bignum = -9223372036854775807LL;
18026static unsigned long long int ubignum = BIG64;
18027
18028struct incomplete_array
18029{
18030  int datasize;
18031  double data[];
18032};
18033
18034struct named_init {
18035  int number;
18036  const wchar_t *name;
18037  double average;
18038};
18039
18040typedef const char *ccp;
18041
18042static inline int
18043test_restrict (ccp restrict text)
18044{
18045  // See if C++-style comments work.
18046  // Iterate through items via the restricted pointer.
18047  // Also check for declarations in for loops.
18048  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
18049    continue;
18050  return 0;
18051}
18052
18053// Check varargs and va_copy.
18054static void
18055test_varargs (const char *format, ...)
18056{
18057  va_list args;
18058  va_start (args, format);
18059  va_list args_copy;
18060  va_copy (args_copy, args);
18061
18062  const char *str;
18063  int number;
18064  float fnumber;
18065
18066  while (*format)
18067    {
18068      switch (*format++)
18069	{
18070	case 's': // string
18071	  str = va_arg (args_copy, const char *);
18072	  break;
18073	case 'd': // int
18074	  number = va_arg (args_copy, int);
18075	  break;
18076	case 'f': // float
18077	  fnumber = va_arg (args_copy, double);
18078	  break;
18079	default:
18080	  break;
18081	}
18082    }
18083  va_end (args_copy);
18084  va_end (args);
18085}
18086
18087int
18088main ()
18089{
18090
18091  // Check bool.
18092  _Bool success = false;
18093
18094  // Check restrict.
18095  if (test_restrict ("String literal") == 0)
18096    success = true;
18097  char *restrict newvar = "Another string";
18098
18099  // Check varargs.
18100  test_varargs ("s, d' f .", "string", 65, 34.234);
18101  test_varargs_macros ();
18102
18103  // Check flexible array members.
18104  struct incomplete_array *ia =
18105    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
18106  ia->datasize = 10;
18107  for (int i = 0; i < ia->datasize; ++i)
18108    ia->data[i] = i * 1.234;
18109
18110  // Check named initializers.
18111  struct named_init ni = {
18112    .number = 34,
18113    .name = L"Test wide string",
18114    .average = 543.34343,
18115  };
18116
18117  ni.number = 58;
18118
18119  int dynamic_array[ni.number];
18120  dynamic_array[ni.number - 1] = 543;
18121
18122  // work around unused variable warnings
18123  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
18124	  || dynamic_array[ni.number - 1] != 543);
18125
18126  ;
18127  return 0;
18128}
18129_ACEOF
18130for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
18131do
18132  CC="$ac_save_CC $ac_arg"
18133  if ac_fn_c_try_compile "$LINENO"; then :
18134  ac_cv_prog_cc_c99=$ac_arg
18135fi
18136rm -f core conftest.err conftest.$ac_objext
18137  test "x$ac_cv_prog_cc_c99" != "xno" && break
18138done
18139rm -f conftest.$ac_ext
18140CC=$ac_save_CC
18141
18142fi
18143# AC_CACHE_VAL
18144case "x$ac_cv_prog_cc_c99" in
18145  x)
18146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18147$as_echo "none needed" >&6; } ;;
18148  xno)
18149    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18150$as_echo "unsupported" >&6; } ;;
18151  *)
18152    CC="$CC $ac_cv_prog_cc_c99"
18153    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
18154$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
18155esac
18156if test "x$ac_cv_prog_cc_c99" != xno; then :
18157  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
18158else
18159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18160$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18161if ${ac_cv_prog_cc_c89+:} false; then :
18162  $as_echo_n "(cached) " >&6
18163else
18164  ac_cv_prog_cc_c89=no
18165ac_save_CC=$CC
18166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18167/* end confdefs.h.  */
18168#include <stdarg.h>
18169#include <stdio.h>
18170struct stat;
18171/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
18172struct buf { int x; };
18173FILE * (*rcsopen) (struct buf *, struct stat *, int);
18174static char *e (p, i)
18175     char **p;
18176     int i;
18177{
18178  return p[i];
18179}
18180static char *f (char * (*g) (char **, int), char **p, ...)
18181{
18182  char *s;
18183  va_list v;
18184  va_start (v,p);
18185  s = g (p, va_arg (v,int));
18186  va_end (v);
18187  return s;
18188}
18189
18190/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
18191   function prototypes and stuff, but not '\xHH' hex character constants.
18192   These don't provoke an error unfortunately, instead are silently treated
18193   as 'x'.  The following induces an error, until -std is added to get
18194   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
18195   array size at least.  It's necessary to write '\x00'==0 to get something
18196   that's true only with -std.  */
18197int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18198
18199/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18200   inside strings and character constants.  */
18201#define FOO(x) 'x'
18202int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18203
18204int test (int i, double x);
18205struct s1 {int (*f) (int a);};
18206struct s2 {int (*f) (double a);};
18207int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18208int argc;
18209char **argv;
18210int
18211main ()
18212{
18213return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
18214  ;
18215  return 0;
18216}
18217_ACEOF
18218for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18219	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18220do
18221  CC="$ac_save_CC $ac_arg"
18222  if ac_fn_c_try_compile "$LINENO"; then :
18223  ac_cv_prog_cc_c89=$ac_arg
18224fi
18225rm -f core conftest.err conftest.$ac_objext
18226  test "x$ac_cv_prog_cc_c89" != "xno" && break
18227done
18228rm -f conftest.$ac_ext
18229CC=$ac_save_CC
18230
18231fi
18232# AC_CACHE_VAL
18233case "x$ac_cv_prog_cc_c89" in
18234  x)
18235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18236$as_echo "none needed" >&6; } ;;
18237  xno)
18238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18239$as_echo "unsupported" >&6; } ;;
18240  *)
18241    CC="$CC $ac_cv_prog_cc_c89"
18242    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18243$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18244esac
18245if test "x$ac_cv_prog_cc_c89" != xno; then :
18246  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
18247else
18248  ac_cv_prog_cc_stdc=no
18249fi
18250
18251fi
18252 ;;
18253esac
18254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
18255$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
18256  if ${ac_cv_prog_cc_stdc+:} false; then :
18257  $as_echo_n "(cached) " >&6
18258fi
18259
18260  case $ac_cv_prog_cc_stdc in #(
18261  no) :
18262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18263$as_echo "unsupported" >&6; } ;; #(
18264  '') :
18265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18266$as_echo "none needed" >&6; } ;; #(
18267  *) :
18268    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
18269$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
18270esac
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18281	if test -n "$ac_tool_prefix"; then
18282  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18283set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18285$as_echo_n "checking for $ac_word... " >&6; }
18286if ${ac_cv_path_PKG_CONFIG+:} false; then :
18287  $as_echo_n "(cached) " >&6
18288else
18289  case $PKG_CONFIG in
18290  [\\/]* | ?:[\\/]*)
18291  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18292  ;;
18293  *)
18294  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18295for as_dir in $PATH
18296do
18297  IFS=$as_save_IFS
18298  test -z "$as_dir" && as_dir=.
18299    for ac_exec_ext in '' $ac_executable_extensions; do
18300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18301    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18303    break 2
18304  fi
18305done
18306  done
18307IFS=$as_save_IFS
18308
18309  ;;
18310esac
18311fi
18312PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18313if test -n "$PKG_CONFIG"; then
18314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18315$as_echo "$PKG_CONFIG" >&6; }
18316else
18317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18318$as_echo "no" >&6; }
18319fi
18320
18321
18322fi
18323if test -z "$ac_cv_path_PKG_CONFIG"; then
18324  ac_pt_PKG_CONFIG=$PKG_CONFIG
18325  # Extract the first word of "pkg-config", so it can be a program name with args.
18326set dummy pkg-config; ac_word=$2
18327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18328$as_echo_n "checking for $ac_word... " >&6; }
18329if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18330  $as_echo_n "(cached) " >&6
18331else
18332  case $ac_pt_PKG_CONFIG in
18333  [\\/]* | ?:[\\/]*)
18334  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18335  ;;
18336  *)
18337  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18338for as_dir in $PATH
18339do
18340  IFS=$as_save_IFS
18341  test -z "$as_dir" && as_dir=.
18342    for ac_exec_ext in '' $ac_executable_extensions; do
18343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18344    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18346    break 2
18347  fi
18348done
18349  done
18350IFS=$as_save_IFS
18351
18352  ;;
18353esac
18354fi
18355ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18356if test -n "$ac_pt_PKG_CONFIG"; then
18357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18358$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18359else
18360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18361$as_echo "no" >&6; }
18362fi
18363
18364  if test "x$ac_pt_PKG_CONFIG" = x; then
18365    PKG_CONFIG=""
18366  else
18367    case $cross_compiling:$ac_tool_warned in
18368yes:)
18369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18371ac_tool_warned=yes ;;
18372esac
18373    PKG_CONFIG=$ac_pt_PKG_CONFIG
18374  fi
18375else
18376  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18377fi
18378
18379fi
18380if test -n "$PKG_CONFIG"; then
18381	_pkg_min_version=0.9.0
18382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18383$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18384	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18385		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18386$as_echo "yes" >&6; }
18387	else
18388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18389$as_echo "no" >&6; }
18390		PKG_CONFIG=""
18391	fi
18392fi
18393
18394
18395# Check whether --enable-codes was given.
18396if test "${enable_codes+set}" = set; then :
18397  enableval=$enable_codes;
18398else
18399  enable_codes="ean,databar,code128,code93,code39,codabar,i25,qrcode,sqcode"
18400fi
18401
18402
18403
18404
18405
18406
18407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build EAN symbologies" >&5
18408$as_echo_n "checking whether to build EAN symbologies... " >&6; }
18409  enable_ean="no"
18410
18411  case $enable_codes in #(
18412  *ean* | *all*) :
18413    enable_ean="yes"
18414     enabled_codes="$enabled_codes ean"
18415     $as_echo "#define ENABLE_EAN 1" >>confdefs.h
18416
18417    ENABLE_EAN=1
18418
18419     ;; #(
18420  *) :
18421
18422     disabled_codes="$disabled_codes ean"
18423     $as_echo "#define ENABLE_EAN 0" >>confdefs.h
18424
18425    ENABLE_EAN=0
18426
18427   ;;
18428esac
18429   if test "x$enable_ean" = "xyes"; then
18430  ENABLE_EAN_TRUE=
18431  ENABLE_EAN_FALSE='#'
18432else
18433  ENABLE_EAN_TRUE='#'
18434  ENABLE_EAN_FALSE=
18435fi
18436
18437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ean" >&5
18438$as_echo "$enable_ean" >&6; }
18439
18440
18441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build DataBar symbology" >&5
18442$as_echo_n "checking whether to build DataBar symbology... " >&6; }
18443  enable_databar="no"
18444
18445  case $enable_codes in #(
18446  *databar* | *all*) :
18447    enable_databar="yes"
18448     enabled_codes="$enabled_codes databar"
18449     $as_echo "#define ENABLE_DATABAR 1" >>confdefs.h
18450
18451    ENABLE_DATABAR=1
18452
18453     ;; #(
18454  *) :
18455
18456     disabled_codes="$disabled_codes databar"
18457     $as_echo "#define ENABLE_DATABAR 0" >>confdefs.h
18458
18459    ENABLE_DATABAR=0
18460
18461   ;;
18462esac
18463   if test "x$enable_databar" = "xyes"; then
18464  ENABLE_DATABAR_TRUE=
18465  ENABLE_DATABAR_FALSE='#'
18466else
18467  ENABLE_DATABAR_TRUE='#'
18468  ENABLE_DATABAR_FALSE=
18469fi
18470
18471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_databar" >&5
18472$as_echo "$enable_databar" >&6; }
18473
18474
18475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Code 128 symbology" >&5
18476$as_echo_n "checking whether to build Code 128 symbology... " >&6; }
18477  enable_code128="no"
18478
18479  case $enable_codes in #(
18480  *code128* | *all*) :
18481    enable_code128="yes"
18482     enabled_codes="$enabled_codes code128"
18483     $as_echo "#define ENABLE_CODE128 1" >>confdefs.h
18484
18485    ENABLE_CODE128=1
18486
18487     ;; #(
18488  *) :
18489
18490     disabled_codes="$disabled_codes code128"
18491     $as_echo "#define ENABLE_CODE128 0" >>confdefs.h
18492
18493    ENABLE_CODE128=0
18494
18495   ;;
18496esac
18497   if test "x$enable_code128" = "xyes"; then
18498  ENABLE_CODE128_TRUE=
18499  ENABLE_CODE128_FALSE='#'
18500else
18501  ENABLE_CODE128_TRUE='#'
18502  ENABLE_CODE128_FALSE=
18503fi
18504
18505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code128" >&5
18506$as_echo "$enable_code128" >&6; }
18507
18508
18509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Code 93 symbology" >&5
18510$as_echo_n "checking whether to build Code 93 symbology... " >&6; }
18511  enable_code93="no"
18512
18513  case $enable_codes in #(
18514  *code93* | *all*) :
18515    enable_code93="yes"
18516     enabled_codes="$enabled_codes code93"
18517     $as_echo "#define ENABLE_CODE93 1" >>confdefs.h
18518
18519    ENABLE_CODE93=1
18520
18521     ;; #(
18522  *) :
18523
18524     disabled_codes="$disabled_codes code93"
18525     $as_echo "#define ENABLE_CODE93 0" >>confdefs.h
18526
18527    ENABLE_CODE93=0
18528
18529   ;;
18530esac
18531   if test "x$enable_code93" = "xyes"; then
18532  ENABLE_CODE93_TRUE=
18533  ENABLE_CODE93_FALSE='#'
18534else
18535  ENABLE_CODE93_TRUE='#'
18536  ENABLE_CODE93_FALSE=
18537fi
18538
18539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code93" >&5
18540$as_echo "$enable_code93" >&6; }
18541
18542
18543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Code 39 symbology" >&5
18544$as_echo_n "checking whether to build Code 39 symbology... " >&6; }
18545  enable_code39="no"
18546
18547  case $enable_codes in #(
18548  *code39* | *all*) :
18549    enable_code39="yes"
18550     enabled_codes="$enabled_codes code39"
18551     $as_echo "#define ENABLE_CODE39 1" >>confdefs.h
18552
18553    ENABLE_CODE39=1
18554
18555     ;; #(
18556  *) :
18557
18558     disabled_codes="$disabled_codes code39"
18559     $as_echo "#define ENABLE_CODE39 0" >>confdefs.h
18560
18561    ENABLE_CODE39=0
18562
18563   ;;
18564esac
18565   if test "x$enable_code39" = "xyes"; then
18566  ENABLE_CODE39_TRUE=
18567  ENABLE_CODE39_FALSE='#'
18568else
18569  ENABLE_CODE39_TRUE='#'
18570  ENABLE_CODE39_FALSE=
18571fi
18572
18573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code39" >&5
18574$as_echo "$enable_code39" >&6; }
18575
18576
18577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Codabar symbology" >&5
18578$as_echo_n "checking whether to build Codabar symbology... " >&6; }
18579  enable_codabar="no"
18580
18581  case $enable_codes in #(
18582  *codabar* | *all*) :
18583    enable_codabar="yes"
18584     enabled_codes="$enabled_codes codabar"
18585     $as_echo "#define ENABLE_CODABAR 1" >>confdefs.h
18586
18587    ENABLE_CODABAR=1
18588
18589     ;; #(
18590  *) :
18591
18592     disabled_codes="$disabled_codes codabar"
18593     $as_echo "#define ENABLE_CODABAR 0" >>confdefs.h
18594
18595    ENABLE_CODABAR=0
18596
18597   ;;
18598esac
18599   if test "x$enable_codabar" = "xyes"; then
18600  ENABLE_CODABAR_TRUE=
18601  ENABLE_CODABAR_FALSE='#'
18602else
18603  ENABLE_CODABAR_TRUE='#'
18604  ENABLE_CODABAR_FALSE=
18605fi
18606
18607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_codabar" >&5
18608$as_echo "$enable_codabar" >&6; }
18609
18610
18611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Interleaved 2 of 5 symbology" >&5
18612$as_echo_n "checking whether to build Interleaved 2 of 5 symbology... " >&6; }
18613  enable_i25="no"
18614
18615  case $enable_codes in #(
18616  *i25* | *all*) :
18617    enable_i25="yes"
18618     enabled_codes="$enabled_codes i25"
18619     $as_echo "#define ENABLE_I25 1" >>confdefs.h
18620
18621    ENABLE_I25=1
18622
18623     ;; #(
18624  *) :
18625
18626     disabled_codes="$disabled_codes i25"
18627     $as_echo "#define ENABLE_I25 0" >>confdefs.h
18628
18629    ENABLE_I25=0
18630
18631   ;;
18632esac
18633   if test "x$enable_i25" = "xyes"; then
18634  ENABLE_I25_TRUE=
18635  ENABLE_I25_FALSE='#'
18636else
18637  ENABLE_I25_TRUE='#'
18638  ENABLE_I25_FALSE=
18639fi
18640
18641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_i25" >&5
18642$as_echo "$enable_i25" >&6; }
18643
18644
18645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build QR Code" >&5
18646$as_echo_n "checking whether to build QR Code... " >&6; }
18647  enable_qrcode="no"
18648
18649  case $enable_codes in #(
18650  *qrcode* | *all*) :
18651    enable_qrcode="yes"
18652     enabled_codes="$enabled_codes qrcode"
18653     $as_echo "#define ENABLE_QRCODE 1" >>confdefs.h
18654
18655    ENABLE_QRCODE=1
18656
18657     ;; #(
18658  *) :
18659
18660     disabled_codes="$disabled_codes qrcode"
18661     $as_echo "#define ENABLE_QRCODE 0" >>confdefs.h
18662
18663    ENABLE_QRCODE=0
18664
18665   ;;
18666esac
18667   if test "x$enable_qrcode" = "xyes"; then
18668  ENABLE_QRCODE_TRUE=
18669  ENABLE_QRCODE_FALSE='#'
18670else
18671  ENABLE_QRCODE_TRUE='#'
18672  ENABLE_QRCODE_FALSE=
18673fi
18674
18675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_qrcode" >&5
18676$as_echo "$enable_qrcode" >&6; }
18677
18678
18679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build SQ Code" >&5
18680$as_echo_n "checking whether to build SQ Code... " >&6; }
18681  enable_sqcode="no"
18682
18683  case $enable_codes in #(
18684  *sqcode* | *all*) :
18685    enable_sqcode="yes"
18686     enabled_codes="$enabled_codes sqcode"
18687     $as_echo "#define ENABLE_SQCODE 1" >>confdefs.h
18688
18689    ENABLE_SQCODE=1
18690
18691     ;; #(
18692  *) :
18693
18694     disabled_codes="$disabled_codes sqcode"
18695     $as_echo "#define ENABLE_SQCODE 0" >>confdefs.h
18696
18697    ENABLE_SQCODE=0
18698
18699   ;;
18700esac
18701   if test "x$enable_sqcode" = "xyes"; then
18702  ENABLE_SQCODE_TRUE=
18703  ENABLE_SQCODE_FALSE='#'
18704else
18705  ENABLE_SQCODE_TRUE='#'
18706  ENABLE_SQCODE_FALSE=
18707fi
18708
18709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sqcode" >&5
18710$as_echo "$enable_sqcode" >&6; }
18711
18712
18713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build PDF417 symbology (incomplete)" >&5
18714$as_echo_n "checking whether to build PDF417 symbology (incomplete)... " >&6; }
18715  enable_pdf417="no"
18716
18717  case $enable_codes in #(
18718  *pdf417* | *all*) :
18719    enable_pdf417="yes"
18720     enabled_codes="$enabled_codes pdf417"
18721     $as_echo "#define ENABLE_PDF417 1" >>confdefs.h
18722
18723    ENABLE_PDF417=1
18724
18725     ;; #(
18726  *) :
18727
18728     disabled_codes="$disabled_codes pdf417"
18729     $as_echo "#define ENABLE_PDF417 0" >>confdefs.h
18730
18731    ENABLE_PDF417=0
18732
18733   ;;
18734esac
18735   if test "x$enable_pdf417" = "xyes"; then
18736  ENABLE_PDF417_TRUE=
18737  ENABLE_PDF417_FALSE='#'
18738else
18739  ENABLE_PDF417_TRUE='#'
18740  ENABLE_PDF417_FALSE=
18741fi
18742
18743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pdf417" >&5
18744$as_echo "$enable_pdf417" >&6; }
18745
18746
18747
18748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18749$as_echo_n "checking for library containing clock_gettime... " >&6; }
18750if ${ac_cv_search_clock_gettime+:} false; then :
18751  $as_echo_n "(cached) " >&6
18752else
18753  ac_func_search_save_LIBS=$LIBS
18754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18755/* end confdefs.h.  */
18756
18757/* Override any GCC internal prototype to avoid an error.
18758   Use char because int might match the return type of a GCC
18759   builtin and then its argument prototype would still apply.  */
18760#ifdef __cplusplus
18761extern "C"
18762#endif
18763char clock_gettime ();
18764int
18765main ()
18766{
18767return clock_gettime ();
18768  ;
18769  return 0;
18770}
18771_ACEOF
18772for ac_lib in '' rt pthread; do
18773  if test -z "$ac_lib"; then
18774    ac_res="none required"
18775  else
18776    ac_res=-l$ac_lib
18777    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18778  fi
18779  if ac_fn_c_try_link "$LINENO"; then :
18780  ac_cv_search_clock_gettime=$ac_res
18781fi
18782rm -f core conftest.err conftest.$ac_objext \
18783    conftest$ac_exeext
18784  if ${ac_cv_search_clock_gettime+:} false; then :
18785  break
18786fi
18787done
18788if ${ac_cv_search_clock_gettime+:} false; then :
18789
18790else
18791  ac_cv_search_clock_gettime=no
18792fi
18793rm conftest.$ac_ext
18794LIBS=$ac_func_search_save_LIBS
18795fi
18796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18797$as_echo "$ac_cv_search_clock_gettime" >&6; }
18798ac_res=$ac_cv_search_clock_gettime
18799if test "$ac_res" != no; then :
18800  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18801
18802fi
18803
18804
18805      if test "X$prefix" = "XNONE"; then
18806    acl_final_prefix="$ac_default_prefix"
18807  else
18808    acl_final_prefix="$prefix"
18809  fi
18810  if test "X$exec_prefix" = "XNONE"; then
18811    acl_final_exec_prefix='${prefix}'
18812  else
18813    acl_final_exec_prefix="$exec_prefix"
18814  fi
18815  acl_save_prefix="$prefix"
18816  prefix="$acl_final_prefix"
18817  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18818  prefix="$acl_save_prefix"
18819
18820
18821
18822# Check whether --with-gnu-ld was given.
18823if test "${with_gnu_ld+set}" = set; then :
18824  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18825else
18826  with_gnu_ld=no
18827fi
18828
18829# Prepare PATH_SEPARATOR.
18830# The user is always right.
18831if test "${PATH_SEPARATOR+set}" != set; then
18832  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18833  # contains only /bin. Note that ksh looks also at the FPATH variable,
18834  # so we have to set that as well for the test.
18835  PATH_SEPARATOR=:
18836  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18837    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18838           || PATH_SEPARATOR=';'
18839       }
18840fi
18841
18842if test -n "$LD"; then
18843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
18844$as_echo_n "checking for ld... " >&6; }
18845elif test "$GCC" = yes; then
18846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18847$as_echo_n "checking for ld used by $CC... " >&6; }
18848elif test "$with_gnu_ld" = yes; then
18849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18850$as_echo_n "checking for GNU ld... " >&6; }
18851else
18852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18853$as_echo_n "checking for non-GNU ld... " >&6; }
18854fi
18855if test -n "$LD"; then
18856  # Let the user override the test with a path.
18857  :
18858else
18859  if ${acl_cv_path_LD+:} false; then :
18860  $as_echo_n "(cached) " >&6
18861else
18862
18863    acl_cv_path_LD= # Final result of this test
18864    ac_prog=ld # Program to search in $PATH
18865    if test "$GCC" = yes; then
18866      # Check if gcc -print-prog-name=ld gives a path.
18867      case $host in
18868        *-*-mingw*)
18869          # gcc leaves a trailing carriage return which upsets mingw
18870          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18871        *)
18872          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
18873      esac
18874      case $acl_output in
18875        # Accept absolute paths.
18876        [\\/]* | ?:[\\/]*)
18877          re_direlt='/[^/][^/]*/\.\./'
18878          # Canonicalize the pathname of ld
18879          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
18880          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
18881            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
18882          done
18883          # Got the pathname. No search in PATH is needed.
18884          acl_cv_path_LD="$acl_output"
18885          ac_prog=
18886          ;;
18887        "")
18888          # If it fails, then pretend we aren't using GCC.
18889          ;;
18890        *)
18891          # If it is relative, then search for the first ld in PATH.
18892          with_gnu_ld=unknown
18893          ;;
18894      esac
18895    fi
18896    if test -n "$ac_prog"; then
18897      # Search for $ac_prog in $PATH.
18898      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18899      for ac_dir in $PATH; do
18900        IFS="$acl_save_ifs"
18901        test -z "$ac_dir" && ac_dir=.
18902        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18903          acl_cv_path_LD="$ac_dir/$ac_prog"
18904          # Check to see if the program is GNU ld.  I'd rather use --version,
18905          # but apparently some variants of GNU ld only accept -v.
18906          # Break only if it was the GNU/non-GNU ld that we prefer.
18907          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18908            *GNU* | *'with BFD'*)
18909              test "$with_gnu_ld" != no && break
18910              ;;
18911            *)
18912              test "$with_gnu_ld" != yes && break
18913              ;;
18914          esac
18915        fi
18916      done
18917      IFS="$acl_save_ifs"
18918    fi
18919    case $host in
18920      *-*-aix*)
18921        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922/* end confdefs.h.  */
18923#if defined __powerpc64__ || defined _ARCH_PPC64
18924                int ok;
18925               #else
18926                error fail
18927               #endif
18928
18929_ACEOF
18930if ac_fn_c_try_compile "$LINENO"; then :
18931  # The compiler produces 64-bit code. Add option '-b64' so that the
18932           # linker groks 64-bit object files.
18933           case "$acl_cv_path_LD " in
18934             *" -b64 "*) ;;
18935             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
18936           esac
18937
18938fi
18939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18940        ;;
18941      sparc64-*-netbsd*)
18942        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18943/* end confdefs.h.  */
18944#if defined __sparcv9 || defined __arch64__
18945                int ok;
18946               #else
18947                error fail
18948               #endif
18949
18950_ACEOF
18951if ac_fn_c_try_compile "$LINENO"; then :
18952
18953else
18954  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
18955           # so that the linker groks 32-bit object files.
18956           case "$acl_cv_path_LD " in
18957             *" -m elf32_sparc "*) ;;
18958             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
18959           esac
18960
18961fi
18962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18963        ;;
18964    esac
18965
18966fi
18967
18968  LD="$acl_cv_path_LD"
18969fi
18970if test -n "$LD"; then
18971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18972$as_echo "$LD" >&6; }
18973else
18974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18975$as_echo "no" >&6; }
18976  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18977fi
18978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18979$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18980if ${acl_cv_prog_gnu_ld+:} false; then :
18981  $as_echo_n "(cached) " >&6
18982else
18983  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18984case `$LD -v 2>&1 </dev/null` in
18985*GNU* | *'with BFD'*)
18986  acl_cv_prog_gnu_ld=yes
18987  ;;
18988*)
18989  acl_cv_prog_gnu_ld=no
18990  ;;
18991esac
18992fi
18993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18994$as_echo "$acl_cv_prog_gnu_ld" >&6; }
18995with_gnu_ld=$acl_cv_prog_gnu_ld
18996
18997
18998
18999
19000                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19001$as_echo_n "checking for shared library run path origin... " >&6; }
19002if ${acl_cv_rpath+:} false; then :
19003  $as_echo_n "(cached) " >&6
19004else
19005
19006    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19007    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19008    . ./conftest.sh
19009    rm -f ./conftest.sh
19010    acl_cv_rpath=done
19011
19012fi
19013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19014$as_echo "$acl_cv_rpath" >&6; }
19015  wl="$acl_cv_wl"
19016  acl_libext="$acl_cv_libext"
19017  acl_shlibext="$acl_cv_shlibext"
19018  acl_libname_spec="$acl_cv_libname_spec"
19019  acl_library_names_spec="$acl_cv_library_names_spec"
19020  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19021  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19022  acl_hardcode_direct="$acl_cv_hardcode_direct"
19023  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
19024    # Check whether --enable-rpath was given.
19025if test "${enable_rpath+set}" = set; then :
19026  enableval=$enable_rpath; :
19027else
19028  enable_rpath=yes
19029fi
19030
19031
19032
19033
19034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
19035$as_echo_n "checking 32-bit host C ABI... " >&6; }
19036if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
19037  $as_echo_n "(cached) " >&6
19038else
19039  if test -n "$gl_cv_host_cpu_c_abi"; then
19040       case "$gl_cv_host_cpu_c_abi" in
19041         i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
19042           gl_cv_host_cpu_c_abi_32bit=yes ;;
19043         x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
19044           gl_cv_host_cpu_c_abi_32bit=no ;;
19045         *)
19046           gl_cv_host_cpu_c_abi_32bit=unknown ;;
19047       esac
19048     else
19049       case "$host_cpu" in
19050
19051         # CPUs that only support a 32-bit ABI.
19052         arc \
19053         | bfin \
19054         | cris* \
19055         | csky \
19056         | epiphany \
19057         | ft32 \
19058         | h8300 \
19059         | m68k \
19060         | microblaze | microblazeel \
19061         | nds32 | nds32le | nds32be \
19062         | nios2 | nios2eb | nios2el \
19063         | or1k* \
19064         | or32 \
19065         | sh | sh1234 | sh1234elb \
19066         | tic6x \
19067         | xtensa* )
19068           gl_cv_host_cpu_c_abi_32bit=yes
19069           ;;
19070
19071         # CPUs that only support a 64-bit ABI.
19072         alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
19073         | mmix )
19074           gl_cv_host_cpu_c_abi_32bit=no
19075           ;;
19076
19077         i[34567]86 )
19078           gl_cv_host_cpu_c_abi_32bit=yes
19079           ;;
19080
19081         x86_64 )
19082           # On x86_64 systems, the C compiler may be generating code in one of
19083           # these ABIs:
19084           # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
19085           # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
19086           #   with native Windows (mingw, MSVC).
19087           # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
19088           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
19089           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090/* end confdefs.h.  */
19091#if (defined __x86_64__ || defined __amd64__ \
19092                       || defined _M_X64 || defined _M_AMD64) \
19093                      && !(defined __ILP32__ || defined _ILP32)
19094                   int ok;
19095                  #else
19096                   error fail
19097                  #endif
19098
19099_ACEOF
19100if ac_fn_c_try_compile "$LINENO"; then :
19101  gl_cv_host_cpu_c_abi_32bit=no
19102else
19103  gl_cv_host_cpu_c_abi_32bit=yes
19104fi
19105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19106           ;;
19107
19108         arm* | aarch64 )
19109           # Assume arm with EABI.
19110           # On arm64 systems, the C compiler may be generating code in one of
19111           # these ABIs:
19112           # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
19113           # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
19114           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
19115           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19116/* end confdefs.h.  */
19117#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
19118                   int ok;
19119                  #else
19120                   error fail
19121                  #endif
19122
19123_ACEOF
19124if ac_fn_c_try_compile "$LINENO"; then :
19125  gl_cv_host_cpu_c_abi_32bit=no
19126else
19127  gl_cv_host_cpu_c_abi_32bit=yes
19128fi
19129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19130           ;;
19131
19132         hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
19133           # On hppa, the C compiler may be generating 32-bit code or 64-bit
19134           # code. In the latter case, it defines _LP64 and __LP64__.
19135           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136/* end confdefs.h.  */
19137#ifdef __LP64__
19138                   int ok;
19139                  #else
19140                   error fail
19141                  #endif
19142
19143_ACEOF
19144if ac_fn_c_try_compile "$LINENO"; then :
19145  gl_cv_host_cpu_c_abi_32bit=no
19146else
19147  gl_cv_host_cpu_c_abi_32bit=yes
19148fi
19149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19150           ;;
19151
19152         ia64* )
19153           # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
19154           # 32-bit code. In the latter case, it defines _ILP32.
19155           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19156/* end confdefs.h.  */
19157#ifdef _ILP32
19158                   int ok;
19159                  #else
19160                   error fail
19161                  #endif
19162
19163_ACEOF
19164if ac_fn_c_try_compile "$LINENO"; then :
19165  gl_cv_host_cpu_c_abi_32bit=yes
19166else
19167  gl_cv_host_cpu_c_abi_32bit=no
19168fi
19169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19170           ;;
19171
19172         mips* )
19173           # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
19174           # at 32.
19175           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176/* end confdefs.h.  */
19177#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
19178                   int ok;
19179                  #else
19180                   error fail
19181                  #endif
19182
19183_ACEOF
19184if ac_fn_c_try_compile "$LINENO"; then :
19185  gl_cv_host_cpu_c_abi_32bit=no
19186else
19187  gl_cv_host_cpu_c_abi_32bit=yes
19188fi
19189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19190           ;;
19191
19192         powerpc* )
19193           # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
19194           # No need to distinguish them here; the caller may distinguish
19195           # them based on the OS.
19196           # On powerpc64 systems, the C compiler may still be generating
19197           # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
19198           # be generating 64-bit code.
19199           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200/* end confdefs.h.  */
19201#if defined __powerpc64__ || defined _ARCH_PPC64
19202                   int ok;
19203                  #else
19204                   error fail
19205                  #endif
19206
19207_ACEOF
19208if ac_fn_c_try_compile "$LINENO"; then :
19209  gl_cv_host_cpu_c_abi_32bit=no
19210else
19211  gl_cv_host_cpu_c_abi_32bit=yes
19212fi
19213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214           ;;
19215
19216         rs6000 )
19217           gl_cv_host_cpu_c_abi_32bit=yes
19218           ;;
19219
19220         riscv32 | riscv64 )
19221           # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
19222           # Size of 'long' and 'void *':
19223           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19224/* end confdefs.h.  */
19225#if defined __LP64__
19226                    int ok;
19227                  #else
19228                    error fail
19229                  #endif
19230
19231_ACEOF
19232if ac_fn_c_try_compile "$LINENO"; then :
19233  gl_cv_host_cpu_c_abi_32bit=no
19234else
19235  gl_cv_host_cpu_c_abi_32bit=yes
19236fi
19237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19238           ;;
19239
19240         s390* )
19241           # On s390x, the C compiler may be generating 64-bit (= s390x) code
19242           # or 31-bit (= s390) code.
19243           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244/* end confdefs.h.  */
19245#if defined __LP64__ || defined __s390x__
19246                    int ok;
19247                  #else
19248                    error fail
19249                  #endif
19250
19251_ACEOF
19252if ac_fn_c_try_compile "$LINENO"; then :
19253  gl_cv_host_cpu_c_abi_32bit=no
19254else
19255  gl_cv_host_cpu_c_abi_32bit=yes
19256fi
19257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19258           ;;
19259
19260         sparc | sparc64 )
19261           # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
19262           # C compiler still generates 32-bit code.
19263           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19264/* end confdefs.h.  */
19265#if defined __sparcv9 || defined __arch64__
19266                   int ok;
19267                  #else
19268                   error fail
19269                  #endif
19270
19271_ACEOF
19272if ac_fn_c_try_compile "$LINENO"; then :
19273  gl_cv_host_cpu_c_abi_32bit=no
19274else
19275  gl_cv_host_cpu_c_abi_32bit=yes
19276fi
19277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19278           ;;
19279
19280         *)
19281           gl_cv_host_cpu_c_abi_32bit=unknown
19282           ;;
19283       esac
19284     fi
19285
19286fi
19287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
19288$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
19289
19290  HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
19291
19292
19293
19294
19295
19296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
19297$as_echo_n "checking for ELF binary format... " >&6; }
19298if ${gl_cv_elf+:} false; then :
19299  $as_echo_n "(cached) " >&6
19300else
19301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302/* end confdefs.h.  */
19303#ifdef __ELF__
19304        Extensible Linking Format
19305        #endif
19306
19307_ACEOF
19308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19309  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
19310  gl_cv_elf=yes
19311else
19312  gl_cv_elf=no
19313fi
19314rm -f conftest*
19315
19316
19317fi
19318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
19319$as_echo "$gl_cv_elf" >&6; }
19320  if test $gl_cv_elf; then
19321    # Extract the ELF class of a file (5th byte) in decimal.
19322    # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
19323    if od -A x < /dev/null >/dev/null 2>/dev/null; then
19324      # Use POSIX od.
19325      func_elfclass ()
19326      {
19327        od -A n -t d1 -j 4 -N 1
19328      }
19329    else
19330      # Use BSD hexdump.
19331      func_elfclass ()
19332      {
19333        dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
19334        echo
19335      }
19336    fi
19337    case $HOST_CPU_C_ABI_32BIT in
19338      yes)
19339        # 32-bit ABI.
19340        acl_is_expected_elfclass ()
19341        {
19342          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 1
19343        }
19344        ;;
19345      no)
19346        # 64-bit ABI.
19347        acl_is_expected_elfclass ()
19348        {
19349          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 2
19350        }
19351        ;;
19352      *)
19353        # Unknown.
19354        acl_is_expected_elfclass ()
19355        {
19356          :
19357        }
19358        ;;
19359    esac
19360  else
19361    acl_is_expected_elfclass ()
19362    {
19363      :
19364    }
19365  fi
19366
19367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
19368$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
19369if ${acl_cv_libdirstems+:} false; then :
19370  $as_echo_n "(cached) " >&6
19371else
19372            acl_libdirstem=lib
19373     acl_libdirstem2=
19374     acl_libdirstem3=
19375     case "$host_os" in
19376       solaris*)
19377                                                      if test $HOST_CPU_C_ABI_32BIT = no; then
19378           acl_libdirstem2=lib/64
19379           case "$host_cpu" in
19380             sparc*)        acl_libdirstem3=lib/sparcv9 ;;
19381             i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
19382           esac
19383         fi
19384         ;;
19385       *)
19386                                                                                 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
19387                     | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19388         if test $HOST_CPU_C_ABI_32BIT != no; then
19389           # 32-bit or unknown ABI.
19390           if test -d /usr/lib32; then
19391             acl_libdirstem2=lib32
19392           fi
19393         fi
19394         if test $HOST_CPU_C_ABI_32BIT != yes; then
19395           # 64-bit or unknown ABI.
19396           if test -d /usr/lib64; then
19397             acl_libdirstem3=lib64
19398           fi
19399         fi
19400         if test -n "$searchpath"; then
19401           acl_save_IFS="${IFS= 	}"; IFS=":"
19402           for searchdir in $searchpath; do
19403             if test -d "$searchdir"; then
19404               case "$searchdir" in
19405                 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
19406                 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
19407                 */../ | */.. )
19408                   # Better ignore directories of this form. They are misleading.
19409                   ;;
19410                 *) searchdir=`cd "$searchdir" && pwd`
19411                    case "$searchdir" in
19412                      */lib32 ) acl_libdirstem2=lib32 ;;
19413                      */lib64 ) acl_libdirstem3=lib64 ;;
19414                    esac ;;
19415               esac
19416             fi
19417           done
19418           IFS="$acl_save_IFS"
19419           if test $HOST_CPU_C_ABI_32BIT = yes; then
19420             # 32-bit ABI.
19421             acl_libdirstem3=
19422           fi
19423           if test $HOST_CPU_C_ABI_32BIT = no; then
19424             # 64-bit ABI.
19425             acl_libdirstem2=
19426           fi
19427         fi
19428         ;;
19429     esac
19430     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
19431     test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
19432     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
19433
19434fi
19435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
19436$as_echo "$acl_cv_libdirstems" >&6; }
19437      acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
19438  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
19439  acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451    use_additional=yes
19452
19453  acl_save_prefix="$prefix"
19454  prefix="$acl_final_prefix"
19455  acl_save_exec_prefix="$exec_prefix"
19456  exec_prefix="$acl_final_exec_prefix"
19457
19458    eval additional_includedir=\"$includedir\"
19459    eval additional_libdir=\"$libdir\"
19460    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
19461    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
19462
19463  exec_prefix="$acl_save_exec_prefix"
19464  prefix="$acl_save_prefix"
19465
19466
19467# Check whether --with-libiconv-prefix was given.
19468if test "${with_libiconv_prefix+set}" = set; then :
19469  withval=$with_libiconv_prefix;
19470    if test "X$withval" = "Xno"; then
19471      use_additional=no
19472    else
19473      if test "X$withval" = "X"; then
19474
19475  acl_save_prefix="$prefix"
19476  prefix="$acl_final_prefix"
19477  acl_save_exec_prefix="$exec_prefix"
19478  exec_prefix="$acl_final_exec_prefix"
19479
19480          eval additional_includedir=\"$includedir\"
19481          eval additional_libdir=\"$libdir\"
19482          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
19483          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
19484
19485  exec_prefix="$acl_save_exec_prefix"
19486  prefix="$acl_save_prefix"
19487
19488      else
19489        additional_includedir="$withval/include"
19490        additional_libdir="$withval/$acl_libdirstem"
19491        additional_libdir2="$withval/$acl_libdirstem2"
19492        additional_libdir3="$withval/$acl_libdirstem3"
19493      fi
19494    fi
19495
19496fi
19497
19498  if test "X$additional_libdir2" = "X$additional_libdir"; then
19499    additional_libdir2=
19500  fi
19501  if test "X$additional_libdir3" = "X$additional_libdir"; then
19502    additional_libdir3=
19503  fi
19504      LIBICONV=
19505  LTLIBICONV=
19506  INCICONV=
19507  LIBICONV_PREFIX=
19508      HAVE_LIBICONV=
19509  rpathdirs=
19510  ltrpathdirs=
19511  names_already_handled=
19512  names_next_round='iconv '
19513  while test -n "$names_next_round"; do
19514    names_this_round="$names_next_round"
19515    names_next_round=
19516    for name in $names_this_round; do
19517      already_handled=
19518      for n in $names_already_handled; do
19519        if test "$n" = "$name"; then
19520          already_handled=yes
19521          break
19522        fi
19523      done
19524      if test -z "$already_handled"; then
19525        names_already_handled="$names_already_handled $name"
19526                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19527        eval value=\"\$HAVE_LIB$uppername\"
19528        if test -n "$value"; then
19529          if test "$value" = yes; then
19530            eval value=\"\$LIB$uppername\"
19531            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19532            eval value=\"\$LTLIB$uppername\"
19533            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19534          else
19535                                    :
19536          fi
19537        else
19538                              found_dir=
19539          found_la=
19540          found_so=
19541          found_a=
19542          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19543          if test -n "$acl_shlibext"; then
19544            shrext=".$acl_shlibext"             # typically: shrext=.so
19545          else
19546            shrext=
19547          fi
19548          if test $use_additional = yes; then
19549            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
19550              if test "X$found_dir" = "X"; then
19551                eval dir=\$$additional_libdir_variable
19552                if test -n "$dir"; then
19553                                                      if test -n "$acl_shlibext"; then
19554                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19555                      found_dir="$dir"
19556                      found_so="$dir/$libname$shrext"
19557                    else
19558                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19559                        ver=`(cd "$dir" && \
19560                              for f in "$libname$shrext".*; do echo "$f"; done \
19561                              | sed -e "s,^$libname$shrext\\\\.,," \
19562                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19563                              | sed 1q ) 2>/dev/null`
19564                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
19565                          found_dir="$dir"
19566                          found_so="$dir/$libname$shrext.$ver"
19567                        fi
19568                      else
19569                        eval library_names=\"$acl_library_names_spec\"
19570                        for f in $library_names; do
19571                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19572                            found_dir="$dir"
19573                            found_so="$dir/$f"
19574                            break
19575                          fi
19576                        done
19577                      fi
19578                    fi
19579                  fi
19580                                    if test "X$found_dir" = "X"; then
19581                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19582                      found_dir="$dir"
19583                      found_a="$dir/$libname.$acl_libext"
19584                    fi
19585                  fi
19586                  if test "X$found_dir" != "X"; then
19587                    if test -f "$dir/$libname.la"; then
19588                      found_la="$dir/$libname.la"
19589                    fi
19590                  fi
19591                fi
19592              fi
19593            done
19594          fi
19595          if test "X$found_dir" = "X"; then
19596            for x in $LDFLAGS $LTLIBICONV; do
19597
19598  acl_save_prefix="$prefix"
19599  prefix="$acl_final_prefix"
19600  acl_save_exec_prefix="$exec_prefix"
19601  exec_prefix="$acl_final_exec_prefix"
19602  eval x=\"$x\"
19603  exec_prefix="$acl_save_exec_prefix"
19604  prefix="$acl_save_prefix"
19605
19606              case "$x" in
19607                -L*)
19608                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19609                                    if test -n "$acl_shlibext"; then
19610                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19611                      found_dir="$dir"
19612                      found_so="$dir/$libname$shrext"
19613                    else
19614                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19615                        ver=`(cd "$dir" && \
19616                              for f in "$libname$shrext".*; do echo "$f"; done \
19617                              | sed -e "s,^$libname$shrext\\\\.,," \
19618                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19619                              | sed 1q ) 2>/dev/null`
19620                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
19621                          found_dir="$dir"
19622                          found_so="$dir/$libname$shrext.$ver"
19623                        fi
19624                      else
19625                        eval library_names=\"$acl_library_names_spec\"
19626                        for f in $library_names; do
19627                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19628                            found_dir="$dir"
19629                            found_so="$dir/$f"
19630                            break
19631                          fi
19632                        done
19633                      fi
19634                    fi
19635                  fi
19636                                    if test "X$found_dir" = "X"; then
19637                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19638                      found_dir="$dir"
19639                      found_a="$dir/$libname.$acl_libext"
19640                    fi
19641                  fi
19642                  if test "X$found_dir" != "X"; then
19643                    if test -f "$dir/$libname.la"; then
19644                      found_la="$dir/$libname.la"
19645                    fi
19646                  fi
19647                  ;;
19648              esac
19649              if test "X$found_dir" != "X"; then
19650                break
19651              fi
19652            done
19653          fi
19654          if test "X$found_dir" != "X"; then
19655                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19656            if test "X$found_so" != "X"; then
19657                                                        if test "$enable_rpath" = no \
19658                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19659                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
19660                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
19661                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19662              else
19663                                                                                haveit=
19664                for x in $ltrpathdirs; do
19665                  if test "X$x" = "X$found_dir"; then
19666                    haveit=yes
19667                    break
19668                  fi
19669                done
19670                if test -z "$haveit"; then
19671                  ltrpathdirs="$ltrpathdirs $found_dir"
19672                fi
19673                                if test "$acl_hardcode_direct" = yes; then
19674                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19675                else
19676                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19677                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19678                                                            haveit=
19679                    for x in $rpathdirs; do
19680                      if test "X$x" = "X$found_dir"; then
19681                        haveit=yes
19682                        break
19683                      fi
19684                    done
19685                    if test -z "$haveit"; then
19686                      rpathdirs="$rpathdirs $found_dir"
19687                    fi
19688                  else
19689                                                                                haveit=
19690                    for x in $LDFLAGS $LIBICONV; do
19691
19692  acl_save_prefix="$prefix"
19693  prefix="$acl_final_prefix"
19694  acl_save_exec_prefix="$exec_prefix"
19695  exec_prefix="$acl_final_exec_prefix"
19696  eval x=\"$x\"
19697  exec_prefix="$acl_save_exec_prefix"
19698  prefix="$acl_save_prefix"
19699
19700                      if test "X$x" = "X-L$found_dir"; then
19701                        haveit=yes
19702                        break
19703                      fi
19704                    done
19705                    if test -z "$haveit"; then
19706                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19707                    fi
19708                    if test "$acl_hardcode_minus_L" != no; then
19709                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19710                    else
19711                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19712                    fi
19713                  fi
19714                fi
19715              fi
19716            else
19717              if test "X$found_a" != "X"; then
19718                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19719              else
19720                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19721              fi
19722            fi
19723                        additional_includedir=
19724            case "$found_dir" in
19725              */$acl_libdirstem | */$acl_libdirstem/)
19726                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19727                if test "$name" = 'iconv'; then
19728                  LIBICONV_PREFIX="$basedir"
19729                fi
19730                additional_includedir="$basedir/include"
19731                ;;
19732              */$acl_libdirstem2 | */$acl_libdirstem2/)
19733                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19734                if test "$name" = 'iconv'; then
19735                  LIBICONV_PREFIX="$basedir"
19736                fi
19737                additional_includedir="$basedir/include"
19738                ;;
19739              */$acl_libdirstem3 | */$acl_libdirstem3/)
19740                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
19741                if test "$name" = 'iconv'; then
19742                  LIBICONV_PREFIX="$basedir"
19743                fi
19744                additional_includedir="$basedir/include"
19745                ;;
19746            esac
19747            if test "X$additional_includedir" != "X"; then
19748                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19749                haveit=
19750                if test "X$additional_includedir" = "X/usr/local/include"; then
19751                  if test -n "$GCC"; then
19752                    case $host_os in
19753                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19754                    esac
19755                  fi
19756                fi
19757                if test -z "$haveit"; then
19758                  for x in $CPPFLAGS $INCICONV; do
19759
19760  acl_save_prefix="$prefix"
19761  prefix="$acl_final_prefix"
19762  acl_save_exec_prefix="$exec_prefix"
19763  exec_prefix="$acl_final_exec_prefix"
19764  eval x=\"$x\"
19765  exec_prefix="$acl_save_exec_prefix"
19766  prefix="$acl_save_prefix"
19767
19768                    if test "X$x" = "X-I$additional_includedir"; then
19769                      haveit=yes
19770                      break
19771                    fi
19772                  done
19773                  if test -z "$haveit"; then
19774                    if test -d "$additional_includedir"; then
19775                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19776                    fi
19777                  fi
19778                fi
19779              fi
19780            fi
19781                        if test -n "$found_la"; then
19782                                                        save_libdir="$libdir"
19783              case "$found_la" in
19784                */* | *\\*) . "$found_la" ;;
19785                *) . "./$found_la" ;;
19786              esac
19787              libdir="$save_libdir"
19788                            for dep in $dependency_libs; do
19789                case "$dep" in
19790                  -L*)
19791                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19792                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
19793                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
19794                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
19795                      haveit=
19796                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
19797                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
19798                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
19799                        if test -n "$GCC"; then
19800                          case $host_os in
19801                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19802                          esac
19803                        fi
19804                      fi
19805                      if test -z "$haveit"; then
19806                        haveit=
19807                        for x in $LDFLAGS $LIBICONV; do
19808
19809  acl_save_prefix="$prefix"
19810  prefix="$acl_final_prefix"
19811  acl_save_exec_prefix="$exec_prefix"
19812  exec_prefix="$acl_final_exec_prefix"
19813  eval x=\"$x\"
19814  exec_prefix="$acl_save_exec_prefix"
19815  prefix="$acl_save_prefix"
19816
19817                          if test "X$x" = "X-L$dependency_libdir"; then
19818                            haveit=yes
19819                            break
19820                          fi
19821                        done
19822                        if test -z "$haveit"; then
19823                          if test -d "$dependency_libdir"; then
19824                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
19825                          fi
19826                        fi
19827                        haveit=
19828                        for x in $LDFLAGS $LTLIBICONV; do
19829
19830  acl_save_prefix="$prefix"
19831  prefix="$acl_final_prefix"
19832  acl_save_exec_prefix="$exec_prefix"
19833  exec_prefix="$acl_final_exec_prefix"
19834  eval x=\"$x\"
19835  exec_prefix="$acl_save_exec_prefix"
19836  prefix="$acl_save_prefix"
19837
19838                          if test "X$x" = "X-L$dependency_libdir"; then
19839                            haveit=yes
19840                            break
19841                          fi
19842                        done
19843                        if test -z "$haveit"; then
19844                          if test -d "$dependency_libdir"; then
19845                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
19846                          fi
19847                        fi
19848                      fi
19849                    fi
19850                    ;;
19851                  -R*)
19852                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19853                    if test "$enable_rpath" != no; then
19854                                                                  haveit=
19855                      for x in $rpathdirs; do
19856                        if test "X$x" = "X$dir"; then
19857                          haveit=yes
19858                          break
19859                        fi
19860                      done
19861                      if test -z "$haveit"; then
19862                        rpathdirs="$rpathdirs $dir"
19863                      fi
19864                                                                  haveit=
19865                      for x in $ltrpathdirs; do
19866                        if test "X$x" = "X$dir"; then
19867                          haveit=yes
19868                          break
19869                        fi
19870                      done
19871                      if test -z "$haveit"; then
19872                        ltrpathdirs="$ltrpathdirs $dir"
19873                      fi
19874                    fi
19875                    ;;
19876                  -l*)
19877                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19878                    ;;
19879                  *.la)
19880                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19881                    ;;
19882                  *)
19883                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19884                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19885                    ;;
19886                esac
19887              done
19888            fi
19889          else
19890                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19891            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19892          fi
19893        fi
19894      fi
19895    done
19896  done
19897  if test "X$rpathdirs" != "X"; then
19898    if test -n "$acl_hardcode_libdir_separator"; then
19899                        alldirs=
19900      for found_dir in $rpathdirs; do
19901        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19902      done
19903            acl_save_libdir="$libdir"
19904      libdir="$alldirs"
19905      eval flag=\"$acl_hardcode_libdir_flag_spec\"
19906      libdir="$acl_save_libdir"
19907      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19908    else
19909            for found_dir in $rpathdirs; do
19910        acl_save_libdir="$libdir"
19911        libdir="$found_dir"
19912        eval flag=\"$acl_hardcode_libdir_flag_spec\"
19913        libdir="$acl_save_libdir"
19914        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19915      done
19916    fi
19917  fi
19918  if test "X$ltrpathdirs" != "X"; then
19919            for found_dir in $ltrpathdirs; do
19920      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19921    done
19922  fi
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934          am_save_CPPFLAGS="$CPPFLAGS"
19935
19936  for element in $INCICONV; do
19937    haveit=
19938    for x in $CPPFLAGS; do
19939
19940  acl_save_prefix="$prefix"
19941  prefix="$acl_final_prefix"
19942  acl_save_exec_prefix="$exec_prefix"
19943  exec_prefix="$acl_final_exec_prefix"
19944  eval x=\"$x\"
19945  exec_prefix="$acl_save_exec_prefix"
19946  prefix="$acl_save_prefix"
19947
19948      if test "X$x" = "X$element"; then
19949        haveit=yes
19950        break
19951      fi
19952    done
19953    if test -z "$haveit"; then
19954      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19955    fi
19956  done
19957
19958
19959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19960$as_echo_n "checking for iconv... " >&6; }
19961if ${am_cv_func_iconv+:} false; then :
19962  $as_echo_n "(cached) " >&6
19963else
19964
19965    am_cv_func_iconv="no, consider installing GNU libiconv"
19966    am_cv_lib_iconv=no
19967    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19968/* end confdefs.h.  */
19969
19970#include <stdlib.h>
19971#include <iconv.h>
19972
19973int
19974main ()
19975{
19976iconv_t cd = iconv_open("","");
19977           iconv(cd,NULL,NULL,NULL,NULL);
19978           iconv_close(cd);
19979  ;
19980  return 0;
19981}
19982_ACEOF
19983if ac_fn_c_try_link "$LINENO"; then :
19984  am_cv_func_iconv=yes
19985fi
19986rm -f core conftest.err conftest.$ac_objext \
19987    conftest$ac_exeext conftest.$ac_ext
19988    if test "$am_cv_func_iconv" != yes; then
19989      am_save_LIBS="$LIBS"
19990      LIBS="$LIBS $LIBICONV"
19991      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19992/* end confdefs.h.  */
19993
19994#include <stdlib.h>
19995#include <iconv.h>
19996
19997int
19998main ()
19999{
20000iconv_t cd = iconv_open("","");
20001             iconv(cd,NULL,NULL,NULL,NULL);
20002             iconv_close(cd);
20003  ;
20004  return 0;
20005}
20006_ACEOF
20007if ac_fn_c_try_link "$LINENO"; then :
20008  am_cv_lib_iconv=yes
20009        am_cv_func_iconv=yes
20010fi
20011rm -f core conftest.err conftest.$ac_objext \
20012    conftest$ac_exeext conftest.$ac_ext
20013      LIBS="$am_save_LIBS"
20014    fi
20015
20016fi
20017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20018$as_echo "$am_cv_func_iconv" >&6; }
20019  if test "$am_cv_func_iconv" = yes; then
20020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20021$as_echo_n "checking for working iconv... " >&6; }
20022if ${am_cv_func_iconv_works+:} false; then :
20023  $as_echo_n "(cached) " >&6
20024else
20025
20026                  am_save_LIBS="$LIBS"
20027      if test $am_cv_lib_iconv = yes; then
20028        LIBS="$LIBS $LIBICONV"
20029      fi
20030      am_cv_func_iconv_works=no
20031      for ac_iconv_const in '' 'const'; do
20032        if test "$cross_compiling" = yes; then :
20033  case "$host_os" in
20034             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20035             *)            am_cv_func_iconv_works="guessing yes" ;;
20036           esac
20037else
20038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039/* end confdefs.h.  */
20040
20041#include <iconv.h>
20042#include <string.h>
20043
20044#ifndef ICONV_CONST
20045# define ICONV_CONST $ac_iconv_const
20046#endif
20047
20048int
20049main ()
20050{
20051int result = 0;
20052  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20053     returns.  */
20054  {
20055    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20056    if (cd_utf8_to_88591 != (iconv_t)(-1))
20057      {
20058        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
20059        char buf[10];
20060        ICONV_CONST char *inptr = input;
20061        size_t inbytesleft = strlen (input);
20062        char *outptr = buf;
20063        size_t outbytesleft = sizeof (buf);
20064        size_t res = iconv (cd_utf8_to_88591,
20065                            &inptr, &inbytesleft,
20066                            &outptr, &outbytesleft);
20067        if (res == 0)
20068          result |= 1;
20069        iconv_close (cd_utf8_to_88591);
20070      }
20071  }
20072  /* Test against Solaris 10 bug: Failures are not distinguishable from
20073     successful returns.  */
20074  {
20075    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20076    if (cd_ascii_to_88591 != (iconv_t)(-1))
20077      {
20078        static ICONV_CONST char input[] = "\263";
20079        char buf[10];
20080        ICONV_CONST char *inptr = input;
20081        size_t inbytesleft = strlen (input);
20082        char *outptr = buf;
20083        size_t outbytesleft = sizeof (buf);
20084        size_t res = iconv (cd_ascii_to_88591,
20085                            &inptr, &inbytesleft,
20086                            &outptr, &outbytesleft);
20087        if (res == 0)
20088          result |= 2;
20089        iconv_close (cd_ascii_to_88591);
20090      }
20091  }
20092  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
20093  {
20094    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20095    if (cd_88591_to_utf8 != (iconv_t)(-1))
20096      {
20097        static ICONV_CONST char input[] = "\304";
20098        static char buf[2] = { (char)0xDE, (char)0xAD };
20099        ICONV_CONST char *inptr = input;
20100        size_t inbytesleft = 1;
20101        char *outptr = buf;
20102        size_t outbytesleft = 1;
20103        size_t res = iconv (cd_88591_to_utf8,
20104                            &inptr, &inbytesleft,
20105                            &outptr, &outbytesleft);
20106        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20107          result |= 4;
20108        iconv_close (cd_88591_to_utf8);
20109      }
20110  }
20111#if 0 /* This bug could be worked around by the caller.  */
20112  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
20113  {
20114    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20115    if (cd_88591_to_utf8 != (iconv_t)(-1))
20116      {
20117        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20118        char buf[50];
20119        ICONV_CONST char *inptr = input;
20120        size_t inbytesleft = strlen (input);
20121        char *outptr = buf;
20122        size_t outbytesleft = sizeof (buf);
20123        size_t res = iconv (cd_88591_to_utf8,
20124                            &inptr, &inbytesleft,
20125                            &outptr, &outbytesleft);
20126        if ((int)res > 0)
20127          result |= 8;
20128        iconv_close (cd_88591_to_utf8);
20129      }
20130  }
20131#endif
20132  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20133     provided.  */
20134  {
20135    /* Try standardized names.  */
20136    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
20137    /* Try IRIX, OSF/1 names.  */
20138    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
20139    /* Try AIX names.  */
20140    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
20141    /* Try HP-UX names.  */
20142    iconv_t cd4 = iconv_open ("utf8", "eucJP");
20143    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
20144        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
20145      result |= 16;
20146    if (cd1 != (iconv_t)(-1))
20147      iconv_close (cd1);
20148    if (cd2 != (iconv_t)(-1))
20149      iconv_close (cd2);
20150    if (cd3 != (iconv_t)(-1))
20151      iconv_close (cd3);
20152    if (cd4 != (iconv_t)(-1))
20153      iconv_close (cd4);
20154  }
20155  return result;
20156
20157  ;
20158  return 0;
20159}
20160_ACEOF
20161if ac_fn_c_try_run "$LINENO"; then :
20162  am_cv_func_iconv_works=yes
20163fi
20164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20165  conftest.$ac_objext conftest.beam conftest.$ac_ext
20166fi
20167
20168        test "$am_cv_func_iconv_works" = no || break
20169      done
20170      LIBS="$am_save_LIBS"
20171
20172fi
20173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20174$as_echo "$am_cv_func_iconv_works" >&6; }
20175    case "$am_cv_func_iconv_works" in
20176      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20177      *)   am_func_iconv=yes ;;
20178    esac
20179  else
20180    am_func_iconv=no am_cv_lib_iconv=no
20181  fi
20182  if test "$am_func_iconv" = yes; then
20183
20184$as_echo "#define HAVE_ICONV 1" >>confdefs.h
20185
20186  fi
20187  if test "$am_cv_lib_iconv" = yes; then
20188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20189$as_echo_n "checking how to link with libiconv... " >&6; }
20190    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20191$as_echo "$LIBICONV" >&6; }
20192  else
20193            CPPFLAGS="$am_save_CPPFLAGS"
20194    LIBICONV=
20195    LTLIBICONV=
20196  fi
20197
20198
20199
20200  if test "$am_cv_func_iconv" = yes; then
20201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20202$as_echo_n "checking for iconv declaration... " >&6; }
20203    if ${am_cv_proto_iconv+:} false; then :
20204  $as_echo_n "(cached) " >&6
20205else
20206
20207      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20208/* end confdefs.h.  */
20209
20210#include <stdlib.h>
20211#include <iconv.h>
20212extern
20213#ifdef __cplusplus
20214"C"
20215#endif
20216#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
20217size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20218#else
20219size_t iconv();
20220#endif
20221
20222int
20223main ()
20224{
20225
20226  ;
20227  return 0;
20228}
20229_ACEOF
20230if ac_fn_c_try_compile "$LINENO"; then :
20231  am_cv_proto_iconv_arg1=""
20232else
20233  am_cv_proto_iconv_arg1="const"
20234fi
20235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20237fi
20238
20239    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20240    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20241         $am_cv_proto_iconv" >&5
20242$as_echo "
20243         $am_cv_proto_iconv" >&6; }
20244  else
20245            am_cv_proto_iconv_arg1=""
20246  fi
20247
20248cat >>confdefs.h <<_ACEOF
20249#define ICONV_CONST $am_cv_proto_iconv_arg1
20250_ACEOF
20251
20252
20253
20254
20255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20256$as_echo_n "checking whether NLS is requested... " >&6; }
20257    # Check whether --enable-nls was given.
20258if test "${enable_nls+set}" = set; then :
20259  enableval=$enable_nls; USE_NLS=$enableval
20260else
20261  USE_NLS=yes
20262fi
20263
20264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20265$as_echo "$USE_NLS" >&6; }
20266
20267
20268
20269
20270      GETTEXT_MACRO_VERSION=0.20
20271
20272
20273
20274
20275# Prepare PATH_SEPARATOR.
20276# The user is always right.
20277if test "${PATH_SEPARATOR+set}" != set; then
20278  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
20279  # contains only /bin. Note that ksh looks also at the FPATH variable,
20280  # so we have to set that as well for the test.
20281  PATH_SEPARATOR=:
20282  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20283    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20284           || PATH_SEPARATOR=';'
20285       }
20286fi
20287
20288# Find out how to test for executable files. Don't use a zero-byte file,
20289# as systems may use methods other than mode bits to determine executability.
20290cat >conf$$.file <<_ASEOF
20291#! /bin/sh
20292exit 0
20293_ASEOF
20294chmod +x conf$$.file
20295if test -x conf$$.file >/dev/null 2>&1; then
20296  ac_executable_p="test -x"
20297else
20298  ac_executable_p="test -f"
20299fi
20300rm -f conf$$.file
20301
20302# Extract the first word of "msgfmt", so it can be a program name with args.
20303set dummy msgfmt; ac_word=$2
20304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20305$as_echo_n "checking for $ac_word... " >&6; }
20306if ${ac_cv_path_MSGFMT+:} false; then :
20307  $as_echo_n "(cached) " >&6
20308else
20309  case "$MSGFMT" in
20310  [\\/]* | ?:[\\/]*)
20311    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20312    ;;
20313  *)
20314    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20315    for ac_dir in $PATH; do
20316      IFS="$ac_save_IFS"
20317      test -z "$ac_dir" && ac_dir=.
20318      for ac_exec_ext in '' $ac_executable_extensions; do
20319        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20320          echo "$as_me: trying $ac_dir/$ac_word..." >&5
20321          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
20322     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20323            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20324            break 2
20325          fi
20326        fi
20327      done
20328    done
20329    IFS="$ac_save_IFS"
20330  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20331    ;;
20332esac
20333fi
20334MSGFMT="$ac_cv_path_MSGFMT"
20335if test "$MSGFMT" != ":"; then
20336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
20337$as_echo "$MSGFMT" >&6; }
20338else
20339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20340$as_echo "no" >&6; }
20341fi
20342
20343  # Extract the first word of "gmsgfmt", so it can be a program name with args.
20344set dummy gmsgfmt; ac_word=$2
20345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20346$as_echo_n "checking for $ac_word... " >&6; }
20347if ${ac_cv_path_GMSGFMT+:} false; then :
20348  $as_echo_n "(cached) " >&6
20349else
20350  case $GMSGFMT in
20351  [\\/]* | ?:[\\/]*)
20352  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20353  ;;
20354  *)
20355  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20356for as_dir in $PATH
20357do
20358  IFS=$as_save_IFS
20359  test -z "$as_dir" && as_dir=.
20360    for ac_exec_ext in '' $ac_executable_extensions; do
20361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20362    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20364    break 2
20365  fi
20366done
20367  done
20368IFS=$as_save_IFS
20369
20370  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20371  ;;
20372esac
20373fi
20374GMSGFMT=$ac_cv_path_GMSGFMT
20375if test -n "$GMSGFMT"; then
20376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
20377$as_echo "$GMSGFMT" >&6; }
20378else
20379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20380$as_echo "no" >&6; }
20381fi
20382
20383
20384
20385    case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20386    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
20387    *) GMSGFMT_015=$GMSGFMT ;;
20388  esac
20389
20390
20391
20392# Prepare PATH_SEPARATOR.
20393# The user is always right.
20394if test "${PATH_SEPARATOR+set}" != set; then
20395  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
20396  # contains only /bin. Note that ksh looks also at the FPATH variable,
20397  # so we have to set that as well for the test.
20398  PATH_SEPARATOR=:
20399  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20400    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20401           || PATH_SEPARATOR=';'
20402       }
20403fi
20404
20405# Find out how to test for executable files. Don't use a zero-byte file,
20406# as systems may use methods other than mode bits to determine executability.
20407cat >conf$$.file <<_ASEOF
20408#! /bin/sh
20409exit 0
20410_ASEOF
20411chmod +x conf$$.file
20412if test -x conf$$.file >/dev/null 2>&1; then
20413  ac_executable_p="test -x"
20414else
20415  ac_executable_p="test -f"
20416fi
20417rm -f conf$$.file
20418
20419# Extract the first word of "xgettext", so it can be a program name with args.
20420set dummy xgettext; ac_word=$2
20421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20422$as_echo_n "checking for $ac_word... " >&6; }
20423if ${ac_cv_path_XGETTEXT+:} false; then :
20424  $as_echo_n "(cached) " >&6
20425else
20426  case "$XGETTEXT" in
20427  [\\/]* | ?:[\\/]*)
20428    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20429    ;;
20430  *)
20431    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20432    for ac_dir in $PATH; do
20433      IFS="$ac_save_IFS"
20434      test -z "$ac_dir" && ac_dir=.
20435      for ac_exec_ext in '' $ac_executable_extensions; do
20436        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20437          echo "$as_me: trying $ac_dir/$ac_word..." >&5
20438          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
20439     (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
20440            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20441            break 2
20442          fi
20443        fi
20444      done
20445    done
20446    IFS="$ac_save_IFS"
20447  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20448    ;;
20449esac
20450fi
20451XGETTEXT="$ac_cv_path_XGETTEXT"
20452if test "$XGETTEXT" != ":"; then
20453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
20454$as_echo "$XGETTEXT" >&6; }
20455else
20456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20457$as_echo "no" >&6; }
20458fi
20459
20460    rm -f messages.po
20461
20462    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20463    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
20464    *) XGETTEXT_015=$XGETTEXT ;;
20465  esac
20466
20467
20468
20469# Prepare PATH_SEPARATOR.
20470# The user is always right.
20471if test "${PATH_SEPARATOR+set}" != set; then
20472  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
20473  # contains only /bin. Note that ksh looks also at the FPATH variable,
20474  # so we have to set that as well for the test.
20475  PATH_SEPARATOR=:
20476  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20477    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20478           || PATH_SEPARATOR=';'
20479       }
20480fi
20481
20482# Find out how to test for executable files. Don't use a zero-byte file,
20483# as systems may use methods other than mode bits to determine executability.
20484cat >conf$$.file <<_ASEOF
20485#! /bin/sh
20486exit 0
20487_ASEOF
20488chmod +x conf$$.file
20489if test -x conf$$.file >/dev/null 2>&1; then
20490  ac_executable_p="test -x"
20491else
20492  ac_executable_p="test -f"
20493fi
20494rm -f conf$$.file
20495
20496# Extract the first word of "msgmerge", so it can be a program name with args.
20497set dummy msgmerge; ac_word=$2
20498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20499$as_echo_n "checking for $ac_word... " >&6; }
20500if ${ac_cv_path_MSGMERGE+:} false; then :
20501  $as_echo_n "(cached) " >&6
20502else
20503  case "$MSGMERGE" in
20504  [\\/]* | ?:[\\/]*)
20505    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20506    ;;
20507  *)
20508    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20509    for ac_dir in $PATH; do
20510      IFS="$ac_save_IFS"
20511      test -z "$ac_dir" && ac_dir=.
20512      for ac_exec_ext in '' $ac_executable_extensions; do
20513        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20514          echo "$as_me: trying $ac_dir/$ac_word..." >&5
20515          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
20516            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20517            break 2
20518          fi
20519        fi
20520      done
20521    done
20522    IFS="$ac_save_IFS"
20523  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20524    ;;
20525esac
20526fi
20527MSGMERGE="$ac_cv_path_MSGMERGE"
20528if test "$MSGMERGE" != ":"; then
20529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
20530$as_echo "$MSGMERGE" >&6; }
20531else
20532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20533$as_echo "no" >&6; }
20534fi
20535
20536
20537    if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
20538    MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
20539  else
20540        if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
20541      MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
20542    else
20543                        MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
20544    fi
20545  fi
20546
20547
20548    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
20549
20550
20551  ac_config_commands="$ac_config_commands po-directories"
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20578$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20579if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20580  $as_echo_n "(cached) " >&6
20581else
20582  gt_save_LIBS="$LIBS"
20583     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20584     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585/* end confdefs.h.  */
20586#include <CoreFoundation/CFPreferences.h>
20587int
20588main ()
20589{
20590CFPreferencesCopyAppValue(NULL, NULL)
20591  ;
20592  return 0;
20593}
20594_ACEOF
20595if ac_fn_c_try_link "$LINENO"; then :
20596  gt_cv_func_CFPreferencesCopyAppValue=yes
20597else
20598  gt_cv_func_CFPreferencesCopyAppValue=no
20599fi
20600rm -f core conftest.err conftest.$ac_objext \
20601    conftest$ac_exeext conftest.$ac_ext
20602     LIBS="$gt_save_LIBS"
20603fi
20604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20605$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20606  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20607
20608$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20609
20610  fi
20611                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
20612$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
20613if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
20614  $as_echo_n "(cached) " >&6
20615else
20616  gt_save_LIBS="$LIBS"
20617     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20618     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20619/* end confdefs.h.  */
20620#include <CoreFoundation/CFLocale.h>
20621int
20622main ()
20623{
20624CFLocaleCopyPreferredLanguages();
20625  ;
20626  return 0;
20627}
20628_ACEOF
20629if ac_fn_c_try_link "$LINENO"; then :
20630  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
20631else
20632  gt_cv_func_CFLocaleCopyPreferredLanguages=no
20633fi
20634rm -f core conftest.err conftest.$ac_objext \
20635    conftest$ac_exeext conftest.$ac_ext
20636     LIBS="$gt_save_LIBS"
20637fi
20638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
20639$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
20640  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
20641
20642$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
20643
20644  fi
20645  INTL_MACOSX_LIBS=
20646  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
20647     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
20648    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20649  fi
20650
20651
20652
20653
20654
20655
20656  LIBINTL=
20657  LTLIBINTL=
20658  POSUB=
20659
20660    case " $gt_needs " in
20661    *" need-formatstring-macros "*) gt_api_version=3 ;;
20662    *" need-ngettext "*) gt_api_version=2 ;;
20663    *) gt_api_version=1 ;;
20664  esac
20665  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
20666  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
20667
20668    if test "$USE_NLS" = "yes"; then
20669    gt_use_preinstalled_gnugettext=no
20670
20671
20672        if test $gt_api_version -ge 3; then
20673          gt_revision_test_code='
20674#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20675#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
20676#endif
20677typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
20678'
20679        else
20680          gt_revision_test_code=
20681        fi
20682        if test $gt_api_version -ge 2; then
20683          gt_expression_test_code=' + * ngettext ("", "", 0)'
20684        else
20685          gt_expression_test_code=
20686        fi
20687
20688        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20689$as_echo_n "checking for GNU gettext in libc... " >&6; }
20690if eval \${$gt_func_gnugettext_libc+:} false; then :
20691  $as_echo_n "(cached) " >&6
20692else
20693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694/* end confdefs.h.  */
20695
20696#include <libintl.h>
20697#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20698extern int _nl_msg_cat_cntr;
20699extern int *_nl_domain_bindings;
20700#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
20701#else
20702#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20703#endif
20704$gt_revision_test_code
20705
20706int
20707main ()
20708{
20709
20710bindtextdomain ("", "");
20711return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20712
20713  ;
20714  return 0;
20715}
20716_ACEOF
20717if ac_fn_c_try_link "$LINENO"; then :
20718  eval "$gt_func_gnugettext_libc=yes"
20719else
20720  eval "$gt_func_gnugettext_libc=no"
20721fi
20722rm -f core conftest.err conftest.$ac_objext \
20723    conftest$ac_exeext conftest.$ac_ext
20724fi
20725eval ac_res=\$$gt_func_gnugettext_libc
20726	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20727$as_echo "$ac_res" >&6; }
20728
20729        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
20730
20731
20732
20733
20734
20735          am_save_CPPFLAGS="$CPPFLAGS"
20736
20737  for element in $INCICONV; do
20738    haveit=
20739    for x in $CPPFLAGS; do
20740
20741  acl_save_prefix="$prefix"
20742  prefix="$acl_final_prefix"
20743  acl_save_exec_prefix="$exec_prefix"
20744  exec_prefix="$acl_final_exec_prefix"
20745  eval x=\"$x\"
20746  exec_prefix="$acl_save_exec_prefix"
20747  prefix="$acl_save_prefix"
20748
20749      if test "X$x" = "X$element"; then
20750        haveit=yes
20751        break
20752      fi
20753    done
20754    if test -z "$haveit"; then
20755      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20756    fi
20757  done
20758
20759
20760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20761$as_echo_n "checking for iconv... " >&6; }
20762if ${am_cv_func_iconv+:} false; then :
20763  $as_echo_n "(cached) " >&6
20764else
20765
20766    am_cv_func_iconv="no, consider installing GNU libiconv"
20767    am_cv_lib_iconv=no
20768    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20769/* end confdefs.h.  */
20770
20771#include <stdlib.h>
20772#include <iconv.h>
20773
20774int
20775main ()
20776{
20777iconv_t cd = iconv_open("","");
20778           iconv(cd,NULL,NULL,NULL,NULL);
20779           iconv_close(cd);
20780  ;
20781  return 0;
20782}
20783_ACEOF
20784if ac_fn_c_try_link "$LINENO"; then :
20785  am_cv_func_iconv=yes
20786fi
20787rm -f core conftest.err conftest.$ac_objext \
20788    conftest$ac_exeext conftest.$ac_ext
20789    if test "$am_cv_func_iconv" != yes; then
20790      am_save_LIBS="$LIBS"
20791      LIBS="$LIBS $LIBICONV"
20792      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20793/* end confdefs.h.  */
20794
20795#include <stdlib.h>
20796#include <iconv.h>
20797
20798int
20799main ()
20800{
20801iconv_t cd = iconv_open("","");
20802             iconv(cd,NULL,NULL,NULL,NULL);
20803             iconv_close(cd);
20804  ;
20805  return 0;
20806}
20807_ACEOF
20808if ac_fn_c_try_link "$LINENO"; then :
20809  am_cv_lib_iconv=yes
20810        am_cv_func_iconv=yes
20811fi
20812rm -f core conftest.err conftest.$ac_objext \
20813    conftest$ac_exeext conftest.$ac_ext
20814      LIBS="$am_save_LIBS"
20815    fi
20816
20817fi
20818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20819$as_echo "$am_cv_func_iconv" >&6; }
20820  if test "$am_cv_func_iconv" = yes; then
20821    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20822$as_echo_n "checking for working iconv... " >&6; }
20823if ${am_cv_func_iconv_works+:} false; then :
20824  $as_echo_n "(cached) " >&6
20825else
20826
20827                  am_save_LIBS="$LIBS"
20828      if test $am_cv_lib_iconv = yes; then
20829        LIBS="$LIBS $LIBICONV"
20830      fi
20831      am_cv_func_iconv_works=no
20832      for ac_iconv_const in '' 'const'; do
20833        if test "$cross_compiling" = yes; then :
20834  case "$host_os" in
20835             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20836             *)            am_cv_func_iconv_works="guessing yes" ;;
20837           esac
20838else
20839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20840/* end confdefs.h.  */
20841
20842#include <iconv.h>
20843#include <string.h>
20844
20845#ifndef ICONV_CONST
20846# define ICONV_CONST $ac_iconv_const
20847#endif
20848
20849int
20850main ()
20851{
20852int result = 0;
20853  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20854     returns.  */
20855  {
20856    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20857    if (cd_utf8_to_88591 != (iconv_t)(-1))
20858      {
20859        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
20860        char buf[10];
20861        ICONV_CONST char *inptr = input;
20862        size_t inbytesleft = strlen (input);
20863        char *outptr = buf;
20864        size_t outbytesleft = sizeof (buf);
20865        size_t res = iconv (cd_utf8_to_88591,
20866                            &inptr, &inbytesleft,
20867                            &outptr, &outbytesleft);
20868        if (res == 0)
20869          result |= 1;
20870        iconv_close (cd_utf8_to_88591);
20871      }
20872  }
20873  /* Test against Solaris 10 bug: Failures are not distinguishable from
20874     successful returns.  */
20875  {
20876    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20877    if (cd_ascii_to_88591 != (iconv_t)(-1))
20878      {
20879        static ICONV_CONST char input[] = "\263";
20880        char buf[10];
20881        ICONV_CONST char *inptr = input;
20882        size_t inbytesleft = strlen (input);
20883        char *outptr = buf;
20884        size_t outbytesleft = sizeof (buf);
20885        size_t res = iconv (cd_ascii_to_88591,
20886                            &inptr, &inbytesleft,
20887                            &outptr, &outbytesleft);
20888        if (res == 0)
20889          result |= 2;
20890        iconv_close (cd_ascii_to_88591);
20891      }
20892  }
20893  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
20894  {
20895    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20896    if (cd_88591_to_utf8 != (iconv_t)(-1))
20897      {
20898        static ICONV_CONST char input[] = "\304";
20899        static char buf[2] = { (char)0xDE, (char)0xAD };
20900        ICONV_CONST char *inptr = input;
20901        size_t inbytesleft = 1;
20902        char *outptr = buf;
20903        size_t outbytesleft = 1;
20904        size_t res = iconv (cd_88591_to_utf8,
20905                            &inptr, &inbytesleft,
20906                            &outptr, &outbytesleft);
20907        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20908          result |= 4;
20909        iconv_close (cd_88591_to_utf8);
20910      }
20911  }
20912#if 0 /* This bug could be worked around by the caller.  */
20913  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
20914  {
20915    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20916    if (cd_88591_to_utf8 != (iconv_t)(-1))
20917      {
20918        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20919        char buf[50];
20920        ICONV_CONST char *inptr = input;
20921        size_t inbytesleft = strlen (input);
20922        char *outptr = buf;
20923        size_t outbytesleft = sizeof (buf);
20924        size_t res = iconv (cd_88591_to_utf8,
20925                            &inptr, &inbytesleft,
20926                            &outptr, &outbytesleft);
20927        if ((int)res > 0)
20928          result |= 8;
20929        iconv_close (cd_88591_to_utf8);
20930      }
20931  }
20932#endif
20933  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20934     provided.  */
20935  {
20936    /* Try standardized names.  */
20937    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
20938    /* Try IRIX, OSF/1 names.  */
20939    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
20940    /* Try AIX names.  */
20941    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
20942    /* Try HP-UX names.  */
20943    iconv_t cd4 = iconv_open ("utf8", "eucJP");
20944    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
20945        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
20946      result |= 16;
20947    if (cd1 != (iconv_t)(-1))
20948      iconv_close (cd1);
20949    if (cd2 != (iconv_t)(-1))
20950      iconv_close (cd2);
20951    if (cd3 != (iconv_t)(-1))
20952      iconv_close (cd3);
20953    if (cd4 != (iconv_t)(-1))
20954      iconv_close (cd4);
20955  }
20956  return result;
20957
20958  ;
20959  return 0;
20960}
20961_ACEOF
20962if ac_fn_c_try_run "$LINENO"; then :
20963  am_cv_func_iconv_works=yes
20964fi
20965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20966  conftest.$ac_objext conftest.beam conftest.$ac_ext
20967fi
20968
20969        test "$am_cv_func_iconv_works" = no || break
20970      done
20971      LIBS="$am_save_LIBS"
20972
20973fi
20974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20975$as_echo "$am_cv_func_iconv_works" >&6; }
20976    case "$am_cv_func_iconv_works" in
20977      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20978      *)   am_func_iconv=yes ;;
20979    esac
20980  else
20981    am_func_iconv=no am_cv_lib_iconv=no
20982  fi
20983  if test "$am_func_iconv" = yes; then
20984
20985$as_echo "#define HAVE_ICONV 1" >>confdefs.h
20986
20987  fi
20988  if test "$am_cv_lib_iconv" = yes; then
20989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20990$as_echo_n "checking how to link with libiconv... " >&6; }
20991    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20992$as_echo "$LIBICONV" >&6; }
20993  else
20994            CPPFLAGS="$am_save_CPPFLAGS"
20995    LIBICONV=
20996    LTLIBICONV=
20997  fi
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008    use_additional=yes
21009
21010  acl_save_prefix="$prefix"
21011  prefix="$acl_final_prefix"
21012  acl_save_exec_prefix="$exec_prefix"
21013  exec_prefix="$acl_final_exec_prefix"
21014
21015    eval additional_includedir=\"$includedir\"
21016    eval additional_libdir=\"$libdir\"
21017    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
21018    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
21019
21020  exec_prefix="$acl_save_exec_prefix"
21021  prefix="$acl_save_prefix"
21022
21023
21024# Check whether --with-libintl-prefix was given.
21025if test "${with_libintl_prefix+set}" = set; then :
21026  withval=$with_libintl_prefix;
21027    if test "X$withval" = "Xno"; then
21028      use_additional=no
21029    else
21030      if test "X$withval" = "X"; then
21031
21032  acl_save_prefix="$prefix"
21033  prefix="$acl_final_prefix"
21034  acl_save_exec_prefix="$exec_prefix"
21035  exec_prefix="$acl_final_exec_prefix"
21036
21037          eval additional_includedir=\"$includedir\"
21038          eval additional_libdir=\"$libdir\"
21039          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
21040          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
21041
21042  exec_prefix="$acl_save_exec_prefix"
21043  prefix="$acl_save_prefix"
21044
21045      else
21046        additional_includedir="$withval/include"
21047        additional_libdir="$withval/$acl_libdirstem"
21048        additional_libdir2="$withval/$acl_libdirstem2"
21049        additional_libdir3="$withval/$acl_libdirstem3"
21050      fi
21051    fi
21052
21053fi
21054
21055  if test "X$additional_libdir2" = "X$additional_libdir"; then
21056    additional_libdir2=
21057  fi
21058  if test "X$additional_libdir3" = "X$additional_libdir"; then
21059    additional_libdir3=
21060  fi
21061      LIBINTL=
21062  LTLIBINTL=
21063  INCINTL=
21064  LIBINTL_PREFIX=
21065      HAVE_LIBINTL=
21066  rpathdirs=
21067  ltrpathdirs=
21068  names_already_handled=
21069  names_next_round='intl '
21070  while test -n "$names_next_round"; do
21071    names_this_round="$names_next_round"
21072    names_next_round=
21073    for name in $names_this_round; do
21074      already_handled=
21075      for n in $names_already_handled; do
21076        if test "$n" = "$name"; then
21077          already_handled=yes
21078          break
21079        fi
21080      done
21081      if test -z "$already_handled"; then
21082        names_already_handled="$names_already_handled $name"
21083                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
21084        eval value=\"\$HAVE_LIB$uppername\"
21085        if test -n "$value"; then
21086          if test "$value" = yes; then
21087            eval value=\"\$LIB$uppername\"
21088            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21089            eval value=\"\$LTLIB$uppername\"
21090            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21091          else
21092                                    :
21093          fi
21094        else
21095                              found_dir=
21096          found_la=
21097          found_so=
21098          found_a=
21099          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
21100          if test -n "$acl_shlibext"; then
21101            shrext=".$acl_shlibext"             # typically: shrext=.so
21102          else
21103            shrext=
21104          fi
21105          if test $use_additional = yes; then
21106            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
21107              if test "X$found_dir" = "X"; then
21108                eval dir=\$$additional_libdir_variable
21109                if test -n "$dir"; then
21110                                                      if test -n "$acl_shlibext"; then
21111                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
21112                      found_dir="$dir"
21113                      found_so="$dir/$libname$shrext"
21114                    else
21115                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21116                        ver=`(cd "$dir" && \
21117                              for f in "$libname$shrext".*; do echo "$f"; done \
21118                              | sed -e "s,^$libname$shrext\\\\.,," \
21119                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21120                              | sed 1q ) 2>/dev/null`
21121                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
21122                          found_dir="$dir"
21123                          found_so="$dir/$libname$shrext.$ver"
21124                        fi
21125                      else
21126                        eval library_names=\"$acl_library_names_spec\"
21127                        for f in $library_names; do
21128                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
21129                            found_dir="$dir"
21130                            found_so="$dir/$f"
21131                            break
21132                          fi
21133                        done
21134                      fi
21135                    fi
21136                  fi
21137                                    if test "X$found_dir" = "X"; then
21138                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
21139                      found_dir="$dir"
21140                      found_a="$dir/$libname.$acl_libext"
21141                    fi
21142                  fi
21143                  if test "X$found_dir" != "X"; then
21144                    if test -f "$dir/$libname.la"; then
21145                      found_la="$dir/$libname.la"
21146                    fi
21147                  fi
21148                fi
21149              fi
21150            done
21151          fi
21152          if test "X$found_dir" = "X"; then
21153            for x in $LDFLAGS $LTLIBINTL; do
21154
21155  acl_save_prefix="$prefix"
21156  prefix="$acl_final_prefix"
21157  acl_save_exec_prefix="$exec_prefix"
21158  exec_prefix="$acl_final_exec_prefix"
21159  eval x=\"$x\"
21160  exec_prefix="$acl_save_exec_prefix"
21161  prefix="$acl_save_prefix"
21162
21163              case "$x" in
21164                -L*)
21165                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21166                                    if test -n "$acl_shlibext"; then
21167                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
21168                      found_dir="$dir"
21169                      found_so="$dir/$libname$shrext"
21170                    else
21171                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21172                        ver=`(cd "$dir" && \
21173                              for f in "$libname$shrext".*; do echo "$f"; done \
21174                              | sed -e "s,^$libname$shrext\\\\.,," \
21175                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21176                              | sed 1q ) 2>/dev/null`
21177                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
21178                          found_dir="$dir"
21179                          found_so="$dir/$libname$shrext.$ver"
21180                        fi
21181                      else
21182                        eval library_names=\"$acl_library_names_spec\"
21183                        for f in $library_names; do
21184                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
21185                            found_dir="$dir"
21186                            found_so="$dir/$f"
21187                            break
21188                          fi
21189                        done
21190                      fi
21191                    fi
21192                  fi
21193                                    if test "X$found_dir" = "X"; then
21194                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
21195                      found_dir="$dir"
21196                      found_a="$dir/$libname.$acl_libext"
21197                    fi
21198                  fi
21199                  if test "X$found_dir" != "X"; then
21200                    if test -f "$dir/$libname.la"; then
21201                      found_la="$dir/$libname.la"
21202                    fi
21203                  fi
21204                  ;;
21205              esac
21206              if test "X$found_dir" != "X"; then
21207                break
21208              fi
21209            done
21210          fi
21211          if test "X$found_dir" != "X"; then
21212                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21213            if test "X$found_so" != "X"; then
21214                                                        if test "$enable_rpath" = no \
21215                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
21216                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
21217                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
21218                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21219              else
21220                                                                                haveit=
21221                for x in $ltrpathdirs; do
21222                  if test "X$x" = "X$found_dir"; then
21223                    haveit=yes
21224                    break
21225                  fi
21226                done
21227                if test -z "$haveit"; then
21228                  ltrpathdirs="$ltrpathdirs $found_dir"
21229                fi
21230                                if test "$acl_hardcode_direct" = yes; then
21231                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21232                else
21233                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21234                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21235                                                            haveit=
21236                    for x in $rpathdirs; do
21237                      if test "X$x" = "X$found_dir"; then
21238                        haveit=yes
21239                        break
21240                      fi
21241                    done
21242                    if test -z "$haveit"; then
21243                      rpathdirs="$rpathdirs $found_dir"
21244                    fi
21245                  else
21246                                                                                haveit=
21247                    for x in $LDFLAGS $LIBINTL; do
21248
21249  acl_save_prefix="$prefix"
21250  prefix="$acl_final_prefix"
21251  acl_save_exec_prefix="$exec_prefix"
21252  exec_prefix="$acl_final_exec_prefix"
21253  eval x=\"$x\"
21254  exec_prefix="$acl_save_exec_prefix"
21255  prefix="$acl_save_prefix"
21256
21257                      if test "X$x" = "X-L$found_dir"; then
21258                        haveit=yes
21259                        break
21260                      fi
21261                    done
21262                    if test -z "$haveit"; then
21263                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21264                    fi
21265                    if test "$acl_hardcode_minus_L" != no; then
21266                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21267                    else
21268                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21269                    fi
21270                  fi
21271                fi
21272              fi
21273            else
21274              if test "X$found_a" != "X"; then
21275                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21276              else
21277                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21278              fi
21279            fi
21280                        additional_includedir=
21281            case "$found_dir" in
21282              */$acl_libdirstem | */$acl_libdirstem/)
21283                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21284                if test "$name" = 'intl'; then
21285                  LIBINTL_PREFIX="$basedir"
21286                fi
21287                additional_includedir="$basedir/include"
21288                ;;
21289              */$acl_libdirstem2 | */$acl_libdirstem2/)
21290                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
21291                if test "$name" = 'intl'; then
21292                  LIBINTL_PREFIX="$basedir"
21293                fi
21294                additional_includedir="$basedir/include"
21295                ;;
21296              */$acl_libdirstem3 | */$acl_libdirstem3/)
21297                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
21298                if test "$name" = 'intl'; then
21299                  LIBINTL_PREFIX="$basedir"
21300                fi
21301                additional_includedir="$basedir/include"
21302                ;;
21303            esac
21304            if test "X$additional_includedir" != "X"; then
21305                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
21306                haveit=
21307                if test "X$additional_includedir" = "X/usr/local/include"; then
21308                  if test -n "$GCC"; then
21309                    case $host_os in
21310                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21311                    esac
21312                  fi
21313                fi
21314                if test -z "$haveit"; then
21315                  for x in $CPPFLAGS $INCINTL; do
21316
21317  acl_save_prefix="$prefix"
21318  prefix="$acl_final_prefix"
21319  acl_save_exec_prefix="$exec_prefix"
21320  exec_prefix="$acl_final_exec_prefix"
21321  eval x=\"$x\"
21322  exec_prefix="$acl_save_exec_prefix"
21323  prefix="$acl_save_prefix"
21324
21325                    if test "X$x" = "X-I$additional_includedir"; then
21326                      haveit=yes
21327                      break
21328                    fi
21329                  done
21330                  if test -z "$haveit"; then
21331                    if test -d "$additional_includedir"; then
21332                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21333                    fi
21334                  fi
21335                fi
21336              fi
21337            fi
21338                        if test -n "$found_la"; then
21339                                                        save_libdir="$libdir"
21340              case "$found_la" in
21341                */* | *\\*) . "$found_la" ;;
21342                *) . "./$found_la" ;;
21343              esac
21344              libdir="$save_libdir"
21345                            for dep in $dependency_libs; do
21346                case "$dep" in
21347                  -L*)
21348                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21349                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
21350                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
21351                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
21352                      haveit=
21353                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
21354                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
21355                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
21356                        if test -n "$GCC"; then
21357                          case $host_os in
21358                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21359                          esac
21360                        fi
21361                      fi
21362                      if test -z "$haveit"; then
21363                        haveit=
21364                        for x in $LDFLAGS $LIBINTL; do
21365
21366  acl_save_prefix="$prefix"
21367  prefix="$acl_final_prefix"
21368  acl_save_exec_prefix="$exec_prefix"
21369  exec_prefix="$acl_final_exec_prefix"
21370  eval x=\"$x\"
21371  exec_prefix="$acl_save_exec_prefix"
21372  prefix="$acl_save_prefix"
21373
21374                          if test "X$x" = "X-L$dependency_libdir"; then
21375                            haveit=yes
21376                            break
21377                          fi
21378                        done
21379                        if test -z "$haveit"; then
21380                          if test -d "$dependency_libdir"; then
21381                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
21382                          fi
21383                        fi
21384                        haveit=
21385                        for x in $LDFLAGS $LTLIBINTL; do
21386
21387  acl_save_prefix="$prefix"
21388  prefix="$acl_final_prefix"
21389  acl_save_exec_prefix="$exec_prefix"
21390  exec_prefix="$acl_final_exec_prefix"
21391  eval x=\"$x\"
21392  exec_prefix="$acl_save_exec_prefix"
21393  prefix="$acl_save_prefix"
21394
21395                          if test "X$x" = "X-L$dependency_libdir"; then
21396                            haveit=yes
21397                            break
21398                          fi
21399                        done
21400                        if test -z "$haveit"; then
21401                          if test -d "$dependency_libdir"; then
21402                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
21403                          fi
21404                        fi
21405                      fi
21406                    fi
21407                    ;;
21408                  -R*)
21409                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
21410                    if test "$enable_rpath" != no; then
21411                                                                  haveit=
21412                      for x in $rpathdirs; do
21413                        if test "X$x" = "X$dir"; then
21414                          haveit=yes
21415                          break
21416                        fi
21417                      done
21418                      if test -z "$haveit"; then
21419                        rpathdirs="$rpathdirs $dir"
21420                      fi
21421                                                                  haveit=
21422                      for x in $ltrpathdirs; do
21423                        if test "X$x" = "X$dir"; then
21424                          haveit=yes
21425                          break
21426                        fi
21427                      done
21428                      if test -z "$haveit"; then
21429                        ltrpathdirs="$ltrpathdirs $dir"
21430                      fi
21431                    fi
21432                    ;;
21433                  -l*)
21434                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21435                    ;;
21436                  *.la)
21437                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21438                    ;;
21439                  *)
21440                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21441                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21442                    ;;
21443                esac
21444              done
21445            fi
21446          else
21447                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21448            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21449          fi
21450        fi
21451      fi
21452    done
21453  done
21454  if test "X$rpathdirs" != "X"; then
21455    if test -n "$acl_hardcode_libdir_separator"; then
21456                        alldirs=
21457      for found_dir in $rpathdirs; do
21458        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21459      done
21460            acl_save_libdir="$libdir"
21461      libdir="$alldirs"
21462      eval flag=\"$acl_hardcode_libdir_flag_spec\"
21463      libdir="$acl_save_libdir"
21464      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21465    else
21466            for found_dir in $rpathdirs; do
21467        acl_save_libdir="$libdir"
21468        libdir="$found_dir"
21469        eval flag=\"$acl_hardcode_libdir_flag_spec\"
21470        libdir="$acl_save_libdir"
21471        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21472      done
21473    fi
21474  fi
21475  if test "X$ltrpathdirs" != "X"; then
21476            for found_dir in $ltrpathdirs; do
21477      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21478    done
21479  fi
21480
21481
21482
21483
21484
21485          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21486$as_echo_n "checking for GNU gettext in libintl... " >&6; }
21487if eval \${$gt_func_gnugettext_libintl+:} false; then :
21488  $as_echo_n "(cached) " >&6
21489else
21490  gt_save_CPPFLAGS="$CPPFLAGS"
21491            CPPFLAGS="$CPPFLAGS $INCINTL"
21492            gt_save_LIBS="$LIBS"
21493            LIBS="$LIBS $LIBINTL"
21494                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21495/* end confdefs.h.  */
21496
21497#include <libintl.h>
21498#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
21499extern int _nl_msg_cat_cntr;
21500extern
21501#ifdef __cplusplus
21502"C"
21503#endif
21504const char *_nl_expand_alias (const char *);
21505#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
21506#else
21507#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
21508#endif
21509$gt_revision_test_code
21510
21511int
21512main ()
21513{
21514
21515bindtextdomain ("", "");
21516return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
21517
21518  ;
21519  return 0;
21520}
21521_ACEOF
21522if ac_fn_c_try_link "$LINENO"; then :
21523  eval "$gt_func_gnugettext_libintl=yes"
21524else
21525  eval "$gt_func_gnugettext_libintl=no"
21526fi
21527rm -f core conftest.err conftest.$ac_objext \
21528    conftest$ac_exeext conftest.$ac_ext
21529                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
21530              LIBS="$LIBS $LIBICONV"
21531              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21532/* end confdefs.h.  */
21533
21534#include <libintl.h>
21535#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
21536extern int _nl_msg_cat_cntr;
21537extern
21538#ifdef __cplusplus
21539"C"
21540#endif
21541const char *_nl_expand_alias (const char *);
21542#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
21543#else
21544#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
21545#endif
21546$gt_revision_test_code
21547
21548int
21549main ()
21550{
21551
21552bindtextdomain ("", "");
21553return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
21554
21555  ;
21556  return 0;
21557}
21558_ACEOF
21559if ac_fn_c_try_link "$LINENO"; then :
21560  LIBINTL="$LIBINTL $LIBICONV"
21561                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21562                 eval "$gt_func_gnugettext_libintl=yes"
21563
21564fi
21565rm -f core conftest.err conftest.$ac_objext \
21566    conftest$ac_exeext conftest.$ac_ext
21567            fi
21568            CPPFLAGS="$gt_save_CPPFLAGS"
21569            LIBS="$gt_save_LIBS"
21570fi
21571eval ac_res=\$$gt_func_gnugettext_libintl
21572	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21573$as_echo "$ac_res" >&6; }
21574        fi
21575
21576                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
21577           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
21578                && test "$PACKAGE" != gettext-runtime \
21579                && test "$PACKAGE" != gettext-tools; }; then
21580          gt_use_preinstalled_gnugettext=yes
21581        else
21582                    LIBINTL=
21583          LTLIBINTL=
21584          INCINTL=
21585        fi
21586
21587
21588
21589    if test -n "$INTL_MACOSX_LIBS"; then
21590      if test "$gt_use_preinstalled_gnugettext" = "yes" \
21591         || test "$nls_cv_use_gnu_gettext" = "yes"; then
21592                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21593        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21594      fi
21595    fi
21596
21597    if test "$gt_use_preinstalled_gnugettext" = "yes" \
21598       || test "$nls_cv_use_gnu_gettext" = "yes"; then
21599
21600$as_echo "#define ENABLE_NLS 1" >>confdefs.h
21601
21602    else
21603      USE_NLS=no
21604    fi
21605  fi
21606
21607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21608$as_echo_n "checking whether to use NLS... " >&6; }
21609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21610$as_echo "$USE_NLS" >&6; }
21611  if test "$USE_NLS" = "yes"; then
21612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21613$as_echo_n "checking where the gettext function comes from... " >&6; }
21614    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21615      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
21616        gt_source="external libintl"
21617      else
21618        gt_source="libc"
21619      fi
21620    else
21621      gt_source="included intl directory"
21622    fi
21623    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21624$as_echo "$gt_source" >&6; }
21625  fi
21626
21627  if test "$USE_NLS" = "yes"; then
21628
21629    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21630      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
21631        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21632$as_echo_n "checking how to link with libintl... " >&6; }
21633        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21634$as_echo "$LIBINTL" >&6; }
21635
21636  for element in $INCINTL; do
21637    haveit=
21638    for x in $CPPFLAGS; do
21639
21640  acl_save_prefix="$prefix"
21641  prefix="$acl_final_prefix"
21642  acl_save_exec_prefix="$exec_prefix"
21643  exec_prefix="$acl_final_exec_prefix"
21644  eval x=\"$x\"
21645  exec_prefix="$acl_save_exec_prefix"
21646  prefix="$acl_save_prefix"
21647
21648      if test "X$x" = "X$element"; then
21649        haveit=yes
21650        break
21651      fi
21652    done
21653    if test -z "$haveit"; then
21654      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21655    fi
21656  done
21657
21658      fi
21659
21660
21661$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21662
21663
21664$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21665
21666    fi
21667
21668        POSUB=po
21669  fi
21670
21671
21672
21673    INTLLIBS="$LIBINTL"
21674
21675
21676
21677
21678
21679
21680
21681
21682 if test "x${USE_NLS}" = "xyes"; then
21683  USE_NLS_TRUE=
21684  USE_NLS_FALSE='#'
21685else
21686  USE_NLS_TRUE='#'
21687  USE_NLS_FALSE=
21688fi
21689
21690
21691# Check whether --enable-static_qt was given.
21692if test "${enable_static_qt+set}" = set; then :
21693  enableval=$enable_static_qt;
21694fi
21695
21696
21697if test x$enable_static_qt = xyes; then :
21698  LIBQT_EXTRA_LDFLAGS="-static"
21699
21700fi
21701
21702
21703
21704for ac_header in poll.h
21705do :
21706  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
21707if test "x$ac_cv_header_poll_h" = xyes; then :
21708  cat >>confdefs.h <<_ACEOF
21709#define HAVE_POLL_H 1
21710_ACEOF
21711 have_poll="yes"
21712else
21713  have_poll="no"
21714fi
21715
21716done
21717
21718 if test "x$have_poll" = "xyes"; then
21719  HAVE_POLL_TRUE=
21720  HAVE_POLL_FALSE='#'
21721else
21722  HAVE_POLL_TRUE='#'
21723  HAVE_POLL_FALSE=
21724fi
21725
21726
21727
21728# Check whether --enable-pthread was given.
21729if test "${enable_pthread+set}" = set; then :
21730  enableval=$enable_pthread;
21731else
21732  if test "x$win32" = "xno"; then :
21733  enable_pthread="yes"
21734else
21735  enable_pthread="no"
21736
21737fi
21738fi
21739
21740
21741if test "x$enable_pthread" != "xno"; then :
21742  for ac_header in pthread.h
21743do :
21744  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
21745if test "x$ac_cv_header_pthread_h" = xyes; then :
21746  cat >>confdefs.h <<_ACEOF
21747#define HAVE_PTHREAD_H 1
21748_ACEOF
21749
21750else
21751  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21753as_fn_error $? "test for pthread support failed!
21754configure --disable-pthread to skip threaded support.
21755See \`config.log' for more details" "$LINENO" 5; }
21756fi
21757
21758done
21759
21760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
21761$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
21762if ${ac_cv_lib_pthread_pthread_create+:} false; then :
21763  $as_echo_n "(cached) " >&6
21764else
21765  ac_check_lib_save_LIBS=$LIBS
21766LIBS="-lpthread  $LIBS"
21767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21768/* end confdefs.h.  */
21769
21770/* Override any GCC internal prototype to avoid an error.
21771   Use char because int might match the return type of a GCC
21772   builtin and then its argument prototype would still apply.  */
21773#ifdef __cplusplus
21774extern "C"
21775#endif
21776char pthread_create ();
21777int
21778main ()
21779{
21780return pthread_create ();
21781  ;
21782  return 0;
21783}
21784_ACEOF
21785if ac_fn_c_try_link "$LINENO"; then :
21786  ac_cv_lib_pthread_pthread_create=yes
21787else
21788  ac_cv_lib_pthread_pthread_create=no
21789fi
21790rm -f core conftest.err conftest.$ac_objext \
21791    conftest$ac_exeext conftest.$ac_ext
21792LIBS=$ac_check_lib_save_LIBS
21793fi
21794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
21795$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
21796if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
21797  cat >>confdefs.h <<_ACEOF
21798#define HAVE_LIBPTHREAD 1
21799_ACEOF
21800
21801  LIBS="-lpthread $LIBS"
21802
21803else
21804  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21806as_fn_error $? "unable to link against -lpthread, although you
21807appear to have pthread.h? set LDFLAGS and/or LIBS to help the linker,
21808or configure --disable-pthread to skip threaded support.
21809See \`config.log' for more details" "$LINENO" 5; }
21810fi
21811
21812
21813$as_echo "#define __USE_UNIX98 1" >>confdefs.h
21814
21815
21816fi
21817
21818# Check whether --enable-doc was given.
21819if test "${enable_doc+set}" = set; then :
21820  enableval=$enable_doc;
21821else
21822  enable_doc="yes"
21823fi
21824
21825
21826if test "x$enable_doc" != "xno"; then :
21827
21828
21829   for ac_prog in xmlto
21830do
21831  # Extract the first word of "$ac_prog", so it can be a program name with args.
21832set dummy $ac_prog; ac_word=$2
21833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21834$as_echo_n "checking for $ac_word... " >&6; }
21835if ${ac_cv_prog_XMLTO+:} false; then :
21836  $as_echo_n "(cached) " >&6
21837else
21838  if test -n "$XMLTO"; then
21839  ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
21840else
21841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21842for as_dir in $PATH
21843do
21844  IFS=$as_save_IFS
21845  test -z "$as_dir" && as_dir=.
21846    for ac_exec_ext in '' $ac_executable_extensions; do
21847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21848    ac_cv_prog_XMLTO="$ac_prog"
21849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21850    break 2
21851  fi
21852done
21853  done
21854IFS=$as_save_IFS
21855
21856fi
21857fi
21858XMLTO=$ac_cv_prog_XMLTO
21859if test -n "$XMLTO"; then
21860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
21861$as_echo "$XMLTO" >&6; }
21862else
21863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864$as_echo "no" >&6; }
21865fi
21866
21867
21868  test -n "$XMLTO" && break
21869done
21870
21871fi
21872
21873if test "x$XMLTO" = "x"; then :
21874  enable_doc="no"
21875fi
21876
21877 if test "x$enable_doc" != "xno"; then
21878  HAVE_DOC_TRUE=
21879  HAVE_DOC_FALSE='#'
21880else
21881  HAVE_DOC_TRUE='#'
21882  HAVE_DOC_FALSE=
21883fi
21884
21885
21886# Check whether --enable-video was given.
21887if test "${enable_video+set}" = set; then :
21888  enableval=$enable_video;
21889else
21890  enable_video="yes"
21891fi
21892
21893
21894
21895# Check whether --with-directshow was given.
21896if test "${with_directshow+set}" = set; then :
21897  withval=$with_directshow;
21898else
21899  with_directshow="no"
21900fi
21901
21902
21903have_v4l1="no"
21904have_v4l2="no"
21905have_libv4l="no"
21906if test "x$enable_video" = "xno"; then :
21907
21908elif test "x$win32" = "xno"; then :
21909  for ac_header in linux/videodev.h
21910do :
21911  ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
21912if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
21913  cat >>confdefs.h <<_ACEOF
21914#define HAVE_LINUX_VIDEODEV_H 1
21915_ACEOF
21916 have_v4l1="yes"
21917fi
21918
21919done
21920
21921   for ac_header in linux/videodev2.h
21922do :
21923  ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default"
21924if test "x$ac_cv_header_linux_videodev2_h" = xyes; then :
21925  cat >>confdefs.h <<_ACEOF
21926#define HAVE_LINUX_VIDEODEV2_H 1
21927_ACEOF
21928 have_v4l2="yes"
21929fi
21930
21931done
21932
21933   for ac_header in libv4l2.h
21934do :
21935  ac_fn_c_check_header_mongrel "$LINENO" "libv4l2.h" "ac_cv_header_libv4l2_h" "$ac_includes_default"
21936if test "x$ac_cv_header_libv4l2_h" = xyes; then :
21937  cat >>confdefs.h <<_ACEOF
21938#define HAVE_LIBV4L2_H 1
21939_ACEOF
21940 have_libv4l="yes"
21941fi
21942
21943done
21944
21945   if test "x$have_v4l2" = "xno" && test "x$have_v4l1" = "xno"; then :
21946  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21948as_fn_error $? "test for video support failed!
21949rebuild your kernel to include video4linux support or
21950configure --disable-video to skip building video support.
21951See \`config.log' for more details" "$LINENO" 5; }
21952else
21953  if test "x$have_v4l2" = "xno"; then :
21954  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: v4l2 API not detected, upgrade your kernel!" >&5
21955$as_echo "$as_me: WARNING: v4l2 API not detected, upgrade your kernel!" >&2;}
21956fi
21957
21958fi
21959else
21960  if test "x$with_directshow" != "xno"; then :
21961  with_video="directshow"
21962else
21963  for ac_header in vfw.h
21964do :
21965  ac_fn_c_check_header_compile "$LINENO" "vfw.h" "ac_cv_header_vfw_h" "#include <windows.h>
21966"
21967if test "x$ac_cv_header_vfw_h" = xyes; then :
21968  cat >>confdefs.h <<_ACEOF
21969#define HAVE_VFW_H 1
21970_ACEOF
21971 with_video="vfw"
21972else
21973  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21975as_fn_error $? "test for VfW video support failed!
21976configure --disable-video to skip building video support.
21977See \`config.log' for more details" "$LINENO" 5; }
21978fi
21979
21980done
21981
21982fi
21983fi
21984
21985if test "x$have_libv4l" = "xyes"; then :
21986
21987pkg_failed=no
21988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for V4L2" >&5
21989$as_echo_n "checking for V4L2... " >&6; }
21990
21991if test -n "$V4L2_CFLAGS"; then
21992    pkg_cv_V4L2_CFLAGS="$V4L2_CFLAGS"
21993 elif test -n "$PKG_CONFIG"; then
21994    if test -n "$PKG_CONFIG" && \
21995    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l2\""; } >&5
21996  ($PKG_CONFIG --exists --print-errors "libv4l2") 2>&5
21997  ac_status=$?
21998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21999  test $ac_status = 0; }; then
22000  pkg_cv_V4L2_CFLAGS=`$PKG_CONFIG --cflags "libv4l2" 2>/dev/null`
22001		      test "x$?" != "x0" && pkg_failed=yes
22002else
22003  pkg_failed=yes
22004fi
22005 else
22006    pkg_failed=untried
22007fi
22008if test -n "$V4L2_LIBS"; then
22009    pkg_cv_V4L2_LIBS="$V4L2_LIBS"
22010 elif test -n "$PKG_CONFIG"; then
22011    if test -n "$PKG_CONFIG" && \
22012    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l2\""; } >&5
22013  ($PKG_CONFIG --exists --print-errors "libv4l2") 2>&5
22014  ac_status=$?
22015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22016  test $ac_status = 0; }; then
22017  pkg_cv_V4L2_LIBS=`$PKG_CONFIG --libs "libv4l2" 2>/dev/null`
22018		      test "x$?" != "x0" && pkg_failed=yes
22019else
22020  pkg_failed=yes
22021fi
22022 else
22023    pkg_failed=untried
22024fi
22025
22026
22027
22028if test $pkg_failed = yes; then
22029   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22030$as_echo "no" >&6; }
22031
22032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22033        _pkg_short_errors_supported=yes
22034else
22035        _pkg_short_errors_supported=no
22036fi
22037        if test $_pkg_short_errors_supported = yes; then
22038	        V4L2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libv4l2" 2>&1`
22039        else
22040	        V4L2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libv4l2" 2>&1`
22041        fi
22042	# Put the nasty error message in config.log where it belongs
22043	echo "$V4L2_PKG_ERRORS" >&5
22044
22045	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22047as_fn_error $? "unable to find libv4l2.so
22048See \`config.log' for more details" "$LINENO" 5; }
22049elif test $pkg_failed = untried; then
22050     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22051$as_echo "no" >&6; }
22052	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22054as_fn_error $? "unable to find libv4l2.so
22055See \`config.log' for more details" "$LINENO" 5; }
22056else
22057	V4L2_CFLAGS=$pkg_cv_V4L2_CFLAGS
22058	V4L2_LIBS=$pkg_cv_V4L2_LIBS
22059        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22060$as_echo "yes" >&6; }
22061
22062fi
22063else
22064  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libv4l not detected. Install it to support more cameras!" >&5
22065$as_echo "$as_me: WARNING: libv4l not detected. Install it to support more cameras!" >&2;}
22066fi
22067
22068 if test "x$enable_video" != "xno"; then
22069  HAVE_VIDEO_TRUE=
22070  HAVE_VIDEO_FALSE='#'
22071else
22072  HAVE_VIDEO_TRUE='#'
22073  HAVE_VIDEO_FALSE=
22074fi
22075
22076 if test "x$have_v4l1" != "xno"; then
22077  HAVE_V4L1_TRUE=
22078  HAVE_V4L1_FALSE='#'
22079else
22080  HAVE_V4L1_TRUE='#'
22081  HAVE_V4L1_FALSE=
22082fi
22083
22084 if test "x$have_v4l2" != "xno"; then
22085  HAVE_V4L2_TRUE=
22086  HAVE_V4L2_FALSE='#'
22087else
22088  HAVE_V4L2_TRUE='#'
22089  HAVE_V4L2_FALSE=
22090fi
22091
22092 if test "x$have_libv4l" != "xno"; then
22093  HAVE_LIBV4L_TRUE=
22094  HAVE_LIBV4L_FALSE='#'
22095else
22096  HAVE_LIBV4L_TRUE='#'
22097  HAVE_LIBV4L_FALSE=
22098fi
22099
22100 if test "x$with_directshow" != "xno"; then
22101  WITH_DIRECTSHOW_TRUE=
22102  WITH_DIRECTSHOW_FALSE='#'
22103else
22104  WITH_DIRECTSHOW_TRUE='#'
22105  WITH_DIRECTSHOW_FALSE=
22106fi
22107
22108
22109
22110
22111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
22112$as_echo_n "checking for X... " >&6; }
22113
22114
22115# Check whether --with-x was given.
22116if test "${with_x+set}" = set; then :
22117  withval=$with_x;
22118fi
22119
22120# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22121if test "x$with_x" = xno; then
22122  # The user explicitly disabled X.
22123  have_x=disabled
22124else
22125  case $x_includes,$x_libraries in #(
22126    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
22127    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
22128  $as_echo_n "(cached) " >&6
22129else
22130  # One or both of the vars are not set, and there is no cached value.
22131ac_x_includes=no ac_x_libraries=no
22132rm -f -r conftest.dir
22133if mkdir conftest.dir; then
22134  cd conftest.dir
22135  cat >Imakefile <<'_ACEOF'
22136incroot:
22137	@echo incroot='${INCROOT}'
22138usrlibdir:
22139	@echo usrlibdir='${USRLIBDIR}'
22140libdir:
22141	@echo libdir='${LIBDIR}'
22142_ACEOF
22143  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22144    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
22145    for ac_var in incroot usrlibdir libdir; do
22146      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22147    done
22148    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22149    for ac_extension in a so sl dylib la dll; do
22150      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22151	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
22152	ac_im_usrlibdir=$ac_im_libdir; break
22153      fi
22154    done
22155    # Screen out bogus values from the imake configuration.  They are
22156    # bogus both because they are the default anyway, and because
22157    # using them would break gcc on systems where it needs fixed includes.
22158    case $ac_im_incroot in
22159	/usr/include) ac_x_includes= ;;
22160	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22161    esac
22162    case $ac_im_usrlibdir in
22163	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
22164	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22165    esac
22166  fi
22167  cd ..
22168  rm -f -r conftest.dir
22169fi
22170
22171# Standard set of common directories for X headers.
22172# Check X11 before X11Rn because it is often a symlink to the current release.
22173ac_x_header_dirs='
22174/usr/X11/include
22175/usr/X11R7/include
22176/usr/X11R6/include
22177/usr/X11R5/include
22178/usr/X11R4/include
22179
22180/usr/include/X11
22181/usr/include/X11R7
22182/usr/include/X11R6
22183/usr/include/X11R5
22184/usr/include/X11R4
22185
22186/usr/local/X11/include
22187/usr/local/X11R7/include
22188/usr/local/X11R6/include
22189/usr/local/X11R5/include
22190/usr/local/X11R4/include
22191
22192/usr/local/include/X11
22193/usr/local/include/X11R7
22194/usr/local/include/X11R6
22195/usr/local/include/X11R5
22196/usr/local/include/X11R4
22197
22198/usr/X386/include
22199/usr/x386/include
22200/usr/XFree86/include/X11
22201
22202/usr/include
22203/usr/local/include
22204/usr/unsupported/include
22205/usr/athena/include
22206/usr/local/x11r5/include
22207/usr/lpp/Xamples/include
22208
22209/usr/openwin/include
22210/usr/openwin/share/include'
22211
22212if test "$ac_x_includes" = no; then
22213  # Guess where to find include files, by looking for Xlib.h.
22214  # First, try using that file with no special directory specified.
22215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22216/* end confdefs.h.  */
22217#include <X11/Xlib.h>
22218_ACEOF
22219if ac_fn_c_try_cpp "$LINENO"; then :
22220  # We can compile using X headers with no special include directory.
22221ac_x_includes=
22222else
22223  for ac_dir in $ac_x_header_dirs; do
22224  if test -r "$ac_dir/X11/Xlib.h"; then
22225    ac_x_includes=$ac_dir
22226    break
22227  fi
22228done
22229fi
22230rm -f conftest.err conftest.i conftest.$ac_ext
22231fi # $ac_x_includes = no
22232
22233if test "$ac_x_libraries" = no; then
22234  # Check for the libraries.
22235  # See if we find them without any special options.
22236  # Don't add to $LIBS permanently.
22237  ac_save_LIBS=$LIBS
22238  LIBS="-lX11 $LIBS"
22239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22240/* end confdefs.h.  */
22241#include <X11/Xlib.h>
22242int
22243main ()
22244{
22245XrmInitialize ()
22246  ;
22247  return 0;
22248}
22249_ACEOF
22250if ac_fn_c_try_link "$LINENO"; then :
22251  LIBS=$ac_save_LIBS
22252# We can link X programs with no special library path.
22253ac_x_libraries=
22254else
22255  LIBS=$ac_save_LIBS
22256for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22257do
22258  # Don't even attempt the hair of trying to link an X program!
22259  for ac_extension in a so sl dylib la dll; do
22260    if test -r "$ac_dir/libX11.$ac_extension"; then
22261      ac_x_libraries=$ac_dir
22262      break 2
22263    fi
22264  done
22265done
22266fi
22267rm -f core conftest.err conftest.$ac_objext \
22268    conftest$ac_exeext conftest.$ac_ext
22269fi # $ac_x_libraries = no
22270
22271case $ac_x_includes,$ac_x_libraries in #(
22272  no,* | *,no | *\'*)
22273    # Didn't find X, or a directory has "'" in its name.
22274    ac_cv_have_x="have_x=no";; #(
22275  *)
22276    # Record where we found X for the cache.
22277    ac_cv_have_x="have_x=yes\
22278	ac_x_includes='$ac_x_includes'\
22279	ac_x_libraries='$ac_x_libraries'"
22280esac
22281fi
22282;; #(
22283    *) have_x=yes;;
22284  esac
22285  eval "$ac_cv_have_x"
22286fi # $with_x != no
22287
22288if test "$have_x" != yes; then
22289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
22290$as_echo "$have_x" >&6; }
22291  no_x=yes
22292else
22293  # If each of the values was on the command line, it overrides each guess.
22294  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22295  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22296  # Update the cache value to reflect the command line values.
22297  ac_cv_have_x="have_x=yes\
22298	ac_x_includes='$x_includes'\
22299	ac_x_libraries='$x_libraries'"
22300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
22301$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
22302fi
22303
22304if test "x$win32" != "xno"; then :
22305  have_x="no"
22306else
22307  if test "$no_x" = yes; then
22308  # Not all programs may use this symbol, but it does not hurt to define it.
22309
22310$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
22311
22312  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22313else
22314  if test -n "$x_includes"; then
22315    X_CFLAGS="$X_CFLAGS -I$x_includes"
22316  fi
22317
22318  # It would also be nice to do this for all -L options, not just this one.
22319  if test -n "$x_libraries"; then
22320    X_LIBS="$X_LIBS -L$x_libraries"
22321    # For Solaris; some versions of Sun CC require a space after -R and
22322    # others require no space.  Words are not sufficient . . . .
22323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
22324$as_echo_n "checking whether -R must be followed by a space... " >&6; }
22325    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22326    ac_xsave_c_werror_flag=$ac_c_werror_flag
22327    ac_c_werror_flag=yes
22328    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22329/* end confdefs.h.  */
22330
22331int
22332main ()
22333{
22334
22335  ;
22336  return 0;
22337}
22338_ACEOF
22339if ac_fn_c_try_link "$LINENO"; then :
22340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22341$as_echo "no" >&6; }
22342       X_LIBS="$X_LIBS -R$x_libraries"
22343else
22344  LIBS="$ac_xsave_LIBS -R $x_libraries"
22345       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22346/* end confdefs.h.  */
22347
22348int
22349main ()
22350{
22351
22352  ;
22353  return 0;
22354}
22355_ACEOF
22356if ac_fn_c_try_link "$LINENO"; then :
22357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22358$as_echo "yes" >&6; }
22359	  X_LIBS="$X_LIBS -R $x_libraries"
22360else
22361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
22362$as_echo "neither works" >&6; }
22363fi
22364rm -f core conftest.err conftest.$ac_objext \
22365    conftest$ac_exeext conftest.$ac_ext
22366fi
22367rm -f core conftest.err conftest.$ac_objext \
22368    conftest$ac_exeext conftest.$ac_ext
22369    ac_c_werror_flag=$ac_xsave_c_werror_flag
22370    LIBS=$ac_xsave_LIBS
22371  fi
22372
22373  # Check for system-dependent libraries X programs must link with.
22374  # Do this before checking for the system-independent R6 libraries
22375  # (-lICE), since we may need -lsocket or whatever for X linking.
22376
22377  if test "$ISC" = yes; then
22378    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22379  else
22380    # Martyn Johnson says this is needed for Ultrix, if the X
22381    # libraries were built with DECnet support.  And Karl Berry says
22382    # the Alpha needs dnet_stub (dnet does not exist).
22383    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22384    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22385/* end confdefs.h.  */
22386
22387/* Override any GCC internal prototype to avoid an error.
22388   Use char because int might match the return type of a GCC
22389   builtin and then its argument prototype would still apply.  */
22390#ifdef __cplusplus
22391extern "C"
22392#endif
22393char XOpenDisplay ();
22394int
22395main ()
22396{
22397return XOpenDisplay ();
22398  ;
22399  return 0;
22400}
22401_ACEOF
22402if ac_fn_c_try_link "$LINENO"; then :
22403
22404else
22405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
22406$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
22407if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
22408  $as_echo_n "(cached) " >&6
22409else
22410  ac_check_lib_save_LIBS=$LIBS
22411LIBS="-ldnet  $LIBS"
22412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22413/* end confdefs.h.  */
22414
22415/* Override any GCC internal prototype to avoid an error.
22416   Use char because int might match the return type of a GCC
22417   builtin and then its argument prototype would still apply.  */
22418#ifdef __cplusplus
22419extern "C"
22420#endif
22421char dnet_ntoa ();
22422int
22423main ()
22424{
22425return dnet_ntoa ();
22426  ;
22427  return 0;
22428}
22429_ACEOF
22430if ac_fn_c_try_link "$LINENO"; then :
22431  ac_cv_lib_dnet_dnet_ntoa=yes
22432else
22433  ac_cv_lib_dnet_dnet_ntoa=no
22434fi
22435rm -f core conftest.err conftest.$ac_objext \
22436    conftest$ac_exeext conftest.$ac_ext
22437LIBS=$ac_check_lib_save_LIBS
22438fi
22439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22440$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
22441if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
22442  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22443fi
22444
22445    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22446      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
22447$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
22448if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
22449  $as_echo_n "(cached) " >&6
22450else
22451  ac_check_lib_save_LIBS=$LIBS
22452LIBS="-ldnet_stub  $LIBS"
22453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454/* end confdefs.h.  */
22455
22456/* Override any GCC internal prototype to avoid an error.
22457   Use char because int might match the return type of a GCC
22458   builtin and then its argument prototype would still apply.  */
22459#ifdef __cplusplus
22460extern "C"
22461#endif
22462char dnet_ntoa ();
22463int
22464main ()
22465{
22466return dnet_ntoa ();
22467  ;
22468  return 0;
22469}
22470_ACEOF
22471if ac_fn_c_try_link "$LINENO"; then :
22472  ac_cv_lib_dnet_stub_dnet_ntoa=yes
22473else
22474  ac_cv_lib_dnet_stub_dnet_ntoa=no
22475fi
22476rm -f core conftest.err conftest.$ac_objext \
22477    conftest$ac_exeext conftest.$ac_ext
22478LIBS=$ac_check_lib_save_LIBS
22479fi
22480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22481$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
22482if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
22483  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22484fi
22485
22486    fi
22487fi
22488rm -f core conftest.err conftest.$ac_objext \
22489    conftest$ac_exeext conftest.$ac_ext
22490    LIBS="$ac_xsave_LIBS"
22491
22492    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22493    # to get the SysV transport functions.
22494    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22495    # needs -lnsl.
22496    # The nsl library prevents programs from opening the X display
22497    # on Irix 5.2, according to T.E. Dickey.
22498    # The functions gethostbyname, getservbyname, and inet_addr are
22499    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22500    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22501if test "x$ac_cv_func_gethostbyname" = xyes; then :
22502
22503fi
22504
22505    if test $ac_cv_func_gethostbyname = no; then
22506      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22507$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22508if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
22509  $as_echo_n "(cached) " >&6
22510else
22511  ac_check_lib_save_LIBS=$LIBS
22512LIBS="-lnsl  $LIBS"
22513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514/* end confdefs.h.  */
22515
22516/* Override any GCC internal prototype to avoid an error.
22517   Use char because int might match the return type of a GCC
22518   builtin and then its argument prototype would still apply.  */
22519#ifdef __cplusplus
22520extern "C"
22521#endif
22522char gethostbyname ();
22523int
22524main ()
22525{
22526return gethostbyname ();
22527  ;
22528  return 0;
22529}
22530_ACEOF
22531if ac_fn_c_try_link "$LINENO"; then :
22532  ac_cv_lib_nsl_gethostbyname=yes
22533else
22534  ac_cv_lib_nsl_gethostbyname=no
22535fi
22536rm -f core conftest.err conftest.$ac_objext \
22537    conftest$ac_exeext conftest.$ac_ext
22538LIBS=$ac_check_lib_save_LIBS
22539fi
22540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22541$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22542if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
22543  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22544fi
22545
22546      if test $ac_cv_lib_nsl_gethostbyname = no; then
22547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
22548$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
22549if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
22550  $as_echo_n "(cached) " >&6
22551else
22552  ac_check_lib_save_LIBS=$LIBS
22553LIBS="-lbsd  $LIBS"
22554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22555/* end confdefs.h.  */
22556
22557/* Override any GCC internal prototype to avoid an error.
22558   Use char because int might match the return type of a GCC
22559   builtin and then its argument prototype would still apply.  */
22560#ifdef __cplusplus
22561extern "C"
22562#endif
22563char gethostbyname ();
22564int
22565main ()
22566{
22567return gethostbyname ();
22568  ;
22569  return 0;
22570}
22571_ACEOF
22572if ac_fn_c_try_link "$LINENO"; then :
22573  ac_cv_lib_bsd_gethostbyname=yes
22574else
22575  ac_cv_lib_bsd_gethostbyname=no
22576fi
22577rm -f core conftest.err conftest.$ac_objext \
22578    conftest$ac_exeext conftest.$ac_ext
22579LIBS=$ac_check_lib_save_LIBS
22580fi
22581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
22582$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
22583if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
22584  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22585fi
22586
22587      fi
22588    fi
22589
22590    # lieder@skyler.mavd.honeywell.com says without -lsocket,
22591    # socket/setsockopt and other routines are undefined under SCO ODT
22592    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
22593    # on later versions), says Simon Leinen: it contains gethostby*
22594    # variants that don't use the name server (or something).  -lsocket
22595    # must be given before -lnsl if both are needed.  We assume that
22596    # if connect needs -lnsl, so does gethostbyname.
22597    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22598if test "x$ac_cv_func_connect" = xyes; then :
22599
22600fi
22601
22602    if test $ac_cv_func_connect = no; then
22603      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
22604$as_echo_n "checking for connect in -lsocket... " >&6; }
22605if ${ac_cv_lib_socket_connect+:} false; then :
22606  $as_echo_n "(cached) " >&6
22607else
22608  ac_check_lib_save_LIBS=$LIBS
22609LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22611/* end confdefs.h.  */
22612
22613/* Override any GCC internal prototype to avoid an error.
22614   Use char because int might match the return type of a GCC
22615   builtin and then its argument prototype would still apply.  */
22616#ifdef __cplusplus
22617extern "C"
22618#endif
22619char connect ();
22620int
22621main ()
22622{
22623return connect ();
22624  ;
22625  return 0;
22626}
22627_ACEOF
22628if ac_fn_c_try_link "$LINENO"; then :
22629  ac_cv_lib_socket_connect=yes
22630else
22631  ac_cv_lib_socket_connect=no
22632fi
22633rm -f core conftest.err conftest.$ac_objext \
22634    conftest$ac_exeext conftest.$ac_ext
22635LIBS=$ac_check_lib_save_LIBS
22636fi
22637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
22638$as_echo "$ac_cv_lib_socket_connect" >&6; }
22639if test "x$ac_cv_lib_socket_connect" = xyes; then :
22640  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22641fi
22642
22643    fi
22644
22645    # Guillermo Gomez says -lposix is necessary on A/UX.
22646    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
22647if test "x$ac_cv_func_remove" = xyes; then :
22648
22649fi
22650
22651    if test $ac_cv_func_remove = no; then
22652      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
22653$as_echo_n "checking for remove in -lposix... " >&6; }
22654if ${ac_cv_lib_posix_remove+:} false; then :
22655  $as_echo_n "(cached) " >&6
22656else
22657  ac_check_lib_save_LIBS=$LIBS
22658LIBS="-lposix  $LIBS"
22659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22660/* end confdefs.h.  */
22661
22662/* Override any GCC internal prototype to avoid an error.
22663   Use char because int might match the return type of a GCC
22664   builtin and then its argument prototype would still apply.  */
22665#ifdef __cplusplus
22666extern "C"
22667#endif
22668char remove ();
22669int
22670main ()
22671{
22672return remove ();
22673  ;
22674  return 0;
22675}
22676_ACEOF
22677if ac_fn_c_try_link "$LINENO"; then :
22678  ac_cv_lib_posix_remove=yes
22679else
22680  ac_cv_lib_posix_remove=no
22681fi
22682rm -f core conftest.err conftest.$ac_objext \
22683    conftest$ac_exeext conftest.$ac_ext
22684LIBS=$ac_check_lib_save_LIBS
22685fi
22686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
22687$as_echo "$ac_cv_lib_posix_remove" >&6; }
22688if test "x$ac_cv_lib_posix_remove" = xyes; then :
22689  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22690fi
22691
22692    fi
22693
22694    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22695    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
22696if test "x$ac_cv_func_shmat" = xyes; then :
22697
22698fi
22699
22700    if test $ac_cv_func_shmat = no; then
22701      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
22702$as_echo_n "checking for shmat in -lipc... " >&6; }
22703if ${ac_cv_lib_ipc_shmat+:} false; then :
22704  $as_echo_n "(cached) " >&6
22705else
22706  ac_check_lib_save_LIBS=$LIBS
22707LIBS="-lipc  $LIBS"
22708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22709/* end confdefs.h.  */
22710
22711/* Override any GCC internal prototype to avoid an error.
22712   Use char because int might match the return type of a GCC
22713   builtin and then its argument prototype would still apply.  */
22714#ifdef __cplusplus
22715extern "C"
22716#endif
22717char shmat ();
22718int
22719main ()
22720{
22721return shmat ();
22722  ;
22723  return 0;
22724}
22725_ACEOF
22726if ac_fn_c_try_link "$LINENO"; then :
22727  ac_cv_lib_ipc_shmat=yes
22728else
22729  ac_cv_lib_ipc_shmat=no
22730fi
22731rm -f core conftest.err conftest.$ac_objext \
22732    conftest$ac_exeext conftest.$ac_ext
22733LIBS=$ac_check_lib_save_LIBS
22734fi
22735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
22736$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
22737if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
22738  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22739fi
22740
22741    fi
22742  fi
22743
22744  # Check for libraries that X11R6 Xt/Xaw programs need.
22745  ac_save_LDFLAGS=$LDFLAGS
22746  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22747  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22748  # check for ICE first), but we must link in the order -lSM -lICE or
22749  # we get undefined symbols.  So assume we have SM if we have ICE.
22750  # These have to be linked with before -lX11, unlike the other
22751  # libraries we check for below, so use a different variable.
22752  # John Interrante, Karl Berry
22753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
22754$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
22755if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
22756  $as_echo_n "(cached) " >&6
22757else
22758  ac_check_lib_save_LIBS=$LIBS
22759LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22761/* end confdefs.h.  */
22762
22763/* Override any GCC internal prototype to avoid an error.
22764   Use char because int might match the return type of a GCC
22765   builtin and then its argument prototype would still apply.  */
22766#ifdef __cplusplus
22767extern "C"
22768#endif
22769char IceConnectionNumber ();
22770int
22771main ()
22772{
22773return IceConnectionNumber ();
22774  ;
22775  return 0;
22776}
22777_ACEOF
22778if ac_fn_c_try_link "$LINENO"; then :
22779  ac_cv_lib_ICE_IceConnectionNumber=yes
22780else
22781  ac_cv_lib_ICE_IceConnectionNumber=no
22782fi
22783rm -f core conftest.err conftest.$ac_objext \
22784    conftest$ac_exeext conftest.$ac_ext
22785LIBS=$ac_check_lib_save_LIBS
22786fi
22787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22788$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
22789if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
22790  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22791fi
22792
22793  LDFLAGS=$ac_save_LDFLAGS
22794
22795fi
22796
22797
22798fi
22799 if test "x$have_x" = "xyes"; then
22800  HAVE_X_TRUE=
22801  HAVE_X_FALSE='#'
22802else
22803  HAVE_X_TRUE='#'
22804  HAVE_X_FALSE=
22805fi
22806
22807
22808if test "x$XSHM_LIBS" = "x"; then :
22809  XSHM_LIBS="-lXext"
22810fi
22811
22812# Check whether --with-xshm was given.
22813if test "${with_xshm+set}" = set; then :
22814  withval=$with_xshm;
22815else
22816  with_xshm="check"
22817fi
22818
22819
22820if test "x$with_xshm" != "xno"; then :
22821  for ac_header in X11/extensions/XShm.h
22822do :
22823  ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "#include <X11/Xlib.h>
22824#include <sys/ipc.h>
22825#include <sys/shm.h>
22826
22827"
22828if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then :
22829  cat >>confdefs.h <<_ACEOF
22830#define HAVE_X11_EXTENSIONS_XSHM_H 1
22831_ACEOF
22832 with_xshm="yes"
22833else
22834  if test "x$with_xshm" = "xcheck"; then :
22835  with_xshm="no"
22836else
22837  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22839as_fn_error $? "test for X shared memory extension failed!
22840install the X shared memory extension, specify --x-includes or
22841configure --without-xshm to disable the extension
22842See \`config.log' for more details" "$LINENO" 5; }
22843fi
22844fi
22845
22846done
22847
22848   if test "x$with_xshm" != "xno"; then :
22849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryVersion in -lXext" >&5
22850$as_echo_n "checking for XShmQueryVersion in -lXext... " >&6; }
22851if ${ac_cv_lib_Xext_XShmQueryVersion+:} false; then :
22852  $as_echo_n "(cached) " >&6
22853else
22854  ac_check_lib_save_LIBS=$LIBS
22855LIBS="-lXext "$X_LIBS" "$X_PRE_LIBS" -lX11 "$X_EXTRA_LIBS" "$XSHM_LIBS" $LIBS"
22856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857/* end confdefs.h.  */
22858
22859/* Override any GCC internal prototype to avoid an error.
22860   Use char because int might match the return type of a GCC
22861   builtin and then its argument prototype would still apply.  */
22862#ifdef __cplusplus
22863extern "C"
22864#endif
22865char XShmQueryVersion ();
22866int
22867main ()
22868{
22869return XShmQueryVersion ();
22870  ;
22871  return 0;
22872}
22873_ACEOF
22874if ac_fn_c_try_link "$LINENO"; then :
22875  ac_cv_lib_Xext_XShmQueryVersion=yes
22876else
22877  ac_cv_lib_Xext_XShmQueryVersion=no
22878fi
22879rm -f core conftest.err conftest.$ac_objext \
22880    conftest$ac_exeext conftest.$ac_ext
22881LIBS=$ac_check_lib_save_LIBS
22882fi
22883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryVersion" >&5
22884$as_echo "$ac_cv_lib_Xext_XShmQueryVersion" >&6; }
22885if test "x$ac_cv_lib_Xext_XShmQueryVersion" = xyes; then :
22886  with_xshm="yes"
22887else
22888  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22890as_fn_error $? "unable to find XShmQueryVersion in $XSHM_LIBS!
22891specify XSHM_LIBS or configure --without-xshm to disable the extension
22892See \`config.log' for more details" "$LINENO" 5; }
22893fi
22894
22895
22896fi
22897
22898fi
22899 if test "x$with_xshm" = "xyes"; then
22900  HAVE_XSHM_TRUE=
22901  HAVE_XSHM_FALSE='#'
22902else
22903  HAVE_XSHM_TRUE='#'
22904  HAVE_XSHM_FALSE=
22905fi
22906
22907
22908
22909if test "x$XV_LIBS" = "x"; then :
22910  XV_LIBS="-lXv"
22911fi
22912
22913# Check whether --with-xv was given.
22914if test "${with_xv+set}" = set; then :
22915  withval=$with_xv;
22916else
22917  with_xv="check"
22918fi
22919
22920
22921if test "x$with_xv" != "xno"; then :
22922  for ac_header in X11/extensions/Xvlib.h
22923do :
22924  ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xvlib.h" "ac_cv_header_X11_extensions_Xvlib_h" "#include <X11/Xlib.h>
22925
22926"
22927if test "x$ac_cv_header_X11_extensions_Xvlib_h" = xyes; then :
22928  cat >>confdefs.h <<_ACEOF
22929#define HAVE_X11_EXTENSIONS_XVLIB_H 1
22930_ACEOF
22931 with_xv="yes"
22932else
22933  if test "x$with_xv" = "xcheck"; then :
22934  with_xv="no"
22935else
22936  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22938as_fn_error $? "test for XVideo extension failed!
22939install the XVideo extension, specify --x-includes or
22940configure --without-xv to disable the extension
22941See \`config.log' for more details" "$LINENO" 5; }
22942fi
22943fi
22944
22945done
22946
22947   if test "x$with_xv" != "xno"; then :
22948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XvQueryExtension in -lXv" >&5
22949$as_echo_n "checking for XvQueryExtension in -lXv... " >&6; }
22950if ${ac_cv_lib_Xv_XvQueryExtension+:} false; then :
22951  $as_echo_n "(cached) " >&6
22952else
22953  ac_check_lib_save_LIBS=$LIBS
22954LIBS="-lXv "$X_LIBS" "$X_PRE_LIBS" -lX11 "$X_EXTRA_LIBS" "$XV_LIBS" $LIBS"
22955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956/* end confdefs.h.  */
22957
22958/* Override any GCC internal prototype to avoid an error.
22959   Use char because int might match the return type of a GCC
22960   builtin and then its argument prototype would still apply.  */
22961#ifdef __cplusplus
22962extern "C"
22963#endif
22964char XvQueryExtension ();
22965int
22966main ()
22967{
22968return XvQueryExtension ();
22969  ;
22970  return 0;
22971}
22972_ACEOF
22973if ac_fn_c_try_link "$LINENO"; then :
22974  ac_cv_lib_Xv_XvQueryExtension=yes
22975else
22976  ac_cv_lib_Xv_XvQueryExtension=no
22977fi
22978rm -f core conftest.err conftest.$ac_objext \
22979    conftest$ac_exeext conftest.$ac_ext
22980LIBS=$ac_check_lib_save_LIBS
22981fi
22982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xv_XvQueryExtension" >&5
22983$as_echo "$ac_cv_lib_Xv_XvQueryExtension" >&6; }
22984if test "x$ac_cv_lib_Xv_XvQueryExtension" = xyes; then :
22985  with_xv="yes"
22986else
22987  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22989as_fn_error $? "unable to find XvQueryExtension in $XV_LIBS!
22990specify XV_LIBS or configure --without-xv to disable the extension
22991See \`config.log' for more details" "$LINENO" 5; }
22992fi
22993
22994
22995fi
22996
22997fi
22998 if test "x$with_xv" = "xyes"; then
22999  HAVE_XV_TRUE=
23000  HAVE_XV_FALSE='#'
23001else
23002  HAVE_XV_TRUE='#'
23003  HAVE_XV_FALSE=
23004fi
23005
23006
23007
23008# Check whether --with-dbus was given.
23009if test "${with_dbus+set}" = set; then :
23010  withval=$with_dbus;
23011else
23012  with_dbus="check"
23013fi
23014
23015
23016if test "x$with_dbus" != "xno"; then :
23017
23018pkg_failed=no
23019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
23020$as_echo_n "checking for DBUS... " >&6; }
23021
23022if test -n "$DBUS_CFLAGS"; then
23023    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
23024 elif test -n "$PKG_CONFIG"; then
23025    if test -n "$PKG_CONFIG" && \
23026    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.0\""; } >&5
23027  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0") 2>&5
23028  ac_status=$?
23029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23030  test $ac_status = 0; }; then
23031  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>/dev/null`
23032		      test "x$?" != "x0" && pkg_failed=yes
23033else
23034  pkg_failed=yes
23035fi
23036 else
23037    pkg_failed=untried
23038fi
23039if test -n "$DBUS_LIBS"; then
23040    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
23041 elif test -n "$PKG_CONFIG"; then
23042    if test -n "$PKG_CONFIG" && \
23043    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.0\""; } >&5
23044  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0") 2>&5
23045  ac_status=$?
23046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23047  test $ac_status = 0; }; then
23048  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>/dev/null`
23049		      test "x$?" != "x0" && pkg_failed=yes
23050else
23051  pkg_failed=yes
23052fi
23053 else
23054    pkg_failed=untried
23055fi
23056
23057
23058
23059if test $pkg_failed = yes; then
23060   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23061$as_echo "no" >&6; }
23062
23063if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23064        _pkg_short_errors_supported=yes
23065else
23066        _pkg_short_errors_supported=no
23067fi
23068        if test $_pkg_short_errors_supported = yes; then
23069	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.0" 2>&1`
23070        else
23071	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.0" 2>&1`
23072        fi
23073	# Put the nasty error message in config.log where it belongs
23074	echo "$DBUS_PKG_ERRORS" >&5
23075
23076	have_dbus="no"
23077elif test $pkg_failed = untried; then
23078     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23079$as_echo "no" >&6; }
23080	have_dbus="no"
23081else
23082	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
23083	DBUS_LIBS=$pkg_cv_DBUS_LIBS
23084        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23085$as_echo "yes" >&6; }
23086	have_dbus="yes"
23087fi
23088  if test "x$have_dbus$with_dbus" = "xnoyes"; then :
23089  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23091as_fn_error $? "DBus development libraries not found
23092See \`config.log' for more details" "$LINENO" 5; }
23093else
23094  with_dbus="$have_dbus"
23095fi
23096
23097fi
23098 if test "x$with_dbus" = "xyes"; then
23099  HAVE_DBUS_TRUE=
23100  HAVE_DBUS_FALSE='#'
23101else
23102  HAVE_DBUS_TRUE='#'
23103  HAVE_DBUS_FALSE=
23104fi
23105
23106
23107if test "x$with_dbus" = "xyes"; then :
23108  CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
23109
23110
23111$as_echo "#define HAVE_DBUS 1" >>confdefs.h
23112
23113
23114# Check whether --with-dbusconfdir was given.
23115if test "${with_dbusconfdir+set}" = set; then :
23116  withval=$with_dbusconfdir; path_dbusconf=$withval
23117else
23118  path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
23119fi
23120
23121  if test -z "$path_dbusconf"; then :
23122  DBUS_CONFDIR="$sysconfdir/dbus-1/system.d"
23123else
23124  DBUS_CONFDIR="$path_dbusconf/dbus-1/system.d"
23125fi
23126
23127
23128fi
23129
23130
23131# Check whether --with-jpeg was given.
23132if test "${with_jpeg+set}" = set; then :
23133  withval=$with_jpeg;
23134else
23135  with_jpeg="check"
23136fi
23137
23138
23139have_jpeg="maybe"
23140if test "x$with_jpeg" != "xno"; then :
23141  for ac_header in jpeglib.h jerror.h
23142do :
23143  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23144ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23145if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23146  cat >>confdefs.h <<_ACEOF
23147#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23148_ACEOF
23149
23150else
23151  have_jpeg="no"
23152fi
23153
23154done
23155
23156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
23157$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
23158if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
23159  $as_echo_n "(cached) " >&6
23160else
23161  ac_check_lib_save_LIBS=$LIBS
23162LIBS="-ljpeg  $LIBS"
23163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23164/* end confdefs.h.  */
23165
23166/* Override any GCC internal prototype to avoid an error.
23167   Use char because int might match the return type of a GCC
23168   builtin and then its argument prototype would still apply.  */
23169#ifdef __cplusplus
23170extern "C"
23171#endif
23172char jpeg_read_header ();
23173int
23174main ()
23175{
23176return jpeg_read_header ();
23177  ;
23178  return 0;
23179}
23180_ACEOF
23181if ac_fn_c_try_link "$LINENO"; then :
23182  ac_cv_lib_jpeg_jpeg_read_header=yes
23183else
23184  ac_cv_lib_jpeg_jpeg_read_header=no
23185fi
23186rm -f core conftest.err conftest.$ac_objext \
23187    conftest$ac_exeext conftest.$ac_ext
23188LIBS=$ac_check_lib_save_LIBS
23189fi
23190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23191$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
23192if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
23193  cat >>confdefs.h <<_ACEOF
23194#define HAVE_LIBJPEG 1
23195_ACEOF
23196
23197  LIBS="-ljpeg $LIBS"
23198
23199else
23200  have_jpeg="no"
23201fi
23202
23203   if test "x$have_jpeg" != "xno"; then :
23204  with_jpeg="yes"
23205elif test "x$with_jpeg" = "xyes"; then :
23206  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23208as_fn_error $? "unable to find libjpeg! ensure CFLAGS/LDFLAGS are
23209set appropriately or configure --without-jpeg
23210See \`config.log' for more details" "$LINENO" 5; }
23211else
23212  with_jpeg="no"
23213fi
23214
23215fi
23216 if test "x$with_jpeg" = "xyes"; then
23217  HAVE_JPEG_TRUE=
23218  HAVE_JPEG_FALSE='#'
23219else
23220  HAVE_JPEG_TRUE='#'
23221  HAVE_JPEG_FALSE=
23222fi
23223
23224
23225
23226
23227# Check whether --with-imagemagick was given.
23228if test "${with_imagemagick+set}" = set; then :
23229  withval=$with_imagemagick;
23230else
23231  with_imagemagick="check"
23232fi
23233
23234
23235
23236# Check whether --with-graphicsmagick was given.
23237if test "${with_graphicsmagick+set}" = set; then :
23238  withval=$with_graphicsmagick;
23239else
23240  with_graphicsmagick="check"
23241fi
23242
23243
23244magick="UnknownMagick"
23245have_IM="maybe"
23246if test "x$with_imagemagick" = "xno"; then :
23247
23248elif test "x$with_imagemagick" = "xyes" || \
23249       test "x$with_graphicsmagick" != "xyes"; then :
23250  looked_for="ImageMagick >= 6.2.6"
23251
23252pkg_failed=no
23253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAGICK" >&5
23254$as_echo_n "checking for MAGICK... " >&6; }
23255
23256if test -n "$MAGICK_CFLAGS"; then
23257    pkg_cv_MAGICK_CFLAGS="$MAGICK_CFLAGS"
23258 elif test -n "$PKG_CONFIG"; then
23259    if test -n "$PKG_CONFIG" && \
23260    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand >= 6.2.6\""; } >&5
23261  ($PKG_CONFIG --exists --print-errors "MagickWand >= 6.2.6") 2>&5
23262  ac_status=$?
23263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23264  test $ac_status = 0; }; then
23265  pkg_cv_MAGICK_CFLAGS=`$PKG_CONFIG --cflags "MagickWand >= 6.2.6" 2>/dev/null`
23266		      test "x$?" != "x0" && pkg_failed=yes
23267else
23268  pkg_failed=yes
23269fi
23270 else
23271    pkg_failed=untried
23272fi
23273if test -n "$MAGICK_LIBS"; then
23274    pkg_cv_MAGICK_LIBS="$MAGICK_LIBS"
23275 elif test -n "$PKG_CONFIG"; then
23276    if test -n "$PKG_CONFIG" && \
23277    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand >= 6.2.6\""; } >&5
23278  ($PKG_CONFIG --exists --print-errors "MagickWand >= 6.2.6") 2>&5
23279  ac_status=$?
23280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23281  test $ac_status = 0; }; then
23282  pkg_cv_MAGICK_LIBS=`$PKG_CONFIG --libs "MagickWand >= 6.2.6" 2>/dev/null`
23283		      test "x$?" != "x0" && pkg_failed=yes
23284else
23285  pkg_failed=yes
23286fi
23287 else
23288    pkg_failed=untried
23289fi
23290
23291
23292
23293if test $pkg_failed = yes; then
23294   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23295$as_echo "no" >&6; }
23296
23297if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23298        _pkg_short_errors_supported=yes
23299else
23300        _pkg_short_errors_supported=no
23301fi
23302        if test $_pkg_short_errors_supported = yes; then
23303	        MAGICK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "MagickWand >= 6.2.6" 2>&1`
23304        else
23305	        MAGICK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "MagickWand >= 6.2.6" 2>&1`
23306        fi
23307	# Put the nasty error message in config.log where it belongs
23308	echo "$MAGICK_PKG_ERRORS" >&5
23309
23310	      saved_error=$MAGICK_PKG_ERRORS
23311
23312pkg_failed=no
23313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAGICK" >&5
23314$as_echo_n "checking for MAGICK... " >&6; }
23315
23316if test -n "$MAGICK_CFLAGS"; then
23317    pkg_cv_MAGICK_CFLAGS="$MAGICK_CFLAGS"
23318 elif test -n "$PKG_CONFIG"; then
23319    if test -n "$PKG_CONFIG" && \
23320    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Wand >= 6.2.6\""; } >&5
23321  ($PKG_CONFIG --exists --print-errors "Wand >= 6.2.6") 2>&5
23322  ac_status=$?
23323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23324  test $ac_status = 0; }; then
23325  pkg_cv_MAGICK_CFLAGS=`$PKG_CONFIG --cflags "Wand >= 6.2.6" 2>/dev/null`
23326		      test "x$?" != "x0" && pkg_failed=yes
23327else
23328  pkg_failed=yes
23329fi
23330 else
23331    pkg_failed=untried
23332fi
23333if test -n "$MAGICK_LIBS"; then
23334    pkg_cv_MAGICK_LIBS="$MAGICK_LIBS"
23335 elif test -n "$PKG_CONFIG"; then
23336    if test -n "$PKG_CONFIG" && \
23337    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Wand >= 6.2.6\""; } >&5
23338  ($PKG_CONFIG --exists --print-errors "Wand >= 6.2.6") 2>&5
23339  ac_status=$?
23340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23341  test $ac_status = 0; }; then
23342  pkg_cv_MAGICK_LIBS=`$PKG_CONFIG --libs "Wand >= 6.2.6" 2>/dev/null`
23343		      test "x$?" != "x0" && pkg_failed=yes
23344else
23345  pkg_failed=yes
23346fi
23347 else
23348    pkg_failed=untried
23349fi
23350
23351
23352
23353if test $pkg_failed = yes; then
23354   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23355$as_echo "no" >&6; }
23356
23357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23358        _pkg_short_errors_supported=yes
23359else
23360        _pkg_short_errors_supported=no
23361fi
23362        if test $_pkg_short_errors_supported = yes; then
23363	        MAGICK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Wand >= 6.2.6" 2>&1`
23364        else
23365	        MAGICK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Wand >= 6.2.6" 2>&1`
23366        fi
23367	# Put the nasty error message in config.log where it belongs
23368	echo "$MAGICK_PKG_ERRORS" >&5
23369
23370	have_IM="no"
23371elif test $pkg_failed = untried; then
23372     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23373$as_echo "no" >&6; }
23374	have_IM="no"
23375else
23376	MAGICK_CFLAGS=$pkg_cv_MAGICK_CFLAGS
23377	MAGICK_LIBS=$pkg_cv_MAGICK_LIBS
23378        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23379$as_echo "yes" >&6; }
23380	MAGICK_VERSION=`$PKG_CONFIG Wand --modversion`
23381fi
23382elif test $pkg_failed = untried; then
23383     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23384$as_echo "no" >&6; }
23385	      saved_error=$MAGICK_PKG_ERRORS
23386
23387pkg_failed=no
23388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAGICK" >&5
23389$as_echo_n "checking for MAGICK... " >&6; }
23390
23391if test -n "$MAGICK_CFLAGS"; then
23392    pkg_cv_MAGICK_CFLAGS="$MAGICK_CFLAGS"
23393 elif test -n "$PKG_CONFIG"; then
23394    if test -n "$PKG_CONFIG" && \
23395    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Wand >= 6.2.6\""; } >&5
23396  ($PKG_CONFIG --exists --print-errors "Wand >= 6.2.6") 2>&5
23397  ac_status=$?
23398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23399  test $ac_status = 0; }; then
23400  pkg_cv_MAGICK_CFLAGS=`$PKG_CONFIG --cflags "Wand >= 6.2.6" 2>/dev/null`
23401		      test "x$?" != "x0" && pkg_failed=yes
23402else
23403  pkg_failed=yes
23404fi
23405 else
23406    pkg_failed=untried
23407fi
23408if test -n "$MAGICK_LIBS"; then
23409    pkg_cv_MAGICK_LIBS="$MAGICK_LIBS"
23410 elif test -n "$PKG_CONFIG"; then
23411    if test -n "$PKG_CONFIG" && \
23412    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Wand >= 6.2.6\""; } >&5
23413  ($PKG_CONFIG --exists --print-errors "Wand >= 6.2.6") 2>&5
23414  ac_status=$?
23415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23416  test $ac_status = 0; }; then
23417  pkg_cv_MAGICK_LIBS=`$PKG_CONFIG --libs "Wand >= 6.2.6" 2>/dev/null`
23418		      test "x$?" != "x0" && pkg_failed=yes
23419else
23420  pkg_failed=yes
23421fi
23422 else
23423    pkg_failed=untried
23424fi
23425
23426
23427
23428if test $pkg_failed = yes; then
23429   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23430$as_echo "no" >&6; }
23431
23432if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23433        _pkg_short_errors_supported=yes
23434else
23435        _pkg_short_errors_supported=no
23436fi
23437        if test $_pkg_short_errors_supported = yes; then
23438	        MAGICK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Wand >= 6.2.6" 2>&1`
23439        else
23440	        MAGICK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Wand >= 6.2.6" 2>&1`
23441        fi
23442	# Put the nasty error message in config.log where it belongs
23443	echo "$MAGICK_PKG_ERRORS" >&5
23444
23445	have_IM="no"
23446elif test $pkg_failed = untried; then
23447     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23448$as_echo "no" >&6; }
23449	have_IM="no"
23450else
23451	MAGICK_CFLAGS=$pkg_cv_MAGICK_CFLAGS
23452	MAGICK_LIBS=$pkg_cv_MAGICK_LIBS
23453        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23454$as_echo "yes" >&6; }
23455	MAGICK_VERSION=`$PKG_CONFIG Wand --modversion`
23456fi
23457else
23458	MAGICK_CFLAGS=$pkg_cv_MAGICK_CFLAGS
23459	MAGICK_LIBS=$pkg_cv_MAGICK_LIBS
23460        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23461$as_echo "yes" >&6; }
23462	MAGICK_VERSION=`$PKG_CONFIG MagickWand --modversion`
23463fi
23464   if test "x$have_IM" != "xno"; then :
23465  magick="ImageMagick"
23466      { $as_echo "$as_me:${as_lineno-$LINENO}: trying ImageMagick version $MAGICK_VERSION" >&5
23467$as_echo "$as_me: trying ImageMagick version $MAGICK_VERSION" >&6;}
23468      CPPFLAGS_save="$CPPFLAGS"
23469      CPPFLAGS="$CPPFLAGS $MAGICK_CFLAGS"
23470      for ac_header in wand/MagickWand.h
23471do :
23472  ac_fn_c_check_header_mongrel "$LINENO" "wand/MagickWand.h" "ac_cv_header_wand_MagickWand_h" "$ac_includes_default"
23473if test "x$ac_cv_header_wand_MagickWand_h" = xyes; then :
23474  cat >>confdefs.h <<_ACEOF
23475#define HAVE_WAND_MAGICKWAND_H 1
23476_ACEOF
23477
23478          have_IM="yes"
23479          with_imagemagick="yes"
23480
23481else
23482  have_IM="broken"
23483fi
23484
23485done
23486
23487      if test "x$have_IM" = "xbroken"; then :
23488
23489        for ac_header in MagickWand/MagickWand.h
23490do :
23491  ac_fn_c_check_header_mongrel "$LINENO" "MagickWand/MagickWand.h" "ac_cv_header_MagickWand_MagickWand_h" "$ac_includes_default"
23492if test "x$ac_cv_header_MagickWand_MagickWand_h" = xyes; then :
23493  cat >>confdefs.h <<_ACEOF
23494#define HAVE_MAGICKWAND_MAGICKWAND_H 1
23495_ACEOF
23496
23497            have_IM="yes"
23498            have_IM7="yes"
23499            with_imagemagick="yes"
23500
23501else
23502  have_IM="broken"
23503fi
23504
23505done
23506
23507
23508fi
23509      CPPFLAGS="$CPPFLAGS_save"
23510fi
23511fi
23512
23513have_GM="maybe"
23514if test "x$have_IM" = "xyes"; then :
23515
23516elif test "x$with_graphicsmagick" = "xno"; then :
23517
23518elif test "x$with_graphicsmagick" = "xyes" || \
23519       test "x$with_imagemagick" = "xcheck"; then :
23520  if test "x$looked_for" = "x"; then :
23521  looked_for="GraphicsMagick"
23522else
23523  looked_for="$looked_for or GraphicsMagick"
23524fi
23525
23526pkg_failed=no
23527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GM" >&5
23528$as_echo_n "checking for GM... " >&6; }
23529
23530if test -n "$GM_CFLAGS"; then
23531    pkg_cv_GM_CFLAGS="$GM_CFLAGS"
23532 elif test -n "$PKG_CONFIG"; then
23533    if test -n "$PKG_CONFIG" && \
23534    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"GraphicsMagickWand\""; } >&5
23535  ($PKG_CONFIG --exists --print-errors "GraphicsMagickWand") 2>&5
23536  ac_status=$?
23537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23538  test $ac_status = 0; }; then
23539  pkg_cv_GM_CFLAGS=`$PKG_CONFIG --cflags "GraphicsMagickWand" 2>/dev/null`
23540		      test "x$?" != "x0" && pkg_failed=yes
23541else
23542  pkg_failed=yes
23543fi
23544 else
23545    pkg_failed=untried
23546fi
23547if test -n "$GM_LIBS"; then
23548    pkg_cv_GM_LIBS="$GM_LIBS"
23549 elif test -n "$PKG_CONFIG"; then
23550    if test -n "$PKG_CONFIG" && \
23551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"GraphicsMagickWand\""; } >&5
23552  ($PKG_CONFIG --exists --print-errors "GraphicsMagickWand") 2>&5
23553  ac_status=$?
23554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555  test $ac_status = 0; }; then
23556  pkg_cv_GM_LIBS=`$PKG_CONFIG --libs "GraphicsMagickWand" 2>/dev/null`
23557		      test "x$?" != "x0" && pkg_failed=yes
23558else
23559  pkg_failed=yes
23560fi
23561 else
23562    pkg_failed=untried
23563fi
23564
23565
23566
23567if test $pkg_failed = yes; then
23568   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23569$as_echo "no" >&6; }
23570
23571if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23572        _pkg_short_errors_supported=yes
23573else
23574        _pkg_short_errors_supported=no
23575fi
23576        if test $_pkg_short_errors_supported = yes; then
23577	        GM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "GraphicsMagickWand" 2>&1`
23578        else
23579	        GM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "GraphicsMagickWand" 2>&1`
23580        fi
23581	# Put the nasty error message in config.log where it belongs
23582	echo "$GM_PKG_ERRORS" >&5
23583
23584	have_GM="no"
23585      if test "x$saved_error" = "x"; then :
23586  saved_error=$MAGICK_PKG_ERRORS
23587fi
23588elif test $pkg_failed = untried; then
23589     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23590$as_echo "no" >&6; }
23591	have_GM="no"
23592      if test "x$saved_error" = "x"; then :
23593  saved_error=$MAGICK_PKG_ERRORS
23594fi
23595else
23596	GM_CFLAGS=$pkg_cv_GM_CFLAGS
23597	GM_LIBS=$pkg_cv_GM_LIBS
23598        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23599$as_echo "yes" >&6; }
23600	have_GM="yes"
23601      with_imagemagick="no"
23602      magick="GraphicsMagick"
23603      MAGICK_CFLAGS="$MAGICK_CFLAGS $GM_CFLAGS"
23604      MAGICK_LIBS="$MAGICK_LIBS $GM_LIBS"
23605      MAGICK_VERSION=`$PKG_CONFIG GraphicsMagickWand --modversion`
23606fi
23607fi
23608
23609if test "x$have_IM" = "xbroken" && test "x$have_GM" = "xyes"; then :
23610
23611    with_imagemagick="no"
23612    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your ImageMagick install is broken, using GraphicsMagick instead" >&5
23613$as_echo "$as_me: WARNING: Your ImageMagick install is broken, using GraphicsMagick instead" >&2;}
23614
23615fi
23616if test "x$have_IM" = "xyes" || test "x$have_GM" = "xyes"; then :
23617  { $as_echo "$as_me:${as_lineno-$LINENO}: using $magick version $MAGICK_VERSION" >&5
23618$as_echo "$as_me: using $magick version $MAGICK_VERSION" >&6;}
23619elif test "x$with_imagemagick" = "xno" && \
23620   test "x$with_graphicsmagick" != "xyes"; then :
23621  { $as_echo "$as_me:${as_lineno-$LINENO}: image scanning disabled -- zbarimg will *not* be built" >&5
23622$as_echo "$as_me: image scanning disabled -- zbarimg will *not* be built" >&6;}
23623elif test "x$have_IM" = "xbroken"; then :
23624  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23626as_fn_error $? "$magick package found but wand/MagickWand.h not installed?!
23627this is a problem with your $magick install, please try again after
23628resolving the inconsistency or installing GraphicsMagick alternative...
23629See \`config.log' for more details" "$LINENO" 5; }
23630elif test "x$with_graphicsmagick" = "xcheck"; then :
23631  { $as_echo "$as_me:${as_lineno-$LINENO}: ImageMagick/GraphicsMagick not detected. Several features will be disabled" >&5
23632$as_echo "$as_me: ImageMagick/GraphicsMagick not detected. Several features will be disabled" >&6;}
23633   with_imagemagick="no"
23634else
23635  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23637as_fn_error $? "Unable to find $looked_for:
23638
23639$saved_error
23640
23641* Ensure that you installed any \"development\" packages for ImageMagick or
23642  GraphicsMagick.
23643* Consider adjusting the PKG_CONFIG_PATH environment variable if you
23644  installed software in a non-standard prefix.
23645* You may set the environment variables MAGICK_CFLAGS and MAGICK_LIBS
23646  to avoid the need to call pkg-config.
23647  See the pkg-config man page for more details.
23648* To avoid using ImageMagick or GraphicsMagick altogether you may add the
23649  --without-imagemagick flag to the configure command; the zbarimg program
23650  will *not* be built.
23651
23652See \`config.log' for more details" "$LINENO" 5; }
23653fi
23654
23655if test "x$have_IM" = "xyes"; then :
23656
23657$as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
23658
23659elif test "x$have_GM" = "xyes"; then :
23660
23661$as_echo "#define HAVE_GRAPHICSMAGICK 1" >>confdefs.h
23662
23663fi
23664if test "x$have_IM7" = "xyes"; then :
23665
23666$as_echo "#define HAVE_IMAGEMAGICK7 1" >>confdefs.h
23667
23668fi
23669 if test "x$have_IM" = "xyes" || test "x$have_GM" = "xyes"; then
23670  HAVE_MAGICK_TRUE=
23671  HAVE_MAGICK_FALSE='#'
23672else
23673  HAVE_MAGICK_TRUE='#'
23674  HAVE_MAGICK_FALSE=
23675fi
23676
23677
23678
23679# Check whether --with-npapi was given.
23680if test "${with_npapi+set}" = set; then :
23681  withval=$with_npapi;
23682else
23683  with_npapi="no"
23684fi
23685
23686
23687if test "x$with_npapi" != "xno"; then :
23688
23689pkg_failed=no
23690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPAPI" >&5
23691$as_echo_n "checking for NPAPI... " >&6; }
23692
23693if test -n "$NPAPI_CFLAGS"; then
23694    pkg_cv_NPAPI_CFLAGS="$NPAPI_CFLAGS"
23695 elif test -n "$PKG_CONFIG"; then
23696    if test -n "$PKG_CONFIG" && \
23697    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"firefox-plugin\""; } >&5
23698  ($PKG_CONFIG --exists --print-errors "firefox-plugin") 2>&5
23699  ac_status=$?
23700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23701  test $ac_status = 0; }; then
23702  pkg_cv_NPAPI_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin" 2>/dev/null`
23703		      test "x$?" != "x0" && pkg_failed=yes
23704else
23705  pkg_failed=yes
23706fi
23707 else
23708    pkg_failed=untried
23709fi
23710if test -n "$NPAPI_LIBS"; then
23711    pkg_cv_NPAPI_LIBS="$NPAPI_LIBS"
23712 elif test -n "$PKG_CONFIG"; then
23713    if test -n "$PKG_CONFIG" && \
23714    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"firefox-plugin\""; } >&5
23715  ($PKG_CONFIG --exists --print-errors "firefox-plugin") 2>&5
23716  ac_status=$?
23717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23718  test $ac_status = 0; }; then
23719  pkg_cv_NPAPI_LIBS=`$PKG_CONFIG --libs "firefox-plugin" 2>/dev/null`
23720		      test "x$?" != "x0" && pkg_failed=yes
23721else
23722  pkg_failed=yes
23723fi
23724 else
23725    pkg_failed=untried
23726fi
23727
23728
23729
23730if test $pkg_failed = yes; then
23731   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23732$as_echo "no" >&6; }
23733
23734if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23735        _pkg_short_errors_supported=yes
23736else
23737        _pkg_short_errors_supported=no
23738fi
23739        if test $_pkg_short_errors_supported = yes; then
23740	        NPAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "firefox-plugin" 2>&1`
23741        else
23742	        NPAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "firefox-plugin" 2>&1`
23743        fi
23744	# Put the nasty error message in config.log where it belongs
23745	echo "$NPAPI_PKG_ERRORS" >&5
23746
23747	as_fn_error $? "Package requirements (firefox-plugin) were not met:
23748
23749$NPAPI_PKG_ERRORS
23750
23751Consider adjusting the PKG_CONFIG_PATH environment variable if you
23752installed software in a non-standard prefix.
23753
23754Alternatively, you may set the environment variables NPAPI_CFLAGS
23755and NPAPI_LIBS to avoid the need to call pkg-config.
23756See the pkg-config man page for more details." "$LINENO" 5
23757elif test $pkg_failed = untried; then
23758     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23759$as_echo "no" >&6; }
23760	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23762as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23763is in your PATH or set the PKG_CONFIG environment variable to the full
23764path to pkg-config.
23765
23766Alternatively, you may set the environment variables NPAPI_CFLAGS
23767and NPAPI_LIBS to avoid the need to call pkg-config.
23768See the pkg-config man page for more details.
23769
23770To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23771See \`config.log' for more details" "$LINENO" 5; }
23772else
23773	NPAPI_CFLAGS=$pkg_cv_NPAPI_CFLAGS
23774	NPAPI_LIBS=$pkg_cv_NPAPI_LIBS
23775        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23776$as_echo "yes" >&6; }
23777
23778fi
23779   NPAPI_VERSION=`$PKG_CONFIG firefox-plugin --modversion`
23780   { $as_echo "$as_me:${as_lineno-$LINENO}: using firefox-plugin version $NPAPI_VERSION" >&5
23781$as_echo "$as_me: using firefox-plugin version $NPAPI_VERSION" >&6;}
23782fi
23783
23784 if test "x$with_npapi" = "xyes"; then
23785  HAVE_NPAPI_TRUE=
23786  HAVE_NPAPI_FALSE='#'
23787else
23788  HAVE_NPAPI_TRUE='#'
23789  HAVE_NPAPI_FALSE=
23790fi
23791
23792
23793
23794
23795# Check whether --with-gtk was given.
23796if test "${with_gtk+set}" = set; then :
23797  withval=$with_gtk; if test "x$with_gtk" != "xno"   && test "x$with_gtk" != "xauto" &&
23798          test "x$with_gtk" != "xgtk2" && test "x$with_gtk" != "xgtk3"; then :
23799  echo "Invalid value for --with-gtk. Falling back to 'no'"
23800          with_gtk="xno"
23801fi
23802else
23803  with_gtk="auto"
23804fi
23805
23806
23807
23808
23809
23810if test "x$with_gtk" = "xgtk3" || test "x$with_gtk" = "xauto"; then :
23811
23812pkg_failed=no
23813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5
23814$as_echo_n "checking for GTK3... " >&6; }
23815
23816if test -n "$GTK3_CFLAGS"; then
23817    pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS"
23818 elif test -n "$PKG_CONFIG"; then
23819    if test -n "$PKG_CONFIG" && \
23820    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
23821  ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
23822  ac_status=$?
23823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23824  test $ac_status = 0; }; then
23825  pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
23826		      test "x$?" != "x0" && pkg_failed=yes
23827else
23828  pkg_failed=yes
23829fi
23830 else
23831    pkg_failed=untried
23832fi
23833if test -n "$GTK3_LIBS"; then
23834    pkg_cv_GTK3_LIBS="$GTK3_LIBS"
23835 elif test -n "$PKG_CONFIG"; then
23836    if test -n "$PKG_CONFIG" && \
23837    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
23838  ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
23839  ac_status=$?
23840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23841  test $ac_status = 0; }; then
23842  pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
23843		      test "x$?" != "x0" && pkg_failed=yes
23844else
23845  pkg_failed=yes
23846fi
23847 else
23848    pkg_failed=untried
23849fi
23850
23851
23852
23853if test $pkg_failed = yes; then
23854   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23855$as_echo "no" >&6; }
23856
23857if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23858        _pkg_short_errors_supported=yes
23859else
23860        _pkg_short_errors_supported=no
23861fi
23862        if test $_pkg_short_errors_supported = yes; then
23863	        GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
23864        else
23865	        GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
23866        fi
23867	# Put the nasty error message in config.log where it belongs
23868	echo "$GTK3_PKG_ERRORS" >&5
23869
23870	libgtk3=false
23871elif test $pkg_failed = untried; then
23872     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23873$as_echo "no" >&6; }
23874	libgtk3=false
23875else
23876	GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS
23877	GTK3_LIBS=$pkg_cv_GTK3_LIBS
23878        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23879$as_echo "yes" >&6; }
23880	GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
23881     GTK_VERSION=`$PKG_CONFIG gtk+-3.0 --modversion`
23882     { $as_echo "$as_me:${as_lineno-$LINENO}: using GTK+ version $GTK_VERSION" >&5
23883$as_echo "$as_me: using GTK+ version $GTK_VERSION" >&6;}
23884     GTK_VERSION_MAJOR=3.0
23885     with_gtk="gtk3"
23886     GTK_CFLAGS=$GTK3_CFLAGS
23887     GTK_LIBS=$GTK3_LIBS
23888
23889fi
23890
23891fi
23892
23893if test "x$with_gtk" = "xgtk2" || test "x$with_gtk" = "xauto"; then :
23894
23895pkg_failed=no
23896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
23897$as_echo_n "checking for GTK2... " >&6; }
23898
23899if test -n "$GTK2_CFLAGS"; then
23900    pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
23901 elif test -n "$PKG_CONFIG"; then
23902    if test -n "$PKG_CONFIG" && \
23903    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
23904  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
23905  ac_status=$?
23906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23907  test $ac_status = 0; }; then
23908  pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
23909		      test "x$?" != "x0" && pkg_failed=yes
23910else
23911  pkg_failed=yes
23912fi
23913 else
23914    pkg_failed=untried
23915fi
23916if test -n "$GTK2_LIBS"; then
23917    pkg_cv_GTK2_LIBS="$GTK2_LIBS"
23918 elif test -n "$PKG_CONFIG"; then
23919    if test -n "$PKG_CONFIG" && \
23920    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
23921  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
23922  ac_status=$?
23923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23924  test $ac_status = 0; }; then
23925  pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
23926		      test "x$?" != "x0" && pkg_failed=yes
23927else
23928  pkg_failed=yes
23929fi
23930 else
23931    pkg_failed=untried
23932fi
23933
23934
23935
23936if test $pkg_failed = yes; then
23937   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23938$as_echo "no" >&6; }
23939
23940if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23941        _pkg_short_errors_supported=yes
23942else
23943        _pkg_short_errors_supported=no
23944fi
23945        if test $_pkg_short_errors_supported = yes; then
23946	        GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
23947        else
23948	        GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
23949        fi
23950	# Put the nasty error message in config.log where it belongs
23951	echo "$GTK2_PKG_ERRORS" >&5
23952
23953	libgtk2=false
23954elif test $pkg_failed = untried; then
23955     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956$as_echo "no" >&6; }
23957	libgtk2=false
23958else
23959	GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
23960	GTK2_LIBS=$pkg_cv_GTK2_LIBS
23961        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23962$as_echo "yes" >&6; }
23963	GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
23964     GTK_VERSION=`$PKG_CONFIG gtk+-2.0 --modversion`
23965     { $as_echo "$as_me:${as_lineno-$LINENO}: using GTK+ version $GTK_VERSION" >&5
23966$as_echo "$as_me: using GTK+ version $GTK_VERSION" >&6;}
23967     GTK_VERSION_MAJOR=2.0
23968     with_gtk="gtk2"
23969     GTK_CFLAGS=$GTK2_CFLAGS
23970     GTK_LIBS=$GTK2_LIBS
23971
23972fi
23973
23974fi
23975
23976if test "x$with_gtk" = "xauto"; then :
23977  with_gtk="no"
23978fi
23979
23980
23981
23982
23983 if test "x$with_gtk" != "xno"; then
23984  HAVE_GTK_TRUE=
23985  HAVE_GTK_FALSE='#'
23986else
23987  HAVE_GTK_TRUE='#'
23988  HAVE_GTK_FALSE=
23989fi
23990
23991
23992
23993# Check whether --with-gir was given.
23994if test "${with_gir+set}" = set; then :
23995  withval=$with_gir;
23996else
23997  with_gir="yes"
23998fi
23999
24000
24001
24002
24003# Check whether --with-python was given.
24004if test "${with_python+set}" = set; then :
24005  withval=$with_python; if test "x$with_python" != "xno"      && test "x$with_python" != "xauto" &&
24006          test "x$with_python" != "xpython2" && test "x$with_python" != "xpython3"; then :
24007  echo "Invalid value for --with-python. Falling back to 'no'"
24008          with_python="xno"
24009fi
24010else
24011  with_python="auto"
24012fi
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023if test -z "$PYTHON"; then :
24024  if test "x$with_python" = "xauto"; then :
24025  for ac_prog in python3 python2 python
24026do
24027  # Extract the first word of "$ac_prog", so it can be a program name with args.
24028set dummy $ac_prog; ac_word=$2
24029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24030$as_echo_n "checking for $ac_word... " >&6; }
24031if ${ac_cv_path_PYTHON+:} false; then :
24032  $as_echo_n "(cached) " >&6
24033else
24034  case $PYTHON in
24035  [\\/]* | ?:[\\/]*)
24036  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24037  ;;
24038  *)
24039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24040for as_dir in $PATH
24041do
24042  IFS=$as_save_IFS
24043  test -z "$as_dir" && as_dir=.
24044    for ac_exec_ext in '' $ac_executable_extensions; do
24045  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24046    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24048    break 2
24049  fi
24050done
24051  done
24052IFS=$as_save_IFS
24053
24054  ;;
24055esac
24056fi
24057PYTHON=$ac_cv_path_PYTHON
24058if test -n "$PYTHON"; then
24059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24060$as_echo "$PYTHON" >&6; }
24061else
24062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24063$as_echo "no" >&6; }
24064fi
24065
24066
24067  test -n "$PYTHON" && break
24068done
24069test -n "$PYTHON" || PYTHON=":"
24070
24071else
24072  if test "x$with_python" = "xpython3"; then :
24073  for ac_prog in python3 python
24074do
24075  # Extract the first word of "$ac_prog", so it can be a program name with args.
24076set dummy $ac_prog; ac_word=$2
24077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24078$as_echo_n "checking for $ac_word... " >&6; }
24079if ${ac_cv_path_PYTHON+:} false; then :
24080  $as_echo_n "(cached) " >&6
24081else
24082  case $PYTHON in
24083  [\\/]* | ?:[\\/]*)
24084  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24085  ;;
24086  *)
24087  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24088for as_dir in $PATH
24089do
24090  IFS=$as_save_IFS
24091  test -z "$as_dir" && as_dir=.
24092    for ac_exec_ext in '' $ac_executable_extensions; do
24093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24094    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24096    break 2
24097  fi
24098done
24099  done
24100IFS=$as_save_IFS
24101
24102  ;;
24103esac
24104fi
24105PYTHON=$ac_cv_path_PYTHON
24106if test -n "$PYTHON"; then
24107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24108$as_echo "$PYTHON" >&6; }
24109else
24110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24111$as_echo "no" >&6; }
24112fi
24113
24114
24115  test -n "$PYTHON" && break
24116done
24117test -n "$PYTHON" || PYTHON=":"
24118
24119else
24120  if test "x$with_python" = "xpython2"; then :
24121  for ac_prog in python2 python
24122do
24123  # Extract the first word of "$ac_prog", so it can be a program name with args.
24124set dummy $ac_prog; ac_word=$2
24125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24126$as_echo_n "checking for $ac_word... " >&6; }
24127if ${ac_cv_path_PYTHON+:} false; then :
24128  $as_echo_n "(cached) " >&6
24129else
24130  case $PYTHON in
24131  [\\/]* | ?:[\\/]*)
24132  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24133  ;;
24134  *)
24135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24136for as_dir in $PATH
24137do
24138  IFS=$as_save_IFS
24139  test -z "$as_dir" && as_dir=.
24140    for ac_exec_ext in '' $ac_executable_extensions; do
24141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24142    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24144    break 2
24145  fi
24146done
24147  done
24148IFS=$as_save_IFS
24149
24150  ;;
24151esac
24152fi
24153PYTHON=$ac_cv_path_PYTHON
24154if test -n "$PYTHON"; then
24155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24156$as_echo "$PYTHON" >&6; }
24157else
24158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24159$as_echo "no" >&6; }
24160fi
24161
24162
24163  test -n "$PYTHON" && break
24164done
24165test -n "$PYTHON" || PYTHON=":"
24166
24167else
24168  with_python="no"
24169fi
24170
24171fi
24172
24173
24174fi
24175else
24176  with_python="auto"
24177
24178fi
24179
24180if test "x$with_python" != "xno"; then :
24181
24182
24183
24184
24185
24186
24187        if test -n "$PYTHON"; then
24188      # If the user set $PYTHON, use it and don't search something else.
24189      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7.0" >&5
24190$as_echo_n "checking whether $PYTHON version is >= 2.7.0... " >&6; }
24191      prog="import sys
24192# split strings by '.' and convert to numeric.  Append some zeros
24193# because we need at least 4 digits for the hex conversion.
24194# map returns an iterator in Python 3.0 and a list in 2.x
24195minver = list(map(int, '2.7.0'.split('.'))) + [0, 0, 0]
24196minverhex = 0
24197# xrange is not present in Python 3.0 and range returns an iterator
24198for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
24199sys.exit(sys.hexversion < minverhex)"
24200  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
24201   ($PYTHON -c "$prog") >&5 2>&5
24202   ac_status=$?
24203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204   (exit $ac_status); }; then :
24205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24206$as_echo "yes" >&6; }
24207else
24208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24209$as_echo "no" >&6; }
24210			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
24211fi
24212      am_display_PYTHON=$PYTHON
24213    else
24214      # Otherwise, try each interpreter until we find one that satisfies
24215      # VERSION.
24216      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7.0" >&5
24217$as_echo_n "checking for a Python interpreter with version >= 2.7.0... " >&6; }
24218if ${am_cv_pathless_PYTHON+:} false; then :
24219  $as_echo_n "(cached) " >&6
24220else
24221
24222	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
24223	  test "$am_cv_pathless_PYTHON" = none && break
24224	  prog="import sys
24225# split strings by '.' and convert to numeric.  Append some zeros
24226# because we need at least 4 digits for the hex conversion.
24227# map returns an iterator in Python 3.0 and a list in 2.x
24228minver = list(map(int, '2.7.0'.split('.'))) + [0, 0, 0]
24229minverhex = 0
24230# xrange is not present in Python 3.0 and range returns an iterator
24231for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
24232sys.exit(sys.hexversion < minverhex)"
24233  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
24234   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
24235   ac_status=$?
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); }; then :
24238  break
24239fi
24240	done
24241fi
24242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
24243$as_echo "$am_cv_pathless_PYTHON" >&6; }
24244      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
24245      if test "$am_cv_pathless_PYTHON" = none; then
24246	PYTHON=:
24247      else
24248        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
24249set dummy $am_cv_pathless_PYTHON; ac_word=$2
24250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24251$as_echo_n "checking for $ac_word... " >&6; }
24252if ${ac_cv_path_PYTHON+:} false; then :
24253  $as_echo_n "(cached) " >&6
24254else
24255  case $PYTHON in
24256  [\\/]* | ?:[\\/]*)
24257  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24258  ;;
24259  *)
24260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24261for as_dir in $PATH
24262do
24263  IFS=$as_save_IFS
24264  test -z "$as_dir" && as_dir=.
24265    for ac_exec_ext in '' $ac_executable_extensions; do
24266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24267    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24269    break 2
24270  fi
24271done
24272  done
24273IFS=$as_save_IFS
24274
24275  ;;
24276esac
24277fi
24278PYTHON=$ac_cv_path_PYTHON
24279if test -n "$PYTHON"; then
24280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24281$as_echo "$PYTHON" >&6; }
24282else
24283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24284$as_echo "no" >&6; }
24285fi
24286
24287
24288      fi
24289      am_display_PYTHON=$am_cv_pathless_PYTHON
24290    fi
24291
24292
24293  if test "$PYTHON" = :; then
24294      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
24295  else
24296
24297
24298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
24299$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
24300if ${am_cv_python_version+:} false; then :
24301  $as_echo_n "(cached) " >&6
24302else
24303  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
24304fi
24305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
24306$as_echo "$am_cv_python_version" >&6; }
24307  PYTHON_VERSION=$am_cv_python_version
24308
24309
24310
24311  PYTHON_PREFIX='${prefix}'
24312
24313  PYTHON_EXEC_PREFIX='${exec_prefix}'
24314
24315
24316
24317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
24318$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24319if ${am_cv_python_platform+:} false; then :
24320  $as_echo_n "(cached) " >&6
24321else
24322  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24323fi
24324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
24325$as_echo "$am_cv_python_platform" >&6; }
24326  PYTHON_PLATFORM=$am_cv_python_platform
24327
24328
24329  # Just factor out some code duplication.
24330  am_python_setup_sysconfig="\
24331import sys
24332# Prefer sysconfig over distutils.sysconfig, for better compatibility
24333# with python 3.x.  See automake bug#10227.
24334try:
24335    import sysconfig
24336except ImportError:
24337    can_use_sysconfig = 0
24338else:
24339    can_use_sysconfig = 1
24340# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
24341# <https://github.com/pypa/virtualenv/issues/118>
24342try:
24343    from platform import python_implementation
24344    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
24345        can_use_sysconfig = 0
24346except ImportError:
24347    pass"
24348
24349
24350            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
24351$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24352if ${am_cv_python_pythondir+:} false; then :
24353  $as_echo_n "(cached) " >&6
24354else
24355  if test "x$prefix" = xNONE
24356     then
24357       am_py_prefix=$ac_default_prefix
24358     else
24359       am_py_prefix=$prefix
24360     fi
24361     am_cv_python_pythondir=`$PYTHON -c "
24362$am_python_setup_sysconfig
24363if can_use_sysconfig:
24364    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
24365else:
24366    from distutils import sysconfig
24367    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
24368sys.stdout.write(sitedir)"`
24369     case $am_cv_python_pythondir in
24370     $am_py_prefix*)
24371       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24372       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
24373       ;;
24374     *)
24375       case $am_py_prefix in
24376         /usr|/System*) ;;
24377         *)
24378	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
24379	  ;;
24380       esac
24381       ;;
24382     esac
24383
24384fi
24385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
24386$as_echo "$am_cv_python_pythondir" >&6; }
24387  pythondir=$am_cv_python_pythondir
24388
24389
24390
24391  pkgpythondir=\${pythondir}/$PACKAGE
24392
24393
24394        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
24395$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
24396if ${am_cv_python_pyexecdir+:} false; then :
24397  $as_echo_n "(cached) " >&6
24398else
24399  if test "x$exec_prefix" = xNONE
24400     then
24401       am_py_exec_prefix=$am_py_prefix
24402     else
24403       am_py_exec_prefix=$exec_prefix
24404     fi
24405     am_cv_python_pyexecdir=`$PYTHON -c "
24406$am_python_setup_sysconfig
24407if can_use_sysconfig:
24408    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
24409else:
24410    from distutils import sysconfig
24411    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
24412sys.stdout.write(sitedir)"`
24413     case $am_cv_python_pyexecdir in
24414     $am_py_exec_prefix*)
24415       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24416       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
24417       ;;
24418     *)
24419       case $am_py_exec_prefix in
24420         /usr|/System*) ;;
24421         *)
24422	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
24423	   ;;
24424       esac
24425       ;;
24426     esac
24427
24428fi
24429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
24430$as_echo "$am_cv_python_pyexecdir" >&6; }
24431  pyexecdir=$am_cv_python_pyexecdir
24432
24433
24434
24435  pkgpyexecdir=\${pyexecdir}/$PACKAGE
24436
24437
24438
24439  fi
24440
24441
24442fi
24443
24444if test "x$PYTHON_VERSION" != "x" && test "x$with_python" != "xno"; then :
24445  PYTHON_VERSION_MAJOR="`echo $PYTHON_VERSION | cut -d'.' -f 1`"
24446
24447   if test "x$PYTHON_CFLAGS" != "x"; then :
24448
24449elif test "x$PYTHON_CONFIG" != "x" && test -x "$PYTHON_CONFIG"; then :
24450  PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags`
24451elif test -x "$PYTHON-config"; then :
24452  PYTHON_CFLAGS=`$PYTHON-config --cflags`
24453else
24454  PYTHON_CFLAGS=`$PYTHON -c 'import distutils.sysconfig as s, sys; sys.stdout.write(" ".join(s.get_config_vars("CFLAGS")) + " -I"+s.get_python_inc() + " -I"+s.get_python_inc(plat_specific=True))'`
24455fi
24456   if test "x$PYTHON_LDFLAGS" != "x"; then :
24457
24458elif test "x$PYTHON_CONFIG" != "x" && test -x "$PYTHON_CONFIG"; then :
24459  PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
24460elif test -x "$PYTHON-config"; then :
24461  PYTHON_LDFLAGS=`$PYTHON-config --ldflags`
24462else
24463  PYTHON_LDFLAGS=`$PYTHON -c 'import distutils.sysconfig as s, sys; sys.stdout.write(" ".join(s.get_config_vars("LDFLAGS")) + " -I"+s.get_python_inc() + " -I"+s.get_python_inc(plat_specific=True))'`
24464fi
24465
24466      CPPFLAGS_save="$CPPFLAGS"
24467   CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
24468   if test "x$win32" = "xyes"; then :
24469  PYTHON_LDFLAGS="$PYTHON_LDFLAGS -no-undefined"
24470fi
24471   for ac_header in Python.h
24472do :
24473  ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
24474if test "x$ac_cv_header_Python_h" = xyes; then :
24475  cat >>confdefs.h <<_ACEOF
24476#define HAVE_PYTHON_H 1
24477_ACEOF
24478
24479else
24480  if test "x$with_python" = "xauto"; then :
24481  with_python="no"
24482else
24483  as_fn_error $? "Python module enabled, but unable to compile Python.h.
24484Install the development package for python-$am_cv_python_version, or configure
24485--without-python to disable the python bindings." "$LINENO" 5
24486fi
24487fi
24488
24489done
24490
24491   CPPFLAGS="$CPPFLAGS_save"
24492
24493         if test "x$with_gtk" != "xno"; then :
24494  if test "x$PYTHON_VERSION_MAJOR" = "x2"; then :
24495
24496pkg_failed=no
24497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYGTK" >&5
24498$as_echo_n "checking for PYGTK... " >&6; }
24499
24500if test -n "$PYGTK_CFLAGS"; then
24501    pkg_cv_PYGTK_CFLAGS="$PYGTK_CFLAGS"
24502 elif test -n "$PKG_CONFIG"; then
24503    if test -n "$PKG_CONFIG" && \
24504    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygtk-2.0\""; } >&5
24505  ($PKG_CONFIG --exists --print-errors "pygtk-2.0") 2>&5
24506  ac_status=$?
24507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508  test $ac_status = 0; }; then
24509  pkg_cv_PYGTK_CFLAGS=`$PKG_CONFIG --cflags "pygtk-2.0" 2>/dev/null`
24510		      test "x$?" != "x0" && pkg_failed=yes
24511else
24512  pkg_failed=yes
24513fi
24514 else
24515    pkg_failed=untried
24516fi
24517if test -n "$PYGTK_LIBS"; then
24518    pkg_cv_PYGTK_LIBS="$PYGTK_LIBS"
24519 elif test -n "$PKG_CONFIG"; then
24520    if test -n "$PKG_CONFIG" && \
24521    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygtk-2.0\""; } >&5
24522  ($PKG_CONFIG --exists --print-errors "pygtk-2.0") 2>&5
24523  ac_status=$?
24524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24525  test $ac_status = 0; }; then
24526  pkg_cv_PYGTK_LIBS=`$PKG_CONFIG --libs "pygtk-2.0" 2>/dev/null`
24527		      test "x$?" != "x0" && pkg_failed=yes
24528else
24529  pkg_failed=yes
24530fi
24531 else
24532    pkg_failed=untried
24533fi
24534
24535
24536
24537if test $pkg_failed = yes; then
24538   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24539$as_echo "no" >&6; }
24540
24541if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24542        _pkg_short_errors_supported=yes
24543else
24544        _pkg_short_errors_supported=no
24545fi
24546        if test $_pkg_short_errors_supported = yes; then
24547	        PYGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pygtk-2.0" 2>&1`
24548        else
24549	        PYGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pygtk-2.0" 2>&1`
24550        fi
24551	# Put the nasty error message in config.log where it belongs
24552	echo "$PYGTK_PKG_ERRORS" >&5
24553
24554	with_pygtk2="no"
24555elif test $pkg_failed = untried; then
24556     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24557$as_echo "no" >&6; }
24558	with_pygtk2="no"
24559else
24560	PYGTK_CFLAGS=$pkg_cv_PYGTK_CFLAGS
24561	PYGTK_LIBS=$pkg_cv_PYGTK_LIBS
24562        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24563$as_echo "yes" >&6; }
24564	with_pygtk2="yes"
24565fi
24566        for ac_prog in pygobject-codegen-2.0 pygtk-codegen-2.0 pygtk-codegen
24567do
24568  # Extract the first word of "$ac_prog", so it can be a program name with args.
24569set dummy $ac_prog; ac_word=$2
24570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24571$as_echo_n "checking for $ac_word... " >&6; }
24572if ${ac_cv_prog_PYGTK_CODEGEN+:} false; then :
24573  $as_echo_n "(cached) " >&6
24574else
24575  if test -n "$PYGTK_CODEGEN"; then
24576  ac_cv_prog_PYGTK_CODEGEN="$PYGTK_CODEGEN" # Let the user override the test.
24577else
24578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24579for as_dir in $PATH
24580do
24581  IFS=$as_save_IFS
24582  test -z "$as_dir" && as_dir=.
24583    for ac_exec_ext in '' $ac_executable_extensions; do
24584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24585    ac_cv_prog_PYGTK_CODEGEN="$ac_prog"
24586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24587    break 2
24588  fi
24589done
24590  done
24591IFS=$as_save_IFS
24592
24593fi
24594fi
24595PYGTK_CODEGEN=$ac_cv_prog_PYGTK_CODEGEN
24596if test -n "$PYGTK_CODEGEN"; then
24597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGTK_CODEGEN" >&5
24598$as_echo "$PYGTK_CODEGEN" >&6; }
24599else
24600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24601$as_echo "no" >&6; }
24602fi
24603
24604
24605  test -n "$PYGTK_CODEGEN" && break
24606done
24607test -n "$PYGTK_CODEGEN" || PYGTK_CODEGEN=":"
24608
24609
24610        if test "x$PYGTK_H2DEF" = "x"; then :
24611  PYGTK_H2DEF=`$PKG_CONFIG pygtk-2.0 --variable=codegendir`/h2def.py
24612           if test -f "$PYGTK_H2DEF"; then :
24613
24614else
24615  PYGTK_H2DEF=":"
24616fi
24617fi
24618        if test "x$PYGTK_DEFS" = "x"; then :
24619  PYGTK_DEFS=`$PKG_CONFIG pygtk-2.0 --variable=defsdir`
24620fi
24621
24622fi
24623
24624fi
24625
24626else
24627  with_python="no"
24628fi
24629
24630if test "x$PYTHON_VERSION_MAJOR" != "x2"; then :
24631  with_pygtk2="no"
24632fi
24633 if test "x$with_python" != "xno"; then
24634  HAVE_PYTHON_TRUE=
24635  HAVE_PYTHON_FALSE='#'
24636else
24637  HAVE_PYTHON_TRUE='#'
24638  HAVE_PYTHON_FALSE=
24639fi
24640
24641 if test "x$with_pygtk2" != "xno"; then
24642  HAVE_PYGTK2_TRUE=
24643  HAVE_PYGTK2_FALSE='#'
24644else
24645  HAVE_PYGTK2_TRUE='#'
24646  HAVE_PYGTK2_FALSE=
24647fi
24648
24649
24650
24651if test "x$with_gir" = "xyes" && test "x$with_gtk" != "xno"; then :
24652
24653
24654
24655                # Check whether --enable-introspection was given.
24656if test "${enable_introspection+set}" = set; then :
24657  enableval=$enable_introspection;
24658else
24659  enable_introspection=auto
24660fi
24661
24662
24663    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
24664$as_echo_n "checking for gobject-introspection... " >&6; }
24665
24666        case $enable_introspection in #(
24667  no) :
24668            found_introspection="no (disabled, use --enable-introspection to enable)"
24669     ;; #(
24670      yes) :
24671            if test -n "$PKG_CONFIG" && \
24672    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
24673  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
24674  ac_status=$?
24675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24676  test $ac_status = 0; }; then
24677  :
24678else
24679  as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
24680fi
24681        if test -n "$PKG_CONFIG" && \
24682    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
24683  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
24684  ac_status=$?
24685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24686  test $ac_status = 0; }; then
24687  found_introspection=yes
24688else
24689  as_fn_error $? "You need to have gobject-introspection >= 0.6.7 installed to build zbar" "$LINENO" 5
24690fi
24691     ;; #(
24692      auto) :
24693            if test -n "$PKG_CONFIG" && \
24694    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
24695  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
24696  ac_status=$?
24697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24698  test $ac_status = 0; }; then
24699  found_introspection=yes
24700else
24701  found_introspection=no
24702fi
24703		enable_introspection=$found_introspection
24704     ;; #(
24705  *) :
24706                as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
24707     ;;
24708esac
24709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
24710$as_echo "$found_introspection" >&6; }
24711
24712
24713  EXP_VAR=_GI_EXP_DATADIR
24714  FROM_VAR="$datadir"
24715
24716    prefix_save=$prefix
24717  exec_prefix_save=$exec_prefix
24718
24719    if test "x$prefix" = "xNONE"; then
24720    prefix="$ac_default_prefix"
24721  fi
24722    if test "x$exec_prefix" = "xNONE"; then
24723    exec_prefix=$prefix
24724  fi
24725
24726  full_var="$FROM_VAR"
24727    while true; do
24728    new_full_var="`eval echo $full_var`"
24729    if test "x$new_full_var" = "x$full_var"; then break; fi
24730    full_var=$new_full_var
24731  done
24732
24733    full_var=$new_full_var
24734  _GI_EXP_DATADIR="$full_var"
24735
24736
24737    prefix=$prefix_save
24738  exec_prefix=$exec_prefix_save
24739
24740
24741  EXP_VAR=_GI_EXP_LIBDIR
24742  FROM_VAR="$libdir"
24743
24744    prefix_save=$prefix
24745  exec_prefix_save=$exec_prefix
24746
24747    if test "x$prefix" = "xNONE"; then
24748    prefix="$ac_default_prefix"
24749  fi
24750    if test "x$exec_prefix" = "xNONE"; then
24751    exec_prefix=$prefix
24752  fi
24753
24754  full_var="$FROM_VAR"
24755    while true; do
24756    new_full_var="`eval echo $full_var`"
24757    if test "x$new_full_var" = "x$full_var"; then break; fi
24758    full_var=$new_full_var
24759  done
24760
24761    full_var=$new_full_var
24762  _GI_EXP_LIBDIR="$full_var"
24763
24764
24765    prefix=$prefix_save
24766  exec_prefix=$exec_prefix_save
24767
24768
24769    INTROSPECTION_SCANNER=
24770    INTROSPECTION_COMPILER=
24771    INTROSPECTION_GENERATE=
24772    INTROSPECTION_GIRDIR=
24773    INTROSPECTION_TYPELIBDIR=
24774    if test "x$found_introspection" = "xyes"; then
24775       INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
24776       INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
24777       INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
24778       INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
24779       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
24780       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
24781       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
24782       INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
24783    fi
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793     if test "x$found_introspection" = "xyes"; then
24794  HAVE_INTROSPECTION_TRUE=
24795  HAVE_INTROSPECTION_FALSE='#'
24796else
24797  HAVE_INTROSPECTION_TRUE='#'
24798  HAVE_INTROSPECTION_FALSE=
24799fi
24800
24801
24802
24803     if test "x$found_introspection" = "xyes"; then :
24804  INTROSPECTION_TYPELIBDIR=`$PKG_CONFIG --variable=typelibdir --define-variable="libdir=${libdir}" gobject-introspection-1.0`
24805        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir --define-variable="datadir=${datadir}" gobject-introspection-1.0`
24806
24807
24808fi
24809
24810fi
24811
24812if test "x$found_introspection" != "xyes"; then :
24813  with_gir="no"
24814fi
24815 if test "x$with_gir" = "xyes"; then
24816  HAVE_INTROSPECTION_TRUE=
24817  HAVE_INTROSPECTION_FALSE='#'
24818else
24819  HAVE_INTROSPECTION_TRUE='#'
24820  HAVE_INTROSPECTION_FALSE=
24821fi
24822
24823
24824
24825# Check whether --with-qt was given.
24826if test "${with_qt+set}" = set; then :
24827  withval=$with_qt;
24828else
24829  with_qt="yes"
24830fi
24831
24832
24833
24834# Check whether --with-qt5 was given.
24835if test "${with_qt5+set}" = set; then :
24836  withval=$with_qt5;
24837else
24838  with_qt5="yes"
24839fi
24840
24841
24842
24843
24844if test "x$have_x" = "xyes"; then :
24845  qt_extra="Qt5X11Extras >= 5.0"
24846else
24847  qt_extra=""
24848fi
24849
24850if test "x$with_qt" != "xno"; then :
24851
24852pkg_failed=no
24853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT" >&5
24854$as_echo_n "checking for QT... " >&6; }
24855
24856if test -n "$QT_CFLAGS"; then
24857    pkg_cv_QT_CFLAGS="$QT_CFLAGS"
24858 elif test -n "$PKG_CONFIG"; then
24859    if test -n "$PKG_CONFIG" && \
24860    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 \$qt_extra\""; } >&5
24861  ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 $qt_extra") 2>&5
24862  ac_status=$?
24863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24864  test $ac_status = 0; }; then
24865  pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 $qt_extra" 2>/dev/null`
24866		      test "x$?" != "x0" && pkg_failed=yes
24867else
24868  pkg_failed=yes
24869fi
24870 else
24871    pkg_failed=untried
24872fi
24873if test -n "$QT_LIBS"; then
24874    pkg_cv_QT_LIBS="$QT_LIBS"
24875 elif test -n "$PKG_CONFIG"; then
24876    if test -n "$PKG_CONFIG" && \
24877    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 \$qt_extra\""; } >&5
24878  ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 $qt_extra") 2>&5
24879  ac_status=$?
24880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24881  test $ac_status = 0; }; then
24882  pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 $qt_extra" 2>/dev/null`
24883		      test "x$?" != "x0" && pkg_failed=yes
24884else
24885  pkg_failed=yes
24886fi
24887 else
24888    pkg_failed=untried
24889fi
24890
24891
24892
24893if test $pkg_failed = yes; then
24894   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24895$as_echo "no" >&6; }
24896
24897if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24898        _pkg_short_errors_supported=yes
24899else
24900        _pkg_short_errors_supported=no
24901fi
24902        if test $_pkg_short_errors_supported = yes; then
24903	        QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 $qt_extra" 2>&1`
24904        else
24905	        QT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 $qt_extra" 2>&1`
24906        fi
24907	# Put the nasty error message in config.log where it belongs
24908	echo "$QT_PKG_ERRORS" >&5
24909
24910	with_qt5="no"
24911
24912pkg_failed=no
24913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT" >&5
24914$as_echo_n "checking for QT... " >&6; }
24915
24916if test -n "$QT_CFLAGS"; then
24917    pkg_cv_QT_CFLAGS="$QT_CFLAGS"
24918 elif test -n "$PKG_CONFIG"; then
24919    if test -n "$PKG_CONFIG" && \
24920    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4 QtGui >= 4\""; } >&5
24921  ($PKG_CONFIG --exists --print-errors "QtCore >= 4 QtGui >= 4") 2>&5
24922  ac_status=$?
24923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24924  test $ac_status = 0; }; then
24925  pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4 QtGui >= 4" 2>/dev/null`
24926		      test "x$?" != "x0" && pkg_failed=yes
24927else
24928  pkg_failed=yes
24929fi
24930 else
24931    pkg_failed=untried
24932fi
24933if test -n "$QT_LIBS"; then
24934    pkg_cv_QT_LIBS="$QT_LIBS"
24935 elif test -n "$PKG_CONFIG"; then
24936    if test -n "$PKG_CONFIG" && \
24937    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4 QtGui >= 4\""; } >&5
24938  ($PKG_CONFIG --exists --print-errors "QtCore >= 4 QtGui >= 4") 2>&5
24939  ac_status=$?
24940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24941  test $ac_status = 0; }; then
24942  pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "QtCore >= 4 QtGui >= 4" 2>/dev/null`
24943		      test "x$?" != "x0" && pkg_failed=yes
24944else
24945  pkg_failed=yes
24946fi
24947 else
24948    pkg_failed=untried
24949fi
24950
24951
24952
24953if test $pkg_failed = yes; then
24954   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24955$as_echo "no" >&6; }
24956
24957if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24958        _pkg_short_errors_supported=yes
24959else
24960        _pkg_short_errors_supported=no
24961fi
24962        if test $_pkg_short_errors_supported = yes; then
24963	        QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "QtCore >= 4 QtGui >= 4" 2>&1`
24964        else
24965	        QT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "QtCore >= 4 QtGui >= 4" 2>&1`
24966        fi
24967	# Put the nasty error message in config.log where it belongs
24968	echo "$QT_PKG_ERRORS" >&5
24969
24970	with_qt="no"
24971elif test $pkg_failed = untried; then
24972     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24973$as_echo "no" >&6; }
24974	with_qt="no"
24975else
24976	QT_CFLAGS=$pkg_cv_QT_CFLAGS
24977	QT_LIBS=$pkg_cv_QT_LIBS
24978        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24979$as_echo "yes" >&6; }
24980
24981fi
24982elif test $pkg_failed = untried; then
24983     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24984$as_echo "no" >&6; }
24985	with_qt5="no"
24986
24987pkg_failed=no
24988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT" >&5
24989$as_echo_n "checking for QT... " >&6; }
24990
24991if test -n "$QT_CFLAGS"; then
24992    pkg_cv_QT_CFLAGS="$QT_CFLAGS"
24993 elif test -n "$PKG_CONFIG"; then
24994    if test -n "$PKG_CONFIG" && \
24995    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4 QtGui >= 4\""; } >&5
24996  ($PKG_CONFIG --exists --print-errors "QtCore >= 4 QtGui >= 4") 2>&5
24997  ac_status=$?
24998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24999  test $ac_status = 0; }; then
25000  pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4 QtGui >= 4" 2>/dev/null`
25001		      test "x$?" != "x0" && pkg_failed=yes
25002else
25003  pkg_failed=yes
25004fi
25005 else
25006    pkg_failed=untried
25007fi
25008if test -n "$QT_LIBS"; then
25009    pkg_cv_QT_LIBS="$QT_LIBS"
25010 elif test -n "$PKG_CONFIG"; then
25011    if test -n "$PKG_CONFIG" && \
25012    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4 QtGui >= 4\""; } >&5
25013  ($PKG_CONFIG --exists --print-errors "QtCore >= 4 QtGui >= 4") 2>&5
25014  ac_status=$?
25015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25016  test $ac_status = 0; }; then
25017  pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "QtCore >= 4 QtGui >= 4" 2>/dev/null`
25018		      test "x$?" != "x0" && pkg_failed=yes
25019else
25020  pkg_failed=yes
25021fi
25022 else
25023    pkg_failed=untried
25024fi
25025
25026
25027
25028if test $pkg_failed = yes; then
25029   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25030$as_echo "no" >&6; }
25031
25032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25033        _pkg_short_errors_supported=yes
25034else
25035        _pkg_short_errors_supported=no
25036fi
25037        if test $_pkg_short_errors_supported = yes; then
25038	        QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "QtCore >= 4 QtGui >= 4" 2>&1`
25039        else
25040	        QT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "QtCore >= 4 QtGui >= 4" 2>&1`
25041        fi
25042	# Put the nasty error message in config.log where it belongs
25043	echo "$QT_PKG_ERRORS" >&5
25044
25045	with_qt="no"
25046elif test $pkg_failed = untried; then
25047     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25048$as_echo "no" >&6; }
25049	with_qt="no"
25050else
25051	QT_CFLAGS=$pkg_cv_QT_CFLAGS
25052	QT_LIBS=$pkg_cv_QT_LIBS
25053        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25054$as_echo "yes" >&6; }
25055
25056fi
25057else
25058	QT_CFLAGS=$pkg_cv_QT_CFLAGS
25059	QT_LIBS=$pkg_cv_QT_LIBS
25060        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25061$as_echo "yes" >&6; }
25062
25063fi
25064fi
25065
25066if test "x$with_qt" != "xno"; then :
25067  if test "x$with_qt5" != "xno"; then :
25068  for ac_prog in moc-qt5 moc
25069do
25070  # Extract the first word of "$ac_prog", so it can be a program name with args.
25071set dummy $ac_prog; ac_word=$2
25072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25073$as_echo_n "checking for $ac_word... " >&6; }
25074if ${ac_cv_prog_MOC+:} false; then :
25075  $as_echo_n "(cached) " >&6
25076else
25077  if test -n "$MOC"; then
25078  ac_cv_prog_MOC="$MOC" # Let the user override the test.
25079else
25080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25081for as_dir in $PATH
25082do
25083  IFS=$as_save_IFS
25084  test -z "$as_dir" && as_dir=.
25085    for ac_exec_ext in '' $ac_executable_extensions; do
25086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25087    ac_cv_prog_MOC="$ac_prog"
25088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25089    break 2
25090  fi
25091done
25092  done
25093IFS=$as_save_IFS
25094
25095fi
25096fi
25097MOC=$ac_cv_prog_MOC
25098if test -n "$MOC"; then
25099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
25100$as_echo "$MOC" >&6; }
25101else
25102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25103$as_echo "no" >&6; }
25104fi
25105
25106
25107  test -n "$MOC" && break
25108done
25109
25110     { $as_echo "$as_me:${as_lineno-$LINENO}: using moc from $MOC" >&5
25111$as_echo "$as_me: using moc from $MOC" >&6;}
25112     QT_VERSION=`$PKG_CONFIG Qt5Gui --modversion`
25113     CPPFLAGS="$CPPFLAGS $QT_CPPFLAGS"
25114     if test "x$win32" = "xno"; then :
25115  CPPFLAGS="$CPPFLAGS -fPIC"
25116fi
25117     { $as_echo "$as_me:${as_lineno-$LINENO}: using Qt version $QT_VERSION" >&5
25118$as_echo "$as_me: using Qt version $QT_VERSION" >&6;}
25119     qt_pkgconfig_file="zbar-qt5.pc"
25120
25121else
25122  MOC=`$PKG_CONFIG QtGui --variable=moc_location`
25123     { $as_echo "$as_me:${as_lineno-$LINENO}: using moc from $MOC" >&5
25124$as_echo "$as_me: using moc from $MOC" >&6;}
25125     QT_VERSION=`$PKG_CONFIG QtGui --modversion`
25126     { $as_echo "$as_me:${as_lineno-$LINENO}: using Qt version $QT_VERSION" >&5
25127$as_echo "$as_me: using Qt version $QT_VERSION" >&6;}
25128     qt_pkgconfig_file="zbar-qt.pc"
25129
25130fi
25131fi
25132
25133 if test "x$with_qt" = "xyes"; then
25134  HAVE_QT_TRUE=
25135  HAVE_QT_FALSE='#'
25136else
25137  HAVE_QT_TRUE='#'
25138  HAVE_QT_FALSE=
25139fi
25140
25141
25142if test -z "$HAVE_QT_TRUE"; then :
25143  ac_config_files="$ac_config_files zbar-qt.pc:"${qt_pkgconfig_file}.in""
25144
25145
25146fi
25147
25148have_java="maybe"
25149
25150
25151
25152
25153
25154
25155if test -z "$JAVA_HOME"; then :
25156  for ac_prog in javac jikes ecj gcj
25157do
25158  # Extract the first word of "$ac_prog", so it can be a program name with args.
25159set dummy $ac_prog; ac_word=$2
25160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25161$as_echo_n "checking for $ac_word... " >&6; }
25162if ${ac_cv_path_JAVAC+:} false; then :
25163  $as_echo_n "(cached) " >&6
25164else
25165  case $JAVAC in
25166  [\\/]* | ?:[\\/]*)
25167  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25168  ;;
25169  *)
25170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25171for as_dir in $PATH
25172do
25173  IFS=$as_save_IFS
25174  test -z "$as_dir" && as_dir=.
25175    for ac_exec_ext in '' $ac_executable_extensions; do
25176  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25177    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25179    break 2
25180  fi
25181done
25182  done
25183IFS=$as_save_IFS
25184
25185  ;;
25186esac
25187fi
25188JAVAC=$ac_cv_path_JAVAC
25189if test -n "$JAVAC"; then
25190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
25191$as_echo "$JAVAC" >&6; }
25192else
25193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25194$as_echo "no" >&6; }
25195fi
25196
25197
25198  test -n "$JAVAC" && break
25199done
25200test -n "$JAVAC" || JAVAC=":"
25201
25202       if test ! -z "$JAVAC"; then :
25203  JAVA_HOME=$( readlink -f ${JAVAC} | rev | cut -d/ -f3- | rev )
25204fi
25205fi
25206
25207if test ! -z "$JAVA_HOME"; then :
25208  JAVA_PATH="$JAVA_HOME/bin$PATH_SEPARATOR$PATH"
25209       if test -z "$JAVAC"; then :
25210  for ac_prog in javac jikes ecj gcj
25211do
25212  # Extract the first word of "$ac_prog", so it can be a program name with args.
25213set dummy $ac_prog; ac_word=$2
25214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25215$as_echo_n "checking for $ac_word... " >&6; }
25216if ${ac_cv_path_JAVAC+:} false; then :
25217  $as_echo_n "(cached) " >&6
25218else
25219  case $JAVAC in
25220  [\\/]* | ?:[\\/]*)
25221  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25222  ;;
25223  *)
25224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25225for as_dir in $JAVA_PATH
25226do
25227  IFS=$as_save_IFS
25228  test -z "$as_dir" && as_dir=.
25229    for ac_exec_ext in '' $ac_executable_extensions; do
25230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25231    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25233    break 2
25234  fi
25235done
25236  done
25237IFS=$as_save_IFS
25238
25239  ;;
25240esac
25241fi
25242JAVAC=$ac_cv_path_JAVAC
25243if test -n "$JAVAC"; then
25244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
25245$as_echo "$JAVAC" >&6; }
25246else
25247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25248$as_echo "no" >&6; }
25249fi
25250
25251
25252  test -n "$JAVAC" && break
25253done
25254test -n "$JAVAC" || JAVAC=":"
25255
25256fi
25257fi
25258
25259
25260# Check whether --with-java was given.
25261if test "${with_java+set}" = set; then :
25262  withval=$with_java;
25263else
25264  with_java="check"
25265fi
25266
25267
25268JAVAC=${JAVAC/ecj/ecj -1.5}
25269
25270if test -z "$JAVAH"; then :
25271  for ac_prog in javah
25272do
25273  # Extract the first word of "$ac_prog", so it can be a program name with args.
25274set dummy $ac_prog; ac_word=$2
25275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25276$as_echo_n "checking for $ac_word... " >&6; }
25277if ${ac_cv_path_JAVAH+:} false; then :
25278  $as_echo_n "(cached) " >&6
25279else
25280  case $JAVAH in
25281  [\\/]* | ?:[\\/]*)
25282  ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
25283  ;;
25284  *)
25285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25286for as_dir in $JAVA_HOME/bin
25287do
25288  IFS=$as_save_IFS
25289  test -z "$as_dir" && as_dir=.
25290    for ac_exec_ext in '' $ac_executable_extensions; do
25291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25292    ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25294    break 2
25295  fi
25296done
25297  done
25298IFS=$as_save_IFS
25299
25300  ;;
25301esac
25302fi
25303JAVAH=$ac_cv_path_JAVAH
25304if test -n "$JAVAH"; then
25305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
25306$as_echo "$JAVAH" >&6; }
25307else
25308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25309$as_echo "no" >&6; }
25310fi
25311
25312
25313  test -n "$JAVAH" && break
25314done
25315
25316fi
25317
25318 if test "x$JAVAH" != "x"; then
25319  HAVE_JAVAH_TRUE=
25320  HAVE_JAVAH_FALSE='#'
25321else
25322  HAVE_JAVAH_TRUE='#'
25323  HAVE_JAVAH_FALSE=
25324fi
25325
25326
25327
25328for ac_prog in jar
25329do
25330  # Extract the first word of "$ac_prog", so it can be a program name with args.
25331set dummy $ac_prog; ac_word=$2
25332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25333$as_echo_n "checking for $ac_word... " >&6; }
25334if ${ac_cv_path_JAR+:} false; then :
25335  $as_echo_n "(cached) " >&6
25336else
25337  case $JAR in
25338  [\\/]* | ?:[\\/]*)
25339  ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
25340  ;;
25341  *)
25342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25343for as_dir in $JAVA_PATH
25344do
25345  IFS=$as_save_IFS
25346  test -z "$as_dir" && as_dir=.
25347    for ac_exec_ext in '' $ac_executable_extensions; do
25348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25349    ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
25350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25351    break 2
25352  fi
25353done
25354  done
25355IFS=$as_save_IFS
25356
25357  ;;
25358esac
25359fi
25360JAR=$ac_cv_path_JAR
25361if test -n "$JAR"; then
25362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
25363$as_echo "$JAR" >&6; }
25364else
25365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25366$as_echo "no" >&6; }
25367fi
25368
25369
25370  test -n "$JAR" && break
25371done
25372test -n "$JAR" || JAR=":"
25373
25374if test "x$JAR" = "x:"; then :
25375  have_java="no"
25376fi
25377
25378
25379for ac_prog in java
25380do
25381  # Extract the first word of "$ac_prog", so it can be a program name with args.
25382set dummy $ac_prog; ac_word=$2
25383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25384$as_echo_n "checking for $ac_word... " >&6; }
25385if ${ac_cv_path_JAVA+:} false; then :
25386  $as_echo_n "(cached) " >&6
25387else
25388  case $JAVA in
25389  [\\/]* | ?:[\\/]*)
25390  ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
25391  ;;
25392  *)
25393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25394for as_dir in $JAVA_PATH
25395do
25396  IFS=$as_save_IFS
25397  test -z "$as_dir" && as_dir=.
25398    for ac_exec_ext in '' $ac_executable_extensions; do
25399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25400    ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
25401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25402    break 2
25403  fi
25404done
25405  done
25406IFS=$as_save_IFS
25407
25408  ;;
25409esac
25410fi
25411JAVA=$ac_cv_path_JAVA
25412if test -n "$JAVA"; then
25413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
25414$as_echo "$JAVA" >&6; }
25415else
25416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25417$as_echo "no" >&6; }
25418fi
25419
25420
25421  test -n "$JAVA" && break
25422done
25423test -n "$JAVA" || JAVA="/bin/false"
25424
25425
25426
25427if test "x$CLASSPATH" = "x"; then :
25428  CLASSPATH="."
25429fi
25430
25431if test -z "$JUNIT_HOME"; then :
25432  JUNIT_HOME="/usr/share/java"
25433fi
25434
25435if test -f "$JUNIT_HOME/junit4.jar"; then :
25436  JUNIT="$JUNIT_HOME/junit4.jar"
25437else
25438  if test -f "$JUNIT_HOME/junit.jar"; then :
25439  JUNIT="$JUNIT_HOME/junit.jar"
25440fi
25441fi
25442
25443if test "x$JUNIT" != "x"; then :
25444  if test -f "/usr/share/java/hamcrest/all.jar"; then :
25445  CLASSPATH="$JUNIT:/usr/share/java/hamcrest/all.jar:$CLASSPATH"
25446
25447              with_java_unit="yes"
25448fi
25449else
25450  if test -f "/usr/share/java/hamcrest-all.jar"; then :
25451  CLASSPATH="$JUNIT:/usr/share/java/hamcrest-all.jar:$CLASSPATH"
25452
25453              with_java_unit="yes"
25454fi
25455fi
25456
25457 if test "x$with_java_unit" = "xyes"; then
25458  HAVE_JAVA_UNIT_TRUE=
25459  HAVE_JAVA_UNIT_FALSE='#'
25460else
25461  HAVE_JAVA_UNIT_TRUE='#'
25462  HAVE_JAVA_UNIT_FALSE=
25463fi
25464
25465
25466
25467if test "x$JAVA_CFLAGS" = "x" && test "x$JAVA_HOME" != "x"; then :
25468  JAVA_CFLAGS="-I$JAVA_HOME/include"
25469fi
25470
25471if test -d "$JAVA_HOME/include/linux"; then :
25472  JAVA_CFLAGS="$JAVA_CFLAGS -I$JAVA_HOME/include/linux"
25473fi
25474
25475if test "x$with_java" != "xno"; then :
25476  CPPFLAGS_save="$CPPFLAGS"
25477   CPPFLAGS="$CPPFLAGS $JAVA_CFLAGS"
25478   for ac_header in jni.h
25479do :
25480  ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
25481if test "x$ac_cv_header_jni_h" = xyes; then :
25482  cat >>confdefs.h <<_ACEOF
25483#define HAVE_JNI_H 1
25484_ACEOF
25485
25486else
25487  have_java="no"
25488fi
25489
25490done
25491
25492   CPPFLAGS="$CPPFLAGS_save"
25493   if test "x$have_java" != "xno"; then :
25494  with_java="yes"
25495elif test "x$with_java" = "xyes"; then :
25496  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25498as_fn_error $? "unable to find Java JNI! ensure CFLAGS are set appropriately or configure --without-java
25499See \`config.log' for more details" "$LINENO" 5; }
25500else
25501  with_java="no"
25502fi
25503
25504fi
25505 if test "x$with_java" = "xyes"; then
25506  HAVE_JAVA_TRUE=
25507  HAVE_JAVA_FALSE='#'
25508else
25509  HAVE_JAVA_TRUE='#'
25510  HAVE_JAVA_FALSE=
25511fi
25512
25513
25514
25515
25516
25517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
25518$as_echo_n "checking whether to enable assertions... " >&6; }
25519  # Check whether --enable-assert was given.
25520if test "${enable_assert+set}" = set; then :
25521  enableval=$enable_assert; ac_enable_assert=$enableval
25522     if       test "x$enableval" = xno; then :
25523
25524$as_echo "#define NDEBUG 1" >>confdefs.h
25525
25526elif test "x$enableval" != xyes; then :
25527  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
25528$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
25529	ac_enable_assert=yes
25530fi
25531else
25532  ac_enable_assert=yes
25533fi
25534
25535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
25536$as_echo "$ac_enable_assert" >&6; }
25537
25538for ac_header in errno.h fcntl.h features.h inttypes.h float.h limits.h \
25539  locale.h stddef.h stdlib.h string.h unistd.h sys/types.h sys/stat.h \
25540  sys/ioctl.h sys/time.h sys/times.h sys/ipc.h sys/shm.h sys/mman.h
25541do :
25542  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25543ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25544if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25545  cat >>confdefs.h <<_ACEOF
25546#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25547_ACEOF
25548
25549fi
25550
25551done
25552
25553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25554$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25555if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25556  $as_echo_n "(cached) " >&6
25557else
25558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25559/* end confdefs.h.  */
25560#include <sys/types.h>
25561int
25562main ()
25563{
25564return makedev(0, 0);
25565  ;
25566  return 0;
25567}
25568_ACEOF
25569if ac_fn_c_try_link "$LINENO"; then :
25570  ac_cv_header_sys_types_h_makedev=yes
25571else
25572  ac_cv_header_sys_types_h_makedev=no
25573fi
25574rm -f core conftest.err conftest.$ac_objext \
25575    conftest$ac_exeext conftest.$ac_ext
25576
25577fi
25578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25579$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25580
25581if test $ac_cv_header_sys_types_h_makedev = no; then
25582ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25583if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25584
25585$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25586
25587fi
25588
25589
25590
25591  if test $ac_cv_header_sys_mkdev_h = no; then
25592    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25593if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25594
25595$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25596
25597fi
25598
25599
25600  fi
25601fi
25602
25603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25604$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25605if ${ac_cv_header_stdbool_h+:} false; then :
25606  $as_echo_n "(cached) " >&6
25607else
25608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25609/* end confdefs.h.  */
25610
25611             #include <stdbool.h>
25612             #ifndef bool
25613              "error: bool is not defined"
25614             #endif
25615             #ifndef false
25616              "error: false is not defined"
25617             #endif
25618             #if false
25619              "error: false is not 0"
25620             #endif
25621             #ifndef true
25622              "error: true is not defined"
25623             #endif
25624             #if true != 1
25625              "error: true is not 1"
25626             #endif
25627             #ifndef __bool_true_false_are_defined
25628              "error: __bool_true_false_are_defined is not defined"
25629             #endif
25630
25631             struct s { _Bool s: 1; _Bool t; } s;
25632
25633             char a[true == 1 ? 1 : -1];
25634             char b[false == 0 ? 1 : -1];
25635             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25636             char d[(bool) 0.5 == true ? 1 : -1];
25637             /* See body of main program for 'e'.  */
25638             char f[(_Bool) 0.0 == false ? 1 : -1];
25639             char g[true];
25640             char h[sizeof (_Bool)];
25641             char i[sizeof s.t];
25642             enum { j = false, k = true, l = false * true, m = true * 256 };
25643             /* The following fails for
25644                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25645             _Bool n[m];
25646             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25647             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25648             /* Catch a bug in an HP-UX C compiler.  See
25649                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25650                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25651              */
25652             _Bool q = true;
25653             _Bool *pq = &q;
25654
25655int
25656main ()
25657{
25658
25659             bool e = &s;
25660             *pq |= q;
25661             *pq |= ! q;
25662             /* Refer to every declared value, to avoid compiler optimizations.  */
25663             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25664                     + !m + !n + !o + !p + !q + !pq);
25665
25666  ;
25667  return 0;
25668}
25669_ACEOF
25670if ac_fn_c_try_compile "$LINENO"; then :
25671  ac_cv_header_stdbool_h=yes
25672else
25673  ac_cv_header_stdbool_h=no
25674fi
25675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25676fi
25677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25678$as_echo "$ac_cv_header_stdbool_h" >&6; }
25679   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25680if test "x$ac_cv_type__Bool" = xyes; then :
25681
25682cat >>confdefs.h <<_ACEOF
25683#define HAVE__BOOL 1
25684_ACEOF
25685
25686
25687fi
25688
25689
25690
25691
25692ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
25693case $ac_cv_c_int32_t in #(
25694  no|yes) ;; #(
25695  *)
25696
25697cat >>confdefs.h <<_ACEOF
25698#define int32_t $ac_cv_c_int32_t
25699_ACEOF
25700;;
25701esac
25702
25703ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
25704case $ac_cv_c_uint32_t in #(
25705  no|yes) ;; #(
25706  *)
25707
25708$as_echo "#define _UINT32_T 1" >>confdefs.h
25709
25710
25711cat >>confdefs.h <<_ACEOF
25712#define uint32_t $ac_cv_c_uint32_t
25713_ACEOF
25714;;
25715  esac
25716
25717ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
25718case $ac_cv_c_uint8_t in #(
25719  no|yes) ;; #(
25720  *)
25721
25722$as_echo "#define _UINT8_T 1" >>confdefs.h
25723
25724
25725cat >>confdefs.h <<_ACEOF
25726#define uint8_t $ac_cv_c_uint8_t
25727_ACEOF
25728;;
25729  esac
25730
25731
25732  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
25733if test "x$ac_cv_type_uintptr_t" = xyes; then :
25734
25735$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
25736
25737else
25738  for ac_type in 'unsigned int' 'unsigned long int' \
25739	'unsigned long long int'; do
25740       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25741/* end confdefs.h.  */
25742$ac_includes_default
25743int
25744main ()
25745{
25746static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
25747test_array [0] = 0;
25748return test_array [0];
25749
25750  ;
25751  return 0;
25752}
25753_ACEOF
25754if ac_fn_c_try_compile "$LINENO"; then :
25755
25756cat >>confdefs.h <<_ACEOF
25757#define uintptr_t $ac_type
25758_ACEOF
25759
25760	  ac_type=
25761fi
25762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25763       test -z "$ac_type" && break
25764     done
25765fi
25766
25767
25768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
25769$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
25770if ${ac_cv_type_uid_t+:} false; then :
25771  $as_echo_n "(cached) " >&6
25772else
25773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25774/* end confdefs.h.  */
25775#include <sys/types.h>
25776
25777_ACEOF
25778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25779  $EGREP "uid_t" >/dev/null 2>&1; then :
25780  ac_cv_type_uid_t=yes
25781else
25782  ac_cv_type_uid_t=no
25783fi
25784rm -f conftest*
25785
25786fi
25787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
25788$as_echo "$ac_cv_type_uid_t" >&6; }
25789if test $ac_cv_type_uid_t = no; then
25790
25791$as_echo "#define uid_t int" >>confdefs.h
25792
25793
25794$as_echo "#define gid_t int" >>confdefs.h
25795
25796fi
25797
25798ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
25799case $ac_cv_c_int32_t in #(
25800  no|yes) ;; #(
25801  *)
25802
25803cat >>confdefs.h <<_ACEOF
25804#define int32_t $ac_cv_c_int32_t
25805_ACEOF
25806;;
25807esac
25808
25809ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
25810case $ac_cv_c_int64_t in #(
25811  no|yes) ;; #(
25812  *)
25813
25814cat >>confdefs.h <<_ACEOF
25815#define int64_t $ac_cv_c_int64_t
25816_ACEOF
25817;;
25818esac
25819
25820ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
25821if test "x$ac_cv_type_off_t" = xyes; then :
25822
25823else
25824
25825cat >>confdefs.h <<_ACEOF
25826#define off_t long int
25827_ACEOF
25828
25829fi
25830
25831ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25832if test "x$ac_cv_type_size_t" = xyes; then :
25833
25834else
25835
25836cat >>confdefs.h <<_ACEOF
25837#define size_t unsigned int
25838_ACEOF
25839
25840fi
25841
25842ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
25843case $ac_cv_c_uint16_t in #(
25844  no|yes) ;; #(
25845  *)
25846
25847
25848cat >>confdefs.h <<_ACEOF
25849#define uint16_t $ac_cv_c_uint16_t
25850_ACEOF
25851;;
25852  esac
25853
25854ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
25855case $ac_cv_c_uint32_t in #(
25856  no|yes) ;; #(
25857  *)
25858
25859$as_echo "#define _UINT32_T 1" >>confdefs.h
25860
25861
25862cat >>confdefs.h <<_ACEOF
25863#define uint32_t $ac_cv_c_uint32_t
25864_ACEOF
25865;;
25866  esac
25867
25868ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
25869case $ac_cv_c_uint64_t in #(
25870  no|yes) ;; #(
25871  *)
25872
25873$as_echo "#define _UINT64_T 1" >>confdefs.h
25874
25875
25876cat >>confdefs.h <<_ACEOF
25877#define uint64_t $ac_cv_c_uint64_t
25878_ACEOF
25879;;
25880  esac
25881
25882ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
25883case $ac_cv_c_uint8_t in #(
25884  no|yes) ;; #(
25885  *)
25886
25887$as_echo "#define _UINT8_T 1" >>confdefs.h
25888
25889
25890cat >>confdefs.h <<_ACEOF
25891#define uint8_t $ac_cv_c_uint8_t
25892_ACEOF
25893;;
25894  esac
25895
25896ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
25897if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
25898
25899cat >>confdefs.h <<_ACEOF
25900#define HAVE_STRUCT_STAT_ST_RDEV 1
25901_ACEOF
25902
25903
25904fi
25905
25906
25907
25908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25909$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25910if ${ac_cv_c_const+:} false; then :
25911  $as_echo_n "(cached) " >&6
25912else
25913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25914/* end confdefs.h.  */
25915
25916int
25917main ()
25918{
25919
25920#ifndef __cplusplus
25921  /* Ultrix mips cc rejects this sort of thing.  */
25922  typedef int charset[2];
25923  const charset cs = { 0, 0 };
25924  /* SunOS 4.1.1 cc rejects this.  */
25925  char const *const *pcpcc;
25926  char **ppc;
25927  /* NEC SVR4.0.2 mips cc rejects this.  */
25928  struct point {int x, y;};
25929  static struct point const zero = {0,0};
25930  /* AIX XL C 1.02.0.0 rejects this.
25931     It does not let you subtract one const X* pointer from another in
25932     an arm of an if-expression whose if-part is not a constant
25933     expression */
25934  const char *g = "string";
25935  pcpcc = &g + (g ? g-g : 0);
25936  /* HPUX 7.0 cc rejects these. */
25937  ++pcpcc;
25938  ppc = (char**) pcpcc;
25939  pcpcc = (char const *const *) ppc;
25940  { /* SCO 3.2v4 cc rejects this sort of thing.  */
25941    char tx;
25942    char *t = &tx;
25943    char const *s = 0 ? (char *) 0 : (char const *) 0;
25944
25945    *t++ = 0;
25946    if (s) return 0;
25947  }
25948  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25949    int x[] = {25, 17};
25950    const int *foo = &x[0];
25951    ++foo;
25952  }
25953  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25954    typedef const int *iptr;
25955    iptr p = 0;
25956    ++p;
25957  }
25958  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
25959       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25960    struct s { int j; const int *ap[3]; } bx;
25961    struct s *b = &bx; b->j = 5;
25962  }
25963  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25964    const int foo = 10;
25965    if (!foo) return 0;
25966  }
25967  return !cs[0] && !zero.x;
25968#endif
25969
25970  ;
25971  return 0;
25972}
25973_ACEOF
25974if ac_fn_c_try_compile "$LINENO"; then :
25975  ac_cv_c_const=yes
25976else
25977  ac_cv_c_const=no
25978fi
25979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25980fi
25981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25982$as_echo "$ac_cv_c_const" >&6; }
25983if test $ac_cv_c_const = no; then
25984
25985$as_echo "#define const /**/" >>confdefs.h
25986
25987fi
25988
25989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
25990$as_echo_n "checking for inline... " >&6; }
25991if ${ac_cv_c_inline+:} false; then :
25992  $as_echo_n "(cached) " >&6
25993else
25994  ac_cv_c_inline=no
25995for ac_kw in inline __inline__ __inline; do
25996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25997/* end confdefs.h.  */
25998#ifndef __cplusplus
25999typedef int foo_t;
26000static $ac_kw foo_t static_foo () {return 0; }
26001$ac_kw foo_t foo () {return 0; }
26002#endif
26003
26004_ACEOF
26005if ac_fn_c_try_compile "$LINENO"; then :
26006  ac_cv_c_inline=$ac_kw
26007fi
26008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26009  test "$ac_cv_c_inline" != no && break
26010done
26011
26012fi
26013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
26014$as_echo "$ac_cv_c_inline" >&6; }
26015
26016case $ac_cv_c_inline in
26017  inline | yes) ;;
26018  *)
26019    case $ac_cv_c_inline in
26020      no) ac_val=;;
26021      *) ac_val=$ac_cv_c_inline;;
26022    esac
26023    cat >>confdefs.h <<_ACEOF
26024#ifndef __cplusplus
26025#define inline $ac_val
26026#endif
26027_ACEOF
26028    ;;
26029esac
26030
26031
26032
26033
26034
26035
26036  for ac_header in $ac_header_list
26037do :
26038  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26039ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
26040"
26041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26042  cat >>confdefs.h <<_ACEOF
26043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26044_ACEOF
26045
26046fi
26047
26048done
26049
26050
26051
26052
26053
26054
26055
26056
26057for ac_func in getpagesize
26058do :
26059  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
26060if test "x$ac_cv_func_getpagesize" = xyes; then :
26061  cat >>confdefs.h <<_ACEOF
26062#define HAVE_GETPAGESIZE 1
26063_ACEOF
26064
26065fi
26066done
26067
26068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
26069$as_echo_n "checking for working mmap... " >&6; }
26070if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
26071  $as_echo_n "(cached) " >&6
26072else
26073  if test "$cross_compiling" = yes; then :
26074  ac_cv_func_mmap_fixed_mapped=no
26075else
26076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26077/* end confdefs.h.  */
26078$ac_includes_default
26079/* malloc might have been renamed as rpl_malloc. */
26080#undef malloc
26081
26082/* Thanks to Mike Haertel and Jim Avera for this test.
26083   Here is a matrix of mmap possibilities:
26084	mmap private not fixed
26085	mmap private fixed at somewhere currently unmapped
26086	mmap private fixed at somewhere already mapped
26087	mmap shared not fixed
26088	mmap shared fixed at somewhere currently unmapped
26089	mmap shared fixed at somewhere already mapped
26090   For private mappings, we should verify that changes cannot be read()
26091   back from the file, nor mmap's back from the file at a different
26092   address.  (There have been systems where private was not correctly
26093   implemented like the infamous i386 svr4.0, and systems where the
26094   VM page cache was not coherent with the file system buffer cache
26095   like early versions of FreeBSD and possibly contemporary NetBSD.)
26096   For shared mappings, we should conversely verify that changes get
26097   propagated back to all the places they're supposed to be.
26098
26099   Grep wants private fixed already mapped.
26100   The main things grep needs to know about mmap are:
26101   * does it exist and is it safe to write into the mmap'd area
26102   * how to use it (BSD variants)  */
26103
26104#include <fcntl.h>
26105#include <sys/mman.h>
26106
26107#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
26108char *malloc ();
26109#endif
26110
26111/* This mess was copied from the GNU getpagesize.h.  */
26112#ifndef HAVE_GETPAGESIZE
26113# ifdef _SC_PAGESIZE
26114#  define getpagesize() sysconf(_SC_PAGESIZE)
26115# else /* no _SC_PAGESIZE */
26116#  ifdef HAVE_SYS_PARAM_H
26117#   include <sys/param.h>
26118#   ifdef EXEC_PAGESIZE
26119#    define getpagesize() EXEC_PAGESIZE
26120#   else /* no EXEC_PAGESIZE */
26121#    ifdef NBPG
26122#     define getpagesize() NBPG * CLSIZE
26123#     ifndef CLSIZE
26124#      define CLSIZE 1
26125#     endif /* no CLSIZE */
26126#    else /* no NBPG */
26127#     ifdef NBPC
26128#      define getpagesize() NBPC
26129#     else /* no NBPC */
26130#      ifdef PAGESIZE
26131#       define getpagesize() PAGESIZE
26132#      endif /* PAGESIZE */
26133#     endif /* no NBPC */
26134#    endif /* no NBPG */
26135#   endif /* no EXEC_PAGESIZE */
26136#  else /* no HAVE_SYS_PARAM_H */
26137#   define getpagesize() 8192	/* punt totally */
26138#  endif /* no HAVE_SYS_PARAM_H */
26139# endif /* no _SC_PAGESIZE */
26140
26141#endif /* no HAVE_GETPAGESIZE */
26142
26143int
26144main ()
26145{
26146  char *data, *data2, *data3;
26147  const char *cdata2;
26148  int i, pagesize;
26149  int fd, fd2;
26150
26151  pagesize = getpagesize ();
26152
26153  /* First, make a file with some known garbage in it. */
26154  data = (char *) malloc (pagesize);
26155  if (!data)
26156    return 1;
26157  for (i = 0; i < pagesize; ++i)
26158    *(data + i) = rand ();
26159  umask (0);
26160  fd = creat ("conftest.mmap", 0600);
26161  if (fd < 0)
26162    return 2;
26163  if (write (fd, data, pagesize) != pagesize)
26164    return 3;
26165  close (fd);
26166
26167  /* Next, check that the tail of a page is zero-filled.  File must have
26168     non-zero length, otherwise we risk SIGBUS for entire page.  */
26169  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
26170  if (fd2 < 0)
26171    return 4;
26172  cdata2 = "";
26173  if (write (fd2, cdata2, 1) != 1)
26174    return 5;
26175  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
26176  if (data2 == MAP_FAILED)
26177    return 6;
26178  for (i = 0; i < pagesize; ++i)
26179    if (*(data2 + i))
26180      return 7;
26181  close (fd2);
26182  if (munmap (data2, pagesize))
26183    return 8;
26184
26185  /* Next, try to mmap the file at a fixed address which already has
26186     something else allocated at it.  If we can, also make sure that
26187     we see the same garbage.  */
26188  fd = open ("conftest.mmap", O_RDWR);
26189  if (fd < 0)
26190    return 9;
26191  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
26192		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
26193    return 10;
26194  for (i = 0; i < pagesize; ++i)
26195    if (*(data + i) != *(data2 + i))
26196      return 11;
26197
26198  /* Finally, make sure that changes to the mapped area do not
26199     percolate back to the file as seen by read().  (This is a bug on
26200     some variants of i386 svr4.0.)  */
26201  for (i = 0; i < pagesize; ++i)
26202    *(data2 + i) = *(data2 + i) + 1;
26203  data3 = (char *) malloc (pagesize);
26204  if (!data3)
26205    return 12;
26206  if (read (fd, data3, pagesize) != pagesize)
26207    return 13;
26208  for (i = 0; i < pagesize; ++i)
26209    if (*(data + i) != *(data3 + i))
26210      return 14;
26211  close (fd);
26212  return 0;
26213}
26214_ACEOF
26215if ac_fn_c_try_run "$LINENO"; then :
26216  ac_cv_func_mmap_fixed_mapped=yes
26217else
26218  ac_cv_func_mmap_fixed_mapped=no
26219fi
26220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26221  conftest.$ac_objext conftest.beam conftest.$ac_ext
26222fi
26223
26224fi
26225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
26226$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
26227if test $ac_cv_func_mmap_fixed_mapped = yes; then
26228
26229$as_echo "#define HAVE_MMAP 1" >>confdefs.h
26230
26231fi
26232rm -f conftest.mmap conftest.txt
26233
26234for ac_func in alarm clock_gettime floor getcwd gettimeofday localeconv memchr memmove memset modf munmap pow select setenv sqrt strcasecmp strchr strdup strerror strrchr strstr strtol strtoul malloc realloc
26235do :
26236  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26237ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26238if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26239  cat >>confdefs.h <<_ACEOF
26240#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26241_ACEOF
26242
26243fi
26244done
26245
26246
26247
26248
26249ac_config_commands="$ac_config_commands doc/version.xml"
26250
26251ac_config_commands="$ac_config_commands doc/reldate.xml"
26252
26253
26254echo "Generating config files"
26255
26256ac_config_files="$ac_config_files Makefile gtk/Makefile java/Makefile po/Makefile.in zbar/Makefile zbar.pc zbar-gtk.pc doc/doxygen.conf"
26257
26258
26259ac_config_files="$ac_config_files test/test_examples.sh"
26260
26261ac_config_files="$ac_config_files test/check_dbus.sh"
26262
26263
26264cat >confcache <<\_ACEOF
26265# This file is a shell script that caches the results of configure
26266# tests run on this system so they can be shared between configure
26267# scripts and configure runs, see configure's option --config-cache.
26268# It is not useful on other systems.  If it contains results you don't
26269# want to keep, you may remove or edit it.
26270#
26271# config.status only pays attention to the cache file if you give it
26272# the --recheck option to rerun configure.
26273#
26274# `ac_cv_env_foo' variables (set or unset) will be overridden when
26275# loading this file, other *unset* `ac_cv_foo' will be assigned the
26276# following values.
26277
26278_ACEOF
26279
26280# The following way of writing the cache mishandles newlines in values,
26281# but we know of no workaround that is simple, portable, and efficient.
26282# So, we kill variables containing newlines.
26283# Ultrix sh set writes to stderr and can't be redirected directly,
26284# and sets the high bit in the cache file unless we assign to the vars.
26285(
26286  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26287    eval ac_val=\$$ac_var
26288    case $ac_val in #(
26289    *${as_nl}*)
26290      case $ac_var in #(
26291      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26292$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26293      esac
26294      case $ac_var in #(
26295      _ | IFS | as_nl) ;; #(
26296      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26297      *) { eval $ac_var=; unset $ac_var;} ;;
26298      esac ;;
26299    esac
26300  done
26301
26302  (set) 2>&1 |
26303    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26304    *${as_nl}ac_space=\ *)
26305      # `set' does not quote correctly, so add quotes: double-quote
26306      # substitution turns \\\\ into \\, and sed turns \\ into \.
26307      sed -n \
26308	"s/'/'\\\\''/g;
26309	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26310      ;; #(
26311    *)
26312      # `set' quotes correctly as required by POSIX, so do not add quotes.
26313      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26314      ;;
26315    esac |
26316    sort
26317) |
26318  sed '
26319     /^ac_cv_env_/b end
26320     t clear
26321     :clear
26322     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26323     t end
26324     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26325     :end' >>confcache
26326if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26327  if test -w "$cache_file"; then
26328    if test "x$cache_file" != "x/dev/null"; then
26329      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26330$as_echo "$as_me: updating cache $cache_file" >&6;}
26331      if test ! -f "$cache_file" || test -h "$cache_file"; then
26332	cat confcache >"$cache_file"
26333      else
26334        case $cache_file in #(
26335        */* | ?:*)
26336	  mv -f confcache "$cache_file"$$ &&
26337	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26338        *)
26339	  mv -f confcache "$cache_file" ;;
26340	esac
26341      fi
26342    fi
26343  else
26344    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26345$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26346  fi
26347fi
26348rm -f confcache
26349
26350test "x$prefix" = xNONE && prefix=$ac_default_prefix
26351# Let make expand exec_prefix.
26352test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26353
26354DEFS=-DHAVE_CONFIG_H
26355
26356ac_libobjs=
26357ac_ltlibobjs=
26358U=
26359for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26360  # 1. Remove the extension, and $U if already installed.
26361  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26362  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26363  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26364  #    will be set to the directory where LIBOBJS objects are built.
26365  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26366  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26367done
26368LIBOBJS=$ac_libobjs
26369
26370LTLIBOBJS=$ac_ltlibobjs
26371
26372
26373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26374$as_echo_n "checking that generated files are newer than configure... " >&6; }
26375   if test -n "$am_sleep_pid"; then
26376     # Hide warnings about reused PIDs.
26377     wait $am_sleep_pid 2>/dev/null
26378   fi
26379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26380$as_echo "done" >&6; }
26381 if test -n "$EXEEXT"; then
26382  am__EXEEXT_TRUE=
26383  am__EXEEXT_FALSE='#'
26384else
26385  am__EXEEXT_TRUE='#'
26386  am__EXEEXT_FALSE=
26387fi
26388
26389if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26390  as_fn_error $? "conditional \"AMDEP\" was never defined.
26391Usually this means the macro was only invoked conditionally." "$LINENO" 5
26392fi
26393if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26394  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26395Usually this means the macro was only invoked conditionally." "$LINENO" 5
26396fi
26397if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
26398  as_fn_error $? "conditional \"WIN32\" was never defined.
26399Usually this means the macro was only invoked conditionally." "$LINENO" 5
26400fi
26401if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26402  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26403Usually this means the macro was only invoked conditionally." "$LINENO" 5
26404fi
26405if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26406  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26407Usually this means the macro was only invoked conditionally." "$LINENO" 5
26408fi
26409if test -z "${ENABLE_EAN_TRUE}" && test -z "${ENABLE_EAN_FALSE}"; then
26410  as_fn_error $? "conditional \"ENABLE_EAN\" was never defined.
26411Usually this means the macro was only invoked conditionally." "$LINENO" 5
26412fi
26413if test -z "${ENABLE_DATABAR_TRUE}" && test -z "${ENABLE_DATABAR_FALSE}"; then
26414  as_fn_error $? "conditional \"ENABLE_DATABAR\" was never defined.
26415Usually this means the macro was only invoked conditionally." "$LINENO" 5
26416fi
26417if test -z "${ENABLE_CODE128_TRUE}" && test -z "${ENABLE_CODE128_FALSE}"; then
26418  as_fn_error $? "conditional \"ENABLE_CODE128\" was never defined.
26419Usually this means the macro was only invoked conditionally." "$LINENO" 5
26420fi
26421if test -z "${ENABLE_CODE93_TRUE}" && test -z "${ENABLE_CODE93_FALSE}"; then
26422  as_fn_error $? "conditional \"ENABLE_CODE93\" was never defined.
26423Usually this means the macro was only invoked conditionally." "$LINENO" 5
26424fi
26425if test -z "${ENABLE_CODE39_TRUE}" && test -z "${ENABLE_CODE39_FALSE}"; then
26426  as_fn_error $? "conditional \"ENABLE_CODE39\" was never defined.
26427Usually this means the macro was only invoked conditionally." "$LINENO" 5
26428fi
26429if test -z "${ENABLE_CODABAR_TRUE}" && test -z "${ENABLE_CODABAR_FALSE}"; then
26430  as_fn_error $? "conditional \"ENABLE_CODABAR\" was never defined.
26431Usually this means the macro was only invoked conditionally." "$LINENO" 5
26432fi
26433if test -z "${ENABLE_I25_TRUE}" && test -z "${ENABLE_I25_FALSE}"; then
26434  as_fn_error $? "conditional \"ENABLE_I25\" was never defined.
26435Usually this means the macro was only invoked conditionally." "$LINENO" 5
26436fi
26437if test -z "${ENABLE_QRCODE_TRUE}" && test -z "${ENABLE_QRCODE_FALSE}"; then
26438  as_fn_error $? "conditional \"ENABLE_QRCODE\" was never defined.
26439Usually this means the macro was only invoked conditionally." "$LINENO" 5
26440fi
26441if test -z "${ENABLE_SQCODE_TRUE}" && test -z "${ENABLE_SQCODE_FALSE}"; then
26442  as_fn_error $? "conditional \"ENABLE_SQCODE\" was never defined.
26443Usually this means the macro was only invoked conditionally." "$LINENO" 5
26444fi
26445if test -z "${ENABLE_PDF417_TRUE}" && test -z "${ENABLE_PDF417_FALSE}"; then
26446  as_fn_error $? "conditional \"ENABLE_PDF417\" was never defined.
26447Usually this means the macro was only invoked conditionally." "$LINENO" 5
26448fi
26449if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then
26450  as_fn_error $? "conditional \"USE_NLS\" was never defined.
26451Usually this means the macro was only invoked conditionally." "$LINENO" 5
26452fi
26453if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then
26454  as_fn_error $? "conditional \"HAVE_POLL\" was never defined.
26455Usually this means the macro was only invoked conditionally." "$LINENO" 5
26456fi
26457if test -z "${HAVE_DOC_TRUE}" && test -z "${HAVE_DOC_FALSE}"; then
26458  as_fn_error $? "conditional \"HAVE_DOC\" was never defined.
26459Usually this means the macro was only invoked conditionally." "$LINENO" 5
26460fi
26461if test -z "${HAVE_VIDEO_TRUE}" && test -z "${HAVE_VIDEO_FALSE}"; then
26462  as_fn_error $? "conditional \"HAVE_VIDEO\" was never defined.
26463Usually this means the macro was only invoked conditionally." "$LINENO" 5
26464fi
26465if test -z "${HAVE_V4L1_TRUE}" && test -z "${HAVE_V4L1_FALSE}"; then
26466  as_fn_error $? "conditional \"HAVE_V4L1\" was never defined.
26467Usually this means the macro was only invoked conditionally." "$LINENO" 5
26468fi
26469if test -z "${HAVE_V4L2_TRUE}" && test -z "${HAVE_V4L2_FALSE}"; then
26470  as_fn_error $? "conditional \"HAVE_V4L2\" was never defined.
26471Usually this means the macro was only invoked conditionally." "$LINENO" 5
26472fi
26473if test -z "${HAVE_LIBV4L_TRUE}" && test -z "${HAVE_LIBV4L_FALSE}"; then
26474  as_fn_error $? "conditional \"HAVE_LIBV4L\" was never defined.
26475Usually this means the macro was only invoked conditionally." "$LINENO" 5
26476fi
26477if test -z "${WITH_DIRECTSHOW_TRUE}" && test -z "${WITH_DIRECTSHOW_FALSE}"; then
26478  as_fn_error $? "conditional \"WITH_DIRECTSHOW\" was never defined.
26479Usually this means the macro was only invoked conditionally." "$LINENO" 5
26480fi
26481if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
26482  as_fn_error $? "conditional \"HAVE_X\" was never defined.
26483Usually this means the macro was only invoked conditionally." "$LINENO" 5
26484fi
26485if test -z "${HAVE_XSHM_TRUE}" && test -z "${HAVE_XSHM_FALSE}"; then
26486  as_fn_error $? "conditional \"HAVE_XSHM\" was never defined.
26487Usually this means the macro was only invoked conditionally." "$LINENO" 5
26488fi
26489if test -z "${HAVE_XV_TRUE}" && test -z "${HAVE_XV_FALSE}"; then
26490  as_fn_error $? "conditional \"HAVE_XV\" was never defined.
26491Usually this means the macro was only invoked conditionally." "$LINENO" 5
26492fi
26493if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
26494  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
26495Usually this means the macro was only invoked conditionally." "$LINENO" 5
26496fi
26497if test -z "${HAVE_JPEG_TRUE}" && test -z "${HAVE_JPEG_FALSE}"; then
26498  as_fn_error $? "conditional \"HAVE_JPEG\" was never defined.
26499Usually this means the macro was only invoked conditionally." "$LINENO" 5
26500fi
26501if test -z "${HAVE_MAGICK_TRUE}" && test -z "${HAVE_MAGICK_FALSE}"; then
26502  as_fn_error $? "conditional \"HAVE_MAGICK\" was never defined.
26503Usually this means the macro was only invoked conditionally." "$LINENO" 5
26504fi
26505if test -z "${HAVE_NPAPI_TRUE}" && test -z "${HAVE_NPAPI_FALSE}"; then
26506  as_fn_error $? "conditional \"HAVE_NPAPI\" was never defined.
26507Usually this means the macro was only invoked conditionally." "$LINENO" 5
26508fi
26509if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
26510  as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
26511Usually this means the macro was only invoked conditionally." "$LINENO" 5
26512fi
26513if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
26514  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
26515Usually this means the macro was only invoked conditionally." "$LINENO" 5
26516fi
26517if test -z "${HAVE_PYGTK2_TRUE}" && test -z "${HAVE_PYGTK2_FALSE}"; then
26518  as_fn_error $? "conditional \"HAVE_PYGTK2\" was never defined.
26519Usually this means the macro was only invoked conditionally." "$LINENO" 5
26520fi
26521if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
26522  as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
26523Usually this means the macro was only invoked conditionally." "$LINENO" 5
26524fi
26525if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
26526  as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
26527Usually this means the macro was only invoked conditionally." "$LINENO" 5
26528fi
26529if test -z "${HAVE_QT_TRUE}" && test -z "${HAVE_QT_FALSE}"; then
26530  as_fn_error $? "conditional \"HAVE_QT\" was never defined.
26531Usually this means the macro was only invoked conditionally." "$LINENO" 5
26532fi
26533if test -z "${HAVE_JAVAH_TRUE}" && test -z "${HAVE_JAVAH_FALSE}"; then
26534  as_fn_error $? "conditional \"HAVE_JAVAH\" was never defined.
26535Usually this means the macro was only invoked conditionally." "$LINENO" 5
26536fi
26537if test -z "${HAVE_JAVA_UNIT_TRUE}" && test -z "${HAVE_JAVA_UNIT_FALSE}"; then
26538  as_fn_error $? "conditional \"HAVE_JAVA_UNIT\" was never defined.
26539Usually this means the macro was only invoked conditionally." "$LINENO" 5
26540fi
26541if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
26542  as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
26543Usually this means the macro was only invoked conditionally." "$LINENO" 5
26544fi
26545
26546: "${CONFIG_STATUS=./config.status}"
26547ac_write_fail=0
26548ac_clean_files_save=$ac_clean_files
26549ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26550{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26551$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26552as_write_fail=0
26553cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26554#! $SHELL
26555# Generated by $as_me.
26556# Run this file to recreate the current configuration.
26557# Compiler output produced by configure, useful for debugging
26558# configure, is in config.log if it exists.
26559
26560debug=false
26561ac_cs_recheck=false
26562ac_cs_silent=false
26563
26564SHELL=\${CONFIG_SHELL-$SHELL}
26565export SHELL
26566_ASEOF
26567cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26568## -------------------- ##
26569## M4sh Initialization. ##
26570## -------------------- ##
26571
26572# Be more Bourne compatible
26573DUALCASE=1; export DUALCASE # for MKS sh
26574if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26575  emulate sh
26576  NULLCMD=:
26577  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26578  # is contrary to our usage.  Disable this feature.
26579  alias -g '${1+"$@"}'='"$@"'
26580  setopt NO_GLOB_SUBST
26581else
26582  case `(set -o) 2>/dev/null` in #(
26583  *posix*) :
26584    set -o posix ;; #(
26585  *) :
26586     ;;
26587esac
26588fi
26589
26590
26591as_nl='
26592'
26593export as_nl
26594# Printing a long string crashes Solaris 7 /usr/bin/printf.
26595as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26596as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26597as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26598# Prefer a ksh shell builtin over an external printf program on Solaris,
26599# but without wasting forks for bash or zsh.
26600if test -z "$BASH_VERSION$ZSH_VERSION" \
26601    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26602  as_echo='print -r --'
26603  as_echo_n='print -rn --'
26604elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26605  as_echo='printf %s\n'
26606  as_echo_n='printf %s'
26607else
26608  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26609    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26610    as_echo_n='/usr/ucb/echo -n'
26611  else
26612    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26613    as_echo_n_body='eval
26614      arg=$1;
26615      case $arg in #(
26616      *"$as_nl"*)
26617	expr "X$arg" : "X\\(.*\\)$as_nl";
26618	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26619      esac;
26620      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26621    '
26622    export as_echo_n_body
26623    as_echo_n='sh -c $as_echo_n_body as_echo'
26624  fi
26625  export as_echo_body
26626  as_echo='sh -c $as_echo_body as_echo'
26627fi
26628
26629# The user is always right.
26630if test "${PATH_SEPARATOR+set}" != set; then
26631  PATH_SEPARATOR=:
26632  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26633    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26634      PATH_SEPARATOR=';'
26635  }
26636fi
26637
26638
26639# IFS
26640# We need space, tab and new line, in precisely that order.  Quoting is
26641# there to prevent editors from complaining about space-tab.
26642# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26643# splitting by setting IFS to empty value.)
26644IFS=" ""	$as_nl"
26645
26646# Find who we are.  Look in the path if we contain no directory separator.
26647as_myself=
26648case $0 in #((
26649  *[\\/]* ) as_myself=$0 ;;
26650  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26651for as_dir in $PATH
26652do
26653  IFS=$as_save_IFS
26654  test -z "$as_dir" && as_dir=.
26655    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26656  done
26657IFS=$as_save_IFS
26658
26659     ;;
26660esac
26661# We did not find ourselves, most probably we were run as `sh COMMAND'
26662# in which case we are not to be found in the path.
26663if test "x$as_myself" = x; then
26664  as_myself=$0
26665fi
26666if test ! -f "$as_myself"; then
26667  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26668  exit 1
26669fi
26670
26671# Unset variables that we do not need and which cause bugs (e.g. in
26672# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26673# suppresses any "Segmentation fault" message there.  '((' could
26674# trigger a bug in pdksh 5.2.14.
26675for as_var in BASH_ENV ENV MAIL MAILPATH
26676do eval test x\${$as_var+set} = xset \
26677  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26678done
26679PS1='$ '
26680PS2='> '
26681PS4='+ '
26682
26683# NLS nuisances.
26684LC_ALL=C
26685export LC_ALL
26686LANGUAGE=C
26687export LANGUAGE
26688
26689# CDPATH.
26690(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26691
26692
26693# as_fn_error STATUS ERROR [LINENO LOG_FD]
26694# ----------------------------------------
26695# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26696# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26697# script with STATUS, using 1 if that was 0.
26698as_fn_error ()
26699{
26700  as_status=$1; test $as_status -eq 0 && as_status=1
26701  if test "$4"; then
26702    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26703    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26704  fi
26705  $as_echo "$as_me: error: $2" >&2
26706  as_fn_exit $as_status
26707} # as_fn_error
26708
26709
26710# as_fn_set_status STATUS
26711# -----------------------
26712# Set $? to STATUS, without forking.
26713as_fn_set_status ()
26714{
26715  return $1
26716} # as_fn_set_status
26717
26718# as_fn_exit STATUS
26719# -----------------
26720# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26721as_fn_exit ()
26722{
26723  set +e
26724  as_fn_set_status $1
26725  exit $1
26726} # as_fn_exit
26727
26728# as_fn_unset VAR
26729# ---------------
26730# Portably unset VAR.
26731as_fn_unset ()
26732{
26733  { eval $1=; unset $1;}
26734}
26735as_unset=as_fn_unset
26736# as_fn_append VAR VALUE
26737# ----------------------
26738# Append the text in VALUE to the end of the definition contained in VAR. Take
26739# advantage of any shell optimizations that allow amortized linear growth over
26740# repeated appends, instead of the typical quadratic growth present in naive
26741# implementations.
26742if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26743  eval 'as_fn_append ()
26744  {
26745    eval $1+=\$2
26746  }'
26747else
26748  as_fn_append ()
26749  {
26750    eval $1=\$$1\$2
26751  }
26752fi # as_fn_append
26753
26754# as_fn_arith ARG...
26755# ------------------
26756# Perform arithmetic evaluation on the ARGs, and store the result in the
26757# global $as_val. Take advantage of shells that can avoid forks. The arguments
26758# must be portable across $(()) and expr.
26759if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26760  eval 'as_fn_arith ()
26761  {
26762    as_val=$(( $* ))
26763  }'
26764else
26765  as_fn_arith ()
26766  {
26767    as_val=`expr "$@" || test $? -eq 1`
26768  }
26769fi # as_fn_arith
26770
26771
26772if expr a : '\(a\)' >/dev/null 2>&1 &&
26773   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26774  as_expr=expr
26775else
26776  as_expr=false
26777fi
26778
26779if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26780  as_basename=basename
26781else
26782  as_basename=false
26783fi
26784
26785if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26786  as_dirname=dirname
26787else
26788  as_dirname=false
26789fi
26790
26791as_me=`$as_basename -- "$0" ||
26792$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26793	 X"$0" : 'X\(//\)$' \| \
26794	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26795$as_echo X/"$0" |
26796    sed '/^.*\/\([^/][^/]*\)\/*$/{
26797	    s//\1/
26798	    q
26799	  }
26800	  /^X\/\(\/\/\)$/{
26801	    s//\1/
26802	    q
26803	  }
26804	  /^X\/\(\/\).*/{
26805	    s//\1/
26806	    q
26807	  }
26808	  s/.*/./; q'`
26809
26810# Avoid depending upon Character Ranges.
26811as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26812as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26813as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26814as_cr_digits='0123456789'
26815as_cr_alnum=$as_cr_Letters$as_cr_digits
26816
26817ECHO_C= ECHO_N= ECHO_T=
26818case `echo -n x` in #(((((
26819-n*)
26820  case `echo 'xy\c'` in
26821  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
26822  xy)  ECHO_C='\c';;
26823  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26824       ECHO_T='	';;
26825  esac;;
26826*)
26827  ECHO_N='-n';;
26828esac
26829
26830rm -f conf$$ conf$$.exe conf$$.file
26831if test -d conf$$.dir; then
26832  rm -f conf$$.dir/conf$$.file
26833else
26834  rm -f conf$$.dir
26835  mkdir conf$$.dir 2>/dev/null
26836fi
26837if (echo >conf$$.file) 2>/dev/null; then
26838  if ln -s conf$$.file conf$$ 2>/dev/null; then
26839    as_ln_s='ln -s'
26840    # ... but there are two gotchas:
26841    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26842    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26843    # In both cases, we have to default to `cp -pR'.
26844    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26845      as_ln_s='cp -pR'
26846  elif ln conf$$.file conf$$ 2>/dev/null; then
26847    as_ln_s=ln
26848  else
26849    as_ln_s='cp -pR'
26850  fi
26851else
26852  as_ln_s='cp -pR'
26853fi
26854rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26855rmdir conf$$.dir 2>/dev/null
26856
26857
26858# as_fn_mkdir_p
26859# -------------
26860# Create "$as_dir" as a directory, including parents if necessary.
26861as_fn_mkdir_p ()
26862{
26863
26864  case $as_dir in #(
26865  -*) as_dir=./$as_dir;;
26866  esac
26867  test -d "$as_dir" || eval $as_mkdir_p || {
26868    as_dirs=
26869    while :; do
26870      case $as_dir in #(
26871      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26872      *) as_qdir=$as_dir;;
26873      esac
26874      as_dirs="'$as_qdir' $as_dirs"
26875      as_dir=`$as_dirname -- "$as_dir" ||
26876$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26877	 X"$as_dir" : 'X\(//\)[^/]' \| \
26878	 X"$as_dir" : 'X\(//\)$' \| \
26879	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26880$as_echo X"$as_dir" |
26881    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26882	    s//\1/
26883	    q
26884	  }
26885	  /^X\(\/\/\)[^/].*/{
26886	    s//\1/
26887	    q
26888	  }
26889	  /^X\(\/\/\)$/{
26890	    s//\1/
26891	    q
26892	  }
26893	  /^X\(\/\).*/{
26894	    s//\1/
26895	    q
26896	  }
26897	  s/.*/./; q'`
26898      test -d "$as_dir" && break
26899    done
26900    test -z "$as_dirs" || eval "mkdir $as_dirs"
26901  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26902
26903
26904} # as_fn_mkdir_p
26905if mkdir -p . 2>/dev/null; then
26906  as_mkdir_p='mkdir -p "$as_dir"'
26907else
26908  test -d ./-p && rmdir ./-p
26909  as_mkdir_p=false
26910fi
26911
26912
26913# as_fn_executable_p FILE
26914# -----------------------
26915# Test if FILE is an executable regular file.
26916as_fn_executable_p ()
26917{
26918  test -f "$1" && test -x "$1"
26919} # as_fn_executable_p
26920as_test_x='test -x'
26921as_executable_p=as_fn_executable_p
26922
26923# Sed expression to map a string onto a valid CPP name.
26924as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26925
26926# Sed expression to map a string onto a valid variable name.
26927as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26928
26929
26930exec 6>&1
26931## ----------------------------------- ##
26932## Main body of $CONFIG_STATUS script. ##
26933## ----------------------------------- ##
26934_ASEOF
26935test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26936
26937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26938# Save the log message, to keep $0 and so on meaningful, and to
26939# report actual input values of CONFIG_FILES etc. instead of their
26940# values after options handling.
26941ac_log="
26942This file was extended by zbar $as_me 0.23.90, which was
26943generated by GNU Autoconf 2.69.  Invocation command line was
26944
26945  CONFIG_FILES    = $CONFIG_FILES
26946  CONFIG_HEADERS  = $CONFIG_HEADERS
26947  CONFIG_LINKS    = $CONFIG_LINKS
26948  CONFIG_COMMANDS = $CONFIG_COMMANDS
26949  $ $0 $@
26950
26951on `(hostname || uname -n) 2>/dev/null | sed 1q`
26952"
26953
26954_ACEOF
26955
26956case $ac_config_files in *"
26957"*) set x $ac_config_files; shift; ac_config_files=$*;;
26958esac
26959
26960case $ac_config_headers in *"
26961"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26962esac
26963
26964
26965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26966# Files that config.status was made for.
26967config_files="$ac_config_files"
26968config_headers="$ac_config_headers"
26969config_commands="$ac_config_commands"
26970
26971_ACEOF
26972
26973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26974ac_cs_usage="\
26975\`$as_me' instantiates files and other configuration actions
26976from templates according to the current configuration.  Unless the files
26977and actions are specified as TAGs, all are instantiated by default.
26978
26979Usage: $0 [OPTION]... [TAG]...
26980
26981  -h, --help       print this help, then exit
26982  -V, --version    print version number and configuration settings, then exit
26983      --config     print configuration, then exit
26984  -q, --quiet, --silent
26985                   do not print progress messages
26986  -d, --debug      don't remove temporary files
26987      --recheck    update $as_me by reconfiguring in the same conditions
26988      --file=FILE[:TEMPLATE]
26989                   instantiate the configuration file FILE
26990      --header=FILE[:TEMPLATE]
26991                   instantiate the configuration header FILE
26992
26993Configuration files:
26994$config_files
26995
26996Configuration headers:
26997$config_headers
26998
26999Configuration commands:
27000$config_commands
27001
27002Report bugs to <mchehab+huawei@kernel.org>."
27003
27004_ACEOF
27005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27006ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27007ac_cs_version="\\
27008zbar config.status 0.23.90
27009configured by $0, generated by GNU Autoconf 2.69,
27010  with options \\"\$ac_cs_config\\"
27011
27012Copyright (C) 2012 Free Software Foundation, Inc.
27013This config.status script is free software; the Free Software Foundation
27014gives unlimited permission to copy, distribute and modify it."
27015
27016ac_pwd='$ac_pwd'
27017srcdir='$srcdir'
27018INSTALL='$INSTALL'
27019MKDIR_P='$MKDIR_P'
27020AWK='$AWK'
27021test -n "\$AWK" || AWK=awk
27022_ACEOF
27023
27024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27025# The default lists apply if the user does not specify any file.
27026ac_need_defaults=:
27027while test $# != 0
27028do
27029  case $1 in
27030  --*=?*)
27031    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27032    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27033    ac_shift=:
27034    ;;
27035  --*=)
27036    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27037    ac_optarg=
27038    ac_shift=:
27039    ;;
27040  *)
27041    ac_option=$1
27042    ac_optarg=$2
27043    ac_shift=shift
27044    ;;
27045  esac
27046
27047  case $ac_option in
27048  # Handling of the options.
27049  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27050    ac_cs_recheck=: ;;
27051  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27052    $as_echo "$ac_cs_version"; exit ;;
27053  --config | --confi | --conf | --con | --co | --c )
27054    $as_echo "$ac_cs_config"; exit ;;
27055  --debug | --debu | --deb | --de | --d | -d )
27056    debug=: ;;
27057  --file | --fil | --fi | --f )
27058    $ac_shift
27059    case $ac_optarg in
27060    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27061    '') as_fn_error $? "missing file argument" ;;
27062    esac
27063    as_fn_append CONFIG_FILES " '$ac_optarg'"
27064    ac_need_defaults=false;;
27065  --header | --heade | --head | --hea )
27066    $ac_shift
27067    case $ac_optarg in
27068    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27069    esac
27070    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27071    ac_need_defaults=false;;
27072  --he | --h)
27073    # Conflict between --help and --header
27074    as_fn_error $? "ambiguous option: \`$1'
27075Try \`$0 --help' for more information.";;
27076  --help | --hel | -h )
27077    $as_echo "$ac_cs_usage"; exit ;;
27078  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27079  | -silent | --silent | --silen | --sile | --sil | --si | --s)
27080    ac_cs_silent=: ;;
27081
27082  # This is an error.
27083  -*) as_fn_error $? "unrecognized option: \`$1'
27084Try \`$0 --help' for more information." ;;
27085
27086  *) as_fn_append ac_config_targets " $1"
27087     ac_need_defaults=false ;;
27088
27089  esac
27090  shift
27091done
27092
27093ac_configure_extra_args=
27094
27095if $ac_cs_silent; then
27096  exec 6>/dev/null
27097  ac_configure_extra_args="$ac_configure_extra_args --silent"
27098fi
27099
27100_ACEOF
27101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27102if \$ac_cs_recheck; then
27103  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27104  shift
27105  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27106  CONFIG_SHELL='$SHELL'
27107  export CONFIG_SHELL
27108  exec "\$@"
27109fi
27110
27111_ACEOF
27112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27113exec 5>>config.log
27114{
27115  echo
27116  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27117## Running $as_me. ##
27118_ASBOX
27119  $as_echo "$ac_log"
27120} >&5
27121
27122_ACEOF
27123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27124#
27125# INIT-COMMANDS
27126#
27127AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27128
27129
27130# The HP-UX ksh and POSIX shell print the target directory to stdout
27131# if CDPATH is set.
27132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27133
27134sed_quote_subst='$sed_quote_subst'
27135double_quote_subst='$double_quote_subst'
27136delay_variable_subst='$delay_variable_subst'
27137macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27138macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27139AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27140DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27141OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27142enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27143enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27144pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27145enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27146shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27147SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27148ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27149PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27150host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27151host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27152host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27153build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27154build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27155build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27156SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27157Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27158GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27159EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27160FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27161LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27162NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27163LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27164max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27165ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27166exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27167lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27168lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27169lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27170lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27171lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27172reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27173reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27174deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27175file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27176file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27177want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27178sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27179AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27180AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27181archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27182STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27183RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27184old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27185old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27186old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27187lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27188CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27189CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27190compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27191GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27192lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27193lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27194lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27195lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27196lt_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"`'
27197lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27198nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27199lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27200lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27201objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27202MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27203lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27204lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27205lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27206lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27207lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27208need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27209MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27210DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27211NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27212LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27213OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27214OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27215libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27216shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27217extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27218archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27219enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27220export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27221whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27222compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27223old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27224old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27225archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27226archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27227module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27228module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27229with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27230allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27231no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27232hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27233hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27234hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27235hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27236hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27237hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27238hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27239inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27240link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27241always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27242export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27243exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27244include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27245prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27246postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27247file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27248variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27249need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27250need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27251version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27252runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27253shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27254shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27255libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27256library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27257soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27258install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27259postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27260postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27261finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27262finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27263hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27264sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27265configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27266configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27267hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27268enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27269enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27270enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27271old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27272striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27273compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27274predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27275postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27276predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27277postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27278compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27279LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
27280LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27281reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
27282reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27283reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
27284reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27285old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27286old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27287compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
27288compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27289GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
27290GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27291lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
27292lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27293lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
27294lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27295lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
27296lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27297lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
27298lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27299lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
27300lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27301archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
27302archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27303enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
27304enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27305export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27306export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27307whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27308whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27309compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
27310compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27311old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
27312old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27313old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
27314old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27315archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27316archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27317archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27318archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27319module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
27320module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27321module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27322module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27323with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
27324with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27325allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27326allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27327no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27328no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27329hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27330hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27331hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
27332hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27333hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
27334hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27335hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
27336hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27337hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
27338hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27339hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
27340hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27341hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
27342hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27343inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
27344inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27345link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
27346link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27347always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
27348always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27349export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
27350export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27351exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27352exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27353include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27354include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27355prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27356prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27357postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27358postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27359file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
27360file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27361hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
27362hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27363compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
27364compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27365predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
27366predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27367postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
27368postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27369predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
27370predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27371postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
27372postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27373compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
27374compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27375
27376LTCC='$LTCC'
27377LTCFLAGS='$LTCFLAGS'
27378compiler='$compiler_DEFAULT'
27379
27380# A function that is used when there is no print builtin or printf.
27381func_fallback_echo ()
27382{
27383  eval 'cat <<_LTECHO_EOF
27384\$1
27385_LTECHO_EOF'
27386}
27387
27388# Quote evaled strings.
27389for var in AS \
27390DLLTOOL \
27391OBJDUMP \
27392SHELL \
27393ECHO \
27394PATH_SEPARATOR \
27395SED \
27396GREP \
27397EGREP \
27398FGREP \
27399LD \
27400NM \
27401LN_S \
27402lt_SP2NL \
27403lt_NL2SP \
27404reload_flag \
27405deplibs_check_method \
27406file_magic_cmd \
27407file_magic_glob \
27408want_nocaseglob \
27409sharedlib_from_linklib_cmd \
27410AR \
27411AR_FLAGS \
27412archiver_list_spec \
27413STRIP \
27414RANLIB \
27415CC \
27416CFLAGS \
27417compiler \
27418lt_cv_sys_global_symbol_pipe \
27419lt_cv_sys_global_symbol_to_cdecl \
27420lt_cv_sys_global_symbol_to_import \
27421lt_cv_sys_global_symbol_to_c_name_address \
27422lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27423lt_cv_nm_interface \
27424nm_file_list_spec \
27425lt_cv_truncate_bin \
27426lt_prog_compiler_no_builtin_flag \
27427lt_prog_compiler_pic \
27428lt_prog_compiler_wl \
27429lt_prog_compiler_static \
27430lt_cv_prog_compiler_c_o \
27431need_locks \
27432MANIFEST_TOOL \
27433DSYMUTIL \
27434NMEDIT \
27435LIPO \
27436OTOOL \
27437OTOOL64 \
27438shrext_cmds \
27439export_dynamic_flag_spec \
27440whole_archive_flag_spec \
27441compiler_needs_object \
27442with_gnu_ld \
27443allow_undefined_flag \
27444no_undefined_flag \
27445hardcode_libdir_flag_spec \
27446hardcode_libdir_separator \
27447exclude_expsyms \
27448include_expsyms \
27449file_list_spec \
27450variables_saved_for_relink \
27451libname_spec \
27452library_names_spec \
27453soname_spec \
27454install_override_mode \
27455finish_eval \
27456old_striplib \
27457striplib \
27458compiler_lib_search_dirs \
27459predep_objects \
27460postdep_objects \
27461predeps \
27462postdeps \
27463compiler_lib_search_path \
27464LD_RC \
27465LD_CXX \
27466reload_flag_RC \
27467reload_flag_CXX \
27468compiler_RC \
27469compiler_CXX \
27470lt_prog_compiler_no_builtin_flag_RC \
27471lt_prog_compiler_no_builtin_flag_CXX \
27472lt_prog_compiler_pic_RC \
27473lt_prog_compiler_pic_CXX \
27474lt_prog_compiler_wl_RC \
27475lt_prog_compiler_wl_CXX \
27476lt_prog_compiler_static_RC \
27477lt_prog_compiler_static_CXX \
27478lt_cv_prog_compiler_c_o_RC \
27479lt_cv_prog_compiler_c_o_CXX \
27480export_dynamic_flag_spec_RC \
27481export_dynamic_flag_spec_CXX \
27482whole_archive_flag_spec_RC \
27483whole_archive_flag_spec_CXX \
27484compiler_needs_object_RC \
27485compiler_needs_object_CXX \
27486with_gnu_ld_RC \
27487with_gnu_ld_CXX \
27488allow_undefined_flag_RC \
27489allow_undefined_flag_CXX \
27490no_undefined_flag_RC \
27491no_undefined_flag_CXX \
27492hardcode_libdir_flag_spec_RC \
27493hardcode_libdir_flag_spec_CXX \
27494hardcode_libdir_separator_RC \
27495hardcode_libdir_separator_CXX \
27496exclude_expsyms_RC \
27497exclude_expsyms_CXX \
27498include_expsyms_RC \
27499include_expsyms_CXX \
27500file_list_spec_RC \
27501file_list_spec_CXX \
27502compiler_lib_search_dirs_RC \
27503compiler_lib_search_dirs_CXX \
27504predep_objects_RC \
27505predep_objects_CXX \
27506postdep_objects_RC \
27507postdep_objects_CXX \
27508predeps_RC \
27509predeps_CXX \
27510postdeps_RC \
27511postdeps_CXX \
27512compiler_lib_search_path_RC \
27513compiler_lib_search_path_CXX; do
27514    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27515    *[\\\\\\\`\\"\\\$]*)
27516      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27517      ;;
27518    *)
27519      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27520      ;;
27521    esac
27522done
27523
27524# Double-quote double-evaled strings.
27525for var in reload_cmds \
27526old_postinstall_cmds \
27527old_postuninstall_cmds \
27528old_archive_cmds \
27529extract_expsyms_cmds \
27530old_archive_from_new_cmds \
27531old_archive_from_expsyms_cmds \
27532archive_cmds \
27533archive_expsym_cmds \
27534module_cmds \
27535module_expsym_cmds \
27536export_symbols_cmds \
27537prelink_cmds \
27538postlink_cmds \
27539postinstall_cmds \
27540postuninstall_cmds \
27541finish_cmds \
27542sys_lib_search_path_spec \
27543configure_time_dlsearch_path \
27544configure_time_lt_sys_library_path \
27545reload_cmds_RC \
27546reload_cmds_CXX \
27547old_archive_cmds_RC \
27548old_archive_cmds_CXX \
27549old_archive_from_new_cmds_RC \
27550old_archive_from_new_cmds_CXX \
27551old_archive_from_expsyms_cmds_RC \
27552old_archive_from_expsyms_cmds_CXX \
27553archive_cmds_RC \
27554archive_cmds_CXX \
27555archive_expsym_cmds_RC \
27556archive_expsym_cmds_CXX \
27557module_cmds_RC \
27558module_cmds_CXX \
27559module_expsym_cmds_RC \
27560module_expsym_cmds_CXX \
27561export_symbols_cmds_RC \
27562export_symbols_cmds_CXX \
27563prelink_cmds_RC \
27564prelink_cmds_CXX \
27565postlink_cmds_RC \
27566postlink_cmds_CXX; do
27567    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27568    *[\\\\\\\`\\"\\\$]*)
27569      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27570      ;;
27571    *)
27572      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27573      ;;
27574    esac
27575done
27576
27577ac_aux_dir='$ac_aux_dir'
27578
27579# See if we are running on zsh, and set the options that allow our
27580# commands through without removal of \ escapes INIT.
27581if test -n "\${ZSH_VERSION+set}"; then
27582   setopt NO_GLOB_SUBST
27583fi
27584
27585
27586    PACKAGE='$PACKAGE'
27587    VERSION='$VERSION'
27588    RM='$RM'
27589    ofile='$ofile'
27590
27591
27592
27593
27594
27595
27596
27597# Capture the value of obsolete ALL_LINGUAS because we need it to compute
27598    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
27599    OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
27600    # Capture the value of LINGUAS because we need it to compute CATALOGS.
27601    LINGUAS="${LINGUAS-%UNSET%}"
27602
27603VERSION="$VERSION"
27604
27605RELDATE="$RELDATE"
27606
27607
27608_ACEOF
27609
27610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27611
27612# Handling of arguments.
27613for ac_config_target in $ac_config_targets
27614do
27615  case $ac_config_target in
27616    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
27617    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27618    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27619    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
27620    "zbar-qt.pc") CONFIG_FILES="$CONFIG_FILES zbar-qt.pc:"${qt_pkgconfig_file}.in"" ;;
27621    "doc/version.xml") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/version.xml" ;;
27622    "doc/reldate.xml") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/reldate.xml" ;;
27623    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27624    "gtk/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
27625    "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
27626    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27627    "zbar/Makefile") CONFIG_FILES="$CONFIG_FILES zbar/Makefile" ;;
27628    "zbar.pc") CONFIG_FILES="$CONFIG_FILES zbar.pc" ;;
27629    "zbar-gtk.pc") CONFIG_FILES="$CONFIG_FILES zbar-gtk.pc" ;;
27630    "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;;
27631    "test/test_examples.sh") CONFIG_FILES="$CONFIG_FILES test/test_examples.sh" ;;
27632    "test/check_dbus.sh") CONFIG_FILES="$CONFIG_FILES test/check_dbus.sh" ;;
27633
27634  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27635  esac
27636done
27637
27638
27639# If the user did not use the arguments to specify the items to instantiate,
27640# then the envvar interface is used.  Set only those that are not.
27641# We use the long form for the default assignment because of an extremely
27642# bizarre bug on SunOS 4.1.3.
27643if $ac_need_defaults; then
27644  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27645  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27646  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27647fi
27648
27649# Have a temporary directory for convenience.  Make it in the build tree
27650# simply because there is no reason against having it here, and in addition,
27651# creating and moving files from /tmp can sometimes cause problems.
27652# Hook for its removal unless debugging.
27653# Note that there is a small window in which the directory will not be cleaned:
27654# after its creation but before its name has been assigned to `$tmp'.
27655$debug ||
27656{
27657  tmp= ac_tmp=
27658  trap 'exit_status=$?
27659  : "${ac_tmp:=$tmp}"
27660  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27661' 0
27662  trap 'as_fn_exit 1' 1 2 13 15
27663}
27664# Create a (secure) tmp directory for tmp files.
27665
27666{
27667  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27668  test -d "$tmp"
27669}  ||
27670{
27671  tmp=./conf$$-$RANDOM
27672  (umask 077 && mkdir "$tmp")
27673} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27674ac_tmp=$tmp
27675
27676# Set up the scripts for CONFIG_FILES section.
27677# No need to generate them if there are no CONFIG_FILES.
27678# This happens for instance with `./config.status config.h'.
27679if test -n "$CONFIG_FILES"; then
27680
27681
27682ac_cr=`echo X | tr X '\015'`
27683# On cygwin, bash can eat \r inside `` if the user requested igncr.
27684# But we know of no other shell where ac_cr would be empty at this
27685# point, so we can use a bashism as a fallback.
27686if test "x$ac_cr" = x; then
27687  eval ac_cr=\$\'\\r\'
27688fi
27689ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27690if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27691  ac_cs_awk_cr='\\r'
27692else
27693  ac_cs_awk_cr=$ac_cr
27694fi
27695
27696echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27697_ACEOF
27698
27699
27700{
27701  echo "cat >conf$$subs.awk <<_ACEOF" &&
27702  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27703  echo "_ACEOF"
27704} >conf$$subs.sh ||
27705  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27706ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27707ac_delim='%!_!# '
27708for ac_last_try in false false false false false :; do
27709  . ./conf$$subs.sh ||
27710    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27711
27712  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27713  if test $ac_delim_n = $ac_delim_num; then
27714    break
27715  elif $ac_last_try; then
27716    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27717  else
27718    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27719  fi
27720done
27721rm -f conf$$subs.sh
27722
27723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27724cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27725_ACEOF
27726sed -n '
27727h
27728s/^/S["/; s/!.*/"]=/
27729p
27730g
27731s/^[^!]*!//
27732:repl
27733t repl
27734s/'"$ac_delim"'$//
27735t delim
27736:nl
27737h
27738s/\(.\{148\}\)..*/\1/
27739t more1
27740s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27741p
27742n
27743b repl
27744:more1
27745s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27746p
27747g
27748s/.\{148\}//
27749t nl
27750:delim
27751h
27752s/\(.\{148\}\)..*/\1/
27753t more2
27754s/["\\]/\\&/g; s/^/"/; s/$/"/
27755p
27756b
27757:more2
27758s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27759p
27760g
27761s/.\{148\}//
27762t delim
27763' <conf$$subs.awk | sed '
27764/^[^""]/{
27765  N
27766  s/\n//
27767}
27768' >>$CONFIG_STATUS || ac_write_fail=1
27769rm -f conf$$subs.awk
27770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27771_ACAWK
27772cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27773  for (key in S) S_is_set[key] = 1
27774  FS = ""
27775
27776}
27777{
27778  line = $ 0
27779  nfields = split(line, field, "@")
27780  substed = 0
27781  len = length(field[1])
27782  for (i = 2; i < nfields; i++) {
27783    key = field[i]
27784    keylen = length(key)
27785    if (S_is_set[key]) {
27786      value = S[key]
27787      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27788      len += length(value) + length(field[++i])
27789      substed = 1
27790    } else
27791      len += 1 + keylen
27792  }
27793
27794  print line
27795}
27796
27797_ACAWK
27798_ACEOF
27799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27800if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27801  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27802else
27803  cat
27804fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27805  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27806_ACEOF
27807
27808# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27809# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27810# trailing colons and then remove the whole line if VPATH becomes empty
27811# (actually we leave an empty line to preserve line numbers).
27812if test "x$srcdir" = x.; then
27813  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
27814h
27815s///
27816s/^/:/
27817s/[	 ]*$/:/
27818s/:\$(srcdir):/:/g
27819s/:\${srcdir}:/:/g
27820s/:@srcdir@:/:/g
27821s/^:*//
27822s/:*$//
27823x
27824s/\(=[	 ]*\).*/\1/
27825G
27826s/\n//
27827s/^[^=]*=[	 ]*$//
27828}'
27829fi
27830
27831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27832fi # test -n "$CONFIG_FILES"
27833
27834# Set up the scripts for CONFIG_HEADERS section.
27835# No need to generate them if there are no CONFIG_HEADERS.
27836# This happens for instance with `./config.status Makefile'.
27837if test -n "$CONFIG_HEADERS"; then
27838cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27839BEGIN {
27840_ACEOF
27841
27842# Transform confdefs.h into an awk script `defines.awk', embedded as
27843# here-document in config.status, that substitutes the proper values into
27844# config.h.in to produce config.h.
27845
27846# Create a delimiter string that does not exist in confdefs.h, to ease
27847# handling of long lines.
27848ac_delim='%!_!# '
27849for ac_last_try in false false :; do
27850  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27851  if test -z "$ac_tt"; then
27852    break
27853  elif $ac_last_try; then
27854    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27855  else
27856    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27857  fi
27858done
27859
27860# For the awk script, D is an array of macro values keyed by name,
27861# likewise P contains macro parameters if any.  Preserve backslash
27862# newline sequences.
27863
27864ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27865sed -n '
27866s/.\{148\}/&'"$ac_delim"'/g
27867t rset
27868:rset
27869s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
27870t def
27871d
27872:def
27873s/\\$//
27874t bsnl
27875s/["\\]/\\&/g
27876s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27877D["\1"]=" \3"/p
27878s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
27879d
27880:bsnl
27881s/["\\]/\\&/g
27882s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27883D["\1"]=" \3\\\\\\n"\\/p
27884t cont
27885s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27886t cont
27887d
27888:cont
27889n
27890s/.\{148\}/&'"$ac_delim"'/g
27891t clear
27892:clear
27893s/\\$//
27894t bsnlc
27895s/["\\]/\\&/g; s/^/"/; s/$/"/p
27896d
27897:bsnlc
27898s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27899b cont
27900' <confdefs.h | sed '
27901s/'"$ac_delim"'/"\\\
27902"/g' >>$CONFIG_STATUS || ac_write_fail=1
27903
27904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27905  for (key in D) D_is_set[key] = 1
27906  FS = ""
27907}
27908/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27909  line = \$ 0
27910  split(line, arg, " ")
27911  if (arg[1] == "#") {
27912    defundef = arg[2]
27913    mac1 = arg[3]
27914  } else {
27915    defundef = substr(arg[1], 2)
27916    mac1 = arg[2]
27917  }
27918  split(mac1, mac2, "(") #)
27919  macro = mac2[1]
27920  prefix = substr(line, 1, index(line, defundef) - 1)
27921  if (D_is_set[macro]) {
27922    # Preserve the white space surrounding the "#".
27923    print prefix "define", macro P[macro] D[macro]
27924    next
27925  } else {
27926    # Replace #undef with comments.  This is necessary, for example,
27927    # in the case of _POSIX_SOURCE, which is predefined and required
27928    # on some systems where configure will not decide to define it.
27929    if (defundef == "undef") {
27930      print "/*", prefix defundef, macro, "*/"
27931      next
27932    }
27933  }
27934}
27935{ print }
27936_ACAWK
27937_ACEOF
27938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27939  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27940fi # test -n "$CONFIG_HEADERS"
27941
27942
27943eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27944shift
27945for ac_tag
27946do
27947  case $ac_tag in
27948  :[FHLC]) ac_mode=$ac_tag; continue;;
27949  esac
27950  case $ac_mode$ac_tag in
27951  :[FHL]*:*);;
27952  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27953  :[FH]-) ac_tag=-:-;;
27954  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27955  esac
27956  ac_save_IFS=$IFS
27957  IFS=:
27958  set x $ac_tag
27959  IFS=$ac_save_IFS
27960  shift
27961  ac_file=$1
27962  shift
27963
27964  case $ac_mode in
27965  :L) ac_source=$1;;
27966  :[FH])
27967    ac_file_inputs=
27968    for ac_f
27969    do
27970      case $ac_f in
27971      -) ac_f="$ac_tmp/stdin";;
27972      *) # Look for the file first in the build tree, then in the source tree
27973	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
27974	 # because $ac_f cannot contain `:'.
27975	 test -f "$ac_f" ||
27976	   case $ac_f in
27977	   [\\/$]*) false;;
27978	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27979	   esac ||
27980	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27981      esac
27982      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27983      as_fn_append ac_file_inputs " '$ac_f'"
27984    done
27985
27986    # Let's still pretend it is `configure' which instantiates (i.e., don't
27987    # use $as_me), people would be surprised to read:
27988    #    /* config.h.  Generated by config.status.  */
27989    configure_input='Generated from '`
27990	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27991	`' by configure.'
27992    if test x"$ac_file" != x-; then
27993      configure_input="$ac_file.  $configure_input"
27994      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27995$as_echo "$as_me: creating $ac_file" >&6;}
27996    fi
27997    # Neutralize special characters interpreted by sed in replacement strings.
27998    case $configure_input in #(
27999    *\&* | *\|* | *\\* )
28000       ac_sed_conf_input=`$as_echo "$configure_input" |
28001       sed 's/[\\\\&|]/\\\\&/g'`;; #(
28002    *) ac_sed_conf_input=$configure_input;;
28003    esac
28004
28005    case $ac_tag in
28006    *:-:* | *:-) cat >"$ac_tmp/stdin" \
28007      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28008    esac
28009    ;;
28010  esac
28011
28012  ac_dir=`$as_dirname -- "$ac_file" ||
28013$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28014	 X"$ac_file" : 'X\(//\)[^/]' \| \
28015	 X"$ac_file" : 'X\(//\)$' \| \
28016	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28017$as_echo X"$ac_file" |
28018    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28019	    s//\1/
28020	    q
28021	  }
28022	  /^X\(\/\/\)[^/].*/{
28023	    s//\1/
28024	    q
28025	  }
28026	  /^X\(\/\/\)$/{
28027	    s//\1/
28028	    q
28029	  }
28030	  /^X\(\/\).*/{
28031	    s//\1/
28032	    q
28033	  }
28034	  s/.*/./; q'`
28035  as_dir="$ac_dir"; as_fn_mkdir_p
28036  ac_builddir=.
28037
28038case "$ac_dir" in
28039.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28040*)
28041  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28042  # A ".." for each directory in $ac_dir_suffix.
28043  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28044  case $ac_top_builddir_sub in
28045  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28046  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28047  esac ;;
28048esac
28049ac_abs_top_builddir=$ac_pwd
28050ac_abs_builddir=$ac_pwd$ac_dir_suffix
28051# for backward compatibility:
28052ac_top_builddir=$ac_top_build_prefix
28053
28054case $srcdir in
28055  .)  # We are building in place.
28056    ac_srcdir=.
28057    ac_top_srcdir=$ac_top_builddir_sub
28058    ac_abs_top_srcdir=$ac_pwd ;;
28059  [\\/]* | ?:[\\/]* )  # Absolute name.
28060    ac_srcdir=$srcdir$ac_dir_suffix;
28061    ac_top_srcdir=$srcdir
28062    ac_abs_top_srcdir=$srcdir ;;
28063  *) # Relative name.
28064    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28065    ac_top_srcdir=$ac_top_build_prefix$srcdir
28066    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28067esac
28068ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28069
28070
28071  case $ac_mode in
28072  :F)
28073  #
28074  # CONFIG_FILE
28075  #
28076
28077  case $INSTALL in
28078  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28079  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28080  esac
28081  ac_MKDIR_P=$MKDIR_P
28082  case $MKDIR_P in
28083  [\\/$]* | ?:[\\/]* ) ;;
28084  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28085  esac
28086_ACEOF
28087
28088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28089# If the template does not know about datarootdir, expand it.
28090# FIXME: This hack should be removed a few years after 2.60.
28091ac_datarootdir_hack=; ac_datarootdir_seen=
28092ac_sed_dataroot='
28093/datarootdir/ {
28094  p
28095  q
28096}
28097/@datadir@/p
28098/@docdir@/p
28099/@infodir@/p
28100/@localedir@/p
28101/@mandir@/p'
28102case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28103*datarootdir*) ac_datarootdir_seen=yes;;
28104*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28105  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28106$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28107_ACEOF
28108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28109  ac_datarootdir_hack='
28110  s&@datadir@&$datadir&g
28111  s&@docdir@&$docdir&g
28112  s&@infodir@&$infodir&g
28113  s&@localedir@&$localedir&g
28114  s&@mandir@&$mandir&g
28115  s&\\\${datarootdir}&$datarootdir&g' ;;
28116esac
28117_ACEOF
28118
28119# Neutralize VPATH when `$srcdir' = `.'.
28120# Shell code in configure.ac might set extrasub.
28121# FIXME: do we really want to maintain this feature?
28122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28123ac_sed_extra="$ac_vpsub
28124$extrasub
28125_ACEOF
28126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28127:t
28128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28129s|@configure_input@|$ac_sed_conf_input|;t t
28130s&@top_builddir@&$ac_top_builddir_sub&;t t
28131s&@top_build_prefix@&$ac_top_build_prefix&;t t
28132s&@srcdir@&$ac_srcdir&;t t
28133s&@abs_srcdir@&$ac_abs_srcdir&;t t
28134s&@top_srcdir@&$ac_top_srcdir&;t t
28135s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28136s&@builddir@&$ac_builddir&;t t
28137s&@abs_builddir@&$ac_abs_builddir&;t t
28138s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28139s&@INSTALL@&$ac_INSTALL&;t t
28140s&@MKDIR_P@&$ac_MKDIR_P&;t t
28141$ac_datarootdir_hack
28142"
28143eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28144  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28145
28146test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28147  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28148  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
28149      "$ac_tmp/out"`; test -z "$ac_out"; } &&
28150  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28151which seems to be undefined.  Please make sure it is defined" >&5
28152$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28153which seems to be undefined.  Please make sure it is defined" >&2;}
28154
28155  rm -f "$ac_tmp/stdin"
28156  case $ac_file in
28157  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28158  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28159  esac \
28160  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28161 ;;
28162  :H)
28163  #
28164  # CONFIG_HEADER
28165  #
28166  if test x"$ac_file" != x-; then
28167    {
28168      $as_echo "/* $configure_input  */" \
28169      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28170    } >"$ac_tmp/config.h" \
28171      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28172    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28173      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28174$as_echo "$as_me: $ac_file is unchanged" >&6;}
28175    else
28176      rm -f "$ac_file"
28177      mv "$ac_tmp/config.h" "$ac_file" \
28178	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
28179    fi
28180  else
28181    $as_echo "/* $configure_input  */" \
28182      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28183      || as_fn_error $? "could not create -" "$LINENO" 5
28184  fi
28185# Compute "$ac_file"'s index in $config_headers.
28186_am_arg="$ac_file"
28187_am_stamp_count=1
28188for _am_header in $config_headers :; do
28189  case $_am_header in
28190    $_am_arg | $_am_arg:* )
28191      break ;;
28192    * )
28193      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28194  esac
28195done
28196echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28197$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28198	 X"$_am_arg" : 'X\(//\)[^/]' \| \
28199	 X"$_am_arg" : 'X\(//\)$' \| \
28200	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28201$as_echo X"$_am_arg" |
28202    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28203	    s//\1/
28204	    q
28205	  }
28206	  /^X\(\/\/\)[^/].*/{
28207	    s//\1/
28208	    q
28209	  }
28210	  /^X\(\/\/\)$/{
28211	    s//\1/
28212	    q
28213	  }
28214	  /^X\(\/\).*/{
28215	    s//\1/
28216	    q
28217	  }
28218	  s/.*/./; q'`/stamp-h$_am_stamp_count
28219 ;;
28220
28221  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28222$as_echo "$as_me: executing $ac_file commands" >&6;}
28223 ;;
28224  esac
28225
28226
28227  case $ac_file$ac_mode in
28228    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28229  # Older Autoconf quotes --file arguments for eval, but not when files
28230  # are listed without --file.  Let's play safe and only enable the eval
28231  # if we detect the quoting.
28232  # TODO: see whether this extra hack can be removed once we start
28233  # requiring Autoconf 2.70 or later.
28234  case $CONFIG_FILES in #(
28235  *\'*) :
28236    eval set x "$CONFIG_FILES" ;; #(
28237  *) :
28238    set x $CONFIG_FILES ;; #(
28239  *) :
28240     ;;
28241esac
28242  shift
28243  # Used to flag and report bootstrapping failures.
28244  am_rc=0
28245  for am_mf
28246  do
28247    # Strip MF so we end up with the name of the file.
28248    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
28249    # Check whether this is an Automake generated Makefile which includes
28250    # dependency-tracking related rules and includes.
28251    # Grep'ing the whole file directly is not great: AIX grep has a line
28252    # limit of 2048, but all sed's we know have understand at least 4000.
28253    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28254      || continue
28255    am_dirpart=`$as_dirname -- "$am_mf" ||
28256$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28257	 X"$am_mf" : 'X\(//\)[^/]' \| \
28258	 X"$am_mf" : 'X\(//\)$' \| \
28259	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28260$as_echo X"$am_mf" |
28261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28262	    s//\1/
28263	    q
28264	  }
28265	  /^X\(\/\/\)[^/].*/{
28266	    s//\1/
28267	    q
28268	  }
28269	  /^X\(\/\/\)$/{
28270	    s//\1/
28271	    q
28272	  }
28273	  /^X\(\/\).*/{
28274	    s//\1/
28275	    q
28276	  }
28277	  s/.*/./; q'`
28278    am_filepart=`$as_basename -- "$am_mf" ||
28279$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28280	 X"$am_mf" : 'X\(//\)$' \| \
28281	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28282$as_echo X/"$am_mf" |
28283    sed '/^.*\/\([^/][^/]*\)\/*$/{
28284	    s//\1/
28285	    q
28286	  }
28287	  /^X\/\(\/\/\)$/{
28288	    s//\1/
28289	    q
28290	  }
28291	  /^X\/\(\/\).*/{
28292	    s//\1/
28293	    q
28294	  }
28295	  s/.*/./; q'`
28296    { echo "$as_me:$LINENO: cd "$am_dirpart" \
28297      && sed -e '/# am--include-marker/d' "$am_filepart" \
28298        | $MAKE -f - am--depfiles" >&5
28299   (cd "$am_dirpart" \
28300      && sed -e '/# am--include-marker/d' "$am_filepart" \
28301        | $MAKE -f - am--depfiles) >&5 2>&5
28302   ac_status=$?
28303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304   (exit $ac_status); } || am_rc=$?
28305  done
28306  if test $am_rc -ne 0; then
28307    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28309as_fn_error $? "Something went wrong bootstrapping makefile fragments
28310    for automatic dependency tracking.  If GNU make was not used, consider
28311    re-running the configure script with MAKE=\"gmake\" (or whatever is
28312    necessary).  You can also try re-running configure with the
28313    '--disable-dependency-tracking' option to at least be able to build
28314    the package (albeit without support for automatic dependency tracking).
28315See \`config.log' for more details" "$LINENO" 5; }
28316  fi
28317  { am_dirpart=; unset am_dirpart;}
28318  { am_filepart=; unset am_filepart;}
28319  { am_mf=; unset am_mf;}
28320  { am_rc=; unset am_rc;}
28321  rm -f conftest-deps.mk
28322}
28323 ;;
28324    "libtool":C)
28325
28326    # See if we are running on zsh, and set the options that allow our
28327    # commands through without removal of \ escapes.
28328    if test -n "${ZSH_VERSION+set}"; then
28329      setopt NO_GLOB_SUBST
28330    fi
28331
28332    cfgfile=${ofile}T
28333    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28334    $RM "$cfgfile"
28335
28336    cat <<_LT_EOF >> "$cfgfile"
28337#! $SHELL
28338# Generated automatically by $as_me ($PACKAGE) $VERSION
28339# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28340# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28341
28342# Provide generalized library-building support services.
28343# Written by Gordon Matzigkeit, 1996
28344
28345# Copyright (C) 2014 Free Software Foundation, Inc.
28346# This is free software; see the source for copying conditions.  There is NO
28347# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28348
28349# GNU Libtool is free software; you can redistribute it and/or modify
28350# it under the terms of the GNU General Public License as published by
28351# the Free Software Foundation; either version 2 of of the License, or
28352# (at your option) any later version.
28353#
28354# As a special exception to the GNU General Public License, if you
28355# distribute this file as part of a program or library that is built
28356# using GNU Libtool, you may include this file under the  same
28357# distribution terms that you use for the rest of that program.
28358#
28359# GNU Libtool is distributed in the hope that it will be useful, but
28360# WITHOUT ANY WARRANTY; without even the implied warranty of
28361# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28362# GNU General Public License for more details.
28363#
28364# You should have received a copy of the GNU General Public License
28365# along with this program.  If not, see <http://www.gnu.org/licenses/>.
28366
28367
28368# The names of the tagged configurations supported by this script.
28369available_tags='RC CXX '
28370
28371# Configured defaults for sys_lib_dlsearch_path munging.
28372: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28373
28374# ### BEGIN LIBTOOL CONFIG
28375
28376# Which release of libtool.m4 was used?
28377macro_version=$macro_version
28378macro_revision=$macro_revision
28379
28380# Assembler program.
28381AS=$lt_AS
28382
28383# DLL creation program.
28384DLLTOOL=$lt_DLLTOOL
28385
28386# Object dumper program.
28387OBJDUMP=$lt_OBJDUMP
28388
28389# Whether or not to build shared libraries.
28390build_libtool_libs=$enable_shared
28391
28392# Whether or not to build static libraries.
28393build_old_libs=$enable_static
28394
28395# What type of objects to build.
28396pic_mode=$pic_mode
28397
28398# Whether or not to optimize for fast installation.
28399fast_install=$enable_fast_install
28400
28401# Shared archive member basename,for filename based shared library versioning on AIX.
28402shared_archive_member_spec=$shared_archive_member_spec
28403
28404# Shell to use when invoking shell scripts.
28405SHELL=$lt_SHELL
28406
28407# An echo program that protects backslashes.
28408ECHO=$lt_ECHO
28409
28410# The PATH separator for the build system.
28411PATH_SEPARATOR=$lt_PATH_SEPARATOR
28412
28413# The host system.
28414host_alias=$host_alias
28415host=$host
28416host_os=$host_os
28417
28418# The build system.
28419build_alias=$build_alias
28420build=$build
28421build_os=$build_os
28422
28423# A sed program that does not truncate output.
28424SED=$lt_SED
28425
28426# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28427Xsed="\$SED -e 1s/^X//"
28428
28429# A grep program that handles long lines.
28430GREP=$lt_GREP
28431
28432# An ERE matcher.
28433EGREP=$lt_EGREP
28434
28435# A literal string matcher.
28436FGREP=$lt_FGREP
28437
28438# A BSD- or MS-compatible name lister.
28439NM=$lt_NM
28440
28441# Whether we need soft or hard links.
28442LN_S=$lt_LN_S
28443
28444# What is the maximum length of a command?
28445max_cmd_len=$max_cmd_len
28446
28447# Object file suffix (normally "o").
28448objext=$ac_objext
28449
28450# Executable file suffix (normally "").
28451exeext=$exeext
28452
28453# whether the shell understands "unset".
28454lt_unset=$lt_unset
28455
28456# turn spaces into newlines.
28457SP2NL=$lt_lt_SP2NL
28458
28459# turn newlines into spaces.
28460NL2SP=$lt_lt_NL2SP
28461
28462# convert \$build file names to \$host format.
28463to_host_file_cmd=$lt_cv_to_host_file_cmd
28464
28465# convert \$build files to toolchain format.
28466to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28467
28468# Method to check whether dependent libraries are shared objects.
28469deplibs_check_method=$lt_deplibs_check_method
28470
28471# Command to use when deplibs_check_method = "file_magic".
28472file_magic_cmd=$lt_file_magic_cmd
28473
28474# How to find potential files when deplibs_check_method = "file_magic".
28475file_magic_glob=$lt_file_magic_glob
28476
28477# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28478want_nocaseglob=$lt_want_nocaseglob
28479
28480# Command to associate shared and link libraries.
28481sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28482
28483# The archiver.
28484AR=$lt_AR
28485
28486# Flags to create an archive.
28487AR_FLAGS=$lt_AR_FLAGS
28488
28489# How to feed a file listing to the archiver.
28490archiver_list_spec=$lt_archiver_list_spec
28491
28492# A symbol stripping program.
28493STRIP=$lt_STRIP
28494
28495# Commands used to install an old-style archive.
28496RANLIB=$lt_RANLIB
28497old_postinstall_cmds=$lt_old_postinstall_cmds
28498old_postuninstall_cmds=$lt_old_postuninstall_cmds
28499
28500# Whether to use a lock for old archive extraction.
28501lock_old_archive_extraction=$lock_old_archive_extraction
28502
28503# A C compiler.
28504LTCC=$lt_CC
28505
28506# LTCC compiler flags.
28507LTCFLAGS=$lt_CFLAGS
28508
28509# Take the output of nm and produce a listing of raw symbols and C names.
28510global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28511
28512# Transform the output of nm in a proper C declaration.
28513global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28514
28515# Transform the output of nm into a list of symbols to manually relocate.
28516global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28517
28518# Transform the output of nm in a C name address pair.
28519global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28520
28521# Transform the output of nm in a C name address pair when lib prefix is needed.
28522global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28523
28524# The name lister interface.
28525nm_interface=$lt_lt_cv_nm_interface
28526
28527# Specify filename containing input files for \$NM.
28528nm_file_list_spec=$lt_nm_file_list_spec
28529
28530# The root where to search for dependent libraries,and where our libraries should be installed.
28531lt_sysroot=$lt_sysroot
28532
28533# Command to truncate a binary pipe.
28534lt_truncate_bin=$lt_lt_cv_truncate_bin
28535
28536# The name of the directory that contains temporary libtool files.
28537objdir=$objdir
28538
28539# Used to examine libraries when file_magic_cmd begins with "file".
28540MAGIC_CMD=$MAGIC_CMD
28541
28542# Must we lock files when doing compilation?
28543need_locks=$lt_need_locks
28544
28545# Manifest tool.
28546MANIFEST_TOOL=$lt_MANIFEST_TOOL
28547
28548# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28549DSYMUTIL=$lt_DSYMUTIL
28550
28551# Tool to change global to local symbols on Mac OS X.
28552NMEDIT=$lt_NMEDIT
28553
28554# Tool to manipulate fat objects and archives on Mac OS X.
28555LIPO=$lt_LIPO
28556
28557# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28558OTOOL=$lt_OTOOL
28559
28560# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28561OTOOL64=$lt_OTOOL64
28562
28563# Old archive suffix (normally "a").
28564libext=$libext
28565
28566# Shared library suffix (normally ".so").
28567shrext_cmds=$lt_shrext_cmds
28568
28569# The commands to extract the exported symbol list from a shared archive.
28570extract_expsyms_cmds=$lt_extract_expsyms_cmds
28571
28572# Variables whose values should be saved in libtool wrapper scripts and
28573# restored at link time.
28574variables_saved_for_relink=$lt_variables_saved_for_relink
28575
28576# Do we need the "lib" prefix for modules?
28577need_lib_prefix=$need_lib_prefix
28578
28579# Do we need a version for libraries?
28580need_version=$need_version
28581
28582# Library versioning type.
28583version_type=$version_type
28584
28585# Shared library runtime path variable.
28586runpath_var=$runpath_var
28587
28588# Shared library path variable.
28589shlibpath_var=$shlibpath_var
28590
28591# Is shlibpath searched before the hard-coded library search path?
28592shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28593
28594# Format of library name prefix.
28595libname_spec=$lt_libname_spec
28596
28597# List of archive names.  First name is the real one, the rest are links.
28598# The last name is the one that the linker finds with -lNAME
28599library_names_spec=$lt_library_names_spec
28600
28601# The coded name of the library, if different from the real name.
28602soname_spec=$lt_soname_spec
28603
28604# Permission mode override for installation of shared libraries.
28605install_override_mode=$lt_install_override_mode
28606
28607# Command to use after installation of a shared archive.
28608postinstall_cmds=$lt_postinstall_cmds
28609
28610# Command to use after uninstallation of a shared archive.
28611postuninstall_cmds=$lt_postuninstall_cmds
28612
28613# Commands used to finish a libtool library installation in a directory.
28614finish_cmds=$lt_finish_cmds
28615
28616# As "finish_cmds", except a single script fragment to be evaled but
28617# not shown.
28618finish_eval=$lt_finish_eval
28619
28620# Whether we should hardcode library paths into libraries.
28621hardcode_into_libs=$hardcode_into_libs
28622
28623# Compile-time system search path for libraries.
28624sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28625
28626# Detected run-time system search path for libraries.
28627sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28628
28629# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28630configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28631
28632# Whether dlopen is supported.
28633dlopen_support=$enable_dlopen
28634
28635# Whether dlopen of programs is supported.
28636dlopen_self=$enable_dlopen_self
28637
28638# Whether dlopen of statically linked programs is supported.
28639dlopen_self_static=$enable_dlopen_self_static
28640
28641# Commands to strip libraries.
28642old_striplib=$lt_old_striplib
28643striplib=$lt_striplib
28644
28645
28646# The linker used to build libraries.
28647LD=$lt_LD
28648
28649# How to create reloadable object files.
28650reload_flag=$lt_reload_flag
28651reload_cmds=$lt_reload_cmds
28652
28653# Commands used to build an old-style archive.
28654old_archive_cmds=$lt_old_archive_cmds
28655
28656# A language specific compiler.
28657CC=$lt_compiler
28658
28659# Is the compiler the GNU compiler?
28660with_gcc=$GCC
28661
28662# Compiler flag to turn off builtin functions.
28663no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28664
28665# Additional compiler flags for building library objects.
28666pic_flag=$lt_lt_prog_compiler_pic
28667
28668# How to pass a linker flag through the compiler.
28669wl=$lt_lt_prog_compiler_wl
28670
28671# Compiler flag to prevent dynamic linking.
28672link_static_flag=$lt_lt_prog_compiler_static
28673
28674# Does compiler simultaneously support -c and -o options?
28675compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28676
28677# Whether or not to add -lc for building shared libraries.
28678build_libtool_need_lc=$archive_cmds_need_lc
28679
28680# Whether or not to disallow shared libs when runtime libs are static.
28681allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28682
28683# Compiler flag to allow reflexive dlopens.
28684export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28685
28686# Compiler flag to generate shared objects directly from archives.
28687whole_archive_flag_spec=$lt_whole_archive_flag_spec
28688
28689# Whether the compiler copes with passing no objects directly.
28690compiler_needs_object=$lt_compiler_needs_object
28691
28692# Create an old-style archive from a shared archive.
28693old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28694
28695# Create a temporary old-style archive to link instead of a shared archive.
28696old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28697
28698# Commands used to build a shared archive.
28699archive_cmds=$lt_archive_cmds
28700archive_expsym_cmds=$lt_archive_expsym_cmds
28701
28702# Commands used to build a loadable module if different from building
28703# a shared archive.
28704module_cmds=$lt_module_cmds
28705module_expsym_cmds=$lt_module_expsym_cmds
28706
28707# Whether we are building with GNU ld or not.
28708with_gnu_ld=$lt_with_gnu_ld
28709
28710# Flag that allows shared libraries with undefined symbols to be built.
28711allow_undefined_flag=$lt_allow_undefined_flag
28712
28713# Flag that enforces no undefined symbols.
28714no_undefined_flag=$lt_no_undefined_flag
28715
28716# Flag to hardcode \$libdir into a binary during linking.
28717# This must work even if \$libdir does not exist
28718hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28719
28720# Whether we need a single "-rpath" flag with a separated argument.
28721hardcode_libdir_separator=$lt_hardcode_libdir_separator
28722
28723# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28724# DIR into the resulting binary.
28725hardcode_direct=$hardcode_direct
28726
28727# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28728# DIR into the resulting binary and the resulting library dependency is
28729# "absolute",i.e impossible to change by setting \$shlibpath_var if the
28730# library is relocated.
28731hardcode_direct_absolute=$hardcode_direct_absolute
28732
28733# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28734# into the resulting binary.
28735hardcode_minus_L=$hardcode_minus_L
28736
28737# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28738# into the resulting binary.
28739hardcode_shlibpath_var=$hardcode_shlibpath_var
28740
28741# Set to "yes" if building a shared library automatically hardcodes DIR
28742# into the library and all subsequent libraries and executables linked
28743# against it.
28744hardcode_automatic=$hardcode_automatic
28745
28746# Set to yes if linker adds runtime paths of dependent libraries
28747# to runtime path list.
28748inherit_rpath=$inherit_rpath
28749
28750# Whether libtool must link a program against all its dependency libraries.
28751link_all_deplibs=$link_all_deplibs
28752
28753# Set to "yes" if exported symbols are required.
28754always_export_symbols=$always_export_symbols
28755
28756# The commands to list exported symbols.
28757export_symbols_cmds=$lt_export_symbols_cmds
28758
28759# Symbols that should not be listed in the preloaded symbols.
28760exclude_expsyms=$lt_exclude_expsyms
28761
28762# Symbols that must always be exported.
28763include_expsyms=$lt_include_expsyms
28764
28765# Commands necessary for linking programs (against libraries) with templates.
28766prelink_cmds=$lt_prelink_cmds
28767
28768# Commands necessary for finishing linking programs.
28769postlink_cmds=$lt_postlink_cmds
28770
28771# Specify filename containing input files.
28772file_list_spec=$lt_file_list_spec
28773
28774# How to hardcode a shared library path into an executable.
28775hardcode_action=$hardcode_action
28776
28777# The directories searched by this compiler when creating a shared library.
28778compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28779
28780# Dependencies to place before and after the objects being linked to
28781# create a shared library.
28782predep_objects=$lt_predep_objects
28783postdep_objects=$lt_postdep_objects
28784predeps=$lt_predeps
28785postdeps=$lt_postdeps
28786
28787# The library search path used internally by the compiler when linking
28788# a shared library.
28789compiler_lib_search_path=$lt_compiler_lib_search_path
28790
28791# ### END LIBTOOL CONFIG
28792
28793_LT_EOF
28794
28795    cat <<'_LT_EOF' >> "$cfgfile"
28796
28797# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28798
28799# func_munge_path_list VARIABLE PATH
28800# -----------------------------------
28801# VARIABLE is name of variable containing _space_ separated list of
28802# directories to be munged by the contents of PATH, which is string
28803# having a format:
28804# "DIR[:DIR]:"
28805#       string "DIR[ DIR]" will be prepended to VARIABLE
28806# ":DIR[:DIR]"
28807#       string "DIR[ DIR]" will be appended to VARIABLE
28808# "DIRP[:DIRP]::[DIRA:]DIRA"
28809#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28810#       "DIRA[ DIRA]" will be appended to VARIABLE
28811# "DIR[:DIR]"
28812#       VARIABLE will be replaced by "DIR[ DIR]"
28813func_munge_path_list ()
28814{
28815    case x$2 in
28816    x)
28817        ;;
28818    *:)
28819        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28820        ;;
28821    x:*)
28822        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28823        ;;
28824    *::*)
28825        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28826        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28827        ;;
28828    *)
28829        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28830        ;;
28831    esac
28832}
28833
28834
28835# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
28836func_cc_basename ()
28837{
28838    for cc_temp in $*""; do
28839      case $cc_temp in
28840        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28841        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28842        \-*) ;;
28843        *) break;;
28844      esac
28845    done
28846    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28847}
28848
28849
28850# ### END FUNCTIONS SHARED WITH CONFIGURE
28851
28852_LT_EOF
28853
28854  case $host_os in
28855  aix3*)
28856    cat <<\_LT_EOF >> "$cfgfile"
28857# AIX sometimes has problems with the GCC collect2 program.  For some
28858# reason, if we set the COLLECT_NAMES environment variable, the problems
28859# vanish in a puff of smoke.
28860if test set != "${COLLECT_NAMES+set}"; then
28861  COLLECT_NAMES=
28862  export COLLECT_NAMES
28863fi
28864_LT_EOF
28865    ;;
28866  esac
28867
28868
28869ltmain=$ac_aux_dir/ltmain.sh
28870
28871
28872  # We use sed instead of cat because bash on DJGPP gets confused if
28873  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28874  # text mode, it properly converts lines to CR/LF.  This bash problem
28875  # is reportedly fixed, but why not run on old versions too?
28876  sed '$q' "$ltmain" >> "$cfgfile" \
28877     || (rm -f "$cfgfile"; exit 1)
28878
28879   mv -f "$cfgfile" "$ofile" ||
28880    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28881  chmod +x "$ofile"
28882
28883
28884    cat <<_LT_EOF >> "$ofile"
28885
28886# ### BEGIN LIBTOOL TAG CONFIG: RC
28887
28888# The linker used to build libraries.
28889LD=$lt_LD_RC
28890
28891# How to create reloadable object files.
28892reload_flag=$lt_reload_flag_RC
28893reload_cmds=$lt_reload_cmds_RC
28894
28895# Commands used to build an old-style archive.
28896old_archive_cmds=$lt_old_archive_cmds_RC
28897
28898# A language specific compiler.
28899CC=$lt_compiler_RC
28900
28901# Is the compiler the GNU compiler?
28902with_gcc=$GCC_RC
28903
28904# Compiler flag to turn off builtin functions.
28905no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
28906
28907# Additional compiler flags for building library objects.
28908pic_flag=$lt_lt_prog_compiler_pic_RC
28909
28910# How to pass a linker flag through the compiler.
28911wl=$lt_lt_prog_compiler_wl_RC
28912
28913# Compiler flag to prevent dynamic linking.
28914link_static_flag=$lt_lt_prog_compiler_static_RC
28915
28916# Does compiler simultaneously support -c and -o options?
28917compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
28918
28919# Whether or not to add -lc for building shared libraries.
28920build_libtool_need_lc=$archive_cmds_need_lc_RC
28921
28922# Whether or not to disallow shared libs when runtime libs are static.
28923allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
28924
28925# Compiler flag to allow reflexive dlopens.
28926export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
28927
28928# Compiler flag to generate shared objects directly from archives.
28929whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
28930
28931# Whether the compiler copes with passing no objects directly.
28932compiler_needs_object=$lt_compiler_needs_object_RC
28933
28934# Create an old-style archive from a shared archive.
28935old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
28936
28937# Create a temporary old-style archive to link instead of a shared archive.
28938old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
28939
28940# Commands used to build a shared archive.
28941archive_cmds=$lt_archive_cmds_RC
28942archive_expsym_cmds=$lt_archive_expsym_cmds_RC
28943
28944# Commands used to build a loadable module if different from building
28945# a shared archive.
28946module_cmds=$lt_module_cmds_RC
28947module_expsym_cmds=$lt_module_expsym_cmds_RC
28948
28949# Whether we are building with GNU ld or not.
28950with_gnu_ld=$lt_with_gnu_ld_RC
28951
28952# Flag that allows shared libraries with undefined symbols to be built.
28953allow_undefined_flag=$lt_allow_undefined_flag_RC
28954
28955# Flag that enforces no undefined symbols.
28956no_undefined_flag=$lt_no_undefined_flag_RC
28957
28958# Flag to hardcode \$libdir into a binary during linking.
28959# This must work even if \$libdir does not exist
28960hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
28961
28962# Whether we need a single "-rpath" flag with a separated argument.
28963hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
28964
28965# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28966# DIR into the resulting binary.
28967hardcode_direct=$hardcode_direct_RC
28968
28969# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28970# DIR into the resulting binary and the resulting library dependency is
28971# "absolute",i.e impossible to change by setting \$shlibpath_var if the
28972# library is relocated.
28973hardcode_direct_absolute=$hardcode_direct_absolute_RC
28974
28975# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28976# into the resulting binary.
28977hardcode_minus_L=$hardcode_minus_L_RC
28978
28979# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28980# into the resulting binary.
28981hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
28982
28983# Set to "yes" if building a shared library automatically hardcodes DIR
28984# into the library and all subsequent libraries and executables linked
28985# against it.
28986hardcode_automatic=$hardcode_automatic_RC
28987
28988# Set to yes if linker adds runtime paths of dependent libraries
28989# to runtime path list.
28990inherit_rpath=$inherit_rpath_RC
28991
28992# Whether libtool must link a program against all its dependency libraries.
28993link_all_deplibs=$link_all_deplibs_RC
28994
28995# Set to "yes" if exported symbols are required.
28996always_export_symbols=$always_export_symbols_RC
28997
28998# The commands to list exported symbols.
28999export_symbols_cmds=$lt_export_symbols_cmds_RC
29000
29001# Symbols that should not be listed in the preloaded symbols.
29002exclude_expsyms=$lt_exclude_expsyms_RC
29003
29004# Symbols that must always be exported.
29005include_expsyms=$lt_include_expsyms_RC
29006
29007# Commands necessary for linking programs (against libraries) with templates.
29008prelink_cmds=$lt_prelink_cmds_RC
29009
29010# Commands necessary for finishing linking programs.
29011postlink_cmds=$lt_postlink_cmds_RC
29012
29013# Specify filename containing input files.
29014file_list_spec=$lt_file_list_spec_RC
29015
29016# How to hardcode a shared library path into an executable.
29017hardcode_action=$hardcode_action_RC
29018
29019# The directories searched by this compiler when creating a shared library.
29020compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
29021
29022# Dependencies to place before and after the objects being linked to
29023# create a shared library.
29024predep_objects=$lt_predep_objects_RC
29025postdep_objects=$lt_postdep_objects_RC
29026predeps=$lt_predeps_RC
29027postdeps=$lt_postdeps_RC
29028
29029# The library search path used internally by the compiler when linking
29030# a shared library.
29031compiler_lib_search_path=$lt_compiler_lib_search_path_RC
29032
29033# ### END LIBTOOL TAG CONFIG: RC
29034_LT_EOF
29035
29036
29037    cat <<_LT_EOF >> "$ofile"
29038
29039# ### BEGIN LIBTOOL TAG CONFIG: CXX
29040
29041# The linker used to build libraries.
29042LD=$lt_LD_CXX
29043
29044# How to create reloadable object files.
29045reload_flag=$lt_reload_flag_CXX
29046reload_cmds=$lt_reload_cmds_CXX
29047
29048# Commands used to build an old-style archive.
29049old_archive_cmds=$lt_old_archive_cmds_CXX
29050
29051# A language specific compiler.
29052CC=$lt_compiler_CXX
29053
29054# Is the compiler the GNU compiler?
29055with_gcc=$GCC_CXX
29056
29057# Compiler flag to turn off builtin functions.
29058no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29059
29060# Additional compiler flags for building library objects.
29061pic_flag=$lt_lt_prog_compiler_pic_CXX
29062
29063# How to pass a linker flag through the compiler.
29064wl=$lt_lt_prog_compiler_wl_CXX
29065
29066# Compiler flag to prevent dynamic linking.
29067link_static_flag=$lt_lt_prog_compiler_static_CXX
29068
29069# Does compiler simultaneously support -c and -o options?
29070compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29071
29072# Whether or not to add -lc for building shared libraries.
29073build_libtool_need_lc=$archive_cmds_need_lc_CXX
29074
29075# Whether or not to disallow shared libs when runtime libs are static.
29076allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29077
29078# Compiler flag to allow reflexive dlopens.
29079export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29080
29081# Compiler flag to generate shared objects directly from archives.
29082whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29083
29084# Whether the compiler copes with passing no objects directly.
29085compiler_needs_object=$lt_compiler_needs_object_CXX
29086
29087# Create an old-style archive from a shared archive.
29088old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29089
29090# Create a temporary old-style archive to link instead of a shared archive.
29091old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29092
29093# Commands used to build a shared archive.
29094archive_cmds=$lt_archive_cmds_CXX
29095archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29096
29097# Commands used to build a loadable module if different from building
29098# a shared archive.
29099module_cmds=$lt_module_cmds_CXX
29100module_expsym_cmds=$lt_module_expsym_cmds_CXX
29101
29102# Whether we are building with GNU ld or not.
29103with_gnu_ld=$lt_with_gnu_ld_CXX
29104
29105# Flag that allows shared libraries with undefined symbols to be built.
29106allow_undefined_flag=$lt_allow_undefined_flag_CXX
29107
29108# Flag that enforces no undefined symbols.
29109no_undefined_flag=$lt_no_undefined_flag_CXX
29110
29111# Flag to hardcode \$libdir into a binary during linking.
29112# This must work even if \$libdir does not exist
29113hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29114
29115# Whether we need a single "-rpath" flag with a separated argument.
29116hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29117
29118# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29119# DIR into the resulting binary.
29120hardcode_direct=$hardcode_direct_CXX
29121
29122# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29123# DIR into the resulting binary and the resulting library dependency is
29124# "absolute",i.e impossible to change by setting \$shlibpath_var if the
29125# library is relocated.
29126hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29127
29128# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29129# into the resulting binary.
29130hardcode_minus_L=$hardcode_minus_L_CXX
29131
29132# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29133# into the resulting binary.
29134hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29135
29136# Set to "yes" if building a shared library automatically hardcodes DIR
29137# into the library and all subsequent libraries and executables linked
29138# against it.
29139hardcode_automatic=$hardcode_automatic_CXX
29140
29141# Set to yes if linker adds runtime paths of dependent libraries
29142# to runtime path list.
29143inherit_rpath=$inherit_rpath_CXX
29144
29145# Whether libtool must link a program against all its dependency libraries.
29146link_all_deplibs=$link_all_deplibs_CXX
29147
29148# Set to "yes" if exported symbols are required.
29149always_export_symbols=$always_export_symbols_CXX
29150
29151# The commands to list exported symbols.
29152export_symbols_cmds=$lt_export_symbols_cmds_CXX
29153
29154# Symbols that should not be listed in the preloaded symbols.
29155exclude_expsyms=$lt_exclude_expsyms_CXX
29156
29157# Symbols that must always be exported.
29158include_expsyms=$lt_include_expsyms_CXX
29159
29160# Commands necessary for linking programs (against libraries) with templates.
29161prelink_cmds=$lt_prelink_cmds_CXX
29162
29163# Commands necessary for finishing linking programs.
29164postlink_cmds=$lt_postlink_cmds_CXX
29165
29166# Specify filename containing input files.
29167file_list_spec=$lt_file_list_spec_CXX
29168
29169# How to hardcode a shared library path into an executable.
29170hardcode_action=$hardcode_action_CXX
29171
29172# The directories searched by this compiler when creating a shared library.
29173compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29174
29175# Dependencies to place before and after the objects being linked to
29176# create a shared library.
29177predep_objects=$lt_predep_objects_CXX
29178postdep_objects=$lt_postdep_objects_CXX
29179predeps=$lt_predeps_CXX
29180postdeps=$lt_postdeps_CXX
29181
29182# The library search path used internally by the compiler when linking
29183# a shared library.
29184compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29185
29186# ### END LIBTOOL TAG CONFIG: CXX
29187_LT_EOF
29188
29189 ;;
29190    "po-directories":C)
29191    for ac_file in $CONFIG_FILES; do
29192      # Support "outfile[:infile[:infile...]]"
29193      case "$ac_file" in
29194        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
29195      esac
29196      # PO directories have a Makefile.in generated from Makefile.in.in.
29197      case "$ac_file" in */Makefile.in)
29198        # Adjust a relative srcdir.
29199        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
29200        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
29201        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
29202        # In autoconf-2.13 it is called $ac_given_srcdir.
29203        # In autoconf-2.50 it is called $srcdir.
29204        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
29205        case "$ac_given_srcdir" in
29206          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
29207          /*) top_srcdir="$ac_given_srcdir" ;;
29208          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
29209        esac
29210        # Treat a directory as a PO directory if and only if it has a
29211        # POTFILES.in file. This allows packages to have multiple PO
29212        # directories under different names or in different locations.
29213        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
29214          rm -f "$ac_dir/POTFILES"
29215          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
29216          gt_tab=`printf '\t'`
29217          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"
29218          POMAKEFILEDEPS="POTFILES.in"
29219          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
29220          # on $ac_dir but don't depend on user-specified configuration
29221          # parameters.
29222          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
29223            # The LINGUAS file contains the set of available languages.
29224            if test -n "$OBSOLETE_ALL_LINGUAS"; then
29225              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
29226            fi
29227            ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
29228            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
29229          else
29230            # The set of available languages was given in configure.in.
29231            ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
29232          fi
29233          # Compute POFILES
29234          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
29235          # Compute UPDATEPOFILES
29236          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
29237          # Compute DUMMYPOFILES
29238          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
29239          # Compute GMOFILES
29240          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
29241          case "$ac_given_srcdir" in
29242            .) srcdirpre= ;;
29243            *) srcdirpre='$(srcdir)/' ;;
29244          esac
29245          POFILES=
29246          UPDATEPOFILES=
29247          DUMMYPOFILES=
29248          GMOFILES=
29249          for lang in $ALL_LINGUAS; do
29250            POFILES="$POFILES $srcdirpre$lang.po"
29251            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
29252            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
29253            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
29254          done
29255          # CATALOGS depends on both $ac_dir and the user's LINGUAS
29256          # environment variable.
29257          INST_LINGUAS=
29258          if test -n "$ALL_LINGUAS"; then
29259            for presentlang in $ALL_LINGUAS; do
29260              useit=no
29261              if test "%UNSET%" != "$LINGUAS"; then
29262                desiredlanguages="$LINGUAS"
29263              else
29264                desiredlanguages="$ALL_LINGUAS"
29265              fi
29266              for desiredlang in $desiredlanguages; do
29267                # Use the presentlang catalog if desiredlang is
29268                #   a. equal to presentlang, or
29269                #   b. a variant of presentlang (because in this case,
29270                #      presentlang can be used as a fallback for messages
29271                #      which are not translated in the desiredlang catalog).
29272                case "$desiredlang" in
29273                  "$presentlang"*) useit=yes;;
29274                esac
29275              done
29276              if test $useit = yes; then
29277                INST_LINGUAS="$INST_LINGUAS $presentlang"
29278              fi
29279            done
29280          fi
29281          CATALOGS=
29282          if test -n "$INST_LINGUAS"; then
29283            for lang in $INST_LINGUAS; do
29284              CATALOGS="$CATALOGS $lang.gmo"
29285            done
29286          fi
29287          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
29288          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"
29289          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
29290            if test -f "$f"; then
29291              case "$f" in
29292                *.orig | *.bak | *~) ;;
29293                *) cat "$f" >> "$ac_dir/Makefile" ;;
29294              esac
29295            fi
29296          done
29297        fi
29298        ;;
29299      esac
29300    done ;;
29301    "doc/version.xml":C) if test -f doc/version.xml && \
29302          ! echo $VERSION | diff doc/version.xml - >/dev/null 2>&1 || \
29303          ! echo $VERSION | diff $srcdir/doc/version.xml - >/dev/null 2>&1 ; then :
29304  echo "writing new doc/version.xml" ; echo $VERSION > $srcdir/doc/version.xml
29305fi ;;
29306    "doc/reldate.xml":C) if test -f doc/reldate.xml && \
29307          ! echo $RELDATE | diff doc/reldate.xml - >/dev/null 2>&1 || \
29308          ! echo $RELDATE | diff $srcdir/doc/reldate.xml - >/dev/null 2>&1 ; then :
29309  echo "writing new doc/reldate.xml" ; echo $RELDATE > $srcdir/doc/reldate.xml
29310fi ;;
29311    "test/test_examples.sh":F) chmod 755 test/test_examples.sh ;;
29312    "test/check_dbus.sh":F) chmod 755 test/check_dbus.sh ;;
29313
29314  esac
29315done # for ac_tag
29316
29317
29318as_fn_exit 0
29319_ACEOF
29320ac_clean_files=$ac_clean_files_save
29321
29322test $ac_write_fail = 0 ||
29323  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29324
29325
29326# configure is writing to config.log, and then calls config.status.
29327# config.status does its own redirection, appending to config.log.
29328# Unfortunately, on DOS this fails, as config.log is still kept open
29329# by configure, so config.status won't be able to write to it; its
29330# output is simply discarded.  So we exec the FD to /dev/null,
29331# effectively closing config.log, so it can be properly (re)opened and
29332# appended to by config.status.  When coming back to configure, we
29333# need to make the FD available again.
29334if test "$no_create" != yes; then
29335  ac_cs_success=:
29336  ac_config_status_args=
29337  test "$silent" = yes &&
29338    ac_config_status_args="$ac_config_status_args --quiet"
29339  exec 5>/dev/null
29340  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29341  exec 5>>config.log
29342  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29343  # would make configure fail if this is the last instruction.
29344  $ac_cs_success || as_fn_exit 1
29345fi
29346if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29347  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29348$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29349fi
29350
29351
29352
29353echo ""
29354echo "please verify that the detected configuration matches your expectations:"
29355echo "------------------------------------------------------------------------"
29356if test "x$USE_NLS" = "xyes"; then :
29357  echo    "gettext                $USE_NLS"
29358
29359fi
29360if test "x$win32" != "xno"; then :
29361  if test "x$with_directshow" != "xno"; then :
29362  echo "DirectShow driver      --with-directshow=$with_directshow"
29363else
29364  echo "VfW driver             --with-directshow=$with_directshow"
29365
29366fi
29367else
29368  echo "X                      --with-x=$have_x"
29369
29370fi
29371
29372if test "x$with_python" != "xno"; then :
29373  pyver="\tpython${PYTHON_VERSION}"
29374fi
29375if test "x$with_gtk" != "xno"; then :
29376  gtkver="\tGtk${GTK_VERSION}"
29377fi
29378if test "x$with_qt" != "xno"; then :
29379  qtver="\tQt${QT_VERSION}"
29380fi
29381
29382echo    "pthreads               --enable-pthread=$enable_pthread"
29383echo    "doc                    --enable-doc=$enable_doc"
29384echo    "v4l                    --enable-video=$enable_video"
29385echo    "jpeg                   --with-jpeg=$with_jpeg"
29386echo -e "Python                 --with-python=$with_python $pyver"
29387echo -e "GTK                    --with-gtk=$with_gtk       $gtkver"
29388echo    "GObject introspection  --with-gir=$with_gir"
29389echo -e "Qt                     --with-qt=$with_qt         $qtver"
29390echo    "Java                   --with-java=$with_java"
29391
29392if test "x$win32" = "xno"; then :
29393  echo "Dbus                   --with-dbus=$with_dbus"
29394fi
29395if test "x$have_GM" = "xyes"; then :
29396  echo "GraphicsMagick         --with-graphicsmagick=yes"
29397else
29398  echo "ImageMagick            --with-imagemagick=$with_imagemagick"
29399fi
29400echo "Enabled codes:        $enabled_codes"
29401echo "Disabled codes:       $disabled_codes"
29402if test "x$with_java" = "xyes"; then :
29403  echo "JAVA_HOME              $JAVA_HOME"
29404fi
29405
29406
29407echo ""
29408if test "x$enable_video" != "xyes"; then :
29409  echo "        => zbarcam video scanner will *NOT* be built"
29410fi
29411if test "x$have_libv4l" != "xyes"; then :
29412  echo "        => libv4l will *NOT* be used"
29413fi
29414if test "x$with_jpeg" != "xyes"; then :
29415  echo "        => JPEG image conversions will *NOT* be supported"
29416fi
29417if test "x$have_IM" != "xyes" && test "x$have_GM" != "xyes"; then :
29418  echo "        => the zbarimg file scanner will *NOT* be built"
29419fi
29420if test "x$have_GM" = "xyes"; then :
29421  echo "        => ImageMagick is preferred, as GraphicsMagick doesn't support https"
29422fi
29423if test "x$with_gtk" = "xno"; then :
29424  echo "        => GTK support will *NOT* be built"
29425fi
29426if test "x$with_pygtk2" != "xyes" && test "xPYTHON_VERSION_MAJOR" = "x2"; then :
29427  echo "        => the Python 2 GTK widget wrapper will *NOT* be built"
29428fi
29429if test "x$with_qt" != "xyes"; then :
29430  echo "        => the Qt widget will *NOT* be built"
29431fi
29432if test "x$with_qt" = "xyes" && test "x$enable_static_qt" = "xyes" ; then :
29433  echo "        => Building a static Qt library"
29434fi
29435if test "x$with_java" != "xyes"; then :
29436  echo "        => the Java interface will *NOT* be built"
29437fi
29438if test "x$with_java_unit" != "xyes"; then :
29439  echo "        => the Java unit test will *NOT* be enabled"
29440fi
29441if test "x$enable_pdf417" = "xyes"; then :
29442  echo "        => the pdf417 code support is incomplete!"
29443fi
29444