1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libsigrok 0.5.2.
4#
5# Report bugs to <sigrok-devel@lists.sourceforge.net>.
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: sigrok-devel@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569as_awk_strverscmp='
570  # Use only awk features that work with 7th edition Unix awk (1978).
571  # My, what an old awk you have, Mr. Solaris!
572  END {
573    while (length(v1) && length(v2)) {
574      # Set d1 to be the next thing to compare from v1, and likewise for d2.
575      # Normally this is a single character, but if v1 and v2 contain digits,
576      # compare them as integers and fractions as strverscmp does.
577      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
578	# Split v1 and v2 into their leading digit string components d1 and d2,
579	# and advance v1 and v2 past the leading digit strings.
580	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
581	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
582	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
583	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
584	if (d1 ~ /^0/) {
585	  if (d2 ~ /^0/) {
586	    # Compare two fractions.
587	    while (d1 ~ /^0/ && d2 ~ /^0/) {
588	      d1 = substr(d1, 2); len1--
589	      d2 = substr(d2, 2); len2--
590	    }
591	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
592	      # The two components differ in length, and the common prefix
593	      # contains only leading zeros.  Consider the longer to be less.
594	      d1 = -len1
595	      d2 = -len2
596	    } else {
597	      # Otherwise, compare as strings.
598	      d1 = "x" d1
599	      d2 = "x" d2
600	    }
601	  } else {
602	    # A fraction is less than an integer.
603	    exit 1
604	  }
605	} else {
606	  if (d2 ~ /^0/) {
607	    # An integer is greater than a fraction.
608	    exit 2
609	  } else {
610	    # Compare two integers.
611	    d1 += 0
612	    d2 += 0
613	  }
614	}
615      } else {
616	# The normal case, without worrying about digits.
617	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
618	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
619      }
620      if (d1 < d2) exit 1
621      if (d1 > d2) exit 2
622    }
623    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
624    # which mishandles some comparisons of empty strings to integers.
625    if (length(v2)) exit 1
626    if (length(v1)) exit 2
627  }
628'
629
630test -n "$DJDIR" || exec 7<&0 </dev/null
631exec 6>&1
632
633# Name of the host.
634# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
635# so uname gets run too.
636ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
637
638#
639# Initializations.
640#
641ac_default_prefix=/usr/local
642ac_clean_files=
643ac_config_libobj_dir=.
644LIBOBJS=
645cross_compiling=no
646subdirs=
647MFLAGS=
648MAKEFLAGS=
649
650# Identity of this package.
651PACKAGE_NAME='libsigrok'
652PACKAGE_TARNAME='libsigrok'
653PACKAGE_VERSION='0.5.2'
654PACKAGE_STRING='libsigrok 0.5.2'
655PACKAGE_BUGREPORT='sigrok-devel@lists.sourceforge.net'
656PACKAGE_URL='http://www.sigrok.org'
657
658# Factoring default headers for most tests.
659ac_includes_default="\
660#include <stdio.h>
661#ifdef HAVE_SYS_TYPES_H
662# include <sys/types.h>
663#endif
664#ifdef HAVE_SYS_STAT_H
665# include <sys/stat.h>
666#endif
667#ifdef STDC_HEADERS
668# include <stdlib.h>
669# include <stddef.h>
670#else
671# ifdef HAVE_STDLIB_H
672#  include <stdlib.h>
673# endif
674#endif
675#ifdef HAVE_STRING_H
676# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
677#  include <memory.h>
678# endif
679# include <string.h>
680#endif
681#ifdef HAVE_STRINGS_H
682# include <strings.h>
683#endif
684#ifdef HAVE_INTTYPES_H
685# include <inttypes.h>
686#endif
687#ifdef HAVE_STDINT_H
688# include <stdint.h>
689#endif
690#ifdef HAVE_UNISTD_H
691# include <unistd.h>
692#endif"
693
694ac_subst_vars='am__EXEEXT_FALSE
695am__EXEEXT_TRUE
696LTLIBOBJS
697LIBOBJS
698RBSIGROK_EXTDIR
699RBSIGROK_LIBS
700RBSIGROK_CFLAGS
701PYSIGROK_LIBS
702PYSIGROK_CFLAGS
703LIBSIGROKCXX_LIBS
704LIBSIGROKCXX_CFLAGS
705TESTS_LIBS
706TESTS_CFLAGS
707LIBSIGROK_LIBS
708LIBSIGROK_CFLAGS
709SR_PKGLIBS
710BINDINGS_JAVA_FALSE
711BINDINGS_JAVA_TRUE
712JNI_CPPFLAGS
713_ACJNI_JAVAC
714JAVAC
715HAVE_JAVAC
716BINDINGS_RUBY_FALSE
717BINDINGS_RUBY_TRUE
718RUBY_DLEXT
719RUBY
720BINDINGS_PYTHON_FALSE
721BINDINGS_PYTHON_TRUE
722SWIG
723BINDINGS_CXX_FALSE
724BINDINGS_CXX_TRUE
725pkgpyexecdir
726pyexecdir
727pkgpythondir
728pythondir
729PYTHON_PLATFORM
730PYTHON_EXEC_PREFIX
731PYTHON_PREFIX
732PYTHON_VERSION
733PYTHON
734SR_EXTRA_CXX_LIBS
735HAVE_DOXYGEN
736HAVE_CXX11
737SR_WXXFLAGS
738HW_ZKETECH_EBD_USB_FALSE
739HW_ZKETECH_EBD_USB_TRUE
740HW_ZEROPLUS_LOGIC_CUBE_FALSE
741HW_ZEROPLUS_LOGIC_CUBE_TRUE
742HW_YOKOGAWA_DLM_FALSE
743HW_YOKOGAWA_DLM_TRUE
744HW_UNI_T_UT32X_FALSE
745HW_UNI_T_UT32X_TRUE
746HW_UNI_T_DMM_FALSE
747HW_UNI_T_DMM_TRUE
748HW_TONDAJ_SL_814_FALSE
749HW_TONDAJ_SL_814_TRUE
750HW_TESTO_FALSE
751HW_TESTO_TRUE
752HW_TELEINFO_FALSE
753HW_TELEINFO_TRUE
754HW_SYSCLK_SLA5032_FALSE
755HW_SYSCLK_SLA5032_TRUE
756HW_SYSCLK_LWLA_FALSE
757HW_SYSCLK_LWLA_TRUE
758HW_SIGLENT_SDS_FALSE
759HW_SIGLENT_SDS_TRUE
760HW_SERIAL_LCR_FALSE
761HW_SERIAL_LCR_TRUE
762HW_SERIAL_DMM_FALSE
763HW_SERIAL_DMM_TRUE
764HW_SCPI_PPS_FALSE
765HW_SCPI_PPS_TRUE
766HW_SCPI_DMM_FALSE
767HW_SCPI_DMM_TRUE
768HW_SALEAE_LOGIC_PRO_FALSE
769HW_SALEAE_LOGIC_PRO_TRUE
770HW_SALEAE_LOGIC16_FALSE
771HW_SALEAE_LOGIC16_TRUE
772HW_ROHDE_SCHWARZ_SME_0X_FALSE
773HW_ROHDE_SCHWARZ_SME_0X_TRUE
774HW_RIGOL_DS_FALSE
775HW_RIGOL_DS_TRUE
776HW_RDTECH_DPS_FALSE
777HW_RDTECH_DPS_TRUE
778HW_PIPISTRELLO_OLS_FALSE
779HW_PIPISTRELLO_OLS_TRUE
780HW_PCE_322A_FALSE
781HW_PCE_322A_TRUE
782HW_OPENBENCH_LOGIC_SNIFFER_FALSE
783HW_OPENBENCH_LOGIC_SNIFFER_TRUE
784HW_NORMA_DMM_FALSE
785HW_NORMA_DMM_TRUE
786HW_MOTECH_LPS_30X_FALSE
787HW_MOTECH_LPS_30X_TRUE
788HW_MOOSHIMETER_DMM_FALSE
789HW_MOOSHIMETER_DMM_TRUE
790HW_MICROCHIP_PICKIT2_FALSE
791HW_MICROCHIP_PICKIT2_TRUE
792HW_MIC_985XX_FALSE
793HW_MIC_985XX_TRUE
794HW_MAYNUO_M97_FALSE
795HW_MAYNUO_M97_TRUE
796HW_MASTECH_MS6514_FALSE
797HW_MASTECH_MS6514_TRUE
798HW_MANSON_HCS_3XXX_FALSE
799HW_MANSON_HCS_3XXX_TRUE
800HW_LECROY_XSTREAM_FALSE
801HW_LECROY_XSTREAM_TRUE
802HW_LECROY_LOGICSTUDIO_FALSE
803HW_LECROY_LOGICSTUDIO_TRUE
804HW_LASCAR_EL_USB_FALSE
805HW_LASCAR_EL_USB_TRUE
806HW_KORAD_KAXXXXP_FALSE
807HW_KORAD_KAXXXXP_TRUE
808HW_KERN_SCALE_FALSE
809HW_KERN_SCALE_TRUE
810HW_KECHENG_KC_330B_FALSE
811HW_KECHENG_KC_330B_TRUE
812HW_IPDBG_LA_FALSE
813HW_IPDBG_LA_TRUE
814HW_IKALOGIC_SCANAPLUS_FALSE
815HW_IKALOGIC_SCANAPLUS_TRUE
816HW_IKALOGIC_SCANALOGIC2_FALSE
817HW_IKALOGIC_SCANALOGIC2_TRUE
818HW_HUNG_CHANG_DSO_2100_FALSE
819HW_HUNG_CHANG_DSO_2100_TRUE
820HW_HP_3478A_FALSE
821HW_HP_3478A_TRUE
822HW_HP_3457A_FALSE
823HW_HP_3457A_TRUE
824HW_HANTEK_DSO_FALSE
825HW_HANTEK_DSO_TRUE
826HW_HANTEK_6XXX_FALSE
827HW_HANTEK_6XXX_TRUE
828HW_HANTEK_4032L_FALSE
829HW_HANTEK_4032L_TRUE
830HW_HAMEG_HMO_FALSE
831HW_HAMEG_HMO_TRUE
832HW_GWINSTEK_GPD_FALSE
833HW_GWINSTEK_GPD_TRUE
834HW_GWINSTEK_GDS_800_FALSE
835HW_GWINSTEK_GDS_800_TRUE
836HW_GMC_MH_1X_2X_FALSE
837HW_GMC_MH_1X_2X_TRUE
838HW_FX2LAFW_FALSE
839HW_FX2LAFW_TRUE
840HW_FTDI_LA_FALSE
841HW_FTDI_LA_TRUE
842HW_FLUKE_DMM_FALSE
843HW_FLUKE_DMM_TRUE
844HW_FLUKE_45_FALSE
845HW_FLUKE_45_TRUE
846HW_DREAMSOURCELAB_DSLOGIC_FALSE
847HW_DREAMSOURCELAB_DSLOGIC_TRUE
848HW_DEMO_FALSE
849HW_DEMO_TRUE
850HW_CONRAD_DIGI_35_CPU_FALSE
851HW_CONRAD_DIGI_35_CPU_TRUE
852HW_COLEAD_SLM_FALSE
853HW_COLEAD_SLM_TRUE
854HW_CHRONOVU_LA_FALSE
855HW_CHRONOVU_LA_TRUE
856HW_CENTER_3XX_FALSE
857HW_CENTER_3XX_TRUE
858HW_CEM_DT_885X_FALSE
859HW_CEM_DT_885X_TRUE
860HW_BRYMEN_DMM_FALSE
861HW_BRYMEN_DMM_TRUE
862HW_BEAGLELOGIC_FALSE
863HW_BEAGLELOGIC_TRUE
864HW_BAYLIBRE_ACME_FALSE
865HW_BAYLIBRE_ACME_TRUE
866HW_ATTEN_PPS3XXX_FALSE
867HW_ATTEN_PPS3XXX_TRUE
868HW_ASIX_SIGMA_FALSE
869HW_ASIX_SIGMA_TRUE
870HW_ARACHNID_LABS_RE_LOAD_PRO_FALSE
871HW_ARACHNID_LABS_RE_LOAD_PRO_TRUE
872HW_APPA_55II_FALSE
873HW_APPA_55II_TRUE
874HW_AGILENT_DMM_FALSE
875HW_AGILENT_DMM_TRUE
876NEED_RPC_FALSE
877NEED_RPC_TRUE
878SR_EXTRA_LIBS
879SR_WFLAGS
880SR_EXTRA_CFLAGS
881HAVE_CHECK_FALSE
882HAVE_CHECK_TRUE
883NEED_SERIAL_FALSE
884NEED_SERIAL_TRUE
885NEED_GPIB_FALSE
886NEED_GPIB_TRUE
887NEED_VISA_FALSE
888NEED_VISA_TRUE
889NEED_USB_FALSE
890NEED_USB_TRUE
891PKG_CONFIG_LIBDIR
892PKG_CONFIG_PATH
893PKG_CONFIG
894WIN32_FALSE
895WIN32_TRUE
896SR_LIB_VERSION
897SR_PACKAGE_VERSION
898CONFIG_STATUS_DEPENDENCIES
899CXXCPP
900CPP
901LT_SYS_LIBRARY_PATH
902OTOOL64
903OTOOL
904LIPO
905NMEDIT
906DSYMUTIL
907MANIFEST_TOOL
908RANLIB
909DLLTOOL
910OBJDUMP
911NM
912ac_ct_DUMPBIN
913DUMPBIN
914LD
915FGREP
916EGREP
917GREP
918SED
919LIBTOOL
920ORDER
921LN_S
922am__fastdepCXX_FALSE
923am__fastdepCXX_TRUE
924CXXDEPMODE
925ac_ct_CXX
926CXXFLAGS
927CXX
928host_os
929host_vendor
930host_cpu
931host
932build_os
933build_vendor
934build_cpu
935build
936am__fastdepCC_FALSE
937am__fastdepCC_TRUE
938CCDEPMODE
939am__nodep
940AMDEPBACKSLASH
941AMDEP_FALSE
942AMDEP_TRUE
943am__include
944DEPDIR
945OBJEXT
946EXEEXT
947ac_ct_CC
948CPPFLAGS
949LDFLAGS
950CFLAGS
951CC
952ac_ct_AR
953AR
954AM_BACKSLASH
955AM_DEFAULT_VERBOSITY
956AM_DEFAULT_V
957AM_V
958am__untar
959am__tar
960AMTAR
961am__leading_dot
962SET_MAKE
963AWK
964mkdir_p
965MKDIR_P
966INSTALL_STRIP_PROGRAM
967STRIP
968install_sh
969MAKEINFO
970AUTOHEADER
971AUTOMAKE
972AUTOCONF
973ACLOCAL
974VERSION
975PACKAGE
976CYGPATH_W
977am__isrc
978INSTALL_DATA
979INSTALL_SCRIPT
980INSTALL_PROGRAM
981target_alias
982host_alias
983build_alias
984LIBS
985ECHO_T
986ECHO_N
987ECHO_C
988DEFS
989mandir
990localedir
991libdir
992psdir
993pdfdir
994dvidir
995htmldir
996infodir
997docdir
998oldincludedir
999includedir
1000runstatedir
1001localstatedir
1002sharedstatedir
1003sysconfdir
1004datadir
1005datarootdir
1006libexecdir
1007sbindir
1008bindir
1009program_transform_name
1010prefix
1011exec_prefix
1012PACKAGE_URL
1013PACKAGE_BUGREPORT
1014PACKAGE_STRING
1015PACKAGE_VERSION
1016PACKAGE_TARNAME
1017PACKAGE_NAME
1018PATH_SEPARATOR
1019SHELL
1020am__quote'
1021ac_subst_files=''
1022ac_user_opts='
1023enable_option_checking
1024enable_silent_rules
1025enable_dependency_tracking
1026enable_shared
1027enable_static
1028with_pic
1029enable_fast_install
1030with_aix_soname
1031with_gnu_ld
1032with_sysroot
1033enable_libtool_lock
1034with_libserialport
1035with_libftdi
1036with_libhidapi
1037with_libbluez
1038with_libusb
1039with_librevisa
1040with_libgpib
1041with_libieee1284
1042with_libgio
1043enable_warnings
1044enable_largefile
1045enable_all_drivers
1046enable_agilent_dmm
1047enable_appa_55ii
1048enable_arachnid_labs_re_load_pro
1049enable_asix_sigma
1050enable_atten_pps3xxx
1051enable_baylibre_acme
1052enable_beaglelogic
1053enable_brymen_dmm
1054enable_cem_dt_885x
1055enable_center_3xx
1056enable_chronovu_la
1057enable_colead_slm
1058enable_conrad_digi_35_cpu
1059enable_demo
1060enable_dreamsourcelab_dslogic
1061enable_fluke_45
1062enable_fluke_dmm
1063enable_ftdi_la
1064enable_fx2lafw
1065enable_gmc_mh_1x_2x
1066enable_gwinstek_gds_800
1067enable_gwinstek_gpd
1068enable_hameg_hmo
1069enable_hantek_4032l
1070enable_hantek_6xxx
1071enable_hantek_dso
1072enable_hp_3457a
1073enable_hp_3478a
1074enable_hung_chang_dso_2100
1075enable_ikalogic_scanalogic2
1076enable_ikalogic_scanaplus
1077enable_ipdbg_la
1078enable_kecheng_kc_330b
1079enable_kern_scale
1080enable_korad_kaxxxxp
1081enable_lascar_el_usb
1082enable_lecroy_logicstudio
1083enable_lecroy_xstream
1084enable_manson_hcs_3xxx
1085enable_mastech_ms6514
1086enable_maynuo_m97
1087enable_mic_985xx
1088enable_microchip_pickit2
1089enable_mooshimeter_dmm
1090enable_motech_lps_30x
1091enable_norma_dmm
1092enable_openbench_logic_sniffer
1093enable_pce_322a
1094enable_pipistrello_ols
1095enable_rdtech_dps
1096enable_rigol_ds
1097enable_rohde_schwarz_sme_0x
1098enable_saleae_logic16
1099enable_saleae_logic_pro
1100enable_scpi_dmm
1101enable_scpi_pps
1102enable_serial_dmm
1103enable_serial_lcr
1104enable_siglent_sds
1105enable_sysclk_lwla
1106enable_sysclk_sla5032
1107enable_teleinfo
1108enable_testo
1109enable_tondaj_sl_814
1110enable_uni_t_dmm
1111enable_uni_t_ut32x
1112enable_yokogawa_dlm
1113enable_zeroplus_logic_cube
1114enable_zketech_ebd_usb
1115enable_bindings
1116enable_cxx
1117enable_python
1118enable_ruby
1119enable_java
1120with_jni_include_path
1121'
1122      ac_precious_vars='build_alias
1123host_alias
1124target_alias
1125CC
1126CFLAGS
1127LDFLAGS
1128LIBS
1129CPPFLAGS
1130CXX
1131CXXFLAGS
1132CCC
1133LT_SYS_LIBRARY_PATH
1134CPP
1135CXXCPP
1136PKG_CONFIG
1137PKG_CONFIG_PATH
1138PKG_CONFIG_LIBDIR
1139PYTHON
1140LIBSIGROK_CFLAGS
1141LIBSIGROK_LIBS
1142TESTS_CFLAGS
1143TESTS_LIBS
1144LIBSIGROKCXX_CFLAGS
1145LIBSIGROKCXX_LIBS
1146PYSIGROK_CFLAGS
1147PYSIGROK_LIBS
1148RBSIGROK_CFLAGS
1149RBSIGROK_LIBS'
1150
1151
1152# Initialize some variables set by options.
1153ac_init_help=
1154ac_init_version=false
1155ac_unrecognized_opts=
1156ac_unrecognized_sep=
1157# The variables have the same names as the options, with
1158# dashes changed to underlines.
1159cache_file=/dev/null
1160exec_prefix=NONE
1161no_create=
1162no_recursion=
1163prefix=NONE
1164program_prefix=NONE
1165program_suffix=NONE
1166program_transform_name=s,x,x,
1167silent=
1168site=
1169srcdir=
1170verbose=
1171x_includes=NONE
1172x_libraries=NONE
1173
1174# Installation directory options.
1175# These are left unexpanded so users can "make install exec_prefix=/foo"
1176# and all the variables that are supposed to be based on exec_prefix
1177# by default will actually change.
1178# Use braces instead of parens because sh, perl, etc. also accept them.
1179# (The list follows the same order as the GNU Coding Standards.)
1180bindir='${exec_prefix}/bin'
1181sbindir='${exec_prefix}/sbin'
1182libexecdir='${exec_prefix}/libexec'
1183datarootdir='${prefix}/share'
1184datadir='${datarootdir}'
1185sysconfdir='${prefix}/etc'
1186sharedstatedir='${prefix}/com'
1187localstatedir='${prefix}/var'
1188runstatedir='${localstatedir}/run'
1189includedir='${prefix}/include'
1190oldincludedir='/usr/include'
1191docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1192infodir='${datarootdir}/info'
1193htmldir='${docdir}'
1194dvidir='${docdir}'
1195pdfdir='${docdir}'
1196psdir='${docdir}'
1197libdir='${exec_prefix}/lib'
1198localedir='${datarootdir}/locale'
1199mandir='${datarootdir}/man'
1200
1201ac_prev=
1202ac_dashdash=
1203for ac_option
1204do
1205  # If the previous option needs an argument, assign it.
1206  if test -n "$ac_prev"; then
1207    eval $ac_prev=\$ac_option
1208    ac_prev=
1209    continue
1210  fi
1211
1212  case $ac_option in
1213  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1214  *=)   ac_optarg= ;;
1215  *)    ac_optarg=yes ;;
1216  esac
1217
1218  # Accept the important Cygnus configure options, so we can diagnose typos.
1219
1220  case $ac_dashdash$ac_option in
1221  --)
1222    ac_dashdash=yes ;;
1223
1224  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1225    ac_prev=bindir ;;
1226  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1227    bindir=$ac_optarg ;;
1228
1229  -build | --build | --buil | --bui | --bu)
1230    ac_prev=build_alias ;;
1231  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1232    build_alias=$ac_optarg ;;
1233
1234  -cache-file | --cache-file | --cache-fil | --cache-fi \
1235  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1236    ac_prev=cache_file ;;
1237  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1238  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1239    cache_file=$ac_optarg ;;
1240
1241  --config-cache | -C)
1242    cache_file=config.cache ;;
1243
1244  -datadir | --datadir | --datadi | --datad)
1245    ac_prev=datadir ;;
1246  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1247    datadir=$ac_optarg ;;
1248
1249  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1250  | --dataroo | --dataro | --datar)
1251    ac_prev=datarootdir ;;
1252  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1253  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1254    datarootdir=$ac_optarg ;;
1255
1256  -disable-* | --disable-*)
1257    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1258    # Reject names that are not valid shell variable names.
1259    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260      as_fn_error $? "invalid feature name: $ac_useropt"
1261    ac_useropt_orig=$ac_useropt
1262    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263    case $ac_user_opts in
1264      *"
1265"enable_$ac_useropt"
1266"*) ;;
1267      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1268	 ac_unrecognized_sep=', ';;
1269    esac
1270    eval enable_$ac_useropt=no ;;
1271
1272  -docdir | --docdir | --docdi | --doc | --do)
1273    ac_prev=docdir ;;
1274  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1275    docdir=$ac_optarg ;;
1276
1277  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1278    ac_prev=dvidir ;;
1279  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1280    dvidir=$ac_optarg ;;
1281
1282  -enable-* | --enable-*)
1283    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286      as_fn_error $? "invalid feature name: $ac_useropt"
1287    ac_useropt_orig=$ac_useropt
1288    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289    case $ac_user_opts in
1290      *"
1291"enable_$ac_useropt"
1292"*) ;;
1293      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1294	 ac_unrecognized_sep=', ';;
1295    esac
1296    eval enable_$ac_useropt=\$ac_optarg ;;
1297
1298  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1299  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1300  | --exec | --exe | --ex)
1301    ac_prev=exec_prefix ;;
1302  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1303  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1304  | --exec=* | --exe=* | --ex=*)
1305    exec_prefix=$ac_optarg ;;
1306
1307  -gas | --gas | --ga | --g)
1308    # Obsolete; use --with-gas.
1309    with_gas=yes ;;
1310
1311  -help | --help | --hel | --he | -h)
1312    ac_init_help=long ;;
1313  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1314    ac_init_help=recursive ;;
1315  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1316    ac_init_help=short ;;
1317
1318  -host | --host | --hos | --ho)
1319    ac_prev=host_alias ;;
1320  -host=* | --host=* | --hos=* | --ho=*)
1321    host_alias=$ac_optarg ;;
1322
1323  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1324    ac_prev=htmldir ;;
1325  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1326  | --ht=*)
1327    htmldir=$ac_optarg ;;
1328
1329  -includedir | --includedir | --includedi | --included | --include \
1330  | --includ | --inclu | --incl | --inc)
1331    ac_prev=includedir ;;
1332  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1333  | --includ=* | --inclu=* | --incl=* | --inc=*)
1334    includedir=$ac_optarg ;;
1335
1336  -infodir | --infodir | --infodi | --infod | --info | --inf)
1337    ac_prev=infodir ;;
1338  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1339    infodir=$ac_optarg ;;
1340
1341  -libdir | --libdir | --libdi | --libd)
1342    ac_prev=libdir ;;
1343  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1344    libdir=$ac_optarg ;;
1345
1346  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1347  | --libexe | --libex | --libe)
1348    ac_prev=libexecdir ;;
1349  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1350  | --libexe=* | --libex=* | --libe=*)
1351    libexecdir=$ac_optarg ;;
1352
1353  -localedir | --localedir | --localedi | --localed | --locale)
1354    ac_prev=localedir ;;
1355  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1356    localedir=$ac_optarg ;;
1357
1358  -localstatedir | --localstatedir | --localstatedi | --localstated \
1359  | --localstate | --localstat | --localsta | --localst | --locals)
1360    ac_prev=localstatedir ;;
1361  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1362  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1363    localstatedir=$ac_optarg ;;
1364
1365  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1366    ac_prev=mandir ;;
1367  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1368    mandir=$ac_optarg ;;
1369
1370  -nfp | --nfp | --nf)
1371    # Obsolete; use --without-fp.
1372    with_fp=no ;;
1373
1374  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1375  | --no-cr | --no-c | -n)
1376    no_create=yes ;;
1377
1378  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1379  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1380    no_recursion=yes ;;
1381
1382  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1383  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1384  | --oldin | --oldi | --old | --ol | --o)
1385    ac_prev=oldincludedir ;;
1386  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1387  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1388  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1389    oldincludedir=$ac_optarg ;;
1390
1391  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1392    ac_prev=prefix ;;
1393  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1394    prefix=$ac_optarg ;;
1395
1396  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1397  | --program-pre | --program-pr | --program-p)
1398    ac_prev=program_prefix ;;
1399  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1400  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1401    program_prefix=$ac_optarg ;;
1402
1403  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1404  | --program-suf | --program-su | --program-s)
1405    ac_prev=program_suffix ;;
1406  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1407  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1408    program_suffix=$ac_optarg ;;
1409
1410  -program-transform-name | --program-transform-name \
1411  | --program-transform-nam | --program-transform-na \
1412  | --program-transform-n | --program-transform- \
1413  | --program-transform | --program-transfor \
1414  | --program-transfo | --program-transf \
1415  | --program-trans | --program-tran \
1416  | --progr-tra | --program-tr | --program-t)
1417    ac_prev=program_transform_name ;;
1418  -program-transform-name=* | --program-transform-name=* \
1419  | --program-transform-nam=* | --program-transform-na=* \
1420  | --program-transform-n=* | --program-transform-=* \
1421  | --program-transform=* | --program-transfor=* \
1422  | --program-transfo=* | --program-transf=* \
1423  | --program-trans=* | --program-tran=* \
1424  | --progr-tra=* | --program-tr=* | --program-t=*)
1425    program_transform_name=$ac_optarg ;;
1426
1427  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1428    ac_prev=pdfdir ;;
1429  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1430    pdfdir=$ac_optarg ;;
1431
1432  -psdir | --psdir | --psdi | --psd | --ps)
1433    ac_prev=psdir ;;
1434  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1435    psdir=$ac_optarg ;;
1436
1437  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1438  | -silent | --silent | --silen | --sile | --sil)
1439    silent=yes ;;
1440
1441  -runstatedir | --runstatedir | --runstatedi | --runstated \
1442  | --runstate | --runstat | --runsta | --runst | --runs \
1443  | --run | --ru | --r)
1444    ac_prev=runstatedir ;;
1445  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1446  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1447  | --run=* | --ru=* | --r=*)
1448    runstatedir=$ac_optarg ;;
1449
1450  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1451    ac_prev=sbindir ;;
1452  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1453  | --sbi=* | --sb=*)
1454    sbindir=$ac_optarg ;;
1455
1456  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1457  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1458  | --sharedst | --shareds | --shared | --share | --shar \
1459  | --sha | --sh)
1460    ac_prev=sharedstatedir ;;
1461  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1462  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1463  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1464  | --sha=* | --sh=*)
1465    sharedstatedir=$ac_optarg ;;
1466
1467  -site | --site | --sit)
1468    ac_prev=site ;;
1469  -site=* | --site=* | --sit=*)
1470    site=$ac_optarg ;;
1471
1472  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1473    ac_prev=srcdir ;;
1474  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1475    srcdir=$ac_optarg ;;
1476
1477  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1478  | --syscon | --sysco | --sysc | --sys | --sy)
1479    ac_prev=sysconfdir ;;
1480  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1481  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1482    sysconfdir=$ac_optarg ;;
1483
1484  -target | --target | --targe | --targ | --tar | --ta | --t)
1485    ac_prev=target_alias ;;
1486  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1487    target_alias=$ac_optarg ;;
1488
1489  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1490    verbose=yes ;;
1491
1492  -version | --version | --versio | --versi | --vers | -V)
1493    ac_init_version=: ;;
1494
1495  -with-* | --with-*)
1496    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1497    # Reject names that are not valid shell variable names.
1498    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1499      as_fn_error $? "invalid package name: $ac_useropt"
1500    ac_useropt_orig=$ac_useropt
1501    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1502    case $ac_user_opts in
1503      *"
1504"with_$ac_useropt"
1505"*) ;;
1506      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1507	 ac_unrecognized_sep=', ';;
1508    esac
1509    eval with_$ac_useropt=\$ac_optarg ;;
1510
1511  -without-* | --without-*)
1512    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1513    # Reject names that are not valid shell variable names.
1514    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1515      as_fn_error $? "invalid package name: $ac_useropt"
1516    ac_useropt_orig=$ac_useropt
1517    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518    case $ac_user_opts in
1519      *"
1520"with_$ac_useropt"
1521"*) ;;
1522      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1523	 ac_unrecognized_sep=', ';;
1524    esac
1525    eval with_$ac_useropt=no ;;
1526
1527  --x)
1528    # Obsolete; use --with-x.
1529    with_x=yes ;;
1530
1531  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1532  | --x-incl | --x-inc | --x-in | --x-i)
1533    ac_prev=x_includes ;;
1534  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1535  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1536    x_includes=$ac_optarg ;;
1537
1538  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1539  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1540    ac_prev=x_libraries ;;
1541  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1542  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1543    x_libraries=$ac_optarg ;;
1544
1545  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1546Try \`$0 --help' for more information"
1547    ;;
1548
1549  *=*)
1550    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1551    # Reject names that are not valid shell variable names.
1552    case $ac_envvar in #(
1553      '' | [0-9]* | *[!_$as_cr_alnum]* )
1554      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1555    esac
1556    eval $ac_envvar=\$ac_optarg
1557    export $ac_envvar ;;
1558
1559  *)
1560    # FIXME: should be removed in autoconf 3.0.
1561    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1562    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1563      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1564    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1565    ;;
1566
1567  esac
1568done
1569
1570if test -n "$ac_prev"; then
1571  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1572  as_fn_error $? "missing argument to $ac_option"
1573fi
1574
1575if test -n "$ac_unrecognized_opts"; then
1576  case $enable_option_checking in
1577    no) ;;
1578    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1579    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1580  esac
1581fi
1582
1583# Check all directory arguments for consistency.
1584for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1585		datadir sysconfdir sharedstatedir localstatedir includedir \
1586		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1587		libdir localedir mandir runstatedir
1588do
1589  eval ac_val=\$$ac_var
1590  # Remove trailing slashes.
1591  case $ac_val in
1592    */ )
1593      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1594      eval $ac_var=\$ac_val;;
1595  esac
1596  # Be sure to have absolute directory names.
1597  case $ac_val in
1598    [\\/$]* | ?:[\\/]* )  continue;;
1599    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1600  esac
1601  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1602done
1603
1604# There might be people who depend on the old broken behavior: `$host'
1605# used to hold the argument of --host etc.
1606# FIXME: To remove some day.
1607build=$build_alias
1608host=$host_alias
1609target=$target_alias
1610
1611# FIXME: To remove some day.
1612if test "x$host_alias" != x; then
1613  if test "x$build_alias" = x; then
1614    cross_compiling=maybe
1615  elif test "x$build_alias" != "x$host_alias"; then
1616    cross_compiling=yes
1617  fi
1618fi
1619
1620ac_tool_prefix=
1621test -n "$host_alias" && ac_tool_prefix=$host_alias-
1622
1623test "$silent" = yes && exec 6>/dev/null
1624
1625
1626ac_pwd=`pwd` && test -n "$ac_pwd" &&
1627ac_ls_di=`ls -di .` &&
1628ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1629  as_fn_error $? "working directory cannot be determined"
1630test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1631  as_fn_error $? "pwd does not report name of working directory"
1632
1633
1634# Find the source files, if location was not specified.
1635if test -z "$srcdir"; then
1636  ac_srcdir_defaulted=yes
1637  # Try the directory containing this script, then the parent directory.
1638  ac_confdir=`$as_dirname -- "$as_myself" ||
1639$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1640	 X"$as_myself" : 'X\(//\)[^/]' \| \
1641	 X"$as_myself" : 'X\(//\)$' \| \
1642	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1643$as_echo X"$as_myself" |
1644    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1645	    s//\1/
1646	    q
1647	  }
1648	  /^X\(\/\/\)[^/].*/{
1649	    s//\1/
1650	    q
1651	  }
1652	  /^X\(\/\/\)$/{
1653	    s//\1/
1654	    q
1655	  }
1656	  /^X\(\/\).*/{
1657	    s//\1/
1658	    q
1659	  }
1660	  s/.*/./; q'`
1661  srcdir=$ac_confdir
1662  if test ! -r "$srcdir/$ac_unique_file"; then
1663    srcdir=..
1664  fi
1665else
1666  ac_srcdir_defaulted=no
1667fi
1668if test ! -r "$srcdir/$ac_unique_file"; then
1669  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1670  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1671fi
1672ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1673ac_abs_confdir=`(
1674	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1675	pwd)`
1676# When building in place, set srcdir=.
1677if test "$ac_abs_confdir" = "$ac_pwd"; then
1678  srcdir=.
1679fi
1680# Remove unnecessary trailing slashes from srcdir.
1681# Double slashes in file names in object file debugging info
1682# mess up M-x gdb in Emacs.
1683case $srcdir in
1684*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1685esac
1686for ac_var in $ac_precious_vars; do
1687  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1688  eval ac_env_${ac_var}_value=\$${ac_var}
1689  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1690  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1691done
1692
1693#
1694# Report the --help message.
1695#
1696if test "$ac_init_help" = "long"; then
1697  # Omit some internal or obsolete options to make the list less imposing.
1698  # This message is too long to be a string in the A/UX 3.1 sh.
1699  cat <<_ACEOF
1700\`configure' configures libsigrok 0.5.2 to adapt to many kinds of systems.
1701
1702Usage: $0 [OPTION]... [VAR=VALUE]...
1703
1704To assign environment variables (e.g., CC, CFLAGS...), specify them as
1705VAR=VALUE.  See below for descriptions of some of the useful variables.
1706
1707Defaults for the options are specified in brackets.
1708
1709Configuration:
1710  -h, --help              display this help and exit
1711      --help=short        display options specific to this package
1712      --help=recursive    display the short help of all the included packages
1713  -V, --version           display version information and exit
1714  -q, --quiet, --silent   do not print \`checking ...' messages
1715      --cache-file=FILE   cache test results in FILE [disabled]
1716  -C, --config-cache      alias for \`--cache-file=config.cache'
1717  -n, --no-create         do not create output files
1718      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1719
1720Installation directories:
1721  --prefix=PREFIX         install architecture-independent files in PREFIX
1722                          [$ac_default_prefix]
1723  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1724                          [PREFIX]
1725
1726By default, \`make install' will install all the files in
1727\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1728an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1729for instance \`--prefix=\$HOME'.
1730
1731For better control, use the options below.
1732
1733Fine tuning of the installation directories:
1734  --bindir=DIR            user executables [EPREFIX/bin]
1735  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1736  --libexecdir=DIR        program executables [EPREFIX/libexec]
1737  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1738  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1739  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1740  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1741  --libdir=DIR            object code libraries [EPREFIX/lib]
1742  --includedir=DIR        C header files [PREFIX/include]
1743  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1744  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1745  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1746  --infodir=DIR           info documentation [DATAROOTDIR/info]
1747  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1748  --mandir=DIR            man documentation [DATAROOTDIR/man]
1749  --docdir=DIR            documentation root [DATAROOTDIR/doc/libsigrok]
1750  --htmldir=DIR           html documentation [DOCDIR]
1751  --dvidir=DIR            dvi documentation [DOCDIR]
1752  --pdfdir=DIR            pdf documentation [DOCDIR]
1753  --psdir=DIR             ps documentation [DOCDIR]
1754_ACEOF
1755
1756  cat <<\_ACEOF
1757
1758Program names:
1759  --program-prefix=PREFIX            prepend PREFIX to installed program names
1760  --program-suffix=SUFFIX            append SUFFIX to installed program names
1761  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1762
1763System types:
1764  --build=BUILD     configure for building on BUILD [guessed]
1765  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1766_ACEOF
1767fi
1768
1769if test -n "$ac_init_help"; then
1770  case $ac_init_help in
1771     short | recursive ) echo "Configuration of libsigrok 0.5.2:";;
1772   esac
1773  cat <<\_ACEOF
1774
1775Optional Features:
1776  --disable-option-checking  ignore unrecognized --enable/--with options
1777  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1778  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1779  --enable-silent-rules   less verbose build output (undo: "make V=1")
1780  --disable-silent-rules  verbose build output (undo: "make V=0")
1781  --enable-dependency-tracking
1782                          do not reject slow dependency extractors
1783  --disable-dependency-tracking
1784                          speeds up one-time build
1785  --enable-shared[=PKGS]  build shared libraries [default=yes]
1786  --enable-static[=PKGS]  build static libraries [default=yes]
1787  --enable-fast-install[=PKGS]
1788                          optimize for fast installation [default=yes]
1789  --disable-libtool-lock  avoid locking (might break parallel builds)
1790  --enable-warnings[=min|max|fatal|no]
1791                          set compile pedantry level [default=max]
1792  --disable-largefile     omit support for large files
1793  --enable-all-drivers    enable all drivers by default [default=yes]
1794  --enable-agilent-dmm    enable Agilent DMM support
1795  --enable-appa-55ii      enable Appa 55II support
1796  --enable-arachnid-labs-re-load-pro
1797                          enable Arachnid Labs Re:load Pro support
1798  --enable-asix-sigma     enable ASIX SIGMA/SIGMA2 support
1799  --enable-atten-pps3xxx  enable Atten PPS3xxx support
1800  --enable-baylibre-acme  enable BayLibre ACME support
1801  --enable-beaglelogic    enable BeagleLogic support
1802  --enable-brymen-dmm     enable Brymen DMM support
1803  --enable-cem-dt-885x    enable CEM DT-885x support
1804  --enable-center-3xx     enable Center 3xx support
1805  --enable-chronovu-la    enable ChronoVu LA support
1806  --enable-colead-slm     enable Colead SLM support
1807  --enable-conrad-digi-35-cpu
1808                          enable Conrad DIGI 35 CPU support
1809  --enable-demo           enable demo support
1810  --enable-dreamsourcelab-dslogic
1811                          enable DreamSourceLab DSLogic support
1812  --enable-fluke-45       enable Fluke 45 support
1813  --enable-fluke-dmm      enable Fluke DMM support
1814  --enable-ftdi-la        enable FTDI LA support
1815  --enable-fx2lafw        enable fx2lafw support
1816  --enable-gmc-mh-1x-2x   enable GMC MH 1x/2x support
1817  --enable-gwinstek-gds-800
1818                          enable GW Instek GDS-800 support
1819  --enable-gwinstek-gpd   enable GW Instek GPD support
1820  --enable-hameg-hmo      enable Hameg HMO support
1821  --enable-hantek-4032l   enable Hantek 4032L support
1822  --enable-hantek-6xxx    enable Hantek 6xxx support
1823  --enable-hantek-dso     enable Hantek DSO support
1824  --enable-hp-3457a       enable HP 3457A support
1825  --enable-hp-3478a       enable HP 3478A support
1826  --enable-hung-chang-dso-2100
1827                          enable Hung-Chang DSO-2100 support
1828  --enable-ikalogic-scanalogic2
1829                          enable Ikalogic Scanalogic-2 support
1830  --enable-ikalogic-scanaplus
1831                          enable Ikalogic Scanaplus support
1832  --enable-ipdbg-la       enable IPDBG LA support
1833  --enable-kecheng-kc-330b
1834                          enable Kecheng KC-330B support
1835  --enable-kern-scale     enable KERN scale support
1836  --enable-korad-kaxxxxp  enable Korad KAxxxxP support
1837  --enable-lascar-el-usb  enable Lascar EL-USB support
1838  --enable-lecroy-logicstudio
1839                          enable LeCroy LogicStudio support
1840  --enable-lecroy-xstream enable LeCroy X-Stream support
1841  --enable-manson-hcs-3xxx
1842                          enable Manson HCS-3xxx support
1843  --enable-mastech-ms6514 enable Mastech MS6514 support
1844  --enable-maynuo-m97     enable maynuo-m97 support
1845  --enable-mic-985xx      enable MIC 985xx support
1846  --enable-microchip-pickit2
1847                          enable Microchip PICkit2 support
1848  --enable-mooshimeter-dmm
1849                          enable Mooshimeter DMM support
1850  --enable-motech-lps-30x enable Motech LPS 30x support
1851  --enable-norma-dmm      enable Norma DMM support
1852  --enable-openbench-logic-sniffer
1853                          enable OpenBench Logic Sniffer support
1854  --enable-pce-322a       enable PCE PCE-322A support
1855  --enable-pipistrello-ols
1856                          enable Pipistrello-OLS support
1857  --enable-rdtech-dps     enable RDTech DPSxxxx/DPHxxxx support
1858  --enable-rigol-ds       enable Rigol DS support
1859  --enable-rohde-schwarz-sme-0x
1860                          enable Rohde&Schwarz SME-0x support
1861  --enable-saleae-logic16 enable Saleae Logic16 support
1862  --enable-saleae-logic-pro
1863                          enable Saleae Logic Pro support
1864  --enable-scpi-dmm       enable SCPI DMM support
1865  --enable-scpi-pps       enable SCPI PPS support
1866  --enable-serial-dmm     enable serial DMM support
1867  --enable-serial-lcr     enable serial LCR support
1868  --enable-siglent-sds    enable Siglent SDS support
1869  --enable-sysclk-lwla    enable Sysclk LWLA support
1870  --enable-sysclk-sla5032 enable Sysclk SLA5032 support
1871  --enable-teleinfo       enable Teleinfo support
1872  --enable-testo          enable Testo support
1873  --enable-tondaj-sl-814  enable Tondaj SL-814 support
1874  --enable-uni-t-dmm      enable UNI-T DMM support
1875  --enable-uni-t-ut32x    enable UNI-T UT32x support
1876  --enable-yokogawa-dlm   enable Yokogawa DL/DLM support
1877  --enable-zeroplus-logic-cube
1878                          enable ZEROPLUS Logic Cube support
1879  --enable-zketech-ebd-usb
1880                          enable ZKETECH EBD-USB support
1881  --enable-bindings       build language bindings [default=yes]
1882  --enable-cxx            build C++ bindings [default=yes]
1883  --enable-python         build Python bindings [default=yes]
1884  --enable-ruby           build Ruby bindings [default=yes]
1885  --enable-java           build Java bindings [default=yes]
1886
1887Optional Packages:
1888  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1889  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1890  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1891                          both]
1892  --with-aix-soname=aix|svr4|both
1893                          shared library versioning (aka "SONAME") variant to
1894                          provide on AIX, [default=aix].
1895  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1896  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1897                          compiler's sysroot if not specified).
1898  --without-libserialport disable libserialport support [default=detect]
1899  --without-libftdi       disable libftdi support [default=detect]
1900  --without-libhidapi     disable libhidapi support [default=detect]
1901  --without-libbluez      disable libbluez support [default=detect]
1902  --without-libusb        disable libusb support [default=detect]
1903  --without-librevisa     disable librevisa support [default=detect]
1904  --without-libgpib       disable libgpib support [default=detect]
1905  --without-libieee1284   disable libieee1284 support [default=detect]
1906  --without-libgio        disable libgio support [default=detect]
1907  --with-jni-include-path=DIR-LIST (space-separated)
1908                          specify JNI include directories [default=detect]
1909
1910Some influential environment variables:
1911  CC          C compiler command
1912  CFLAGS      C compiler flags
1913  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1914              nonstandard directory <lib dir>
1915  LIBS        libraries to pass to the linker, e.g. -l<library>
1916  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1917              you have headers in a nonstandard directory <include dir>
1918  CXX         C++ compiler command
1919  CXXFLAGS    C++ compiler flags
1920  LT_SYS_LIBRARY_PATH
1921              User-defined run-time library search path.
1922  CPP         C preprocessor
1923  CXXCPP      C++ preprocessor
1924  PKG_CONFIG  path to pkg-config utility
1925  PKG_CONFIG_PATH
1926              directories to add to pkg-config's search path
1927  PKG_CONFIG_LIBDIR
1928              path overriding pkg-config's built-in search path
1929  PYTHON      the Python interpreter
1930  LIBSIGROK_CFLAGS
1931              C compiler flags for LIBSIGROK, overriding pkg-config
1932  LIBSIGROK_LIBS
1933              linker flags for LIBSIGROK, overriding pkg-config
1934  TESTS_CFLAGS
1935              C compiler flags for TESTS, overriding pkg-config
1936  TESTS_LIBS  linker flags for TESTS, overriding pkg-config
1937  LIBSIGROKCXX_CFLAGS
1938              C compiler flags for LIBSIGROKCXX, overriding pkg-config
1939  LIBSIGROKCXX_LIBS
1940              linker flags for LIBSIGROKCXX, overriding pkg-config
1941  PYSIGROK_CFLAGS
1942              C compiler flags for PYSIGROK, overriding pkg-config
1943  PYSIGROK_LIBS
1944              linker flags for PYSIGROK, overriding pkg-config
1945  RBSIGROK_CFLAGS
1946              C compiler flags for RBSIGROK, overriding pkg-config
1947  RBSIGROK_LIBS
1948              linker flags for RBSIGROK, overriding pkg-config
1949
1950Use these variables to override the choices made by `configure' or to help
1951it to find libraries and programs with nonstandard names/locations.
1952
1953Report bugs to <sigrok-devel@lists.sourceforge.net>.
1954libsigrok home page: <http://www.sigrok.org>.
1955_ACEOF
1956ac_status=$?
1957fi
1958
1959if test "$ac_init_help" = "recursive"; then
1960  # If there are subdirs, report their specific --help.
1961  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1962    test -d "$ac_dir" ||
1963      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1964      continue
1965    ac_builddir=.
1966
1967case "$ac_dir" in
1968.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1969*)
1970  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1971  # A ".." for each directory in $ac_dir_suffix.
1972  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1973  case $ac_top_builddir_sub in
1974  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1975  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1976  esac ;;
1977esac
1978ac_abs_top_builddir=$ac_pwd
1979ac_abs_builddir=$ac_pwd$ac_dir_suffix
1980# for backward compatibility:
1981ac_top_builddir=$ac_top_build_prefix
1982
1983case $srcdir in
1984  .)  # We are building in place.
1985    ac_srcdir=.
1986    ac_top_srcdir=$ac_top_builddir_sub
1987    ac_abs_top_srcdir=$ac_pwd ;;
1988  [\\/]* | ?:[\\/]* )  # Absolute name.
1989    ac_srcdir=$srcdir$ac_dir_suffix;
1990    ac_top_srcdir=$srcdir
1991    ac_abs_top_srcdir=$srcdir ;;
1992  *) # Relative name.
1993    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1994    ac_top_srcdir=$ac_top_build_prefix$srcdir
1995    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1996esac
1997ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1998
1999    cd "$ac_dir" || { ac_status=$?; continue; }
2000    # Check for guested configure.
2001    if test -f "$ac_srcdir/configure.gnu"; then
2002      echo &&
2003      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2004    elif test -f "$ac_srcdir/configure"; then
2005      echo &&
2006      $SHELL "$ac_srcdir/configure" --help=recursive
2007    else
2008      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2009    fi || ac_status=$?
2010    cd "$ac_pwd" || { ac_status=$?; break; }
2011  done
2012fi
2013
2014test -n "$ac_init_help" && exit $ac_status
2015if $ac_init_version; then
2016  cat <<\_ACEOF
2017libsigrok configure 0.5.2
2018generated by GNU Autoconf 2.69
2019
2020Copyright (C) 2012 Free Software Foundation, Inc.
2021This configure script is free software; the Free Software Foundation
2022gives unlimited permission to copy, distribute and modify it.
2023_ACEOF
2024  exit
2025fi
2026
2027## ------------------------ ##
2028## Autoconf initialization. ##
2029## ------------------------ ##
2030
2031# ac_fn_c_try_compile LINENO
2032# --------------------------
2033# Try to compile conftest.$ac_ext, and return whether this succeeded.
2034ac_fn_c_try_compile ()
2035{
2036  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037  rm -f conftest.$ac_objext
2038  if { { ac_try="$ac_compile"
2039case "(($ac_try" in
2040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041  *) ac_try_echo=$ac_try;;
2042esac
2043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044$as_echo "$ac_try_echo"; } >&5
2045  (eval "$ac_compile") 2>conftest.err
2046  ac_status=$?
2047  if test -s conftest.err; then
2048    grep -v '^ *+' conftest.err >conftest.er1
2049    cat conftest.er1 >&5
2050    mv -f conftest.er1 conftest.err
2051  fi
2052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053  test $ac_status = 0; } && {
2054	 test -z "$ac_c_werror_flag" ||
2055	 test ! -s conftest.err
2056       } && test -s conftest.$ac_objext; then :
2057  ac_retval=0
2058else
2059  $as_echo "$as_me: failed program was:" >&5
2060sed 's/^/| /' conftest.$ac_ext >&5
2061
2062	ac_retval=1
2063fi
2064  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065  as_fn_set_status $ac_retval
2066
2067} # ac_fn_c_try_compile
2068
2069# ac_fn_cxx_try_compile LINENO
2070# ----------------------------
2071# Try to compile conftest.$ac_ext, and return whether this succeeded.
2072ac_fn_cxx_try_compile ()
2073{
2074  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075  rm -f conftest.$ac_objext
2076  if { { ac_try="$ac_compile"
2077case "(($ac_try" in
2078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079  *) ac_try_echo=$ac_try;;
2080esac
2081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082$as_echo "$ac_try_echo"; } >&5
2083  (eval "$ac_compile") 2>conftest.err
2084  ac_status=$?
2085  if test -s conftest.err; then
2086    grep -v '^ *+' conftest.err >conftest.er1
2087    cat conftest.er1 >&5
2088    mv -f conftest.er1 conftest.err
2089  fi
2090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091  test $ac_status = 0; } && {
2092	 test -z "$ac_cxx_werror_flag" ||
2093	 test ! -s conftest.err
2094       } && test -s conftest.$ac_objext; then :
2095  ac_retval=0
2096else
2097  $as_echo "$as_me: failed program was:" >&5
2098sed 's/^/| /' conftest.$ac_ext >&5
2099
2100	ac_retval=1
2101fi
2102  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103  as_fn_set_status $ac_retval
2104
2105} # ac_fn_cxx_try_compile
2106
2107# ac_fn_c_try_link LINENO
2108# -----------------------
2109# Try to link conftest.$ac_ext, and return whether this succeeded.
2110ac_fn_c_try_link ()
2111{
2112  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113  rm -f conftest.$ac_objext conftest$ac_exeext
2114  if { { ac_try="$ac_link"
2115case "(($ac_try" in
2116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117  *) ac_try_echo=$ac_try;;
2118esac
2119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120$as_echo "$ac_try_echo"; } >&5
2121  (eval "$ac_link") 2>conftest.err
2122  ac_status=$?
2123  if test -s conftest.err; then
2124    grep -v '^ *+' conftest.err >conftest.er1
2125    cat conftest.er1 >&5
2126    mv -f conftest.er1 conftest.err
2127  fi
2128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129  test $ac_status = 0; } && {
2130	 test -z "$ac_c_werror_flag" ||
2131	 test ! -s conftest.err
2132       } && test -s conftest$ac_exeext && {
2133	 test "$cross_compiling" = yes ||
2134	 test -x conftest$ac_exeext
2135       }; then :
2136  ac_retval=0
2137else
2138  $as_echo "$as_me: failed program was:" >&5
2139sed 's/^/| /' conftest.$ac_ext >&5
2140
2141	ac_retval=1
2142fi
2143  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2144  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2145  # interfere with the next link command; also delete a directory that is
2146  # left behind by Apple's compiler.  We do this before executing the actions.
2147  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149  as_fn_set_status $ac_retval
2150
2151} # ac_fn_c_try_link
2152
2153# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2154# -------------------------------------------------------
2155# Tests whether HEADER exists and can be compiled using the include files in
2156# INCLUDES, setting the cache variable VAR accordingly.
2157ac_fn_c_check_header_compile ()
2158{
2159  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161$as_echo_n "checking for $2... " >&6; }
2162if eval \${$3+:} false; then :
2163  $as_echo_n "(cached) " >&6
2164else
2165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h.  */
2167$4
2168#include <$2>
2169_ACEOF
2170if ac_fn_c_try_compile "$LINENO"; then :
2171  eval "$3=yes"
2172else
2173  eval "$3=no"
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176fi
2177eval ac_res=\$$3
2178	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182} # ac_fn_c_check_header_compile
2183
2184# ac_fn_c_try_cpp LINENO
2185# ----------------------
2186# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2187ac_fn_c_try_cpp ()
2188{
2189  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190  if { { ac_try="$ac_cpp conftest.$ac_ext"
2191case "(($ac_try" in
2192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193  *) ac_try_echo=$ac_try;;
2194esac
2195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196$as_echo "$ac_try_echo"; } >&5
2197  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2198  ac_status=$?
2199  if test -s conftest.err; then
2200    grep -v '^ *+' conftest.err >conftest.er1
2201    cat conftest.er1 >&5
2202    mv -f conftest.er1 conftest.err
2203  fi
2204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205  test $ac_status = 0; } > conftest.i && {
2206	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2207	 test ! -s conftest.err
2208       }; then :
2209  ac_retval=0
2210else
2211  $as_echo "$as_me: failed program was:" >&5
2212sed 's/^/| /' conftest.$ac_ext >&5
2213
2214    ac_retval=1
2215fi
2216  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217  as_fn_set_status $ac_retval
2218
2219} # ac_fn_c_try_cpp
2220
2221# ac_fn_c_try_run LINENO
2222# ----------------------
2223# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2224# that executables *can* be run.
2225ac_fn_c_try_run ()
2226{
2227  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228  if { { ac_try="$ac_link"
2229case "(($ac_try" in
2230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231  *) ac_try_echo=$ac_try;;
2232esac
2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234$as_echo "$ac_try_echo"; } >&5
2235  (eval "$ac_link") 2>&5
2236  ac_status=$?
2237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2239  { { case "(($ac_try" in
2240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241  *) ac_try_echo=$ac_try;;
2242esac
2243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244$as_echo "$ac_try_echo"; } >&5
2245  (eval "$ac_try") 2>&5
2246  ac_status=$?
2247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248  test $ac_status = 0; }; }; then :
2249  ac_retval=0
2250else
2251  $as_echo "$as_me: program exited with status $ac_status" >&5
2252       $as_echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255       ac_retval=$ac_status
2256fi
2257  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2258  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259  as_fn_set_status $ac_retval
2260
2261} # ac_fn_c_try_run
2262
2263# ac_fn_c_check_func LINENO FUNC VAR
2264# ----------------------------------
2265# Tests whether FUNC exists, setting the cache variable VAR accordingly
2266ac_fn_c_check_func ()
2267{
2268  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270$as_echo_n "checking for $2... " >&6; }
2271if eval \${$3+:} false; then :
2272  $as_echo_n "(cached) " >&6
2273else
2274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275/* end confdefs.h.  */
2276/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2277   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2278#define $2 innocuous_$2
2279
2280/* System header to define __stub macros and hopefully few prototypes,
2281    which can conflict with char $2 (); below.
2282    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2283    <limits.h> exists even on freestanding compilers.  */
2284
2285#ifdef __STDC__
2286# include <limits.h>
2287#else
2288# include <assert.h>
2289#endif
2290
2291#undef $2
2292
2293/* Override any GCC internal prototype to avoid an error.
2294   Use char because int might match the return type of a GCC
2295   builtin and then its argument prototype would still apply.  */
2296#ifdef __cplusplus
2297extern "C"
2298#endif
2299char $2 ();
2300/* The GNU C library defines this for functions which it implements
2301    to always fail with ENOSYS.  Some functions are actually named
2302    something starting with __ and the normal name is an alias.  */
2303#if defined __stub_$2 || defined __stub___$2
2304choke me
2305#endif
2306
2307int
2308main ()
2309{
2310return $2 ();
2311  ;
2312  return 0;
2313}
2314_ACEOF
2315if ac_fn_c_try_link "$LINENO"; then :
2316  eval "$3=yes"
2317else
2318  eval "$3=no"
2319fi
2320rm -f core conftest.err conftest.$ac_objext \
2321    conftest$ac_exeext conftest.$ac_ext
2322fi
2323eval ac_res=\$$3
2324	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325$as_echo "$ac_res" >&6; }
2326  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327
2328} # ac_fn_c_check_func
2329
2330# ac_fn_cxx_try_cpp LINENO
2331# ------------------------
2332# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2333ac_fn_cxx_try_cpp ()
2334{
2335  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336  if { { ac_try="$ac_cpp conftest.$ac_ext"
2337case "(($ac_try" in
2338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339  *) ac_try_echo=$ac_try;;
2340esac
2341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2342$as_echo "$ac_try_echo"; } >&5
2343  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2344  ac_status=$?
2345  if test -s conftest.err; then
2346    grep -v '^ *+' conftest.err >conftest.er1
2347    cat conftest.er1 >&5
2348    mv -f conftest.er1 conftest.err
2349  fi
2350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351  test $ac_status = 0; } > conftest.i && {
2352	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2353	 test ! -s conftest.err
2354       }; then :
2355  ac_retval=0
2356else
2357  $as_echo "$as_me: failed program was:" >&5
2358sed 's/^/| /' conftest.$ac_ext >&5
2359
2360    ac_retval=1
2361fi
2362  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363  as_fn_set_status $ac_retval
2364
2365} # ac_fn_cxx_try_cpp
2366
2367# ac_fn_cxx_try_link LINENO
2368# -------------------------
2369# Try to link conftest.$ac_ext, and return whether this succeeded.
2370ac_fn_cxx_try_link ()
2371{
2372  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373  rm -f conftest.$ac_objext conftest$ac_exeext
2374  if { { ac_try="$ac_link"
2375case "(($ac_try" in
2376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377  *) ac_try_echo=$ac_try;;
2378esac
2379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2380$as_echo "$ac_try_echo"; } >&5
2381  (eval "$ac_link") 2>conftest.err
2382  ac_status=$?
2383  if test -s conftest.err; then
2384    grep -v '^ *+' conftest.err >conftest.er1
2385    cat conftest.er1 >&5
2386    mv -f conftest.er1 conftest.err
2387  fi
2388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389  test $ac_status = 0; } && {
2390	 test -z "$ac_cxx_werror_flag" ||
2391	 test ! -s conftest.err
2392       } && test -s conftest$ac_exeext && {
2393	 test "$cross_compiling" = yes ||
2394	 test -x conftest$ac_exeext
2395       }; then :
2396  ac_retval=0
2397else
2398  $as_echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401	ac_retval=1
2402fi
2403  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2404  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2405  # interfere with the next link command; also delete a directory that is
2406  # left behind by Apple's compiler.  We do this before executing the actions.
2407  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2408  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409  as_fn_set_status $ac_retval
2410
2411} # ac_fn_cxx_try_link
2412
2413# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2414# -------------------------------------------------------
2415# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2416# the include files in INCLUDES and setting the cache variable VAR
2417# accordingly.
2418ac_fn_c_check_header_mongrel ()
2419{
2420  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421  if eval \${$3+:} false; then :
2422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2423$as_echo_n "checking for $2... " >&6; }
2424if eval \${$3+:} false; then :
2425  $as_echo_n "(cached) " >&6
2426fi
2427eval ac_res=\$$3
2428	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429$as_echo "$ac_res" >&6; }
2430else
2431  # Is the header compilable?
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2433$as_echo_n "checking $2 usability... " >&6; }
2434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435/* end confdefs.h.  */
2436$4
2437#include <$2>
2438_ACEOF
2439if ac_fn_c_try_compile "$LINENO"; then :
2440  ac_header_compiler=yes
2441else
2442  ac_header_compiler=no
2443fi
2444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2446$as_echo "$ac_header_compiler" >&6; }
2447
2448# Is the header present?
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2450$as_echo_n "checking $2 presence... " >&6; }
2451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452/* end confdefs.h.  */
2453#include <$2>
2454_ACEOF
2455if ac_fn_c_try_cpp "$LINENO"; then :
2456  ac_header_preproc=yes
2457else
2458  ac_header_preproc=no
2459fi
2460rm -f conftest.err conftest.i conftest.$ac_ext
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2462$as_echo "$ac_header_preproc" >&6; }
2463
2464# So?  What about this header?
2465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2466  yes:no: )
2467    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2468$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2469    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2470$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2471    ;;
2472  no:yes:* )
2473    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2474$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2475    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2476$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2477    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2478$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2479    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2480$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2481    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2482$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2483( $as_echo "## ------------------------------------------------- ##
2484## Report this to sigrok-devel@lists.sourceforge.net ##
2485## ------------------------------------------------- ##"
2486     ) | sed "s/^/$as_me: WARNING:     /" >&2
2487    ;;
2488esac
2489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2490$as_echo_n "checking for $2... " >&6; }
2491if eval \${$3+:} false; then :
2492  $as_echo_n "(cached) " >&6
2493else
2494  eval "$3=\$ac_header_compiler"
2495fi
2496eval ac_res=\$$3
2497	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498$as_echo "$ac_res" >&6; }
2499fi
2500  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501
2502} # ac_fn_c_check_header_mongrel
2503
2504# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2505# -------------------------------------------
2506# Tests whether TYPE exists after having included INCLUDES, setting cache
2507# variable VAR accordingly.
2508ac_fn_c_check_type ()
2509{
2510  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2512$as_echo_n "checking for $2... " >&6; }
2513if eval \${$3+:} false; then :
2514  $as_echo_n "(cached) " >&6
2515else
2516  eval "$3=no"
2517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518/* end confdefs.h.  */
2519$4
2520int
2521main ()
2522{
2523if (sizeof ($2))
2524	 return 0;
2525  ;
2526  return 0;
2527}
2528_ACEOF
2529if ac_fn_c_try_compile "$LINENO"; then :
2530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531/* end confdefs.h.  */
2532$4
2533int
2534main ()
2535{
2536if (sizeof (($2)))
2537	    return 0;
2538  ;
2539  return 0;
2540}
2541_ACEOF
2542if ac_fn_c_try_compile "$LINENO"; then :
2543
2544else
2545  eval "$3=yes"
2546fi
2547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548fi
2549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550fi
2551eval ac_res=\$$3
2552	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2553$as_echo "$ac_res" >&6; }
2554  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2555
2556} # ac_fn_c_check_type
2557
2558# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2559# ---------------------------------------------------------
2560# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2561# the include files in INCLUDES and setting the cache variable VAR
2562# accordingly.
2563ac_fn_cxx_check_header_mongrel ()
2564{
2565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566  if eval \${$3+:} false; then :
2567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2568$as_echo_n "checking for $2... " >&6; }
2569if eval \${$3+:} false; then :
2570  $as_echo_n "(cached) " >&6
2571fi
2572eval ac_res=\$$3
2573	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574$as_echo "$ac_res" >&6; }
2575else
2576  # Is the header compilable?
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2578$as_echo_n "checking $2 usability... " >&6; }
2579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580/* end confdefs.h.  */
2581$4
2582#include <$2>
2583_ACEOF
2584if ac_fn_cxx_try_compile "$LINENO"; then :
2585  ac_header_compiler=yes
2586else
2587  ac_header_compiler=no
2588fi
2589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2591$as_echo "$ac_header_compiler" >&6; }
2592
2593# Is the header present?
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2595$as_echo_n "checking $2 presence... " >&6; }
2596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h.  */
2598#include <$2>
2599_ACEOF
2600if ac_fn_cxx_try_cpp "$LINENO"; then :
2601  ac_header_preproc=yes
2602else
2603  ac_header_preproc=no
2604fi
2605rm -f conftest.err conftest.i conftest.$ac_ext
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2607$as_echo "$ac_header_preproc" >&6; }
2608
2609# So?  What about this header?
2610case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2611  yes:no: )
2612    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2613$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2614    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2615$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2616    ;;
2617  no:yes:* )
2618    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2619$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2620    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2621$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2622    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2623$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2624    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2625$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2626    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2627$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2628( $as_echo "## ------------------------------------------------- ##
2629## Report this to sigrok-devel@lists.sourceforge.net ##
2630## ------------------------------------------------- ##"
2631     ) | sed "s/^/$as_me: WARNING:     /" >&2
2632    ;;
2633esac
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2635$as_echo_n "checking for $2... " >&6; }
2636if eval \${$3+:} false; then :
2637  $as_echo_n "(cached) " >&6
2638else
2639  eval "$3=\$ac_header_compiler"
2640fi
2641eval ac_res=\$$3
2642	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643$as_echo "$ac_res" >&6; }
2644fi
2645  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646
2647} # ac_fn_cxx_check_header_mongrel
2648cat >config.log <<_ACEOF
2649This file contains any messages produced by compilers while
2650running configure, to aid debugging if configure makes a mistake.
2651
2652It was created by libsigrok $as_me 0.5.2, which was
2653generated by GNU Autoconf 2.69.  Invocation command line was
2654
2655  $ $0 $@
2656
2657_ACEOF
2658exec 5>>config.log
2659{
2660cat <<_ASUNAME
2661## --------- ##
2662## Platform. ##
2663## --------- ##
2664
2665hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2666uname -m = `(uname -m) 2>/dev/null || echo unknown`
2667uname -r = `(uname -r) 2>/dev/null || echo unknown`
2668uname -s = `(uname -s) 2>/dev/null || echo unknown`
2669uname -v = `(uname -v) 2>/dev/null || echo unknown`
2670
2671/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2672/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2673
2674/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2675/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2676/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2677/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2678/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2679/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2680/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2681
2682_ASUNAME
2683
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689    $as_echo "PATH: $as_dir"
2690  done
2691IFS=$as_save_IFS
2692
2693} >&5
2694
2695cat >&5 <<_ACEOF
2696
2697
2698## ----------- ##
2699## Core tests. ##
2700## ----------- ##
2701
2702_ACEOF
2703
2704
2705# Keep a trace of the command line.
2706# Strip out --no-create and --no-recursion so they do not pile up.
2707# Strip out --silent because we don't want to record it for future runs.
2708# Also quote any args containing shell meta-characters.
2709# Make two passes to allow for proper duplicate-argument suppression.
2710ac_configure_args=
2711ac_configure_args0=
2712ac_configure_args1=
2713ac_must_keep_next=false
2714for ac_pass in 1 2
2715do
2716  for ac_arg
2717  do
2718    case $ac_arg in
2719    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2720    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2721    | -silent | --silent | --silen | --sile | --sil)
2722      continue ;;
2723    *\'*)
2724      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2725    esac
2726    case $ac_pass in
2727    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2728    2)
2729      as_fn_append ac_configure_args1 " '$ac_arg'"
2730      if test $ac_must_keep_next = true; then
2731	ac_must_keep_next=false # Got value, back to normal.
2732      else
2733	case $ac_arg in
2734	  *=* | --config-cache | -C | -disable-* | --disable-* \
2735	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2736	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2737	  | -with-* | --with-* | -without-* | --without-* | --x)
2738	    case "$ac_configure_args0 " in
2739	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2740	    esac
2741	    ;;
2742	  -* ) ac_must_keep_next=true ;;
2743	esac
2744      fi
2745      as_fn_append ac_configure_args " '$ac_arg'"
2746      ;;
2747    esac
2748  done
2749done
2750{ ac_configure_args0=; unset ac_configure_args0;}
2751{ ac_configure_args1=; unset ac_configure_args1;}
2752
2753# When interrupted or exit'd, cleanup temporary files, and complete
2754# config.log.  We remove comments because anyway the quotes in there
2755# would cause problems or look ugly.
2756# WARNING: Use '\'' to represent an apostrophe within the trap.
2757# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2758trap 'exit_status=$?
2759  # Save into config.log some information that might help in debugging.
2760  {
2761    echo
2762
2763    $as_echo "## ---------------- ##
2764## Cache variables. ##
2765## ---------------- ##"
2766    echo
2767    # The following way of writing the cache mishandles newlines in values,
2768(
2769  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2770    eval ac_val=\$$ac_var
2771    case $ac_val in #(
2772    *${as_nl}*)
2773      case $ac_var in #(
2774      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2775$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2776      esac
2777      case $ac_var in #(
2778      _ | IFS | as_nl) ;; #(
2779      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2780      *) { eval $ac_var=; unset $ac_var;} ;;
2781      esac ;;
2782    esac
2783  done
2784  (set) 2>&1 |
2785    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2786    *${as_nl}ac_space=\ *)
2787      sed -n \
2788	"s/'\''/'\''\\\\'\'''\''/g;
2789	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2790      ;; #(
2791    *)
2792      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2793      ;;
2794    esac |
2795    sort
2796)
2797    echo
2798
2799    $as_echo "## ----------------- ##
2800## Output variables. ##
2801## ----------------- ##"
2802    echo
2803    for ac_var in $ac_subst_vars
2804    do
2805      eval ac_val=\$$ac_var
2806      case $ac_val in
2807      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2808      esac
2809      $as_echo "$ac_var='\''$ac_val'\''"
2810    done | sort
2811    echo
2812
2813    if test -n "$ac_subst_files"; then
2814      $as_echo "## ------------------- ##
2815## File substitutions. ##
2816## ------------------- ##"
2817      echo
2818      for ac_var in $ac_subst_files
2819      do
2820	eval ac_val=\$$ac_var
2821	case $ac_val in
2822	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2823	esac
2824	$as_echo "$ac_var='\''$ac_val'\''"
2825      done | sort
2826      echo
2827    fi
2828
2829    if test -s confdefs.h; then
2830      $as_echo "## ----------- ##
2831## confdefs.h. ##
2832## ----------- ##"
2833      echo
2834      cat confdefs.h
2835      echo
2836    fi
2837    test "$ac_signal" != 0 &&
2838      $as_echo "$as_me: caught signal $ac_signal"
2839    $as_echo "$as_me: exit $exit_status"
2840  } >&5
2841  rm -f core *.core core.conftest.* &&
2842    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2843    exit $exit_status
2844' 0
2845for ac_signal in 1 2 13 15; do
2846  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2847done
2848ac_signal=0
2849
2850# confdefs.h avoids OS command line length limits that DEFS can exceed.
2851rm -f -r conftest* confdefs.h
2852
2853$as_echo "/* confdefs.h */" > confdefs.h
2854
2855# Predefined preprocessor variables.
2856
2857cat >>confdefs.h <<_ACEOF
2858#define PACKAGE_NAME "$PACKAGE_NAME"
2859_ACEOF
2860
2861cat >>confdefs.h <<_ACEOF
2862#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2863_ACEOF
2864
2865cat >>confdefs.h <<_ACEOF
2866#define PACKAGE_VERSION "$PACKAGE_VERSION"
2867_ACEOF
2868
2869cat >>confdefs.h <<_ACEOF
2870#define PACKAGE_STRING "$PACKAGE_STRING"
2871_ACEOF
2872
2873cat >>confdefs.h <<_ACEOF
2874#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2875_ACEOF
2876
2877cat >>confdefs.h <<_ACEOF
2878#define PACKAGE_URL "$PACKAGE_URL"
2879_ACEOF
2880
2881
2882# Let the site file select an alternate cache file if it wants to.
2883# Prefer an explicitly selected file to automatically selected ones.
2884ac_site_file1=NONE
2885ac_site_file2=NONE
2886if test -n "$CONFIG_SITE"; then
2887  # We do not want a PATH search for config.site.
2888  case $CONFIG_SITE in #((
2889    -*)  ac_site_file1=./$CONFIG_SITE;;
2890    */*) ac_site_file1=$CONFIG_SITE;;
2891    *)   ac_site_file1=./$CONFIG_SITE;;
2892  esac
2893elif test "x$prefix" != xNONE; then
2894  ac_site_file1=$prefix/share/config.site
2895  ac_site_file2=$prefix/etc/config.site
2896else
2897  ac_site_file1=$ac_default_prefix/share/config.site
2898  ac_site_file2=$ac_default_prefix/etc/config.site
2899fi
2900for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2901do
2902  test "x$ac_site_file" = xNONE && continue
2903  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2904    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2905$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2906    sed 's/^/| /' "$ac_site_file" >&5
2907    . "$ac_site_file" \
2908      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910as_fn_error $? "failed to load site script $ac_site_file
2911See \`config.log' for more details" "$LINENO" 5; }
2912  fi
2913done
2914
2915if test -r "$cache_file"; then
2916  # Some versions of bash will fail to source /dev/null (special files
2917  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2918  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2919    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2920$as_echo "$as_me: loading cache $cache_file" >&6;}
2921    case $cache_file in
2922      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2923      *)                      . "./$cache_file";;
2924    esac
2925  fi
2926else
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2928$as_echo "$as_me: creating cache $cache_file" >&6;}
2929  >$cache_file
2930fi
2931
2932# Check that the precious variables saved in the cache have kept the same
2933# value.
2934ac_cache_corrupted=false
2935for ac_var in $ac_precious_vars; do
2936  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2937  eval ac_new_set=\$ac_env_${ac_var}_set
2938  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2939  eval ac_new_val=\$ac_env_${ac_var}_value
2940  case $ac_old_set,$ac_new_set in
2941    set,)
2942      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2943$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2944      ac_cache_corrupted=: ;;
2945    ,set)
2946      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2947$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2948      ac_cache_corrupted=: ;;
2949    ,);;
2950    *)
2951      if test "x$ac_old_val" != "x$ac_new_val"; then
2952	# differences in whitespace do not lead to failure.
2953	ac_old_val_w=`echo x $ac_old_val`
2954	ac_new_val_w=`echo x $ac_new_val`
2955	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2956	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2957$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2958	  ac_cache_corrupted=:
2959	else
2960	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2961$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2962	  eval $ac_var=\$ac_old_val
2963	fi
2964	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2965$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2966	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2967$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2968      fi;;
2969  esac
2970  # Pass precious variables to config.status.
2971  if test "$ac_new_set" = set; then
2972    case $ac_new_val in
2973    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2974    *) ac_arg=$ac_var=$ac_new_val ;;
2975    esac
2976    case " $ac_configure_args " in
2977      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2978      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2979    esac
2980  fi
2981done
2982if $ac_cache_corrupted; then
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2986$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2987  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2988fi
2989## -------------------- ##
2990## Main body of script. ##
2991## -------------------- ##
2992
2993ac_ext=c
2994ac_cpp='$CPP $CPPFLAGS'
2995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998
2999
3000
3001ac_aux_dir=
3002for ac_dir in autostuff "$srcdir"/autostuff; do
3003  if test -f "$ac_dir/install-sh"; then
3004    ac_aux_dir=$ac_dir
3005    ac_install_sh="$ac_aux_dir/install-sh -c"
3006    break
3007  elif test -f "$ac_dir/install.sh"; then
3008    ac_aux_dir=$ac_dir
3009    ac_install_sh="$ac_aux_dir/install.sh -c"
3010    break
3011  elif test -f "$ac_dir/shtool"; then
3012    ac_aux_dir=$ac_dir
3013    ac_install_sh="$ac_aux_dir/shtool install -c"
3014    break
3015  fi
3016done
3017if test -z "$ac_aux_dir"; then
3018  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autostuff \"$srcdir\"/autostuff" "$LINENO" 5
3019fi
3020
3021# These three variables are undocumented and unsupported,
3022# and are intended to be withdrawn in a future Autoconf release.
3023# They can cause serious problems if a builder's source tree is in a directory
3024# whose full name contains unusual characters.
3025ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3026ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3027ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3028
3029
3030ac_config_headers="$ac_config_headers config.h include/libsigrok/version.h"
3031
3032
3033# We require at least automake 1.11 (needed for 'silent rules').
3034am__api_version='1.16'
3035
3036# Find a good install program.  We prefer a C program (faster),
3037# so one script is as good as another.  But avoid the broken or
3038# incompatible versions:
3039# SysV /etc/install, /usr/sbin/install
3040# SunOS /usr/etc/install
3041# IRIX /sbin/install
3042# AIX /bin/install
3043# AmigaOS /C/install, which installs bootblocks on floppy discs
3044# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3045# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3046# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3047# OS/2's system install, which has a completely different semantic
3048# ./install, which can be erroneously created by make from ./install.sh.
3049# Reject install programs that cannot install multiple files.
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3051$as_echo_n "checking for a BSD-compatible install... " >&6; }
3052if test -z "$INSTALL"; then
3053if ${ac_cv_path_install+:} false; then :
3054  $as_echo_n "(cached) " >&6
3055else
3056  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059  IFS=$as_save_IFS
3060  test -z "$as_dir" && as_dir=.
3061    # Account for people who put trailing slashes in PATH elements.
3062case $as_dir/ in #((
3063  ./ | .// | /[cC]/* | \
3064  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3065  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3066  /usr/ucb/* ) ;;
3067  *)
3068    # OSF1 and SCO ODT 3.0 have their own names for install.
3069    # Don't use installbsd from OSF since it installs stuff as root
3070    # by default.
3071    for ac_prog in ginstall scoinst install; do
3072      for ac_exec_ext in '' $ac_executable_extensions; do
3073	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3074	  if test $ac_prog = install &&
3075	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3076	    # AIX install.  It has an incompatible calling convention.
3077	    :
3078	  elif test $ac_prog = install &&
3079	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3080	    # program-specific install script used by HP pwplus--don't use.
3081	    :
3082	  else
3083	    rm -rf conftest.one conftest.two conftest.dir
3084	    echo one > conftest.one
3085	    echo two > conftest.two
3086	    mkdir conftest.dir
3087	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3088	      test -s conftest.one && test -s conftest.two &&
3089	      test -s conftest.dir/conftest.one &&
3090	      test -s conftest.dir/conftest.two
3091	    then
3092	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3093	      break 3
3094	    fi
3095	  fi
3096	fi
3097      done
3098    done
3099    ;;
3100esac
3101
3102  done
3103IFS=$as_save_IFS
3104
3105rm -rf conftest.one conftest.two conftest.dir
3106
3107fi
3108  if test "${ac_cv_path_install+set}" = set; then
3109    INSTALL=$ac_cv_path_install
3110  else
3111    # As a last resort, use the slow shell script.  Don't cache a
3112    # value for INSTALL within a source directory, because that will
3113    # break other packages using the cache if that directory is
3114    # removed, or if the value is a relative name.
3115    INSTALL=$ac_install_sh
3116  fi
3117fi
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3119$as_echo "$INSTALL" >&6; }
3120
3121# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3122# It thinks the first close brace ends the variable substitution.
3123test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3124
3125test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3126
3127test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3128
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3130$as_echo_n "checking whether build environment is sane... " >&6; }
3131# Reject unsafe characters in $srcdir or the absolute working directory
3132# name.  Accept space and tab only in the latter.
3133am_lf='
3134'
3135case `pwd` in
3136  *[\\\"\#\$\&\'\`$am_lf]*)
3137    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3138esac
3139case $srcdir in
3140  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3141    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3142esac
3143
3144# Do 'set' in a subshell so we don't clobber the current shell's
3145# arguments.  Must try -L first in case configure is actually a
3146# symlink; some systems play weird games with the mod time of symlinks
3147# (eg FreeBSD returns the mod time of the symlink's containing
3148# directory).
3149if (
3150   am_has_slept=no
3151   for am_try in 1 2; do
3152     echo "timestamp, slept: $am_has_slept" > conftest.file
3153     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3154     if test "$*" = "X"; then
3155	# -L didn't work.
3156	set X `ls -t "$srcdir/configure" conftest.file`
3157     fi
3158     if test "$*" != "X $srcdir/configure conftest.file" \
3159	&& test "$*" != "X conftest.file $srcdir/configure"; then
3160
3161	# If neither matched, then we have a broken ls.  This can happen
3162	# if, for instance, CONFIG_SHELL is bash and it inherits a
3163	# broken ls alias from the environment.  This has actually
3164	# happened.  Such a system could not be considered "sane".
3165	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3166  alias in your environment" "$LINENO" 5
3167     fi
3168     if test "$2" = conftest.file || test $am_try -eq 2; then
3169       break
3170     fi
3171     # Just in case.
3172     sleep 1
3173     am_has_slept=yes
3174   done
3175   test "$2" = conftest.file
3176   )
3177then
3178   # Ok.
3179   :
3180else
3181   as_fn_error $? "newly created file is older than distributed files!
3182Check your system clock" "$LINENO" 5
3183fi
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185$as_echo "yes" >&6; }
3186# If we didn't sleep, we still need to ensure time stamps of config.status and
3187# generated files are strictly newer.
3188am_sleep_pid=
3189if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3190  ( sleep 1 ) &
3191  am_sleep_pid=$!
3192fi
3193
3194rm -f conftest.file
3195
3196test "$program_prefix" != NONE &&
3197  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3198# Use a double $ so make ignores it.
3199test "$program_suffix" != NONE &&
3200  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3201# Double any \ or $.
3202# By default was `s,x,x', remove it if useless.
3203ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3204program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3205
3206# Expand $ac_aux_dir to an absolute path.
3207am_aux_dir=`cd "$ac_aux_dir" && pwd`
3208
3209if test x"${MISSING+set}" != xset; then
3210  case $am_aux_dir in
3211  *\ * | *\	*)
3212    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3213  *)
3214    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3215  esac
3216fi
3217# Use eval to expand $SHELL
3218if eval "$MISSING --is-lightweight"; then
3219  am_missing_run="$MISSING "
3220else
3221  am_missing_run=
3222  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3223$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3224fi
3225
3226if test x"${install_sh+set}" != xset; then
3227  case $am_aux_dir in
3228  *\ * | *\	*)
3229    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3230  *)
3231    install_sh="\${SHELL} $am_aux_dir/install-sh"
3232  esac
3233fi
3234
3235# Installed binaries are usually stripped using 'strip' when the user
3236# run "make install-strip".  However 'strip' might not be the right
3237# tool to use in cross-compilation environments, therefore Automake
3238# will honor the 'STRIP' environment variable to overrule this program.
3239if test "$cross_compiling" != no; then
3240  if test -n "$ac_tool_prefix"; then
3241  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3242set dummy ${ac_tool_prefix}strip; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
3245if ${ac_cv_prog_STRIP+:} false; then :
3246  $as_echo_n "(cached) " >&6
3247else
3248  if test -n "$STRIP"; then
3249  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263  done
3264IFS=$as_save_IFS
3265
3266fi
3267fi
3268STRIP=$ac_cv_prog_STRIP
3269if test -n "$STRIP"; then
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3271$as_echo "$STRIP" >&6; }
3272else
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275fi
3276
3277
3278fi
3279if test -z "$ac_cv_prog_STRIP"; then
3280  ac_ct_STRIP=$STRIP
3281  # Extract the first word of "strip", so it can be a program name with args.
3282set dummy strip; ac_word=$2
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284$as_echo_n "checking for $ac_word... " >&6; }
3285if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288  if test -n "$ac_ct_STRIP"; then
3289  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3290else
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294  IFS=$as_save_IFS
3295  test -z "$as_dir" && as_dir=.
3296    for ac_exec_ext in '' $ac_executable_extensions; do
3297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298    ac_cv_prog_ac_ct_STRIP="strip"
3299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300    break 2
3301  fi
3302done
3303  done
3304IFS=$as_save_IFS
3305
3306fi
3307fi
3308ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3309if test -n "$ac_ct_STRIP"; then
3310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3311$as_echo "$ac_ct_STRIP" >&6; }
3312else
3313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315fi
3316
3317  if test "x$ac_ct_STRIP" = x; then
3318    STRIP=":"
3319  else
3320    case $cross_compiling:$ac_tool_warned in
3321yes:)
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324ac_tool_warned=yes ;;
3325esac
3326    STRIP=$ac_ct_STRIP
3327  fi
3328else
3329  STRIP="$ac_cv_prog_STRIP"
3330fi
3331
3332fi
3333INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3334
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3336$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3337if test -z "$MKDIR_P"; then
3338  if ${ac_cv_path_mkdir+:} false; then :
3339  $as_echo_n "(cached) " >&6
3340else
3341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3343do
3344  IFS=$as_save_IFS
3345  test -z "$as_dir" && as_dir=.
3346    for ac_prog in mkdir gmkdir; do
3347	 for ac_exec_ext in '' $ac_executable_extensions; do
3348	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3349	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3350	     'mkdir (GNU coreutils) '* | \
3351	     'mkdir (coreutils) '* | \
3352	     'mkdir (fileutils) '4.1*)
3353	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3354	       break 3;;
3355	   esac
3356	 done
3357       done
3358  done
3359IFS=$as_save_IFS
3360
3361fi
3362
3363  test -d ./--version && rmdir ./--version
3364  if test "${ac_cv_path_mkdir+set}" = set; then
3365    MKDIR_P="$ac_cv_path_mkdir -p"
3366  else
3367    # As a last resort, use the slow shell script.  Don't cache a
3368    # value for MKDIR_P within a source directory, because that will
3369    # break other packages using the cache if that directory is
3370    # removed, or if the value is a relative name.
3371    MKDIR_P="$ac_install_sh -d"
3372  fi
3373fi
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3375$as_echo "$MKDIR_P" >&6; }
3376
3377for ac_prog in gawk mawk nawk awk
3378do
3379  # Extract the first word of "$ac_prog", so it can be a program name with args.
3380set dummy $ac_prog; ac_word=$2
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382$as_echo_n "checking for $ac_word... " >&6; }
3383if ${ac_cv_prog_AWK+:} false; then :
3384  $as_echo_n "(cached) " >&6
3385else
3386  if test -n "$AWK"; then
3387  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3388else
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392  IFS=$as_save_IFS
3393  test -z "$as_dir" && as_dir=.
3394    for ac_exec_ext in '' $ac_executable_extensions; do
3395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396    ac_cv_prog_AWK="$ac_prog"
3397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398    break 2
3399  fi
3400done
3401  done
3402IFS=$as_save_IFS
3403
3404fi
3405fi
3406AWK=$ac_cv_prog_AWK
3407if test -n "$AWK"; then
3408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3409$as_echo "$AWK" >&6; }
3410else
3411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412$as_echo "no" >&6; }
3413fi
3414
3415
3416  test -n "$AWK" && break
3417done
3418
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3420$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3421set x ${MAKE-make}
3422ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3423if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3424  $as_echo_n "(cached) " >&6
3425else
3426  cat >conftest.make <<\_ACEOF
3427SHELL = /bin/sh
3428all:
3429	@echo '@@@%%%=$(MAKE)=@@@%%%'
3430_ACEOF
3431# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3432case `${MAKE-make} -f conftest.make 2>/dev/null` in
3433  *@@@%%%=?*=@@@%%%*)
3434    eval ac_cv_prog_make_${ac_make}_set=yes;;
3435  *)
3436    eval ac_cv_prog_make_${ac_make}_set=no;;
3437esac
3438rm -f conftest.make
3439fi
3440if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442$as_echo "yes" >&6; }
3443  SET_MAKE=
3444else
3445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446$as_echo "no" >&6; }
3447  SET_MAKE="MAKE=${MAKE-make}"
3448fi
3449
3450rm -rf .tst 2>/dev/null
3451mkdir .tst 2>/dev/null
3452if test -d .tst; then
3453  am__leading_dot=.
3454else
3455  am__leading_dot=_
3456fi
3457rmdir .tst 2>/dev/null
3458
3459# Check whether --enable-silent-rules was given.
3460if test "${enable_silent_rules+set}" = set; then :
3461  enableval=$enable_silent_rules;
3462fi
3463
3464case $enable_silent_rules in # (((
3465  yes) AM_DEFAULT_VERBOSITY=0;;
3466   no) AM_DEFAULT_VERBOSITY=1;;
3467    *) AM_DEFAULT_VERBOSITY=1;;
3468esac
3469am_make=${MAKE-make}
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3471$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3472if ${am_cv_make_support_nested_variables+:} false; then :
3473  $as_echo_n "(cached) " >&6
3474else
3475  if $as_echo 'TRUE=$(BAR$(V))
3476BAR0=false
3477BAR1=true
3478V=1
3479am__doit:
3480	@$(TRUE)
3481.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3482  am_cv_make_support_nested_variables=yes
3483else
3484  am_cv_make_support_nested_variables=no
3485fi
3486fi
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3488$as_echo "$am_cv_make_support_nested_variables" >&6; }
3489if test $am_cv_make_support_nested_variables = yes; then
3490    AM_V='$(V)'
3491  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3492else
3493  AM_V=$AM_DEFAULT_VERBOSITY
3494  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3495fi
3496AM_BACKSLASH='\'
3497
3498if test "`cd $srcdir && pwd`" != "`pwd`"; then
3499  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3500  # is not polluted with repeated "-I."
3501  am__isrc=' -I$(srcdir)'
3502  # test to see if srcdir already configured
3503  if test -f $srcdir/config.status; then
3504    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3505  fi
3506fi
3507
3508# test whether we have cygpath
3509if test -z "$CYGPATH_W"; then
3510  if (cygpath --version) >/dev/null 2>/dev/null; then
3511    CYGPATH_W='cygpath -w'
3512  else
3513    CYGPATH_W=echo
3514  fi
3515fi
3516
3517
3518# Define the identity of the package.
3519 PACKAGE='libsigrok'
3520 VERSION='0.5.2'
3521
3522
3523# Some tools Automake needs.
3524
3525ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3526
3527
3528AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3529
3530
3531AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3532
3533
3534AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3535
3536
3537MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3538
3539# For better backward compatibility.  To be removed once Automake 1.9.x
3540# dies out for good.  For more background, see:
3541# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3542# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3543mkdir_p='$(MKDIR_P)'
3544
3545# We need awk for the "check" target (and possibly the TAP driver).  The
3546# system "awk" is bad on some platforms.
3547# Always define AMTAR for backward compatibility.  Yes, it's still used
3548# in the wild :-(  We should find a proper way to deprecate it ...
3549AMTAR='$${TAR-tar}'
3550
3551
3552# We'll loop over all known methods to create a tar archive until one works.
3553_am_tools='gnutar  pax cpio none'
3554
3555am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3556
3557
3558
3559
3560
3561
3562# POSIX will say in a future version that running "rm -f" with no argument
3563# is OK; and we want to be able to make that assumption in our Makefile
3564# recipes.  So use an aggressive probe to check that the usage we want is
3565# actually supported "in the wild" to an acceptable degree.
3566# See automake bug#10828.
3567# To make any issue more visible, cause the running configure to be aborted
3568# by default if the 'rm' program in use doesn't match our expectations; the
3569# user can still override this though.
3570if rm -f && rm -fr && rm -rf; then : OK; else
3571  cat >&2 <<'END'
3572Oops!
3573
3574Your 'rm' program seems unable to run without file operands specified
3575on the command line, even when the '-f' option is present.  This is contrary
3576to the behaviour of most rm programs out there, and not conforming with
3577the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3578
3579Please tell bug-automake@gnu.org about your system, including the value
3580of your $PATH and any error possibly output before this message.  This
3581can help us improve future automake versions.
3582
3583END
3584  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3585    echo 'Configuration will proceed anyway, since you have set the' >&2
3586    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3587    echo >&2
3588  else
3589    cat >&2 <<'END'
3590Aborting the configuration process, to ensure you take notice of the issue.
3591
3592You can download and install GNU coreutils to get an 'rm' implementation
3593that behaves properly: <https://www.gnu.org/software/coreutils/>.
3594
3595If you want to complete the configuration process using your problematic
3596'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3597to "yes", and re-run configure.
3598
3599END
3600    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3601  fi
3602fi
3603
3604# Check whether --enable-silent-rules was given.
3605if test "${enable_silent_rules+set}" = set; then :
3606  enableval=$enable_silent_rules;
3607fi
3608
3609case $enable_silent_rules in # (((
3610  yes) AM_DEFAULT_VERBOSITY=0;;
3611   no) AM_DEFAULT_VERBOSITY=1;;
3612    *) AM_DEFAULT_VERBOSITY=0;;
3613esac
3614am_make=${MAKE-make}
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3616$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3617if ${am_cv_make_support_nested_variables+:} false; then :
3618  $as_echo_n "(cached) " >&6
3619else
3620  if $as_echo 'TRUE=$(BAR$(V))
3621BAR0=false
3622BAR1=true
3623V=1
3624am__doit:
3625	@$(TRUE)
3626.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3627  am_cv_make_support_nested_variables=yes
3628else
3629  am_cv_make_support_nested_variables=no
3630fi
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3633$as_echo "$am_cv_make_support_nested_variables" >&6; }
3634if test $am_cv_make_support_nested_variables = yes; then
3635    AM_V='$(V)'
3636  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3637else
3638  AM_V=$AM_DEFAULT_VERBOSITY
3639  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3640fi
3641AM_BACKSLASH='\'
3642
3643DEPDIR="${am__leading_dot}deps"
3644
3645ac_config_commands="$ac_config_commands depfiles"
3646
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3648$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3649cat > confinc.mk << 'END'
3650am__doit:
3651	@echo this is the am__doit target >confinc.out
3652.PHONY: am__doit
3653END
3654am__include="#"
3655am__quote=
3656# BSD make does it like this.
3657echo '.include "confinc.mk" # ignored' > confmf.BSD
3658# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3659echo 'include confinc.mk # ignored' > confmf.GNU
3660_am_result=no
3661for s in GNU BSD; do
3662  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3663   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3664   ac_status=$?
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); }
3667  case $?:`cat confinc.out 2>/dev/null` in #(
3668  '0:this is the am__doit target') :
3669    case $s in #(
3670  BSD) :
3671    am__include='.include' am__quote='"' ;; #(
3672  *) :
3673    am__include='include' am__quote='' ;;
3674esac ;; #(
3675  *) :
3676     ;;
3677esac
3678  if test "$am__include" != "#"; then
3679    _am_result="yes ($s style)"
3680    break
3681  fi
3682done
3683rm -f confinc.* confmf.*
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3685$as_echo "${_am_result}" >&6; }
3686
3687# Check whether --enable-dependency-tracking was given.
3688if test "${enable_dependency_tracking+set}" = set; then :
3689  enableval=$enable_dependency_tracking;
3690fi
3691
3692if test "x$enable_dependency_tracking" != xno; then
3693  am_depcomp="$ac_aux_dir/depcomp"
3694  AMDEPBACKSLASH='\'
3695  am__nodep='_no'
3696fi
3697 if test "x$enable_dependency_tracking" != xno; then
3698  AMDEP_TRUE=
3699  AMDEP_FALSE='#'
3700else
3701  AMDEP_TRUE='#'
3702  AMDEP_FALSE=
3703fi
3704
3705
3706ac_ext=c
3707ac_cpp='$CPP $CPPFLAGS'
3708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711if test -n "$ac_tool_prefix"; then
3712  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3713set dummy ${ac_tool_prefix}gcc; ac_word=$2
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715$as_echo_n "checking for $ac_word... " >&6; }
3716if ${ac_cv_prog_CC+:} false; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  if test -n "$CC"; then
3720  ac_cv_prog_CC="$CC" # Let the user override the test.
3721else
3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725  IFS=$as_save_IFS
3726  test -z "$as_dir" && as_dir=.
3727    for ac_exec_ext in '' $ac_executable_extensions; do
3728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731    break 2
3732  fi
3733done
3734  done
3735IFS=$as_save_IFS
3736
3737fi
3738fi
3739CC=$ac_cv_prog_CC
3740if test -n "$CC"; then
3741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742$as_echo "$CC" >&6; }
3743else
3744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745$as_echo "no" >&6; }
3746fi
3747
3748
3749fi
3750if test -z "$ac_cv_prog_CC"; then
3751  ac_ct_CC=$CC
3752  # Extract the first word of "gcc", so it can be a program name with args.
3753set dummy gcc; ac_word=$2
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755$as_echo_n "checking for $ac_word... " >&6; }
3756if ${ac_cv_prog_ac_ct_CC+:} false; then :
3757  $as_echo_n "(cached) " >&6
3758else
3759  if test -n "$ac_ct_CC"; then
3760  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765  IFS=$as_save_IFS
3766  test -z "$as_dir" && as_dir=.
3767    for ac_exec_ext in '' $ac_executable_extensions; do
3768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769    ac_cv_prog_ac_ct_CC="gcc"
3770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771    break 2
3772  fi
3773done
3774  done
3775IFS=$as_save_IFS
3776
3777fi
3778fi
3779ac_ct_CC=$ac_cv_prog_ac_ct_CC
3780if test -n "$ac_ct_CC"; then
3781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3782$as_echo "$ac_ct_CC" >&6; }
3783else
3784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785$as_echo "no" >&6; }
3786fi
3787
3788  if test "x$ac_ct_CC" = x; then
3789    CC=""
3790  else
3791    case $cross_compiling:$ac_tool_warned in
3792yes:)
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795ac_tool_warned=yes ;;
3796esac
3797    CC=$ac_ct_CC
3798  fi
3799else
3800  CC="$ac_cv_prog_CC"
3801fi
3802
3803if test -z "$CC"; then
3804          if test -n "$ac_tool_prefix"; then
3805    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3806set dummy ${ac_tool_prefix}cc; ac_word=$2
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808$as_echo_n "checking for $ac_word... " >&6; }
3809if ${ac_cv_prog_CC+:} false; then :
3810  $as_echo_n "(cached) " >&6
3811else
3812  if test -n "$CC"; then
3813  ac_cv_prog_CC="$CC" # Let the user override the test.
3814else
3815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816for as_dir in $PATH
3817do
3818  IFS=$as_save_IFS
3819  test -z "$as_dir" && as_dir=.
3820    for ac_exec_ext in '' $ac_executable_extensions; do
3821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822    ac_cv_prog_CC="${ac_tool_prefix}cc"
3823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824    break 2
3825  fi
3826done
3827  done
3828IFS=$as_save_IFS
3829
3830fi
3831fi
3832CC=$ac_cv_prog_CC
3833if test -n "$CC"; then
3834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3835$as_echo "$CC" >&6; }
3836else
3837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838$as_echo "no" >&6; }
3839fi
3840
3841
3842  fi
3843fi
3844if test -z "$CC"; then
3845  # Extract the first word of "cc", so it can be a program name with args.
3846set dummy cc; ac_word=$2
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3848$as_echo_n "checking for $ac_word... " >&6; }
3849if ${ac_cv_prog_CC+:} false; then :
3850  $as_echo_n "(cached) " >&6
3851else
3852  if test -n "$CC"; then
3853  ac_cv_prog_CC="$CC" # Let the user override the test.
3854else
3855  ac_prog_rejected=no
3856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857for as_dir in $PATH
3858do
3859  IFS=$as_save_IFS
3860  test -z "$as_dir" && as_dir=.
3861    for ac_exec_ext in '' $ac_executable_extensions; do
3862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3864       ac_prog_rejected=yes
3865       continue
3866     fi
3867    ac_cv_prog_CC="cc"
3868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869    break 2
3870  fi
3871done
3872  done
3873IFS=$as_save_IFS
3874
3875if test $ac_prog_rejected = yes; then
3876  # We found a bogon in the path, so make sure we never use it.
3877  set dummy $ac_cv_prog_CC
3878  shift
3879  if test $# != 0; then
3880    # We chose a different compiler from the bogus one.
3881    # However, it has the same basename, so the bogon will be chosen
3882    # first if we set CC to just the basename; use the full file name.
3883    shift
3884    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3885  fi
3886fi
3887fi
3888fi
3889CC=$ac_cv_prog_CC
3890if test -n "$CC"; then
3891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3892$as_echo "$CC" >&6; }
3893else
3894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895$as_echo "no" >&6; }
3896fi
3897
3898
3899fi
3900if test -z "$CC"; then
3901  if test -n "$ac_tool_prefix"; then
3902  for ac_prog in cl.exe
3903  do
3904    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3905set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907$as_echo_n "checking for $ac_word... " >&6; }
3908if ${ac_cv_prog_CC+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  if test -n "$CC"; then
3912  ac_cv_prog_CC="$CC" # Let the user override the test.
3913else
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917  IFS=$as_save_IFS
3918  test -z "$as_dir" && as_dir=.
3919    for ac_exec_ext in '' $ac_executable_extensions; do
3920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923    break 2
3924  fi
3925done
3926  done
3927IFS=$as_save_IFS
3928
3929fi
3930fi
3931CC=$ac_cv_prog_CC
3932if test -n "$CC"; then
3933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934$as_echo "$CC" >&6; }
3935else
3936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937$as_echo "no" >&6; }
3938fi
3939
3940
3941    test -n "$CC" && break
3942  done
3943fi
3944if test -z "$CC"; then
3945  ac_ct_CC=$CC
3946  for ac_prog in cl.exe
3947do
3948  # Extract the first word of "$ac_prog", so it can be a program name with args.
3949set dummy $ac_prog; ac_word=$2
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951$as_echo_n "checking for $ac_word... " >&6; }
3952if ${ac_cv_prog_ac_ct_CC+:} false; then :
3953  $as_echo_n "(cached) " >&6
3954else
3955  if test -n "$ac_ct_CC"; then
3956  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3957else
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961  IFS=$as_save_IFS
3962  test -z "$as_dir" && as_dir=.
3963    for ac_exec_ext in '' $ac_executable_extensions; do
3964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965    ac_cv_prog_ac_ct_CC="$ac_prog"
3966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3967    break 2
3968  fi
3969done
3970  done
3971IFS=$as_save_IFS
3972
3973fi
3974fi
3975ac_ct_CC=$ac_cv_prog_ac_ct_CC
3976if test -n "$ac_ct_CC"; then
3977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3978$as_echo "$ac_ct_CC" >&6; }
3979else
3980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981$as_echo "no" >&6; }
3982fi
3983
3984
3985  test -n "$ac_ct_CC" && break
3986done
3987
3988  if test "x$ac_ct_CC" = x; then
3989    CC=""
3990  else
3991    case $cross_compiling:$ac_tool_warned in
3992yes:)
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3995ac_tool_warned=yes ;;
3996esac
3997    CC=$ac_ct_CC
3998  fi
3999fi
4000
4001fi
4002
4003
4004test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006as_fn_error $? "no acceptable C compiler found in \$PATH
4007See \`config.log' for more details" "$LINENO" 5; }
4008
4009# Provide some information about the compiler.
4010$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4011set X $ac_compile
4012ac_compiler=$2
4013for ac_option in --version -v -V -qversion; do
4014  { { ac_try="$ac_compiler $ac_option >&5"
4015case "(($ac_try" in
4016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017  *) ac_try_echo=$ac_try;;
4018esac
4019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020$as_echo "$ac_try_echo"; } >&5
4021  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4022  ac_status=$?
4023  if test -s conftest.err; then
4024    sed '10a\
4025... rest of stderr output deleted ...
4026         10q' conftest.err >conftest.er1
4027    cat conftest.er1 >&5
4028  fi
4029  rm -f conftest.er1 conftest.err
4030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031  test $ac_status = 0; }
4032done
4033
4034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036
4037int
4038main ()
4039{
4040
4041  ;
4042  return 0;
4043}
4044_ACEOF
4045ac_clean_files_save=$ac_clean_files
4046ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4047# Try to create an executable without -o first, disregard a.out.
4048# It will help us diagnose broken compilers, and finding out an intuition
4049# of exeext.
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4051$as_echo_n "checking whether the C compiler works... " >&6; }
4052ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4053
4054# The possible output files:
4055ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4056
4057ac_rmfiles=
4058for ac_file in $ac_files
4059do
4060  case $ac_file in
4061    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4062    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4063  esac
4064done
4065rm -f $ac_rmfiles
4066
4067if { { ac_try="$ac_link_default"
4068case "(($ac_try" in
4069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070  *) ac_try_echo=$ac_try;;
4071esac
4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073$as_echo "$ac_try_echo"; } >&5
4074  (eval "$ac_link_default") 2>&5
4075  ac_status=$?
4076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077  test $ac_status = 0; }; then :
4078  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4079# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4080# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4081# so that the user can short-circuit this test for compilers unknown to
4082# Autoconf.
4083for ac_file in $ac_files ''
4084do
4085  test -f "$ac_file" || continue
4086  case $ac_file in
4087    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4088	;;
4089    [ab].out )
4090	# We found the default executable, but exeext='' is most
4091	# certainly right.
4092	break;;
4093    *.* )
4094	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4095	then :; else
4096	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4097	fi
4098	# We set ac_cv_exeext here because the later test for it is not
4099	# safe: cross compilers may not add the suffix if given an `-o'
4100	# argument, so we may need to know it at that point already.
4101	# Even if this section looks crufty: it has the advantage of
4102	# actually working.
4103	break;;
4104    * )
4105	break;;
4106  esac
4107done
4108test "$ac_cv_exeext" = no && ac_cv_exeext=
4109
4110else
4111  ac_file=''
4112fi
4113if test -z "$ac_file"; then :
4114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115$as_echo "no" >&6; }
4116$as_echo "$as_me: failed program was:" >&5
4117sed 's/^/| /' conftest.$ac_ext >&5
4118
4119{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4121as_fn_error 77 "C compiler cannot create executables
4122See \`config.log' for more details" "$LINENO" 5; }
4123else
4124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4125$as_echo "yes" >&6; }
4126fi
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4128$as_echo_n "checking for C compiler default output file name... " >&6; }
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4130$as_echo "$ac_file" >&6; }
4131ac_exeext=$ac_cv_exeext
4132
4133rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4134ac_clean_files=$ac_clean_files_save
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4136$as_echo_n "checking for suffix of executables... " >&6; }
4137if { { ac_try="$ac_link"
4138case "(($ac_try" in
4139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140  *) ac_try_echo=$ac_try;;
4141esac
4142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143$as_echo "$ac_try_echo"; } >&5
4144  (eval "$ac_link") 2>&5
4145  ac_status=$?
4146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147  test $ac_status = 0; }; then :
4148  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4149# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4150# work properly (i.e., refer to `conftest.exe'), while it won't with
4151# `rm'.
4152for ac_file in conftest.exe conftest conftest.*; do
4153  test -f "$ac_file" || continue
4154  case $ac_file in
4155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4156    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4157	  break;;
4158    * ) break;;
4159  esac
4160done
4161else
4162  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4165See \`config.log' for more details" "$LINENO" 5; }
4166fi
4167rm -f conftest conftest$ac_cv_exeext
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4169$as_echo "$ac_cv_exeext" >&6; }
4170
4171rm -f conftest.$ac_ext
4172EXEEXT=$ac_cv_exeext
4173ac_exeext=$EXEEXT
4174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175/* end confdefs.h.  */
4176#include <stdio.h>
4177int
4178main ()
4179{
4180FILE *f = fopen ("conftest.out", "w");
4181 return ferror (f) || fclose (f) != 0;
4182
4183  ;
4184  return 0;
4185}
4186_ACEOF
4187ac_clean_files="$ac_clean_files conftest.out"
4188# Check that the compiler produces executables we can run.  If not, either
4189# the compiler is broken, or we cross compile.
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4191$as_echo_n "checking whether we are cross compiling... " >&6; }
4192if test "$cross_compiling" != yes; then
4193  { { ac_try="$ac_link"
4194case "(($ac_try" in
4195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196  *) ac_try_echo=$ac_try;;
4197esac
4198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199$as_echo "$ac_try_echo"; } >&5
4200  (eval "$ac_link") 2>&5
4201  ac_status=$?
4202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4203  test $ac_status = 0; }
4204  if { ac_try='./conftest$ac_cv_exeext'
4205  { { case "(($ac_try" in
4206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207  *) ac_try_echo=$ac_try;;
4208esac
4209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210$as_echo "$ac_try_echo"; } >&5
4211  (eval "$ac_try") 2>&5
4212  ac_status=$?
4213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214  test $ac_status = 0; }; }; then
4215    cross_compiling=no
4216  else
4217    if test "$cross_compiling" = maybe; then
4218	cross_compiling=yes
4219    else
4220	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4222as_fn_error $? "cannot run C compiled programs.
4223If you meant to cross compile, use \`--host'.
4224See \`config.log' for more details" "$LINENO" 5; }
4225    fi
4226  fi
4227fi
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4229$as_echo "$cross_compiling" >&6; }
4230
4231rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4232ac_clean_files=$ac_clean_files_save
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4234$as_echo_n "checking for suffix of object files... " >&6; }
4235if ${ac_cv_objext+:} false; then :
4236  $as_echo_n "(cached) " >&6
4237else
4238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h.  */
4240
4241int
4242main ()
4243{
4244
4245  ;
4246  return 0;
4247}
4248_ACEOF
4249rm -f conftest.o conftest.obj
4250if { { ac_try="$ac_compile"
4251case "(($ac_try" in
4252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253  *) ac_try_echo=$ac_try;;
4254esac
4255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256$as_echo "$ac_try_echo"; } >&5
4257  (eval "$ac_compile") 2>&5
4258  ac_status=$?
4259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260  test $ac_status = 0; }; then :
4261  for ac_file in conftest.o conftest.obj conftest.*; do
4262  test -f "$ac_file" || continue;
4263  case $ac_file in
4264    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4265    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4266       break;;
4267  esac
4268done
4269else
4270  $as_echo "$as_me: failed program was:" >&5
4271sed 's/^/| /' conftest.$ac_ext >&5
4272
4273{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4275as_fn_error $? "cannot compute suffix of object files: cannot compile
4276See \`config.log' for more details" "$LINENO" 5; }
4277fi
4278rm -f conftest.$ac_cv_objext conftest.$ac_ext
4279fi
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4281$as_echo "$ac_cv_objext" >&6; }
4282OBJEXT=$ac_cv_objext
4283ac_objext=$OBJEXT
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4285$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4286if ${ac_cv_c_compiler_gnu+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290/* end confdefs.h.  */
4291
4292int
4293main ()
4294{
4295#ifndef __GNUC__
4296       choke me
4297#endif
4298
4299  ;
4300  return 0;
4301}
4302_ACEOF
4303if ac_fn_c_try_compile "$LINENO"; then :
4304  ac_compiler_gnu=yes
4305else
4306  ac_compiler_gnu=no
4307fi
4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309ac_cv_c_compiler_gnu=$ac_compiler_gnu
4310
4311fi
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4313$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4314if test $ac_compiler_gnu = yes; then
4315  GCC=yes
4316else
4317  GCC=
4318fi
4319ac_test_CFLAGS=${CFLAGS+set}
4320ac_save_CFLAGS=$CFLAGS
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4322$as_echo_n "checking whether $CC accepts -g... " >&6; }
4323if ${ac_cv_prog_cc_g+:} false; then :
4324  $as_echo_n "(cached) " >&6
4325else
4326  ac_save_c_werror_flag=$ac_c_werror_flag
4327   ac_c_werror_flag=yes
4328   ac_cv_prog_cc_g=no
4329   CFLAGS="-g"
4330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h.  */
4332
4333int
4334main ()
4335{
4336
4337  ;
4338  return 0;
4339}
4340_ACEOF
4341if ac_fn_c_try_compile "$LINENO"; then :
4342  ac_cv_prog_cc_g=yes
4343else
4344  CFLAGS=""
4345      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h.  */
4347
4348int
4349main ()
4350{
4351
4352  ;
4353  return 0;
4354}
4355_ACEOF
4356if ac_fn_c_try_compile "$LINENO"; then :
4357
4358else
4359  ac_c_werror_flag=$ac_save_c_werror_flag
4360	 CFLAGS="-g"
4361	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362/* end confdefs.h.  */
4363
4364int
4365main ()
4366{
4367
4368  ;
4369  return 0;
4370}
4371_ACEOF
4372if ac_fn_c_try_compile "$LINENO"; then :
4373  ac_cv_prog_cc_g=yes
4374fi
4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376fi
4377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378fi
4379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380   ac_c_werror_flag=$ac_save_c_werror_flag
4381fi
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4383$as_echo "$ac_cv_prog_cc_g" >&6; }
4384if test "$ac_test_CFLAGS" = set; then
4385  CFLAGS=$ac_save_CFLAGS
4386elif test $ac_cv_prog_cc_g = yes; then
4387  if test "$GCC" = yes; then
4388    CFLAGS="-g -O2"
4389  else
4390    CFLAGS="-g"
4391  fi
4392else
4393  if test "$GCC" = yes; then
4394    CFLAGS="-O2"
4395  else
4396    CFLAGS=
4397  fi
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4400$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4401if ${ac_cv_prog_cc_c89+:} false; then :
4402  $as_echo_n "(cached) " >&6
4403else
4404  ac_cv_prog_cc_c89=no
4405ac_save_CC=$CC
4406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h.  */
4408#include <stdarg.h>
4409#include <stdio.h>
4410struct stat;
4411/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4412struct buf { int x; };
4413FILE * (*rcsopen) (struct buf *, struct stat *, int);
4414static char *e (p, i)
4415     char **p;
4416     int i;
4417{
4418  return p[i];
4419}
4420static char *f (char * (*g) (char **, int), char **p, ...)
4421{
4422  char *s;
4423  va_list v;
4424  va_start (v,p);
4425  s = g (p, va_arg (v,int));
4426  va_end (v);
4427  return s;
4428}
4429
4430/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4431   function prototypes and stuff, but not '\xHH' hex character constants.
4432   These don't provoke an error unfortunately, instead are silently treated
4433   as 'x'.  The following induces an error, until -std is added to get
4434   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4435   array size at least.  It's necessary to write '\x00'==0 to get something
4436   that's true only with -std.  */
4437int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4438
4439/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4440   inside strings and character constants.  */
4441#define FOO(x) 'x'
4442int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4443
4444int test (int i, double x);
4445struct s1 {int (*f) (int a);};
4446struct s2 {int (*f) (double a);};
4447int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4448int argc;
4449char **argv;
4450int
4451main ()
4452{
4453return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4454  ;
4455  return 0;
4456}
4457_ACEOF
4458for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4459	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4460do
4461  CC="$ac_save_CC $ac_arg"
4462  if ac_fn_c_try_compile "$LINENO"; then :
4463  ac_cv_prog_cc_c89=$ac_arg
4464fi
4465rm -f core conftest.err conftest.$ac_objext
4466  test "x$ac_cv_prog_cc_c89" != "xno" && break
4467done
4468rm -f conftest.$ac_ext
4469CC=$ac_save_CC
4470
4471fi
4472# AC_CACHE_VAL
4473case "x$ac_cv_prog_cc_c89" in
4474  x)
4475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4476$as_echo "none needed" >&6; } ;;
4477  xno)
4478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4479$as_echo "unsupported" >&6; } ;;
4480  *)
4481    CC="$CC $ac_cv_prog_cc_c89"
4482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4483$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4484esac
4485if test "x$ac_cv_prog_cc_c89" != xno; then :
4486
4487fi
4488
4489ac_ext=c
4490ac_cpp='$CPP $CPPFLAGS'
4491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495ac_ext=c
4496ac_cpp='$CPP $CPPFLAGS'
4497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4501$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4502if ${am_cv_prog_cc_c_o+:} false; then :
4503  $as_echo_n "(cached) " >&6
4504else
4505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506/* end confdefs.h.  */
4507
4508int
4509main ()
4510{
4511
4512  ;
4513  return 0;
4514}
4515_ACEOF
4516  # Make sure it works both with $CC and with simple cc.
4517  # Following AC_PROG_CC_C_O, we do the test twice because some
4518  # compilers refuse to overwrite an existing .o file with -o,
4519  # though they will create one.
4520  am_cv_prog_cc_c_o=yes
4521  for am_i in 1 2; do
4522    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4523   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4524   ac_status=$?
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); } \
4527         && test -f conftest2.$ac_objext; then
4528      : OK
4529    else
4530      am_cv_prog_cc_c_o=no
4531      break
4532    fi
4533  done
4534  rm -f core conftest*
4535  unset am_i
4536fi
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4538$as_echo "$am_cv_prog_cc_c_o" >&6; }
4539if test "$am_cv_prog_cc_c_o" != yes; then
4540   # Losing compiler, so override with the script.
4541   # FIXME: It is wrong to rewrite CC.
4542   # But if we don't then we get into trouble of one sort or another.
4543   # A longer-term fix would be to have automake use am__CC in this case,
4544   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4545   CC="$am_aux_dir/compile $CC"
4546fi
4547ac_ext=c
4548ac_cpp='$CPP $CPPFLAGS'
4549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552
4553
4554depcc="$CC"   am_compiler_list=
4555
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4557$as_echo_n "checking dependency style of $depcc... " >&6; }
4558if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4559  $as_echo_n "(cached) " >&6
4560else
4561  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4562  # We make a subdir and do the tests there.  Otherwise we can end up
4563  # making bogus files that we don't know about and never remove.  For
4564  # instance it was reported that on HP-UX the gcc test will end up
4565  # making a dummy file named 'D' -- because '-MD' means "put the output
4566  # in D".
4567  rm -rf conftest.dir
4568  mkdir conftest.dir
4569  # Copy depcomp to subdir because otherwise we won't find it if we're
4570  # using a relative directory.
4571  cp "$am_depcomp" conftest.dir
4572  cd conftest.dir
4573  # We will build objects and dependencies in a subdirectory because
4574  # it helps to detect inapplicable dependency modes.  For instance
4575  # both Tru64's cc and ICC support -MD to output dependencies as a
4576  # side effect of compilation, but ICC will put the dependencies in
4577  # the current directory while Tru64 will put them in the object
4578  # directory.
4579  mkdir sub
4580
4581  am_cv_CC_dependencies_compiler_type=none
4582  if test "$am_compiler_list" = ""; then
4583     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4584  fi
4585  am__universal=false
4586  case " $depcc " in #(
4587     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4588     esac
4589
4590  for depmode in $am_compiler_list; do
4591    # Setup a source with many dependencies, because some compilers
4592    # like to wrap large dependency lists on column 80 (with \), and
4593    # we should not choose a depcomp mode which is confused by this.
4594    #
4595    # We need to recreate these files for each test, as the compiler may
4596    # overwrite some of them when testing with obscure command lines.
4597    # This happens at least with the AIX C compiler.
4598    : > sub/conftest.c
4599    for i in 1 2 3 4 5 6; do
4600      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4601      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4602      # Solaris 10 /bin/sh.
4603      echo '/* dummy */' > sub/conftst$i.h
4604    done
4605    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4606
4607    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4608    # mode.  It turns out that the SunPro C++ compiler does not properly
4609    # handle '-M -o', and we need to detect this.  Also, some Intel
4610    # versions had trouble with output in subdirs.
4611    am__obj=sub/conftest.${OBJEXT-o}
4612    am__minus_obj="-o $am__obj"
4613    case $depmode in
4614    gcc)
4615      # This depmode causes a compiler race in universal mode.
4616      test "$am__universal" = false || continue
4617      ;;
4618    nosideeffect)
4619      # After this tag, mechanisms are not by side-effect, so they'll
4620      # only be used when explicitly requested.
4621      if test "x$enable_dependency_tracking" = xyes; then
4622	continue
4623      else
4624	break
4625      fi
4626      ;;
4627    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4628      # This compiler won't grok '-c -o', but also, the minuso test has
4629      # not run yet.  These depmodes are late enough in the game, and
4630      # so weak that their functioning should not be impacted.
4631      am__obj=conftest.${OBJEXT-o}
4632      am__minus_obj=
4633      ;;
4634    none) break ;;
4635    esac
4636    if depmode=$depmode \
4637       source=sub/conftest.c object=$am__obj \
4638       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4639       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4640         >/dev/null 2>conftest.err &&
4641       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4642       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4643       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4644       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4645      # icc doesn't choke on unknown options, it will just issue warnings
4646      # or remarks (even with -Werror).  So we grep stderr for any message
4647      # that says an option was ignored or not supported.
4648      # When given -MP, icc 7.0 and 7.1 complain thusly:
4649      #   icc: Command line warning: ignoring option '-M'; no argument required
4650      # The diagnosis changed in icc 8.0:
4651      #   icc: Command line remark: option '-MP' not supported
4652      if (grep 'ignoring option' conftest.err ||
4653          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4654        am_cv_CC_dependencies_compiler_type=$depmode
4655        break
4656      fi
4657    fi
4658  done
4659
4660  cd ..
4661  rm -rf conftest.dir
4662else
4663  am_cv_CC_dependencies_compiler_type=none
4664fi
4665
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4668$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4669CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4670
4671 if
4672  test "x$enable_dependency_tracking" != xno \
4673  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4674  am__fastdepCC_TRUE=
4675  am__fastdepCC_FALSE='#'
4676else
4677  am__fastdepCC_TRUE='#'
4678  am__fastdepCC_FALSE=
4679fi
4680
4681
4682
4683if test -n "$ac_tool_prefix"; then
4684  for ac_prog in ar lib "link -lib"
4685  do
4686    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4687set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689$as_echo_n "checking for $ac_word... " >&6; }
4690if ${ac_cv_prog_AR+:} false; then :
4691  $as_echo_n "(cached) " >&6
4692else
4693  if test -n "$AR"; then
4694  ac_cv_prog_AR="$AR" # Let the user override the test.
4695else
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699  IFS=$as_save_IFS
4700  test -z "$as_dir" && as_dir=.
4701    for ac_exec_ext in '' $ac_executable_extensions; do
4702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705    break 2
4706  fi
4707done
4708  done
4709IFS=$as_save_IFS
4710
4711fi
4712fi
4713AR=$ac_cv_prog_AR
4714if test -n "$AR"; then
4715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4716$as_echo "$AR" >&6; }
4717else
4718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719$as_echo "no" >&6; }
4720fi
4721
4722
4723    test -n "$AR" && break
4724  done
4725fi
4726if test -z "$AR"; then
4727  ac_ct_AR=$AR
4728  for ac_prog in ar lib "link -lib"
4729do
4730  # Extract the first word of "$ac_prog", so it can be a program name with args.
4731set dummy $ac_prog; ac_word=$2
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733$as_echo_n "checking for $ac_word... " >&6; }
4734if ${ac_cv_prog_ac_ct_AR+:} false; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737  if test -n "$ac_ct_AR"; then
4738  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743  IFS=$as_save_IFS
4744  test -z "$as_dir" && as_dir=.
4745    for ac_exec_ext in '' $ac_executable_extensions; do
4746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747    ac_cv_prog_ac_ct_AR="$ac_prog"
4748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749    break 2
4750  fi
4751done
4752  done
4753IFS=$as_save_IFS
4754
4755fi
4756fi
4757ac_ct_AR=$ac_cv_prog_ac_ct_AR
4758if test -n "$ac_ct_AR"; then
4759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4760$as_echo "$ac_ct_AR" >&6; }
4761else
4762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763$as_echo "no" >&6; }
4764fi
4765
4766
4767  test -n "$ac_ct_AR" && break
4768done
4769
4770  if test "x$ac_ct_AR" = x; then
4771    AR="false"
4772  else
4773    case $cross_compiling:$ac_tool_warned in
4774yes:)
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777ac_tool_warned=yes ;;
4778esac
4779    AR=$ac_ct_AR
4780  fi
4781fi
4782
4783: ${AR=ar}
4784
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4786$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4787if ${am_cv_ar_interface+:} false; then :
4788  $as_echo_n "(cached) " >&6
4789else
4790  ac_ext=c
4791ac_cpp='$CPP $CPPFLAGS'
4792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795
4796   am_cv_ar_interface=ar
4797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h.  */
4799int some_variable = 0;
4800_ACEOF
4801if ac_fn_c_try_compile "$LINENO"; then :
4802  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4803      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4804  (eval $am_ar_try) 2>&5
4805  ac_status=$?
4806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807  test $ac_status = 0; }
4808      if test "$ac_status" -eq 0; then
4809        am_cv_ar_interface=ar
4810      else
4811        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4812        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4813  (eval $am_ar_try) 2>&5
4814  ac_status=$?
4815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816  test $ac_status = 0; }
4817        if test "$ac_status" -eq 0; then
4818          am_cv_ar_interface=lib
4819        else
4820          am_cv_ar_interface=unknown
4821        fi
4822      fi
4823      rm -f conftest.lib libconftest.a
4824
4825fi
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827   ac_ext=c
4828ac_cpp='$CPP $CPPFLAGS'
4829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832
4833fi
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4835$as_echo "$am_cv_ar_interface" >&6; }
4836
4837case $am_cv_ar_interface in
4838ar)
4839  ;;
4840lib)
4841  # Microsoft lib, so override with the ar-lib wrapper script.
4842  # FIXME: It is wrong to rewrite AR.
4843  # But if we don't then we get into trouble of one sort or another.
4844  # A longer-term fix would be to have automake use am__AR in this case,
4845  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4846  # similar.
4847  AR="$am_aux_dir/ar-lib $AR"
4848  ;;
4849unknown)
4850  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4851  ;;
4852esac
4853
4854
4855# Make sure we can run config.sub.
4856$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4857  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4858
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4860$as_echo_n "checking build system type... " >&6; }
4861if ${ac_cv_build+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  ac_build_alias=$build_alias
4865test "x$ac_build_alias" = x &&
4866  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4867test "x$ac_build_alias" = x &&
4868  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4869ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4870  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4871
4872fi
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4874$as_echo "$ac_cv_build" >&6; }
4875case $ac_cv_build in
4876*-*-*) ;;
4877*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4878esac
4879build=$ac_cv_build
4880ac_save_IFS=$IFS; IFS='-'
4881set x $ac_cv_build
4882shift
4883build_cpu=$1
4884build_vendor=$2
4885shift; shift
4886# Remember, the first character of IFS is used to create $*,
4887# except with old shells:
4888build_os=$*
4889IFS=$ac_save_IFS
4890case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4891
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4894$as_echo_n "checking host system type... " >&6; }
4895if ${ac_cv_host+:} false; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  if test "x$host_alias" = x; then
4899  ac_cv_host=$ac_cv_build
4900else
4901  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4902    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4903fi
4904
4905fi
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4907$as_echo "$ac_cv_host" >&6; }
4908case $ac_cv_host in
4909*-*-*) ;;
4910*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4911esac
4912host=$ac_cv_host
4913ac_save_IFS=$IFS; IFS='-'
4914set x $ac_cv_host
4915shift
4916host_cpu=$1
4917host_vendor=$2
4918shift; shift
4919# Remember, the first character of IFS is used to create $*,
4920# except with old shells:
4921host_os=$*
4922IFS=$ac_save_IFS
4923case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4924
4925
4926
4927# Checks for programs.
4928ac_ext=c
4929ac_cpp='$CPP $CPPFLAGS'
4930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933if test -n "$ac_tool_prefix"; then
4934  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4935set dummy ${ac_tool_prefix}gcc; ac_word=$2
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937$as_echo_n "checking for $ac_word... " >&6; }
4938if ${ac_cv_prog_CC+:} false; then :
4939  $as_echo_n "(cached) " >&6
4940else
4941  if test -n "$CC"; then
4942  ac_cv_prog_CC="$CC" # Let the user override the test.
4943else
4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947  IFS=$as_save_IFS
4948  test -z "$as_dir" && as_dir=.
4949    for ac_exec_ext in '' $ac_executable_extensions; do
4950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953    break 2
4954  fi
4955done
4956  done
4957IFS=$as_save_IFS
4958
4959fi
4960fi
4961CC=$ac_cv_prog_CC
4962if test -n "$CC"; then
4963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4964$as_echo "$CC" >&6; }
4965else
4966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967$as_echo "no" >&6; }
4968fi
4969
4970
4971fi
4972if test -z "$ac_cv_prog_CC"; then
4973  ac_ct_CC=$CC
4974  # Extract the first word of "gcc", so it can be a program name with args.
4975set dummy gcc; ac_word=$2
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977$as_echo_n "checking for $ac_word... " >&6; }
4978if ${ac_cv_prog_ac_ct_CC+:} false; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  if test -n "$ac_ct_CC"; then
4982  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4983else
4984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985for as_dir in $PATH
4986do
4987  IFS=$as_save_IFS
4988  test -z "$as_dir" && as_dir=.
4989    for ac_exec_ext in '' $ac_executable_extensions; do
4990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991    ac_cv_prog_ac_ct_CC="gcc"
4992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993    break 2
4994  fi
4995done
4996  done
4997IFS=$as_save_IFS
4998
4999fi
5000fi
5001ac_ct_CC=$ac_cv_prog_ac_ct_CC
5002if test -n "$ac_ct_CC"; then
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5004$as_echo "$ac_ct_CC" >&6; }
5005else
5006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007$as_echo "no" >&6; }
5008fi
5009
5010  if test "x$ac_ct_CC" = x; then
5011    CC=""
5012  else
5013    case $cross_compiling:$ac_tool_warned in
5014yes:)
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5017ac_tool_warned=yes ;;
5018esac
5019    CC=$ac_ct_CC
5020  fi
5021else
5022  CC="$ac_cv_prog_CC"
5023fi
5024
5025if test -z "$CC"; then
5026          if test -n "$ac_tool_prefix"; then
5027    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5028set dummy ${ac_tool_prefix}cc; ac_word=$2
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030$as_echo_n "checking for $ac_word... " >&6; }
5031if ${ac_cv_prog_CC+:} false; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  if test -n "$CC"; then
5035  ac_cv_prog_CC="$CC" # Let the user override the test.
5036else
5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040  IFS=$as_save_IFS
5041  test -z "$as_dir" && as_dir=.
5042    for ac_exec_ext in '' $ac_executable_extensions; do
5043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044    ac_cv_prog_CC="${ac_tool_prefix}cc"
5045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046    break 2
5047  fi
5048done
5049  done
5050IFS=$as_save_IFS
5051
5052fi
5053fi
5054CC=$ac_cv_prog_CC
5055if test -n "$CC"; then
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5057$as_echo "$CC" >&6; }
5058else
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060$as_echo "no" >&6; }
5061fi
5062
5063
5064  fi
5065fi
5066if test -z "$CC"; then
5067  # Extract the first word of "cc", so it can be a program name with args.
5068set dummy cc; ac_word=$2
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070$as_echo_n "checking for $ac_word... " >&6; }
5071if ${ac_cv_prog_CC+:} false; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074  if test -n "$CC"; then
5075  ac_cv_prog_CC="$CC" # Let the user override the test.
5076else
5077  ac_prog_rejected=no
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081  IFS=$as_save_IFS
5082  test -z "$as_dir" && as_dir=.
5083    for ac_exec_ext in '' $ac_executable_extensions; do
5084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5086       ac_prog_rejected=yes
5087       continue
5088     fi
5089    ac_cv_prog_CC="cc"
5090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091    break 2
5092  fi
5093done
5094  done
5095IFS=$as_save_IFS
5096
5097if test $ac_prog_rejected = yes; then
5098  # We found a bogon in the path, so make sure we never use it.
5099  set dummy $ac_cv_prog_CC
5100  shift
5101  if test $# != 0; then
5102    # We chose a different compiler from the bogus one.
5103    # However, it has the same basename, so the bogon will be chosen
5104    # first if we set CC to just the basename; use the full file name.
5105    shift
5106    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5107  fi
5108fi
5109fi
5110fi
5111CC=$ac_cv_prog_CC
5112if test -n "$CC"; then
5113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5114$as_echo "$CC" >&6; }
5115else
5116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117$as_echo "no" >&6; }
5118fi
5119
5120
5121fi
5122if test -z "$CC"; then
5123  if test -n "$ac_tool_prefix"; then
5124  for ac_prog in cl.exe
5125  do
5126    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5127set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129$as_echo_n "checking for $ac_word... " >&6; }
5130if ${ac_cv_prog_CC+:} false; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133  if test -n "$CC"; then
5134  ac_cv_prog_CC="$CC" # Let the user override the test.
5135else
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139  IFS=$as_save_IFS
5140  test -z "$as_dir" && as_dir=.
5141    for ac_exec_ext in '' $ac_executable_extensions; do
5142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145    break 2
5146  fi
5147done
5148  done
5149IFS=$as_save_IFS
5150
5151fi
5152fi
5153CC=$ac_cv_prog_CC
5154if test -n "$CC"; then
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5156$as_echo "$CC" >&6; }
5157else
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
5160fi
5161
5162
5163    test -n "$CC" && break
5164  done
5165fi
5166if test -z "$CC"; then
5167  ac_ct_CC=$CC
5168  for ac_prog in cl.exe
5169do
5170  # Extract the first word of "$ac_prog", so it can be a program name with args.
5171set dummy $ac_prog; ac_word=$2
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173$as_echo_n "checking for $ac_word... " >&6; }
5174if ${ac_cv_prog_ac_ct_CC+:} false; then :
5175  $as_echo_n "(cached) " >&6
5176else
5177  if test -n "$ac_ct_CC"; then
5178  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183  IFS=$as_save_IFS
5184  test -z "$as_dir" && as_dir=.
5185    for ac_exec_ext in '' $ac_executable_extensions; do
5186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187    ac_cv_prog_ac_ct_CC="$ac_prog"
5188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189    break 2
5190  fi
5191done
5192  done
5193IFS=$as_save_IFS
5194
5195fi
5196fi
5197ac_ct_CC=$ac_cv_prog_ac_ct_CC
5198if test -n "$ac_ct_CC"; then
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5200$as_echo "$ac_ct_CC" >&6; }
5201else
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
5204fi
5205
5206
5207  test -n "$ac_ct_CC" && break
5208done
5209
5210  if test "x$ac_ct_CC" = x; then
5211    CC=""
5212  else
5213    case $cross_compiling:$ac_tool_warned in
5214yes:)
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217ac_tool_warned=yes ;;
5218esac
5219    CC=$ac_ct_CC
5220  fi
5221fi
5222
5223fi
5224
5225
5226test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5228as_fn_error $? "no acceptable C compiler found in \$PATH
5229See \`config.log' for more details" "$LINENO" 5; }
5230
5231# Provide some information about the compiler.
5232$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5233set X $ac_compile
5234ac_compiler=$2
5235for ac_option in --version -v -V -qversion; do
5236  { { ac_try="$ac_compiler $ac_option >&5"
5237case "(($ac_try" in
5238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239  *) ac_try_echo=$ac_try;;
5240esac
5241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5242$as_echo "$ac_try_echo"; } >&5
5243  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5244  ac_status=$?
5245  if test -s conftest.err; then
5246    sed '10a\
5247... rest of stderr output deleted ...
5248         10q' conftest.err >conftest.er1
5249    cat conftest.er1 >&5
5250  fi
5251  rm -f conftest.er1 conftest.err
5252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5253  test $ac_status = 0; }
5254done
5255
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5257$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5258if ${ac_cv_c_compiler_gnu+:} false; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263
5264int
5265main ()
5266{
5267#ifndef __GNUC__
5268       choke me
5269#endif
5270
5271  ;
5272  return 0;
5273}
5274_ACEOF
5275if ac_fn_c_try_compile "$LINENO"; then :
5276  ac_compiler_gnu=yes
5277else
5278  ac_compiler_gnu=no
5279fi
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281ac_cv_c_compiler_gnu=$ac_compiler_gnu
5282
5283fi
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5285$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5286if test $ac_compiler_gnu = yes; then
5287  GCC=yes
5288else
5289  GCC=
5290fi
5291ac_test_CFLAGS=${CFLAGS+set}
5292ac_save_CFLAGS=$CFLAGS
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5294$as_echo_n "checking whether $CC accepts -g... " >&6; }
5295if ${ac_cv_prog_cc_g+:} false; then :
5296  $as_echo_n "(cached) " >&6
5297else
5298  ac_save_c_werror_flag=$ac_c_werror_flag
5299   ac_c_werror_flag=yes
5300   ac_cv_prog_cc_g=no
5301   CFLAGS="-g"
5302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303/* end confdefs.h.  */
5304
5305int
5306main ()
5307{
5308
5309  ;
5310  return 0;
5311}
5312_ACEOF
5313if ac_fn_c_try_compile "$LINENO"; then :
5314  ac_cv_prog_cc_g=yes
5315else
5316  CFLAGS=""
5317      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h.  */
5319
5320int
5321main ()
5322{
5323
5324  ;
5325  return 0;
5326}
5327_ACEOF
5328if ac_fn_c_try_compile "$LINENO"; then :
5329
5330else
5331  ac_c_werror_flag=$ac_save_c_werror_flag
5332	 CFLAGS="-g"
5333	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h.  */
5335
5336int
5337main ()
5338{
5339
5340  ;
5341  return 0;
5342}
5343_ACEOF
5344if ac_fn_c_try_compile "$LINENO"; then :
5345  ac_cv_prog_cc_g=yes
5346fi
5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348fi
5349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350fi
5351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352   ac_c_werror_flag=$ac_save_c_werror_flag
5353fi
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5355$as_echo "$ac_cv_prog_cc_g" >&6; }
5356if test "$ac_test_CFLAGS" = set; then
5357  CFLAGS=$ac_save_CFLAGS
5358elif test $ac_cv_prog_cc_g = yes; then
5359  if test "$GCC" = yes; then
5360    CFLAGS="-g -O2"
5361  else
5362    CFLAGS="-g"
5363  fi
5364else
5365  if test "$GCC" = yes; then
5366    CFLAGS="-O2"
5367  else
5368    CFLAGS=
5369  fi
5370fi
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5372$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5373if ${ac_cv_prog_cc_c89+:} false; then :
5374  $as_echo_n "(cached) " >&6
5375else
5376  ac_cv_prog_cc_c89=no
5377ac_save_CC=$CC
5378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h.  */
5380#include <stdarg.h>
5381#include <stdio.h>
5382struct stat;
5383/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5384struct buf { int x; };
5385FILE * (*rcsopen) (struct buf *, struct stat *, int);
5386static char *e (p, i)
5387     char **p;
5388     int i;
5389{
5390  return p[i];
5391}
5392static char *f (char * (*g) (char **, int), char **p, ...)
5393{
5394  char *s;
5395  va_list v;
5396  va_start (v,p);
5397  s = g (p, va_arg (v,int));
5398  va_end (v);
5399  return s;
5400}
5401
5402/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5403   function prototypes and stuff, but not '\xHH' hex character constants.
5404   These don't provoke an error unfortunately, instead are silently treated
5405   as 'x'.  The following induces an error, until -std is added to get
5406   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5407   array size at least.  It's necessary to write '\x00'==0 to get something
5408   that's true only with -std.  */
5409int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5410
5411/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5412   inside strings and character constants.  */
5413#define FOO(x) 'x'
5414int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5415
5416int test (int i, double x);
5417struct s1 {int (*f) (int a);};
5418struct s2 {int (*f) (double a);};
5419int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5420int argc;
5421char **argv;
5422int
5423main ()
5424{
5425return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5426  ;
5427  return 0;
5428}
5429_ACEOF
5430for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5431	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5432do
5433  CC="$ac_save_CC $ac_arg"
5434  if ac_fn_c_try_compile "$LINENO"; then :
5435  ac_cv_prog_cc_c89=$ac_arg
5436fi
5437rm -f core conftest.err conftest.$ac_objext
5438  test "x$ac_cv_prog_cc_c89" != "xno" && break
5439done
5440rm -f conftest.$ac_ext
5441CC=$ac_save_CC
5442
5443fi
5444# AC_CACHE_VAL
5445case "x$ac_cv_prog_cc_c89" in
5446  x)
5447    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5448$as_echo "none needed" >&6; } ;;
5449  xno)
5450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5451$as_echo "unsupported" >&6; } ;;
5452  *)
5453    CC="$CC $ac_cv_prog_cc_c89"
5454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5455$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5456esac
5457if test "x$ac_cv_prog_cc_c89" != xno; then :
5458
5459fi
5460
5461ac_ext=c
5462ac_cpp='$CPP $CPPFLAGS'
5463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5465ac_compiler_gnu=$ac_cv_c_compiler_gnu
5466
5467ac_ext=c
5468ac_cpp='$CPP $CPPFLAGS'
5469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5473$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5474if ${am_cv_prog_cc_c_o+:} false; then :
5475  $as_echo_n "(cached) " >&6
5476else
5477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478/* end confdefs.h.  */
5479
5480int
5481main ()
5482{
5483
5484  ;
5485  return 0;
5486}
5487_ACEOF
5488  # Make sure it works both with $CC and with simple cc.
5489  # Following AC_PROG_CC_C_O, we do the test twice because some
5490  # compilers refuse to overwrite an existing .o file with -o,
5491  # though they will create one.
5492  am_cv_prog_cc_c_o=yes
5493  for am_i in 1 2; do
5494    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5495   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } \
5499         && test -f conftest2.$ac_objext; then
5500      : OK
5501    else
5502      am_cv_prog_cc_c_o=no
5503      break
5504    fi
5505  done
5506  rm -f core conftest*
5507  unset am_i
5508fi
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5510$as_echo "$am_cv_prog_cc_c_o" >&6; }
5511if test "$am_cv_prog_cc_c_o" != yes; then
5512   # Losing compiler, so override with the script.
5513   # FIXME: It is wrong to rewrite CC.
5514   # But if we don't then we get into trouble of one sort or another.
5515   # A longer-term fix would be to have automake use am__CC in this case,
5516   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5517   CC="$am_aux_dir/compile $CC"
5518fi
5519ac_ext=c
5520ac_cpp='$CPP $CPPFLAGS'
5521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524
5525
5526depcc="$CC"   am_compiler_list=
5527
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5529$as_echo_n "checking dependency style of $depcc... " >&6; }
5530if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5531  $as_echo_n "(cached) " >&6
5532else
5533  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5534  # We make a subdir and do the tests there.  Otherwise we can end up
5535  # making bogus files that we don't know about and never remove.  For
5536  # instance it was reported that on HP-UX the gcc test will end up
5537  # making a dummy file named 'D' -- because '-MD' means "put the output
5538  # in D".
5539  rm -rf conftest.dir
5540  mkdir conftest.dir
5541  # Copy depcomp to subdir because otherwise we won't find it if we're
5542  # using a relative directory.
5543  cp "$am_depcomp" conftest.dir
5544  cd conftest.dir
5545  # We will build objects and dependencies in a subdirectory because
5546  # it helps to detect inapplicable dependency modes.  For instance
5547  # both Tru64's cc and ICC support -MD to output dependencies as a
5548  # side effect of compilation, but ICC will put the dependencies in
5549  # the current directory while Tru64 will put them in the object
5550  # directory.
5551  mkdir sub
5552
5553  am_cv_CC_dependencies_compiler_type=none
5554  if test "$am_compiler_list" = ""; then
5555     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5556  fi
5557  am__universal=false
5558  case " $depcc " in #(
5559     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5560     esac
5561
5562  for depmode in $am_compiler_list; do
5563    # Setup a source with many dependencies, because some compilers
5564    # like to wrap large dependency lists on column 80 (with \), and
5565    # we should not choose a depcomp mode which is confused by this.
5566    #
5567    # We need to recreate these files for each test, as the compiler may
5568    # overwrite some of them when testing with obscure command lines.
5569    # This happens at least with the AIX C compiler.
5570    : > sub/conftest.c
5571    for i in 1 2 3 4 5 6; do
5572      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5573      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5574      # Solaris 10 /bin/sh.
5575      echo '/* dummy */' > sub/conftst$i.h
5576    done
5577    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5578
5579    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5580    # mode.  It turns out that the SunPro C++ compiler does not properly
5581    # handle '-M -o', and we need to detect this.  Also, some Intel
5582    # versions had trouble with output in subdirs.
5583    am__obj=sub/conftest.${OBJEXT-o}
5584    am__minus_obj="-o $am__obj"
5585    case $depmode in
5586    gcc)
5587      # This depmode causes a compiler race in universal mode.
5588      test "$am__universal" = false || continue
5589      ;;
5590    nosideeffect)
5591      # After this tag, mechanisms are not by side-effect, so they'll
5592      # only be used when explicitly requested.
5593      if test "x$enable_dependency_tracking" = xyes; then
5594	continue
5595      else
5596	break
5597      fi
5598      ;;
5599    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5600      # This compiler won't grok '-c -o', but also, the minuso test has
5601      # not run yet.  These depmodes are late enough in the game, and
5602      # so weak that their functioning should not be impacted.
5603      am__obj=conftest.${OBJEXT-o}
5604      am__minus_obj=
5605      ;;
5606    none) break ;;
5607    esac
5608    if depmode=$depmode \
5609       source=sub/conftest.c object=$am__obj \
5610       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5611       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5612         >/dev/null 2>conftest.err &&
5613       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5614       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5615       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5616       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5617      # icc doesn't choke on unknown options, it will just issue warnings
5618      # or remarks (even with -Werror).  So we grep stderr for any message
5619      # that says an option was ignored or not supported.
5620      # When given -MP, icc 7.0 and 7.1 complain thusly:
5621      #   icc: Command line warning: ignoring option '-M'; no argument required
5622      # The diagnosis changed in icc 8.0:
5623      #   icc: Command line remark: option '-MP' not supported
5624      if (grep 'ignoring option' conftest.err ||
5625          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5626        am_cv_CC_dependencies_compiler_type=$depmode
5627        break
5628      fi
5629    fi
5630  done
5631
5632  cd ..
5633  rm -rf conftest.dir
5634else
5635  am_cv_CC_dependencies_compiler_type=none
5636fi
5637
5638fi
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5640$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5641CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5642
5643 if
5644  test "x$enable_dependency_tracking" != xno \
5645  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5646  am__fastdepCC_TRUE=
5647  am__fastdepCC_FALSE='#'
5648else
5649  am__fastdepCC_TRUE='#'
5650  am__fastdepCC_FALSE=
5651fi
5652
5653
5654ac_ext=cpp
5655ac_cpp='$CXXCPP $CPPFLAGS'
5656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5659if test -z "$CXX"; then
5660  if test -n "$CCC"; then
5661    CXX=$CCC
5662  else
5663    if test -n "$ac_tool_prefix"; then
5664  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5665  do
5666    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5667set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669$as_echo_n "checking for $ac_word... " >&6; }
5670if ${ac_cv_prog_CXX+:} false; then :
5671  $as_echo_n "(cached) " >&6
5672else
5673  if test -n "$CXX"; then
5674  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5675else
5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH
5678do
5679  IFS=$as_save_IFS
5680  test -z "$as_dir" && as_dir=.
5681    for ac_exec_ext in '' $ac_executable_extensions; do
5682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685    break 2
5686  fi
5687done
5688  done
5689IFS=$as_save_IFS
5690
5691fi
5692fi
5693CXX=$ac_cv_prog_CXX
5694if test -n "$CXX"; then
5695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5696$as_echo "$CXX" >&6; }
5697else
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699$as_echo "no" >&6; }
5700fi
5701
5702
5703    test -n "$CXX" && break
5704  done
5705fi
5706if test -z "$CXX"; then
5707  ac_ct_CXX=$CXX
5708  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5709do
5710  # Extract the first word of "$ac_prog", so it can be a program name with args.
5711set dummy $ac_prog; ac_word=$2
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713$as_echo_n "checking for $ac_word... " >&6; }
5714if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  if test -n "$ac_ct_CXX"; then
5718  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5719else
5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723  IFS=$as_save_IFS
5724  test -z "$as_dir" && as_dir=.
5725    for ac_exec_ext in '' $ac_executable_extensions; do
5726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727    ac_cv_prog_ac_ct_CXX="$ac_prog"
5728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729    break 2
5730  fi
5731done
5732  done
5733IFS=$as_save_IFS
5734
5735fi
5736fi
5737ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5738if test -n "$ac_ct_CXX"; then
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5740$as_echo "$ac_ct_CXX" >&6; }
5741else
5742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743$as_echo "no" >&6; }
5744fi
5745
5746
5747  test -n "$ac_ct_CXX" && break
5748done
5749
5750  if test "x$ac_ct_CXX" = x; then
5751    CXX="g++"
5752  else
5753    case $cross_compiling:$ac_tool_warned in
5754yes:)
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5757ac_tool_warned=yes ;;
5758esac
5759    CXX=$ac_ct_CXX
5760  fi
5761fi
5762
5763  fi
5764fi
5765# Provide some information about the compiler.
5766$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5767set X $ac_compile
5768ac_compiler=$2
5769for ac_option in --version -v -V -qversion; do
5770  { { ac_try="$ac_compiler $ac_option >&5"
5771case "(($ac_try" in
5772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773  *) ac_try_echo=$ac_try;;
5774esac
5775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5776$as_echo "$ac_try_echo"; } >&5
5777  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5778  ac_status=$?
5779  if test -s conftest.err; then
5780    sed '10a\
5781... rest of stderr output deleted ...
5782         10q' conftest.err >conftest.er1
5783    cat conftest.er1 >&5
5784  fi
5785  rm -f conftest.er1 conftest.err
5786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5787  test $ac_status = 0; }
5788done
5789
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5791$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5792if ${ac_cv_cxx_compiler_gnu+:} false; then :
5793  $as_echo_n "(cached) " >&6
5794else
5795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796/* end confdefs.h.  */
5797
5798int
5799main ()
5800{
5801#ifndef __GNUC__
5802       choke me
5803#endif
5804
5805  ;
5806  return 0;
5807}
5808_ACEOF
5809if ac_fn_cxx_try_compile "$LINENO"; then :
5810  ac_compiler_gnu=yes
5811else
5812  ac_compiler_gnu=no
5813fi
5814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5816
5817fi
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5819$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5820if test $ac_compiler_gnu = yes; then
5821  GXX=yes
5822else
5823  GXX=
5824fi
5825ac_test_CXXFLAGS=${CXXFLAGS+set}
5826ac_save_CXXFLAGS=$CXXFLAGS
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5828$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5829if ${ac_cv_prog_cxx_g+:} false; then :
5830  $as_echo_n "(cached) " >&6
5831else
5832  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5833   ac_cxx_werror_flag=yes
5834   ac_cv_prog_cxx_g=no
5835   CXXFLAGS="-g"
5836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837/* end confdefs.h.  */
5838
5839int
5840main ()
5841{
5842
5843  ;
5844  return 0;
5845}
5846_ACEOF
5847if ac_fn_cxx_try_compile "$LINENO"; then :
5848  ac_cv_prog_cxx_g=yes
5849else
5850  CXXFLAGS=""
5851      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h.  */
5853
5854int
5855main ()
5856{
5857
5858  ;
5859  return 0;
5860}
5861_ACEOF
5862if ac_fn_cxx_try_compile "$LINENO"; then :
5863
5864else
5865  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5866	 CXXFLAGS="-g"
5867	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868/* end confdefs.h.  */
5869
5870int
5871main ()
5872{
5873
5874  ;
5875  return 0;
5876}
5877_ACEOF
5878if ac_fn_cxx_try_compile "$LINENO"; then :
5879  ac_cv_prog_cxx_g=yes
5880fi
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882fi
5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884fi
5885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5887fi
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5889$as_echo "$ac_cv_prog_cxx_g" >&6; }
5890if test "$ac_test_CXXFLAGS" = set; then
5891  CXXFLAGS=$ac_save_CXXFLAGS
5892elif test $ac_cv_prog_cxx_g = yes; then
5893  if test "$GXX" = yes; then
5894    CXXFLAGS="-g -O2"
5895  else
5896    CXXFLAGS="-g"
5897  fi
5898else
5899  if test "$GXX" = yes; then
5900    CXXFLAGS="-O2"
5901  else
5902    CXXFLAGS=
5903  fi
5904fi
5905ac_ext=c
5906ac_cpp='$CPP $CPPFLAGS'
5907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5909ac_compiler_gnu=$ac_cv_c_compiler_gnu
5910
5911depcc="$CXX"  am_compiler_list=
5912
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5914$as_echo_n "checking dependency style of $depcc... " >&6; }
5915if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5916  $as_echo_n "(cached) " >&6
5917else
5918  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5919  # We make a subdir and do the tests there.  Otherwise we can end up
5920  # making bogus files that we don't know about and never remove.  For
5921  # instance it was reported that on HP-UX the gcc test will end up
5922  # making a dummy file named 'D' -- because '-MD' means "put the output
5923  # in D".
5924  rm -rf conftest.dir
5925  mkdir conftest.dir
5926  # Copy depcomp to subdir because otherwise we won't find it if we're
5927  # using a relative directory.
5928  cp "$am_depcomp" conftest.dir
5929  cd conftest.dir
5930  # We will build objects and dependencies in a subdirectory because
5931  # it helps to detect inapplicable dependency modes.  For instance
5932  # both Tru64's cc and ICC support -MD to output dependencies as a
5933  # side effect of compilation, but ICC will put the dependencies in
5934  # the current directory while Tru64 will put them in the object
5935  # directory.
5936  mkdir sub
5937
5938  am_cv_CXX_dependencies_compiler_type=none
5939  if test "$am_compiler_list" = ""; then
5940     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5941  fi
5942  am__universal=false
5943  case " $depcc " in #(
5944     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5945     esac
5946
5947  for depmode in $am_compiler_list; do
5948    # Setup a source with many dependencies, because some compilers
5949    # like to wrap large dependency lists on column 80 (with \), and
5950    # we should not choose a depcomp mode which is confused by this.
5951    #
5952    # We need to recreate these files for each test, as the compiler may
5953    # overwrite some of them when testing with obscure command lines.
5954    # This happens at least with the AIX C compiler.
5955    : > sub/conftest.c
5956    for i in 1 2 3 4 5 6; do
5957      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5958      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5959      # Solaris 10 /bin/sh.
5960      echo '/* dummy */' > sub/conftst$i.h
5961    done
5962    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5963
5964    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5965    # mode.  It turns out that the SunPro C++ compiler does not properly
5966    # handle '-M -o', and we need to detect this.  Also, some Intel
5967    # versions had trouble with output in subdirs.
5968    am__obj=sub/conftest.${OBJEXT-o}
5969    am__minus_obj="-o $am__obj"
5970    case $depmode in
5971    gcc)
5972      # This depmode causes a compiler race in universal mode.
5973      test "$am__universal" = false || continue
5974      ;;
5975    nosideeffect)
5976      # After this tag, mechanisms are not by side-effect, so they'll
5977      # only be used when explicitly requested.
5978      if test "x$enable_dependency_tracking" = xyes; then
5979	continue
5980      else
5981	break
5982      fi
5983      ;;
5984    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5985      # This compiler won't grok '-c -o', but also, the minuso test has
5986      # not run yet.  These depmodes are late enough in the game, and
5987      # so weak that their functioning should not be impacted.
5988      am__obj=conftest.${OBJEXT-o}
5989      am__minus_obj=
5990      ;;
5991    none) break ;;
5992    esac
5993    if depmode=$depmode \
5994       source=sub/conftest.c object=$am__obj \
5995       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5996       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5997         >/dev/null 2>conftest.err &&
5998       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5999       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6000       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6001       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6002      # icc doesn't choke on unknown options, it will just issue warnings
6003      # or remarks (even with -Werror).  So we grep stderr for any message
6004      # that says an option was ignored or not supported.
6005      # When given -MP, icc 7.0 and 7.1 complain thusly:
6006      #   icc: Command line warning: ignoring option '-M'; no argument required
6007      # The diagnosis changed in icc 8.0:
6008      #   icc: Command line remark: option '-MP' not supported
6009      if (grep 'ignoring option' conftest.err ||
6010          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6011        am_cv_CXX_dependencies_compiler_type=$depmode
6012        break
6013      fi
6014    fi
6015  done
6016
6017  cd ..
6018  rm -rf conftest.dir
6019else
6020  am_cv_CXX_dependencies_compiler_type=none
6021fi
6022
6023fi
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6025$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6026CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6027
6028 if
6029  test "x$enable_dependency_tracking" != xno \
6030  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6031  am__fastdepCXX_TRUE=
6032  am__fastdepCXX_FALSE='#'
6033else
6034  am__fastdepCXX_TRUE='#'
6035  am__fastdepCXX_FALSE=
6036fi
6037
6038
6039
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6041$as_echo_n "checking whether ln -s works... " >&6; }
6042LN_S=$as_ln_s
6043if test "$LN_S" = "ln -s"; then
6044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6045$as_echo "yes" >&6; }
6046else
6047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6048$as_echo "no, using $LN_S" >&6; }
6049fi
6050
6051
6052# Required for per-target flags or subdir-objects with C sources.
6053
6054
6055# Set the standard the C library headers should conform to.
6056
6057
6058# Get compiler versions.
6059sr_prog_ver=`$CC --version 2>&5 | sed 1q 2>&5`
6060case $?:$sr_prog_ver in #(
6061  0:*[0-9].[0-9]*) :
6062    sr_cc_version=$sr_prog_ver ;; #(
6063  *) :
6064    sr_cc_version=unknown ;;
6065esac
6066sr_prog_ver=`$CXX --version 2>&5 | sed 1q 2>&5`
6067case $?:$sr_prog_ver in #(
6068  0:*[0-9].[0-9]*) :
6069    sr_cxx_version=$sr_prog_ver ;; #(
6070  *) :
6071    sr_cxx_version=unknown ;;
6072esac
6073
6074# Check for optional make features.
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE:-make} supports order-only prerequisites" >&5
6076$as_echo_n "checking whether ${MAKE:-make} supports order-only prerequisites... " >&6; }
6077if ${sr_cv_prog_make_order_only+:} false; then :
6078  $as_echo_n "(cached) " >&6
6079else
6080
6081cat >conftest.mk <<'_SREOF'
6082a: b | c
6083a b c: ; @:
6084.PHONY: a b c
6085_SREOF
6086if ${MAKE:-make} -f conftest.mk >&5 2>&5; then :
6087  sr_cv_prog_make_order_only=yes
6088else
6089  sr_cv_prog_make_order_only=no
6090fi
6091rm -f conftest.mk
6092
6093fi
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_cv_prog_make_order_only" >&5
6095$as_echo "$sr_cv_prog_make_order_only" >&6; }
6096if test "x$sr_cv_prog_make_order_only" = xyes; then :
6097  ORDER='|'
6098else
6099  ORDER=
6100fi
6101
6102
6103
6104# Initialize libtool.
6105case `pwd` in
6106  *\ * | *\	*)
6107    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6108$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6109esac
6110
6111
6112
6113macro_version='2.4.6'
6114macro_revision='2.4.6'
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128ltmain=$ac_aux_dir/ltmain.sh
6129
6130# Backslashify metacharacters that are still active within
6131# double-quoted strings.
6132sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6133
6134# Same as above, but do not quote variable references.
6135double_quote_subst='s/\(["`\\]\)/\\\1/g'
6136
6137# Sed substitution to delay expansion of an escaped shell variable in a
6138# double_quote_subst'ed string.
6139delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6140
6141# Sed substitution to delay expansion of an escaped single quote.
6142delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6143
6144# Sed substitution to avoid accidental globbing in evaled expressions
6145no_glob_subst='s/\*/\\\*/g'
6146
6147ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6148ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6149ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6150
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6152$as_echo_n "checking how to print strings... " >&6; }
6153# Test print first, because it will be a builtin if present.
6154if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6155   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6156  ECHO='print -r --'
6157elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6158  ECHO='printf %s\n'
6159else
6160  # Use this function as a fallback that always works.
6161  func_fallback_echo ()
6162  {
6163    eval 'cat <<_LTECHO_EOF
6164$1
6165_LTECHO_EOF'
6166  }
6167  ECHO='func_fallback_echo'
6168fi
6169
6170# func_echo_all arg...
6171# Invoke $ECHO with all args, space-separated.
6172func_echo_all ()
6173{
6174    $ECHO ""
6175}
6176
6177case $ECHO in
6178  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6179$as_echo "printf" >&6; } ;;
6180  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6181$as_echo "print -r" >&6; } ;;
6182  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6183$as_echo "cat" >&6; } ;;
6184esac
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6200$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6201if ${ac_cv_path_SED+:} false; then :
6202  $as_echo_n "(cached) " >&6
6203else
6204            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6205     for ac_i in 1 2 3 4 5 6 7; do
6206       ac_script="$ac_script$as_nl$ac_script"
6207     done
6208     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6209     { ac_script=; unset ac_script;}
6210     if test -z "$SED"; then
6211  ac_path_SED_found=false
6212  # Loop through the user's path and test for each of PROGNAME-LIST
6213  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216  IFS=$as_save_IFS
6217  test -z "$as_dir" && as_dir=.
6218    for ac_prog in sed gsed; do
6219    for ac_exec_ext in '' $ac_executable_extensions; do
6220      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6221      as_fn_executable_p "$ac_path_SED" || continue
6222# Check for GNU ac_path_SED and select it if it is found.
6223  # Check for GNU $ac_path_SED
6224case `"$ac_path_SED" --version 2>&1` in
6225*GNU*)
6226  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6227*)
6228  ac_count=0
6229  $as_echo_n 0123456789 >"conftest.in"
6230  while :
6231  do
6232    cat "conftest.in" "conftest.in" >"conftest.tmp"
6233    mv "conftest.tmp" "conftest.in"
6234    cp "conftest.in" "conftest.nl"
6235    $as_echo '' >> "conftest.nl"
6236    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6237    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6238    as_fn_arith $ac_count + 1 && ac_count=$as_val
6239    if test $ac_count -gt ${ac_path_SED_max-0}; then
6240      # Best one so far, save it but keep looking for a better one
6241      ac_cv_path_SED="$ac_path_SED"
6242      ac_path_SED_max=$ac_count
6243    fi
6244    # 10*(2^10) chars as input seems more than enough
6245    test $ac_count -gt 10 && break
6246  done
6247  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6248esac
6249
6250      $ac_path_SED_found && break 3
6251    done
6252  done
6253  done
6254IFS=$as_save_IFS
6255  if test -z "$ac_cv_path_SED"; then
6256    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6257  fi
6258else
6259  ac_cv_path_SED=$SED
6260fi
6261
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6264$as_echo "$ac_cv_path_SED" >&6; }
6265 SED="$ac_cv_path_SED"
6266  rm -f conftest.sed
6267
6268test -z "$SED" && SED=sed
6269Xsed="$SED -e 1s/^X//"
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6282$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6283if ${ac_cv_path_GREP+:} false; then :
6284  $as_echo_n "(cached) " >&6
6285else
6286  if test -z "$GREP"; then
6287  ac_path_GREP_found=false
6288  # Loop through the user's path and test for each of PROGNAME-LIST
6289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6291do
6292  IFS=$as_save_IFS
6293  test -z "$as_dir" && as_dir=.
6294    for ac_prog in grep ggrep; do
6295    for ac_exec_ext in '' $ac_executable_extensions; do
6296      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6297      as_fn_executable_p "$ac_path_GREP" || continue
6298# Check for GNU ac_path_GREP and select it if it is found.
6299  # Check for GNU $ac_path_GREP
6300case `"$ac_path_GREP" --version 2>&1` in
6301*GNU*)
6302  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6303*)
6304  ac_count=0
6305  $as_echo_n 0123456789 >"conftest.in"
6306  while :
6307  do
6308    cat "conftest.in" "conftest.in" >"conftest.tmp"
6309    mv "conftest.tmp" "conftest.in"
6310    cp "conftest.in" "conftest.nl"
6311    $as_echo 'GREP' >> "conftest.nl"
6312    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6313    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6314    as_fn_arith $ac_count + 1 && ac_count=$as_val
6315    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6316      # Best one so far, save it but keep looking for a better one
6317      ac_cv_path_GREP="$ac_path_GREP"
6318      ac_path_GREP_max=$ac_count
6319    fi
6320    # 10*(2^10) chars as input seems more than enough
6321    test $ac_count -gt 10 && break
6322  done
6323  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6324esac
6325
6326      $ac_path_GREP_found && break 3
6327    done
6328  done
6329  done
6330IFS=$as_save_IFS
6331  if test -z "$ac_cv_path_GREP"; then
6332    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6333  fi
6334else
6335  ac_cv_path_GREP=$GREP
6336fi
6337
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6340$as_echo "$ac_cv_path_GREP" >&6; }
6341 GREP="$ac_cv_path_GREP"
6342
6343
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6345$as_echo_n "checking for egrep... " >&6; }
6346if ${ac_cv_path_EGREP+:} false; then :
6347  $as_echo_n "(cached) " >&6
6348else
6349  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6350   then ac_cv_path_EGREP="$GREP -E"
6351   else
6352     if test -z "$EGREP"; then
6353  ac_path_EGREP_found=false
6354  # Loop through the user's path and test for each of PROGNAME-LIST
6355  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6357do
6358  IFS=$as_save_IFS
6359  test -z "$as_dir" && as_dir=.
6360    for ac_prog in egrep; do
6361    for ac_exec_ext in '' $ac_executable_extensions; do
6362      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6363      as_fn_executable_p "$ac_path_EGREP" || continue
6364# Check for GNU ac_path_EGREP and select it if it is found.
6365  # Check for GNU $ac_path_EGREP
6366case `"$ac_path_EGREP" --version 2>&1` in
6367*GNU*)
6368  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6369*)
6370  ac_count=0
6371  $as_echo_n 0123456789 >"conftest.in"
6372  while :
6373  do
6374    cat "conftest.in" "conftest.in" >"conftest.tmp"
6375    mv "conftest.tmp" "conftest.in"
6376    cp "conftest.in" "conftest.nl"
6377    $as_echo 'EGREP' >> "conftest.nl"
6378    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6379    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6380    as_fn_arith $ac_count + 1 && ac_count=$as_val
6381    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6382      # Best one so far, save it but keep looking for a better one
6383      ac_cv_path_EGREP="$ac_path_EGREP"
6384      ac_path_EGREP_max=$ac_count
6385    fi
6386    # 10*(2^10) chars as input seems more than enough
6387    test $ac_count -gt 10 && break
6388  done
6389  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6390esac
6391
6392      $ac_path_EGREP_found && break 3
6393    done
6394  done
6395  done
6396IFS=$as_save_IFS
6397  if test -z "$ac_cv_path_EGREP"; then
6398    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6399  fi
6400else
6401  ac_cv_path_EGREP=$EGREP
6402fi
6403
6404   fi
6405fi
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6407$as_echo "$ac_cv_path_EGREP" >&6; }
6408 EGREP="$ac_cv_path_EGREP"
6409
6410
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6412$as_echo_n "checking for fgrep... " >&6; }
6413if ${ac_cv_path_FGREP+:} false; then :
6414  $as_echo_n "(cached) " >&6
6415else
6416  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6417   then ac_cv_path_FGREP="$GREP -F"
6418   else
6419     if test -z "$FGREP"; then
6420  ac_path_FGREP_found=false
6421  # Loop through the user's path and test for each of PROGNAME-LIST
6422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6424do
6425  IFS=$as_save_IFS
6426  test -z "$as_dir" && as_dir=.
6427    for ac_prog in fgrep; do
6428    for ac_exec_ext in '' $ac_executable_extensions; do
6429      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6430      as_fn_executable_p "$ac_path_FGREP" || continue
6431# Check for GNU ac_path_FGREP and select it if it is found.
6432  # Check for GNU $ac_path_FGREP
6433case `"$ac_path_FGREP" --version 2>&1` in
6434*GNU*)
6435  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6436*)
6437  ac_count=0
6438  $as_echo_n 0123456789 >"conftest.in"
6439  while :
6440  do
6441    cat "conftest.in" "conftest.in" >"conftest.tmp"
6442    mv "conftest.tmp" "conftest.in"
6443    cp "conftest.in" "conftest.nl"
6444    $as_echo 'FGREP' >> "conftest.nl"
6445    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6446    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6447    as_fn_arith $ac_count + 1 && ac_count=$as_val
6448    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6449      # Best one so far, save it but keep looking for a better one
6450      ac_cv_path_FGREP="$ac_path_FGREP"
6451      ac_path_FGREP_max=$ac_count
6452    fi
6453    # 10*(2^10) chars as input seems more than enough
6454    test $ac_count -gt 10 && break
6455  done
6456  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6457esac
6458
6459      $ac_path_FGREP_found && break 3
6460    done
6461  done
6462  done
6463IFS=$as_save_IFS
6464  if test -z "$ac_cv_path_FGREP"; then
6465    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6466  fi
6467else
6468  ac_cv_path_FGREP=$FGREP
6469fi
6470
6471   fi
6472fi
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6474$as_echo "$ac_cv_path_FGREP" >&6; }
6475 FGREP="$ac_cv_path_FGREP"
6476
6477
6478test -z "$GREP" && GREP=grep
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498# Check whether --with-gnu-ld was given.
6499if test "${with_gnu_ld+set}" = set; then :
6500  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6501else
6502  with_gnu_ld=no
6503fi
6504
6505ac_prog=ld
6506if test yes = "$GCC"; then
6507  # Check if gcc -print-prog-name=ld gives a path.
6508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6509$as_echo_n "checking for ld used by $CC... " >&6; }
6510  case $host in
6511  *-*-mingw*)
6512    # gcc leaves a trailing carriage return, which upsets mingw
6513    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6514  *)
6515    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6516  esac
6517  case $ac_prog in
6518    # Accept absolute paths.
6519    [\\/]* | ?:[\\/]*)
6520      re_direlt='/[^/][^/]*/\.\./'
6521      # Canonicalize the pathname of ld
6522      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6523      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6524	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6525      done
6526      test -z "$LD" && LD=$ac_prog
6527      ;;
6528  "")
6529    # If it fails, then pretend we aren't using GCC.
6530    ac_prog=ld
6531    ;;
6532  *)
6533    # If it is relative, then search for the first ld in PATH.
6534    with_gnu_ld=unknown
6535    ;;
6536  esac
6537elif test yes = "$with_gnu_ld"; then
6538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6539$as_echo_n "checking for GNU ld... " >&6; }
6540else
6541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6542$as_echo_n "checking for non-GNU ld... " >&6; }
6543fi
6544if ${lt_cv_path_LD+:} false; then :
6545  $as_echo_n "(cached) " >&6
6546else
6547  if test -z "$LD"; then
6548  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6549  for ac_dir in $PATH; do
6550    IFS=$lt_save_ifs
6551    test -z "$ac_dir" && ac_dir=.
6552    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6553      lt_cv_path_LD=$ac_dir/$ac_prog
6554      # Check to see if the program is GNU ld.  I'd rather use --version,
6555      # but apparently some variants of GNU ld only accept -v.
6556      # Break only if it was the GNU/non-GNU ld that we prefer.
6557      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6558      *GNU* | *'with BFD'*)
6559	test no != "$with_gnu_ld" && break
6560	;;
6561      *)
6562	test yes != "$with_gnu_ld" && break
6563	;;
6564      esac
6565    fi
6566  done
6567  IFS=$lt_save_ifs
6568else
6569  lt_cv_path_LD=$LD # Let the user override the test with a path.
6570fi
6571fi
6572
6573LD=$lt_cv_path_LD
6574if test -n "$LD"; then
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6576$as_echo "$LD" >&6; }
6577else
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6583$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6584if ${lt_cv_prog_gnu_ld+:} false; then :
6585  $as_echo_n "(cached) " >&6
6586else
6587  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6588case `$LD -v 2>&1 </dev/null` in
6589*GNU* | *'with BFD'*)
6590  lt_cv_prog_gnu_ld=yes
6591  ;;
6592*)
6593  lt_cv_prog_gnu_ld=no
6594  ;;
6595esac
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6598$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6599with_gnu_ld=$lt_cv_prog_gnu_ld
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6610$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6611if ${lt_cv_path_NM+:} false; then :
6612  $as_echo_n "(cached) " >&6
6613else
6614  if test -n "$NM"; then
6615  # Let the user override the test.
6616  lt_cv_path_NM=$NM
6617else
6618  lt_nm_to_check=${ac_tool_prefix}nm
6619  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6620    lt_nm_to_check="$lt_nm_to_check nm"
6621  fi
6622  for lt_tmp_nm in $lt_nm_to_check; do
6623    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6624    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6625      IFS=$lt_save_ifs
6626      test -z "$ac_dir" && ac_dir=.
6627      tmp_nm=$ac_dir/$lt_tmp_nm
6628      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6629	# Check to see if the nm accepts a BSD-compat flag.
6630	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6631	#   nm: unknown option "B" ignored
6632	# Tru64's nm complains that /dev/null is an invalid object file
6633	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6634	case $build_os in
6635	mingw*) lt_bad_file=conftest.nm/nofile ;;
6636	*) lt_bad_file=/dev/null ;;
6637	esac
6638	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6639	*$lt_bad_file* | *'Invalid file or object type'*)
6640	  lt_cv_path_NM="$tmp_nm -B"
6641	  break 2
6642	  ;;
6643	*)
6644	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6645	  */dev/null*)
6646	    lt_cv_path_NM="$tmp_nm -p"
6647	    break 2
6648	    ;;
6649	  *)
6650	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6651	    continue # so that we can try to find one that supports BSD flags
6652	    ;;
6653	  esac
6654	  ;;
6655	esac
6656      fi
6657    done
6658    IFS=$lt_save_ifs
6659  done
6660  : ${lt_cv_path_NM=no}
6661fi
6662fi
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6664$as_echo "$lt_cv_path_NM" >&6; }
6665if test no != "$lt_cv_path_NM"; then
6666  NM=$lt_cv_path_NM
6667else
6668  # Didn't find any BSD compatible name lister, look for dumpbin.
6669  if test -n "$DUMPBIN"; then :
6670    # Let the user override the test.
6671  else
6672    if test -n "$ac_tool_prefix"; then
6673  for ac_prog in dumpbin "link -dump"
6674  do
6675    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6676set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678$as_echo_n "checking for $ac_word... " >&6; }
6679if ${ac_cv_prog_DUMPBIN+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  if test -n "$DUMPBIN"; then
6683  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6684else
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688  IFS=$as_save_IFS
6689  test -z "$as_dir" && as_dir=.
6690    for ac_exec_ext in '' $ac_executable_extensions; do
6691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6692    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694    break 2
6695  fi
6696done
6697  done
6698IFS=$as_save_IFS
6699
6700fi
6701fi
6702DUMPBIN=$ac_cv_prog_DUMPBIN
6703if test -n "$DUMPBIN"; then
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6705$as_echo "$DUMPBIN" >&6; }
6706else
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708$as_echo "no" >&6; }
6709fi
6710
6711
6712    test -n "$DUMPBIN" && break
6713  done
6714fi
6715if test -z "$DUMPBIN"; then
6716  ac_ct_DUMPBIN=$DUMPBIN
6717  for ac_prog in dumpbin "link -dump"
6718do
6719  # Extract the first word of "$ac_prog", so it can be a program name with args.
6720set dummy $ac_prog; ac_word=$2
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
6723if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  if test -n "$ac_ct_DUMPBIN"; then
6727  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732  IFS=$as_save_IFS
6733  test -z "$as_dir" && as_dir=.
6734    for ac_exec_ext in '' $ac_executable_extensions; do
6735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738    break 2
6739  fi
6740done
6741  done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6747if test -n "$ac_ct_DUMPBIN"; then
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6749$as_echo "$ac_ct_DUMPBIN" >&6; }
6750else
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }
6753fi
6754
6755
6756  test -n "$ac_ct_DUMPBIN" && break
6757done
6758
6759  if test "x$ac_ct_DUMPBIN" = x; then
6760    DUMPBIN=":"
6761  else
6762    case $cross_compiling:$ac_tool_warned in
6763yes:)
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766ac_tool_warned=yes ;;
6767esac
6768    DUMPBIN=$ac_ct_DUMPBIN
6769  fi
6770fi
6771
6772    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6773    *COFF*)
6774      DUMPBIN="$DUMPBIN -symbols -headers"
6775      ;;
6776    *)
6777      DUMPBIN=:
6778      ;;
6779    esac
6780  fi
6781
6782  if test : != "$DUMPBIN"; then
6783    NM=$DUMPBIN
6784  fi
6785fi
6786test -z "$NM" && NM=nm
6787
6788
6789
6790
6791
6792
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6794$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6795if ${lt_cv_nm_interface+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  lt_cv_nm_interface="BSD nm"
6799  echo "int some_variable = 0;" > conftest.$ac_ext
6800  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6801  (eval "$ac_compile" 2>conftest.err)
6802  cat conftest.err >&5
6803  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6804  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6805  cat conftest.err >&5
6806  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6807  cat conftest.out >&5
6808  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6809    lt_cv_nm_interface="MS dumpbin"
6810  fi
6811  rm -f conftest*
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6814$as_echo "$lt_cv_nm_interface" >&6; }
6815
6816# find the maximum length of command line arguments
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6818$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6819if ${lt_cv_sys_max_cmd_len+:} false; then :
6820  $as_echo_n "(cached) " >&6
6821else
6822    i=0
6823  teststring=ABCD
6824
6825  case $build_os in
6826  msdosdjgpp*)
6827    # On DJGPP, this test can blow up pretty badly due to problems in libc
6828    # (any single argument exceeding 2000 bytes causes a buffer overrun
6829    # during glob expansion).  Even if it were fixed, the result of this
6830    # check would be larger than it should be.
6831    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6832    ;;
6833
6834  gnu*)
6835    # Under GNU Hurd, this test is not required because there is
6836    # no limit to the length of command line arguments.
6837    # Libtool will interpret -1 as no limit whatsoever
6838    lt_cv_sys_max_cmd_len=-1;
6839    ;;
6840
6841  cygwin* | mingw* | cegcc*)
6842    # On Win9x/ME, this test blows up -- it succeeds, but takes
6843    # about 5 minutes as the teststring grows exponentially.
6844    # Worse, since 9x/ME are not pre-emptively multitasking,
6845    # you end up with a "frozen" computer, even though with patience
6846    # the test eventually succeeds (with a max line length of 256k).
6847    # Instead, let's just punt: use the minimum linelength reported by
6848    # all of the supported platforms: 8192 (on NT/2K/XP).
6849    lt_cv_sys_max_cmd_len=8192;
6850    ;;
6851
6852  mint*)
6853    # On MiNT this can take a long time and run out of memory.
6854    lt_cv_sys_max_cmd_len=8192;
6855    ;;
6856
6857  amigaos*)
6858    # On AmigaOS with pdksh, this test takes hours, literally.
6859    # So we just punt and use a minimum line length of 8192.
6860    lt_cv_sys_max_cmd_len=8192;
6861    ;;
6862
6863  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6864    # This has been around since 386BSD, at least.  Likely further.
6865    if test -x /sbin/sysctl; then
6866      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6867    elif test -x /usr/sbin/sysctl; then
6868      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6869    else
6870      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6871    fi
6872    # And add a safety zone
6873    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6874    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6875    ;;
6876
6877  interix*)
6878    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6879    lt_cv_sys_max_cmd_len=196608
6880    ;;
6881
6882  os2*)
6883    # The test takes a long time on OS/2.
6884    lt_cv_sys_max_cmd_len=8192
6885    ;;
6886
6887  osf*)
6888    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6889    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6890    # nice to cause kernel panics so lets avoid the loop below.
6891    # First set a reasonable default.
6892    lt_cv_sys_max_cmd_len=16384
6893    #
6894    if test -x /sbin/sysconfig; then
6895      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6896        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6897      esac
6898    fi
6899    ;;
6900  sco3.2v5*)
6901    lt_cv_sys_max_cmd_len=102400
6902    ;;
6903  sysv5* | sco5v6* | sysv4.2uw2*)
6904    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6905    if test -n "$kargmax"; then
6906      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6907    else
6908      lt_cv_sys_max_cmd_len=32768
6909    fi
6910    ;;
6911  *)
6912    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6913    if test -n "$lt_cv_sys_max_cmd_len" && \
6914       test undefined != "$lt_cv_sys_max_cmd_len"; then
6915      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6916      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6917    else
6918      # Make teststring a little bigger before we do anything with it.
6919      # a 1K string should be a reasonable start.
6920      for i in 1 2 3 4 5 6 7 8; do
6921        teststring=$teststring$teststring
6922      done
6923      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6924      # If test is not a shell built-in, we'll probably end up computing a
6925      # maximum length that is only half of the actual maximum length, but
6926      # we can't tell.
6927      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6928	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6929	      test 17 != "$i" # 1/2 MB should be enough
6930      do
6931        i=`expr $i + 1`
6932        teststring=$teststring$teststring
6933      done
6934      # Only check the string length outside the loop.
6935      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6936      teststring=
6937      # Add a significant safety factor because C++ compilers can tack on
6938      # massive amounts of additional arguments before passing them to the
6939      # linker.  It appears as though 1/2 is a usable value.
6940      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6941    fi
6942    ;;
6943  esac
6944
6945fi
6946
6947if test -n "$lt_cv_sys_max_cmd_len"; then
6948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6949$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6950else
6951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6952$as_echo "none" >&6; }
6953fi
6954max_cmd_len=$lt_cv_sys_max_cmd_len
6955
6956
6957
6958
6959
6960
6961: ${CP="cp -f"}
6962: ${MV="mv -f"}
6963: ${RM="rm -f"}
6964
6965if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6966  lt_unset=unset
6967else
6968  lt_unset=false
6969fi
6970
6971
6972
6973
6974
6975# test EBCDIC or ASCII
6976case `echo X|tr X '\101'` in
6977 A) # ASCII based system
6978    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6979  lt_SP2NL='tr \040 \012'
6980  lt_NL2SP='tr \015\012 \040\040'
6981  ;;
6982 *) # EBCDIC based system
6983  lt_SP2NL='tr \100 \n'
6984  lt_NL2SP='tr \r\n \100\100'
6985  ;;
6986esac
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6997$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6998if ${lt_cv_to_host_file_cmd+:} false; then :
6999  $as_echo_n "(cached) " >&6
7000else
7001  case $host in
7002  *-*-mingw* )
7003    case $build in
7004      *-*-mingw* ) # actually msys
7005        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7006        ;;
7007      *-*-cygwin* )
7008        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7009        ;;
7010      * ) # otherwise, assume *nix
7011        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7012        ;;
7013    esac
7014    ;;
7015  *-*-cygwin* )
7016    case $build in
7017      *-*-mingw* ) # actually msys
7018        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7019        ;;
7020      *-*-cygwin* )
7021        lt_cv_to_host_file_cmd=func_convert_file_noop
7022        ;;
7023      * ) # otherwise, assume *nix
7024        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7025        ;;
7026    esac
7027    ;;
7028  * ) # unhandled hosts (and "normal" native builds)
7029    lt_cv_to_host_file_cmd=func_convert_file_noop
7030    ;;
7031esac
7032
7033fi
7034
7035to_host_file_cmd=$lt_cv_to_host_file_cmd
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7037$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7038
7039
7040
7041
7042
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7044$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7045if ${lt_cv_to_tool_file_cmd+:} false; then :
7046  $as_echo_n "(cached) " >&6
7047else
7048  #assume ordinary cross tools, or native build.
7049lt_cv_to_tool_file_cmd=func_convert_file_noop
7050case $host in
7051  *-*-mingw* )
7052    case $build in
7053      *-*-mingw* ) # actually msys
7054        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7055        ;;
7056    esac
7057    ;;
7058esac
7059
7060fi
7061
7062to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7064$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7065
7066
7067
7068
7069
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7071$as_echo_n "checking for $LD option to reload object files... " >&6; }
7072if ${lt_cv_ld_reload_flag+:} false; then :
7073  $as_echo_n "(cached) " >&6
7074else
7075  lt_cv_ld_reload_flag='-r'
7076fi
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7078$as_echo "$lt_cv_ld_reload_flag" >&6; }
7079reload_flag=$lt_cv_ld_reload_flag
7080case $reload_flag in
7081"" | " "*) ;;
7082*) reload_flag=" $reload_flag" ;;
7083esac
7084reload_cmds='$LD$reload_flag -o $output$reload_objs'
7085case $host_os in
7086  cygwin* | mingw* | pw32* | cegcc*)
7087    if test yes != "$GCC"; then
7088      reload_cmds=false
7089    fi
7090    ;;
7091  darwin*)
7092    if test yes = "$GCC"; then
7093      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7094    else
7095      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7096    fi
7097    ;;
7098esac
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108if test -n "$ac_tool_prefix"; then
7109  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7110set dummy ${ac_tool_prefix}objdump; ac_word=$2
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112$as_echo_n "checking for $ac_word... " >&6; }
7113if ${ac_cv_prog_OBJDUMP+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  if test -n "$OBJDUMP"; then
7117  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122  IFS=$as_save_IFS
7123  test -z "$as_dir" && as_dir=.
7124    for ac_exec_ext in '' $ac_executable_extensions; do
7125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128    break 2
7129  fi
7130done
7131  done
7132IFS=$as_save_IFS
7133
7134fi
7135fi
7136OBJDUMP=$ac_cv_prog_OBJDUMP
7137if test -n "$OBJDUMP"; then
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7139$as_echo "$OBJDUMP" >&6; }
7140else
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
7143fi
7144
7145
7146fi
7147if test -z "$ac_cv_prog_OBJDUMP"; then
7148  ac_ct_OBJDUMP=$OBJDUMP
7149  # Extract the first word of "objdump", so it can be a program name with args.
7150set dummy objdump; ac_word=$2
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152$as_echo_n "checking for $ac_word... " >&6; }
7153if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7154  $as_echo_n "(cached) " >&6
7155else
7156  if test -n "$ac_ct_OBJDUMP"; then
7157  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7158else
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162  IFS=$as_save_IFS
7163  test -z "$as_dir" && as_dir=.
7164    for ac_exec_ext in '' $ac_executable_extensions; do
7165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168    break 2
7169  fi
7170done
7171  done
7172IFS=$as_save_IFS
7173
7174fi
7175fi
7176ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7177if test -n "$ac_ct_OBJDUMP"; then
7178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7179$as_echo "$ac_ct_OBJDUMP" >&6; }
7180else
7181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182$as_echo "no" >&6; }
7183fi
7184
7185  if test "x$ac_ct_OBJDUMP" = x; then
7186    OBJDUMP="false"
7187  else
7188    case $cross_compiling:$ac_tool_warned in
7189yes:)
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192ac_tool_warned=yes ;;
7193esac
7194    OBJDUMP=$ac_ct_OBJDUMP
7195  fi
7196else
7197  OBJDUMP="$ac_cv_prog_OBJDUMP"
7198fi
7199
7200test -z "$OBJDUMP" && OBJDUMP=objdump
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7211$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7212if ${lt_cv_deplibs_check_method+:} false; then :
7213  $as_echo_n "(cached) " >&6
7214else
7215  lt_cv_file_magic_cmd='$MAGIC_CMD'
7216lt_cv_file_magic_test_file=
7217lt_cv_deplibs_check_method='unknown'
7218# Need to set the preceding variable on all platforms that support
7219# interlibrary dependencies.
7220# 'none' -- dependencies not supported.
7221# 'unknown' -- same as none, but documents that we really don't know.
7222# 'pass_all' -- all dependencies passed with no checks.
7223# 'test_compile' -- check by making test program.
7224# 'file_magic [[regex]]' -- check by looking for files in library path
7225# that responds to the $file_magic_cmd with a given extended regex.
7226# If you have 'file' or equivalent on your system and you're not sure
7227# whether 'pass_all' will *always* work, you probably want this one.
7228
7229case $host_os in
7230aix[4-9]*)
7231  lt_cv_deplibs_check_method=pass_all
7232  ;;
7233
7234beos*)
7235  lt_cv_deplibs_check_method=pass_all
7236  ;;
7237
7238bsdi[45]*)
7239  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7240  lt_cv_file_magic_cmd='/usr/bin/file -L'
7241  lt_cv_file_magic_test_file=/shlib/libc.so
7242  ;;
7243
7244cygwin*)
7245  # func_win32_libid is a shell function defined in ltmain.sh
7246  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7247  lt_cv_file_magic_cmd='func_win32_libid'
7248  ;;
7249
7250mingw* | pw32*)
7251  # Base MSYS/MinGW do not provide the 'file' command needed by
7252  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7253  # unless we find 'file', for example because we are cross-compiling.
7254  if ( file / ) >/dev/null 2>&1; then
7255    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7256    lt_cv_file_magic_cmd='func_win32_libid'
7257  else
7258    # Keep this pattern in sync with the one in func_win32_libid.
7259    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7260    lt_cv_file_magic_cmd='$OBJDUMP -f'
7261  fi
7262  ;;
7263
7264cegcc*)
7265  # use the weaker test based on 'objdump'. See mingw*.
7266  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7267  lt_cv_file_magic_cmd='$OBJDUMP -f'
7268  ;;
7269
7270darwin* | rhapsody*)
7271  lt_cv_deplibs_check_method=pass_all
7272  ;;
7273
7274freebsd* | dragonfly*)
7275  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7276    case $host_cpu in
7277    i*86 )
7278      # Not sure whether the presence of OpenBSD here was a mistake.
7279      # Let's accept both of them until this is cleared up.
7280      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7281      lt_cv_file_magic_cmd=/usr/bin/file
7282      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7283      ;;
7284    esac
7285  else
7286    lt_cv_deplibs_check_method=pass_all
7287  fi
7288  ;;
7289
7290haiku*)
7291  lt_cv_deplibs_check_method=pass_all
7292  ;;
7293
7294hpux10.20* | hpux11*)
7295  lt_cv_file_magic_cmd=/usr/bin/file
7296  case $host_cpu in
7297  ia64*)
7298    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7299    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7300    ;;
7301  hppa*64*)
7302    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]'
7303    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7304    ;;
7305  *)
7306    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7307    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7308    ;;
7309  esac
7310  ;;
7311
7312interix[3-9]*)
7313  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7314  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7315  ;;
7316
7317irix5* | irix6* | nonstopux*)
7318  case $LD in
7319  *-32|*"-32 ") libmagic=32-bit;;
7320  *-n32|*"-n32 ") libmagic=N32;;
7321  *-64|*"-64 ") libmagic=64-bit;;
7322  *) libmagic=never-match;;
7323  esac
7324  lt_cv_deplibs_check_method=pass_all
7325  ;;
7326
7327# This must be glibc/ELF.
7328linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7329  lt_cv_deplibs_check_method=pass_all
7330  ;;
7331
7332netbsd* | netbsdelf*-gnu)
7333  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7334    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7335  else
7336    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7337  fi
7338  ;;
7339
7340newos6*)
7341  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7342  lt_cv_file_magic_cmd=/usr/bin/file
7343  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7344  ;;
7345
7346*nto* | *qnx*)
7347  lt_cv_deplibs_check_method=pass_all
7348  ;;
7349
7350openbsd* | bitrig*)
7351  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7352    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7353  else
7354    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7355  fi
7356  ;;
7357
7358osf3* | osf4* | osf5*)
7359  lt_cv_deplibs_check_method=pass_all
7360  ;;
7361
7362rdos*)
7363  lt_cv_deplibs_check_method=pass_all
7364  ;;
7365
7366solaris*)
7367  lt_cv_deplibs_check_method=pass_all
7368  ;;
7369
7370sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7371  lt_cv_deplibs_check_method=pass_all
7372  ;;
7373
7374sysv4 | sysv4.3*)
7375  case $host_vendor in
7376  motorola)
7377    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]'
7378    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7379    ;;
7380  ncr)
7381    lt_cv_deplibs_check_method=pass_all
7382    ;;
7383  sequent)
7384    lt_cv_file_magic_cmd='/bin/file'
7385    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7386    ;;
7387  sni)
7388    lt_cv_file_magic_cmd='/bin/file'
7389    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7390    lt_cv_file_magic_test_file=/lib/libc.so
7391    ;;
7392  siemens)
7393    lt_cv_deplibs_check_method=pass_all
7394    ;;
7395  pc)
7396    lt_cv_deplibs_check_method=pass_all
7397    ;;
7398  esac
7399  ;;
7400
7401tpf*)
7402  lt_cv_deplibs_check_method=pass_all
7403  ;;
7404os2*)
7405  lt_cv_deplibs_check_method=pass_all
7406  ;;
7407esac
7408
7409fi
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7411$as_echo "$lt_cv_deplibs_check_method" >&6; }
7412
7413file_magic_glob=
7414want_nocaseglob=no
7415if test "$build" = "$host"; then
7416  case $host_os in
7417  mingw* | pw32*)
7418    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7419      want_nocaseglob=yes
7420    else
7421      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7422    fi
7423    ;;
7424  esac
7425fi
7426
7427file_magic_cmd=$lt_cv_file_magic_cmd
7428deplibs_check_method=$lt_cv_deplibs_check_method
7429test -z "$deplibs_check_method" && deplibs_check_method=unknown
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452if test -n "$ac_tool_prefix"; then
7453  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7454set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456$as_echo_n "checking for $ac_word... " >&6; }
7457if ${ac_cv_prog_DLLTOOL+:} false; then :
7458  $as_echo_n "(cached) " >&6
7459else
7460  if test -n "$DLLTOOL"; then
7461  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7462else
7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466  IFS=$as_save_IFS
7467  test -z "$as_dir" && as_dir=.
7468    for ac_exec_ext in '' $ac_executable_extensions; do
7469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472    break 2
7473  fi
7474done
7475  done
7476IFS=$as_save_IFS
7477
7478fi
7479fi
7480DLLTOOL=$ac_cv_prog_DLLTOOL
7481if test -n "$DLLTOOL"; then
7482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7483$as_echo "$DLLTOOL" >&6; }
7484else
7485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486$as_echo "no" >&6; }
7487fi
7488
7489
7490fi
7491if test -z "$ac_cv_prog_DLLTOOL"; then
7492  ac_ct_DLLTOOL=$DLLTOOL
7493  # Extract the first word of "dlltool", so it can be a program name with args.
7494set dummy dlltool; ac_word=$2
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496$as_echo_n "checking for $ac_word... " >&6; }
7497if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7498  $as_echo_n "(cached) " >&6
7499else
7500  if test -n "$ac_ct_DLLTOOL"; then
7501  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7502else
7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506  IFS=$as_save_IFS
7507  test -z "$as_dir" && as_dir=.
7508    for ac_exec_ext in '' $ac_executable_extensions; do
7509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512    break 2
7513  fi
7514done
7515  done
7516IFS=$as_save_IFS
7517
7518fi
7519fi
7520ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7521if test -n "$ac_ct_DLLTOOL"; then
7522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7523$as_echo "$ac_ct_DLLTOOL" >&6; }
7524else
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526$as_echo "no" >&6; }
7527fi
7528
7529  if test "x$ac_ct_DLLTOOL" = x; then
7530    DLLTOOL="false"
7531  else
7532    case $cross_compiling:$ac_tool_warned in
7533yes:)
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536ac_tool_warned=yes ;;
7537esac
7538    DLLTOOL=$ac_ct_DLLTOOL
7539  fi
7540else
7541  DLLTOOL="$ac_cv_prog_DLLTOOL"
7542fi
7543
7544test -z "$DLLTOOL" && DLLTOOL=dlltool
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7556$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7557if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7558  $as_echo_n "(cached) " >&6
7559else
7560  lt_cv_sharedlib_from_linklib_cmd='unknown'
7561
7562case $host_os in
7563cygwin* | mingw* | pw32* | cegcc*)
7564  # two different shell functions defined in ltmain.sh;
7565  # decide which one to use based on capabilities of $DLLTOOL
7566  case `$DLLTOOL --help 2>&1` in
7567  *--identify-strict*)
7568    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7569    ;;
7570  *)
7571    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7572    ;;
7573  esac
7574  ;;
7575*)
7576  # fallback: assume linklib IS sharedlib
7577  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7578  ;;
7579esac
7580
7581fi
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7583$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7584sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7585test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7586
7587
7588
7589
7590
7591
7592
7593if test -n "$ac_tool_prefix"; then
7594  for ac_prog in ar
7595  do
7596    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7597set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599$as_echo_n "checking for $ac_word... " >&6; }
7600if ${ac_cv_prog_AR+:} false; then :
7601  $as_echo_n "(cached) " >&6
7602else
7603  if test -n "$AR"; then
7604  ac_cv_prog_AR="$AR" # Let the user override the test.
7605else
7606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607for as_dir in $PATH
7608do
7609  IFS=$as_save_IFS
7610  test -z "$as_dir" && as_dir=.
7611    for ac_exec_ext in '' $ac_executable_extensions; do
7612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615    break 2
7616  fi
7617done
7618  done
7619IFS=$as_save_IFS
7620
7621fi
7622fi
7623AR=$ac_cv_prog_AR
7624if test -n "$AR"; then
7625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7626$as_echo "$AR" >&6; }
7627else
7628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629$as_echo "no" >&6; }
7630fi
7631
7632
7633    test -n "$AR" && break
7634  done
7635fi
7636if test -z "$AR"; then
7637  ac_ct_AR=$AR
7638  for ac_prog in ar
7639do
7640  # Extract the first word of "$ac_prog", so it can be a program name with args.
7641set dummy $ac_prog; ac_word=$2
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643$as_echo_n "checking for $ac_word... " >&6; }
7644if ${ac_cv_prog_ac_ct_AR+:} false; then :
7645  $as_echo_n "(cached) " >&6
7646else
7647  if test -n "$ac_ct_AR"; then
7648  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653  IFS=$as_save_IFS
7654  test -z "$as_dir" && as_dir=.
7655    for ac_exec_ext in '' $ac_executable_extensions; do
7656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657    ac_cv_prog_ac_ct_AR="$ac_prog"
7658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659    break 2
7660  fi
7661done
7662  done
7663IFS=$as_save_IFS
7664
7665fi
7666fi
7667ac_ct_AR=$ac_cv_prog_ac_ct_AR
7668if test -n "$ac_ct_AR"; then
7669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7670$as_echo "$ac_ct_AR" >&6; }
7671else
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
7674fi
7675
7676
7677  test -n "$ac_ct_AR" && break
7678done
7679
7680  if test "x$ac_ct_AR" = x; then
7681    AR="false"
7682  else
7683    case $cross_compiling:$ac_tool_warned in
7684yes:)
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687ac_tool_warned=yes ;;
7688esac
7689    AR=$ac_ct_AR
7690  fi
7691fi
7692
7693: ${AR=ar}
7694: ${AR_FLAGS=cru}
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7707$as_echo_n "checking for archiver @FILE support... " >&6; }
7708if ${lt_cv_ar_at_file+:} false; then :
7709  $as_echo_n "(cached) " >&6
7710else
7711  lt_cv_ar_at_file=no
7712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h.  */
7714
7715int
7716main ()
7717{
7718
7719  ;
7720  return 0;
7721}
7722_ACEOF
7723if ac_fn_c_try_compile "$LINENO"; then :
7724  echo conftest.$ac_objext > conftest.lst
7725      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7726      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7727  (eval $lt_ar_try) 2>&5
7728  ac_status=$?
7729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730  test $ac_status = 0; }
7731      if test 0 -eq "$ac_status"; then
7732	# Ensure the archiver fails upon bogus file names.
7733	rm -f conftest.$ac_objext libconftest.a
7734	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7735  (eval $lt_ar_try) 2>&5
7736  ac_status=$?
7737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7738  test $ac_status = 0; }
7739	if test 0 -ne "$ac_status"; then
7740          lt_cv_ar_at_file=@
7741        fi
7742      fi
7743      rm -f conftest.* libconftest.a
7744
7745fi
7746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747
7748fi
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7750$as_echo "$lt_cv_ar_at_file" >&6; }
7751
7752if test no = "$lt_cv_ar_at_file"; then
7753  archiver_list_spec=
7754else
7755  archiver_list_spec=$lt_cv_ar_at_file
7756fi
7757
7758
7759
7760
7761
7762
7763
7764if test -n "$ac_tool_prefix"; then
7765  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7766set dummy ${ac_tool_prefix}strip; ac_word=$2
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768$as_echo_n "checking for $ac_word... " >&6; }
7769if ${ac_cv_prog_STRIP+:} false; then :
7770  $as_echo_n "(cached) " >&6
7771else
7772  if test -n "$STRIP"; then
7773  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7774else
7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778  IFS=$as_save_IFS
7779  test -z "$as_dir" && as_dir=.
7780    for ac_exec_ext in '' $ac_executable_extensions; do
7781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784    break 2
7785  fi
7786done
7787  done
7788IFS=$as_save_IFS
7789
7790fi
7791fi
7792STRIP=$ac_cv_prog_STRIP
7793if test -n "$STRIP"; then
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7795$as_echo "$STRIP" >&6; }
7796else
7797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798$as_echo "no" >&6; }
7799fi
7800
7801
7802fi
7803if test -z "$ac_cv_prog_STRIP"; then
7804  ac_ct_STRIP=$STRIP
7805  # Extract the first word of "strip", so it can be a program name with args.
7806set dummy strip; ac_word=$2
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808$as_echo_n "checking for $ac_word... " >&6; }
7809if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7810  $as_echo_n "(cached) " >&6
7811else
7812  if test -n "$ac_ct_STRIP"; then
7813  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7814else
7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818  IFS=$as_save_IFS
7819  test -z "$as_dir" && as_dir=.
7820    for ac_exec_ext in '' $ac_executable_extensions; do
7821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822    ac_cv_prog_ac_ct_STRIP="strip"
7823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824    break 2
7825  fi
7826done
7827  done
7828IFS=$as_save_IFS
7829
7830fi
7831fi
7832ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7833if test -n "$ac_ct_STRIP"; then
7834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7835$as_echo "$ac_ct_STRIP" >&6; }
7836else
7837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838$as_echo "no" >&6; }
7839fi
7840
7841  if test "x$ac_ct_STRIP" = x; then
7842    STRIP=":"
7843  else
7844    case $cross_compiling:$ac_tool_warned in
7845yes:)
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7848ac_tool_warned=yes ;;
7849esac
7850    STRIP=$ac_ct_STRIP
7851  fi
7852else
7853  STRIP="$ac_cv_prog_STRIP"
7854fi
7855
7856test -z "$STRIP" && STRIP=:
7857
7858
7859
7860
7861
7862
7863if test -n "$ac_tool_prefix"; then
7864  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7865set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867$as_echo_n "checking for $ac_word... " >&6; }
7868if ${ac_cv_prog_RANLIB+:} false; then :
7869  $as_echo_n "(cached) " >&6
7870else
7871  if test -n "$RANLIB"; then
7872  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7873else
7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877  IFS=$as_save_IFS
7878  test -z "$as_dir" && as_dir=.
7879    for ac_exec_ext in '' $ac_executable_extensions; do
7880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883    break 2
7884  fi
7885done
7886  done
7887IFS=$as_save_IFS
7888
7889fi
7890fi
7891RANLIB=$ac_cv_prog_RANLIB
7892if test -n "$RANLIB"; then
7893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7894$as_echo "$RANLIB" >&6; }
7895else
7896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
7898fi
7899
7900
7901fi
7902if test -z "$ac_cv_prog_RANLIB"; then
7903  ac_ct_RANLIB=$RANLIB
7904  # Extract the first word of "ranlib", so it can be a program name with args.
7905set dummy ranlib; ac_word=$2
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907$as_echo_n "checking for $ac_word... " >&6; }
7908if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7909  $as_echo_n "(cached) " >&6
7910else
7911  if test -n "$ac_ct_RANLIB"; then
7912  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7913else
7914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915for as_dir in $PATH
7916do
7917  IFS=$as_save_IFS
7918  test -z "$as_dir" && as_dir=.
7919    for ac_exec_ext in '' $ac_executable_extensions; do
7920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7921    ac_cv_prog_ac_ct_RANLIB="ranlib"
7922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923    break 2
7924  fi
7925done
7926  done
7927IFS=$as_save_IFS
7928
7929fi
7930fi
7931ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7932if test -n "$ac_ct_RANLIB"; then
7933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7934$as_echo "$ac_ct_RANLIB" >&6; }
7935else
7936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937$as_echo "no" >&6; }
7938fi
7939
7940  if test "x$ac_ct_RANLIB" = x; then
7941    RANLIB=":"
7942  else
7943    case $cross_compiling:$ac_tool_warned in
7944yes:)
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7947ac_tool_warned=yes ;;
7948esac
7949    RANLIB=$ac_ct_RANLIB
7950  fi
7951else
7952  RANLIB="$ac_cv_prog_RANLIB"
7953fi
7954
7955test -z "$RANLIB" && RANLIB=:
7956
7957
7958
7959
7960
7961
7962# Determine commands to create old-style static archives.
7963old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7964old_postinstall_cmds='chmod 644 $oldlib'
7965old_postuninstall_cmds=
7966
7967if test -n "$RANLIB"; then
7968  case $host_os in
7969  bitrig* | openbsd*)
7970    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7971    ;;
7972  *)
7973    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7974    ;;
7975  esac
7976  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7977fi
7978
7979case $host_os in
7980  darwin*)
7981    lock_old_archive_extraction=yes ;;
7982  *)
7983    lock_old_archive_extraction=no ;;
7984esac
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024# If no C compiler was specified, use CC.
8025LTCC=${LTCC-"$CC"}
8026
8027# If no C compiler flags were specified, use CFLAGS.
8028LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8029
8030# Allow CC to be a program name with arguments.
8031compiler=$CC
8032
8033
8034# Check for command to grab the raw symbol name followed by C symbol from nm.
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8036$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8037if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8038  $as_echo_n "(cached) " >&6
8039else
8040
8041# These are sane defaults that work on at least a few old systems.
8042# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8043
8044# Character class describing NM global symbol codes.
8045symcode='[BCDEGRST]'
8046
8047# Regexp to match symbols that can be accessed directly from C.
8048sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8049
8050# Define system-specific variables.
8051case $host_os in
8052aix*)
8053  symcode='[BCDT]'
8054  ;;
8055cygwin* | mingw* | pw32* | cegcc*)
8056  symcode='[ABCDGISTW]'
8057  ;;
8058hpux*)
8059  if test ia64 = "$host_cpu"; then
8060    symcode='[ABCDEGRST]'
8061  fi
8062  ;;
8063irix* | nonstopux*)
8064  symcode='[BCDEGRST]'
8065  ;;
8066osf*)
8067  symcode='[BCDEGQRST]'
8068  ;;
8069solaris*)
8070  symcode='[BDRT]'
8071  ;;
8072sco3.2v5*)
8073  symcode='[DT]'
8074  ;;
8075sysv4.2uw2*)
8076  symcode='[DT]'
8077  ;;
8078sysv5* | sco5v6* | unixware* | OpenUNIX*)
8079  symcode='[ABDT]'
8080  ;;
8081sysv4)
8082  symcode='[DFNSTU]'
8083  ;;
8084esac
8085
8086# If we're using GNU nm, then use its standard symbol codes.
8087case `$NM -V 2>&1` in
8088*GNU* | *'with BFD'*)
8089  symcode='[ABCDGIRSTW]' ;;
8090esac
8091
8092if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8093  # Gets list of data symbols to import.
8094  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8095  # Adjust the below global symbol transforms to fixup imported variables.
8096  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8097  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8098  lt_c_name_lib_hook="\
8099  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8100  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8101else
8102  # Disable hooks by default.
8103  lt_cv_sys_global_symbol_to_import=
8104  lt_cdecl_hook=
8105  lt_c_name_hook=
8106  lt_c_name_lib_hook=
8107fi
8108
8109# Transform an extracted symbol line into a proper C declaration.
8110# Some systems (esp. on ia64) link data and code symbols differently,
8111# so use this general approach.
8112lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8113$lt_cdecl_hook\
8114" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8115" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8116
8117# Transform an extracted symbol line into symbol name and symbol address
8118lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8119$lt_c_name_hook\
8120" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8121" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8122
8123# Transform an extracted symbol line into symbol name with lib prefix and
8124# symbol address.
8125lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8126$lt_c_name_lib_hook\
8127" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8128" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8129" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8130
8131# Handle CRLF in mingw tool chain
8132opt_cr=
8133case $build_os in
8134mingw*)
8135  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8136  ;;
8137esac
8138
8139# Try without a prefix underscore, then with it.
8140for ac_symprfx in "" "_"; do
8141
8142  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8143  symxfrm="\\1 $ac_symprfx\\2 \\2"
8144
8145  # Write the raw and C identifiers.
8146  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8147    # Fake it for dumpbin and say T for any non-static function,
8148    # D for any global variable and I for any imported variable.
8149    # Also find C++ and __fastcall symbols from MSVC++,
8150    # which start with @ or ?.
8151    lt_cv_sys_global_symbol_pipe="$AWK '"\
8152"     {last_section=section; section=\$ 3};"\
8153"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8154"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8155"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8156"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8157"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8158"     \$ 0!~/External *\|/{next};"\
8159"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8160"     {if(hide[section]) next};"\
8161"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8162"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8163"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8164"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8165"     ' prfx=^$ac_symprfx"
8166  else
8167    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8168  fi
8169  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8170
8171  # Check to see that the pipe works correctly.
8172  pipe_works=no
8173
8174  rm -f conftest*
8175  cat > conftest.$ac_ext <<_LT_EOF
8176#ifdef __cplusplus
8177extern "C" {
8178#endif
8179char nm_test_var;
8180void nm_test_func(void);
8181void nm_test_func(void){}
8182#ifdef __cplusplus
8183}
8184#endif
8185int main(){nm_test_var='a';nm_test_func();return(0);}
8186_LT_EOF
8187
8188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8189  (eval $ac_compile) 2>&5
8190  ac_status=$?
8191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8192  test $ac_status = 0; }; then
8193    # Now try to grab the symbols.
8194    nlist=conftest.nm
8195    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8196    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8197      # Try sorting and uniquifying the output.
8198      if sort "$nlist" | uniq > "$nlist"T; then
8199	mv -f "$nlist"T "$nlist"
8200      else
8201	rm -f "$nlist"T
8202      fi
8203
8204      # Make sure that we snagged all the symbols we need.
8205      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8206	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8207	  cat <<_LT_EOF > conftest.$ac_ext
8208/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8209#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8210/* DATA imports from DLLs on WIN32 can't be const, because runtime
8211   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8212# define LT_DLSYM_CONST
8213#elif defined __osf__
8214/* This system does not cope well with relocations in const data.  */
8215# define LT_DLSYM_CONST
8216#else
8217# define LT_DLSYM_CONST const
8218#endif
8219
8220#ifdef __cplusplus
8221extern "C" {
8222#endif
8223
8224_LT_EOF
8225	  # Now generate the symbol file.
8226	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8227
8228	  cat <<_LT_EOF >> conftest.$ac_ext
8229
8230/* The mapping between symbol names and symbols.  */
8231LT_DLSYM_CONST struct {
8232  const char *name;
8233  void       *address;
8234}
8235lt__PROGRAM__LTX_preloaded_symbols[] =
8236{
8237  { "@PROGRAM@", (void *) 0 },
8238_LT_EOF
8239	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8240	  cat <<\_LT_EOF >> conftest.$ac_ext
8241  {0, (void *) 0}
8242};
8243
8244/* This works around a problem in FreeBSD linker */
8245#ifdef FREEBSD_WORKAROUND
8246static const void *lt_preloaded_setup() {
8247  return lt__PROGRAM__LTX_preloaded_symbols;
8248}
8249#endif
8250
8251#ifdef __cplusplus
8252}
8253#endif
8254_LT_EOF
8255	  # Now try linking the two files.
8256	  mv conftest.$ac_objext conftstm.$ac_objext
8257	  lt_globsym_save_LIBS=$LIBS
8258	  lt_globsym_save_CFLAGS=$CFLAGS
8259	  LIBS=conftstm.$ac_objext
8260	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8261	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8262  (eval $ac_link) 2>&5
8263  ac_status=$?
8264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8265  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8266	    pipe_works=yes
8267	  fi
8268	  LIBS=$lt_globsym_save_LIBS
8269	  CFLAGS=$lt_globsym_save_CFLAGS
8270	else
8271	  echo "cannot find nm_test_func in $nlist" >&5
8272	fi
8273      else
8274	echo "cannot find nm_test_var in $nlist" >&5
8275      fi
8276    else
8277      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8278    fi
8279  else
8280    echo "$progname: failed program was:" >&5
8281    cat conftest.$ac_ext >&5
8282  fi
8283  rm -rf conftest* conftst*
8284
8285  # Do not use the global_symbol_pipe unless it works.
8286  if test yes = "$pipe_works"; then
8287    break
8288  else
8289    lt_cv_sys_global_symbol_pipe=
8290  fi
8291done
8292
8293fi
8294
8295if test -z "$lt_cv_sys_global_symbol_pipe"; then
8296  lt_cv_sys_global_symbol_to_cdecl=
8297fi
8298if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8300$as_echo "failed" >&6; }
8301else
8302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8303$as_echo "ok" >&6; }
8304fi
8305
8306# Response file support.
8307if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8308  nm_file_list_spec='@'
8309elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8310  nm_file_list_spec='@'
8311fi
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8350$as_echo_n "checking for sysroot... " >&6; }
8351
8352# Check whether --with-sysroot was given.
8353if test "${with_sysroot+set}" = set; then :
8354  withval=$with_sysroot;
8355else
8356  with_sysroot=no
8357fi
8358
8359
8360lt_sysroot=
8361case $with_sysroot in #(
8362 yes)
8363   if test yes = "$GCC"; then
8364     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8365   fi
8366   ;; #(
8367 /*)
8368   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8369   ;; #(
8370 no|'')
8371   ;; #(
8372 *)
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8374$as_echo "$with_sysroot" >&6; }
8375   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8376   ;;
8377esac
8378
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8380$as_echo "${lt_sysroot:-no}" >&6; }
8381
8382
8383
8384
8385
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8387$as_echo_n "checking for a working dd... " >&6; }
8388if ${ac_cv_path_lt_DD+:} false; then :
8389  $as_echo_n "(cached) " >&6
8390else
8391  printf 0123456789abcdef0123456789abcdef >conftest.i
8392cat conftest.i conftest.i >conftest2.i
8393: ${lt_DD:=$DD}
8394if test -z "$lt_DD"; then
8395  ac_path_lt_DD_found=false
8396  # Loop through the user's path and test for each of PROGNAME-LIST
8397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398for as_dir in $PATH
8399do
8400  IFS=$as_save_IFS
8401  test -z "$as_dir" && as_dir=.
8402    for ac_prog in dd; do
8403    for ac_exec_ext in '' $ac_executable_extensions; do
8404      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8405      as_fn_executable_p "$ac_path_lt_DD" || continue
8406if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8407  cmp -s conftest.i conftest.out \
8408  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8409fi
8410      $ac_path_lt_DD_found && break 3
8411    done
8412  done
8413  done
8414IFS=$as_save_IFS
8415  if test -z "$ac_cv_path_lt_DD"; then
8416    :
8417  fi
8418else
8419  ac_cv_path_lt_DD=$lt_DD
8420fi
8421
8422rm -f conftest.i conftest2.i conftest.out
8423fi
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8425$as_echo "$ac_cv_path_lt_DD" >&6; }
8426
8427
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8429$as_echo_n "checking how to truncate binary pipes... " >&6; }
8430if ${lt_cv_truncate_bin+:} false; then :
8431  $as_echo_n "(cached) " >&6
8432else
8433  printf 0123456789abcdef0123456789abcdef >conftest.i
8434cat conftest.i conftest.i >conftest2.i
8435lt_cv_truncate_bin=
8436if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8437  cmp -s conftest.i conftest.out \
8438  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8439fi
8440rm -f conftest.i conftest2.i conftest.out
8441test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8442fi
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8444$as_echo "$lt_cv_truncate_bin" >&6; }
8445
8446
8447
8448
8449
8450
8451
8452# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8453func_cc_basename ()
8454{
8455    for cc_temp in $*""; do
8456      case $cc_temp in
8457        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8458        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8459        \-*) ;;
8460        *) break;;
8461      esac
8462    done
8463    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8464}
8465
8466# Check whether --enable-libtool-lock was given.
8467if test "${enable_libtool_lock+set}" = set; then :
8468  enableval=$enable_libtool_lock;
8469fi
8470
8471test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8472
8473# Some flags need to be propagated to the compiler or linker for good
8474# libtool support.
8475case $host in
8476ia64-*-hpux*)
8477  # Find out what ABI is being produced by ac_compile, and set mode
8478  # options accordingly.
8479  echo 'int i;' > conftest.$ac_ext
8480  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8481  (eval $ac_compile) 2>&5
8482  ac_status=$?
8483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8484  test $ac_status = 0; }; then
8485    case `/usr/bin/file conftest.$ac_objext` in
8486      *ELF-32*)
8487	HPUX_IA64_MODE=32
8488	;;
8489      *ELF-64*)
8490	HPUX_IA64_MODE=64
8491	;;
8492    esac
8493  fi
8494  rm -rf conftest*
8495  ;;
8496*-*-irix6*)
8497  # Find out what ABI is being produced by ac_compile, and set linker
8498  # options accordingly.
8499  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8500  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8501  (eval $ac_compile) 2>&5
8502  ac_status=$?
8503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8504  test $ac_status = 0; }; then
8505    if test yes = "$lt_cv_prog_gnu_ld"; then
8506      case `/usr/bin/file conftest.$ac_objext` in
8507	*32-bit*)
8508	  LD="${LD-ld} -melf32bsmip"
8509	  ;;
8510	*N32*)
8511	  LD="${LD-ld} -melf32bmipn32"
8512	  ;;
8513	*64-bit*)
8514	  LD="${LD-ld} -melf64bmip"
8515	;;
8516      esac
8517    else
8518      case `/usr/bin/file conftest.$ac_objext` in
8519	*32-bit*)
8520	  LD="${LD-ld} -32"
8521	  ;;
8522	*N32*)
8523	  LD="${LD-ld} -n32"
8524	  ;;
8525	*64-bit*)
8526	  LD="${LD-ld} -64"
8527	  ;;
8528      esac
8529    fi
8530  fi
8531  rm -rf conftest*
8532  ;;
8533
8534mips64*-*linux*)
8535  # Find out what ABI is being produced by ac_compile, and set linker
8536  # options accordingly.
8537  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8538  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8539  (eval $ac_compile) 2>&5
8540  ac_status=$?
8541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8542  test $ac_status = 0; }; then
8543    emul=elf
8544    case `/usr/bin/file conftest.$ac_objext` in
8545      *32-bit*)
8546	emul="${emul}32"
8547	;;
8548      *64-bit*)
8549	emul="${emul}64"
8550	;;
8551    esac
8552    case `/usr/bin/file conftest.$ac_objext` in
8553      *MSB*)
8554	emul="${emul}btsmip"
8555	;;
8556      *LSB*)
8557	emul="${emul}ltsmip"
8558	;;
8559    esac
8560    case `/usr/bin/file conftest.$ac_objext` in
8561      *N32*)
8562	emul="${emul}n32"
8563	;;
8564    esac
8565    LD="${LD-ld} -m $emul"
8566  fi
8567  rm -rf conftest*
8568  ;;
8569
8570x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8571s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8572  # Find out what ABI is being produced by ac_compile, and set linker
8573  # options accordingly.  Note that the listed cases only cover the
8574  # situations where additional linker options are needed (such as when
8575  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8576  # vice versa); the common cases where no linker options are needed do
8577  # not appear in the list.
8578  echo 'int i;' > conftest.$ac_ext
8579  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8580  (eval $ac_compile) 2>&5
8581  ac_status=$?
8582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8583  test $ac_status = 0; }; then
8584    case `/usr/bin/file conftest.o` in
8585      *32-bit*)
8586	case $host in
8587	  x86_64-*kfreebsd*-gnu)
8588	    LD="${LD-ld} -m elf_i386_fbsd"
8589	    ;;
8590	  x86_64-*linux*)
8591	    case `/usr/bin/file conftest.o` in
8592	      *x86-64*)
8593		LD="${LD-ld} -m elf32_x86_64"
8594		;;
8595	      *)
8596		LD="${LD-ld} -m elf_i386"
8597		;;
8598	    esac
8599	    ;;
8600	  powerpc64le-*linux*)
8601	    LD="${LD-ld} -m elf32lppclinux"
8602	    ;;
8603	  powerpc64-*linux*)
8604	    LD="${LD-ld} -m elf32ppclinux"
8605	    ;;
8606	  s390x-*linux*)
8607	    LD="${LD-ld} -m elf_s390"
8608	    ;;
8609	  sparc64-*linux*)
8610	    LD="${LD-ld} -m elf32_sparc"
8611	    ;;
8612	esac
8613	;;
8614      *64-bit*)
8615	case $host in
8616	  x86_64-*kfreebsd*-gnu)
8617	    LD="${LD-ld} -m elf_x86_64_fbsd"
8618	    ;;
8619	  x86_64-*linux*)
8620	    LD="${LD-ld} -m elf_x86_64"
8621	    ;;
8622	  powerpcle-*linux*)
8623	    LD="${LD-ld} -m elf64lppc"
8624	    ;;
8625	  powerpc-*linux*)
8626	    LD="${LD-ld} -m elf64ppc"
8627	    ;;
8628	  s390*-*linux*|s390*-*tpf*)
8629	    LD="${LD-ld} -m elf64_s390"
8630	    ;;
8631	  sparc*-*linux*)
8632	    LD="${LD-ld} -m elf64_sparc"
8633	    ;;
8634	esac
8635	;;
8636    esac
8637  fi
8638  rm -rf conftest*
8639  ;;
8640
8641*-*-sco3.2v5*)
8642  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8643  SAVE_CFLAGS=$CFLAGS
8644  CFLAGS="$CFLAGS -belf"
8645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8646$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8647if ${lt_cv_cc_needs_belf+:} false; then :
8648  $as_echo_n "(cached) " >&6
8649else
8650  ac_ext=c
8651ac_cpp='$CPP $CPPFLAGS'
8652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654ac_compiler_gnu=$ac_cv_c_compiler_gnu
8655
8656     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657/* end confdefs.h.  */
8658
8659int
8660main ()
8661{
8662
8663  ;
8664  return 0;
8665}
8666_ACEOF
8667if ac_fn_c_try_link "$LINENO"; then :
8668  lt_cv_cc_needs_belf=yes
8669else
8670  lt_cv_cc_needs_belf=no
8671fi
8672rm -f core conftest.err conftest.$ac_objext \
8673    conftest$ac_exeext conftest.$ac_ext
8674     ac_ext=c
8675ac_cpp='$CPP $CPPFLAGS'
8676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8678ac_compiler_gnu=$ac_cv_c_compiler_gnu
8679
8680fi
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8682$as_echo "$lt_cv_cc_needs_belf" >&6; }
8683  if test yes != "$lt_cv_cc_needs_belf"; then
8684    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8685    CFLAGS=$SAVE_CFLAGS
8686  fi
8687  ;;
8688*-*solaris*)
8689  # Find out what ABI is being produced by ac_compile, and set linker
8690  # options accordingly.
8691  echo 'int i;' > conftest.$ac_ext
8692  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8693  (eval $ac_compile) 2>&5
8694  ac_status=$?
8695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8696  test $ac_status = 0; }; then
8697    case `/usr/bin/file conftest.o` in
8698    *64-bit*)
8699      case $lt_cv_prog_gnu_ld in
8700      yes*)
8701        case $host in
8702        i?86-*-solaris*|x86_64-*-solaris*)
8703          LD="${LD-ld} -m elf_x86_64"
8704          ;;
8705        sparc*-*-solaris*)
8706          LD="${LD-ld} -m elf64_sparc"
8707          ;;
8708        esac
8709        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8710        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8711          LD=${LD-ld}_sol2
8712        fi
8713        ;;
8714      *)
8715	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8716	  LD="${LD-ld} -64"
8717	fi
8718	;;
8719      esac
8720      ;;
8721    esac
8722  fi
8723  rm -rf conftest*
8724  ;;
8725esac
8726
8727need_locks=$enable_libtool_lock
8728
8729if test -n "$ac_tool_prefix"; then
8730  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8731set dummy ${ac_tool_prefix}mt; ac_word=$2
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733$as_echo_n "checking for $ac_word... " >&6; }
8734if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8735  $as_echo_n "(cached) " >&6
8736else
8737  if test -n "$MANIFEST_TOOL"; then
8738  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8739else
8740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741for as_dir in $PATH
8742do
8743  IFS=$as_save_IFS
8744  test -z "$as_dir" && as_dir=.
8745    for ac_exec_ext in '' $ac_executable_extensions; do
8746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749    break 2
8750  fi
8751done
8752  done
8753IFS=$as_save_IFS
8754
8755fi
8756fi
8757MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8758if test -n "$MANIFEST_TOOL"; then
8759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8760$as_echo "$MANIFEST_TOOL" >&6; }
8761else
8762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763$as_echo "no" >&6; }
8764fi
8765
8766
8767fi
8768if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8769  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8770  # Extract the first word of "mt", so it can be a program name with args.
8771set dummy mt; ac_word=$2
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773$as_echo_n "checking for $ac_word... " >&6; }
8774if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8775  $as_echo_n "(cached) " >&6
8776else
8777  if test -n "$ac_ct_MANIFEST_TOOL"; then
8778  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8779else
8780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781for as_dir in $PATH
8782do
8783  IFS=$as_save_IFS
8784  test -z "$as_dir" && as_dir=.
8785    for ac_exec_ext in '' $ac_executable_extensions; do
8786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8787    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789    break 2
8790  fi
8791done
8792  done
8793IFS=$as_save_IFS
8794
8795fi
8796fi
8797ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8798if test -n "$ac_ct_MANIFEST_TOOL"; then
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8800$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8801else
8802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803$as_echo "no" >&6; }
8804fi
8805
8806  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8807    MANIFEST_TOOL=":"
8808  else
8809    case $cross_compiling:$ac_tool_warned in
8810yes:)
8811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8813ac_tool_warned=yes ;;
8814esac
8815    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8816  fi
8817else
8818  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8819fi
8820
8821test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8823$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8824if ${lt_cv_path_mainfest_tool+:} false; then :
8825  $as_echo_n "(cached) " >&6
8826else
8827  lt_cv_path_mainfest_tool=no
8828  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8829  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8830  cat conftest.err >&5
8831  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8832    lt_cv_path_mainfest_tool=yes
8833  fi
8834  rm -f conftest*
8835fi
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8837$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8838if test yes != "$lt_cv_path_mainfest_tool"; then
8839  MANIFEST_TOOL=:
8840fi
8841
8842
8843
8844
8845
8846
8847  case $host_os in
8848    rhapsody* | darwin*)
8849    if test -n "$ac_tool_prefix"; then
8850  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8851set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853$as_echo_n "checking for $ac_word... " >&6; }
8854if ${ac_cv_prog_DSYMUTIL+:} false; then :
8855  $as_echo_n "(cached) " >&6
8856else
8857  if test -n "$DSYMUTIL"; then
8858  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8859else
8860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861for as_dir in $PATH
8862do
8863  IFS=$as_save_IFS
8864  test -z "$as_dir" && as_dir=.
8865    for ac_exec_ext in '' $ac_executable_extensions; do
8866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8867    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869    break 2
8870  fi
8871done
8872  done
8873IFS=$as_save_IFS
8874
8875fi
8876fi
8877DSYMUTIL=$ac_cv_prog_DSYMUTIL
8878if test -n "$DSYMUTIL"; then
8879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8880$as_echo "$DSYMUTIL" >&6; }
8881else
8882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883$as_echo "no" >&6; }
8884fi
8885
8886
8887fi
8888if test -z "$ac_cv_prog_DSYMUTIL"; then
8889  ac_ct_DSYMUTIL=$DSYMUTIL
8890  # Extract the first word of "dsymutil", so it can be a program name with args.
8891set dummy dsymutil; ac_word=$2
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893$as_echo_n "checking for $ac_word... " >&6; }
8894if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8895  $as_echo_n "(cached) " >&6
8896else
8897  if test -n "$ac_ct_DSYMUTIL"; then
8898  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8899else
8900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901for as_dir in $PATH
8902do
8903  IFS=$as_save_IFS
8904  test -z "$as_dir" && as_dir=.
8905    for ac_exec_ext in '' $ac_executable_extensions; do
8906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8907    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909    break 2
8910  fi
8911done
8912  done
8913IFS=$as_save_IFS
8914
8915fi
8916fi
8917ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8918if test -n "$ac_ct_DSYMUTIL"; then
8919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8920$as_echo "$ac_ct_DSYMUTIL" >&6; }
8921else
8922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923$as_echo "no" >&6; }
8924fi
8925
8926  if test "x$ac_ct_DSYMUTIL" = x; then
8927    DSYMUTIL=":"
8928  else
8929    case $cross_compiling:$ac_tool_warned in
8930yes:)
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8933ac_tool_warned=yes ;;
8934esac
8935    DSYMUTIL=$ac_ct_DSYMUTIL
8936  fi
8937else
8938  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8939fi
8940
8941    if test -n "$ac_tool_prefix"; then
8942  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8943set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945$as_echo_n "checking for $ac_word... " >&6; }
8946if ${ac_cv_prog_NMEDIT+:} false; then :
8947  $as_echo_n "(cached) " >&6
8948else
8949  if test -n "$NMEDIT"; then
8950  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8951else
8952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953for as_dir in $PATH
8954do
8955  IFS=$as_save_IFS
8956  test -z "$as_dir" && as_dir=.
8957    for ac_exec_ext in '' $ac_executable_extensions; do
8958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8959    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8961    break 2
8962  fi
8963done
8964  done
8965IFS=$as_save_IFS
8966
8967fi
8968fi
8969NMEDIT=$ac_cv_prog_NMEDIT
8970if test -n "$NMEDIT"; then
8971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8972$as_echo "$NMEDIT" >&6; }
8973else
8974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975$as_echo "no" >&6; }
8976fi
8977
8978
8979fi
8980if test -z "$ac_cv_prog_NMEDIT"; then
8981  ac_ct_NMEDIT=$NMEDIT
8982  # Extract the first word of "nmedit", so it can be a program name with args.
8983set dummy nmedit; ac_word=$2
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985$as_echo_n "checking for $ac_word... " >&6; }
8986if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989  if test -n "$ac_ct_NMEDIT"; then
8990  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8991else
8992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993for as_dir in $PATH
8994do
8995  IFS=$as_save_IFS
8996  test -z "$as_dir" && as_dir=.
8997    for ac_exec_ext in '' $ac_executable_extensions; do
8998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8999    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9001    break 2
9002  fi
9003done
9004  done
9005IFS=$as_save_IFS
9006
9007fi
9008fi
9009ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9010if test -n "$ac_ct_NMEDIT"; then
9011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9012$as_echo "$ac_ct_NMEDIT" >&6; }
9013else
9014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015$as_echo "no" >&6; }
9016fi
9017
9018  if test "x$ac_ct_NMEDIT" = x; then
9019    NMEDIT=":"
9020  else
9021    case $cross_compiling:$ac_tool_warned in
9022yes:)
9023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9025ac_tool_warned=yes ;;
9026esac
9027    NMEDIT=$ac_ct_NMEDIT
9028  fi
9029else
9030  NMEDIT="$ac_cv_prog_NMEDIT"
9031fi
9032
9033    if test -n "$ac_tool_prefix"; then
9034  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9035set dummy ${ac_tool_prefix}lipo; ac_word=$2
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037$as_echo_n "checking for $ac_word... " >&6; }
9038if ${ac_cv_prog_LIPO+:} false; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041  if test -n "$LIPO"; then
9042  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9043else
9044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045for as_dir in $PATH
9046do
9047  IFS=$as_save_IFS
9048  test -z "$as_dir" && as_dir=.
9049    for ac_exec_ext in '' $ac_executable_extensions; do
9050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9051    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9053    break 2
9054  fi
9055done
9056  done
9057IFS=$as_save_IFS
9058
9059fi
9060fi
9061LIPO=$ac_cv_prog_LIPO
9062if test -n "$LIPO"; then
9063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9064$as_echo "$LIPO" >&6; }
9065else
9066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067$as_echo "no" >&6; }
9068fi
9069
9070
9071fi
9072if test -z "$ac_cv_prog_LIPO"; then
9073  ac_ct_LIPO=$LIPO
9074  # Extract the first word of "lipo", so it can be a program name with args.
9075set dummy lipo; ac_word=$2
9076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9077$as_echo_n "checking for $ac_word... " >&6; }
9078if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9079  $as_echo_n "(cached) " >&6
9080else
9081  if test -n "$ac_ct_LIPO"; then
9082  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9083else
9084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085for as_dir in $PATH
9086do
9087  IFS=$as_save_IFS
9088  test -z "$as_dir" && as_dir=.
9089    for ac_exec_ext in '' $ac_executable_extensions; do
9090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9091    ac_cv_prog_ac_ct_LIPO="lipo"
9092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9093    break 2
9094  fi
9095done
9096  done
9097IFS=$as_save_IFS
9098
9099fi
9100fi
9101ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9102if test -n "$ac_ct_LIPO"; then
9103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9104$as_echo "$ac_ct_LIPO" >&6; }
9105else
9106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107$as_echo "no" >&6; }
9108fi
9109
9110  if test "x$ac_ct_LIPO" = x; then
9111    LIPO=":"
9112  else
9113    case $cross_compiling:$ac_tool_warned in
9114yes:)
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9117ac_tool_warned=yes ;;
9118esac
9119    LIPO=$ac_ct_LIPO
9120  fi
9121else
9122  LIPO="$ac_cv_prog_LIPO"
9123fi
9124
9125    if test -n "$ac_tool_prefix"; then
9126  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9127set dummy ${ac_tool_prefix}otool; ac_word=$2
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129$as_echo_n "checking for $ac_word... " >&6; }
9130if ${ac_cv_prog_OTOOL+:} false; then :
9131  $as_echo_n "(cached) " >&6
9132else
9133  if test -n "$OTOOL"; then
9134  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9135else
9136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137for as_dir in $PATH
9138do
9139  IFS=$as_save_IFS
9140  test -z "$as_dir" && as_dir=.
9141    for ac_exec_ext in '' $ac_executable_extensions; do
9142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145    break 2
9146  fi
9147done
9148  done
9149IFS=$as_save_IFS
9150
9151fi
9152fi
9153OTOOL=$ac_cv_prog_OTOOL
9154if test -n "$OTOOL"; then
9155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9156$as_echo "$OTOOL" >&6; }
9157else
9158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159$as_echo "no" >&6; }
9160fi
9161
9162
9163fi
9164if test -z "$ac_cv_prog_OTOOL"; then
9165  ac_ct_OTOOL=$OTOOL
9166  # Extract the first word of "otool", so it can be a program name with args.
9167set dummy otool; ac_word=$2
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9169$as_echo_n "checking for $ac_word... " >&6; }
9170if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9171  $as_echo_n "(cached) " >&6
9172else
9173  if test -n "$ac_ct_OTOOL"; then
9174  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9175else
9176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177for as_dir in $PATH
9178do
9179  IFS=$as_save_IFS
9180  test -z "$as_dir" && as_dir=.
9181    for ac_exec_ext in '' $ac_executable_extensions; do
9182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9183    ac_cv_prog_ac_ct_OTOOL="otool"
9184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185    break 2
9186  fi
9187done
9188  done
9189IFS=$as_save_IFS
9190
9191fi
9192fi
9193ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9194if test -n "$ac_ct_OTOOL"; then
9195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9196$as_echo "$ac_ct_OTOOL" >&6; }
9197else
9198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199$as_echo "no" >&6; }
9200fi
9201
9202  if test "x$ac_ct_OTOOL" = x; then
9203    OTOOL=":"
9204  else
9205    case $cross_compiling:$ac_tool_warned in
9206yes:)
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9209ac_tool_warned=yes ;;
9210esac
9211    OTOOL=$ac_ct_OTOOL
9212  fi
9213else
9214  OTOOL="$ac_cv_prog_OTOOL"
9215fi
9216
9217    if test -n "$ac_tool_prefix"; then
9218  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9219set dummy ${ac_tool_prefix}otool64; ac_word=$2
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221$as_echo_n "checking for $ac_word... " >&6; }
9222if ${ac_cv_prog_OTOOL64+:} false; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  if test -n "$OTOOL64"; then
9226  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9227else
9228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229for as_dir in $PATH
9230do
9231  IFS=$as_save_IFS
9232  test -z "$as_dir" && as_dir=.
9233    for ac_exec_ext in '' $ac_executable_extensions; do
9234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9235    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237    break 2
9238  fi
9239done
9240  done
9241IFS=$as_save_IFS
9242
9243fi
9244fi
9245OTOOL64=$ac_cv_prog_OTOOL64
9246if test -n "$OTOOL64"; then
9247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9248$as_echo "$OTOOL64" >&6; }
9249else
9250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251$as_echo "no" >&6; }
9252fi
9253
9254
9255fi
9256if test -z "$ac_cv_prog_OTOOL64"; then
9257  ac_ct_OTOOL64=$OTOOL64
9258  # Extract the first word of "otool64", so it can be a program name with args.
9259set dummy otool64; ac_word=$2
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261$as_echo_n "checking for $ac_word... " >&6; }
9262if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9263  $as_echo_n "(cached) " >&6
9264else
9265  if test -n "$ac_ct_OTOOL64"; then
9266  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9267else
9268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269for as_dir in $PATH
9270do
9271  IFS=$as_save_IFS
9272  test -z "$as_dir" && as_dir=.
9273    for ac_exec_ext in '' $ac_executable_extensions; do
9274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9275    ac_cv_prog_ac_ct_OTOOL64="otool64"
9276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9277    break 2
9278  fi
9279done
9280  done
9281IFS=$as_save_IFS
9282
9283fi
9284fi
9285ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9286if test -n "$ac_ct_OTOOL64"; then
9287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9288$as_echo "$ac_ct_OTOOL64" >&6; }
9289else
9290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291$as_echo "no" >&6; }
9292fi
9293
9294  if test "x$ac_ct_OTOOL64" = x; then
9295    OTOOL64=":"
9296  else
9297    case $cross_compiling:$ac_tool_warned in
9298yes:)
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9301ac_tool_warned=yes ;;
9302esac
9303    OTOOL64=$ac_ct_OTOOL64
9304  fi
9305else
9306  OTOOL64="$ac_cv_prog_OTOOL64"
9307fi
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9336$as_echo_n "checking for -single_module linker flag... " >&6; }
9337if ${lt_cv_apple_cc_single_mod+:} false; then :
9338  $as_echo_n "(cached) " >&6
9339else
9340  lt_cv_apple_cc_single_mod=no
9341      if test -z "$LT_MULTI_MODULE"; then
9342	# By default we will add the -single_module flag. You can override
9343	# by either setting the environment variable LT_MULTI_MODULE
9344	# non-empty at configure time, or by adding -multi_module to the
9345	# link flags.
9346	rm -rf libconftest.dylib*
9347	echo "int foo(void){return 1;}" > conftest.c
9348	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9349-dynamiclib -Wl,-single_module conftest.c" >&5
9350	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9351	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9352        _lt_result=$?
9353	# If there is a non-empty error log, and "single_module"
9354	# appears in it, assume the flag caused a linker warning
9355        if test -s conftest.err && $GREP single_module conftest.err; then
9356	  cat conftest.err >&5
9357	# Otherwise, if the output was created with a 0 exit code from
9358	# the compiler, it worked.
9359	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9360	  lt_cv_apple_cc_single_mod=yes
9361	else
9362	  cat conftest.err >&5
9363	fi
9364	rm -rf libconftest.dylib*
9365	rm -f conftest.*
9366      fi
9367fi
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9369$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9370
9371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9372$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9373if ${lt_cv_ld_exported_symbols_list+:} false; then :
9374  $as_echo_n "(cached) " >&6
9375else
9376  lt_cv_ld_exported_symbols_list=no
9377      save_LDFLAGS=$LDFLAGS
9378      echo "_main" > conftest.sym
9379      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9380      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381/* end confdefs.h.  */
9382
9383int
9384main ()
9385{
9386
9387  ;
9388  return 0;
9389}
9390_ACEOF
9391if ac_fn_c_try_link "$LINENO"; then :
9392  lt_cv_ld_exported_symbols_list=yes
9393else
9394  lt_cv_ld_exported_symbols_list=no
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397    conftest$ac_exeext conftest.$ac_ext
9398	LDFLAGS=$save_LDFLAGS
9399
9400fi
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9402$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9403
9404    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9405$as_echo_n "checking for -force_load linker flag... " >&6; }
9406if ${lt_cv_ld_force_load+:} false; then :
9407  $as_echo_n "(cached) " >&6
9408else
9409  lt_cv_ld_force_load=no
9410      cat > conftest.c << _LT_EOF
9411int forced_loaded() { return 2;}
9412_LT_EOF
9413      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9414      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9415      echo "$AR cru libconftest.a conftest.o" >&5
9416      $AR cru libconftest.a conftest.o 2>&5
9417      echo "$RANLIB libconftest.a" >&5
9418      $RANLIB libconftest.a 2>&5
9419      cat > conftest.c << _LT_EOF
9420int main() { return 0;}
9421_LT_EOF
9422      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9423      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9424      _lt_result=$?
9425      if test -s conftest.err && $GREP force_load conftest.err; then
9426	cat conftest.err >&5
9427      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9428	lt_cv_ld_force_load=yes
9429      else
9430	cat conftest.err >&5
9431      fi
9432        rm -f conftest.err libconftest.a conftest conftest.c
9433        rm -rf conftest.dSYM
9434
9435fi
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9437$as_echo "$lt_cv_ld_force_load" >&6; }
9438    case $host_os in
9439    rhapsody* | darwin1.[012])
9440      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9441    darwin1.*)
9442      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9443    darwin*) # darwin 5.x on
9444      # if running on 10.5 or later, the deployment target defaults
9445      # to the OS version, if on x86, and 10.4, the deployment
9446      # target defaults to 10.4. Don't you love it?
9447      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9448	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9449	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9450	10.[012][,.]*)
9451	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9452	10.*)
9453	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9454      esac
9455    ;;
9456  esac
9457    if test yes = "$lt_cv_apple_cc_single_mod"; then
9458      _lt_dar_single_mod='$single_module'
9459    fi
9460    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9461      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9462    else
9463      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9464    fi
9465    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9466      _lt_dsymutil='~$DSYMUTIL $lib || :'
9467    else
9468      _lt_dsymutil=
9469    fi
9470    ;;
9471  esac
9472
9473# func_munge_path_list VARIABLE PATH
9474# -----------------------------------
9475# VARIABLE is name of variable containing _space_ separated list of
9476# directories to be munged by the contents of PATH, which is string
9477# having a format:
9478# "DIR[:DIR]:"
9479#       string "DIR[ DIR]" will be prepended to VARIABLE
9480# ":DIR[:DIR]"
9481#       string "DIR[ DIR]" will be appended to VARIABLE
9482# "DIRP[:DIRP]::[DIRA:]DIRA"
9483#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9484#       "DIRA[ DIRA]" will be appended to VARIABLE
9485# "DIR[:DIR]"
9486#       VARIABLE will be replaced by "DIR[ DIR]"
9487func_munge_path_list ()
9488{
9489    case x$2 in
9490    x)
9491        ;;
9492    *:)
9493        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9494        ;;
9495    x:*)
9496        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9497        ;;
9498    *::*)
9499        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9500        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9501        ;;
9502    *)
9503        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9504        ;;
9505    esac
9506}
9507
9508ac_ext=c
9509ac_cpp='$CPP $CPPFLAGS'
9510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9512ac_compiler_gnu=$ac_cv_c_compiler_gnu
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9514$as_echo_n "checking how to run the C preprocessor... " >&6; }
9515# On Suns, sometimes $CPP names a directory.
9516if test -n "$CPP" && test -d "$CPP"; then
9517  CPP=
9518fi
9519if test -z "$CPP"; then
9520  if ${ac_cv_prog_CPP+:} false; then :
9521  $as_echo_n "(cached) " >&6
9522else
9523      # Double quotes because CPP needs to be expanded
9524    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9525    do
9526      ac_preproc_ok=false
9527for ac_c_preproc_warn_flag in '' yes
9528do
9529  # Use a header file that comes with gcc, so configuring glibc
9530  # with a fresh cross-compiler works.
9531  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9532  # <limits.h> exists even on freestanding compilers.
9533  # On the NeXT, cc -E runs the code through the compiler's parser,
9534  # not just through cpp. "Syntax error" is here to catch this case.
9535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536/* end confdefs.h.  */
9537#ifdef __STDC__
9538# include <limits.h>
9539#else
9540# include <assert.h>
9541#endif
9542		     Syntax error
9543_ACEOF
9544if ac_fn_c_try_cpp "$LINENO"; then :
9545
9546else
9547  # Broken: fails on valid input.
9548continue
9549fi
9550rm -f conftest.err conftest.i conftest.$ac_ext
9551
9552  # OK, works on sane cases.  Now check whether nonexistent headers
9553  # can be detected and how.
9554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h.  */
9556#include <ac_nonexistent.h>
9557_ACEOF
9558if ac_fn_c_try_cpp "$LINENO"; then :
9559  # Broken: success on invalid input.
9560continue
9561else
9562  # Passes both tests.
9563ac_preproc_ok=:
9564break
9565fi
9566rm -f conftest.err conftest.i conftest.$ac_ext
9567
9568done
9569# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9570rm -f conftest.i conftest.err conftest.$ac_ext
9571if $ac_preproc_ok; then :
9572  break
9573fi
9574
9575    done
9576    ac_cv_prog_CPP=$CPP
9577
9578fi
9579  CPP=$ac_cv_prog_CPP
9580else
9581  ac_cv_prog_CPP=$CPP
9582fi
9583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9584$as_echo "$CPP" >&6; }
9585ac_preproc_ok=false
9586for ac_c_preproc_warn_flag in '' yes
9587do
9588  # Use a header file that comes with gcc, so configuring glibc
9589  # with a fresh cross-compiler works.
9590  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9591  # <limits.h> exists even on freestanding compilers.
9592  # On the NeXT, cc -E runs the code through the compiler's parser,
9593  # not just through cpp. "Syntax error" is here to catch this case.
9594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h.  */
9596#ifdef __STDC__
9597# include <limits.h>
9598#else
9599# include <assert.h>
9600#endif
9601		     Syntax error
9602_ACEOF
9603if ac_fn_c_try_cpp "$LINENO"; then :
9604
9605else
9606  # Broken: fails on valid input.
9607continue
9608fi
9609rm -f conftest.err conftest.i conftest.$ac_ext
9610
9611  # OK, works on sane cases.  Now check whether nonexistent headers
9612  # can be detected and how.
9613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614/* end confdefs.h.  */
9615#include <ac_nonexistent.h>
9616_ACEOF
9617if ac_fn_c_try_cpp "$LINENO"; then :
9618  # Broken: success on invalid input.
9619continue
9620else
9621  # Passes both tests.
9622ac_preproc_ok=:
9623break
9624fi
9625rm -f conftest.err conftest.i conftest.$ac_ext
9626
9627done
9628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9629rm -f conftest.i conftest.err conftest.$ac_ext
9630if $ac_preproc_ok; then :
9631
9632else
9633  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9635as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9636See \`config.log' for more details" "$LINENO" 5; }
9637fi
9638
9639ac_ext=c
9640ac_cpp='$CPP $CPPFLAGS'
9641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9643ac_compiler_gnu=$ac_cv_c_compiler_gnu
9644
9645
9646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9647$as_echo_n "checking for ANSI C header files... " >&6; }
9648if ${ac_cv_header_stdc+:} false; then :
9649  $as_echo_n "(cached) " >&6
9650else
9651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652/* end confdefs.h.  */
9653#include <stdlib.h>
9654#include <stdarg.h>
9655#include <string.h>
9656#include <float.h>
9657
9658int
9659main ()
9660{
9661
9662  ;
9663  return 0;
9664}
9665_ACEOF
9666if ac_fn_c_try_compile "$LINENO"; then :
9667  ac_cv_header_stdc=yes
9668else
9669  ac_cv_header_stdc=no
9670fi
9671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672
9673if test $ac_cv_header_stdc = yes; then
9674  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676/* end confdefs.h.  */
9677#include <string.h>
9678
9679_ACEOF
9680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9681  $EGREP "memchr" >/dev/null 2>&1; then :
9682
9683else
9684  ac_cv_header_stdc=no
9685fi
9686rm -f conftest*
9687
9688fi
9689
9690if test $ac_cv_header_stdc = yes; then
9691  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h.  */
9694#include <stdlib.h>
9695
9696_ACEOF
9697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9698  $EGREP "free" >/dev/null 2>&1; then :
9699
9700else
9701  ac_cv_header_stdc=no
9702fi
9703rm -f conftest*
9704
9705fi
9706
9707if test $ac_cv_header_stdc = yes; then
9708  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9709  if test "$cross_compiling" = yes; then :
9710  :
9711else
9712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713/* end confdefs.h.  */
9714#include <ctype.h>
9715#include <stdlib.h>
9716#if ((' ' & 0x0FF) == 0x020)
9717# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9718# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9719#else
9720# define ISLOWER(c) \
9721		   (('a' <= (c) && (c) <= 'i') \
9722		     || ('j' <= (c) && (c) <= 'r') \
9723		     || ('s' <= (c) && (c) <= 'z'))
9724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9725#endif
9726
9727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9728int
9729main ()
9730{
9731  int i;
9732  for (i = 0; i < 256; i++)
9733    if (XOR (islower (i), ISLOWER (i))
9734	|| toupper (i) != TOUPPER (i))
9735      return 2;
9736  return 0;
9737}
9738_ACEOF
9739if ac_fn_c_try_run "$LINENO"; then :
9740
9741else
9742  ac_cv_header_stdc=no
9743fi
9744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9745  conftest.$ac_objext conftest.beam conftest.$ac_ext
9746fi
9747
9748fi
9749fi
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9751$as_echo "$ac_cv_header_stdc" >&6; }
9752if test $ac_cv_header_stdc = yes; then
9753
9754$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9755
9756fi
9757
9758# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9759for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9760		  inttypes.h stdint.h unistd.h
9761do :
9762  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9763ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9764"
9765if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9766  cat >>confdefs.h <<_ACEOF
9767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9768_ACEOF
9769
9770fi
9771
9772done
9773
9774
9775for ac_header in dlfcn.h
9776do :
9777  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9778"
9779if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9780  cat >>confdefs.h <<_ACEOF
9781#define HAVE_DLFCN_H 1
9782_ACEOF
9783
9784fi
9785
9786done
9787
9788
9789
9790
9791func_stripname_cnf ()
9792{
9793  case $2 in
9794  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9795  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9796  esac
9797} # func_stripname_cnf
9798
9799
9800
9801
9802
9803# Set options
9804
9805
9806
9807        enable_dlopen=no
9808
9809
9810  enable_win32_dll=no
9811
9812
9813            # Check whether --enable-shared was given.
9814if test "${enable_shared+set}" = set; then :
9815  enableval=$enable_shared; p=${PACKAGE-default}
9816    case $enableval in
9817    yes) enable_shared=yes ;;
9818    no) enable_shared=no ;;
9819    *)
9820      enable_shared=no
9821      # Look at the argument we got.  We use all the common list separators.
9822      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9823      for pkg in $enableval; do
9824	IFS=$lt_save_ifs
9825	if test "X$pkg" = "X$p"; then
9826	  enable_shared=yes
9827	fi
9828      done
9829      IFS=$lt_save_ifs
9830      ;;
9831    esac
9832else
9833  enable_shared=yes
9834fi
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844  # Check whether --enable-static was given.
9845if test "${enable_static+set}" = set; then :
9846  enableval=$enable_static; p=${PACKAGE-default}
9847    case $enableval in
9848    yes) enable_static=yes ;;
9849    no) enable_static=no ;;
9850    *)
9851     enable_static=no
9852      # Look at the argument we got.  We use all the common list separators.
9853      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9854      for pkg in $enableval; do
9855	IFS=$lt_save_ifs
9856	if test "X$pkg" = "X$p"; then
9857	  enable_static=yes
9858	fi
9859      done
9860      IFS=$lt_save_ifs
9861      ;;
9862    esac
9863else
9864  enable_static=yes
9865fi
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876# Check whether --with-pic was given.
9877if test "${with_pic+set}" = set; then :
9878  withval=$with_pic; lt_p=${PACKAGE-default}
9879    case $withval in
9880    yes|no) pic_mode=$withval ;;
9881    *)
9882      pic_mode=default
9883      # Look at the argument we got.  We use all the common list separators.
9884      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9885      for lt_pkg in $withval; do
9886	IFS=$lt_save_ifs
9887	if test "X$lt_pkg" = "X$lt_p"; then
9888	  pic_mode=yes
9889	fi
9890      done
9891      IFS=$lt_save_ifs
9892      ;;
9893    esac
9894else
9895  pic_mode=default
9896fi
9897
9898
9899
9900
9901
9902
9903
9904
9905  # Check whether --enable-fast-install was given.
9906if test "${enable_fast_install+set}" = set; then :
9907  enableval=$enable_fast_install; p=${PACKAGE-default}
9908    case $enableval in
9909    yes) enable_fast_install=yes ;;
9910    no) enable_fast_install=no ;;
9911    *)
9912      enable_fast_install=no
9913      # Look at the argument we got.  We use all the common list separators.
9914      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9915      for pkg in $enableval; do
9916	IFS=$lt_save_ifs
9917	if test "X$pkg" = "X$p"; then
9918	  enable_fast_install=yes
9919	fi
9920      done
9921      IFS=$lt_save_ifs
9922      ;;
9923    esac
9924else
9925  enable_fast_install=yes
9926fi
9927
9928
9929
9930
9931
9932
9933
9934
9935  shared_archive_member_spec=
9936case $host,$enable_shared in
9937power*-*-aix[5-9]*,yes)
9938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9939$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9940
9941# Check whether --with-aix-soname was given.
9942if test "${with_aix_soname+set}" = set; then :
9943  withval=$with_aix_soname; case $withval in
9944    aix|svr4|both)
9945      ;;
9946    *)
9947      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9948      ;;
9949    esac
9950    lt_cv_with_aix_soname=$with_aix_soname
9951else
9952  if ${lt_cv_with_aix_soname+:} false; then :
9953  $as_echo_n "(cached) " >&6
9954else
9955  lt_cv_with_aix_soname=aix
9956fi
9957
9958    with_aix_soname=$lt_cv_with_aix_soname
9959fi
9960
9961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9962$as_echo "$with_aix_soname" >&6; }
9963  if test aix != "$with_aix_soname"; then
9964    # For the AIX way of multilib, we name the shared archive member
9965    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9966    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9967    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9968    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9969    if test 64 = "${OBJECT_MODE-32}"; then
9970      shared_archive_member_spec=shr_64
9971    else
9972      shared_archive_member_spec=shr
9973    fi
9974  fi
9975  ;;
9976*)
9977  with_aix_soname=aix
9978  ;;
9979esac
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990# This can be used to rebuild libtool when needed
9991LIBTOOL_DEPS=$ltmain
9992
9993# Always use our own libtool.
9994LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025test -z "$LN_S" && LN_S="ln -s"
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040if test -n "${ZSH_VERSION+set}"; then
10041   setopt NO_GLOB_SUBST
10042fi
10043
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10045$as_echo_n "checking for objdir... " >&6; }
10046if ${lt_cv_objdir+:} false; then :
10047  $as_echo_n "(cached) " >&6
10048else
10049  rm -f .libs 2>/dev/null
10050mkdir .libs 2>/dev/null
10051if test -d .libs; then
10052  lt_cv_objdir=.libs
10053else
10054  # MS-DOS does not allow filenames that begin with a dot.
10055  lt_cv_objdir=_libs
10056fi
10057rmdir .libs 2>/dev/null
10058fi
10059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10060$as_echo "$lt_cv_objdir" >&6; }
10061objdir=$lt_cv_objdir
10062
10063
10064
10065
10066
10067cat >>confdefs.h <<_ACEOF
10068#define LT_OBJDIR "$lt_cv_objdir/"
10069_ACEOF
10070
10071
10072
10073
10074case $host_os in
10075aix3*)
10076  # AIX sometimes has problems with the GCC collect2 program.  For some
10077  # reason, if we set the COLLECT_NAMES environment variable, the problems
10078  # vanish in a puff of smoke.
10079  if test set != "${COLLECT_NAMES+set}"; then
10080    COLLECT_NAMES=
10081    export COLLECT_NAMES
10082  fi
10083  ;;
10084esac
10085
10086# Global variables:
10087ofile=libtool
10088can_build_shared=yes
10089
10090# All known linkers require a '.a' archive for static linking (except MSVC,
10091# which needs '.lib').
10092libext=a
10093
10094with_gnu_ld=$lt_cv_prog_gnu_ld
10095
10096old_CC=$CC
10097old_CFLAGS=$CFLAGS
10098
10099# Set sane defaults for various variables
10100test -z "$CC" && CC=cc
10101test -z "$LTCC" && LTCC=$CC
10102test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10103test -z "$LD" && LD=ld
10104test -z "$ac_objext" && ac_objext=o
10105
10106func_cc_basename $compiler
10107cc_basename=$func_cc_basename_result
10108
10109
10110# Only perform the check for file, if the check method requires it
10111test -z "$MAGIC_CMD" && MAGIC_CMD=file
10112case $deplibs_check_method in
10113file_magic*)
10114  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10116$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10117if ${lt_cv_path_MAGIC_CMD+:} false; then :
10118  $as_echo_n "(cached) " >&6
10119else
10120  case $MAGIC_CMD in
10121[\\/*] |  ?:[\\/]*)
10122  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10123  ;;
10124*)
10125  lt_save_MAGIC_CMD=$MAGIC_CMD
10126  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10127  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10128  for ac_dir in $ac_dummy; do
10129    IFS=$lt_save_ifs
10130    test -z "$ac_dir" && ac_dir=.
10131    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10132      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10133      if test -n "$file_magic_test_file"; then
10134	case $deplibs_check_method in
10135	"file_magic "*)
10136	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10137	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10138	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10139	    $EGREP "$file_magic_regex" > /dev/null; then
10140	    :
10141	  else
10142	    cat <<_LT_EOF 1>&2
10143
10144*** Warning: the command libtool uses to detect shared libraries,
10145*** $file_magic_cmd, produces output that libtool cannot recognize.
10146*** The result is that libtool may fail to recognize shared libraries
10147*** as such.  This will affect the creation of libtool libraries that
10148*** depend on shared libraries, but programs linked with such libtool
10149*** libraries will work regardless of this problem.  Nevertheless, you
10150*** may want to report the problem to your system manager and/or to
10151*** bug-libtool@gnu.org
10152
10153_LT_EOF
10154	  fi ;;
10155	esac
10156      fi
10157      break
10158    fi
10159  done
10160  IFS=$lt_save_ifs
10161  MAGIC_CMD=$lt_save_MAGIC_CMD
10162  ;;
10163esac
10164fi
10165
10166MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10167if test -n "$MAGIC_CMD"; then
10168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10169$as_echo "$MAGIC_CMD" >&6; }
10170else
10171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10172$as_echo "no" >&6; }
10173fi
10174
10175
10176
10177
10178
10179if test -z "$lt_cv_path_MAGIC_CMD"; then
10180  if test -n "$ac_tool_prefix"; then
10181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10182$as_echo_n "checking for file... " >&6; }
10183if ${lt_cv_path_MAGIC_CMD+:} false; then :
10184  $as_echo_n "(cached) " >&6
10185else
10186  case $MAGIC_CMD in
10187[\\/*] |  ?:[\\/]*)
10188  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10189  ;;
10190*)
10191  lt_save_MAGIC_CMD=$MAGIC_CMD
10192  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10193  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10194  for ac_dir in $ac_dummy; do
10195    IFS=$lt_save_ifs
10196    test -z "$ac_dir" && ac_dir=.
10197    if test -f "$ac_dir/file"; then
10198      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10199      if test -n "$file_magic_test_file"; then
10200	case $deplibs_check_method in
10201	"file_magic "*)
10202	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10203	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10204	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10205	    $EGREP "$file_magic_regex" > /dev/null; then
10206	    :
10207	  else
10208	    cat <<_LT_EOF 1>&2
10209
10210*** Warning: the command libtool uses to detect shared libraries,
10211*** $file_magic_cmd, produces output that libtool cannot recognize.
10212*** The result is that libtool may fail to recognize shared libraries
10213*** as such.  This will affect the creation of libtool libraries that
10214*** depend on shared libraries, but programs linked with such libtool
10215*** libraries will work regardless of this problem.  Nevertheless, you
10216*** may want to report the problem to your system manager and/or to
10217*** bug-libtool@gnu.org
10218
10219_LT_EOF
10220	  fi ;;
10221	esac
10222      fi
10223      break
10224    fi
10225  done
10226  IFS=$lt_save_ifs
10227  MAGIC_CMD=$lt_save_MAGIC_CMD
10228  ;;
10229esac
10230fi
10231
10232MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10233if test -n "$MAGIC_CMD"; then
10234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10235$as_echo "$MAGIC_CMD" >&6; }
10236else
10237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238$as_echo "no" >&6; }
10239fi
10240
10241
10242  else
10243    MAGIC_CMD=:
10244  fi
10245fi
10246
10247  fi
10248  ;;
10249esac
10250
10251# Use C for the default configuration in the libtool script
10252
10253lt_save_CC=$CC
10254ac_ext=c
10255ac_cpp='$CPP $CPPFLAGS'
10256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258ac_compiler_gnu=$ac_cv_c_compiler_gnu
10259
10260
10261# Source file extension for C test sources.
10262ac_ext=c
10263
10264# Object file extension for compiled C test sources.
10265objext=o
10266objext=$objext
10267
10268# Code to be used in simple compile tests
10269lt_simple_compile_test_code="int some_variable = 0;"
10270
10271# Code to be used in simple link tests
10272lt_simple_link_test_code='int main(){return(0);}'
10273
10274
10275
10276
10277
10278
10279
10280# If no C compiler was specified, use CC.
10281LTCC=${LTCC-"$CC"}
10282
10283# If no C compiler flags were specified, use CFLAGS.
10284LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10285
10286# Allow CC to be a program name with arguments.
10287compiler=$CC
10288
10289# Save the default compiler, since it gets overwritten when the other
10290# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10291compiler_DEFAULT=$CC
10292
10293# save warnings/boilerplate of simple test code
10294ac_outfile=conftest.$ac_objext
10295echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10296eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10297_lt_compiler_boilerplate=`cat conftest.err`
10298$RM conftest*
10299
10300ac_outfile=conftest.$ac_objext
10301echo "$lt_simple_link_test_code" >conftest.$ac_ext
10302eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10303_lt_linker_boilerplate=`cat conftest.err`
10304$RM -r conftest*
10305
10306
10307## CAVEAT EMPTOR:
10308## There is no encapsulation within the following macros, do not change
10309## the running order or otherwise move them around unless you know exactly
10310## what you are doing...
10311if test -n "$compiler"; then
10312
10313lt_prog_compiler_no_builtin_flag=
10314
10315if test yes = "$GCC"; then
10316  case $cc_basename in
10317  nvcc*)
10318    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10319  *)
10320    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10321  esac
10322
10323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10324$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10325if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10326  $as_echo_n "(cached) " >&6
10327else
10328  lt_cv_prog_compiler_rtti_exceptions=no
10329   ac_outfile=conftest.$ac_objext
10330   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10331   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10332   # Insert the option either (1) after the last *FLAGS variable, or
10333   # (2) before a word containing "conftest.", or (3) at the end.
10334   # Note that $ac_compile itself does not contain backslashes and begins
10335   # with a dollar sign (not a hyphen), so the echo should work correctly.
10336   # The option is referenced via a variable to avoid confusing sed.
10337   lt_compile=`echo "$ac_compile" | $SED \
10338   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10339   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10340   -e 's:$: $lt_compiler_flag:'`
10341   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10342   (eval "$lt_compile" 2>conftest.err)
10343   ac_status=$?
10344   cat conftest.err >&5
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   if (exit $ac_status) && test -s "$ac_outfile"; then
10347     # The compiler can only warn and ignore the option if not recognized
10348     # So say no if there are warnings other than the usual output.
10349     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10350     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10351     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10352       lt_cv_prog_compiler_rtti_exceptions=yes
10353     fi
10354   fi
10355   $RM conftest*
10356
10357fi
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10359$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10360
10361if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10362    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10363else
10364    :
10365fi
10366
10367fi
10368
10369
10370
10371
10372
10373
10374  lt_prog_compiler_wl=
10375lt_prog_compiler_pic=
10376lt_prog_compiler_static=
10377
10378
10379  if test yes = "$GCC"; then
10380    lt_prog_compiler_wl='-Wl,'
10381    lt_prog_compiler_static='-static'
10382
10383    case $host_os in
10384      aix*)
10385      # All AIX code is PIC.
10386      if test ia64 = "$host_cpu"; then
10387	# AIX 5 now supports IA64 processor
10388	lt_prog_compiler_static='-Bstatic'
10389      fi
10390      lt_prog_compiler_pic='-fPIC'
10391      ;;
10392
10393    amigaos*)
10394      case $host_cpu in
10395      powerpc)
10396            # see comment about AmigaOS4 .so support
10397            lt_prog_compiler_pic='-fPIC'
10398        ;;
10399      m68k)
10400            # FIXME: we need at least 68020 code to build shared libraries, but
10401            # adding the '-m68020' flag to GCC prevents building anything better,
10402            # like '-m68040'.
10403            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10404        ;;
10405      esac
10406      ;;
10407
10408    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10409      # PIC is the default for these OSes.
10410      ;;
10411
10412    mingw* | cygwin* | pw32* | os2* | cegcc*)
10413      # This hack is so that the source file can tell whether it is being
10414      # built for inclusion in a dll (and should export symbols for example).
10415      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10416      # (--disable-auto-import) libraries
10417      lt_prog_compiler_pic='-DDLL_EXPORT'
10418      case $host_os in
10419      os2*)
10420	lt_prog_compiler_static='$wl-static'
10421	;;
10422      esac
10423      ;;
10424
10425    darwin* | rhapsody*)
10426      # PIC is the default on this platform
10427      # Common symbols not allowed in MH_DYLIB files
10428      lt_prog_compiler_pic='-fno-common'
10429      ;;
10430
10431    haiku*)
10432      # PIC is the default for Haiku.
10433      # The "-static" flag exists, but is broken.
10434      lt_prog_compiler_static=
10435      ;;
10436
10437    hpux*)
10438      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10439      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10440      # sets the default TLS model and affects inlining.
10441      case $host_cpu in
10442      hppa*64*)
10443	# +Z the default
10444	;;
10445      *)
10446	lt_prog_compiler_pic='-fPIC'
10447	;;
10448      esac
10449      ;;
10450
10451    interix[3-9]*)
10452      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10453      # Instead, we relocate shared libraries at runtime.
10454      ;;
10455
10456    msdosdjgpp*)
10457      # Just because we use GCC doesn't mean we suddenly get shared libraries
10458      # on systems that don't support them.
10459      lt_prog_compiler_can_build_shared=no
10460      enable_shared=no
10461      ;;
10462
10463    *nto* | *qnx*)
10464      # QNX uses GNU C++, but need to define -shared option too, otherwise
10465      # it will coredump.
10466      lt_prog_compiler_pic='-fPIC -shared'
10467      ;;
10468
10469    sysv4*MP*)
10470      if test -d /usr/nec; then
10471	lt_prog_compiler_pic=-Kconform_pic
10472      fi
10473      ;;
10474
10475    *)
10476      lt_prog_compiler_pic='-fPIC'
10477      ;;
10478    esac
10479
10480    case $cc_basename in
10481    nvcc*) # Cuda Compiler Driver 2.2
10482      lt_prog_compiler_wl='-Xlinker '
10483      if test -n "$lt_prog_compiler_pic"; then
10484        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10485      fi
10486      ;;
10487    esac
10488  else
10489    # PORTME Check for flag to pass linker flags through the system compiler.
10490    case $host_os in
10491    aix*)
10492      lt_prog_compiler_wl='-Wl,'
10493      if test ia64 = "$host_cpu"; then
10494	# AIX 5 now supports IA64 processor
10495	lt_prog_compiler_static='-Bstatic'
10496      else
10497	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10498      fi
10499      ;;
10500
10501    darwin* | rhapsody*)
10502      # PIC is the default on this platform
10503      # Common symbols not allowed in MH_DYLIB files
10504      lt_prog_compiler_pic='-fno-common'
10505      case $cc_basename in
10506      nagfor*)
10507        # NAG Fortran compiler
10508        lt_prog_compiler_wl='-Wl,-Wl,,'
10509        lt_prog_compiler_pic='-PIC'
10510        lt_prog_compiler_static='-Bstatic'
10511        ;;
10512      esac
10513      ;;
10514
10515    mingw* | cygwin* | pw32* | os2* | cegcc*)
10516      # This hack is so that the source file can tell whether it is being
10517      # built for inclusion in a dll (and should export symbols for example).
10518      lt_prog_compiler_pic='-DDLL_EXPORT'
10519      case $host_os in
10520      os2*)
10521	lt_prog_compiler_static='$wl-static'
10522	;;
10523      esac
10524      ;;
10525
10526    hpux9* | hpux10* | hpux11*)
10527      lt_prog_compiler_wl='-Wl,'
10528      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10529      # not for PA HP-UX.
10530      case $host_cpu in
10531      hppa*64*|ia64*)
10532	# +Z the default
10533	;;
10534      *)
10535	lt_prog_compiler_pic='+Z'
10536	;;
10537      esac
10538      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10539      lt_prog_compiler_static='$wl-a ${wl}archive'
10540      ;;
10541
10542    irix5* | irix6* | nonstopux*)
10543      lt_prog_compiler_wl='-Wl,'
10544      # PIC (with -KPIC) is the default.
10545      lt_prog_compiler_static='-non_shared'
10546      ;;
10547
10548    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10549      case $cc_basename in
10550      # old Intel for x86_64, which still supported -KPIC.
10551      ecc*)
10552	lt_prog_compiler_wl='-Wl,'
10553	lt_prog_compiler_pic='-KPIC'
10554	lt_prog_compiler_static='-static'
10555        ;;
10556      # flang / f18. f95 an alias for gfortran or flang on Debian
10557      flang* | f18* | f95*)
10558	lt_prog_compiler_wl='-Wl,'
10559	lt_prog_compiler_pic='-fPIC'
10560	lt_prog_compiler_static='-static'
10561        ;;
10562      # icc used to be incompatible with GCC.
10563      # ICC 10 doesn't accept -KPIC any more.
10564      icc* | ifort*)
10565	lt_prog_compiler_wl='-Wl,'
10566	lt_prog_compiler_pic='-fPIC'
10567	lt_prog_compiler_static='-static'
10568        ;;
10569      # Lahey Fortran 8.1.
10570      lf95*)
10571	lt_prog_compiler_wl='-Wl,'
10572	lt_prog_compiler_pic='--shared'
10573	lt_prog_compiler_static='--static'
10574	;;
10575      nagfor*)
10576	# NAG Fortran compiler
10577	lt_prog_compiler_wl='-Wl,-Wl,,'
10578	lt_prog_compiler_pic='-PIC'
10579	lt_prog_compiler_static='-Bstatic'
10580	;;
10581      tcc*)
10582	# Fabrice Bellard et al's Tiny C Compiler
10583	lt_prog_compiler_wl='-Wl,'
10584	lt_prog_compiler_pic='-fPIC'
10585	lt_prog_compiler_static='-static'
10586	;;
10587      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10588        # Portland Group compilers (*not* the Pentium gcc compiler,
10589	# which looks to be a dead project)
10590	lt_prog_compiler_wl='-Wl,'
10591	lt_prog_compiler_pic='-fpic'
10592	lt_prog_compiler_static='-Bstatic'
10593        ;;
10594      ccc*)
10595        lt_prog_compiler_wl='-Wl,'
10596        # All Alpha code is PIC.
10597        lt_prog_compiler_static='-non_shared'
10598        ;;
10599      xl* | bgxl* | bgf* | mpixl*)
10600	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10601	lt_prog_compiler_wl='-Wl,'
10602	lt_prog_compiler_pic='-qpic'
10603	lt_prog_compiler_static='-qstaticlink'
10604	;;
10605      *)
10606	case `$CC -V 2>&1 | sed 5q` in
10607	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10608	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10609	  lt_prog_compiler_pic='-KPIC'
10610	  lt_prog_compiler_static='-Bstatic'
10611	  lt_prog_compiler_wl=''
10612	  ;;
10613	*Sun\ F* | *Sun*Fortran*)
10614	  lt_prog_compiler_pic='-KPIC'
10615	  lt_prog_compiler_static='-Bstatic'
10616	  lt_prog_compiler_wl='-Qoption ld '
10617	  ;;
10618	*Sun\ C*)
10619	  # Sun C 5.9
10620	  lt_prog_compiler_pic='-KPIC'
10621	  lt_prog_compiler_static='-Bstatic'
10622	  lt_prog_compiler_wl='-Wl,'
10623	  ;;
10624        *Intel*\ [CF]*Compiler*)
10625	  lt_prog_compiler_wl='-Wl,'
10626	  lt_prog_compiler_pic='-fPIC'
10627	  lt_prog_compiler_static='-static'
10628	  ;;
10629	*Portland\ Group*)
10630	  lt_prog_compiler_wl='-Wl,'
10631	  lt_prog_compiler_pic='-fpic'
10632	  lt_prog_compiler_static='-Bstatic'
10633	  ;;
10634	esac
10635	;;
10636      esac
10637      ;;
10638
10639    newsos6)
10640      lt_prog_compiler_pic='-KPIC'
10641      lt_prog_compiler_static='-Bstatic'
10642      ;;
10643
10644    *nto* | *qnx*)
10645      # QNX uses GNU C++, but need to define -shared option too, otherwise
10646      # it will coredump.
10647      lt_prog_compiler_pic='-fPIC -shared'
10648      ;;
10649
10650    osf3* | osf4* | osf5*)
10651      lt_prog_compiler_wl='-Wl,'
10652      # All OSF/1 code is PIC.
10653      lt_prog_compiler_static='-non_shared'
10654      ;;
10655
10656    rdos*)
10657      lt_prog_compiler_static='-non_shared'
10658      ;;
10659
10660    solaris*)
10661      lt_prog_compiler_pic='-KPIC'
10662      lt_prog_compiler_static='-Bstatic'
10663      case $cc_basename in
10664      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10665	lt_prog_compiler_wl='-Qoption ld ';;
10666      *)
10667	lt_prog_compiler_wl='-Wl,';;
10668      esac
10669      ;;
10670
10671    sunos4*)
10672      lt_prog_compiler_wl='-Qoption ld '
10673      lt_prog_compiler_pic='-PIC'
10674      lt_prog_compiler_static='-Bstatic'
10675      ;;
10676
10677    sysv4 | sysv4.2uw2* | sysv4.3*)
10678      lt_prog_compiler_wl='-Wl,'
10679      lt_prog_compiler_pic='-KPIC'
10680      lt_prog_compiler_static='-Bstatic'
10681      ;;
10682
10683    sysv4*MP*)
10684      if test -d /usr/nec; then
10685	lt_prog_compiler_pic='-Kconform_pic'
10686	lt_prog_compiler_static='-Bstatic'
10687      fi
10688      ;;
10689
10690    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10691      lt_prog_compiler_wl='-Wl,'
10692      lt_prog_compiler_pic='-KPIC'
10693      lt_prog_compiler_static='-Bstatic'
10694      ;;
10695
10696    unicos*)
10697      lt_prog_compiler_wl='-Wl,'
10698      lt_prog_compiler_can_build_shared=no
10699      ;;
10700
10701    uts4*)
10702      lt_prog_compiler_pic='-pic'
10703      lt_prog_compiler_static='-Bstatic'
10704      ;;
10705
10706    *)
10707      lt_prog_compiler_can_build_shared=no
10708      ;;
10709    esac
10710  fi
10711
10712case $host_os in
10713  # For platforms that do not support PIC, -DPIC is meaningless:
10714  *djgpp*)
10715    lt_prog_compiler_pic=
10716    ;;
10717  *)
10718    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10719    ;;
10720esac
10721
10722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10723$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10724if ${lt_cv_prog_compiler_pic+:} false; then :
10725  $as_echo_n "(cached) " >&6
10726else
10727  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10728fi
10729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10730$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10731lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10732
10733#
10734# Check to make sure the PIC flag actually works.
10735#
10736if test -n "$lt_prog_compiler_pic"; then
10737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10738$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10739if ${lt_cv_prog_compiler_pic_works+:} false; then :
10740  $as_echo_n "(cached) " >&6
10741else
10742  lt_cv_prog_compiler_pic_works=no
10743   ac_outfile=conftest.$ac_objext
10744   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10745   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10746   # Insert the option either (1) after the last *FLAGS variable, or
10747   # (2) before a word containing "conftest.", or (3) at the end.
10748   # Note that $ac_compile itself does not contain backslashes and begins
10749   # with a dollar sign (not a hyphen), so the echo should work correctly.
10750   # The option is referenced via a variable to avoid confusing sed.
10751   lt_compile=`echo "$ac_compile" | $SED \
10752   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10753   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10754   -e 's:$: $lt_compiler_flag:'`
10755   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10756   (eval "$lt_compile" 2>conftest.err)
10757   ac_status=$?
10758   cat conftest.err >&5
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   if (exit $ac_status) && test -s "$ac_outfile"; then
10761     # The compiler can only warn and ignore the option if not recognized
10762     # So say no if there are warnings other than the usual output.
10763     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10764     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10765     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10766       lt_cv_prog_compiler_pic_works=yes
10767     fi
10768   fi
10769   $RM conftest*
10770
10771fi
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10773$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10774
10775if test yes = "$lt_cv_prog_compiler_pic_works"; then
10776    case $lt_prog_compiler_pic in
10777     "" | " "*) ;;
10778     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10779     esac
10780else
10781    lt_prog_compiler_pic=
10782     lt_prog_compiler_can_build_shared=no
10783fi
10784
10785fi
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797#
10798# Check to make sure the static flag actually works.
10799#
10800wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10802$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10803if ${lt_cv_prog_compiler_static_works+:} false; then :
10804  $as_echo_n "(cached) " >&6
10805else
10806  lt_cv_prog_compiler_static_works=no
10807   save_LDFLAGS=$LDFLAGS
10808   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10809   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10810   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10811     # The linker can only warn and ignore the option if not recognized
10812     # So say no if there are warnings
10813     if test -s conftest.err; then
10814       # Append any errors to the config.log.
10815       cat conftest.err 1>&5
10816       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10817       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10818       if diff conftest.exp conftest.er2 >/dev/null; then
10819         lt_cv_prog_compiler_static_works=yes
10820       fi
10821     else
10822       lt_cv_prog_compiler_static_works=yes
10823     fi
10824   fi
10825   $RM -r conftest*
10826   LDFLAGS=$save_LDFLAGS
10827
10828fi
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10830$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10831
10832if test yes = "$lt_cv_prog_compiler_static_works"; then
10833    :
10834else
10835    lt_prog_compiler_static=
10836fi
10837
10838
10839
10840
10841
10842
10843
10844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10845$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10846if ${lt_cv_prog_compiler_c_o+:} false; then :
10847  $as_echo_n "(cached) " >&6
10848else
10849  lt_cv_prog_compiler_c_o=no
10850   $RM -r conftest 2>/dev/null
10851   mkdir conftest
10852   cd conftest
10853   mkdir out
10854   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10855
10856   lt_compiler_flag="-o out/conftest2.$ac_objext"
10857   # Insert the option either (1) after the last *FLAGS variable, or
10858   # (2) before a word containing "conftest.", or (3) at the end.
10859   # Note that $ac_compile itself does not contain backslashes and begins
10860   # with a dollar sign (not a hyphen), so the echo should work correctly.
10861   lt_compile=`echo "$ac_compile" | $SED \
10862   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10863   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10864   -e 's:$: $lt_compiler_flag:'`
10865   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10866   (eval "$lt_compile" 2>out/conftest.err)
10867   ac_status=$?
10868   cat out/conftest.err >&5
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10871   then
10872     # The compiler can only warn and ignore the option if not recognized
10873     # So say no if there are warnings
10874     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10875     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10876     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10877       lt_cv_prog_compiler_c_o=yes
10878     fi
10879   fi
10880   chmod u+w . 2>&5
10881   $RM conftest*
10882   # SGI C++ compiler will create directory out/ii_files/ for
10883   # template instantiation
10884   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10885   $RM out/* && rmdir out
10886   cd ..
10887   $RM -r conftest
10888   $RM conftest*
10889
10890fi
10891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10892$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10893
10894
10895
10896
10897
10898
10899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10900$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10901if ${lt_cv_prog_compiler_c_o+:} false; then :
10902  $as_echo_n "(cached) " >&6
10903else
10904  lt_cv_prog_compiler_c_o=no
10905   $RM -r conftest 2>/dev/null
10906   mkdir conftest
10907   cd conftest
10908   mkdir out
10909   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10910
10911   lt_compiler_flag="-o out/conftest2.$ac_objext"
10912   # Insert the option either (1) after the last *FLAGS variable, or
10913   # (2) before a word containing "conftest.", or (3) at the end.
10914   # Note that $ac_compile itself does not contain backslashes and begins
10915   # with a dollar sign (not a hyphen), so the echo should work correctly.
10916   lt_compile=`echo "$ac_compile" | $SED \
10917   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10918   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10919   -e 's:$: $lt_compiler_flag:'`
10920   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10921   (eval "$lt_compile" 2>out/conftest.err)
10922   ac_status=$?
10923   cat out/conftest.err >&5
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10926   then
10927     # The compiler can only warn and ignore the option if not recognized
10928     # So say no if there are warnings
10929     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10930     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10931     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10932       lt_cv_prog_compiler_c_o=yes
10933     fi
10934   fi
10935   chmod u+w . 2>&5
10936   $RM conftest*
10937   # SGI C++ compiler will create directory out/ii_files/ for
10938   # template instantiation
10939   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10940   $RM out/* && rmdir out
10941   cd ..
10942   $RM -r conftest
10943   $RM conftest*
10944
10945fi
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10947$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10948
10949
10950
10951
10952hard_links=nottested
10953if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10954  # do not overwrite the value of need_locks provided by the user
10955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10956$as_echo_n "checking if we can lock with hard links... " >&6; }
10957  hard_links=yes
10958  $RM conftest*
10959  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10960  touch conftest.a
10961  ln conftest.a conftest.b 2>&5 || hard_links=no
10962  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10964$as_echo "$hard_links" >&6; }
10965  if test no = "$hard_links"; then
10966    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10967$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10968    need_locks=warn
10969  fi
10970else
10971  need_locks=no
10972fi
10973
10974
10975
10976
10977
10978
10979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10980$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10981
10982  runpath_var=
10983  allow_undefined_flag=
10984  always_export_symbols=no
10985  archive_cmds=
10986  archive_expsym_cmds=
10987  compiler_needs_object=no
10988  enable_shared_with_static_runtimes=no
10989  export_dynamic_flag_spec=
10990  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10991  hardcode_automatic=no
10992  hardcode_direct=no
10993  hardcode_direct_absolute=no
10994  hardcode_libdir_flag_spec=
10995  hardcode_libdir_separator=
10996  hardcode_minus_L=no
10997  hardcode_shlibpath_var=unsupported
10998  inherit_rpath=no
10999  link_all_deplibs=unknown
11000  module_cmds=
11001  module_expsym_cmds=
11002  old_archive_from_new_cmds=
11003  old_archive_from_expsyms_cmds=
11004  thread_safe_flag_spec=
11005  whole_archive_flag_spec=
11006  # include_expsyms should be a list of space-separated symbols to be *always*
11007  # included in the symbol list
11008  include_expsyms=
11009  # exclude_expsyms can be an extended regexp of symbols to exclude
11010  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11011  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11012  # as well as any symbol that contains 'd'.
11013  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11014  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11015  # platforms (ab)use it in PIC code, but their linkers get confused if
11016  # the symbol is explicitly referenced.  Since portable code cannot
11017  # rely on this symbol name, it's probably fine to never include it in
11018  # preloaded symbol tables.
11019  # Exclude shared library initialization/finalization symbols.
11020  extract_expsyms_cmds=
11021
11022  case $host_os in
11023  cygwin* | mingw* | pw32* | cegcc*)
11024    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11025    # When not using gcc, we currently assume that we are using
11026    # Microsoft Visual C++.
11027    if test yes != "$GCC"; then
11028      with_gnu_ld=no
11029    fi
11030    ;;
11031  interix*)
11032    # we just hope/assume this is gcc and not c89 (= MSVC++)
11033    with_gnu_ld=yes
11034    ;;
11035  openbsd* | bitrig*)
11036    with_gnu_ld=no
11037    ;;
11038  linux* | k*bsd*-gnu | gnu*)
11039    link_all_deplibs=no
11040    ;;
11041  esac
11042
11043  ld_shlibs=yes
11044
11045  # On some targets, GNU ld is compatible enough with the native linker
11046  # that we're better off using the native interface for both.
11047  lt_use_gnu_ld_interface=no
11048  if test yes = "$with_gnu_ld"; then
11049    case $host_os in
11050      aix*)
11051	# The AIX port of GNU ld has always aspired to compatibility
11052	# with the native linker.  However, as the warning in the GNU ld
11053	# block says, versions before 2.19.5* couldn't really create working
11054	# shared libraries, regardless of the interface used.
11055	case `$LD -v 2>&1` in
11056	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11057	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11058	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11059	  *)
11060	    lt_use_gnu_ld_interface=yes
11061	    ;;
11062	esac
11063	;;
11064      *)
11065	lt_use_gnu_ld_interface=yes
11066	;;
11067    esac
11068  fi
11069
11070  if test yes = "$lt_use_gnu_ld_interface"; then
11071    # If archive_cmds runs LD, not CC, wlarc should be empty
11072    wlarc='$wl'
11073
11074    # Set some defaults for GNU ld with shared library support. These
11075    # are reset later if shared libraries are not supported. Putting them
11076    # here allows them to be overridden if necessary.
11077    runpath_var=LD_RUN_PATH
11078    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11079    export_dynamic_flag_spec='$wl--export-dynamic'
11080    # ancient GNU ld didn't support --whole-archive et. al.
11081    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11082      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11083    else
11084      whole_archive_flag_spec=
11085    fi
11086    supports_anon_versioning=no
11087    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11088      *GNU\ gold*) supports_anon_versioning=yes ;;
11089      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11090      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11091      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11092      *\ 2.11.*) ;; # other 2.11 versions
11093      *) supports_anon_versioning=yes ;;
11094    esac
11095
11096    # See if GNU ld supports shared libraries.
11097    case $host_os in
11098    aix[3-9]*)
11099      # On AIX/PPC, the GNU linker is very broken
11100      if test ia64 != "$host_cpu"; then
11101	ld_shlibs=no
11102	cat <<_LT_EOF 1>&2
11103
11104*** Warning: the GNU linker, at least up to release 2.19, is reported
11105*** to be unable to reliably create shared libraries on AIX.
11106*** Therefore, libtool is disabling shared libraries support.  If you
11107*** really care for shared libraries, you may want to install binutils
11108*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11109*** You will then need to restart the configuration process.
11110
11111_LT_EOF
11112      fi
11113      ;;
11114
11115    amigaos*)
11116      case $host_cpu in
11117      powerpc)
11118            # see comment about AmigaOS4 .so support
11119            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11120            archive_expsym_cmds=''
11121        ;;
11122      m68k)
11123            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)'
11124            hardcode_libdir_flag_spec='-L$libdir'
11125            hardcode_minus_L=yes
11126        ;;
11127      esac
11128      ;;
11129
11130    beos*)
11131      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11132	allow_undefined_flag=unsupported
11133	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11134	# support --undefined.  This deserves some investigation.  FIXME
11135	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11136      else
11137	ld_shlibs=no
11138      fi
11139      ;;
11140
11141    cygwin* | mingw* | pw32* | cegcc*)
11142      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11143      # as there is no search path for DLLs.
11144      hardcode_libdir_flag_spec='-L$libdir'
11145      export_dynamic_flag_spec='$wl--export-all-symbols'
11146      allow_undefined_flag=unsupported
11147      always_export_symbols=no
11148      enable_shared_with_static_runtimes=yes
11149      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'
11150      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11151
11152      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11153        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11154	# If the export-symbols file already is a .def file, use it as
11155	# is; otherwise, prepend EXPORTS...
11156	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11157          cp $export_symbols $output_objdir/$soname.def;
11158        else
11159          echo EXPORTS > $output_objdir/$soname.def;
11160          cat $export_symbols >> $output_objdir/$soname.def;
11161        fi~
11162        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11163      else
11164	ld_shlibs=no
11165      fi
11166      ;;
11167
11168    haiku*)
11169      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11170      link_all_deplibs=yes
11171      ;;
11172
11173    os2*)
11174      hardcode_libdir_flag_spec='-L$libdir'
11175      hardcode_minus_L=yes
11176      allow_undefined_flag=unsupported
11177      shrext_cmds=.dll
11178      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11179	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11180	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11181	$ECHO EXPORTS >> $output_objdir/$libname.def~
11182	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11183	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11184	emximp -o $lib $output_objdir/$libname.def'
11185      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11186	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11187	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11188	$ECHO EXPORTS >> $output_objdir/$libname.def~
11189	prefix_cmds="$SED"~
11190	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11191	  prefix_cmds="$prefix_cmds -e 1d";
11192	fi~
11193	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11194	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11195	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11196	emximp -o $lib $output_objdir/$libname.def'
11197      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11198      enable_shared_with_static_runtimes=yes
11199      ;;
11200
11201    interix[3-9]*)
11202      hardcode_direct=no
11203      hardcode_shlibpath_var=no
11204      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11205      export_dynamic_flag_spec='$wl-E'
11206      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11207      # Instead, shared libraries are loaded at an image base (0x10000000 by
11208      # default) and relocated if they conflict, which is a slow very memory
11209      # consuming and fragmenting process.  To avoid this, we pick a random,
11210      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11211      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11212      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11213      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'
11214      ;;
11215
11216    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11217      tmp_diet=no
11218      if test linux-dietlibc = "$host_os"; then
11219	case $cc_basename in
11220	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11221	esac
11222      fi
11223      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11224	 && test no = "$tmp_diet"
11225      then
11226	tmp_addflag=' $pic_flag'
11227	tmp_sharedflag='-shared'
11228	case $cc_basename,$host_cpu in
11229        pgcc*)				# Portland Group C compiler
11230	  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'
11231	  tmp_addflag=' $pic_flag'
11232	  ;;
11233	pgf77* | pgf90* | pgf95* | pgfortran*)
11234					# Portland Group f77 and f90 compilers
11235	  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'
11236	  tmp_addflag=' $pic_flag -Mnomain' ;;
11237	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11238	  tmp_addflag=' -i_dynamic' ;;
11239	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11240	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11241	ifc* | ifort*)			# Intel Fortran compiler
11242	  tmp_addflag=' -nofor_main' ;;
11243	lf95*)				# Lahey Fortran 8.1
11244	  whole_archive_flag_spec=
11245	  tmp_sharedflag='--shared' ;;
11246        nagfor*)                        # NAGFOR 5.3
11247          tmp_sharedflag='-Wl,-shared' ;;
11248	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11249	  tmp_sharedflag='-qmkshrobj'
11250	  tmp_addflag= ;;
11251	nvcc*)	# Cuda Compiler Driver 2.2
11252	  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'
11253	  compiler_needs_object=yes
11254	  ;;
11255	esac
11256	case `$CC -V 2>&1 | sed 5q` in
11257	*Sun\ C*)			# Sun C 5.9
11258	  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'
11259	  compiler_needs_object=yes
11260	  tmp_sharedflag='-G' ;;
11261	*Sun\ F*)			# Sun Fortran 8.3
11262	  tmp_sharedflag='-G' ;;
11263	esac
11264	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11265
11266        if test yes = "$supports_anon_versioning"; then
11267          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11268            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11269            echo "local: *; };" >> $output_objdir/$libname.ver~
11270            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11271        fi
11272
11273	case $cc_basename in
11274	tcc*)
11275	  export_dynamic_flag_spec='-rdynamic'
11276	  ;;
11277	xlf* | bgf* | bgxlf* | mpixlf*)
11278	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11279	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11280	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11281	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11282	  if test yes = "$supports_anon_versioning"; then
11283	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11284              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11285              echo "local: *; };" >> $output_objdir/$libname.ver~
11286              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11287	  fi
11288	  ;;
11289	esac
11290      else
11291        ld_shlibs=no
11292      fi
11293      ;;
11294
11295    netbsd* | netbsdelf*-gnu)
11296      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11297	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11298	wlarc=
11299      else
11300	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11301	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11302      fi
11303      ;;
11304
11305    solaris*)
11306      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11307	ld_shlibs=no
11308	cat <<_LT_EOF 1>&2
11309
11310*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11311*** create shared libraries on Solaris systems.  Therefore, libtool
11312*** is disabling shared libraries support.  We urge you to upgrade GNU
11313*** binutils to release 2.9.1 or newer.  Another option is to modify
11314*** your PATH or compiler configuration so that the native linker is
11315*** used, and then restart.
11316
11317_LT_EOF
11318      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11319	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11320	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11321      else
11322	ld_shlibs=no
11323      fi
11324      ;;
11325
11326    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11327      case `$LD -v 2>&1` in
11328        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11329	ld_shlibs=no
11330	cat <<_LT_EOF 1>&2
11331
11332*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11333*** reliably create shared libraries on SCO systems.  Therefore, libtool
11334*** is disabling shared libraries support.  We urge you to upgrade GNU
11335*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11336*** your PATH or compiler configuration so that the native linker is
11337*** used, and then restart.
11338
11339_LT_EOF
11340	;;
11341	*)
11342	  # For security reasons, it is highly recommended that you always
11343	  # use absolute paths for naming shared libraries, and exclude the
11344	  # DT_RUNPATH tag from executables and libraries.  But doing so
11345	  # requires that you compile everything twice, which is a pain.
11346	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11347	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11348	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11349	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11350	  else
11351	    ld_shlibs=no
11352	  fi
11353	;;
11354      esac
11355      ;;
11356
11357    sunos4*)
11358      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11359      wlarc=
11360      hardcode_direct=yes
11361      hardcode_shlibpath_var=no
11362      ;;
11363
11364    *)
11365      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11366	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11367	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11368      else
11369	ld_shlibs=no
11370      fi
11371      ;;
11372    esac
11373
11374    if test no = "$ld_shlibs"; then
11375      runpath_var=
11376      hardcode_libdir_flag_spec=
11377      export_dynamic_flag_spec=
11378      whole_archive_flag_spec=
11379    fi
11380  else
11381    # PORTME fill in a description of your system's linker (not GNU ld)
11382    case $host_os in
11383    aix3*)
11384      allow_undefined_flag=unsupported
11385      always_export_symbols=yes
11386      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'
11387      # Note: this linker hardcodes the directories in LIBPATH if there
11388      # are no directories specified by -L.
11389      hardcode_minus_L=yes
11390      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11391	# Neither direct hardcoding nor static linking is supported with a
11392	# broken collect2.
11393	hardcode_direct=unsupported
11394      fi
11395      ;;
11396
11397    aix[4-9]*)
11398      if test ia64 = "$host_cpu"; then
11399	# On IA64, the linker does run time linking by default, so we don't
11400	# have to do anything special.
11401	aix_use_runtimelinking=no
11402	exp_sym_flag='-Bexport'
11403	no_entry_flag=
11404      else
11405	# If we're using GNU nm, then we don't want the "-C" option.
11406	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11407	# Without the "-l" option, or with the "-B" option, AIX nm treats
11408	# weak defined symbols like other global defined symbols, whereas
11409	# GNU nm marks them as "W".
11410	# While the 'weak' keyword is ignored in the Export File, we need
11411	# it in the Import File for the 'aix-soname' feature, so we have
11412	# to replace the "-B" option with "-P" for AIX nm.
11413	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11414	  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'
11415	else
11416	  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'
11417	fi
11418	aix_use_runtimelinking=no
11419
11420	# Test if we are trying to use run time linking or normal
11421	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11422	# have runtime linking enabled, and use it for executables.
11423	# For shared libraries, we enable/disable runtime linking
11424	# depending on the kind of the shared library created -
11425	# when "with_aix_soname,aix_use_runtimelinking" is:
11426	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11427	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11428	#            lib.a           static archive
11429	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11430	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11431	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11432	#            lib.a(lib.so.V) shared, rtl:no
11433	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11434	#            lib.a           static archive
11435	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11436	  for ld_flag in $LDFLAGS; do
11437	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11438	    aix_use_runtimelinking=yes
11439	    break
11440	  fi
11441	  done
11442	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11443	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11444	    # so we don't have lib.a shared libs to link our executables.
11445	    # We have to force runtime linking in this case.
11446	    aix_use_runtimelinking=yes
11447	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11448	  fi
11449	  ;;
11450	esac
11451
11452	exp_sym_flag='-bexport'
11453	no_entry_flag='-bnoentry'
11454      fi
11455
11456      # When large executables or shared objects are built, AIX ld can
11457      # have problems creating the table of contents.  If linking a library
11458      # or program results in "error TOC overflow" add -mminimal-toc to
11459      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11460      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11461
11462      archive_cmds=''
11463      hardcode_direct=yes
11464      hardcode_direct_absolute=yes
11465      hardcode_libdir_separator=':'
11466      link_all_deplibs=yes
11467      file_list_spec='$wl-f,'
11468      case $with_aix_soname,$aix_use_runtimelinking in
11469      aix,*) ;; # traditional, no import file
11470      svr4,* | *,yes) # use import file
11471	# The Import File defines what to hardcode.
11472	hardcode_direct=no
11473	hardcode_direct_absolute=no
11474	;;
11475      esac
11476
11477      if test yes = "$GCC"; then
11478	case $host_os in aix4.[012]|aix4.[012].*)
11479	# We only want to do this on AIX 4.2 and lower, the check
11480	# below for broken collect2 doesn't work under 4.3+
11481	  collect2name=`$CC -print-prog-name=collect2`
11482	  if test -f "$collect2name" &&
11483	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11484	  then
11485	  # We have reworked collect2
11486	  :
11487	  else
11488	  # We have old collect2
11489	  hardcode_direct=unsupported
11490	  # It fails to find uninstalled libraries when the uninstalled
11491	  # path is not listed in the libpath.  Setting hardcode_minus_L
11492	  # to unsupported forces relinking
11493	  hardcode_minus_L=yes
11494	  hardcode_libdir_flag_spec='-L$libdir'
11495	  hardcode_libdir_separator=
11496	  fi
11497	  ;;
11498	esac
11499	shared_flag='-shared'
11500	if test yes = "$aix_use_runtimelinking"; then
11501	  shared_flag="$shared_flag "'$wl-G'
11502	fi
11503	# Need to ensure runtime linking is disabled for the traditional
11504	# shared library, or the linker may eventually find shared libraries
11505	# /with/ Import File - we do not want to mix them.
11506	shared_flag_aix='-shared'
11507	shared_flag_svr4='-shared $wl-G'
11508      else
11509	# not using gcc
11510	if test ia64 = "$host_cpu"; then
11511	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11512	# chokes on -Wl,-G. The following line is correct:
11513	  shared_flag='-G'
11514	else
11515	  if test yes = "$aix_use_runtimelinking"; then
11516	    shared_flag='$wl-G'
11517	  else
11518	    shared_flag='$wl-bM:SRE'
11519	  fi
11520	  shared_flag_aix='$wl-bM:SRE'
11521	  shared_flag_svr4='$wl-G'
11522	fi
11523      fi
11524
11525      export_dynamic_flag_spec='$wl-bexpall'
11526      # It seems that -bexpall does not export symbols beginning with
11527      # underscore (_), so it is better to generate a list of symbols to export.
11528      always_export_symbols=yes
11529      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11530	# Warning - without using the other runtime loading flags (-brtl),
11531	# -berok will link without error, but may produce a broken library.
11532	allow_undefined_flag='-berok'
11533        # Determine the default libpath from the value encoded in an
11534        # empty executable.
11535        if test set = "${lt_cv_aix_libpath+set}"; then
11536  aix_libpath=$lt_cv_aix_libpath
11537else
11538  if ${lt_cv_aix_libpath_+:} false; then :
11539  $as_echo_n "(cached) " >&6
11540else
11541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542/* end confdefs.h.  */
11543
11544int
11545main ()
11546{
11547
11548  ;
11549  return 0;
11550}
11551_ACEOF
11552if ac_fn_c_try_link "$LINENO"; then :
11553
11554  lt_aix_libpath_sed='
11555      /Import File Strings/,/^$/ {
11556	  /^0/ {
11557	      s/^0  *\([^ ]*\) *$/\1/
11558	      p
11559	  }
11560      }'
11561  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11562  # Check for a 64-bit object if we didn't find anything.
11563  if test -z "$lt_cv_aix_libpath_"; then
11564    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11565  fi
11566fi
11567rm -f core conftest.err conftest.$ac_objext \
11568    conftest$ac_exeext conftest.$ac_ext
11569  if test -z "$lt_cv_aix_libpath_"; then
11570    lt_cv_aix_libpath_=/usr/lib:/lib
11571  fi
11572
11573fi
11574
11575  aix_libpath=$lt_cv_aix_libpath_
11576fi
11577
11578        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11579        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
11580      else
11581	if test ia64 = "$host_cpu"; then
11582	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11583	  allow_undefined_flag="-z nodefs"
11584	  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"
11585	else
11586	 # Determine the default libpath from the value encoded in an
11587	 # empty executable.
11588	 if test set = "${lt_cv_aix_libpath+set}"; then
11589  aix_libpath=$lt_cv_aix_libpath
11590else
11591  if ${lt_cv_aix_libpath_+:} false; then :
11592  $as_echo_n "(cached) " >&6
11593else
11594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595/* end confdefs.h.  */
11596
11597int
11598main ()
11599{
11600
11601  ;
11602  return 0;
11603}
11604_ACEOF
11605if ac_fn_c_try_link "$LINENO"; then :
11606
11607  lt_aix_libpath_sed='
11608      /Import File Strings/,/^$/ {
11609	  /^0/ {
11610	      s/^0  *\([^ ]*\) *$/\1/
11611	      p
11612	  }
11613      }'
11614  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11615  # Check for a 64-bit object if we didn't find anything.
11616  if test -z "$lt_cv_aix_libpath_"; then
11617    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11618  fi
11619fi
11620rm -f core conftest.err conftest.$ac_objext \
11621    conftest$ac_exeext conftest.$ac_ext
11622  if test -z "$lt_cv_aix_libpath_"; then
11623    lt_cv_aix_libpath_=/usr/lib:/lib
11624  fi
11625
11626fi
11627
11628  aix_libpath=$lt_cv_aix_libpath_
11629fi
11630
11631	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11632	  # Warning - without using the other run time loading flags,
11633	  # -berok will link without error, but may produce a broken library.
11634	  no_undefined_flag=' $wl-bernotok'
11635	  allow_undefined_flag=' $wl-berok'
11636	  if test yes = "$with_gnu_ld"; then
11637	    # We only use this code for GNU lds that support --whole-archive.
11638	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11639	  else
11640	    # Exported symbols can be pulled into shared objects from archives
11641	    whole_archive_flag_spec='$convenience'
11642	  fi
11643	  archive_cmds_need_lc=yes
11644	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11645	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11646	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11647	  if test svr4 != "$with_aix_soname"; then
11648	    # This is similar to how AIX traditionally builds its shared libraries.
11649	    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'
11650	  fi
11651	  if test aix != "$with_aix_soname"; then
11652	    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'
11653	  else
11654	    # used by -dlpreopen to get the symbols
11655	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11656	  fi
11657	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11658	fi
11659      fi
11660      ;;
11661
11662    amigaos*)
11663      case $host_cpu in
11664      powerpc)
11665            # see comment about AmigaOS4 .so support
11666            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11667            archive_expsym_cmds=''
11668        ;;
11669      m68k)
11670            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)'
11671            hardcode_libdir_flag_spec='-L$libdir'
11672            hardcode_minus_L=yes
11673        ;;
11674      esac
11675      ;;
11676
11677    bsdi[45]*)
11678      export_dynamic_flag_spec=-rdynamic
11679      ;;
11680
11681    cygwin* | mingw* | pw32* | cegcc*)
11682      # When not using gcc, we currently assume that we are using
11683      # Microsoft Visual C++.
11684      # hardcode_libdir_flag_spec is actually meaningless, as there is
11685      # no search path for DLLs.
11686      case $cc_basename in
11687      cl*)
11688	# Native MSVC
11689	hardcode_libdir_flag_spec=' '
11690	allow_undefined_flag=unsupported
11691	always_export_symbols=yes
11692	file_list_spec='@'
11693	# Tell ltmain to make .lib files, not .a files.
11694	libext=lib
11695	# Tell ltmain to make .dll files, not .so files.
11696	shrext_cmds=.dll
11697	# FIXME: Setting linknames here is a bad hack.
11698	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11699	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11700            cp "$export_symbols" "$output_objdir/$soname.def";
11701            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11702          else
11703            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11704          fi~
11705          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11706          linknames='
11707	# The linker will not automatically build a static lib if we build a DLL.
11708	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11709	enable_shared_with_static_runtimes=yes
11710	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11711	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11712	# Don't use ranlib
11713	old_postinstall_cmds='chmod 644 $oldlib'
11714	postlink_cmds='lt_outputfile="@OUTPUT@"~
11715          lt_tool_outputfile="@TOOL_OUTPUT@"~
11716          case $lt_outputfile in
11717            *.exe|*.EXE) ;;
11718            *)
11719              lt_outputfile=$lt_outputfile.exe
11720              lt_tool_outputfile=$lt_tool_outputfile.exe
11721              ;;
11722          esac~
11723          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11724            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11725            $RM "$lt_outputfile.manifest";
11726          fi'
11727	;;
11728      *)
11729	# Assume MSVC wrapper
11730	hardcode_libdir_flag_spec=' '
11731	allow_undefined_flag=unsupported
11732	# Tell ltmain to make .lib files, not .a files.
11733	libext=lib
11734	# Tell ltmain to make .dll files, not .so files.
11735	shrext_cmds=.dll
11736	# FIXME: Setting linknames here is a bad hack.
11737	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11738	# The linker will automatically build a .lib file if we build a DLL.
11739	old_archive_from_new_cmds='true'
11740	# FIXME: Should let the user specify the lib program.
11741	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11742	enable_shared_with_static_runtimes=yes
11743	;;
11744      esac
11745      ;;
11746
11747    darwin* | rhapsody*)
11748
11749
11750  archive_cmds_need_lc=no
11751  hardcode_direct=no
11752  hardcode_automatic=yes
11753  hardcode_shlibpath_var=unsupported
11754  if test yes = "$lt_cv_ld_force_load"; then
11755    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\"`'
11756
11757  else
11758    whole_archive_flag_spec=''
11759  fi
11760  link_all_deplibs=yes
11761  allow_undefined_flag=$_lt_dar_allow_undefined
11762  case $cc_basename in
11763     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11764     *) _lt_dar_can_shared=$GCC ;;
11765  esac
11766  if test yes = "$_lt_dar_can_shared"; then
11767    output_verbose_link_cmd=func_echo_all
11768    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11769    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11770    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"
11771    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"
11772
11773  else
11774  ld_shlibs=no
11775  fi
11776
11777      ;;
11778
11779    dgux*)
11780      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11781      hardcode_libdir_flag_spec='-L$libdir'
11782      hardcode_shlibpath_var=no
11783      ;;
11784
11785    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11786    # support.  Future versions do this automatically, but an explicit c++rt0.o
11787    # does not break anything, and helps significantly (at the cost of a little
11788    # extra space).
11789    freebsd2.2*)
11790      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11791      hardcode_libdir_flag_spec='-R$libdir'
11792      hardcode_direct=yes
11793      hardcode_shlibpath_var=no
11794      ;;
11795
11796    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11797    freebsd2.*)
11798      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11799      hardcode_direct=yes
11800      hardcode_minus_L=yes
11801      hardcode_shlibpath_var=no
11802      ;;
11803
11804    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11805    freebsd* | dragonfly*)
11806      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11807      hardcode_libdir_flag_spec='-R$libdir'
11808      hardcode_direct=yes
11809      hardcode_shlibpath_var=no
11810      ;;
11811
11812    hpux9*)
11813      if test yes = "$GCC"; then
11814	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'
11815      else
11816	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'
11817      fi
11818      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11819      hardcode_libdir_separator=:
11820      hardcode_direct=yes
11821
11822      # hardcode_minus_L: Not really in the search PATH,
11823      # but as the default location of the library.
11824      hardcode_minus_L=yes
11825      export_dynamic_flag_spec='$wl-E'
11826      ;;
11827
11828    hpux10*)
11829      if test yes,no = "$GCC,$with_gnu_ld"; then
11830	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11831      else
11832	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11833      fi
11834      if test no = "$with_gnu_ld"; then
11835	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11836	hardcode_libdir_separator=:
11837	hardcode_direct=yes
11838	hardcode_direct_absolute=yes
11839	export_dynamic_flag_spec='$wl-E'
11840	# hardcode_minus_L: Not really in the search PATH,
11841	# but as the default location of the library.
11842	hardcode_minus_L=yes
11843      fi
11844      ;;
11845
11846    hpux11*)
11847      if test yes,no = "$GCC,$with_gnu_ld"; then
11848	case $host_cpu in
11849	hppa*64*)
11850	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11851	  ;;
11852	ia64*)
11853	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11854	  ;;
11855	*)
11856	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11857	  ;;
11858	esac
11859      else
11860	case $host_cpu in
11861	hppa*64*)
11862	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11863	  ;;
11864	ia64*)
11865	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11866	  ;;
11867	*)
11868
11869	  # Older versions of the 11.00 compiler do not understand -b yet
11870	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11871	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11872$as_echo_n "checking if $CC understands -b... " >&6; }
11873if ${lt_cv_prog_compiler__b+:} false; then :
11874  $as_echo_n "(cached) " >&6
11875else
11876  lt_cv_prog_compiler__b=no
11877   save_LDFLAGS=$LDFLAGS
11878   LDFLAGS="$LDFLAGS -b"
11879   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11880   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11881     # The linker can only warn and ignore the option if not recognized
11882     # So say no if there are warnings
11883     if test -s conftest.err; then
11884       # Append any errors to the config.log.
11885       cat conftest.err 1>&5
11886       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11887       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11888       if diff conftest.exp conftest.er2 >/dev/null; then
11889         lt_cv_prog_compiler__b=yes
11890       fi
11891     else
11892       lt_cv_prog_compiler__b=yes
11893     fi
11894   fi
11895   $RM -r conftest*
11896   LDFLAGS=$save_LDFLAGS
11897
11898fi
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11900$as_echo "$lt_cv_prog_compiler__b" >&6; }
11901
11902if test yes = "$lt_cv_prog_compiler__b"; then
11903    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11904else
11905    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11906fi
11907
11908	  ;;
11909	esac
11910      fi
11911      if test no = "$with_gnu_ld"; then
11912	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11913	hardcode_libdir_separator=:
11914
11915	case $host_cpu in
11916	hppa*64*|ia64*)
11917	  hardcode_direct=no
11918	  hardcode_shlibpath_var=no
11919	  ;;
11920	*)
11921	  hardcode_direct=yes
11922	  hardcode_direct_absolute=yes
11923	  export_dynamic_flag_spec='$wl-E'
11924
11925	  # hardcode_minus_L: Not really in the search PATH,
11926	  # but as the default location of the library.
11927	  hardcode_minus_L=yes
11928	  ;;
11929	esac
11930      fi
11931      ;;
11932
11933    irix5* | irix6* | nonstopux*)
11934      if test yes = "$GCC"; then
11935	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'
11936	# Try to use the -exported_symbol ld option, if it does not
11937	# work, assume that -exports_file does not work either and
11938	# implicitly export all symbols.
11939	# This should be the same for all languages, so no per-tag cache variable.
11940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11941$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11942if ${lt_cv_irix_exported_symbol+:} false; then :
11943  $as_echo_n "(cached) " >&6
11944else
11945  save_LDFLAGS=$LDFLAGS
11946	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11947	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948/* end confdefs.h.  */
11949int foo (void) { return 0; }
11950_ACEOF
11951if ac_fn_c_try_link "$LINENO"; then :
11952  lt_cv_irix_exported_symbol=yes
11953else
11954  lt_cv_irix_exported_symbol=no
11955fi
11956rm -f core conftest.err conftest.$ac_objext \
11957    conftest$ac_exeext conftest.$ac_ext
11958           LDFLAGS=$save_LDFLAGS
11959fi
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11961$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11962	if test yes = "$lt_cv_irix_exported_symbol"; then
11963          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'
11964	fi
11965	link_all_deplibs=no
11966      else
11967	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'
11968	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'
11969      fi
11970      archive_cmds_need_lc='no'
11971      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11972      hardcode_libdir_separator=:
11973      inherit_rpath=yes
11974      link_all_deplibs=yes
11975      ;;
11976
11977    linux*)
11978      case $cc_basename in
11979      tcc*)
11980	# Fabrice Bellard et al's Tiny C Compiler
11981	ld_shlibs=yes
11982	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11983	;;
11984      esac
11985      ;;
11986
11987    netbsd* | netbsdelf*-gnu)
11988      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11989	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11990      else
11991	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11992      fi
11993      hardcode_libdir_flag_spec='-R$libdir'
11994      hardcode_direct=yes
11995      hardcode_shlibpath_var=no
11996      ;;
11997
11998    newsos6)
11999      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12000      hardcode_direct=yes
12001      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12002      hardcode_libdir_separator=:
12003      hardcode_shlibpath_var=no
12004      ;;
12005
12006    *nto* | *qnx*)
12007      ;;
12008
12009    openbsd* | bitrig*)
12010      if test -f /usr/libexec/ld.so; then
12011	hardcode_direct=yes
12012	hardcode_shlibpath_var=no
12013	hardcode_direct_absolute=yes
12014	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12015	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12016	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12017	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12018	  export_dynamic_flag_spec='$wl-E'
12019	else
12020	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12021	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12022	fi
12023      else
12024	ld_shlibs=no
12025      fi
12026      ;;
12027
12028    os2*)
12029      hardcode_libdir_flag_spec='-L$libdir'
12030      hardcode_minus_L=yes
12031      allow_undefined_flag=unsupported
12032      shrext_cmds=.dll
12033      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12034	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12035	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12036	$ECHO EXPORTS >> $output_objdir/$libname.def~
12037	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12038	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12039	emximp -o $lib $output_objdir/$libname.def'
12040      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12041	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12042	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12043	$ECHO EXPORTS >> $output_objdir/$libname.def~
12044	prefix_cmds="$SED"~
12045	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12046	  prefix_cmds="$prefix_cmds -e 1d";
12047	fi~
12048	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12049	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12050	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12051	emximp -o $lib $output_objdir/$libname.def'
12052      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12053      enable_shared_with_static_runtimes=yes
12054      ;;
12055
12056    osf3*)
12057      if test yes = "$GCC"; then
12058	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12059	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'
12060      else
12061	allow_undefined_flag=' -expect_unresolved \*'
12062	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'
12063      fi
12064      archive_cmds_need_lc='no'
12065      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12066      hardcode_libdir_separator=:
12067      ;;
12068
12069    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12070      if test yes = "$GCC"; then
12071	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12072	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'
12073	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12074      else
12075	allow_undefined_flag=' -expect_unresolved \*'
12076	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'
12077	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~
12078          $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'
12079
12080	# Both c and cxx compiler support -rpath directly
12081	hardcode_libdir_flag_spec='-rpath $libdir'
12082      fi
12083      archive_cmds_need_lc='no'
12084      hardcode_libdir_separator=:
12085      ;;
12086
12087    solaris*)
12088      no_undefined_flag=' -z defs'
12089      if test yes = "$GCC"; then
12090	wlarc='$wl'
12091	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12092	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12093          $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'
12094      else
12095	case `$CC -V 2>&1` in
12096	*"Compilers 5.0"*)
12097	  wlarc=''
12098	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12099	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12100            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12101	  ;;
12102	*)
12103	  wlarc='$wl'
12104	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12105	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12106            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12107	  ;;
12108	esac
12109      fi
12110      hardcode_libdir_flag_spec='-R$libdir'
12111      hardcode_shlibpath_var=no
12112      case $host_os in
12113      solaris2.[0-5] | solaris2.[0-5].*) ;;
12114      *)
12115	# The compiler driver will combine and reorder linker options,
12116	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12117	# but is careful enough not to reorder.
12118	# Supported since Solaris 2.6 (maybe 2.5.1?)
12119	if test yes = "$GCC"; then
12120	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12121	else
12122	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12123	fi
12124	;;
12125      esac
12126      link_all_deplibs=yes
12127      ;;
12128
12129    sunos4*)
12130      if test sequent = "$host_vendor"; then
12131	# Use $CC to link under sequent, because it throws in some extra .o
12132	# files that make .init and .fini sections work.
12133	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12134      else
12135	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12136      fi
12137      hardcode_libdir_flag_spec='-L$libdir'
12138      hardcode_direct=yes
12139      hardcode_minus_L=yes
12140      hardcode_shlibpath_var=no
12141      ;;
12142
12143    sysv4)
12144      case $host_vendor in
12145	sni)
12146	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12147	  hardcode_direct=yes # is this really true???
12148	;;
12149	siemens)
12150	  ## LD is ld it makes a PLAMLIB
12151	  ## CC just makes a GrossModule.
12152	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12153	  reload_cmds='$CC -r -o $output$reload_objs'
12154	  hardcode_direct=no
12155        ;;
12156	motorola)
12157	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12158	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12159	;;
12160      esac
12161      runpath_var='LD_RUN_PATH'
12162      hardcode_shlibpath_var=no
12163      ;;
12164
12165    sysv4.3*)
12166      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12167      hardcode_shlibpath_var=no
12168      export_dynamic_flag_spec='-Bexport'
12169      ;;
12170
12171    sysv4*MP*)
12172      if test -d /usr/nec; then
12173	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12174	hardcode_shlibpath_var=no
12175	runpath_var=LD_RUN_PATH
12176	hardcode_runpath_var=yes
12177	ld_shlibs=yes
12178      fi
12179      ;;
12180
12181    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12182      no_undefined_flag='$wl-z,text'
12183      archive_cmds_need_lc=no
12184      hardcode_shlibpath_var=no
12185      runpath_var='LD_RUN_PATH'
12186
12187      if test yes = "$GCC"; then
12188	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12189	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12190      else
12191	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12192	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12193      fi
12194      ;;
12195
12196    sysv5* | sco3.2v5* | sco5v6*)
12197      # Note: We CANNOT use -z defs as we might desire, because we do not
12198      # link with -lc, and that would cause any symbols used from libc to
12199      # always be unresolved, which means just about no library would
12200      # ever link correctly.  If we're not using GNU ld we use -z text
12201      # though, which does catch some bad symbols but isn't as heavy-handed
12202      # as -z defs.
12203      no_undefined_flag='$wl-z,text'
12204      allow_undefined_flag='$wl-z,nodefs'
12205      archive_cmds_need_lc=no
12206      hardcode_shlibpath_var=no
12207      hardcode_libdir_flag_spec='$wl-R,$libdir'
12208      hardcode_libdir_separator=':'
12209      link_all_deplibs=yes
12210      export_dynamic_flag_spec='$wl-Bexport'
12211      runpath_var='LD_RUN_PATH'
12212
12213      if test yes = "$GCC"; then
12214	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12215	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12216      else
12217	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12218	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12219      fi
12220      ;;
12221
12222    uts4*)
12223      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12224      hardcode_libdir_flag_spec='-L$libdir'
12225      hardcode_shlibpath_var=no
12226      ;;
12227
12228    *)
12229      ld_shlibs=no
12230      ;;
12231    esac
12232
12233    if test sni = "$host_vendor"; then
12234      case $host in
12235      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12236	export_dynamic_flag_spec='$wl-Blargedynsym'
12237	;;
12238      esac
12239    fi
12240  fi
12241
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12243$as_echo "$ld_shlibs" >&6; }
12244test no = "$ld_shlibs" && can_build_shared=no
12245
12246with_gnu_ld=$with_gnu_ld
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262#
12263# Do we need to explicitly link libc?
12264#
12265case "x$archive_cmds_need_lc" in
12266x|xyes)
12267  # Assume -lc should be added
12268  archive_cmds_need_lc=yes
12269
12270  if test yes,yes = "$GCC,$enable_shared"; then
12271    case $archive_cmds in
12272    *'~'*)
12273      # FIXME: we may have to deal with multi-command sequences.
12274      ;;
12275    '$CC '*)
12276      # Test whether the compiler implicitly links with -lc since on some
12277      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12278      # to ld, don't add -lc before -lgcc.
12279      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12280$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12281if ${lt_cv_archive_cmds_need_lc+:} false; then :
12282  $as_echo_n "(cached) " >&6
12283else
12284  $RM conftest*
12285	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12286
12287	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12288  (eval $ac_compile) 2>&5
12289  ac_status=$?
12290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12291  test $ac_status = 0; } 2>conftest.err; then
12292	  soname=conftest
12293	  lib=conftest
12294	  libobjs=conftest.$ac_objext
12295	  deplibs=
12296	  wl=$lt_prog_compiler_wl
12297	  pic_flag=$lt_prog_compiler_pic
12298	  compiler_flags=-v
12299	  linker_flags=-v
12300	  verstring=
12301	  output_objdir=.
12302	  libname=conftest
12303	  lt_save_allow_undefined_flag=$allow_undefined_flag
12304	  allow_undefined_flag=
12305	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12306  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12307  ac_status=$?
12308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12309  test $ac_status = 0; }
12310	  then
12311	    lt_cv_archive_cmds_need_lc=no
12312	  else
12313	    lt_cv_archive_cmds_need_lc=yes
12314	  fi
12315	  allow_undefined_flag=$lt_save_allow_undefined_flag
12316	else
12317	  cat conftest.err 1>&5
12318	fi
12319	$RM conftest*
12320
12321fi
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12323$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12324      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12325      ;;
12326    esac
12327  fi
12328  ;;
12329esac
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12483$as_echo_n "checking dynamic linker characteristics... " >&6; }
12484
12485if test yes = "$GCC"; then
12486  case $host_os in
12487    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12488    *) lt_awk_arg='/^libraries:/' ;;
12489  esac
12490  case $host_os in
12491    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12492    *) lt_sed_strip_eq='s|=/|/|g' ;;
12493  esac
12494  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12495  case $lt_search_path_spec in
12496  *\;*)
12497    # if the path contains ";" then we assume it to be the separator
12498    # otherwise default to the standard path separator (i.e. ":") - it is
12499    # assumed that no part of a normal pathname contains ";" but that should
12500    # okay in the real world where ";" in dirpaths is itself problematic.
12501    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12502    ;;
12503  *)
12504    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12505    ;;
12506  esac
12507  # Ok, now we have the path, separated by spaces, we can step through it
12508  # and add multilib dir if necessary...
12509  lt_tmp_lt_search_path_spec=
12510  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12511  # ...but if some path component already ends with the multilib dir we assume
12512  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12513  case "$lt_multi_os_dir; $lt_search_path_spec " in
12514  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12515    lt_multi_os_dir=
12516    ;;
12517  esac
12518  for lt_sys_path in $lt_search_path_spec; do
12519    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12520      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12521    elif test -n "$lt_multi_os_dir"; then
12522      test -d "$lt_sys_path" && \
12523	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12524    fi
12525  done
12526  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12527BEGIN {RS = " "; FS = "/|\n";} {
12528  lt_foo = "";
12529  lt_count = 0;
12530  for (lt_i = NF; lt_i > 0; lt_i--) {
12531    if ($lt_i != "" && $lt_i != ".") {
12532      if ($lt_i == "..") {
12533        lt_count++;
12534      } else {
12535        if (lt_count == 0) {
12536          lt_foo = "/" $lt_i lt_foo;
12537        } else {
12538          lt_count--;
12539        }
12540      }
12541    }
12542  }
12543  if (lt_foo != "") { lt_freq[lt_foo]++; }
12544  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12545}'`
12546  # AWK program above erroneously prepends '/' to C:/dos/paths
12547  # for these hosts.
12548  case $host_os in
12549    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12550      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12551  esac
12552  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12553else
12554  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12555fi
12556library_names_spec=
12557libname_spec='lib$name'
12558soname_spec=
12559shrext_cmds=.so
12560postinstall_cmds=
12561postuninstall_cmds=
12562finish_cmds=
12563finish_eval=
12564shlibpath_var=
12565shlibpath_overrides_runpath=unknown
12566version_type=none
12567dynamic_linker="$host_os ld.so"
12568sys_lib_dlsearch_path_spec="/lib /usr/lib"
12569need_lib_prefix=unknown
12570hardcode_into_libs=no
12571
12572# when you set need_version to no, make sure it does not cause -set_version
12573# flags to be left without arguments
12574need_version=unknown
12575
12576
12577
12578case $host_os in
12579aix3*)
12580  version_type=linux # correct to gnu/linux during the next big refactor
12581  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12582  shlibpath_var=LIBPATH
12583
12584  # AIX 3 has no versioning support, so we append a major version to the name.
12585  soname_spec='$libname$release$shared_ext$major'
12586  ;;
12587
12588aix[4-9]*)
12589  version_type=linux # correct to gnu/linux during the next big refactor
12590  need_lib_prefix=no
12591  need_version=no
12592  hardcode_into_libs=yes
12593  if test ia64 = "$host_cpu"; then
12594    # AIX 5 supports IA64
12595    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12596    shlibpath_var=LD_LIBRARY_PATH
12597  else
12598    # With GCC up to 2.95.x, collect2 would create an import file
12599    # for dependence libraries.  The import file would start with
12600    # the line '#! .'.  This would cause the generated library to
12601    # depend on '.', always an invalid library.  This was fixed in
12602    # development snapshots of GCC prior to 3.0.
12603    case $host_os in
12604      aix4 | aix4.[01] | aix4.[01].*)
12605      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12606	   echo ' yes '
12607	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12608	:
12609      else
12610	can_build_shared=no
12611      fi
12612      ;;
12613    esac
12614    # Using Import Files as archive members, it is possible to support
12615    # filename-based versioning of shared library archives on AIX. While
12616    # this would work for both with and without runtime linking, it will
12617    # prevent static linking of such archives. So we do filename-based
12618    # shared library versioning with .so extension only, which is used
12619    # when both runtime linking and shared linking is enabled.
12620    # Unfortunately, runtime linking may impact performance, so we do
12621    # not want this to be the default eventually. Also, we use the
12622    # versioned .so libs for executables only if there is the -brtl
12623    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12624    # To allow for filename-based versioning support, we need to create
12625    # libNAME.so.V as an archive file, containing:
12626    # *) an Import File, referring to the versioned filename of the
12627    #    archive as well as the shared archive member, telling the
12628    #    bitwidth (32 or 64) of that shared object, and providing the
12629    #    list of exported symbols of that shared object, eventually
12630    #    decorated with the 'weak' keyword
12631    # *) the shared object with the F_LOADONLY flag set, to really avoid
12632    #    it being seen by the linker.
12633    # At run time we better use the real file rather than another symlink,
12634    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12635
12636    case $with_aix_soname,$aix_use_runtimelinking in
12637    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12638    # soname into executable. Probably we can add versioning support to
12639    # collect2, so additional links can be useful in future.
12640    aix,yes) # traditional libtool
12641      dynamic_linker='AIX unversionable lib.so'
12642      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12643      # instead of lib<name>.a to let people know that these are not
12644      # typical AIX shared libraries.
12645      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12646      ;;
12647    aix,no) # traditional AIX only
12648      dynamic_linker='AIX lib.a(lib.so.V)'
12649      # We preserve .a as extension for shared libraries through AIX4.2
12650      # and later when we are not doing run time linking.
12651      library_names_spec='$libname$release.a $libname.a'
12652      soname_spec='$libname$release$shared_ext$major'
12653      ;;
12654    svr4,*) # full svr4 only
12655      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12656      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12657      # We do not specify a path in Import Files, so LIBPATH fires.
12658      shlibpath_overrides_runpath=yes
12659      ;;
12660    *,yes) # both, prefer svr4
12661      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12662      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12663      # unpreferred sharedlib libNAME.a needs extra handling
12664      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"'
12665      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"'
12666      # We do not specify a path in Import Files, so LIBPATH fires.
12667      shlibpath_overrides_runpath=yes
12668      ;;
12669    *,no) # both, prefer aix
12670      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12671      library_names_spec='$libname$release.a $libname.a'
12672      soname_spec='$libname$release$shared_ext$major'
12673      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12674      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)'
12675      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"'
12676      ;;
12677    esac
12678    shlibpath_var=LIBPATH
12679  fi
12680  ;;
12681
12682amigaos*)
12683  case $host_cpu in
12684  powerpc)
12685    # Since July 2007 AmigaOS4 officially supports .so libraries.
12686    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12687    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12688    ;;
12689  m68k)
12690    library_names_spec='$libname.ixlibrary $libname.a'
12691    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12692    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'
12693    ;;
12694  esac
12695  ;;
12696
12697beos*)
12698  library_names_spec='$libname$shared_ext'
12699  dynamic_linker="$host_os ld.so"
12700  shlibpath_var=LIBRARY_PATH
12701  ;;
12702
12703bsdi[45]*)
12704  version_type=linux # correct to gnu/linux during the next big refactor
12705  need_version=no
12706  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12707  soname_spec='$libname$release$shared_ext$major'
12708  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12709  shlibpath_var=LD_LIBRARY_PATH
12710  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12711  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12712  # the default ld.so.conf also contains /usr/contrib/lib and
12713  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12714  # libtool to hard-code these into programs
12715  ;;
12716
12717cygwin* | mingw* | pw32* | cegcc*)
12718  version_type=windows
12719  shrext_cmds=.dll
12720  need_version=no
12721  need_lib_prefix=no
12722
12723  case $GCC,$cc_basename in
12724  yes,*)
12725    # gcc
12726    library_names_spec='$libname.dll.a'
12727    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12728    postinstall_cmds='base_file=`basename \$file`~
12729      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12730      dldir=$destdir/`dirname \$dlpath`~
12731      test -d \$dldir || mkdir -p \$dldir~
12732      $install_prog $dir/$dlname \$dldir/$dlname~
12733      chmod a+x \$dldir/$dlname~
12734      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12735        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12736      fi'
12737    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12738      dlpath=$dir/\$dldll~
12739       $RM \$dlpath'
12740    shlibpath_overrides_runpath=yes
12741
12742    case $host_os in
12743    cygwin*)
12744      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12745      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12746
12747      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12748      ;;
12749    mingw* | cegcc*)
12750      # MinGW DLLs use traditional 'lib' prefix
12751      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12752      ;;
12753    pw32*)
12754      # pw32 DLLs use 'pw' prefix rather than 'lib'
12755      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12756      ;;
12757    esac
12758    dynamic_linker='Win32 ld.exe'
12759    ;;
12760
12761  *,cl*)
12762    # Native MSVC
12763    libname_spec='$name'
12764    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12765    library_names_spec='$libname.dll.lib'
12766
12767    case $build_os in
12768    mingw*)
12769      sys_lib_search_path_spec=
12770      lt_save_ifs=$IFS
12771      IFS=';'
12772      for lt_path in $LIB
12773      do
12774        IFS=$lt_save_ifs
12775        # Let DOS variable expansion print the short 8.3 style file name.
12776        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12777        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12778      done
12779      IFS=$lt_save_ifs
12780      # Convert to MSYS style.
12781      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12782      ;;
12783    cygwin*)
12784      # Convert to unix form, then to dos form, then back to unix form
12785      # but this time dos style (no spaces!) so that the unix form looks
12786      # like /cygdrive/c/PROGRA~1:/cygdr...
12787      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12788      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12789      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12790      ;;
12791    *)
12792      sys_lib_search_path_spec=$LIB
12793      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12794        # It is most probably a Windows format PATH.
12795        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12796      else
12797        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12798      fi
12799      # FIXME: find the short name or the path components, as spaces are
12800      # common. (e.g. "Program Files" -> "PROGRA~1")
12801      ;;
12802    esac
12803
12804    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12805    postinstall_cmds='base_file=`basename \$file`~
12806      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12807      dldir=$destdir/`dirname \$dlpath`~
12808      test -d \$dldir || mkdir -p \$dldir~
12809      $install_prog $dir/$dlname \$dldir/$dlname'
12810    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12811      dlpath=$dir/\$dldll~
12812       $RM \$dlpath'
12813    shlibpath_overrides_runpath=yes
12814    dynamic_linker='Win32 link.exe'
12815    ;;
12816
12817  *)
12818    # Assume MSVC wrapper
12819    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12820    dynamic_linker='Win32 ld.exe'
12821    ;;
12822  esac
12823  # FIXME: first we should search . and the directory the executable is in
12824  shlibpath_var=PATH
12825  ;;
12826
12827darwin* | rhapsody*)
12828  dynamic_linker="$host_os dyld"
12829  version_type=darwin
12830  need_lib_prefix=no
12831  need_version=no
12832  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12833  soname_spec='$libname$release$major$shared_ext'
12834  shlibpath_overrides_runpath=yes
12835  shlibpath_var=DYLD_LIBRARY_PATH
12836  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12837
12838  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12839  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12840  ;;
12841
12842dgux*)
12843  version_type=linux # correct to gnu/linux during the next big refactor
12844  need_lib_prefix=no
12845  need_version=no
12846  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12847  soname_spec='$libname$release$shared_ext$major'
12848  shlibpath_var=LD_LIBRARY_PATH
12849  ;;
12850
12851freebsd* | dragonfly*)
12852  # DragonFly does not have aout.  When/if they implement a new
12853  # versioning mechanism, adjust this.
12854  if test -x /usr/bin/objformat; then
12855    objformat=`/usr/bin/objformat`
12856  else
12857    case $host_os in
12858    freebsd[23].*) objformat=aout ;;
12859    *) objformat=elf ;;
12860    esac
12861  fi
12862  version_type=freebsd-$objformat
12863  case $version_type in
12864    freebsd-elf*)
12865      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12866      soname_spec='$libname$release$shared_ext$major'
12867      need_version=no
12868      need_lib_prefix=no
12869      ;;
12870    freebsd-*)
12871      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12872      need_version=yes
12873      ;;
12874  esac
12875  shlibpath_var=LD_LIBRARY_PATH
12876  case $host_os in
12877  freebsd2.*)
12878    shlibpath_overrides_runpath=yes
12879    ;;
12880  freebsd3.[01]* | freebsdelf3.[01]*)
12881    shlibpath_overrides_runpath=yes
12882    hardcode_into_libs=yes
12883    ;;
12884  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12885  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12886    shlibpath_overrides_runpath=no
12887    hardcode_into_libs=yes
12888    ;;
12889  *) # from 4.6 on, and DragonFly
12890    shlibpath_overrides_runpath=yes
12891    hardcode_into_libs=yes
12892    ;;
12893  esac
12894  ;;
12895
12896haiku*)
12897  version_type=linux # correct to gnu/linux during the next big refactor
12898  need_lib_prefix=no
12899  need_version=no
12900  dynamic_linker="$host_os runtime_loader"
12901  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12902  soname_spec='$libname$release$shared_ext$major'
12903  shlibpath_var=LIBRARY_PATH
12904  shlibpath_overrides_runpath=no
12905  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12906  hardcode_into_libs=yes
12907  ;;
12908
12909hpux9* | hpux10* | hpux11*)
12910  # Give a soname corresponding to the major version so that dld.sl refuses to
12911  # link against other versions.
12912  version_type=sunos
12913  need_lib_prefix=no
12914  need_version=no
12915  case $host_cpu in
12916  ia64*)
12917    shrext_cmds='.so'
12918    hardcode_into_libs=yes
12919    dynamic_linker="$host_os dld.so"
12920    shlibpath_var=LD_LIBRARY_PATH
12921    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12922    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12923    soname_spec='$libname$release$shared_ext$major'
12924    if test 32 = "$HPUX_IA64_MODE"; then
12925      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12926      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12927    else
12928      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12929      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12930    fi
12931    ;;
12932  hppa*64*)
12933    shrext_cmds='.sl'
12934    hardcode_into_libs=yes
12935    dynamic_linker="$host_os dld.sl"
12936    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12937    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12938    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12939    soname_spec='$libname$release$shared_ext$major'
12940    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12941    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12942    ;;
12943  *)
12944    shrext_cmds='.sl'
12945    dynamic_linker="$host_os dld.sl"
12946    shlibpath_var=SHLIB_PATH
12947    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12948    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12949    soname_spec='$libname$release$shared_ext$major'
12950    ;;
12951  esac
12952  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12953  postinstall_cmds='chmod 555 $lib'
12954  # or fails outright, so override atomically:
12955  install_override_mode=555
12956  ;;
12957
12958interix[3-9]*)
12959  version_type=linux # correct to gnu/linux during the next big refactor
12960  need_lib_prefix=no
12961  need_version=no
12962  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12963  soname_spec='$libname$release$shared_ext$major'
12964  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12965  shlibpath_var=LD_LIBRARY_PATH
12966  shlibpath_overrides_runpath=no
12967  hardcode_into_libs=yes
12968  ;;
12969
12970irix5* | irix6* | nonstopux*)
12971  case $host_os in
12972    nonstopux*) version_type=nonstopux ;;
12973    *)
12974	if test yes = "$lt_cv_prog_gnu_ld"; then
12975		version_type=linux # correct to gnu/linux during the next big refactor
12976	else
12977		version_type=irix
12978	fi ;;
12979  esac
12980  need_lib_prefix=no
12981  need_version=no
12982  soname_spec='$libname$release$shared_ext$major'
12983  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12984  case $host_os in
12985  irix5* | nonstopux*)
12986    libsuff= shlibsuff=
12987    ;;
12988  *)
12989    case $LD in # libtool.m4 will add one of these switches to LD
12990    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12991      libsuff= shlibsuff= libmagic=32-bit;;
12992    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12993      libsuff=32 shlibsuff=N32 libmagic=N32;;
12994    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12995      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12996    *) libsuff= shlibsuff= libmagic=never-match;;
12997    esac
12998    ;;
12999  esac
13000  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13001  shlibpath_overrides_runpath=no
13002  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13003  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13004  hardcode_into_libs=yes
13005  ;;
13006
13007# No shared lib support for Linux oldld, aout, or coff.
13008linux*oldld* | linux*aout* | linux*coff*)
13009  dynamic_linker=no
13010  ;;
13011
13012linux*android*)
13013  version_type=none # Android doesn't support versioned libraries.
13014  need_lib_prefix=no
13015  need_version=no
13016  library_names_spec='$libname$release$shared_ext'
13017  soname_spec='$libname$release$shared_ext'
13018  finish_cmds=
13019  shlibpath_var=LD_LIBRARY_PATH
13020  shlibpath_overrides_runpath=yes
13021
13022  # This implies no fast_install, which is unacceptable.
13023  # Some rework will be needed to allow for fast_install
13024  # before this can be enabled.
13025  hardcode_into_libs=yes
13026
13027  dynamic_linker='Android linker'
13028  # Don't embed -rpath directories since the linker doesn't support them.
13029  hardcode_libdir_flag_spec='-L$libdir'
13030  ;;
13031
13032# This must be glibc/ELF.
13033linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13034  version_type=linux # correct to gnu/linux during the next big refactor
13035  need_lib_prefix=no
13036  need_version=no
13037  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13038  soname_spec='$libname$release$shared_ext$major'
13039  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13040  shlibpath_var=LD_LIBRARY_PATH
13041  shlibpath_overrides_runpath=no
13042
13043  # Some binutils ld are patched to set DT_RUNPATH
13044  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13045  $as_echo_n "(cached) " >&6
13046else
13047  lt_cv_shlibpath_overrides_runpath=no
13048    save_LDFLAGS=$LDFLAGS
13049    save_libdir=$libdir
13050    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13051	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13052    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053/* end confdefs.h.  */
13054
13055int
13056main ()
13057{
13058
13059  ;
13060  return 0;
13061}
13062_ACEOF
13063if ac_fn_c_try_link "$LINENO"; then :
13064  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13065  lt_cv_shlibpath_overrides_runpath=yes
13066fi
13067fi
13068rm -f core conftest.err conftest.$ac_objext \
13069    conftest$ac_exeext conftest.$ac_ext
13070    LDFLAGS=$save_LDFLAGS
13071    libdir=$save_libdir
13072
13073fi
13074
13075  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13076
13077  # This implies no fast_install, which is unacceptable.
13078  # Some rework will be needed to allow for fast_install
13079  # before this can be enabled.
13080  hardcode_into_libs=yes
13081
13082  # Ideally, we could use ldconfig to report *all* directores which are
13083  # searched for libraries, however this is still not possible.  Aside from not
13084  # being certain /sbin/ldconfig is available, command
13085  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13086  # even though it is searched at run-time.  Try to do the best guess by
13087  # appending ld.so.conf contents (and includes) to the search path.
13088  if test -f /etc/ld.so.conf; then
13089    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' ' '`
13090    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13091  fi
13092
13093  # We used to test for /lib/ld.so.1 and disable shared libraries on
13094  # powerpc, because MkLinux only supported shared libraries with the
13095  # GNU dynamic linker.  Since this was broken with cross compilers,
13096  # most powerpc-linux boxes support dynamic linking these days and
13097  # people can always --disable-shared, the test was removed, and we
13098  # assume the GNU/Linux dynamic linker is in use.
13099  dynamic_linker='GNU/Linux ld.so'
13100  ;;
13101
13102netbsdelf*-gnu)
13103  version_type=linux
13104  need_lib_prefix=no
13105  need_version=no
13106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13107  soname_spec='${libname}${release}${shared_ext}$major'
13108  shlibpath_var=LD_LIBRARY_PATH
13109  shlibpath_overrides_runpath=no
13110  hardcode_into_libs=yes
13111  dynamic_linker='NetBSD ld.elf_so'
13112  ;;
13113
13114netbsd*)
13115  version_type=sunos
13116  need_lib_prefix=no
13117  need_version=no
13118  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13119    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13120    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13121    dynamic_linker='NetBSD (a.out) ld.so'
13122  else
13123    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13124    soname_spec='$libname$release$shared_ext$major'
13125    dynamic_linker='NetBSD ld.elf_so'
13126  fi
13127  shlibpath_var=LD_LIBRARY_PATH
13128  shlibpath_overrides_runpath=yes
13129  hardcode_into_libs=yes
13130  ;;
13131
13132newsos6)
13133  version_type=linux # correct to gnu/linux during the next big refactor
13134  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13135  shlibpath_var=LD_LIBRARY_PATH
13136  shlibpath_overrides_runpath=yes
13137  ;;
13138
13139*nto* | *qnx*)
13140  version_type=qnx
13141  need_lib_prefix=no
13142  need_version=no
13143  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13144  soname_spec='$libname$release$shared_ext$major'
13145  shlibpath_var=LD_LIBRARY_PATH
13146  shlibpath_overrides_runpath=no
13147  hardcode_into_libs=yes
13148  dynamic_linker='ldqnx.so'
13149  ;;
13150
13151openbsd* | bitrig*)
13152  version_type=sunos
13153  sys_lib_dlsearch_path_spec=/usr/lib
13154  need_lib_prefix=no
13155  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13156    need_version=no
13157  else
13158    need_version=yes
13159  fi
13160  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13161  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13162  shlibpath_var=LD_LIBRARY_PATH
13163  shlibpath_overrides_runpath=yes
13164  ;;
13165
13166os2*)
13167  libname_spec='$name'
13168  version_type=windows
13169  shrext_cmds=.dll
13170  need_version=no
13171  need_lib_prefix=no
13172  # OS/2 can only load a DLL with a base name of 8 characters or less.
13173  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13174    v=$($ECHO $release$versuffix | tr -d .-);
13175    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13176    $ECHO $n$v`$shared_ext'
13177  library_names_spec='${libname}_dll.$libext'
13178  dynamic_linker='OS/2 ld.exe'
13179  shlibpath_var=BEGINLIBPATH
13180  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13181  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13182  postinstall_cmds='base_file=`basename \$file`~
13183    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13184    dldir=$destdir/`dirname \$dlpath`~
13185    test -d \$dldir || mkdir -p \$dldir~
13186    $install_prog $dir/$dlname \$dldir/$dlname~
13187    chmod a+x \$dldir/$dlname~
13188    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13189      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13190    fi'
13191  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13192    dlpath=$dir/\$dldll~
13193    $RM \$dlpath'
13194  ;;
13195
13196osf3* | osf4* | osf5*)
13197  version_type=osf
13198  need_lib_prefix=no
13199  need_version=no
13200  soname_spec='$libname$release$shared_ext$major'
13201  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13202  shlibpath_var=LD_LIBRARY_PATH
13203  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13204  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13205  ;;
13206
13207rdos*)
13208  dynamic_linker=no
13209  ;;
13210
13211solaris*)
13212  version_type=linux # correct to gnu/linux during the next big refactor
13213  need_lib_prefix=no
13214  need_version=no
13215  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13216  soname_spec='$libname$release$shared_ext$major'
13217  shlibpath_var=LD_LIBRARY_PATH
13218  shlibpath_overrides_runpath=yes
13219  hardcode_into_libs=yes
13220  # ldd complains unless libraries are executable
13221  postinstall_cmds='chmod +x $lib'
13222  ;;
13223
13224sunos4*)
13225  version_type=sunos
13226  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13227  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13228  shlibpath_var=LD_LIBRARY_PATH
13229  shlibpath_overrides_runpath=yes
13230  if test yes = "$with_gnu_ld"; then
13231    need_lib_prefix=no
13232  fi
13233  need_version=yes
13234  ;;
13235
13236sysv4 | sysv4.3*)
13237  version_type=linux # correct to gnu/linux during the next big refactor
13238  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13239  soname_spec='$libname$release$shared_ext$major'
13240  shlibpath_var=LD_LIBRARY_PATH
13241  case $host_vendor in
13242    sni)
13243      shlibpath_overrides_runpath=no
13244      need_lib_prefix=no
13245      runpath_var=LD_RUN_PATH
13246      ;;
13247    siemens)
13248      need_lib_prefix=no
13249      ;;
13250    motorola)
13251      need_lib_prefix=no
13252      need_version=no
13253      shlibpath_overrides_runpath=no
13254      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13255      ;;
13256  esac
13257  ;;
13258
13259sysv4*MP*)
13260  if test -d /usr/nec; then
13261    version_type=linux # correct to gnu/linux during the next big refactor
13262    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13263    soname_spec='$libname$shared_ext.$major'
13264    shlibpath_var=LD_LIBRARY_PATH
13265  fi
13266  ;;
13267
13268sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13269  version_type=sco
13270  need_lib_prefix=no
13271  need_version=no
13272  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13273  soname_spec='$libname$release$shared_ext$major'
13274  shlibpath_var=LD_LIBRARY_PATH
13275  shlibpath_overrides_runpath=yes
13276  hardcode_into_libs=yes
13277  if test yes = "$with_gnu_ld"; then
13278    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13279  else
13280    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13281    case $host_os in
13282      sco3.2v5*)
13283        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13284	;;
13285    esac
13286  fi
13287  sys_lib_dlsearch_path_spec='/usr/lib'
13288  ;;
13289
13290tpf*)
13291  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13292  version_type=linux # correct to gnu/linux during the next big refactor
13293  need_lib_prefix=no
13294  need_version=no
13295  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13296  shlibpath_var=LD_LIBRARY_PATH
13297  shlibpath_overrides_runpath=no
13298  hardcode_into_libs=yes
13299  ;;
13300
13301uts4*)
13302  version_type=linux # correct to gnu/linux during the next big refactor
13303  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13304  soname_spec='$libname$release$shared_ext$major'
13305  shlibpath_var=LD_LIBRARY_PATH
13306  ;;
13307
13308*)
13309  dynamic_linker=no
13310  ;;
13311esac
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13313$as_echo "$dynamic_linker" >&6; }
13314test no = "$dynamic_linker" && can_build_shared=no
13315
13316variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13317if test yes = "$GCC"; then
13318  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13319fi
13320
13321if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13322  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13323fi
13324
13325if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13326  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13327fi
13328
13329# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13330configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13331
13332# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13333func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13334
13335# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13336configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13435$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13436hardcode_action=
13437if test -n "$hardcode_libdir_flag_spec" ||
13438   test -n "$runpath_var" ||
13439   test yes = "$hardcode_automatic"; then
13440
13441  # We can hardcode non-existent directories.
13442  if test no != "$hardcode_direct" &&
13443     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13444     # have to relink, otherwise we might link with an installed library
13445     # when we should be linking with a yet-to-be-installed one
13446     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13447     test no != "$hardcode_minus_L"; then
13448    # Linking always hardcodes the temporary library directory.
13449    hardcode_action=relink
13450  else
13451    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13452    hardcode_action=immediate
13453  fi
13454else
13455  # We cannot hardcode anything, or else we can only hardcode existing
13456  # directories.
13457  hardcode_action=unsupported
13458fi
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13460$as_echo "$hardcode_action" >&6; }
13461
13462if test relink = "$hardcode_action" ||
13463   test yes = "$inherit_rpath"; then
13464  # Fast installation is not supported
13465  enable_fast_install=no
13466elif test yes = "$shlibpath_overrides_runpath" ||
13467     test no = "$enable_shared"; then
13468  # Fast installation is not necessary
13469  enable_fast_install=needless
13470fi
13471
13472
13473
13474
13475
13476
13477  if test yes != "$enable_dlopen"; then
13478  enable_dlopen=unknown
13479  enable_dlopen_self=unknown
13480  enable_dlopen_self_static=unknown
13481else
13482  lt_cv_dlopen=no
13483  lt_cv_dlopen_libs=
13484
13485  case $host_os in
13486  beos*)
13487    lt_cv_dlopen=load_add_on
13488    lt_cv_dlopen_libs=
13489    lt_cv_dlopen_self=yes
13490    ;;
13491
13492  mingw* | pw32* | cegcc*)
13493    lt_cv_dlopen=LoadLibrary
13494    lt_cv_dlopen_libs=
13495    ;;
13496
13497  cygwin*)
13498    lt_cv_dlopen=dlopen
13499    lt_cv_dlopen_libs=
13500    ;;
13501
13502  darwin*)
13503    # if libdl is installed we need to link against it
13504    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13505$as_echo_n "checking for dlopen in -ldl... " >&6; }
13506if ${ac_cv_lib_dl_dlopen+:} false; then :
13507  $as_echo_n "(cached) " >&6
13508else
13509  ac_check_lib_save_LIBS=$LIBS
13510LIBS="-ldl  $LIBS"
13511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512/* end confdefs.h.  */
13513
13514/* Override any GCC internal prototype to avoid an error.
13515   Use char because int might match the return type of a GCC
13516   builtin and then its argument prototype would still apply.  */
13517#ifdef __cplusplus
13518extern "C"
13519#endif
13520char dlopen ();
13521int
13522main ()
13523{
13524return dlopen ();
13525  ;
13526  return 0;
13527}
13528_ACEOF
13529if ac_fn_c_try_link "$LINENO"; then :
13530  ac_cv_lib_dl_dlopen=yes
13531else
13532  ac_cv_lib_dl_dlopen=no
13533fi
13534rm -f core conftest.err conftest.$ac_objext \
13535    conftest$ac_exeext conftest.$ac_ext
13536LIBS=$ac_check_lib_save_LIBS
13537fi
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13539$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13540if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13541  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13542else
13543
13544    lt_cv_dlopen=dyld
13545    lt_cv_dlopen_libs=
13546    lt_cv_dlopen_self=yes
13547
13548fi
13549
13550    ;;
13551
13552  tpf*)
13553    # Don't try to run any link tests for TPF.  We know it's impossible
13554    # because TPF is a cross-compiler, and we know how we open DSOs.
13555    lt_cv_dlopen=dlopen
13556    lt_cv_dlopen_libs=
13557    lt_cv_dlopen_self=no
13558    ;;
13559
13560  *)
13561    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13562if test "x$ac_cv_func_shl_load" = xyes; then :
13563  lt_cv_dlopen=shl_load
13564else
13565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13566$as_echo_n "checking for shl_load in -ldld... " >&6; }
13567if ${ac_cv_lib_dld_shl_load+:} false; then :
13568  $as_echo_n "(cached) " >&6
13569else
13570  ac_check_lib_save_LIBS=$LIBS
13571LIBS="-ldld  $LIBS"
13572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573/* end confdefs.h.  */
13574
13575/* Override any GCC internal prototype to avoid an error.
13576   Use char because int might match the return type of a GCC
13577   builtin and then its argument prototype would still apply.  */
13578#ifdef __cplusplus
13579extern "C"
13580#endif
13581char shl_load ();
13582int
13583main ()
13584{
13585return shl_load ();
13586  ;
13587  return 0;
13588}
13589_ACEOF
13590if ac_fn_c_try_link "$LINENO"; then :
13591  ac_cv_lib_dld_shl_load=yes
13592else
13593  ac_cv_lib_dld_shl_load=no
13594fi
13595rm -f core conftest.err conftest.$ac_objext \
13596    conftest$ac_exeext conftest.$ac_ext
13597LIBS=$ac_check_lib_save_LIBS
13598fi
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13600$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13601if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13602  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13603else
13604  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13605if test "x$ac_cv_func_dlopen" = xyes; then :
13606  lt_cv_dlopen=dlopen
13607else
13608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13609$as_echo_n "checking for dlopen in -ldl... " >&6; }
13610if ${ac_cv_lib_dl_dlopen+:} false; then :
13611  $as_echo_n "(cached) " >&6
13612else
13613  ac_check_lib_save_LIBS=$LIBS
13614LIBS="-ldl  $LIBS"
13615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616/* end confdefs.h.  */
13617
13618/* Override any GCC internal prototype to avoid an error.
13619   Use char because int might match the return type of a GCC
13620   builtin and then its argument prototype would still apply.  */
13621#ifdef __cplusplus
13622extern "C"
13623#endif
13624char dlopen ();
13625int
13626main ()
13627{
13628return dlopen ();
13629  ;
13630  return 0;
13631}
13632_ACEOF
13633if ac_fn_c_try_link "$LINENO"; then :
13634  ac_cv_lib_dl_dlopen=yes
13635else
13636  ac_cv_lib_dl_dlopen=no
13637fi
13638rm -f core conftest.err conftest.$ac_objext \
13639    conftest$ac_exeext conftest.$ac_ext
13640LIBS=$ac_check_lib_save_LIBS
13641fi
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13643$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13644if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13645  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13646else
13647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13648$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13649if ${ac_cv_lib_svld_dlopen+:} false; then :
13650  $as_echo_n "(cached) " >&6
13651else
13652  ac_check_lib_save_LIBS=$LIBS
13653LIBS="-lsvld  $LIBS"
13654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655/* end confdefs.h.  */
13656
13657/* Override any GCC internal prototype to avoid an error.
13658   Use char because int might match the return type of a GCC
13659   builtin and then its argument prototype would still apply.  */
13660#ifdef __cplusplus
13661extern "C"
13662#endif
13663char dlopen ();
13664int
13665main ()
13666{
13667return dlopen ();
13668  ;
13669  return 0;
13670}
13671_ACEOF
13672if ac_fn_c_try_link "$LINENO"; then :
13673  ac_cv_lib_svld_dlopen=yes
13674else
13675  ac_cv_lib_svld_dlopen=no
13676fi
13677rm -f core conftest.err conftest.$ac_objext \
13678    conftest$ac_exeext conftest.$ac_ext
13679LIBS=$ac_check_lib_save_LIBS
13680fi
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13682$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13683if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13684  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13685else
13686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13687$as_echo_n "checking for dld_link in -ldld... " >&6; }
13688if ${ac_cv_lib_dld_dld_link+:} false; then :
13689  $as_echo_n "(cached) " >&6
13690else
13691  ac_check_lib_save_LIBS=$LIBS
13692LIBS="-ldld  $LIBS"
13693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694/* end confdefs.h.  */
13695
13696/* Override any GCC internal prototype to avoid an error.
13697   Use char because int might match the return type of a GCC
13698   builtin and then its argument prototype would still apply.  */
13699#ifdef __cplusplus
13700extern "C"
13701#endif
13702char dld_link ();
13703int
13704main ()
13705{
13706return dld_link ();
13707  ;
13708  return 0;
13709}
13710_ACEOF
13711if ac_fn_c_try_link "$LINENO"; then :
13712  ac_cv_lib_dld_dld_link=yes
13713else
13714  ac_cv_lib_dld_dld_link=no
13715fi
13716rm -f core conftest.err conftest.$ac_objext \
13717    conftest$ac_exeext conftest.$ac_ext
13718LIBS=$ac_check_lib_save_LIBS
13719fi
13720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13721$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13722if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13723  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13724fi
13725
13726
13727fi
13728
13729
13730fi
13731
13732
13733fi
13734
13735
13736fi
13737
13738
13739fi
13740
13741    ;;
13742  esac
13743
13744  if test no = "$lt_cv_dlopen"; then
13745    enable_dlopen=no
13746  else
13747    enable_dlopen=yes
13748  fi
13749
13750  case $lt_cv_dlopen in
13751  dlopen)
13752    save_CPPFLAGS=$CPPFLAGS
13753    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13754
13755    save_LDFLAGS=$LDFLAGS
13756    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13757
13758    save_LIBS=$LIBS
13759    LIBS="$lt_cv_dlopen_libs $LIBS"
13760
13761    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13762$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13763if ${lt_cv_dlopen_self+:} false; then :
13764  $as_echo_n "(cached) " >&6
13765else
13766  	  if test yes = "$cross_compiling"; then :
13767  lt_cv_dlopen_self=cross
13768else
13769  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13770  lt_status=$lt_dlunknown
13771  cat > conftest.$ac_ext <<_LT_EOF
13772#line $LINENO "configure"
13773#include "confdefs.h"
13774
13775#if HAVE_DLFCN_H
13776#include <dlfcn.h>
13777#endif
13778
13779#include <stdio.h>
13780
13781#ifdef RTLD_GLOBAL
13782#  define LT_DLGLOBAL		RTLD_GLOBAL
13783#else
13784#  ifdef DL_GLOBAL
13785#    define LT_DLGLOBAL		DL_GLOBAL
13786#  else
13787#    define LT_DLGLOBAL		0
13788#  endif
13789#endif
13790
13791/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13792   find out it does not work in some platform. */
13793#ifndef LT_DLLAZY_OR_NOW
13794#  ifdef RTLD_LAZY
13795#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13796#  else
13797#    ifdef DL_LAZY
13798#      define LT_DLLAZY_OR_NOW		DL_LAZY
13799#    else
13800#      ifdef RTLD_NOW
13801#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13802#      else
13803#        ifdef DL_NOW
13804#          define LT_DLLAZY_OR_NOW	DL_NOW
13805#        else
13806#          define LT_DLLAZY_OR_NOW	0
13807#        endif
13808#      endif
13809#    endif
13810#  endif
13811#endif
13812
13813/* When -fvisibility=hidden is used, assume the code has been annotated
13814   correspondingly for the symbols needed.  */
13815#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13816int fnord () __attribute__((visibility("default")));
13817#endif
13818
13819int fnord () { return 42; }
13820int main ()
13821{
13822  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13823  int status = $lt_dlunknown;
13824
13825  if (self)
13826    {
13827      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13828      else
13829        {
13830	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13831          else puts (dlerror ());
13832	}
13833      /* dlclose (self); */
13834    }
13835  else
13836    puts (dlerror ());
13837
13838  return status;
13839}
13840_LT_EOF
13841  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13842  (eval $ac_link) 2>&5
13843  ac_status=$?
13844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13845  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13846    (./conftest; exit; ) >&5 2>/dev/null
13847    lt_status=$?
13848    case x$lt_status in
13849      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13850      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13851      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13852    esac
13853  else :
13854    # compilation failed
13855    lt_cv_dlopen_self=no
13856  fi
13857fi
13858rm -fr conftest*
13859
13860
13861fi
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13863$as_echo "$lt_cv_dlopen_self" >&6; }
13864
13865    if test yes = "$lt_cv_dlopen_self"; then
13866      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13867      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13868$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13869if ${lt_cv_dlopen_self_static+:} false; then :
13870  $as_echo_n "(cached) " >&6
13871else
13872  	  if test yes = "$cross_compiling"; then :
13873  lt_cv_dlopen_self_static=cross
13874else
13875  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13876  lt_status=$lt_dlunknown
13877  cat > conftest.$ac_ext <<_LT_EOF
13878#line $LINENO "configure"
13879#include "confdefs.h"
13880
13881#if HAVE_DLFCN_H
13882#include <dlfcn.h>
13883#endif
13884
13885#include <stdio.h>
13886
13887#ifdef RTLD_GLOBAL
13888#  define LT_DLGLOBAL		RTLD_GLOBAL
13889#else
13890#  ifdef DL_GLOBAL
13891#    define LT_DLGLOBAL		DL_GLOBAL
13892#  else
13893#    define LT_DLGLOBAL		0
13894#  endif
13895#endif
13896
13897/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13898   find out it does not work in some platform. */
13899#ifndef LT_DLLAZY_OR_NOW
13900#  ifdef RTLD_LAZY
13901#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13902#  else
13903#    ifdef DL_LAZY
13904#      define LT_DLLAZY_OR_NOW		DL_LAZY
13905#    else
13906#      ifdef RTLD_NOW
13907#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13908#      else
13909#        ifdef DL_NOW
13910#          define LT_DLLAZY_OR_NOW	DL_NOW
13911#        else
13912#          define LT_DLLAZY_OR_NOW	0
13913#        endif
13914#      endif
13915#    endif
13916#  endif
13917#endif
13918
13919/* When -fvisibility=hidden is used, assume the code has been annotated
13920   correspondingly for the symbols needed.  */
13921#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13922int fnord () __attribute__((visibility("default")));
13923#endif
13924
13925int fnord () { return 42; }
13926int main ()
13927{
13928  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13929  int status = $lt_dlunknown;
13930
13931  if (self)
13932    {
13933      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13934      else
13935        {
13936	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13937          else puts (dlerror ());
13938	}
13939      /* dlclose (self); */
13940    }
13941  else
13942    puts (dlerror ());
13943
13944  return status;
13945}
13946_LT_EOF
13947  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13948  (eval $ac_link) 2>&5
13949  ac_status=$?
13950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13951  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13952    (./conftest; exit; ) >&5 2>/dev/null
13953    lt_status=$?
13954    case x$lt_status in
13955      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13956      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13957      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13958    esac
13959  else :
13960    # compilation failed
13961    lt_cv_dlopen_self_static=no
13962  fi
13963fi
13964rm -fr conftest*
13965
13966
13967fi
13968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13969$as_echo "$lt_cv_dlopen_self_static" >&6; }
13970    fi
13971
13972    CPPFLAGS=$save_CPPFLAGS
13973    LDFLAGS=$save_LDFLAGS
13974    LIBS=$save_LIBS
13975    ;;
13976  esac
13977
13978  case $lt_cv_dlopen_self in
13979  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13980  *) enable_dlopen_self=unknown ;;
13981  esac
13982
13983  case $lt_cv_dlopen_self_static in
13984  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13985  *) enable_dlopen_self_static=unknown ;;
13986  esac
13987fi
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005striplib=
14006old_striplib=
14007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14008$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14009if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14010  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14011  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14013$as_echo "yes" >&6; }
14014else
14015# FIXME - insert some real tests, host_os isn't really good enough
14016  case $host_os in
14017  darwin*)
14018    if test -n "$STRIP"; then
14019      striplib="$STRIP -x"
14020      old_striplib="$STRIP -S"
14021      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14022$as_echo "yes" >&6; }
14023    else
14024      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025$as_echo "no" >&6; }
14026    fi
14027    ;;
14028  *)
14029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14030$as_echo "no" >&6; }
14031    ;;
14032  esac
14033fi
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046  # Report what library types will actually be built
14047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14048$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14050$as_echo "$can_build_shared" >&6; }
14051
14052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14053$as_echo_n "checking whether to build shared libraries... " >&6; }
14054  test no = "$can_build_shared" && enable_shared=no
14055
14056  # On AIX, shared libraries and static libraries use the same namespace, and
14057  # are all built from PIC.
14058  case $host_os in
14059  aix3*)
14060    test yes = "$enable_shared" && enable_static=no
14061    if test -n "$RANLIB"; then
14062      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14063      postinstall_cmds='$RANLIB $lib'
14064    fi
14065    ;;
14066
14067  aix[4-9]*)
14068    if test ia64 != "$host_cpu"; then
14069      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14070      yes,aix,yes) ;;			# shared object as lib.so file only
14071      yes,svr4,*) ;;			# shared object as lib.so archive member only
14072      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14073      esac
14074    fi
14075    ;;
14076  esac
14077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14078$as_echo "$enable_shared" >&6; }
14079
14080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14081$as_echo_n "checking whether to build static libraries... " >&6; }
14082  # Make sure either enable_shared or enable_static is yes.
14083  test yes = "$enable_shared" || enable_static=yes
14084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14085$as_echo "$enable_static" >&6; }
14086
14087
14088
14089
14090fi
14091ac_ext=c
14092ac_cpp='$CPP $CPPFLAGS'
14093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14095ac_compiler_gnu=$ac_cv_c_compiler_gnu
14096
14097CC=$lt_save_CC
14098
14099      if test -n "$CXX" && ( test no != "$CXX" &&
14100    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14101    (test g++ != "$CXX"))); then
14102  ac_ext=cpp
14103ac_cpp='$CXXCPP $CPPFLAGS'
14104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14108$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14109if test -z "$CXXCPP"; then
14110  if ${ac_cv_prog_CXXCPP+:} false; then :
14111  $as_echo_n "(cached) " >&6
14112else
14113      # Double quotes because CXXCPP needs to be expanded
14114    for CXXCPP in "$CXX -E" "/lib/cpp"
14115    do
14116      ac_preproc_ok=false
14117for ac_cxx_preproc_warn_flag in '' yes
14118do
14119  # Use a header file that comes with gcc, so configuring glibc
14120  # with a fresh cross-compiler works.
14121  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14122  # <limits.h> exists even on freestanding compilers.
14123  # On the NeXT, cc -E runs the code through the compiler's parser,
14124  # not just through cpp. "Syntax error" is here to catch this case.
14125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126/* end confdefs.h.  */
14127#ifdef __STDC__
14128# include <limits.h>
14129#else
14130# include <assert.h>
14131#endif
14132		     Syntax error
14133_ACEOF
14134if ac_fn_cxx_try_cpp "$LINENO"; then :
14135
14136else
14137  # Broken: fails on valid input.
14138continue
14139fi
14140rm -f conftest.err conftest.i conftest.$ac_ext
14141
14142  # OK, works on sane cases.  Now check whether nonexistent headers
14143  # can be detected and how.
14144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145/* end confdefs.h.  */
14146#include <ac_nonexistent.h>
14147_ACEOF
14148if ac_fn_cxx_try_cpp "$LINENO"; then :
14149  # Broken: success on invalid input.
14150continue
14151else
14152  # Passes both tests.
14153ac_preproc_ok=:
14154break
14155fi
14156rm -f conftest.err conftest.i conftest.$ac_ext
14157
14158done
14159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14160rm -f conftest.i conftest.err conftest.$ac_ext
14161if $ac_preproc_ok; then :
14162  break
14163fi
14164
14165    done
14166    ac_cv_prog_CXXCPP=$CXXCPP
14167
14168fi
14169  CXXCPP=$ac_cv_prog_CXXCPP
14170else
14171  ac_cv_prog_CXXCPP=$CXXCPP
14172fi
14173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14174$as_echo "$CXXCPP" >&6; }
14175ac_preproc_ok=false
14176for ac_cxx_preproc_warn_flag in '' yes
14177do
14178  # Use a header file that comes with gcc, so configuring glibc
14179  # with a fresh cross-compiler works.
14180  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14181  # <limits.h> exists even on freestanding compilers.
14182  # On the NeXT, cc -E runs the code through the compiler's parser,
14183  # not just through cpp. "Syntax error" is here to catch this case.
14184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185/* end confdefs.h.  */
14186#ifdef __STDC__
14187# include <limits.h>
14188#else
14189# include <assert.h>
14190#endif
14191		     Syntax error
14192_ACEOF
14193if ac_fn_cxx_try_cpp "$LINENO"; then :
14194
14195else
14196  # Broken: fails on valid input.
14197continue
14198fi
14199rm -f conftest.err conftest.i conftest.$ac_ext
14200
14201  # OK, works on sane cases.  Now check whether nonexistent headers
14202  # can be detected and how.
14203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204/* end confdefs.h.  */
14205#include <ac_nonexistent.h>
14206_ACEOF
14207if ac_fn_cxx_try_cpp "$LINENO"; then :
14208  # Broken: success on invalid input.
14209continue
14210else
14211  # Passes both tests.
14212ac_preproc_ok=:
14213break
14214fi
14215rm -f conftest.err conftest.i conftest.$ac_ext
14216
14217done
14218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14219rm -f conftest.i conftest.err conftest.$ac_ext
14220if $ac_preproc_ok; then :
14221
14222else
14223  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14225as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14226See \`config.log' for more details" "$LINENO" 5; }
14227fi
14228
14229ac_ext=c
14230ac_cpp='$CPP $CPPFLAGS'
14231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14233ac_compiler_gnu=$ac_cv_c_compiler_gnu
14234
14235else
14236  _lt_caught_CXX_error=yes
14237fi
14238
14239ac_ext=cpp
14240ac_cpp='$CXXCPP $CPPFLAGS'
14241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14244
14245archive_cmds_need_lc_CXX=no
14246allow_undefined_flag_CXX=
14247always_export_symbols_CXX=no
14248archive_expsym_cmds_CXX=
14249compiler_needs_object_CXX=no
14250export_dynamic_flag_spec_CXX=
14251hardcode_direct_CXX=no
14252hardcode_direct_absolute_CXX=no
14253hardcode_libdir_flag_spec_CXX=
14254hardcode_libdir_separator_CXX=
14255hardcode_minus_L_CXX=no
14256hardcode_shlibpath_var_CXX=unsupported
14257hardcode_automatic_CXX=no
14258inherit_rpath_CXX=no
14259module_cmds_CXX=
14260module_expsym_cmds_CXX=
14261link_all_deplibs_CXX=unknown
14262old_archive_cmds_CXX=$old_archive_cmds
14263reload_flag_CXX=$reload_flag
14264reload_cmds_CXX=$reload_cmds
14265no_undefined_flag_CXX=
14266whole_archive_flag_spec_CXX=
14267enable_shared_with_static_runtimes_CXX=no
14268
14269# Source file extension for C++ test sources.
14270ac_ext=cpp
14271
14272# Object file extension for compiled C++ test sources.
14273objext=o
14274objext_CXX=$objext
14275
14276# No sense in running all these tests if we already determined that
14277# the CXX compiler isn't working.  Some variables (like enable_shared)
14278# are currently assumed to apply to all compilers on this platform,
14279# and will be corrupted by setting them based on a non-working compiler.
14280if test yes != "$_lt_caught_CXX_error"; then
14281  # Code to be used in simple compile tests
14282  lt_simple_compile_test_code="int some_variable = 0;"
14283
14284  # Code to be used in simple link tests
14285  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14286
14287  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14288
14289
14290
14291
14292
14293
14294# If no C compiler was specified, use CC.
14295LTCC=${LTCC-"$CC"}
14296
14297# If no C compiler flags were specified, use CFLAGS.
14298LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14299
14300# Allow CC to be a program name with arguments.
14301compiler=$CC
14302
14303
14304  # save warnings/boilerplate of simple test code
14305  ac_outfile=conftest.$ac_objext
14306echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14307eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14308_lt_compiler_boilerplate=`cat conftest.err`
14309$RM conftest*
14310
14311  ac_outfile=conftest.$ac_objext
14312echo "$lt_simple_link_test_code" >conftest.$ac_ext
14313eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14314_lt_linker_boilerplate=`cat conftest.err`
14315$RM -r conftest*
14316
14317
14318  # Allow CC to be a program name with arguments.
14319  lt_save_CC=$CC
14320  lt_save_CFLAGS=$CFLAGS
14321  lt_save_LD=$LD
14322  lt_save_GCC=$GCC
14323  GCC=$GXX
14324  lt_save_with_gnu_ld=$with_gnu_ld
14325  lt_save_path_LD=$lt_cv_path_LD
14326  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14327    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14328  else
14329    $as_unset lt_cv_prog_gnu_ld
14330  fi
14331  if test -n "${lt_cv_path_LDCXX+set}"; then
14332    lt_cv_path_LD=$lt_cv_path_LDCXX
14333  else
14334    $as_unset lt_cv_path_LD
14335  fi
14336  test -z "${LDCXX+set}" || LD=$LDCXX
14337  CC=${CXX-"c++"}
14338  CFLAGS=$CXXFLAGS
14339  compiler=$CC
14340  compiler_CXX=$CC
14341  func_cc_basename $compiler
14342cc_basename=$func_cc_basename_result
14343
14344
14345  if test -n "$compiler"; then
14346    # We don't want -fno-exception when compiling C++ code, so set the
14347    # no_builtin_flag separately
14348    if test yes = "$GXX"; then
14349      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14350    else
14351      lt_prog_compiler_no_builtin_flag_CXX=
14352    fi
14353
14354    if test yes = "$GXX"; then
14355      # Set up default GNU C++ configuration
14356
14357
14358
14359# Check whether --with-gnu-ld was given.
14360if test "${with_gnu_ld+set}" = set; then :
14361  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14362else
14363  with_gnu_ld=no
14364fi
14365
14366ac_prog=ld
14367if test yes = "$GCC"; then
14368  # Check if gcc -print-prog-name=ld gives a path.
14369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14370$as_echo_n "checking for ld used by $CC... " >&6; }
14371  case $host in
14372  *-*-mingw*)
14373    # gcc leaves a trailing carriage return, which upsets mingw
14374    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14375  *)
14376    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14377  esac
14378  case $ac_prog in
14379    # Accept absolute paths.
14380    [\\/]* | ?:[\\/]*)
14381      re_direlt='/[^/][^/]*/\.\./'
14382      # Canonicalize the pathname of ld
14383      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14384      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14385	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14386      done
14387      test -z "$LD" && LD=$ac_prog
14388      ;;
14389  "")
14390    # If it fails, then pretend we aren't using GCC.
14391    ac_prog=ld
14392    ;;
14393  *)
14394    # If it is relative, then search for the first ld in PATH.
14395    with_gnu_ld=unknown
14396    ;;
14397  esac
14398elif test yes = "$with_gnu_ld"; then
14399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14400$as_echo_n "checking for GNU ld... " >&6; }
14401else
14402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14403$as_echo_n "checking for non-GNU ld... " >&6; }
14404fi
14405if ${lt_cv_path_LD+:} false; then :
14406  $as_echo_n "(cached) " >&6
14407else
14408  if test -z "$LD"; then
14409  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14410  for ac_dir in $PATH; do
14411    IFS=$lt_save_ifs
14412    test -z "$ac_dir" && ac_dir=.
14413    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14414      lt_cv_path_LD=$ac_dir/$ac_prog
14415      # Check to see if the program is GNU ld.  I'd rather use --version,
14416      # but apparently some variants of GNU ld only accept -v.
14417      # Break only if it was the GNU/non-GNU ld that we prefer.
14418      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14419      *GNU* | *'with BFD'*)
14420	test no != "$with_gnu_ld" && break
14421	;;
14422      *)
14423	test yes != "$with_gnu_ld" && break
14424	;;
14425      esac
14426    fi
14427  done
14428  IFS=$lt_save_ifs
14429else
14430  lt_cv_path_LD=$LD # Let the user override the test with a path.
14431fi
14432fi
14433
14434LD=$lt_cv_path_LD
14435if test -n "$LD"; then
14436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14437$as_echo "$LD" >&6; }
14438else
14439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440$as_echo "no" >&6; }
14441fi
14442test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14444$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14445if ${lt_cv_prog_gnu_ld+:} false; then :
14446  $as_echo_n "(cached) " >&6
14447else
14448  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14449case `$LD -v 2>&1 </dev/null` in
14450*GNU* | *'with BFD'*)
14451  lt_cv_prog_gnu_ld=yes
14452  ;;
14453*)
14454  lt_cv_prog_gnu_ld=no
14455  ;;
14456esac
14457fi
14458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14459$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14460with_gnu_ld=$lt_cv_prog_gnu_ld
14461
14462
14463
14464
14465
14466
14467
14468      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14469      # archiving commands below assume that GNU ld is being used.
14470      if test yes = "$with_gnu_ld"; then
14471        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14472        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'
14473
14474        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14475        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14476
14477        # If archive_cmds runs LD, not CC, wlarc should be empty
14478        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14479        #     investigate it a little bit more. (MM)
14480        wlarc='$wl'
14481
14482        # ancient GNU ld didn't support --whole-archive et. al.
14483        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14484	  $GREP 'no-whole-archive' > /dev/null; then
14485          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14486        else
14487          whole_archive_flag_spec_CXX=
14488        fi
14489      else
14490        with_gnu_ld=no
14491        wlarc=
14492
14493        # A generic and very simple default shared library creation
14494        # command for GNU C++ for the case where it uses the native
14495        # linker, instead of GNU ld.  If possible, this setting should
14496        # overridden to take advantage of the native linker features on
14497        # the platform it is being used on.
14498        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14499      fi
14500
14501      # Commands to make compiler produce verbose output that lists
14502      # what "hidden" libraries, object files and flags are used when
14503      # linking a shared library.
14504      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14505
14506    else
14507      GXX=no
14508      with_gnu_ld=no
14509      wlarc=
14510    fi
14511
14512    # PORTME: fill in a description of your system's C++ link characteristics
14513    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14514$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14515    ld_shlibs_CXX=yes
14516    case $host_os in
14517      aix3*)
14518        # FIXME: insert proper C++ library support
14519        ld_shlibs_CXX=no
14520        ;;
14521      aix[4-9]*)
14522        if test ia64 = "$host_cpu"; then
14523          # On IA64, the linker does run time linking by default, so we don't
14524          # have to do anything special.
14525          aix_use_runtimelinking=no
14526          exp_sym_flag='-Bexport'
14527          no_entry_flag=
14528        else
14529          aix_use_runtimelinking=no
14530
14531          # Test if we are trying to use run time linking or normal
14532          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14533          # have runtime linking enabled, and use it for executables.
14534          # For shared libraries, we enable/disable runtime linking
14535          # depending on the kind of the shared library created -
14536          # when "with_aix_soname,aix_use_runtimelinking" is:
14537          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14538          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14539          #            lib.a           static archive
14540          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14541          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14542          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14543          #            lib.a(lib.so.V) shared, rtl:no
14544          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14545          #            lib.a           static archive
14546          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14547	    for ld_flag in $LDFLAGS; do
14548	      case $ld_flag in
14549	      *-brtl*)
14550	        aix_use_runtimelinking=yes
14551	        break
14552	        ;;
14553	      esac
14554	    done
14555	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14556	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14557	      # so we don't have lib.a shared libs to link our executables.
14558	      # We have to force runtime linking in this case.
14559	      aix_use_runtimelinking=yes
14560	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14561	    fi
14562	    ;;
14563          esac
14564
14565          exp_sym_flag='-bexport'
14566          no_entry_flag='-bnoentry'
14567        fi
14568
14569        # When large executables or shared objects are built, AIX ld can
14570        # have problems creating the table of contents.  If linking a library
14571        # or program results in "error TOC overflow" add -mminimal-toc to
14572        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14573        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14574
14575        archive_cmds_CXX=''
14576        hardcode_direct_CXX=yes
14577        hardcode_direct_absolute_CXX=yes
14578        hardcode_libdir_separator_CXX=':'
14579        link_all_deplibs_CXX=yes
14580        file_list_spec_CXX='$wl-f,'
14581        case $with_aix_soname,$aix_use_runtimelinking in
14582        aix,*) ;;	# no import file
14583        svr4,* | *,yes) # use import file
14584          # The Import File defines what to hardcode.
14585          hardcode_direct_CXX=no
14586          hardcode_direct_absolute_CXX=no
14587          ;;
14588        esac
14589
14590        if test yes = "$GXX"; then
14591          case $host_os in aix4.[012]|aix4.[012].*)
14592          # We only want to do this on AIX 4.2 and lower, the check
14593          # below for broken collect2 doesn't work under 4.3+
14594	  collect2name=`$CC -print-prog-name=collect2`
14595	  if test -f "$collect2name" &&
14596	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14597	  then
14598	    # We have reworked collect2
14599	    :
14600	  else
14601	    # We have old collect2
14602	    hardcode_direct_CXX=unsupported
14603	    # It fails to find uninstalled libraries when the uninstalled
14604	    # path is not listed in the libpath.  Setting hardcode_minus_L
14605	    # to unsupported forces relinking
14606	    hardcode_minus_L_CXX=yes
14607	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14608	    hardcode_libdir_separator_CXX=
14609	  fi
14610          esac
14611          shared_flag='-shared'
14612	  if test yes = "$aix_use_runtimelinking"; then
14613	    shared_flag=$shared_flag' $wl-G'
14614	  fi
14615	  # Need to ensure runtime linking is disabled for the traditional
14616	  # shared library, or the linker may eventually find shared libraries
14617	  # /with/ Import File - we do not want to mix them.
14618	  shared_flag_aix='-shared'
14619	  shared_flag_svr4='-shared $wl-G'
14620        else
14621          # not using gcc
14622          if test ia64 = "$host_cpu"; then
14623	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14624	  # chokes on -Wl,-G. The following line is correct:
14625	  shared_flag='-G'
14626          else
14627	    if test yes = "$aix_use_runtimelinking"; then
14628	      shared_flag='$wl-G'
14629	    else
14630	      shared_flag='$wl-bM:SRE'
14631	    fi
14632	    shared_flag_aix='$wl-bM:SRE'
14633	    shared_flag_svr4='$wl-G'
14634          fi
14635        fi
14636
14637        export_dynamic_flag_spec_CXX='$wl-bexpall'
14638        # It seems that -bexpall does not export symbols beginning with
14639        # underscore (_), so it is better to generate a list of symbols to
14640	# export.
14641        always_export_symbols_CXX=yes
14642	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14643          # Warning - without using the other runtime loading flags (-brtl),
14644          # -berok will link without error, but may produce a broken library.
14645          # The "-G" linker flag allows undefined symbols.
14646          no_undefined_flag_CXX='-bernotok'
14647          # Determine the default libpath from the value encoded in an empty
14648          # executable.
14649          if test set = "${lt_cv_aix_libpath+set}"; then
14650  aix_libpath=$lt_cv_aix_libpath
14651else
14652  if ${lt_cv_aix_libpath__CXX+:} false; then :
14653  $as_echo_n "(cached) " >&6
14654else
14655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656/* end confdefs.h.  */
14657
14658int
14659main ()
14660{
14661
14662  ;
14663  return 0;
14664}
14665_ACEOF
14666if ac_fn_cxx_try_link "$LINENO"; then :
14667
14668  lt_aix_libpath_sed='
14669      /Import File Strings/,/^$/ {
14670	  /^0/ {
14671	      s/^0  *\([^ ]*\) *$/\1/
14672	      p
14673	  }
14674      }'
14675  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14676  # Check for a 64-bit object if we didn't find anything.
14677  if test -z "$lt_cv_aix_libpath__CXX"; then
14678    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14679  fi
14680fi
14681rm -f core conftest.err conftest.$ac_objext \
14682    conftest$ac_exeext conftest.$ac_ext
14683  if test -z "$lt_cv_aix_libpath__CXX"; then
14684    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14685  fi
14686
14687fi
14688
14689  aix_libpath=$lt_cv_aix_libpath__CXX
14690fi
14691
14692          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14693
14694          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
14695        else
14696          if test ia64 = "$host_cpu"; then
14697	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14698	    allow_undefined_flag_CXX="-z nodefs"
14699	    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"
14700          else
14701	    # Determine the default libpath from the value encoded in an
14702	    # empty executable.
14703	    if test set = "${lt_cv_aix_libpath+set}"; then
14704  aix_libpath=$lt_cv_aix_libpath
14705else
14706  if ${lt_cv_aix_libpath__CXX+:} false; then :
14707  $as_echo_n "(cached) " >&6
14708else
14709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710/* end confdefs.h.  */
14711
14712int
14713main ()
14714{
14715
14716  ;
14717  return 0;
14718}
14719_ACEOF
14720if ac_fn_cxx_try_link "$LINENO"; then :
14721
14722  lt_aix_libpath_sed='
14723      /Import File Strings/,/^$/ {
14724	  /^0/ {
14725	      s/^0  *\([^ ]*\) *$/\1/
14726	      p
14727	  }
14728      }'
14729  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14730  # Check for a 64-bit object if we didn't find anything.
14731  if test -z "$lt_cv_aix_libpath__CXX"; then
14732    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14733  fi
14734fi
14735rm -f core conftest.err conftest.$ac_objext \
14736    conftest$ac_exeext conftest.$ac_ext
14737  if test -z "$lt_cv_aix_libpath__CXX"; then
14738    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14739  fi
14740
14741fi
14742
14743  aix_libpath=$lt_cv_aix_libpath__CXX
14744fi
14745
14746	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14747	    # Warning - without using the other run time loading flags,
14748	    # -berok will link without error, but may produce a broken library.
14749	    no_undefined_flag_CXX=' $wl-bernotok'
14750	    allow_undefined_flag_CXX=' $wl-berok'
14751	    if test yes = "$with_gnu_ld"; then
14752	      # We only use this code for GNU lds that support --whole-archive.
14753	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14754	    else
14755	      # Exported symbols can be pulled into shared objects from archives
14756	      whole_archive_flag_spec_CXX='$convenience'
14757	    fi
14758	    archive_cmds_need_lc_CXX=yes
14759	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14760	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14761	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14762	    if test svr4 != "$with_aix_soname"; then
14763	      # This is similar to how AIX traditionally builds its shared
14764	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14765	      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'
14766	    fi
14767	    if test aix != "$with_aix_soname"; then
14768	      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'
14769	    else
14770	      # used by -dlpreopen to get the symbols
14771	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14772	    fi
14773	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14774          fi
14775        fi
14776        ;;
14777
14778      beos*)
14779	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14780	  allow_undefined_flag_CXX=unsupported
14781	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14782	  # support --undefined.  This deserves some investigation.  FIXME
14783	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14784	else
14785	  ld_shlibs_CXX=no
14786	fi
14787	;;
14788
14789      chorus*)
14790        case $cc_basename in
14791          *)
14792	  # FIXME: insert proper C++ library support
14793	  ld_shlibs_CXX=no
14794	  ;;
14795        esac
14796        ;;
14797
14798      cygwin* | mingw* | pw32* | cegcc*)
14799	case $GXX,$cc_basename in
14800	,cl* | no,cl*)
14801	  # Native MSVC
14802	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14803	  # no search path for DLLs.
14804	  hardcode_libdir_flag_spec_CXX=' '
14805	  allow_undefined_flag_CXX=unsupported
14806	  always_export_symbols_CXX=yes
14807	  file_list_spec_CXX='@'
14808	  # Tell ltmain to make .lib files, not .a files.
14809	  libext=lib
14810	  # Tell ltmain to make .dll files, not .so files.
14811	  shrext_cmds=.dll
14812	  # FIXME: Setting linknames here is a bad hack.
14813	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14814	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14815              cp "$export_symbols" "$output_objdir/$soname.def";
14816              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14817            else
14818              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14819            fi~
14820            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14821            linknames='
14822	  # The linker will not automatically build a static lib if we build a DLL.
14823	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14824	  enable_shared_with_static_runtimes_CXX=yes
14825	  # Don't use ranlib
14826	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14827	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14828            lt_tool_outputfile="@TOOL_OUTPUT@"~
14829            case $lt_outputfile in
14830              *.exe|*.EXE) ;;
14831              *)
14832                lt_outputfile=$lt_outputfile.exe
14833                lt_tool_outputfile=$lt_tool_outputfile.exe
14834                ;;
14835            esac~
14836            func_to_tool_file "$lt_outputfile"~
14837            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14838              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14839              $RM "$lt_outputfile.manifest";
14840            fi'
14841	  ;;
14842	*)
14843	  # g++
14844	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14845	  # as there is no search path for DLLs.
14846	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14847	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14848	  allow_undefined_flag_CXX=unsupported
14849	  always_export_symbols_CXX=no
14850	  enable_shared_with_static_runtimes_CXX=yes
14851
14852	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14853	    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'
14854	    # If the export-symbols file already is a .def file, use it as
14855	    # is; otherwise, prepend EXPORTS...
14856	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14857              cp $export_symbols $output_objdir/$soname.def;
14858            else
14859              echo EXPORTS > $output_objdir/$soname.def;
14860              cat $export_symbols >> $output_objdir/$soname.def;
14861            fi~
14862            $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'
14863	  else
14864	    ld_shlibs_CXX=no
14865	  fi
14866	  ;;
14867	esac
14868	;;
14869      darwin* | rhapsody*)
14870
14871
14872  archive_cmds_need_lc_CXX=no
14873  hardcode_direct_CXX=no
14874  hardcode_automatic_CXX=yes
14875  hardcode_shlibpath_var_CXX=unsupported
14876  if test yes = "$lt_cv_ld_force_load"; then
14877    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\"`'
14878
14879  else
14880    whole_archive_flag_spec_CXX=''
14881  fi
14882  link_all_deplibs_CXX=yes
14883  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14884  case $cc_basename in
14885     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14886     *) _lt_dar_can_shared=$GCC ;;
14887  esac
14888  if test yes = "$_lt_dar_can_shared"; then
14889    output_verbose_link_cmd=func_echo_all
14890    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"
14891    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14892    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"
14893    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"
14894       if test yes != "$lt_cv_apple_cc_single_mod"; then
14895      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"
14896      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"
14897    fi
14898
14899  else
14900  ld_shlibs_CXX=no
14901  fi
14902
14903	;;
14904
14905      os2*)
14906	hardcode_libdir_flag_spec_CXX='-L$libdir'
14907	hardcode_minus_L_CXX=yes
14908	allow_undefined_flag_CXX=unsupported
14909	shrext_cmds=.dll
14910	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14911	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14912	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14913	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14914	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14915	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14916	  emximp -o $lib $output_objdir/$libname.def'
14917	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14918	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14919	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14920	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14921	  prefix_cmds="$SED"~
14922	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14923	    prefix_cmds="$prefix_cmds -e 1d";
14924	  fi~
14925	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14926	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14927	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14928	  emximp -o $lib $output_objdir/$libname.def'
14929	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14930	enable_shared_with_static_runtimes_CXX=yes
14931	;;
14932
14933      dgux*)
14934        case $cc_basename in
14935          ec++*)
14936	    # FIXME: insert proper C++ library support
14937	    ld_shlibs_CXX=no
14938	    ;;
14939          ghcx*)
14940	    # Green Hills C++ Compiler
14941	    # FIXME: insert proper C++ library support
14942	    ld_shlibs_CXX=no
14943	    ;;
14944          *)
14945	    # FIXME: insert proper C++ library support
14946	    ld_shlibs_CXX=no
14947	    ;;
14948        esac
14949        ;;
14950
14951      freebsd2.*)
14952        # C++ shared libraries reported to be fairly broken before
14953	# switch to ELF
14954        ld_shlibs_CXX=no
14955        ;;
14956
14957      freebsd-elf*)
14958        archive_cmds_need_lc_CXX=no
14959        ;;
14960
14961      freebsd* | dragonfly*)
14962        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14963        # conventions
14964        ld_shlibs_CXX=yes
14965        ;;
14966
14967      haiku*)
14968        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14969        link_all_deplibs_CXX=yes
14970        ;;
14971
14972      hpux9*)
14973        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14974        hardcode_libdir_separator_CXX=:
14975        export_dynamic_flag_spec_CXX='$wl-E'
14976        hardcode_direct_CXX=yes
14977        hardcode_minus_L_CXX=yes # Not in the search PATH,
14978				             # but as the default
14979				             # location of the library.
14980
14981        case $cc_basename in
14982          CC*)
14983            # FIXME: insert proper C++ library support
14984            ld_shlibs_CXX=no
14985            ;;
14986          aCC*)
14987            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'
14988            # Commands to make compiler produce verbose output that lists
14989            # what "hidden" libraries, object files and flags are used when
14990            # linking a shared library.
14991            #
14992            # There doesn't appear to be a way to prevent this compiler from
14993            # explicitly linking system object files so we need to strip them
14994            # from the output so that they don't get included in the library
14995            # dependencies.
14996            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"'
14997            ;;
14998          *)
14999            if test yes = "$GXX"; then
15000              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'
15001            else
15002              # FIXME: insert proper C++ library support
15003              ld_shlibs_CXX=no
15004            fi
15005            ;;
15006        esac
15007        ;;
15008
15009      hpux10*|hpux11*)
15010        if test no = "$with_gnu_ld"; then
15011	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15012	  hardcode_libdir_separator_CXX=:
15013
15014          case $host_cpu in
15015            hppa*64*|ia64*)
15016              ;;
15017            *)
15018	      export_dynamic_flag_spec_CXX='$wl-E'
15019              ;;
15020          esac
15021        fi
15022        case $host_cpu in
15023          hppa*64*|ia64*)
15024            hardcode_direct_CXX=no
15025            hardcode_shlibpath_var_CXX=no
15026            ;;
15027          *)
15028            hardcode_direct_CXX=yes
15029            hardcode_direct_absolute_CXX=yes
15030            hardcode_minus_L_CXX=yes # Not in the search PATH,
15031					         # but as the default
15032					         # location of the library.
15033            ;;
15034        esac
15035
15036        case $cc_basename in
15037          CC*)
15038	    # FIXME: insert proper C++ library support
15039	    ld_shlibs_CXX=no
15040	    ;;
15041          aCC*)
15042	    case $host_cpu in
15043	      hppa*64*)
15044	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15045	        ;;
15046	      ia64*)
15047	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15048	        ;;
15049	      *)
15050	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15051	        ;;
15052	    esac
15053	    # Commands to make compiler produce verbose output that lists
15054	    # what "hidden" libraries, object files and flags are used when
15055	    # linking a shared library.
15056	    #
15057	    # There doesn't appear to be a way to prevent this compiler from
15058	    # explicitly linking system object files so we need to strip them
15059	    # from the output so that they don't get included in the library
15060	    # dependencies.
15061	    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"'
15062	    ;;
15063          *)
15064	    if test yes = "$GXX"; then
15065	      if test no = "$with_gnu_ld"; then
15066	        case $host_cpu in
15067	          hppa*64*)
15068	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15069	            ;;
15070	          ia64*)
15071	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15072	            ;;
15073	          *)
15074	            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'
15075	            ;;
15076	        esac
15077	      fi
15078	    else
15079	      # FIXME: insert proper C++ library support
15080	      ld_shlibs_CXX=no
15081	    fi
15082	    ;;
15083        esac
15084        ;;
15085
15086      interix[3-9]*)
15087	hardcode_direct_CXX=no
15088	hardcode_shlibpath_var_CXX=no
15089	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15090	export_dynamic_flag_spec_CXX='$wl-E'
15091	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15092	# Instead, shared libraries are loaded at an image base (0x10000000 by
15093	# default) and relocated if they conflict, which is a slow very memory
15094	# consuming and fragmenting process.  To avoid this, we pick a random,
15095	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15096	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15097	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'
15098	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'
15099	;;
15100      irix5* | irix6*)
15101        case $cc_basename in
15102          CC*)
15103	    # SGI C++
15104	    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'
15105
15106	    # Archives containing C++ object files must be created using
15107	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15108	    # necessary to make sure instantiated templates are included
15109	    # in the archive.
15110	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15111	    ;;
15112          *)
15113	    if test yes = "$GXX"; then
15114	      if test no = "$with_gnu_ld"; then
15115	        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'
15116	      else
15117	        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'
15118	      fi
15119	    fi
15120	    link_all_deplibs_CXX=yes
15121	    ;;
15122        esac
15123        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15124        hardcode_libdir_separator_CXX=:
15125        inherit_rpath_CXX=yes
15126        ;;
15127
15128      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15129        case $cc_basename in
15130          KCC*)
15131	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15132
15133	    # KCC will only create a shared library if the output file
15134	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15135	    # to its proper name (with version) after linking.
15136	    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'
15137	    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'
15138	    # Commands to make compiler produce verbose output that lists
15139	    # what "hidden" libraries, object files and flags are used when
15140	    # linking a shared library.
15141	    #
15142	    # There doesn't appear to be a way to prevent this compiler from
15143	    # explicitly linking system object files so we need to strip them
15144	    # from the output so that they don't get included in the library
15145	    # dependencies.
15146	    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"'
15147
15148	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15149	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15150
15151	    # Archives containing C++ object files must be created using
15152	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15153	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15154	    ;;
15155	  icpc* | ecpc* )
15156	    # Intel C++
15157	    with_gnu_ld=yes
15158	    # version 8.0 and above of icpc choke on multiply defined symbols
15159	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15160	    # earlier do not add the objects themselves.
15161	    case `$CC -V 2>&1` in
15162	      *"Version 7."*)
15163	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15164		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'
15165		;;
15166	      *)  # Version 8.0 or newer
15167	        tmp_idyn=
15168	        case $host_cpu in
15169		  ia64*) tmp_idyn=' -i_dynamic';;
15170		esac
15171	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15172		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'
15173		;;
15174	    esac
15175	    archive_cmds_need_lc_CXX=no
15176	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15177	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15178	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15179	    ;;
15180          pgCC* | pgcpp*)
15181            # Portland Group C++ compiler
15182	    case `$CC -V` in
15183	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15184	      prelink_cmds_CXX='tpldir=Template.dir~
15185               rm -rf $tpldir~
15186               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15187               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15188	      old_archive_cmds_CXX='tpldir=Template.dir~
15189                rm -rf $tpldir~
15190                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15191                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15192                $RANLIB $oldlib'
15193	      archive_cmds_CXX='tpldir=Template.dir~
15194                rm -rf $tpldir~
15195                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15196                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15197	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15198                rm -rf $tpldir~
15199                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15200                $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'
15201	      ;;
15202	    *) # Version 6 and above use weak symbols
15203	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15204	      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'
15205	      ;;
15206	    esac
15207
15208	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15209	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15210	    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'
15211            ;;
15212	  cxx*)
15213	    # Compaq C++
15214	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15215	    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'
15216
15217	    runpath_var=LD_RUN_PATH
15218	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15219	    hardcode_libdir_separator_CXX=:
15220
15221	    # Commands to make compiler produce verbose output that lists
15222	    # what "hidden" libraries, object files and flags are used when
15223	    # linking a shared library.
15224	    #
15225	    # There doesn't appear to be a way to prevent this compiler from
15226	    # explicitly linking system object files so we need to strip them
15227	    # from the output so that they don't get included in the library
15228	    # dependencies.
15229	    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'
15230	    ;;
15231	  xl* | mpixl* | bgxl*)
15232	    # IBM XL 8.0 on PPC, with GNU ld
15233	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15234	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15235	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15236	    if test yes = "$supports_anon_versioning"; then
15237	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15238                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15239                echo "local: *; };" >> $output_objdir/$libname.ver~
15240                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15241	    fi
15242	    ;;
15243	  *)
15244	    case `$CC -V 2>&1 | sed 5q` in
15245	    *Sun\ C*)
15246	      # Sun C++ 5.9
15247	      no_undefined_flag_CXX=' -zdefs'
15248	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15249	      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'
15250	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15251	      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'
15252	      compiler_needs_object_CXX=yes
15253
15254	      # Not sure whether something based on
15255	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15256	      # would be better.
15257	      output_verbose_link_cmd='func_echo_all'
15258
15259	      # Archives containing C++ object files must be created using
15260	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15261	      # necessary to make sure instantiated templates are included
15262	      # in the archive.
15263	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15264	      ;;
15265	    esac
15266	    ;;
15267	esac
15268	;;
15269
15270      lynxos*)
15271        # FIXME: insert proper C++ library support
15272	ld_shlibs_CXX=no
15273	;;
15274
15275      m88k*)
15276        # FIXME: insert proper C++ library support
15277        ld_shlibs_CXX=no
15278	;;
15279
15280      mvs*)
15281        case $cc_basename in
15282          cxx*)
15283	    # FIXME: insert proper C++ library support
15284	    ld_shlibs_CXX=no
15285	    ;;
15286	  *)
15287	    # FIXME: insert proper C++ library support
15288	    ld_shlibs_CXX=no
15289	    ;;
15290	esac
15291	;;
15292
15293      netbsd*)
15294        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15295	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15296	  wlarc=
15297	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15298	  hardcode_direct_CXX=yes
15299	  hardcode_shlibpath_var_CXX=no
15300	fi
15301	# Workaround some broken pre-1.5 toolchains
15302	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15303	;;
15304
15305      *nto* | *qnx*)
15306        ld_shlibs_CXX=yes
15307	;;
15308
15309      openbsd* | bitrig*)
15310	if test -f /usr/libexec/ld.so; then
15311	  hardcode_direct_CXX=yes
15312	  hardcode_shlibpath_var_CXX=no
15313	  hardcode_direct_absolute_CXX=yes
15314	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15315	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15316	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15317	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15318	    export_dynamic_flag_spec_CXX='$wl-E'
15319	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15320	  fi
15321	  output_verbose_link_cmd=func_echo_all
15322	else
15323	  ld_shlibs_CXX=no
15324	fi
15325	;;
15326
15327      osf3* | osf4* | osf5*)
15328        case $cc_basename in
15329          KCC*)
15330	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15331
15332	    # KCC will only create a shared library if the output file
15333	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15334	    # to its proper name (with version) after linking.
15335	    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'
15336
15337	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15338	    hardcode_libdir_separator_CXX=:
15339
15340	    # Archives containing C++ object files must be created using
15341	    # the KAI C++ compiler.
15342	    case $host in
15343	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15344	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15345	    esac
15346	    ;;
15347          RCC*)
15348	    # Rational C++ 2.4.1
15349	    # FIXME: insert proper C++ library support
15350	    ld_shlibs_CXX=no
15351	    ;;
15352          cxx*)
15353	    case $host in
15354	      osf3*)
15355	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15356	        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'
15357	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15358		;;
15359	      *)
15360	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15361	        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'
15362	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15363                  echo "-hidden">> $lib.exp~
15364                  $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~
15365                  $RM $lib.exp'
15366	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15367		;;
15368	    esac
15369
15370	    hardcode_libdir_separator_CXX=:
15371
15372	    # Commands to make compiler produce verbose output that lists
15373	    # what "hidden" libraries, object files and flags are used when
15374	    # linking a shared library.
15375	    #
15376	    # There doesn't appear to be a way to prevent this compiler from
15377	    # explicitly linking system object files so we need to strip them
15378	    # from the output so that they don't get included in the library
15379	    # dependencies.
15380	    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"'
15381	    ;;
15382	  *)
15383	    if test yes,no = "$GXX,$with_gnu_ld"; then
15384	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15385	      case $host in
15386	        osf3*)
15387	          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'
15388		  ;;
15389	        *)
15390	          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'
15391		  ;;
15392	      esac
15393
15394	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15395	      hardcode_libdir_separator_CXX=:
15396
15397	      # Commands to make compiler produce verbose output that lists
15398	      # what "hidden" libraries, object files and flags are used when
15399	      # linking a shared library.
15400	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15401
15402	    else
15403	      # FIXME: insert proper C++ library support
15404	      ld_shlibs_CXX=no
15405	    fi
15406	    ;;
15407        esac
15408        ;;
15409
15410      psos*)
15411        # FIXME: insert proper C++ library support
15412        ld_shlibs_CXX=no
15413        ;;
15414
15415      sunos4*)
15416        case $cc_basename in
15417          CC*)
15418	    # Sun C++ 4.x
15419	    # FIXME: insert proper C++ library support
15420	    ld_shlibs_CXX=no
15421	    ;;
15422          lcc*)
15423	    # Lucid
15424	    # FIXME: insert proper C++ library support
15425	    ld_shlibs_CXX=no
15426	    ;;
15427          *)
15428	    # FIXME: insert proper C++ library support
15429	    ld_shlibs_CXX=no
15430	    ;;
15431        esac
15432        ;;
15433
15434      solaris*)
15435        case $cc_basename in
15436          CC* | sunCC*)
15437	    # Sun C++ 4.2, 5.x and Centerline C++
15438            archive_cmds_need_lc_CXX=yes
15439	    no_undefined_flag_CXX=' -zdefs'
15440	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15441	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15442              $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'
15443
15444	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15445	    hardcode_shlibpath_var_CXX=no
15446	    case $host_os in
15447	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15448	      *)
15449		# The compiler driver will combine and reorder linker options,
15450		# but understands '-z linker_flag'.
15451	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15452		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15453	        ;;
15454	    esac
15455	    link_all_deplibs_CXX=yes
15456
15457	    output_verbose_link_cmd='func_echo_all'
15458
15459	    # Archives containing C++ object files must be created using
15460	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15461	    # necessary to make sure instantiated templates are included
15462	    # in the archive.
15463	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15464	    ;;
15465          gcx*)
15466	    # Green Hills C++ Compiler
15467	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15468
15469	    # The C++ compiler must be used to create the archive.
15470	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15471	    ;;
15472          *)
15473	    # GNU C++ compiler with Solaris linker
15474	    if test yes,no = "$GXX,$with_gnu_ld"; then
15475	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15476	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15477	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15478	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15479                  $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'
15480
15481	        # Commands to make compiler produce verbose output that lists
15482	        # what "hidden" libraries, object files and flags are used when
15483	        # linking a shared library.
15484	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15485	      else
15486	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15487	        # platform.
15488	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15489	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15490                  $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'
15491
15492	        # Commands to make compiler produce verbose output that lists
15493	        # what "hidden" libraries, object files and flags are used when
15494	        # linking a shared library.
15495	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15496	      fi
15497
15498	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15499	      case $host_os in
15500		solaris2.[0-5] | solaris2.[0-5].*) ;;
15501		*)
15502		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15503		  ;;
15504	      esac
15505	    fi
15506	    ;;
15507        esac
15508        ;;
15509
15510    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15511      no_undefined_flag_CXX='$wl-z,text'
15512      archive_cmds_need_lc_CXX=no
15513      hardcode_shlibpath_var_CXX=no
15514      runpath_var='LD_RUN_PATH'
15515
15516      case $cc_basename in
15517        CC*)
15518	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15519	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15520	  ;;
15521	*)
15522	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15523	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15524	  ;;
15525      esac
15526      ;;
15527
15528      sysv5* | sco3.2v5* | sco5v6*)
15529	# Note: We CANNOT use -z defs as we might desire, because we do not
15530	# link with -lc, and that would cause any symbols used from libc to
15531	# always be unresolved, which means just about no library would
15532	# ever link correctly.  If we're not using GNU ld we use -z text
15533	# though, which does catch some bad symbols but isn't as heavy-handed
15534	# as -z defs.
15535	no_undefined_flag_CXX='$wl-z,text'
15536	allow_undefined_flag_CXX='$wl-z,nodefs'
15537	archive_cmds_need_lc_CXX=no
15538	hardcode_shlibpath_var_CXX=no
15539	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15540	hardcode_libdir_separator_CXX=':'
15541	link_all_deplibs_CXX=yes
15542	export_dynamic_flag_spec_CXX='$wl-Bexport'
15543	runpath_var='LD_RUN_PATH'
15544
15545	case $cc_basename in
15546          CC*)
15547	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15548	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15549	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15550              '"$old_archive_cmds_CXX"
15551	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15552              '"$reload_cmds_CXX"
15553	    ;;
15554	  *)
15555	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15556	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15557	    ;;
15558	esac
15559      ;;
15560
15561      tandem*)
15562        case $cc_basename in
15563          NCC*)
15564	    # NonStop-UX NCC 3.20
15565	    # FIXME: insert proper C++ library support
15566	    ld_shlibs_CXX=no
15567	    ;;
15568          *)
15569	    # FIXME: insert proper C++ library support
15570	    ld_shlibs_CXX=no
15571	    ;;
15572        esac
15573        ;;
15574
15575      vxworks*)
15576        # FIXME: insert proper C++ library support
15577        ld_shlibs_CXX=no
15578        ;;
15579
15580      *)
15581        # FIXME: insert proper C++ library support
15582        ld_shlibs_CXX=no
15583        ;;
15584    esac
15585
15586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15587$as_echo "$ld_shlibs_CXX" >&6; }
15588    test no = "$ld_shlibs_CXX" && can_build_shared=no
15589
15590    GCC_CXX=$GXX
15591    LD_CXX=$LD
15592
15593    ## CAVEAT EMPTOR:
15594    ## There is no encapsulation within the following macros, do not change
15595    ## the running order or otherwise move them around unless you know exactly
15596    ## what you are doing...
15597    # Dependencies to place before and after the object being linked:
15598predep_objects_CXX=
15599postdep_objects_CXX=
15600predeps_CXX=
15601postdeps_CXX=
15602compiler_lib_search_path_CXX=
15603
15604cat > conftest.$ac_ext <<_LT_EOF
15605class Foo
15606{
15607public:
15608  Foo (void) { a = 0; }
15609private:
15610  int a;
15611};
15612_LT_EOF
15613
15614
15615_lt_libdeps_save_CFLAGS=$CFLAGS
15616case "$CC $CFLAGS " in #(
15617*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15618*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15619*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15620esac
15621
15622if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15623  (eval $ac_compile) 2>&5
15624  ac_status=$?
15625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15626  test $ac_status = 0; }; then
15627  # Parse the compiler output and extract the necessary
15628  # objects, libraries and library flags.
15629
15630  # Sentinel used to keep track of whether or not we are before
15631  # the conftest object file.
15632  pre_test_object_deps_done=no
15633
15634  for p in `eval "$output_verbose_link_cmd"`; do
15635    case $prev$p in
15636
15637    -L* | -R* | -l*)
15638       # Some compilers place space between "-{L,R}" and the path.
15639       # Remove the space.
15640       if test x-L = "$p" ||
15641          test x-R = "$p"; then
15642	 prev=$p
15643	 continue
15644       fi
15645
15646       # Expand the sysroot to ease extracting the directories later.
15647       if test -z "$prev"; then
15648         case $p in
15649         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15650         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15651         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15652         esac
15653       fi
15654       case $p in
15655       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15656       esac
15657       if test no = "$pre_test_object_deps_done"; then
15658	 case $prev in
15659	 -L | -R)
15660	   # Internal compiler library paths should come after those
15661	   # provided the user.  The postdeps already come after the
15662	   # user supplied libs so there is no need to process them.
15663	   if test -z "$compiler_lib_search_path_CXX"; then
15664	     compiler_lib_search_path_CXX=$prev$p
15665	   else
15666	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15667	   fi
15668	   ;;
15669	 # The "-l" case would never come before the object being
15670	 # linked, so don't bother handling this case.
15671	 esac
15672       else
15673	 if test -z "$postdeps_CXX"; then
15674	   postdeps_CXX=$prev$p
15675	 else
15676	   postdeps_CXX="${postdeps_CXX} $prev$p"
15677	 fi
15678       fi
15679       prev=
15680       ;;
15681
15682    *.lto.$objext) ;; # Ignore GCC LTO objects
15683    *.$objext)
15684       # This assumes that the test object file only shows up
15685       # once in the compiler output.
15686       if test "$p" = "conftest.$objext"; then
15687	 pre_test_object_deps_done=yes
15688	 continue
15689       fi
15690
15691       if test no = "$pre_test_object_deps_done"; then
15692	 if test -z "$predep_objects_CXX"; then
15693	   predep_objects_CXX=$p
15694	 else
15695	   predep_objects_CXX="$predep_objects_CXX $p"
15696	 fi
15697       else
15698	 if test -z "$postdep_objects_CXX"; then
15699	   postdep_objects_CXX=$p
15700	 else
15701	   postdep_objects_CXX="$postdep_objects_CXX $p"
15702	 fi
15703       fi
15704       ;;
15705
15706    *) ;; # Ignore the rest.
15707
15708    esac
15709  done
15710
15711  # Clean up.
15712  rm -f a.out a.exe
15713else
15714  echo "libtool.m4: error: problem compiling CXX test program"
15715fi
15716
15717$RM -f confest.$objext
15718CFLAGS=$_lt_libdeps_save_CFLAGS
15719
15720# PORTME: override above test on systems where it is broken
15721case $host_os in
15722interix[3-9]*)
15723  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15724  # hack all around it, let's just trust "g++" to DTRT.
15725  predep_objects_CXX=
15726  postdep_objects_CXX=
15727  postdeps_CXX=
15728  ;;
15729esac
15730
15731
15732case " $postdeps_CXX " in
15733*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15734esac
15735 compiler_lib_search_dirs_CXX=
15736if test -n "${compiler_lib_search_path_CXX}"; then
15737 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15738fi
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770    lt_prog_compiler_wl_CXX=
15771lt_prog_compiler_pic_CXX=
15772lt_prog_compiler_static_CXX=
15773
15774
15775  # C++ specific cases for pic, static, wl, etc.
15776  if test yes = "$GXX"; then
15777    lt_prog_compiler_wl_CXX='-Wl,'
15778    lt_prog_compiler_static_CXX='-static'
15779
15780    case $host_os in
15781    aix*)
15782      # All AIX code is PIC.
15783      if test ia64 = "$host_cpu"; then
15784	# AIX 5 now supports IA64 processor
15785	lt_prog_compiler_static_CXX='-Bstatic'
15786      fi
15787      lt_prog_compiler_pic_CXX='-fPIC'
15788      ;;
15789
15790    amigaos*)
15791      case $host_cpu in
15792      powerpc)
15793            # see comment about AmigaOS4 .so support
15794            lt_prog_compiler_pic_CXX='-fPIC'
15795        ;;
15796      m68k)
15797            # FIXME: we need at least 68020 code to build shared libraries, but
15798            # adding the '-m68020' flag to GCC prevents building anything better,
15799            # like '-m68040'.
15800            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15801        ;;
15802      esac
15803      ;;
15804
15805    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15806      # PIC is the default for these OSes.
15807      ;;
15808    mingw* | cygwin* | os2* | pw32* | cegcc*)
15809      # This hack is so that the source file can tell whether it is being
15810      # built for inclusion in a dll (and should export symbols for example).
15811      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15812      # (--disable-auto-import) libraries
15813      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15814      case $host_os in
15815      os2*)
15816	lt_prog_compiler_static_CXX='$wl-static'
15817	;;
15818      esac
15819      ;;
15820    darwin* | rhapsody*)
15821      # PIC is the default on this platform
15822      # Common symbols not allowed in MH_DYLIB files
15823      lt_prog_compiler_pic_CXX='-fno-common'
15824      ;;
15825    *djgpp*)
15826      # DJGPP does not support shared libraries at all
15827      lt_prog_compiler_pic_CXX=
15828      ;;
15829    haiku*)
15830      # PIC is the default for Haiku.
15831      # The "-static" flag exists, but is broken.
15832      lt_prog_compiler_static_CXX=
15833      ;;
15834    interix[3-9]*)
15835      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15836      # Instead, we relocate shared libraries at runtime.
15837      ;;
15838    sysv4*MP*)
15839      if test -d /usr/nec; then
15840	lt_prog_compiler_pic_CXX=-Kconform_pic
15841      fi
15842      ;;
15843    hpux*)
15844      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15845      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15846      # sets the default TLS model and affects inlining.
15847      case $host_cpu in
15848      hppa*64*)
15849	;;
15850      *)
15851	lt_prog_compiler_pic_CXX='-fPIC'
15852	;;
15853      esac
15854      ;;
15855    *qnx* | *nto*)
15856      # QNX uses GNU C++, but need to define -shared option too, otherwise
15857      # it will coredump.
15858      lt_prog_compiler_pic_CXX='-fPIC -shared'
15859      ;;
15860    *)
15861      lt_prog_compiler_pic_CXX='-fPIC'
15862      ;;
15863    esac
15864  else
15865    case $host_os in
15866      aix[4-9]*)
15867	# All AIX code is PIC.
15868	if test ia64 = "$host_cpu"; then
15869	  # AIX 5 now supports IA64 processor
15870	  lt_prog_compiler_static_CXX='-Bstatic'
15871	else
15872	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15873	fi
15874	;;
15875      chorus*)
15876	case $cc_basename in
15877	cxch68*)
15878	  # Green Hills C++ Compiler
15879	  # _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"
15880	  ;;
15881	esac
15882	;;
15883      mingw* | cygwin* | os2* | pw32* | cegcc*)
15884	# This hack is so that the source file can tell whether it is being
15885	# built for inclusion in a dll (and should export symbols for example).
15886	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15887	;;
15888      dgux*)
15889	case $cc_basename in
15890	  ec++*)
15891	    lt_prog_compiler_pic_CXX='-KPIC'
15892	    ;;
15893	  ghcx*)
15894	    # Green Hills C++ Compiler
15895	    lt_prog_compiler_pic_CXX='-pic'
15896	    ;;
15897	  *)
15898	    ;;
15899	esac
15900	;;
15901      freebsd* | dragonfly*)
15902	# FreeBSD uses GNU C++
15903	;;
15904      hpux9* | hpux10* | hpux11*)
15905	case $cc_basename in
15906	  CC*)
15907	    lt_prog_compiler_wl_CXX='-Wl,'
15908	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15909	    if test ia64 != "$host_cpu"; then
15910	      lt_prog_compiler_pic_CXX='+Z'
15911	    fi
15912	    ;;
15913	  aCC*)
15914	    lt_prog_compiler_wl_CXX='-Wl,'
15915	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15916	    case $host_cpu in
15917	    hppa*64*|ia64*)
15918	      # +Z the default
15919	      ;;
15920	    *)
15921	      lt_prog_compiler_pic_CXX='+Z'
15922	      ;;
15923	    esac
15924	    ;;
15925	  *)
15926	    ;;
15927	esac
15928	;;
15929      interix*)
15930	# This is c89, which is MS Visual C++ (no shared libs)
15931	# Anyone wants to do a port?
15932	;;
15933      irix5* | irix6* | nonstopux*)
15934	case $cc_basename in
15935	  CC*)
15936	    lt_prog_compiler_wl_CXX='-Wl,'
15937	    lt_prog_compiler_static_CXX='-non_shared'
15938	    # CC pic flag -KPIC is the default.
15939	    ;;
15940	  *)
15941	    ;;
15942	esac
15943	;;
15944      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15945	case $cc_basename in
15946	  KCC*)
15947	    # KAI C++ Compiler
15948	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15949	    lt_prog_compiler_pic_CXX='-fPIC'
15950	    ;;
15951	  ecpc* )
15952	    # old Intel C++ for x86_64, which still supported -KPIC.
15953	    lt_prog_compiler_wl_CXX='-Wl,'
15954	    lt_prog_compiler_pic_CXX='-KPIC'
15955	    lt_prog_compiler_static_CXX='-static'
15956	    ;;
15957	  icpc* )
15958	    # Intel C++, used to be incompatible with GCC.
15959	    # ICC 10 doesn't accept -KPIC any more.
15960	    lt_prog_compiler_wl_CXX='-Wl,'
15961	    lt_prog_compiler_pic_CXX='-fPIC'
15962	    lt_prog_compiler_static_CXX='-static'
15963	    ;;
15964	  pgCC* | pgcpp*)
15965	    # Portland Group C++ compiler
15966	    lt_prog_compiler_wl_CXX='-Wl,'
15967	    lt_prog_compiler_pic_CXX='-fpic'
15968	    lt_prog_compiler_static_CXX='-Bstatic'
15969	    ;;
15970	  cxx*)
15971	    # Compaq C++
15972	    # Make sure the PIC flag is empty.  It appears that all Alpha
15973	    # Linux and Compaq Tru64 Unix objects are PIC.
15974	    lt_prog_compiler_pic_CXX=
15975	    lt_prog_compiler_static_CXX='-non_shared'
15976	    ;;
15977	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15978	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15979	    lt_prog_compiler_wl_CXX='-Wl,'
15980	    lt_prog_compiler_pic_CXX='-qpic'
15981	    lt_prog_compiler_static_CXX='-qstaticlink'
15982	    ;;
15983	  *)
15984	    case `$CC -V 2>&1 | sed 5q` in
15985	    *Sun\ C*)
15986	      # Sun C++ 5.9
15987	      lt_prog_compiler_pic_CXX='-KPIC'
15988	      lt_prog_compiler_static_CXX='-Bstatic'
15989	      lt_prog_compiler_wl_CXX='-Qoption ld '
15990	      ;;
15991	    esac
15992	    ;;
15993	esac
15994	;;
15995      lynxos*)
15996	;;
15997      m88k*)
15998	;;
15999      mvs*)
16000	case $cc_basename in
16001	  cxx*)
16002	    lt_prog_compiler_pic_CXX='-W c,exportall'
16003	    ;;
16004	  *)
16005	    ;;
16006	esac
16007	;;
16008      netbsd* | netbsdelf*-gnu)
16009	;;
16010      *qnx* | *nto*)
16011        # QNX uses GNU C++, but need to define -shared option too, otherwise
16012        # it will coredump.
16013        lt_prog_compiler_pic_CXX='-fPIC -shared'
16014        ;;
16015      osf3* | osf4* | osf5*)
16016	case $cc_basename in
16017	  KCC*)
16018	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16019	    ;;
16020	  RCC*)
16021	    # Rational C++ 2.4.1
16022	    lt_prog_compiler_pic_CXX='-pic'
16023	    ;;
16024	  cxx*)
16025	    # Digital/Compaq C++
16026	    lt_prog_compiler_wl_CXX='-Wl,'
16027	    # Make sure the PIC flag is empty.  It appears that all Alpha
16028	    # Linux and Compaq Tru64 Unix objects are PIC.
16029	    lt_prog_compiler_pic_CXX=
16030	    lt_prog_compiler_static_CXX='-non_shared'
16031	    ;;
16032	  *)
16033	    ;;
16034	esac
16035	;;
16036      psos*)
16037	;;
16038      solaris*)
16039	case $cc_basename in
16040	  CC* | sunCC*)
16041	    # Sun C++ 4.2, 5.x and Centerline C++
16042	    lt_prog_compiler_pic_CXX='-KPIC'
16043	    lt_prog_compiler_static_CXX='-Bstatic'
16044	    lt_prog_compiler_wl_CXX='-Qoption ld '
16045	    ;;
16046	  gcx*)
16047	    # Green Hills C++ Compiler
16048	    lt_prog_compiler_pic_CXX='-PIC'
16049	    ;;
16050	  *)
16051	    ;;
16052	esac
16053	;;
16054      sunos4*)
16055	case $cc_basename in
16056	  CC*)
16057	    # Sun C++ 4.x
16058	    lt_prog_compiler_pic_CXX='-pic'
16059	    lt_prog_compiler_static_CXX='-Bstatic'
16060	    ;;
16061	  lcc*)
16062	    # Lucid
16063	    lt_prog_compiler_pic_CXX='-pic'
16064	    ;;
16065	  *)
16066	    ;;
16067	esac
16068	;;
16069      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16070	case $cc_basename in
16071	  CC*)
16072	    lt_prog_compiler_wl_CXX='-Wl,'
16073	    lt_prog_compiler_pic_CXX='-KPIC'
16074	    lt_prog_compiler_static_CXX='-Bstatic'
16075	    ;;
16076	esac
16077	;;
16078      tandem*)
16079	case $cc_basename in
16080	  NCC*)
16081	    # NonStop-UX NCC 3.20
16082	    lt_prog_compiler_pic_CXX='-KPIC'
16083	    ;;
16084	  *)
16085	    ;;
16086	esac
16087	;;
16088      vxworks*)
16089	;;
16090      *)
16091	lt_prog_compiler_can_build_shared_CXX=no
16092	;;
16093    esac
16094  fi
16095
16096case $host_os in
16097  # For platforms that do not support PIC, -DPIC is meaningless:
16098  *djgpp*)
16099    lt_prog_compiler_pic_CXX=
16100    ;;
16101  *)
16102    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16103    ;;
16104esac
16105
16106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16107$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16108if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16109  $as_echo_n "(cached) " >&6
16110else
16111  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16112fi
16113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16114$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16115lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16116
16117#
16118# Check to make sure the PIC flag actually works.
16119#
16120if test -n "$lt_prog_compiler_pic_CXX"; then
16121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16122$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16123if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16124  $as_echo_n "(cached) " >&6
16125else
16126  lt_cv_prog_compiler_pic_works_CXX=no
16127   ac_outfile=conftest.$ac_objext
16128   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16129   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16130   # Insert the option either (1) after the last *FLAGS variable, or
16131   # (2) before a word containing "conftest.", or (3) at the end.
16132   # Note that $ac_compile itself does not contain backslashes and begins
16133   # with a dollar sign (not a hyphen), so the echo should work correctly.
16134   # The option is referenced via a variable to avoid confusing sed.
16135   lt_compile=`echo "$ac_compile" | $SED \
16136   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16137   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16138   -e 's:$: $lt_compiler_flag:'`
16139   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16140   (eval "$lt_compile" 2>conftest.err)
16141   ac_status=$?
16142   cat conftest.err >&5
16143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144   if (exit $ac_status) && test -s "$ac_outfile"; then
16145     # The compiler can only warn and ignore the option if not recognized
16146     # So say no if there are warnings other than the usual output.
16147     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16148     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16149     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16150       lt_cv_prog_compiler_pic_works_CXX=yes
16151     fi
16152   fi
16153   $RM conftest*
16154
16155fi
16156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16157$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16158
16159if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16160    case $lt_prog_compiler_pic_CXX in
16161     "" | " "*) ;;
16162     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16163     esac
16164else
16165    lt_prog_compiler_pic_CXX=
16166     lt_prog_compiler_can_build_shared_CXX=no
16167fi
16168
16169fi
16170
16171
16172
16173
16174
16175#
16176# Check to make sure the static flag actually works.
16177#
16178wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16180$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16181if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16182  $as_echo_n "(cached) " >&6
16183else
16184  lt_cv_prog_compiler_static_works_CXX=no
16185   save_LDFLAGS=$LDFLAGS
16186   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16187   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16188   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16189     # The linker can only warn and ignore the option if not recognized
16190     # So say no if there are warnings
16191     if test -s conftest.err; then
16192       # Append any errors to the config.log.
16193       cat conftest.err 1>&5
16194       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16195       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16196       if diff conftest.exp conftest.er2 >/dev/null; then
16197         lt_cv_prog_compiler_static_works_CXX=yes
16198       fi
16199     else
16200       lt_cv_prog_compiler_static_works_CXX=yes
16201     fi
16202   fi
16203   $RM -r conftest*
16204   LDFLAGS=$save_LDFLAGS
16205
16206fi
16207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16208$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16209
16210if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16211    :
16212else
16213    lt_prog_compiler_static_CXX=
16214fi
16215
16216
16217
16218
16219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16220$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16221if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16222  $as_echo_n "(cached) " >&6
16223else
16224  lt_cv_prog_compiler_c_o_CXX=no
16225   $RM -r conftest 2>/dev/null
16226   mkdir conftest
16227   cd conftest
16228   mkdir out
16229   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16230
16231   lt_compiler_flag="-o out/conftest2.$ac_objext"
16232   # Insert the option either (1) after the last *FLAGS variable, or
16233   # (2) before a word containing "conftest.", or (3) at the end.
16234   # Note that $ac_compile itself does not contain backslashes and begins
16235   # with a dollar sign (not a hyphen), so the echo should work correctly.
16236   lt_compile=`echo "$ac_compile" | $SED \
16237   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16238   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16239   -e 's:$: $lt_compiler_flag:'`
16240   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16241   (eval "$lt_compile" 2>out/conftest.err)
16242   ac_status=$?
16243   cat out/conftest.err >&5
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16246   then
16247     # The compiler can only warn and ignore the option if not recognized
16248     # So say no if there are warnings
16249     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16250     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16251     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16252       lt_cv_prog_compiler_c_o_CXX=yes
16253     fi
16254   fi
16255   chmod u+w . 2>&5
16256   $RM conftest*
16257   # SGI C++ compiler will create directory out/ii_files/ for
16258   # template instantiation
16259   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16260   $RM out/* && rmdir out
16261   cd ..
16262   $RM -r conftest
16263   $RM conftest*
16264
16265fi
16266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16267$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16268
16269
16270
16271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16272$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16273if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16274  $as_echo_n "(cached) " >&6
16275else
16276  lt_cv_prog_compiler_c_o_CXX=no
16277   $RM -r conftest 2>/dev/null
16278   mkdir conftest
16279   cd conftest
16280   mkdir out
16281   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16282
16283   lt_compiler_flag="-o out/conftest2.$ac_objext"
16284   # Insert the option either (1) after the last *FLAGS variable, or
16285   # (2) before a word containing "conftest.", or (3) at the end.
16286   # Note that $ac_compile itself does not contain backslashes and begins
16287   # with a dollar sign (not a hyphen), so the echo should work correctly.
16288   lt_compile=`echo "$ac_compile" | $SED \
16289   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16290   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16291   -e 's:$: $lt_compiler_flag:'`
16292   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16293   (eval "$lt_compile" 2>out/conftest.err)
16294   ac_status=$?
16295   cat out/conftest.err >&5
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16298   then
16299     # The compiler can only warn and ignore the option if not recognized
16300     # So say no if there are warnings
16301     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16302     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16303     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16304       lt_cv_prog_compiler_c_o_CXX=yes
16305     fi
16306   fi
16307   chmod u+w . 2>&5
16308   $RM conftest*
16309   # SGI C++ compiler will create directory out/ii_files/ for
16310   # template instantiation
16311   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16312   $RM out/* && rmdir out
16313   cd ..
16314   $RM -r conftest
16315   $RM conftest*
16316
16317fi
16318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16319$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16320
16321
16322
16323
16324hard_links=nottested
16325if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16326  # do not overwrite the value of need_locks provided by the user
16327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16328$as_echo_n "checking if we can lock with hard links... " >&6; }
16329  hard_links=yes
16330  $RM conftest*
16331  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16332  touch conftest.a
16333  ln conftest.a conftest.b 2>&5 || hard_links=no
16334  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16336$as_echo "$hard_links" >&6; }
16337  if test no = "$hard_links"; then
16338    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16339$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16340    need_locks=warn
16341  fi
16342else
16343  need_locks=no
16344fi
16345
16346
16347
16348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16349$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16350
16351  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16352  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16353  case $host_os in
16354  aix[4-9]*)
16355    # If we're using GNU nm, then we don't want the "-C" option.
16356    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16357    # Without the "-l" option, or with the "-B" option, AIX nm treats
16358    # weak defined symbols like other global defined symbols, whereas
16359    # GNU nm marks them as "W".
16360    # While the 'weak' keyword is ignored in the Export File, we need
16361    # it in the Import File for the 'aix-soname' feature, so we have
16362    # to replace the "-B" option with "-P" for AIX nm.
16363    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16364      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'
16365    else
16366      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'
16367    fi
16368    ;;
16369  pw32*)
16370    export_symbols_cmds_CXX=$ltdll_cmds
16371    ;;
16372  cygwin* | mingw* | cegcc*)
16373    case $cc_basename in
16374    cl*)
16375      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16376      ;;
16377    *)
16378      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'
16379      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16380      ;;
16381    esac
16382    ;;
16383  linux* | k*bsd*-gnu | gnu*)
16384    link_all_deplibs_CXX=no
16385    ;;
16386  *)
16387    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16388    ;;
16389  esac
16390
16391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16392$as_echo "$ld_shlibs_CXX" >&6; }
16393test no = "$ld_shlibs_CXX" && can_build_shared=no
16394
16395with_gnu_ld_CXX=$with_gnu_ld
16396
16397
16398
16399
16400
16401
16402#
16403# Do we need to explicitly link libc?
16404#
16405case "x$archive_cmds_need_lc_CXX" in
16406x|xyes)
16407  # Assume -lc should be added
16408  archive_cmds_need_lc_CXX=yes
16409
16410  if test yes,yes = "$GCC,$enable_shared"; then
16411    case $archive_cmds_CXX in
16412    *'~'*)
16413      # FIXME: we may have to deal with multi-command sequences.
16414      ;;
16415    '$CC '*)
16416      # Test whether the compiler implicitly links with -lc since on some
16417      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16418      # to ld, don't add -lc before -lgcc.
16419      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16420$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16421if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16422  $as_echo_n "(cached) " >&6
16423else
16424  $RM conftest*
16425	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16426
16427	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16428  (eval $ac_compile) 2>&5
16429  ac_status=$?
16430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16431  test $ac_status = 0; } 2>conftest.err; then
16432	  soname=conftest
16433	  lib=conftest
16434	  libobjs=conftest.$ac_objext
16435	  deplibs=
16436	  wl=$lt_prog_compiler_wl_CXX
16437	  pic_flag=$lt_prog_compiler_pic_CXX
16438	  compiler_flags=-v
16439	  linker_flags=-v
16440	  verstring=
16441	  output_objdir=.
16442	  libname=conftest
16443	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16444	  allow_undefined_flag_CXX=
16445	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16446  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16447  ac_status=$?
16448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16449  test $ac_status = 0; }
16450	  then
16451	    lt_cv_archive_cmds_need_lc_CXX=no
16452	  else
16453	    lt_cv_archive_cmds_need_lc_CXX=yes
16454	  fi
16455	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16456	else
16457	  cat conftest.err 1>&5
16458	fi
16459	$RM conftest*
16460
16461fi
16462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16463$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16464      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16465      ;;
16466    esac
16467  fi
16468  ;;
16469esac
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16533$as_echo_n "checking dynamic linker characteristics... " >&6; }
16534
16535library_names_spec=
16536libname_spec='lib$name'
16537soname_spec=
16538shrext_cmds=.so
16539postinstall_cmds=
16540postuninstall_cmds=
16541finish_cmds=
16542finish_eval=
16543shlibpath_var=
16544shlibpath_overrides_runpath=unknown
16545version_type=none
16546dynamic_linker="$host_os ld.so"
16547sys_lib_dlsearch_path_spec="/lib /usr/lib"
16548need_lib_prefix=unknown
16549hardcode_into_libs=no
16550
16551# when you set need_version to no, make sure it does not cause -set_version
16552# flags to be left without arguments
16553need_version=unknown
16554
16555
16556
16557case $host_os in
16558aix3*)
16559  version_type=linux # correct to gnu/linux during the next big refactor
16560  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16561  shlibpath_var=LIBPATH
16562
16563  # AIX 3 has no versioning support, so we append a major version to the name.
16564  soname_spec='$libname$release$shared_ext$major'
16565  ;;
16566
16567aix[4-9]*)
16568  version_type=linux # correct to gnu/linux during the next big refactor
16569  need_lib_prefix=no
16570  need_version=no
16571  hardcode_into_libs=yes
16572  if test ia64 = "$host_cpu"; then
16573    # AIX 5 supports IA64
16574    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16575    shlibpath_var=LD_LIBRARY_PATH
16576  else
16577    # With GCC up to 2.95.x, collect2 would create an import file
16578    # for dependence libraries.  The import file would start with
16579    # the line '#! .'.  This would cause the generated library to
16580    # depend on '.', always an invalid library.  This was fixed in
16581    # development snapshots of GCC prior to 3.0.
16582    case $host_os in
16583      aix4 | aix4.[01] | aix4.[01].*)
16584      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16585	   echo ' yes '
16586	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16587	:
16588      else
16589	can_build_shared=no
16590      fi
16591      ;;
16592    esac
16593    # Using Import Files as archive members, it is possible to support
16594    # filename-based versioning of shared library archives on AIX. While
16595    # this would work for both with and without runtime linking, it will
16596    # prevent static linking of such archives. So we do filename-based
16597    # shared library versioning with .so extension only, which is used
16598    # when both runtime linking and shared linking is enabled.
16599    # Unfortunately, runtime linking may impact performance, so we do
16600    # not want this to be the default eventually. Also, we use the
16601    # versioned .so libs for executables only if there is the -brtl
16602    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16603    # To allow for filename-based versioning support, we need to create
16604    # libNAME.so.V as an archive file, containing:
16605    # *) an Import File, referring to the versioned filename of the
16606    #    archive as well as the shared archive member, telling the
16607    #    bitwidth (32 or 64) of that shared object, and providing the
16608    #    list of exported symbols of that shared object, eventually
16609    #    decorated with the 'weak' keyword
16610    # *) the shared object with the F_LOADONLY flag set, to really avoid
16611    #    it being seen by the linker.
16612    # At run time we better use the real file rather than another symlink,
16613    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16614
16615    case $with_aix_soname,$aix_use_runtimelinking in
16616    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16617    # soname into executable. Probably we can add versioning support to
16618    # collect2, so additional links can be useful in future.
16619    aix,yes) # traditional libtool
16620      dynamic_linker='AIX unversionable lib.so'
16621      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16622      # instead of lib<name>.a to let people know that these are not
16623      # typical AIX shared libraries.
16624      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16625      ;;
16626    aix,no) # traditional AIX only
16627      dynamic_linker='AIX lib.a(lib.so.V)'
16628      # We preserve .a as extension for shared libraries through AIX4.2
16629      # and later when we are not doing run time linking.
16630      library_names_spec='$libname$release.a $libname.a'
16631      soname_spec='$libname$release$shared_ext$major'
16632      ;;
16633    svr4,*) # full svr4 only
16634      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16635      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16636      # We do not specify a path in Import Files, so LIBPATH fires.
16637      shlibpath_overrides_runpath=yes
16638      ;;
16639    *,yes) # both, prefer svr4
16640      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16641      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16642      # unpreferred sharedlib libNAME.a needs extra handling
16643      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"'
16644      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"'
16645      # We do not specify a path in Import Files, so LIBPATH fires.
16646      shlibpath_overrides_runpath=yes
16647      ;;
16648    *,no) # both, prefer aix
16649      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16650      library_names_spec='$libname$release.a $libname.a'
16651      soname_spec='$libname$release$shared_ext$major'
16652      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16653      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)'
16654      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"'
16655      ;;
16656    esac
16657    shlibpath_var=LIBPATH
16658  fi
16659  ;;
16660
16661amigaos*)
16662  case $host_cpu in
16663  powerpc)
16664    # Since July 2007 AmigaOS4 officially supports .so libraries.
16665    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16666    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16667    ;;
16668  m68k)
16669    library_names_spec='$libname.ixlibrary $libname.a'
16670    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16671    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'
16672    ;;
16673  esac
16674  ;;
16675
16676beos*)
16677  library_names_spec='$libname$shared_ext'
16678  dynamic_linker="$host_os ld.so"
16679  shlibpath_var=LIBRARY_PATH
16680  ;;
16681
16682bsdi[45]*)
16683  version_type=linux # correct to gnu/linux during the next big refactor
16684  need_version=no
16685  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16686  soname_spec='$libname$release$shared_ext$major'
16687  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16688  shlibpath_var=LD_LIBRARY_PATH
16689  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16690  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16691  # the default ld.so.conf also contains /usr/contrib/lib and
16692  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16693  # libtool to hard-code these into programs
16694  ;;
16695
16696cygwin* | mingw* | pw32* | cegcc*)
16697  version_type=windows
16698  shrext_cmds=.dll
16699  need_version=no
16700  need_lib_prefix=no
16701
16702  case $GCC,$cc_basename in
16703  yes,*)
16704    # gcc
16705    library_names_spec='$libname.dll.a'
16706    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16707    postinstall_cmds='base_file=`basename \$file`~
16708      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16709      dldir=$destdir/`dirname \$dlpath`~
16710      test -d \$dldir || mkdir -p \$dldir~
16711      $install_prog $dir/$dlname \$dldir/$dlname~
16712      chmod a+x \$dldir/$dlname~
16713      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16714        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16715      fi'
16716    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16717      dlpath=$dir/\$dldll~
16718       $RM \$dlpath'
16719    shlibpath_overrides_runpath=yes
16720
16721    case $host_os in
16722    cygwin*)
16723      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16724      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16725
16726      ;;
16727    mingw* | cegcc*)
16728      # MinGW DLLs use traditional 'lib' prefix
16729      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16730      ;;
16731    pw32*)
16732      # pw32 DLLs use 'pw' prefix rather than 'lib'
16733      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16734      ;;
16735    esac
16736    dynamic_linker='Win32 ld.exe'
16737    ;;
16738
16739  *,cl*)
16740    # Native MSVC
16741    libname_spec='$name'
16742    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16743    library_names_spec='$libname.dll.lib'
16744
16745    case $build_os in
16746    mingw*)
16747      sys_lib_search_path_spec=
16748      lt_save_ifs=$IFS
16749      IFS=';'
16750      for lt_path in $LIB
16751      do
16752        IFS=$lt_save_ifs
16753        # Let DOS variable expansion print the short 8.3 style file name.
16754        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16755        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16756      done
16757      IFS=$lt_save_ifs
16758      # Convert to MSYS style.
16759      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16760      ;;
16761    cygwin*)
16762      # Convert to unix form, then to dos form, then back to unix form
16763      # but this time dos style (no spaces!) so that the unix form looks
16764      # like /cygdrive/c/PROGRA~1:/cygdr...
16765      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16766      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16767      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16768      ;;
16769    *)
16770      sys_lib_search_path_spec=$LIB
16771      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16772        # It is most probably a Windows format PATH.
16773        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16774      else
16775        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16776      fi
16777      # FIXME: find the short name or the path components, as spaces are
16778      # common. (e.g. "Program Files" -> "PROGRA~1")
16779      ;;
16780    esac
16781
16782    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16783    postinstall_cmds='base_file=`basename \$file`~
16784      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16785      dldir=$destdir/`dirname \$dlpath`~
16786      test -d \$dldir || mkdir -p \$dldir~
16787      $install_prog $dir/$dlname \$dldir/$dlname'
16788    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16789      dlpath=$dir/\$dldll~
16790       $RM \$dlpath'
16791    shlibpath_overrides_runpath=yes
16792    dynamic_linker='Win32 link.exe'
16793    ;;
16794
16795  *)
16796    # Assume MSVC wrapper
16797    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16798    dynamic_linker='Win32 ld.exe'
16799    ;;
16800  esac
16801  # FIXME: first we should search . and the directory the executable is in
16802  shlibpath_var=PATH
16803  ;;
16804
16805darwin* | rhapsody*)
16806  dynamic_linker="$host_os dyld"
16807  version_type=darwin
16808  need_lib_prefix=no
16809  need_version=no
16810  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16811  soname_spec='$libname$release$major$shared_ext'
16812  shlibpath_overrides_runpath=yes
16813  shlibpath_var=DYLD_LIBRARY_PATH
16814  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16815
16816  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16817  ;;
16818
16819dgux*)
16820  version_type=linux # correct to gnu/linux during the next big refactor
16821  need_lib_prefix=no
16822  need_version=no
16823  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16824  soname_spec='$libname$release$shared_ext$major'
16825  shlibpath_var=LD_LIBRARY_PATH
16826  ;;
16827
16828freebsd* | dragonfly*)
16829  # DragonFly does not have aout.  When/if they implement a new
16830  # versioning mechanism, adjust this.
16831  if test -x /usr/bin/objformat; then
16832    objformat=`/usr/bin/objformat`
16833  else
16834    case $host_os in
16835    freebsd[23].*) objformat=aout ;;
16836    *) objformat=elf ;;
16837    esac
16838  fi
16839  version_type=freebsd-$objformat
16840  case $version_type in
16841    freebsd-elf*)
16842      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16843      soname_spec='$libname$release$shared_ext$major'
16844      need_version=no
16845      need_lib_prefix=no
16846      ;;
16847    freebsd-*)
16848      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16849      need_version=yes
16850      ;;
16851  esac
16852  shlibpath_var=LD_LIBRARY_PATH
16853  case $host_os in
16854  freebsd2.*)
16855    shlibpath_overrides_runpath=yes
16856    ;;
16857  freebsd3.[01]* | freebsdelf3.[01]*)
16858    shlibpath_overrides_runpath=yes
16859    hardcode_into_libs=yes
16860    ;;
16861  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16862  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16863    shlibpath_overrides_runpath=no
16864    hardcode_into_libs=yes
16865    ;;
16866  *) # from 4.6 on, and DragonFly
16867    shlibpath_overrides_runpath=yes
16868    hardcode_into_libs=yes
16869    ;;
16870  esac
16871  ;;
16872
16873haiku*)
16874  version_type=linux # correct to gnu/linux during the next big refactor
16875  need_lib_prefix=no
16876  need_version=no
16877  dynamic_linker="$host_os runtime_loader"
16878  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16879  soname_spec='$libname$release$shared_ext$major'
16880  shlibpath_var=LIBRARY_PATH
16881  shlibpath_overrides_runpath=no
16882  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16883  hardcode_into_libs=yes
16884  ;;
16885
16886hpux9* | hpux10* | hpux11*)
16887  # Give a soname corresponding to the major version so that dld.sl refuses to
16888  # link against other versions.
16889  version_type=sunos
16890  need_lib_prefix=no
16891  need_version=no
16892  case $host_cpu in
16893  ia64*)
16894    shrext_cmds='.so'
16895    hardcode_into_libs=yes
16896    dynamic_linker="$host_os dld.so"
16897    shlibpath_var=LD_LIBRARY_PATH
16898    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16899    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16900    soname_spec='$libname$release$shared_ext$major'
16901    if test 32 = "$HPUX_IA64_MODE"; then
16902      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16903      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16904    else
16905      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16906      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16907    fi
16908    ;;
16909  hppa*64*)
16910    shrext_cmds='.sl'
16911    hardcode_into_libs=yes
16912    dynamic_linker="$host_os dld.sl"
16913    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16914    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16915    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16916    soname_spec='$libname$release$shared_ext$major'
16917    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16918    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16919    ;;
16920  *)
16921    shrext_cmds='.sl'
16922    dynamic_linker="$host_os dld.sl"
16923    shlibpath_var=SHLIB_PATH
16924    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16925    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16926    soname_spec='$libname$release$shared_ext$major'
16927    ;;
16928  esac
16929  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16930  postinstall_cmds='chmod 555 $lib'
16931  # or fails outright, so override atomically:
16932  install_override_mode=555
16933  ;;
16934
16935interix[3-9]*)
16936  version_type=linux # correct to gnu/linux during the next big refactor
16937  need_lib_prefix=no
16938  need_version=no
16939  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16940  soname_spec='$libname$release$shared_ext$major'
16941  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16942  shlibpath_var=LD_LIBRARY_PATH
16943  shlibpath_overrides_runpath=no
16944  hardcode_into_libs=yes
16945  ;;
16946
16947irix5* | irix6* | nonstopux*)
16948  case $host_os in
16949    nonstopux*) version_type=nonstopux ;;
16950    *)
16951	if test yes = "$lt_cv_prog_gnu_ld"; then
16952		version_type=linux # correct to gnu/linux during the next big refactor
16953	else
16954		version_type=irix
16955	fi ;;
16956  esac
16957  need_lib_prefix=no
16958  need_version=no
16959  soname_spec='$libname$release$shared_ext$major'
16960  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16961  case $host_os in
16962  irix5* | nonstopux*)
16963    libsuff= shlibsuff=
16964    ;;
16965  *)
16966    case $LD in # libtool.m4 will add one of these switches to LD
16967    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16968      libsuff= shlibsuff= libmagic=32-bit;;
16969    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16970      libsuff=32 shlibsuff=N32 libmagic=N32;;
16971    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16972      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16973    *) libsuff= shlibsuff= libmagic=never-match;;
16974    esac
16975    ;;
16976  esac
16977  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16978  shlibpath_overrides_runpath=no
16979  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16980  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16981  hardcode_into_libs=yes
16982  ;;
16983
16984# No shared lib support for Linux oldld, aout, or coff.
16985linux*oldld* | linux*aout* | linux*coff*)
16986  dynamic_linker=no
16987  ;;
16988
16989linux*android*)
16990  version_type=none # Android doesn't support versioned libraries.
16991  need_lib_prefix=no
16992  need_version=no
16993  library_names_spec='$libname$release$shared_ext'
16994  soname_spec='$libname$release$shared_ext'
16995  finish_cmds=
16996  shlibpath_var=LD_LIBRARY_PATH
16997  shlibpath_overrides_runpath=yes
16998
16999  # This implies no fast_install, which is unacceptable.
17000  # Some rework will be needed to allow for fast_install
17001  # before this can be enabled.
17002  hardcode_into_libs=yes
17003
17004  dynamic_linker='Android linker'
17005  # Don't embed -rpath directories since the linker doesn't support them.
17006  hardcode_libdir_flag_spec_CXX='-L$libdir'
17007  ;;
17008
17009# This must be glibc/ELF.
17010linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17011  version_type=linux # correct to gnu/linux during the next big refactor
17012  need_lib_prefix=no
17013  need_version=no
17014  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17015  soname_spec='$libname$release$shared_ext$major'
17016  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17017  shlibpath_var=LD_LIBRARY_PATH
17018  shlibpath_overrides_runpath=no
17019
17020  # Some binutils ld are patched to set DT_RUNPATH
17021  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17022  $as_echo_n "(cached) " >&6
17023else
17024  lt_cv_shlibpath_overrides_runpath=no
17025    save_LDFLAGS=$LDFLAGS
17026    save_libdir=$libdir
17027    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17028	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17029    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030/* end confdefs.h.  */
17031
17032int
17033main ()
17034{
17035
17036  ;
17037  return 0;
17038}
17039_ACEOF
17040if ac_fn_cxx_try_link "$LINENO"; then :
17041  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17042  lt_cv_shlibpath_overrides_runpath=yes
17043fi
17044fi
17045rm -f core conftest.err conftest.$ac_objext \
17046    conftest$ac_exeext conftest.$ac_ext
17047    LDFLAGS=$save_LDFLAGS
17048    libdir=$save_libdir
17049
17050fi
17051
17052  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17053
17054  # This implies no fast_install, which is unacceptable.
17055  # Some rework will be needed to allow for fast_install
17056  # before this can be enabled.
17057  hardcode_into_libs=yes
17058
17059  # Ideally, we could use ldconfig to report *all* directores which are
17060  # searched for libraries, however this is still not possible.  Aside from not
17061  # being certain /sbin/ldconfig is available, command
17062  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17063  # even though it is searched at run-time.  Try to do the best guess by
17064  # appending ld.so.conf contents (and includes) to the search path.
17065  if test -f /etc/ld.so.conf; then
17066    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' ' '`
17067    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17068  fi
17069
17070  # We used to test for /lib/ld.so.1 and disable shared libraries on
17071  # powerpc, because MkLinux only supported shared libraries with the
17072  # GNU dynamic linker.  Since this was broken with cross compilers,
17073  # most powerpc-linux boxes support dynamic linking these days and
17074  # people can always --disable-shared, the test was removed, and we
17075  # assume the GNU/Linux dynamic linker is in use.
17076  dynamic_linker='GNU/Linux ld.so'
17077  ;;
17078
17079netbsdelf*-gnu)
17080  version_type=linux
17081  need_lib_prefix=no
17082  need_version=no
17083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17084  soname_spec='${libname}${release}${shared_ext}$major'
17085  shlibpath_var=LD_LIBRARY_PATH
17086  shlibpath_overrides_runpath=no
17087  hardcode_into_libs=yes
17088  dynamic_linker='NetBSD ld.elf_so'
17089  ;;
17090
17091netbsd*)
17092  version_type=sunos
17093  need_lib_prefix=no
17094  need_version=no
17095  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17096    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17097    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17098    dynamic_linker='NetBSD (a.out) ld.so'
17099  else
17100    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17101    soname_spec='$libname$release$shared_ext$major'
17102    dynamic_linker='NetBSD ld.elf_so'
17103  fi
17104  shlibpath_var=LD_LIBRARY_PATH
17105  shlibpath_overrides_runpath=yes
17106  hardcode_into_libs=yes
17107  ;;
17108
17109newsos6)
17110  version_type=linux # correct to gnu/linux during the next big refactor
17111  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17112  shlibpath_var=LD_LIBRARY_PATH
17113  shlibpath_overrides_runpath=yes
17114  ;;
17115
17116*nto* | *qnx*)
17117  version_type=qnx
17118  need_lib_prefix=no
17119  need_version=no
17120  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17121  soname_spec='$libname$release$shared_ext$major'
17122  shlibpath_var=LD_LIBRARY_PATH
17123  shlibpath_overrides_runpath=no
17124  hardcode_into_libs=yes
17125  dynamic_linker='ldqnx.so'
17126  ;;
17127
17128openbsd* | bitrig*)
17129  version_type=sunos
17130  sys_lib_dlsearch_path_spec=/usr/lib
17131  need_lib_prefix=no
17132  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17133    need_version=no
17134  else
17135    need_version=yes
17136  fi
17137  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17138  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17139  shlibpath_var=LD_LIBRARY_PATH
17140  shlibpath_overrides_runpath=yes
17141  ;;
17142
17143os2*)
17144  libname_spec='$name'
17145  version_type=windows
17146  shrext_cmds=.dll
17147  need_version=no
17148  need_lib_prefix=no
17149  # OS/2 can only load a DLL with a base name of 8 characters or less.
17150  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17151    v=$($ECHO $release$versuffix | tr -d .-);
17152    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17153    $ECHO $n$v`$shared_ext'
17154  library_names_spec='${libname}_dll.$libext'
17155  dynamic_linker='OS/2 ld.exe'
17156  shlibpath_var=BEGINLIBPATH
17157  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17158  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17159  postinstall_cmds='base_file=`basename \$file`~
17160    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17161    dldir=$destdir/`dirname \$dlpath`~
17162    test -d \$dldir || mkdir -p \$dldir~
17163    $install_prog $dir/$dlname \$dldir/$dlname~
17164    chmod a+x \$dldir/$dlname~
17165    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17166      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17167    fi'
17168  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17169    dlpath=$dir/\$dldll~
17170    $RM \$dlpath'
17171  ;;
17172
17173osf3* | osf4* | osf5*)
17174  version_type=osf
17175  need_lib_prefix=no
17176  need_version=no
17177  soname_spec='$libname$release$shared_ext$major'
17178  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17179  shlibpath_var=LD_LIBRARY_PATH
17180  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17181  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17182  ;;
17183
17184rdos*)
17185  dynamic_linker=no
17186  ;;
17187
17188solaris*)
17189  version_type=linux # correct to gnu/linux during the next big refactor
17190  need_lib_prefix=no
17191  need_version=no
17192  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17193  soname_spec='$libname$release$shared_ext$major'
17194  shlibpath_var=LD_LIBRARY_PATH
17195  shlibpath_overrides_runpath=yes
17196  hardcode_into_libs=yes
17197  # ldd complains unless libraries are executable
17198  postinstall_cmds='chmod +x $lib'
17199  ;;
17200
17201sunos4*)
17202  version_type=sunos
17203  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17204  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17205  shlibpath_var=LD_LIBRARY_PATH
17206  shlibpath_overrides_runpath=yes
17207  if test yes = "$with_gnu_ld"; then
17208    need_lib_prefix=no
17209  fi
17210  need_version=yes
17211  ;;
17212
17213sysv4 | sysv4.3*)
17214  version_type=linux # correct to gnu/linux during the next big refactor
17215  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17216  soname_spec='$libname$release$shared_ext$major'
17217  shlibpath_var=LD_LIBRARY_PATH
17218  case $host_vendor in
17219    sni)
17220      shlibpath_overrides_runpath=no
17221      need_lib_prefix=no
17222      runpath_var=LD_RUN_PATH
17223      ;;
17224    siemens)
17225      need_lib_prefix=no
17226      ;;
17227    motorola)
17228      need_lib_prefix=no
17229      need_version=no
17230      shlibpath_overrides_runpath=no
17231      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17232      ;;
17233  esac
17234  ;;
17235
17236sysv4*MP*)
17237  if test -d /usr/nec; then
17238    version_type=linux # correct to gnu/linux during the next big refactor
17239    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17240    soname_spec='$libname$shared_ext.$major'
17241    shlibpath_var=LD_LIBRARY_PATH
17242  fi
17243  ;;
17244
17245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17246  version_type=sco
17247  need_lib_prefix=no
17248  need_version=no
17249  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17250  soname_spec='$libname$release$shared_ext$major'
17251  shlibpath_var=LD_LIBRARY_PATH
17252  shlibpath_overrides_runpath=yes
17253  hardcode_into_libs=yes
17254  if test yes = "$with_gnu_ld"; then
17255    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17256  else
17257    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17258    case $host_os in
17259      sco3.2v5*)
17260        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17261	;;
17262    esac
17263  fi
17264  sys_lib_dlsearch_path_spec='/usr/lib'
17265  ;;
17266
17267tpf*)
17268  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17269  version_type=linux # correct to gnu/linux during the next big refactor
17270  need_lib_prefix=no
17271  need_version=no
17272  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17273  shlibpath_var=LD_LIBRARY_PATH
17274  shlibpath_overrides_runpath=no
17275  hardcode_into_libs=yes
17276  ;;
17277
17278uts4*)
17279  version_type=linux # correct to gnu/linux during the next big refactor
17280  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17281  soname_spec='$libname$release$shared_ext$major'
17282  shlibpath_var=LD_LIBRARY_PATH
17283  ;;
17284
17285*)
17286  dynamic_linker=no
17287  ;;
17288esac
17289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17290$as_echo "$dynamic_linker" >&6; }
17291test no = "$dynamic_linker" && can_build_shared=no
17292
17293variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17294if test yes = "$GCC"; then
17295  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17296fi
17297
17298if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17299  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17300fi
17301
17302if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17303  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17304fi
17305
17306# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17307configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17308
17309# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17310func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17311
17312# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17313configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17355$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17356hardcode_action_CXX=
17357if test -n "$hardcode_libdir_flag_spec_CXX" ||
17358   test -n "$runpath_var_CXX" ||
17359   test yes = "$hardcode_automatic_CXX"; then
17360
17361  # We can hardcode non-existent directories.
17362  if test no != "$hardcode_direct_CXX" &&
17363     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17364     # have to relink, otherwise we might link with an installed library
17365     # when we should be linking with a yet-to-be-installed one
17366     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17367     test no != "$hardcode_minus_L_CXX"; then
17368    # Linking always hardcodes the temporary library directory.
17369    hardcode_action_CXX=relink
17370  else
17371    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17372    hardcode_action_CXX=immediate
17373  fi
17374else
17375  # We cannot hardcode anything, or else we can only hardcode existing
17376  # directories.
17377  hardcode_action_CXX=unsupported
17378fi
17379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17380$as_echo "$hardcode_action_CXX" >&6; }
17381
17382if test relink = "$hardcode_action_CXX" ||
17383   test yes = "$inherit_rpath_CXX"; then
17384  # Fast installation is not supported
17385  enable_fast_install=no
17386elif test yes = "$shlibpath_overrides_runpath" ||
17387     test no = "$enable_shared"; then
17388  # Fast installation is not necessary
17389  enable_fast_install=needless
17390fi
17391
17392
17393
17394
17395
17396
17397
17398  fi # test -n "$compiler"
17399
17400  CC=$lt_save_CC
17401  CFLAGS=$lt_save_CFLAGS
17402  LDCXX=$LD
17403  LD=$lt_save_LD
17404  GCC=$lt_save_GCC
17405  with_gnu_ld=$lt_save_with_gnu_ld
17406  lt_cv_path_LDCXX=$lt_cv_path_LD
17407  lt_cv_path_LD=$lt_save_path_LD
17408  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17409  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17410fi # test yes != "$_lt_caught_CXX_error"
17411
17412ac_ext=c
17413ac_cpp='$CPP $CPPFLAGS'
17414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17416ac_compiler_gnu=$ac_cv_c_compiler_gnu
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432        ac_config_commands="$ac_config_commands libtool"
17433
17434
17435
17436
17437# Only expand once:
17438
17439
17440
17441# Set up the libsigrok version defines.
17442SR_PACKAGE_VERSION=0.5.2
17443sr_git_deps=
17444# Check if we can get revision information from git.
17445sr_head=`git -C "$srcdir" rev-parse --verify --short HEAD 2>&5`
17446
17447if test "$?" = 0 && test "x$sr_head" != x; then :
17448  	test ! -f "$srcdir/.git/HEAD" \
17449		|| sr_git_deps="$sr_git_deps \$(top_srcdir)/.git/HEAD"
17450
17451	sr_head_name=`git -C "$srcdir" rev-parse --symbolic-full-name HEAD 2>&5`
17452	if test "$?" = 0 && test -f "$srcdir/.git/$sr_head_name"; then :
17453  sr_git_deps="$sr_git_deps \$(top_srcdir)/.git/$sr_head_name"
17454fi
17455
17456	# Append the revision hash unless we are exactly on a tagged release.
17457	git -C "$srcdir" describe --match "libsigrok-0.5.2" \
17458		--exact-match >&5 2>&5 \
17459		|| SR_PACKAGE_VERSION="$SR_PACKAGE_VERSION-git-$sr_head"
17460
17461fi
17462# Use $(wildcard) so that things do not break if for whatever
17463# reason these files do not exist anymore at make time.
17464if test -n "$sr_git_deps"; then :
17465  CONFIG_STATUS_DEPENDENCIES=${CONFIG_STATUS_DEPENDENCIES}${CONFIG_STATUS_DEPENDENCIES:+' '}"\$(wildcard$sr_git_deps)"
17466fi
17467
17468$as_echo "#define SR_PACKAGE_VERSION_MAJOR 0" >>confdefs.h
17469
17470$as_echo "#define SR_PACKAGE_VERSION_MINOR 5" >>confdefs.h
17471
17472$as_echo "#define SR_PACKAGE_VERSION_MICRO 2" >>confdefs.h
17473
17474cat >>confdefs.h <<_ACEOF
17475#define SR_PACKAGE_VERSION_STRING "$SR_PACKAGE_VERSION"
17476_ACEOF
17477
17478
17479
17480# Library version for libsigrok (NOT the same as the package version).
17481# Carefully read the libtool docs before updating these numbers!
17482# The algorithm for determining which number to change (and how) is nontrivial!
17483# http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info
17484# Format: current:revision:age.
17485SR_LIB_VERSION=5:1:1
17486
17487$as_echo "#define SR_LIB_VERSION_CURRENT 5" >>confdefs.h
17488
17489$as_echo "#define SR_LIB_VERSION_REVISION 1" >>confdefs.h
17490
17491$as_echo "#define SR_LIB_VERSION_AGE 1" >>confdefs.h
17492
17493$as_echo "#define SR_LIB_VERSION_STRING \"5:1:1\"" >>confdefs.h
17494
17495
17496
17497 if test -z "${host_os##mingw*}" || test -z "${host_os##cygwin*}"; then
17498  WIN32_TRUE=
17499  WIN32_FALSE='#'
17500else
17501  WIN32_TRUE='#'
17502  WIN32_FALSE=
17503fi
17504
17505
17506#############################
17507##  Optional dependencies  ##
17508#############################
17509
17510ac_ext=c
17511ac_cpp='$CPP $CPPFLAGS'
17512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17514ac_compiler_gnu=$ac_cv_c_compiler_gnu
17515
17516
17517# Initialize pkg-config.
17518# We require at least 0.22, as "Requires.private" behaviour changed there.
17519
17520
17521
17522
17523
17524
17525
17526if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17527	if test -n "$ac_tool_prefix"; then
17528  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17529set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17531$as_echo_n "checking for $ac_word... " >&6; }
17532if ${ac_cv_path_PKG_CONFIG+:} false; then :
17533  $as_echo_n "(cached) " >&6
17534else
17535  case $PKG_CONFIG in
17536  [\\/]* | ?:[\\/]*)
17537  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17538  ;;
17539  *)
17540  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17541for as_dir in $PATH
17542do
17543  IFS=$as_save_IFS
17544  test -z "$as_dir" && as_dir=.
17545    for ac_exec_ext in '' $ac_executable_extensions; do
17546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17547    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17549    break 2
17550  fi
17551done
17552  done
17553IFS=$as_save_IFS
17554
17555  ;;
17556esac
17557fi
17558PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17559if test -n "$PKG_CONFIG"; then
17560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17561$as_echo "$PKG_CONFIG" >&6; }
17562else
17563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17564$as_echo "no" >&6; }
17565fi
17566
17567
17568fi
17569if test -z "$ac_cv_path_PKG_CONFIG"; then
17570  ac_pt_PKG_CONFIG=$PKG_CONFIG
17571  # Extract the first word of "pkg-config", so it can be a program name with args.
17572set dummy pkg-config; ac_word=$2
17573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17574$as_echo_n "checking for $ac_word... " >&6; }
17575if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17576  $as_echo_n "(cached) " >&6
17577else
17578  case $ac_pt_PKG_CONFIG in
17579  [\\/]* | ?:[\\/]*)
17580  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17581  ;;
17582  *)
17583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17584for as_dir in $PATH
17585do
17586  IFS=$as_save_IFS
17587  test -z "$as_dir" && as_dir=.
17588    for ac_exec_ext in '' $ac_executable_extensions; do
17589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17590    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17592    break 2
17593  fi
17594done
17595  done
17596IFS=$as_save_IFS
17597
17598  ;;
17599esac
17600fi
17601ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17602if test -n "$ac_pt_PKG_CONFIG"; then
17603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17604$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17605else
17606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17607$as_echo "no" >&6; }
17608fi
17609
17610  if test "x$ac_pt_PKG_CONFIG" = x; then
17611    PKG_CONFIG=""
17612  else
17613    case $cross_compiling:$ac_tool_warned in
17614yes:)
17615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17617ac_tool_warned=yes ;;
17618esac
17619    PKG_CONFIG=$ac_pt_PKG_CONFIG
17620  fi
17621else
17622  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17623fi
17624
17625fi
17626if test -n "$PKG_CONFIG"; then
17627	_pkg_min_version=0.22
17628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17629$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17630	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17631		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17632$as_echo "yes" >&6; }
17633	else
17634		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17635$as_echo "no" >&6; }
17636		PKG_CONFIG=""
17637	fi
17638fi
17639
17640# Keep track of all checked modules so we can list them at the end.
17641sr_pkglibs_summary=
17642sr_pkg_check_summary_append() {
17643	sr_aligned=`printf '%.32s' "$1................................"`
17644	sr_pkglibs_summary="${sr_pkglibs_summary} - $sr_aligned $2"'
17645'
17646}
17647
17648
17649# Collect the pkg-config module names of all dependencies in SR_PKGLIBS.
17650# These are used to derive the compiler flags and for the "Requires.private"
17651# field in the generated libsigrok.pc file.
17652SR_PKGLIBS=
17653sr_deps_avail=
17654
17655SR_PKGLIBS_TESTS=
17656SR_PKGLIBS_CXX=
17657SR_PKGLIBS_PYTHON=
17658SR_PKGLIBS_RUBY=
17659SR_EXTRA_LIBS=
17660SR_EXTRA_CXX_LIBS=
17661
17662
17663# Check whether --with-libserialport was given.
17664if test "${with_libserialport+set}" = set; then :
17665  withval=$with_libserialport;
17666fi
17667
17668if test "x$with_libserialport" = xno; then :
17669  sr_have_libserialport=no
17670elif test "x$sr_have_libserialport" != xyes; then :
17671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libserialport" >&5
17672$as_echo_n "checking for libserialport... " >&6; }
17673if test -n "$PKG_CONFIG" && \
17674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libserialport >= 0.1.1\""; } >&5
17675  ($PKG_CONFIG --exists --print-errors "libserialport >= 0.1.1") 2>&5
17676  ac_status=$?
17677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17678  test $ac_status = 0; }; then
17679  	sr_have_libserialport=yes
17680	SR_PKGLIBS=${SR_PKGLIBS}${SR_PKGLIBS:+' '}"libserialport >= 0.1.1"
17681	sr_libserialport_version=`$PKG_CONFIG --modversion "libserialport >= 0.1.1" 2>&5`
17682	sr_pkg_check_summary_append "libserialport >= 0.1.1" "$sr_libserialport_version"
17683else
17684  	sr_pkg_check_summary_append "libserialport >= 0.1.1" no
17685	sr_have_libserialport=no sr_libserialport_version=
17686fi
17687
17688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_have_libserialport" >&5
17689$as_echo "$sr_have_libserialport" >&6; }
17690fi
17691if test "x$with_libserialport$sr_have_libserialport" = xyesno; then :
17692  as_fn_error $? "libserialport support requested, but it was not found." "$LINENO" 5
17693fi
17694if test "x$sr_have_libserialport" = xyes; then :
17695
17696	sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}"libserialport"
17697
17698$as_echo "#define HAVE_LIBSERIALPORT 1" >>confdefs.h
17699
17700fi
17701
17702if test "x$sr_have_libserialport" = xyes; then :
17703
17704cat >>confdefs.h <<_ACEOF
17705#define CONF_LIBSERIALPORT_VERSION "$sr_libserialport_version"
17706_ACEOF
17707
17708fi
17709
17710
17711
17712# Check whether --with-libftdi was given.
17713if test "${with_libftdi+set}" = set; then :
17714  withval=$with_libftdi;
17715fi
17716
17717if test "x$with_libftdi" = xno; then :
17718  sr_have_libftdi=no
17719elif test "x$sr_have_libftdi" != xyes; then :
17720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libftdi" >&5
17721$as_echo_n "checking for libftdi... " >&6; }
17722if test -n "$PKG_CONFIG" && \
17723    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libftdi1 >= 1.0\""; } >&5
17724  ($PKG_CONFIG --exists --print-errors "libftdi1 >= 1.0") 2>&5
17725  ac_status=$?
17726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17727  test $ac_status = 0; }; then
17728  	sr_have_libftdi=yes
17729	SR_PKGLIBS=${SR_PKGLIBS}${SR_PKGLIBS:+' '}"libftdi1 >= 1.0"
17730	sr_libftdi_version=`$PKG_CONFIG --modversion "libftdi1 >= 1.0" 2>&5`
17731	sr_pkg_check_summary_append "libftdi1 >= 1.0" "$sr_libftdi_version"
17732else
17733  	sr_pkg_check_summary_append "libftdi1 >= 1.0" no
17734	sr_have_libftdi=no sr_libftdi_version=
17735fi
17736
17737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_have_libftdi" >&5
17738$as_echo "$sr_have_libftdi" >&6; }
17739fi
17740if test "x$with_libftdi$sr_have_libftdi" = xyesno; then :
17741  as_fn_error $? "libftdi support requested, but it was not found." "$LINENO" 5
17742fi
17743if test "x$sr_have_libftdi" = xyes; then :
17744
17745	sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}"libftdi"
17746
17747$as_echo "#define HAVE_LIBFTDI 1" >>confdefs.h
17748
17749fi
17750
17751if test "x$sr_have_libftdi" = xyes; then :
17752
17753cat >>confdefs.h <<_ACEOF
17754#define CONF_LIBFTDI_VERSION "$sr_libftdi_version"
17755_ACEOF
17756
17757fi
17758
17759
17760# pkg-config file names: MinGW/MacOSX: hidapi; Linux: hidapi-hidraw/-libusb
17761
17762# Check whether --with-libhidapi was given.
17763if test "${with_libhidapi+set}" = set; then :
17764  withval=$with_libhidapi;
17765fi
17766
17767if test "x$with_libhidapi" = xno; then :
17768  sr_have_libhidapi=no
17769elif test "x$sr_have_libhidapi" != xyes; then :
17770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhidapi" >&5
17771$as_echo_n "checking for libhidapi... " >&6; }
17772if test -n "$PKG_CONFIG" && \
17773    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hidapi >= 0.8.0\""; } >&5
17774  ($PKG_CONFIG --exists --print-errors "hidapi >= 0.8.0") 2>&5
17775  ac_status=$?
17776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17777  test $ac_status = 0; }; then
17778  	sr_have_libhidapi=yes
17779	SR_PKGLIBS=${SR_PKGLIBS}${SR_PKGLIBS:+' '}"hidapi >= 0.8.0"
17780	sr_libhidapi_version=`$PKG_CONFIG --modversion "hidapi >= 0.8.0" 2>&5`
17781	sr_pkg_check_summary_append "hidapi >= 0.8.0" "$sr_libhidapi_version"
17782else
17783  	sr_pkg_check_summary_append "hidapi >= 0.8.0" no
17784	if test -n "$PKG_CONFIG" && \
17785    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hidapi-hidraw >= 0.8.0\""; } >&5
17786  ($PKG_CONFIG --exists --print-errors "hidapi-hidraw >= 0.8.0") 2>&5
17787  ac_status=$?
17788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17789  test $ac_status = 0; }; then
17790  	sr_have_libhidapi=yes
17791	SR_PKGLIBS=${SR_PKGLIBS}${SR_PKGLIBS:+' '}"hidapi-hidraw >= 0.8.0"
17792	sr_libhidapi_version=`$PKG_CONFIG --modversion "hidapi-hidraw >= 0.8.0" 2>&5`
17793	sr_pkg_check_summary_append "hidapi-hidraw >= 0.8.0" "$sr_libhidapi_version"
17794else
17795  	sr_pkg_check_summary_append "hidapi-hidraw >= 0.8.0" no
17796	if test -n "$PKG_CONFIG" && \
17797    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hidapi-libusb >= 0.8.0\""; } >&5
17798  ($PKG_CONFIG --exists --print-errors "hidapi-libusb >= 0.8.0") 2>&5
17799  ac_status=$?
17800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17801  test $ac_status = 0; }; then
17802  	sr_have_libhidapi=yes
17803	SR_PKGLIBS=${SR_PKGLIBS}${SR_PKGLIBS:+' '}"hidapi-libusb >= 0.8.0"
17804	sr_libhidapi_version=`$PKG_CONFIG --modversion "hidapi-libusb >= 0.8.0" 2>&5`
17805	sr_pkg_check_summary_append "hidapi-libusb >= 0.8.0" "$sr_libhidapi_version"
17806else
17807  	sr_pkg_check_summary_append "hidapi-libusb >= 0.8.0" no
17808	sr_have_libhidapi=no sr_libhidapi_version=
17809fi
17810
17811fi
17812
17813fi
17814
17815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_have_libhidapi" >&5
17816$as_echo "$sr_have_libhidapi" >&6; }
17817fi
17818if test "x$with_libhidapi$sr_have_libhidapi" = xyesno; then :
17819  as_fn_error $? "libhidapi support requested, but it was not found." "$LINENO" 5
17820fi
17821if test "x$sr_have_libhidapi" = xyes; then :
17822
17823	sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}"libhidapi"
17824
17825$as_echo "#define HAVE_LIBHIDAPI 1" >>confdefs.h
17826
17827fi
17828
17829if test "x$sr_have_libhidapi" = xyes; then :
17830
17831cat >>confdefs.h <<_ACEOF
17832#define CONF_LIBHIDAPI_VERSION "$sr_libhidapi_version"
17833_ACEOF
17834
17835fi
17836
17837
17838
17839# Check whether --with-libbluez was given.
17840if test "${with_libbluez+set}" = set; then :
17841  withval=$with_libbluez;
17842fi
17843
17844if test "x$with_libbluez" = xno; then :
17845  sr_have_libbluez=no
17846elif test "x$sr_have_libbluez" != xyes; then :
17847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbluez" >&5
17848$as_echo_n "checking for libbluez... " >&6; }
17849if test -n "$PKG_CONFIG" && \
17850    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 4.0\""; } >&5
17851  ($PKG_CONFIG --exists --print-errors "bluez >= 4.0") 2>&5
17852  ac_status=$?
17853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17854  test $ac_status = 0; }; then
17855  	sr_have_libbluez=yes
17856	SR_PKGLIBS=${SR_PKGLIBS}${SR_PKGLIBS:+' '}"bluez >= 4.0"
17857	sr_libbluez_version=`$PKG_CONFIG --modversion "bluez >= 4.0" 2>&5`
17858	sr_pkg_check_summary_append "bluez >= 4.0" "$sr_libbluez_version"
17859else
17860  	sr_pkg_check_summary_append "bluez >= 4.0" no
17861	sr_have_libbluez=no sr_libbluez_version=
17862fi
17863
17864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_have_libbluez" >&5
17865$as_echo "$sr_have_libbluez" >&6; }
17866fi
17867if test "x$with_libbluez$sr_have_libbluez" = xyesno; then :
17868  as_fn_error $? "libbluez support requested, but it was not found." "$LINENO" 5
17869fi
17870if test "x$sr_have_libbluez" = xyes; then :
17871
17872	sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}"libbluez"
17873
17874$as_echo "#define HAVE_LIBBLUEZ 1" >>confdefs.h
17875
17876fi
17877
17878if test "x$sr_have_libbluez" = xyes; then :
17879
17880cat >>confdefs.h <<_ACEOF
17881#define CONF_LIBBLUEZ_VERSION "$sr_libbluez_version"
17882_ACEOF
17883
17884fi
17885
17886
17887# FreeBSD comes with an "integrated" libusb-1.0-style USB API.
17888# This means libusb-1.0 is always available; no need to check for it.
17889# On Windows, require the latest version we can get our hands on,
17890# until the new generic event handling has seen an official release.
17891case $host_os in #(
17892  freebsd*) :
17893    sr_libusb_req='libusb-1.0' sr_have_libusb=yes ;; #(
17894  mingw*) :
17895    sr_libusb_req='libusb-1.0' ;; #(
17896  *) :
17897    sr_libusb_req='libusb-1.0' ;;
17898esac
17899
17900
17901# Check whether --with-libusb was given.
17902if test "${with_libusb+set}" = set; then :
17903  withval=$with_libusb;
17904fi
17905
17906if test "x$with_libusb" = xno; then :
17907  sr_have_libusb=no
17908elif test "x$sr_have_libusb" != xyes; then :
17909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb" >&5
17910$as_echo_n "checking for libusb... " >&6; }
17911if test -n "$PKG_CONFIG" && \
17912    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$sr_libusb_req\""; } >&5
17913  ($PKG_CONFIG --exists --print-errors "$sr_libusb_req") 2>&5
17914  ac_status=$?
17915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17916  test $ac_status = 0; }; then
17917  	sr_have_libusb=yes
17918	SR_PKGLIBS=${SR_PKGLIBS}${SR_PKGLIBS:+' '}"$sr_libusb_req"
17919	sr_libusb_version=`$PKG_CONFIG --modversion "$sr_libusb_req" 2>&5`
17920	sr_pkg_check_summary_append "$sr_libusb_req" "$sr_libusb_version"
17921else
17922  	sr_pkg_check_summary_append "$sr_libusb_req" no
17923	sr_have_libusb=no sr_libusb_version=
17924fi
17925
17926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_have_libusb" >&5
17927$as_echo "$sr_have_libusb" >&6; }
17928fi
17929if test "x$with_libusb$sr_have_libusb" = xyesno; then :
17930  as_fn_error $? "libusb support requested, but it was not found." "$LINENO" 5
17931fi
17932if test "x$sr_have_libusb" = xyes; then :
17933
17934	sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}"libusb"
17935
17936$as_echo "#define HAVE_LIBUSB_1_0 1" >>confdefs.h
17937
17938fi
17939 if test "x$sr_have_libusb" = xyes; then
17940  NEED_USB_TRUE=
17941  NEED_USB_FALSE='#'
17942else
17943  NEED_USB_TRUE='#'
17944  NEED_USB_FALSE=
17945fi
17946
17947
17948if test "x$sr_have_libusb" = xyes; then :
17949
17950cat >>confdefs.h <<_ACEOF
17951#define CONF_LIBUSB_1_0_VERSION "$sr_libusb_version"
17952_ACEOF
17953
17954fi
17955
17956
17957
17958# Check whether --with-librevisa was given.
17959if test "${with_librevisa+set}" = set; then :
17960  withval=$with_librevisa;
17961fi
17962
17963if test "x$with_librevisa" = xno; then :
17964  sr_have_librevisa=no
17965elif test "x$sr_have_librevisa" != xyes; then :
17966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librevisa" >&5
17967$as_echo_n "checking for librevisa... " >&6; }
17968if test -n "$PKG_CONFIG" && \
17969    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevisa >= 0.0.20130412\""; } >&5
17970  ($PKG_CONFIG --exists --print-errors "librevisa >= 0.0.20130412") 2>&5
17971  ac_status=$?
17972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17973  test $ac_status = 0; }; then
17974  	sr_have_librevisa=yes
17975	SR_PKGLIBS=${SR_PKGLIBS}${SR_PKGLIBS:+' '}"librevisa >= 0.0.20130412"
17976	sr_librevisa_version=`$PKG_CONFIG --modversion "librevisa >= 0.0.20130412" 2>&5`
17977	sr_pkg_check_summary_append "librevisa >= 0.0.20130412" "$sr_librevisa_version"
17978else
17979  	sr_pkg_check_summary_append "librevisa >= 0.0.20130412" no
17980	sr_have_librevisa=no sr_librevisa_version=
17981fi
17982
17983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_have_librevisa" >&5
17984$as_echo "$sr_have_librevisa" >&6; }
17985fi
17986if test "x$with_librevisa$sr_have_librevisa" = xyesno; then :
17987  as_fn_error $? "librevisa support requested, but it was not found." "$LINENO" 5
17988fi
17989if test "x$sr_have_librevisa" = xyes; then :
17990
17991	sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}"librevisa"
17992
17993$as_echo "#define HAVE_LIBREVISA 1" >>confdefs.h
17994
17995fi
17996 if test "x$sr_have_librevisa" = xyes; then
17997  NEED_VISA_TRUE=
17998  NEED_VISA_FALSE='#'
17999else
18000  NEED_VISA_TRUE='#'
18001  NEED_VISA_FALSE=
18002fi
18003
18004
18005if test "x$sr_have_librevisa" = xyes; then :
18006
18007cat >>confdefs.h <<_ACEOF
18008#define CONF_LIBREVISA_VERSION "$sr_librevisa_version"
18009_ACEOF
18010
18011fi
18012
18013
18014
18015# Check whether --with-libgpib was given.
18016if test "${with_libgpib+set}" = set; then :
18017  withval=$with_libgpib;
18018fi
18019
18020if test "x$with_libgpib" = xno; then :
18021  sr_have_libgpib=no
18022elif test "x$sr_have_libgpib" != xyes; then :
18023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgpib" >&5
18024$as_echo_n "checking for libgpib... " >&6; }
18025if test -n "$PKG_CONFIG" && \
18026    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgpib\""; } >&5
18027  ($PKG_CONFIG --exists --print-errors "libgpib") 2>&5
18028  ac_status=$?
18029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18030  test $ac_status = 0; }; then
18031  	sr_have_libgpib=yes
18032	SR_PKGLIBS=${SR_PKGLIBS}${SR_PKGLIBS:+' '}"libgpib"
18033	sr_libgpib_version=`$PKG_CONFIG --modversion "libgpib" 2>&5`
18034	sr_pkg_check_summary_append "libgpib" "$sr_libgpib_version"
18035else
18036  	sr_pkg_check_summary_append "libgpib" no
18037	sr_have_libgpib=no sr_libgpib_version=
18038fi
18039
18040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_have_libgpib" >&5
18041$as_echo "$sr_have_libgpib" >&6; }
18042fi
18043if test "x$with_libgpib$sr_have_libgpib" = xyesno; then :
18044  as_fn_error $? "libgpib support requested, but it was not found." "$LINENO" 5
18045fi
18046if test "x$sr_have_libgpib" = xyes; then :
18047
18048	sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}"libgpib"
18049
18050$as_echo "#define HAVE_LIBGPIB 1" >>confdefs.h
18051
18052fi
18053 if test "x$sr_have_libgpib" = xyes; then
18054  NEED_GPIB_TRUE=
18055  NEED_GPIB_FALSE='#'
18056else
18057  NEED_GPIB_TRUE='#'
18058  NEED_GPIB_FALSE=
18059fi
18060
18061
18062if test "x$sr_have_libgpib" = xyes; then :
18063
18064cat >>confdefs.h <<_ACEOF
18065#define CONF_LIBGPIB_VERSION "$sr_libgpib_version"
18066_ACEOF
18067
18068fi
18069
18070
18071
18072# Check whether --with-libieee1284 was given.
18073if test "${with_libieee1284+set}" = set; then :
18074  withval=$with_libieee1284;
18075fi
18076
18077if test "x$with_libieee1284" = xno; then :
18078  sr_have_libieee1284=no
18079elif test "x$sr_have_libieee1284" != xyes; then :
18080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libieee1284" >&5
18081$as_echo_n "checking for libieee1284... " >&6; }
18082
18083	sr_save_LIBS=$LIBS
18084	LIBS="-lieee1284 $LIBS"
18085	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086/* end confdefs.h.  */
18087#include <ieee1284.h>
18088int
18089main ()
18090{
18091(void) ieee1284_open(0, 0, 0);
18092  ;
18093  return 0;
18094}
18095_ACEOF
18096if ac_fn_c_try_link "$LINENO"; then :
18097  sr_have_libieee1284=yes
18098else
18099  sr_have_libieee1284=no
18100fi
18101rm -f core conftest.err conftest.$ac_objext \
18102    conftest$ac_exeext conftest.$ac_ext
18103	LIBS=$sr_save_LIBS
18104
18105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_have_libieee1284" >&5
18106$as_echo "$sr_have_libieee1284" >&6; }
18107fi
18108if test "x$with_libieee1284$sr_have_libieee1284" = xyesno; then :
18109  as_fn_error $? "libieee1284 support requested, but it was not found." "$LINENO" 5
18110fi
18111if test "x$sr_have_libieee1284" = xyes; then :
18112
18113	sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}"libieee1284"
18114
18115$as_echo "#define HAVE_LIBIEEE1284 1" >>confdefs.h
18116
18117fi
18118
18119sr_pkg_check_summary_append "libieee1284" "$sr_have_libieee1284"
18120
18121if test "x$sr_have_libieee1284" = xyes; then :
18122  SR_EXTRA_LIBS=-lieee1284${SR_EXTRA_LIBS:+' '}$SR_EXTRA_LIBS
18123fi
18124
18125
18126# Check whether --with-libgio was given.
18127if test "${with_libgio+set}" = set; then :
18128  withval=$with_libgio;
18129fi
18130
18131if test "x$with_libgio" = xno; then :
18132  sr_have_libgio=no
18133elif test "x$sr_have_libgio" != xyes; then :
18134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgio" >&5
18135$as_echo_n "checking for libgio... " >&6; }
18136if test -n "$PKG_CONFIG" && \
18137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.24.0\""; } >&5
18138  ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.24.0") 2>&5
18139  ac_status=$?
18140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18141  test $ac_status = 0; }; then
18142  	sr_have_libgio=yes
18143	SR_PKGLIBS=${SR_PKGLIBS}${SR_PKGLIBS:+' '}"gio-2.0 >= 2.24.0"
18144	sr_libgio_version=`$PKG_CONFIG --modversion "gio-2.0 >= 2.24.0" 2>&5`
18145	sr_pkg_check_summary_append "gio-2.0 >= 2.24.0" "$sr_libgio_version"
18146else
18147  	sr_pkg_check_summary_append "gio-2.0 >= 2.24.0" no
18148	sr_have_libgio=no sr_libgio_version=
18149fi
18150
18151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_have_libgio" >&5
18152$as_echo "$sr_have_libgio" >&6; }
18153fi
18154if test "x$with_libgio$sr_have_libgio" = xyesno; then :
18155  as_fn_error $? "libgio support requested, but it was not found." "$LINENO" 5
18156fi
18157if test "x$sr_have_libgio" = xyes; then :
18158
18159	sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}"libgio"
18160
18161$as_echo "#define HAVE_LIBGIO 1" >>confdefs.h
18162
18163fi
18164
18165if test "x$sr_have_libgio" = xyes; then :
18166
18167cat >>confdefs.h <<_ACEOF
18168#define CONF_LIBGIO_VERSION "$sr_libgio_version"
18169_ACEOF
18170
18171fi
18172
18173
18174# See if any of the (potentially platform specific) libs are available
18175# which provide some means of Bluetooth communication.
18176if test "x$sr_have_libbluez" = xyes; then :
18177  sr_have_bluetooth=yes
18178else
18179  sr_have_bluetooth=no
18180fi
18181if test "x$sr_have_bluetooth" = xyes; then :
18182
18183$as_echo "#define HAVE_BLUETOOTH 1" >>confdefs.h
18184
18185fi
18186if test "x$sr_have_bluetooth" = xyes; then :
18187  sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}bluetooth_comm
18188fi
18189
18190if test "x$sr_have_libserialport" = xyes -o "x$sr_have_libhidapi" = xyes -o "x$sr_have_bluetooth" = xyes; then :
18191  sr_have_serial_comm=yes
18192else
18193  sr_have_serial_comm=no
18194fi
18195if test "x$sr_have_serial_comm" = xyes; then :
18196
18197$as_echo "#define HAVE_SERIAL_COMM 1" >>confdefs.h
18198
18199fi
18200if test "x$sr_have_serial_comm" = xyes; then :
18201  sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}serial_comm
18202fi
18203 if test "x$sr_have_serial_comm" = xyes; then
18204  NEED_SERIAL_TRUE=
18205  NEED_SERIAL_FALSE='#'
18206else
18207  NEED_SERIAL_TRUE='#'
18208  NEED_SERIAL_FALSE=
18209fi
18210
18211
18212######################
18213##  Feature checks  ##
18214######################
18215
18216# The Check unit testing framework is optional. Disable if not found.
18217if test -n "$PKG_CONFIG" && \
18218    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
18219  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
18220  ac_status=$?
18221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18222  test $ac_status = 0; }; then
18223  	sr_have_check=yes
18224	SR_PKGLIBS_TESTS=${SR_PKGLIBS_TESTS}${SR_PKGLIBS_TESTS:+' '}"check >= 0.9.4"
18225	sr_check_version=`$PKG_CONFIG --modversion "check >= 0.9.4" 2>&5`
18226	sr_pkg_check_summary_append "check >= 0.9.4" "$sr_check_version"
18227else
18228  	sr_pkg_check_summary_append "check >= 0.9.4" no
18229	sr_have_check=no sr_check_version=
18230fi
18231
18232 if test "x$sr_have_check" = xyes; then
18233  HAVE_CHECK_TRUE=
18234  HAVE_CHECK_FALSE='#'
18235else
18236  HAVE_CHECK_TRUE='#'
18237  HAVE_CHECK_FALSE=
18238fi
18239
18240
18241# Enable the C99 standard if possible, and enforce the use
18242# of SR_API to explicitly mark all public API functions.
18243SR_EXTRA_CFLAGS=
18244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flag for C99" >&5
18245$as_echo_n "checking compiler flag for C99... " >&6; }
18246sr_ccf_result=no
18247sr_ccf_save_CPPFLAGS=$CPPFLAGS
18248for sr_flag in -std=c99 -c99 -AC99 -qlanglvl=extc99
18249do
18250	CPPFLAGS="$sr_ccf_save_CPPFLAGS $sr_flag"
18251	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252/* end confdefs.h.  */
18253
18254int
18255main ()
18256{
18257
18258  ;
18259  return 0;
18260}
18261_ACEOF
18262if ac_fn_c_try_compile "$LINENO"; then :
18263  sr_ccf_result=$sr_flag
18264fi
18265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18266	test "x$sr_ccf_result" = xno || break
18267done
18268CPPFLAGS=$sr_ccf_save_CPPFLAGS
18269if test "x$sr_ccf_result" != xno; then :
18270  SR_EXTRA_CFLAGS=${SR_EXTRA_CFLAGS}${SR_EXTRA_CFLAGS:+' '}$sr_ccf_result
18271fi
18272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_ccf_result" >&5
18273$as_echo "$sr_ccf_result" >&6; }
18274
18275
18276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flag for visibility" >&5
18277$as_echo_n "checking compiler flag for visibility... " >&6; }
18278sr_ccf_result=no
18279sr_ccf_save_CPPFLAGS=$CPPFLAGS
18280for sr_flag in -fvisibility=hidden
18281do
18282	CPPFLAGS="$sr_ccf_save_CPPFLAGS $sr_flag"
18283	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284/* end confdefs.h.  */
18285
18286int
18287main ()
18288{
18289
18290  ;
18291  return 0;
18292}
18293_ACEOF
18294if ac_fn_c_try_compile "$LINENO"; then :
18295  sr_ccf_result=$sr_flag
18296fi
18297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18298	test "x$sr_ccf_result" = xno || break
18299done
18300CPPFLAGS=$sr_ccf_save_CPPFLAGS
18301if test "x$sr_ccf_result" != xno; then :
18302  SR_EXTRA_CFLAGS=${SR_EXTRA_CFLAGS}${SR_EXTRA_CFLAGS:+' '}$sr_ccf_result
18303fi
18304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_ccf_result" >&5
18305$as_echo "$sr_ccf_result" >&6; }
18306
18307
18308
18309# Check whether --enable-warnings was given.
18310if test "${enable_warnings+set}" = set; then :
18311  enableval=$enable_warnings; sr_enable_warnings=$enableval
18312else
18313  sr_enable_warnings=max
18314fi
18315# Test whether the compiler accepts each flag.  Look at standard output,
18316# since GCC only shows a warning message if an option is not supported.
18317sr_check_compile_warning_flags() {
18318	for sr_flag
18319	do
18320		sr_cc_out=`$sr_cc $sr_warning_flags $sr_flag -c "$sr_conftest" 2>&1 || echo failed`
18321		if test "$?$sr_cc_out" = 0; then :
18322  sr_warning_flags=${sr_warning_flags}${sr_warning_flags:+' '}$sr_flag
18323else
18324  $as_echo "$sr_cc: $sr_cc_out" >&5
18325fi
18326		rm -f "conftest.${OBJEXT:-o}"
18327	done
18328}
18329
18330case $ac_compile in #(
18331  *'$CXXFLAGS '*) :
18332    sr_lang='C++' sr_cc=$CXX sr_conftest="conftest.${ac_ext:-cc}" ;; #(
18333  *'$CFLAGS '*) :
18334    sr_lang=C sr_cc=$CC sr_conftest="conftest.${ac_ext:-c}" ;; #(
18335  *) :
18336    as_fn_error $? "current language is neither C nor C++" "$LINENO" 5 ;;
18337esac
18338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which $sr_lang compiler warning flags to use" >&5
18339$as_echo_n "checking which $sr_lang compiler warning flags to use... " >&6; }
18340sr_warning_flags=
18341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342/* end confdefs.h.  */
18343
18344int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }
18345
18346_ACEOF
18347case $sr_enable_warnings in #(
18348  no) :
18349     ;; #(
18350  min) :
18351    sr_check_compile_warning_flags -Wall ;; #(
18352  fatal) :
18353    sr_check_compile_warning_flags -Wall -Wextra -Wmissing-prototypes -Werror ;; #(
18354  *) :
18355    sr_check_compile_warning_flags -Wall -Wextra -Wmissing-prototypes ;;
18356esac
18357rm -f "$sr_conftest"
18358SR_WFLAGS=$sr_warning_flags
18359
18360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sr_warning_flags:-none}" >&5
18361$as_echo "${sr_warning_flags:-none}" >&6; }
18362
18363# Check host characteristics.
18364# Check whether --enable-largefile was given.
18365if test "${enable_largefile+set}" = set; then :
18366  enableval=$enable_largefile;
18367fi
18368
18369if test "$enable_largefile" != no; then
18370
18371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18372$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18373if ${ac_cv_sys_largefile_CC+:} false; then :
18374  $as_echo_n "(cached) " >&6
18375else
18376  ac_cv_sys_largefile_CC=no
18377     if test "$GCC" != yes; then
18378       ac_save_CC=$CC
18379       while :; do
18380	 # IRIX 6.2 and later do not support large files by default,
18381	 # so use the C compiler's -n32 option if that helps.
18382	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383/* end confdefs.h.  */
18384#include <sys/types.h>
18385 /* Check that off_t can represent 2**63 - 1 correctly.
18386    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18387    since some C++ compilers masquerading as C compilers
18388    incorrectly reject 9223372036854775807.  */
18389#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18390  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18391		       && LARGE_OFF_T % 2147483647 == 1)
18392		      ? 1 : -1];
18393int
18394main ()
18395{
18396
18397  ;
18398  return 0;
18399}
18400_ACEOF
18401	 if ac_fn_c_try_compile "$LINENO"; then :
18402  break
18403fi
18404rm -f core conftest.err conftest.$ac_objext
18405	 CC="$CC -n32"
18406	 if ac_fn_c_try_compile "$LINENO"; then :
18407  ac_cv_sys_largefile_CC=' -n32'; break
18408fi
18409rm -f core conftest.err conftest.$ac_objext
18410	 break
18411       done
18412       CC=$ac_save_CC
18413       rm -f conftest.$ac_ext
18414    fi
18415fi
18416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18417$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18418  if test "$ac_cv_sys_largefile_CC" != no; then
18419    CC=$CC$ac_cv_sys_largefile_CC
18420  fi
18421
18422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18423$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18424if ${ac_cv_sys_file_offset_bits+:} false; then :
18425  $as_echo_n "(cached) " >&6
18426else
18427  while :; do
18428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429/* end confdefs.h.  */
18430#include <sys/types.h>
18431 /* Check that off_t can represent 2**63 - 1 correctly.
18432    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18433    since some C++ compilers masquerading as C compilers
18434    incorrectly reject 9223372036854775807.  */
18435#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18436  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18437		       && LARGE_OFF_T % 2147483647 == 1)
18438		      ? 1 : -1];
18439int
18440main ()
18441{
18442
18443  ;
18444  return 0;
18445}
18446_ACEOF
18447if ac_fn_c_try_compile "$LINENO"; then :
18448  ac_cv_sys_file_offset_bits=no; break
18449fi
18450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18452/* end confdefs.h.  */
18453#define _FILE_OFFSET_BITS 64
18454#include <sys/types.h>
18455 /* Check that off_t can represent 2**63 - 1 correctly.
18456    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18457    since some C++ compilers masquerading as C compilers
18458    incorrectly reject 9223372036854775807.  */
18459#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18460  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18461		       && LARGE_OFF_T % 2147483647 == 1)
18462		      ? 1 : -1];
18463int
18464main ()
18465{
18466
18467  ;
18468  return 0;
18469}
18470_ACEOF
18471if ac_fn_c_try_compile "$LINENO"; then :
18472  ac_cv_sys_file_offset_bits=64; break
18473fi
18474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18475  ac_cv_sys_file_offset_bits=unknown
18476  break
18477done
18478fi
18479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18480$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18481case $ac_cv_sys_file_offset_bits in #(
18482  no | unknown) ;;
18483  *)
18484cat >>confdefs.h <<_ACEOF
18485#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18486_ACEOF
18487;;
18488esac
18489rm -rf conftest*
18490  if test $ac_cv_sys_file_offset_bits = unknown; then
18491    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18492$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18493if ${ac_cv_sys_large_files+:} false; then :
18494  $as_echo_n "(cached) " >&6
18495else
18496  while :; do
18497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498/* end confdefs.h.  */
18499#include <sys/types.h>
18500 /* Check that off_t can represent 2**63 - 1 correctly.
18501    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18502    since some C++ compilers masquerading as C compilers
18503    incorrectly reject 9223372036854775807.  */
18504#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18505  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18506		       && LARGE_OFF_T % 2147483647 == 1)
18507		      ? 1 : -1];
18508int
18509main ()
18510{
18511
18512  ;
18513  return 0;
18514}
18515_ACEOF
18516if ac_fn_c_try_compile "$LINENO"; then :
18517  ac_cv_sys_large_files=no; break
18518fi
18519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521/* end confdefs.h.  */
18522#define _LARGE_FILES 1
18523#include <sys/types.h>
18524 /* Check that off_t can represent 2**63 - 1 correctly.
18525    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18526    since some C++ compilers masquerading as C compilers
18527    incorrectly reject 9223372036854775807.  */
18528#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18529  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18530		       && LARGE_OFF_T % 2147483647 == 1)
18531		      ? 1 : -1];
18532int
18533main ()
18534{
18535
18536  ;
18537  return 0;
18538}
18539_ACEOF
18540if ac_fn_c_try_compile "$LINENO"; then :
18541  ac_cv_sys_large_files=1; break
18542fi
18543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18544  ac_cv_sys_large_files=unknown
18545  break
18546done
18547fi
18548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18549$as_echo "$ac_cv_sys_large_files" >&6; }
18550case $ac_cv_sys_large_files in #(
18551  no | unknown) ;;
18552  *)
18553cat >>confdefs.h <<_ACEOF
18554#define _LARGE_FILES $ac_cv_sys_large_files
18555_ACEOF
18556;;
18557esac
18558rm -rf conftest*
18559  fi
18560
18561
18562fi
18563
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18565$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18566if ${ac_cv_c_bigendian+:} false; then :
18567  $as_echo_n "(cached) " >&6
18568else
18569  ac_cv_c_bigendian=unknown
18570    # See if we're dealing with a universal compiler.
18571    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18572/* end confdefs.h.  */
18573#ifndef __APPLE_CC__
18574	       not a universal capable compiler
18575	     #endif
18576	     typedef int dummy;
18577
18578_ACEOF
18579if ac_fn_c_try_compile "$LINENO"; then :
18580
18581	# Check for potential -arch flags.  It is not universal unless
18582	# there are at least two -arch flags with different values.
18583	ac_arch=
18584	ac_prev=
18585	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18586	 if test -n "$ac_prev"; then
18587	   case $ac_word in
18588	     i?86 | x86_64 | ppc | ppc64)
18589	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18590		 ac_arch=$ac_word
18591	       else
18592		 ac_cv_c_bigendian=universal
18593		 break
18594	       fi
18595	       ;;
18596	   esac
18597	   ac_prev=
18598	 elif test "x$ac_word" = "x-arch"; then
18599	   ac_prev=arch
18600	 fi
18601       done
18602fi
18603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18604    if test $ac_cv_c_bigendian = unknown; then
18605      # See if sys/param.h defines the BYTE_ORDER macro.
18606      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18607/* end confdefs.h.  */
18608#include <sys/types.h>
18609	     #include <sys/param.h>
18610
18611int
18612main ()
18613{
18614#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18615		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18616		     && LITTLE_ENDIAN)
18617	      bogus endian macros
18618	     #endif
18619
18620  ;
18621  return 0;
18622}
18623_ACEOF
18624if ac_fn_c_try_compile "$LINENO"; then :
18625  # It does; now see whether it defined to BIG_ENDIAN or not.
18626	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627/* end confdefs.h.  */
18628#include <sys/types.h>
18629		#include <sys/param.h>
18630
18631int
18632main ()
18633{
18634#if BYTE_ORDER != BIG_ENDIAN
18635		 not big endian
18636		#endif
18637
18638  ;
18639  return 0;
18640}
18641_ACEOF
18642if ac_fn_c_try_compile "$LINENO"; then :
18643  ac_cv_c_bigendian=yes
18644else
18645  ac_cv_c_bigendian=no
18646fi
18647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648fi
18649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18650    fi
18651    if test $ac_cv_c_bigendian = unknown; then
18652      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18653      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18654/* end confdefs.h.  */
18655#include <limits.h>
18656
18657int
18658main ()
18659{
18660#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18661	      bogus endian macros
18662	     #endif
18663
18664  ;
18665  return 0;
18666}
18667_ACEOF
18668if ac_fn_c_try_compile "$LINENO"; then :
18669  # It does; now see whether it defined to _BIG_ENDIAN or not.
18670	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671/* end confdefs.h.  */
18672#include <limits.h>
18673
18674int
18675main ()
18676{
18677#ifndef _BIG_ENDIAN
18678		 not big endian
18679		#endif
18680
18681  ;
18682  return 0;
18683}
18684_ACEOF
18685if ac_fn_c_try_compile "$LINENO"; then :
18686  ac_cv_c_bigendian=yes
18687else
18688  ac_cv_c_bigendian=no
18689fi
18690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18691fi
18692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18693    fi
18694    if test $ac_cv_c_bigendian = unknown; then
18695      # Compile a test program.
18696      if test "$cross_compiling" = yes; then :
18697  # Try to guess by grepping values from an object file.
18698	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18699/* end confdefs.h.  */
18700short int ascii_mm[] =
18701		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18702		short int ascii_ii[] =
18703		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18704		int use_ascii (int i) {
18705		  return ascii_mm[i] + ascii_ii[i];
18706		}
18707		short int ebcdic_ii[] =
18708		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18709		short int ebcdic_mm[] =
18710		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18711		int use_ebcdic (int i) {
18712		  return ebcdic_mm[i] + ebcdic_ii[i];
18713		}
18714		extern int foo;
18715
18716int
18717main ()
18718{
18719return use_ascii (foo) == use_ebcdic (foo);
18720  ;
18721  return 0;
18722}
18723_ACEOF
18724if ac_fn_c_try_compile "$LINENO"; then :
18725  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18726	      ac_cv_c_bigendian=yes
18727	    fi
18728	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18729	      if test "$ac_cv_c_bigendian" = unknown; then
18730		ac_cv_c_bigendian=no
18731	      else
18732		# finding both strings is unlikely to happen, but who knows?
18733		ac_cv_c_bigendian=unknown
18734	      fi
18735	    fi
18736fi
18737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18738else
18739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740/* end confdefs.h.  */
18741$ac_includes_default
18742int
18743main ()
18744{
18745
18746	     /* Are we little or big endian?  From Harbison&Steele.  */
18747	     union
18748	     {
18749	       long int l;
18750	       char c[sizeof (long int)];
18751	     } u;
18752	     u.l = 1;
18753	     return u.c[sizeof (long int) - 1] == 1;
18754
18755  ;
18756  return 0;
18757}
18758_ACEOF
18759if ac_fn_c_try_run "$LINENO"; then :
18760  ac_cv_c_bigendian=no
18761else
18762  ac_cv_c_bigendian=yes
18763fi
18764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18765  conftest.$ac_objext conftest.beam conftest.$ac_ext
18766fi
18767
18768    fi
18769fi
18770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18771$as_echo "$ac_cv_c_bigendian" >&6; }
18772 case $ac_cv_c_bigendian in #(
18773   yes)
18774     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18775;; #(
18776   no)
18777      ;; #(
18778   universal)
18779
18780$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18781
18782     ;; #(
18783   *)
18784     as_fn_error $? "unknown endianness
18785 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18786 esac
18787
18788
18789for ac_header in sys/mman.h
18790do :
18791  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
18792if test "x$ac_cv_header_sys_mman_h" = xyes; then :
18793  cat >>confdefs.h <<_ACEOF
18794#define HAVE_SYS_MMAN_H 1
18795_ACEOF
18796 sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}sys_mman_h
18797fi
18798
18799done
18800
18801for ac_header in sys/ioctl.h
18802do :
18803  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
18804if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
18805  cat >>confdefs.h <<_ACEOF
18806#define HAVE_SYS_IOCTL_H 1
18807_ACEOF
18808 sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}sys_ioctl_h
18809fi
18810
18811done
18812
18813for ac_header in sys/timerfd.h
18814do :
18815  ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
18816if test "x$ac_cv_header_sys_timerfd_h" = xyes; then :
18817  cat >>confdefs.h <<_ACEOF
18818#define HAVE_SYS_TIMERFD_H 1
18819_ACEOF
18820 sr_deps_avail=${sr_deps_avail}${sr_deps_avail:+' '}sys_timerfd_h
18821fi
18822
18823done
18824
18825
18826# We need to link against the Winsock2 library for SCPI over TCP.
18827case $host_os in #(
18828  mingw*) :
18829    SR_EXTRA_LIBS=-lws2_32${SR_EXTRA_LIBS:+' '}$SR_EXTRA_LIBS ;; #(
18830  *) :
18831     ;;
18832esac
18833
18834# libm (the standard math library) is always needed.
18835sr_sl_save_LIBS=$LIBS
18836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
18837$as_echo_n "checking for library containing pow... " >&6; }
18838if ${ac_cv_search_pow+:} false; then :
18839  $as_echo_n "(cached) " >&6
18840else
18841  ac_func_search_save_LIBS=$LIBS
18842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843/* end confdefs.h.  */
18844
18845/* Override any GCC internal prototype to avoid an error.
18846   Use char because int might match the return type of a GCC
18847   builtin and then its argument prototype would still apply.  */
18848#ifdef __cplusplus
18849extern "C"
18850#endif
18851char pow ();
18852int
18853main ()
18854{
18855return pow ();
18856  ;
18857  return 0;
18858}
18859_ACEOF
18860for ac_lib in '' m; do
18861  if test -z "$ac_lib"; then
18862    ac_res="none required"
18863  else
18864    ac_res=-l$ac_lib
18865    LIBS="-l$ac_lib $SR_EXTRA_LIBS $ac_func_search_save_LIBS"
18866  fi
18867  if ac_fn_c_try_link "$LINENO"; then :
18868  ac_cv_search_pow=$ac_res
18869fi
18870rm -f core conftest.err conftest.$ac_objext \
18871    conftest$ac_exeext
18872  if ${ac_cv_search_pow+:} false; then :
18873  break
18874fi
18875done
18876if ${ac_cv_search_pow+:} false; then :
18877
18878else
18879  ac_cv_search_pow=no
18880fi
18881rm conftest.$ac_ext
18882LIBS=$ac_func_search_save_LIBS
18883fi
18884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
18885$as_echo "$ac_cv_search_pow" >&6; }
18886ac_res=$ac_cv_search_pow
18887if test "$ac_res" != no; then :
18888  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18889
18890fi
18891
18892LIBS=$sr_sl_save_LIBS
18893case $ac_cv_search_pow in #(
18894  no*) :
18895     ;; #(
18896  *) :
18897    SR_EXTRA_LIBS=$ac_cv_search_pow${SR_EXTRA_LIBS:+' '}$SR_EXTRA_LIBS ;;
18898esac
18899
18900
18901# RPC is only needed for VXI support.
18902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPC support" >&5
18903$as_echo_n "checking for RPC support... " >&6; }
18904if ${sr_cv_have_rpc+:} false; then :
18905  $as_echo_n "(cached) " >&6
18906else
18907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18908/* end confdefs.h.  */
18909#include <rpc/rpc.h>
18910CLIENT *rpc_test(void);
18911int
18912main ()
18913{
18914(void) clnt_create("", 0, 0, "");
18915  ;
18916  return 0;
18917}
18918_ACEOF
18919if ac_fn_c_try_link "$LINENO"; then :
18920  sr_cv_have_rpc=yes
18921else
18922  sr_cv_have_rpc=no
18923fi
18924rm -f core conftest.err conftest.$ac_objext \
18925    conftest$ac_exeext conftest.$ac_ext
18926fi
18927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_cv_have_rpc" >&5
18928$as_echo "$sr_cv_have_rpc" >&6; }
18929if test "x$sr_cv_have_rpc" = xyes; then :
18930
18931$as_echo "#define HAVE_RPC 1" >>confdefs.h
18932
18933fi
18934# VXI support is only compiled if RPC support was found.
18935 if test "x$sr_cv_have_rpc" = xyes; then
18936  NEED_RPC_TRUE=
18937  NEED_RPC_FALSE='#'
18938else
18939  NEED_RPC_TRUE='#'
18940  NEED_RPC_FALSE=
18941fi
18942
18943
18944# Check for compiler support of 128 bit integers
18945ac_fn_c_check_type "$LINENO" "__int128_t" "ac_cv_type___int128_t" "$ac_includes_default"
18946if test "x$ac_cv_type___int128_t" = xyes; then :
18947
18948cat >>confdefs.h <<_ACEOF
18949#define HAVE___INT128_T 1
18950_ACEOF
18951
18952
18953fi
18954ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
18955if test "x$ac_cv_type___uint128_t" = xyes; then :
18956
18957cat >>confdefs.h <<_ACEOF
18958#define HAVE___UINT128_T 1
18959_ACEOF
18960
18961
18962fi
18963
18964
18965# Availability of bt_put_le16() depends on the bluez library version.
18966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bt_put_le16" >&5
18967$as_echo_n "checking for bt_put_le16... " >&6; }
18968if ${sr_cv_have_btputle16+:} false; then :
18969  $as_echo_n "(cached) " >&6
18970else
18971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972/* end confdefs.h.  */
18973#include <bluetooth/bluetooth.h>
18974int
18975main ()
18976{
18977bt_put_le16(0, (void *)0);
18978  ;
18979  return 0;
18980}
18981_ACEOF
18982if ac_fn_c_try_link "$LINENO"; then :
18983  sr_cv_have_btputle16=yes
18984else
18985  sr_cv_have_btputle16=no
18986fi
18987rm -f core conftest.err conftest.$ac_objext \
18988    conftest$ac_exeext conftest.$ac_ext
18989fi
18990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_cv_have_btputle16" >&5
18991$as_echo "$sr_cv_have_btputle16" >&6; }
18992if test "x$sr_cv_have_btputle16" = xyes; then :
18993
18994$as_echo "#define HAVE_BT_PUT_LE16 1" >>confdefs.h
18995
18996fi
18997
18998########################
18999##  Hardware drivers  ##
19000########################
19001
19002# Keep track of all drivers so we can list them at the end.
19003sr_driver_summary=
19004sr_driver_summary_append() {
19005	sr_aligned=`printf '%.32s' "$1................................"`
19006	sr_driver_summary="${sr_driver_summary} - $sr_aligned $2"'
19007'
19008}
19009
19010
19011# Check whether the sr_deps_avail list contains all of the arguments.
19012# Unavailable dependencies are collected in sr_deps_missing.
19013sr_check_driver_deps() {
19014	sr_deps_missing=
19015	for sr_dep
19016	do
19017		case " $sr_deps_avail " in #(
19018  *" $sr_dep "*) :
19019     ;; #(
19020  *) :
19021    sr_deps_missing=${sr_deps_missing}${sr_deps_missing:+', '}$sr_dep ;;
19022esac
19023	done
19024	test -z "$sr_deps_missing" || return 1
19025}
19026
19027# Check whether --enable-all-drivers was given.
19028if test "${enable_all_drivers+set}" = set; then :
19029  enableval=$enable_all_drivers;
19030else
19031  enable_all_drivers=yes
19032fi
19033
19034
19035## _SR_DRIVER(Device name, driver-name, var-name, [dependencies...])
19036
19037
19038## SR_DRIVER(Device name, driver-name, [dependencies...])
19039
19040
19041
19042	# Check whether --enable-agilent-dmm was given.
19043if test "${enable_agilent_dmm+set}" = set; then :
19044  enableval=$enable_agilent_dmm; HW_AGILENT_DMM=$enableval
19045else
19046  HW_AGILENT_DMM=$enable_all_drivers
19047fi
19048
19049
19050	if test "x$HW_AGILENT_DMM" = xyes; then :
19051  sr_hw_info=yes
19052		sr_check_driver_deps serial_comm \
19053			|| HW_AGILENT_DMM=no sr_hw_info="no (missing: $sr_deps_missing)"
19054
19055else
19056  sr_hw_info='no (disabled)'
19057fi
19058	sr_driver_summary_append "agilent-dmm" "$sr_hw_info"
19059
19060	 if test "x$HW_AGILENT_DMM" = xyes; then
19061  HW_AGILENT_DMM_TRUE=
19062  HW_AGILENT_DMM_FALSE='#'
19063else
19064  HW_AGILENT_DMM_TRUE='#'
19065  HW_AGILENT_DMM_FALSE=
19066fi
19067
19068	if test -z "$HW_AGILENT_DMM_TRUE"; then :
19069
19070$as_echo "#define HAVE_HW_AGILENT_DMM 1" >>confdefs.h
19071
19072$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19073
19074fi
19075
19076
19077	# Check whether --enable-appa-55ii was given.
19078if test "${enable_appa_55ii+set}" = set; then :
19079  enableval=$enable_appa_55ii; HW_APPA_55II=$enableval
19080else
19081  HW_APPA_55II=$enable_all_drivers
19082fi
19083
19084
19085	if test "x$HW_APPA_55II" = xyes; then :
19086  sr_hw_info=yes
19087		sr_check_driver_deps serial_comm \
19088			|| HW_APPA_55II=no sr_hw_info="no (missing: $sr_deps_missing)"
19089
19090else
19091  sr_hw_info='no (disabled)'
19092fi
19093	sr_driver_summary_append "appa-55ii" "$sr_hw_info"
19094
19095	 if test "x$HW_APPA_55II" = xyes; then
19096  HW_APPA_55II_TRUE=
19097  HW_APPA_55II_FALSE='#'
19098else
19099  HW_APPA_55II_TRUE='#'
19100  HW_APPA_55II_FALSE=
19101fi
19102
19103	if test -z "$HW_APPA_55II_TRUE"; then :
19104
19105$as_echo "#define HAVE_HW_APPA_55II 1" >>confdefs.h
19106
19107$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19108
19109fi
19110
19111
19112	# Check whether --enable-arachnid-labs-re-load-pro was given.
19113if test "${enable_arachnid_labs_re_load_pro+set}" = set; then :
19114  enableval=$enable_arachnid_labs_re_load_pro; HW_ARACHNID_LABS_RE_LOAD_PRO=$enableval
19115else
19116  HW_ARACHNID_LABS_RE_LOAD_PRO=$enable_all_drivers
19117fi
19118
19119
19120	if test "x$HW_ARACHNID_LABS_RE_LOAD_PRO" = xyes; then :
19121  sr_hw_info=yes
19122		sr_check_driver_deps serial_comm \
19123			|| HW_ARACHNID_LABS_RE_LOAD_PRO=no sr_hw_info="no (missing: $sr_deps_missing)"
19124
19125else
19126  sr_hw_info='no (disabled)'
19127fi
19128	sr_driver_summary_append "arachnid-labs-re-load-pro" "$sr_hw_info"
19129
19130	 if test "x$HW_ARACHNID_LABS_RE_LOAD_PRO" = xyes; then
19131  HW_ARACHNID_LABS_RE_LOAD_PRO_TRUE=
19132  HW_ARACHNID_LABS_RE_LOAD_PRO_FALSE='#'
19133else
19134  HW_ARACHNID_LABS_RE_LOAD_PRO_TRUE='#'
19135  HW_ARACHNID_LABS_RE_LOAD_PRO_FALSE=
19136fi
19137
19138	if test -z "$HW_ARACHNID_LABS_RE_LOAD_PRO_TRUE"; then :
19139
19140$as_echo "#define HAVE_HW_ARACHNID_LABS_RE_LOAD_PRO 1" >>confdefs.h
19141
19142$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19143
19144fi
19145
19146
19147	# Check whether --enable-asix-sigma was given.
19148if test "${enable_asix_sigma+set}" = set; then :
19149  enableval=$enable_asix_sigma; HW_ASIX_SIGMA=$enableval
19150else
19151  HW_ASIX_SIGMA=$enable_all_drivers
19152fi
19153
19154
19155	if test "x$HW_ASIX_SIGMA" = xyes; then :
19156  sr_hw_info=yes
19157		sr_check_driver_deps libftdi \
19158			|| HW_ASIX_SIGMA=no sr_hw_info="no (missing: $sr_deps_missing)"
19159
19160else
19161  sr_hw_info='no (disabled)'
19162fi
19163	sr_driver_summary_append "asix-sigma" "$sr_hw_info"
19164
19165	 if test "x$HW_ASIX_SIGMA" = xyes; then
19166  HW_ASIX_SIGMA_TRUE=
19167  HW_ASIX_SIGMA_FALSE='#'
19168else
19169  HW_ASIX_SIGMA_TRUE='#'
19170  HW_ASIX_SIGMA_FALSE=
19171fi
19172
19173	if test -z "$HW_ASIX_SIGMA_TRUE"; then :
19174
19175$as_echo "#define HAVE_HW_ASIX_SIGMA 1" >>confdefs.h
19176
19177$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19178
19179fi
19180
19181
19182	# Check whether --enable-atten-pps3xxx was given.
19183if test "${enable_atten_pps3xxx+set}" = set; then :
19184  enableval=$enable_atten_pps3xxx; HW_ATTEN_PPS3XXX=$enableval
19185else
19186  HW_ATTEN_PPS3XXX=$enable_all_drivers
19187fi
19188
19189
19190	if test "x$HW_ATTEN_PPS3XXX" = xyes; then :
19191  sr_hw_info=yes
19192		sr_check_driver_deps serial_comm \
19193			|| HW_ATTEN_PPS3XXX=no sr_hw_info="no (missing: $sr_deps_missing)"
19194
19195else
19196  sr_hw_info='no (disabled)'
19197fi
19198	sr_driver_summary_append "atten-pps3xxx" "$sr_hw_info"
19199
19200	 if test "x$HW_ATTEN_PPS3XXX" = xyes; then
19201  HW_ATTEN_PPS3XXX_TRUE=
19202  HW_ATTEN_PPS3XXX_FALSE='#'
19203else
19204  HW_ATTEN_PPS3XXX_TRUE='#'
19205  HW_ATTEN_PPS3XXX_FALSE=
19206fi
19207
19208	if test -z "$HW_ATTEN_PPS3XXX_TRUE"; then :
19209
19210$as_echo "#define HAVE_HW_ATTEN_PPS3XXX 1" >>confdefs.h
19211
19212$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19213
19214fi
19215
19216
19217	# Check whether --enable-baylibre-acme was given.
19218if test "${enable_baylibre_acme+set}" = set; then :
19219  enableval=$enable_baylibre_acme; HW_BAYLIBRE_ACME=$enableval
19220else
19221  HW_BAYLIBRE_ACME=$enable_all_drivers
19222fi
19223
19224
19225	if test "x$HW_BAYLIBRE_ACME" = xyes; then :
19226  sr_hw_info=yes
19227		sr_check_driver_deps sys_timerfd_h \
19228			|| HW_BAYLIBRE_ACME=no sr_hw_info="no (missing: $sr_deps_missing)"
19229
19230else
19231  sr_hw_info='no (disabled)'
19232fi
19233	sr_driver_summary_append "baylibre-acme" "$sr_hw_info"
19234
19235	 if test "x$HW_BAYLIBRE_ACME" = xyes; then
19236  HW_BAYLIBRE_ACME_TRUE=
19237  HW_BAYLIBRE_ACME_FALSE='#'
19238else
19239  HW_BAYLIBRE_ACME_TRUE='#'
19240  HW_BAYLIBRE_ACME_FALSE=
19241fi
19242
19243	if test -z "$HW_BAYLIBRE_ACME_TRUE"; then :
19244
19245$as_echo "#define HAVE_HW_BAYLIBRE_ACME 1" >>confdefs.h
19246
19247$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19248
19249fi
19250
19251
19252	# Check whether --enable-beaglelogic was given.
19253if test "${enable_beaglelogic+set}" = set; then :
19254  enableval=$enable_beaglelogic; HW_BEAGLELOGIC=$enableval
19255else
19256  HW_BEAGLELOGIC=$enable_all_drivers
19257fi
19258
19259
19260	if test "x$HW_BEAGLELOGIC" = xyes; then :
19261  sr_hw_info=yes
19262		sr_check_driver_deps sys_mman_h sys_ioctl_h \
19263			|| HW_BEAGLELOGIC=no sr_hw_info="no (missing: $sr_deps_missing)"
19264
19265else
19266  sr_hw_info='no (disabled)'
19267fi
19268	sr_driver_summary_append "beaglelogic" "$sr_hw_info"
19269
19270	 if test "x$HW_BEAGLELOGIC" = xyes; then
19271  HW_BEAGLELOGIC_TRUE=
19272  HW_BEAGLELOGIC_FALSE='#'
19273else
19274  HW_BEAGLELOGIC_TRUE='#'
19275  HW_BEAGLELOGIC_FALSE=
19276fi
19277
19278	if test -z "$HW_BEAGLELOGIC_TRUE"; then :
19279
19280$as_echo "#define HAVE_HW_BEAGLELOGIC 1" >>confdefs.h
19281
19282$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19283
19284fi
19285
19286
19287	# Check whether --enable-brymen-dmm was given.
19288if test "${enable_brymen_dmm+set}" = set; then :
19289  enableval=$enable_brymen_dmm; HW_BRYMEN_DMM=$enableval
19290else
19291  HW_BRYMEN_DMM=$enable_all_drivers
19292fi
19293
19294
19295	if test "x$HW_BRYMEN_DMM" = xyes; then :
19296  sr_hw_info=yes
19297		sr_check_driver_deps serial_comm \
19298			|| HW_BRYMEN_DMM=no sr_hw_info="no (missing: $sr_deps_missing)"
19299
19300else
19301  sr_hw_info='no (disabled)'
19302fi
19303	sr_driver_summary_append "brymen-dmm" "$sr_hw_info"
19304
19305	 if test "x$HW_BRYMEN_DMM" = xyes; then
19306  HW_BRYMEN_DMM_TRUE=
19307  HW_BRYMEN_DMM_FALSE='#'
19308else
19309  HW_BRYMEN_DMM_TRUE='#'
19310  HW_BRYMEN_DMM_FALSE=
19311fi
19312
19313	if test -z "$HW_BRYMEN_DMM_TRUE"; then :
19314
19315$as_echo "#define HAVE_HW_BRYMEN_DMM 1" >>confdefs.h
19316
19317$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19318
19319fi
19320
19321
19322	# Check whether --enable-cem-dt-885x was given.
19323if test "${enable_cem_dt_885x+set}" = set; then :
19324  enableval=$enable_cem_dt_885x; HW_CEM_DT_885X=$enableval
19325else
19326  HW_CEM_DT_885X=$enable_all_drivers
19327fi
19328
19329
19330	if test "x$HW_CEM_DT_885X" = xyes; then :
19331  sr_hw_info=yes
19332		sr_check_driver_deps serial_comm \
19333			|| HW_CEM_DT_885X=no sr_hw_info="no (missing: $sr_deps_missing)"
19334
19335else
19336  sr_hw_info='no (disabled)'
19337fi
19338	sr_driver_summary_append "cem-dt-885x" "$sr_hw_info"
19339
19340	 if test "x$HW_CEM_DT_885X" = xyes; then
19341  HW_CEM_DT_885X_TRUE=
19342  HW_CEM_DT_885X_FALSE='#'
19343else
19344  HW_CEM_DT_885X_TRUE='#'
19345  HW_CEM_DT_885X_FALSE=
19346fi
19347
19348	if test -z "$HW_CEM_DT_885X_TRUE"; then :
19349
19350$as_echo "#define HAVE_HW_CEM_DT_885X 1" >>confdefs.h
19351
19352$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19353
19354fi
19355
19356
19357	# Check whether --enable-center-3xx was given.
19358if test "${enable_center_3xx+set}" = set; then :
19359  enableval=$enable_center_3xx; HW_CENTER_3XX=$enableval
19360else
19361  HW_CENTER_3XX=$enable_all_drivers
19362fi
19363
19364
19365	if test "x$HW_CENTER_3XX" = xyes; then :
19366  sr_hw_info=yes
19367		sr_check_driver_deps serial_comm \
19368			|| HW_CENTER_3XX=no sr_hw_info="no (missing: $sr_deps_missing)"
19369
19370else
19371  sr_hw_info='no (disabled)'
19372fi
19373	sr_driver_summary_append "center-3xx" "$sr_hw_info"
19374
19375	 if test "x$HW_CENTER_3XX" = xyes; then
19376  HW_CENTER_3XX_TRUE=
19377  HW_CENTER_3XX_FALSE='#'
19378else
19379  HW_CENTER_3XX_TRUE='#'
19380  HW_CENTER_3XX_FALSE=
19381fi
19382
19383	if test -z "$HW_CENTER_3XX_TRUE"; then :
19384
19385$as_echo "#define HAVE_HW_CENTER_3XX 1" >>confdefs.h
19386
19387$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19388
19389fi
19390
19391
19392	# Check whether --enable-chronovu-la was given.
19393if test "${enable_chronovu_la+set}" = set; then :
19394  enableval=$enable_chronovu_la; HW_CHRONOVU_LA=$enableval
19395else
19396  HW_CHRONOVU_LA=$enable_all_drivers
19397fi
19398
19399
19400	if test "x$HW_CHRONOVU_LA" = xyes; then :
19401  sr_hw_info=yes
19402		sr_check_driver_deps libusb libftdi \
19403			|| HW_CHRONOVU_LA=no sr_hw_info="no (missing: $sr_deps_missing)"
19404
19405else
19406  sr_hw_info='no (disabled)'
19407fi
19408	sr_driver_summary_append "chronovu-la" "$sr_hw_info"
19409
19410	 if test "x$HW_CHRONOVU_LA" = xyes; then
19411  HW_CHRONOVU_LA_TRUE=
19412  HW_CHRONOVU_LA_FALSE='#'
19413else
19414  HW_CHRONOVU_LA_TRUE='#'
19415  HW_CHRONOVU_LA_FALSE=
19416fi
19417
19418	if test -z "$HW_CHRONOVU_LA_TRUE"; then :
19419
19420$as_echo "#define HAVE_HW_CHRONOVU_LA 1" >>confdefs.h
19421
19422$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19423
19424fi
19425
19426
19427	# Check whether --enable-colead-slm was given.
19428if test "${enable_colead_slm+set}" = set; then :
19429  enableval=$enable_colead_slm; HW_COLEAD_SLM=$enableval
19430else
19431  HW_COLEAD_SLM=$enable_all_drivers
19432fi
19433
19434
19435	if test "x$HW_COLEAD_SLM" = xyes; then :
19436  sr_hw_info=yes
19437		sr_check_driver_deps serial_comm \
19438			|| HW_COLEAD_SLM=no sr_hw_info="no (missing: $sr_deps_missing)"
19439
19440else
19441  sr_hw_info='no (disabled)'
19442fi
19443	sr_driver_summary_append "colead-slm" "$sr_hw_info"
19444
19445	 if test "x$HW_COLEAD_SLM" = xyes; then
19446  HW_COLEAD_SLM_TRUE=
19447  HW_COLEAD_SLM_FALSE='#'
19448else
19449  HW_COLEAD_SLM_TRUE='#'
19450  HW_COLEAD_SLM_FALSE=
19451fi
19452
19453	if test -z "$HW_COLEAD_SLM_TRUE"; then :
19454
19455$as_echo "#define HAVE_HW_COLEAD_SLM 1" >>confdefs.h
19456
19457$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19458
19459fi
19460
19461
19462	# Check whether --enable-conrad-digi-35-cpu was given.
19463if test "${enable_conrad_digi_35_cpu+set}" = set; then :
19464  enableval=$enable_conrad_digi_35_cpu; HW_CONRAD_DIGI_35_CPU=$enableval
19465else
19466  HW_CONRAD_DIGI_35_CPU=$enable_all_drivers
19467fi
19468
19469
19470	if test "x$HW_CONRAD_DIGI_35_CPU" = xyes; then :
19471  sr_hw_info=yes
19472		sr_check_driver_deps serial_comm \
19473			|| HW_CONRAD_DIGI_35_CPU=no sr_hw_info="no (missing: $sr_deps_missing)"
19474
19475else
19476  sr_hw_info='no (disabled)'
19477fi
19478	sr_driver_summary_append "conrad-digi-35-cpu" "$sr_hw_info"
19479
19480	 if test "x$HW_CONRAD_DIGI_35_CPU" = xyes; then
19481  HW_CONRAD_DIGI_35_CPU_TRUE=
19482  HW_CONRAD_DIGI_35_CPU_FALSE='#'
19483else
19484  HW_CONRAD_DIGI_35_CPU_TRUE='#'
19485  HW_CONRAD_DIGI_35_CPU_FALSE=
19486fi
19487
19488	if test -z "$HW_CONRAD_DIGI_35_CPU_TRUE"; then :
19489
19490$as_echo "#define HAVE_HW_CONRAD_DIGI_35_CPU 1" >>confdefs.h
19491
19492$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19493
19494fi
19495
19496
19497	# Check whether --enable-demo was given.
19498if test "${enable_demo+set}" = set; then :
19499  enableval=$enable_demo; HW_DEMO=$enableval
19500else
19501  HW_DEMO=$enable_all_drivers
19502fi
19503
19504
19505	if test "x$HW_DEMO" = xyes; then :
19506  sr_hw_info=yes
19507else
19508  sr_hw_info='no (disabled)'
19509fi
19510	sr_driver_summary_append "demo" "$sr_hw_info"
19511
19512	 if test "x$HW_DEMO" = xyes; then
19513  HW_DEMO_TRUE=
19514  HW_DEMO_FALSE='#'
19515else
19516  HW_DEMO_TRUE='#'
19517  HW_DEMO_FALSE=
19518fi
19519
19520	if test -z "$HW_DEMO_TRUE"; then :
19521
19522$as_echo "#define HAVE_HW_DEMO 1" >>confdefs.h
19523
19524$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19525
19526fi
19527
19528
19529	# Check whether --enable-dreamsourcelab-dslogic was given.
19530if test "${enable_dreamsourcelab_dslogic+set}" = set; then :
19531  enableval=$enable_dreamsourcelab_dslogic; HW_DREAMSOURCELAB_DSLOGIC=$enableval
19532else
19533  HW_DREAMSOURCELAB_DSLOGIC=$enable_all_drivers
19534fi
19535
19536
19537	if test "x$HW_DREAMSOURCELAB_DSLOGIC" = xyes; then :
19538  sr_hw_info=yes
19539		sr_check_driver_deps libusb \
19540			|| HW_DREAMSOURCELAB_DSLOGIC=no sr_hw_info="no (missing: $sr_deps_missing)"
19541
19542else
19543  sr_hw_info='no (disabled)'
19544fi
19545	sr_driver_summary_append "dreamsourcelab-dslogic" "$sr_hw_info"
19546
19547	 if test "x$HW_DREAMSOURCELAB_DSLOGIC" = xyes; then
19548  HW_DREAMSOURCELAB_DSLOGIC_TRUE=
19549  HW_DREAMSOURCELAB_DSLOGIC_FALSE='#'
19550else
19551  HW_DREAMSOURCELAB_DSLOGIC_TRUE='#'
19552  HW_DREAMSOURCELAB_DSLOGIC_FALSE=
19553fi
19554
19555	if test -z "$HW_DREAMSOURCELAB_DSLOGIC_TRUE"; then :
19556
19557$as_echo "#define HAVE_HW_DREAMSOURCELAB_DSLOGIC 1" >>confdefs.h
19558
19559$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19560
19561fi
19562
19563
19564	# Check whether --enable-fluke-45 was given.
19565if test "${enable_fluke_45+set}" = set; then :
19566  enableval=$enable_fluke_45; HW_FLUKE_45=$enableval
19567else
19568  HW_FLUKE_45=$enable_all_drivers
19569fi
19570
19571
19572	if test "x$HW_FLUKE_45" = xyes; then :
19573  sr_hw_info=yes
19574else
19575  sr_hw_info='no (disabled)'
19576fi
19577	sr_driver_summary_append "fluke-45" "$sr_hw_info"
19578
19579	 if test "x$HW_FLUKE_45" = xyes; then
19580  HW_FLUKE_45_TRUE=
19581  HW_FLUKE_45_FALSE='#'
19582else
19583  HW_FLUKE_45_TRUE='#'
19584  HW_FLUKE_45_FALSE=
19585fi
19586
19587	if test -z "$HW_FLUKE_45_TRUE"; then :
19588
19589$as_echo "#define HAVE_HW_FLUKE_45 1" >>confdefs.h
19590
19591$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19592
19593fi
19594
19595
19596	# Check whether --enable-fluke-dmm was given.
19597if test "${enable_fluke_dmm+set}" = set; then :
19598  enableval=$enable_fluke_dmm; HW_FLUKE_DMM=$enableval
19599else
19600  HW_FLUKE_DMM=$enable_all_drivers
19601fi
19602
19603
19604	if test "x$HW_FLUKE_DMM" = xyes; then :
19605  sr_hw_info=yes
19606		sr_check_driver_deps serial_comm \
19607			|| HW_FLUKE_DMM=no sr_hw_info="no (missing: $sr_deps_missing)"
19608
19609else
19610  sr_hw_info='no (disabled)'
19611fi
19612	sr_driver_summary_append "fluke-dmm" "$sr_hw_info"
19613
19614	 if test "x$HW_FLUKE_DMM" = xyes; then
19615  HW_FLUKE_DMM_TRUE=
19616  HW_FLUKE_DMM_FALSE='#'
19617else
19618  HW_FLUKE_DMM_TRUE='#'
19619  HW_FLUKE_DMM_FALSE=
19620fi
19621
19622	if test -z "$HW_FLUKE_DMM_TRUE"; then :
19623
19624$as_echo "#define HAVE_HW_FLUKE_DMM 1" >>confdefs.h
19625
19626$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19627
19628fi
19629
19630
19631	# Check whether --enable-ftdi-la was given.
19632if test "${enable_ftdi_la+set}" = set; then :
19633  enableval=$enable_ftdi_la; HW_FTDI_LA=$enableval
19634else
19635  HW_FTDI_LA=$enable_all_drivers
19636fi
19637
19638
19639	if test "x$HW_FTDI_LA" = xyes; then :
19640  sr_hw_info=yes
19641		sr_check_driver_deps libusb libftdi \
19642			|| HW_FTDI_LA=no sr_hw_info="no (missing: $sr_deps_missing)"
19643
19644else
19645  sr_hw_info='no (disabled)'
19646fi
19647	sr_driver_summary_append "ftdi-la" "$sr_hw_info"
19648
19649	 if test "x$HW_FTDI_LA" = xyes; then
19650  HW_FTDI_LA_TRUE=
19651  HW_FTDI_LA_FALSE='#'
19652else
19653  HW_FTDI_LA_TRUE='#'
19654  HW_FTDI_LA_FALSE=
19655fi
19656
19657	if test -z "$HW_FTDI_LA_TRUE"; then :
19658
19659$as_echo "#define HAVE_HW_FTDI_LA 1" >>confdefs.h
19660
19661$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19662
19663fi
19664
19665
19666	# Check whether --enable-fx2lafw was given.
19667if test "${enable_fx2lafw+set}" = set; then :
19668  enableval=$enable_fx2lafw; HW_FX2LAFW=$enableval
19669else
19670  HW_FX2LAFW=$enable_all_drivers
19671fi
19672
19673
19674	if test "x$HW_FX2LAFW" = xyes; then :
19675  sr_hw_info=yes
19676		sr_check_driver_deps libusb \
19677			|| HW_FX2LAFW=no sr_hw_info="no (missing: $sr_deps_missing)"
19678
19679else
19680  sr_hw_info='no (disabled)'
19681fi
19682	sr_driver_summary_append "fx2lafw" "$sr_hw_info"
19683
19684	 if test "x$HW_FX2LAFW" = xyes; then
19685  HW_FX2LAFW_TRUE=
19686  HW_FX2LAFW_FALSE='#'
19687else
19688  HW_FX2LAFW_TRUE='#'
19689  HW_FX2LAFW_FALSE=
19690fi
19691
19692	if test -z "$HW_FX2LAFW_TRUE"; then :
19693
19694$as_echo "#define HAVE_HW_FX2LAFW 1" >>confdefs.h
19695
19696$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19697
19698fi
19699
19700
19701	# Check whether --enable-gmc-mh-1x-2x was given.
19702if test "${enable_gmc_mh_1x_2x+set}" = set; then :
19703  enableval=$enable_gmc_mh_1x_2x; HW_GMC_MH_1X_2X=$enableval
19704else
19705  HW_GMC_MH_1X_2X=$enable_all_drivers
19706fi
19707
19708
19709	if test "x$HW_GMC_MH_1X_2X" = xyes; then :
19710  sr_hw_info=yes
19711		sr_check_driver_deps serial_comm \
19712			|| HW_GMC_MH_1X_2X=no sr_hw_info="no (missing: $sr_deps_missing)"
19713
19714else
19715  sr_hw_info='no (disabled)'
19716fi
19717	sr_driver_summary_append "gmc-mh-1x-2x" "$sr_hw_info"
19718
19719	 if test "x$HW_GMC_MH_1X_2X" = xyes; then
19720  HW_GMC_MH_1X_2X_TRUE=
19721  HW_GMC_MH_1X_2X_FALSE='#'
19722else
19723  HW_GMC_MH_1X_2X_TRUE='#'
19724  HW_GMC_MH_1X_2X_FALSE=
19725fi
19726
19727	if test -z "$HW_GMC_MH_1X_2X_TRUE"; then :
19728
19729$as_echo "#define HAVE_HW_GMC_MH_1X_2X 1" >>confdefs.h
19730
19731$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19732
19733fi
19734
19735
19736	# Check whether --enable-gwinstek-gds-800 was given.
19737if test "${enable_gwinstek_gds_800+set}" = set; then :
19738  enableval=$enable_gwinstek_gds_800; HW_GWINSTEK_GDS_800=$enableval
19739else
19740  HW_GWINSTEK_GDS_800=$enable_all_drivers
19741fi
19742
19743
19744	if test "x$HW_GWINSTEK_GDS_800" = xyes; then :
19745  sr_hw_info=yes
19746		sr_check_driver_deps serial_comm \
19747			|| HW_GWINSTEK_GDS_800=no sr_hw_info="no (missing: $sr_deps_missing)"
19748
19749else
19750  sr_hw_info='no (disabled)'
19751fi
19752	sr_driver_summary_append "gwinstek-gds-800" "$sr_hw_info"
19753
19754	 if test "x$HW_GWINSTEK_GDS_800" = xyes; then
19755  HW_GWINSTEK_GDS_800_TRUE=
19756  HW_GWINSTEK_GDS_800_FALSE='#'
19757else
19758  HW_GWINSTEK_GDS_800_TRUE='#'
19759  HW_GWINSTEK_GDS_800_FALSE=
19760fi
19761
19762	if test -z "$HW_GWINSTEK_GDS_800_TRUE"; then :
19763
19764$as_echo "#define HAVE_HW_GWINSTEK_GDS_800 1" >>confdefs.h
19765
19766$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19767
19768fi
19769
19770
19771	# Check whether --enable-gwinstek-gpd was given.
19772if test "${enable_gwinstek_gpd+set}" = set; then :
19773  enableval=$enable_gwinstek_gpd; HW_GWINSTEK_GPD=$enableval
19774else
19775  HW_GWINSTEK_GPD=$enable_all_drivers
19776fi
19777
19778
19779	if test "x$HW_GWINSTEK_GPD" = xyes; then :
19780  sr_hw_info=yes
19781		sr_check_driver_deps serial_comm \
19782			|| HW_GWINSTEK_GPD=no sr_hw_info="no (missing: $sr_deps_missing)"
19783
19784else
19785  sr_hw_info='no (disabled)'
19786fi
19787	sr_driver_summary_append "gwinstek-gpd" "$sr_hw_info"
19788
19789	 if test "x$HW_GWINSTEK_GPD" = xyes; then
19790  HW_GWINSTEK_GPD_TRUE=
19791  HW_GWINSTEK_GPD_FALSE='#'
19792else
19793  HW_GWINSTEK_GPD_TRUE='#'
19794  HW_GWINSTEK_GPD_FALSE=
19795fi
19796
19797	if test -z "$HW_GWINSTEK_GPD_TRUE"; then :
19798
19799$as_echo "#define HAVE_HW_GWINSTEK_GPD 1" >>confdefs.h
19800
19801$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19802
19803fi
19804
19805
19806	# Check whether --enable-hameg-hmo was given.
19807if test "${enable_hameg_hmo+set}" = set; then :
19808  enableval=$enable_hameg_hmo; HW_HAMEG_HMO=$enableval
19809else
19810  HW_HAMEG_HMO=$enable_all_drivers
19811fi
19812
19813
19814	if test "x$HW_HAMEG_HMO" = xyes; then :
19815  sr_hw_info=yes
19816		sr_check_driver_deps serial_comm \
19817			|| HW_HAMEG_HMO=no sr_hw_info="no (missing: $sr_deps_missing)"
19818
19819else
19820  sr_hw_info='no (disabled)'
19821fi
19822	sr_driver_summary_append "hameg-hmo" "$sr_hw_info"
19823
19824	 if test "x$HW_HAMEG_HMO" = xyes; then
19825  HW_HAMEG_HMO_TRUE=
19826  HW_HAMEG_HMO_FALSE='#'
19827else
19828  HW_HAMEG_HMO_TRUE='#'
19829  HW_HAMEG_HMO_FALSE=
19830fi
19831
19832	if test -z "$HW_HAMEG_HMO_TRUE"; then :
19833
19834$as_echo "#define HAVE_HW_HAMEG_HMO 1" >>confdefs.h
19835
19836$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19837
19838fi
19839
19840
19841	# Check whether --enable-hantek-4032l was given.
19842if test "${enable_hantek_4032l+set}" = set; then :
19843  enableval=$enable_hantek_4032l; HW_HANTEK_4032L=$enableval
19844else
19845  HW_HANTEK_4032L=$enable_all_drivers
19846fi
19847
19848
19849	if test "x$HW_HANTEK_4032L" = xyes; then :
19850  sr_hw_info=yes
19851		sr_check_driver_deps libusb \
19852			|| HW_HANTEK_4032L=no sr_hw_info="no (missing: $sr_deps_missing)"
19853
19854else
19855  sr_hw_info='no (disabled)'
19856fi
19857	sr_driver_summary_append "hantek-4032l" "$sr_hw_info"
19858
19859	 if test "x$HW_HANTEK_4032L" = xyes; then
19860  HW_HANTEK_4032L_TRUE=
19861  HW_HANTEK_4032L_FALSE='#'
19862else
19863  HW_HANTEK_4032L_TRUE='#'
19864  HW_HANTEK_4032L_FALSE=
19865fi
19866
19867	if test -z "$HW_HANTEK_4032L_TRUE"; then :
19868
19869$as_echo "#define HAVE_HW_HANTEK_4032L 1" >>confdefs.h
19870
19871$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19872
19873fi
19874
19875
19876	# Check whether --enable-hantek-6xxx was given.
19877if test "${enable_hantek_6xxx+set}" = set; then :
19878  enableval=$enable_hantek_6xxx; HW_HANTEK_6XXX=$enableval
19879else
19880  HW_HANTEK_6XXX=$enable_all_drivers
19881fi
19882
19883
19884	if test "x$HW_HANTEK_6XXX" = xyes; then :
19885  sr_hw_info=yes
19886		sr_check_driver_deps libusb \
19887			|| HW_HANTEK_6XXX=no sr_hw_info="no (missing: $sr_deps_missing)"
19888
19889else
19890  sr_hw_info='no (disabled)'
19891fi
19892	sr_driver_summary_append "hantek-6xxx" "$sr_hw_info"
19893
19894	 if test "x$HW_HANTEK_6XXX" = xyes; then
19895  HW_HANTEK_6XXX_TRUE=
19896  HW_HANTEK_6XXX_FALSE='#'
19897else
19898  HW_HANTEK_6XXX_TRUE='#'
19899  HW_HANTEK_6XXX_FALSE=
19900fi
19901
19902	if test -z "$HW_HANTEK_6XXX_TRUE"; then :
19903
19904$as_echo "#define HAVE_HW_HANTEK_6XXX 1" >>confdefs.h
19905
19906$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19907
19908fi
19909
19910
19911	# Check whether --enable-hantek-dso was given.
19912if test "${enable_hantek_dso+set}" = set; then :
19913  enableval=$enable_hantek_dso; HW_HANTEK_DSO=$enableval
19914else
19915  HW_HANTEK_DSO=$enable_all_drivers
19916fi
19917
19918
19919	if test "x$HW_HANTEK_DSO" = xyes; then :
19920  sr_hw_info=yes
19921		sr_check_driver_deps libusb \
19922			|| HW_HANTEK_DSO=no sr_hw_info="no (missing: $sr_deps_missing)"
19923
19924else
19925  sr_hw_info='no (disabled)'
19926fi
19927	sr_driver_summary_append "hantek-dso" "$sr_hw_info"
19928
19929	 if test "x$HW_HANTEK_DSO" = xyes; then
19930  HW_HANTEK_DSO_TRUE=
19931  HW_HANTEK_DSO_FALSE='#'
19932else
19933  HW_HANTEK_DSO_TRUE='#'
19934  HW_HANTEK_DSO_FALSE=
19935fi
19936
19937	if test -z "$HW_HANTEK_DSO_TRUE"; then :
19938
19939$as_echo "#define HAVE_HW_HANTEK_DSO 1" >>confdefs.h
19940
19941$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19942
19943fi
19944
19945
19946	# Check whether --enable-hp-3457a was given.
19947if test "${enable_hp_3457a+set}" = set; then :
19948  enableval=$enable_hp_3457a; HW_HP_3457A=$enableval
19949else
19950  HW_HP_3457A=$enable_all_drivers
19951fi
19952
19953
19954	if test "x$HW_HP_3457A" = xyes; then :
19955  sr_hw_info=yes
19956else
19957  sr_hw_info='no (disabled)'
19958fi
19959	sr_driver_summary_append "hp-3457a" "$sr_hw_info"
19960
19961	 if test "x$HW_HP_3457A" = xyes; then
19962  HW_HP_3457A_TRUE=
19963  HW_HP_3457A_FALSE='#'
19964else
19965  HW_HP_3457A_TRUE='#'
19966  HW_HP_3457A_FALSE=
19967fi
19968
19969	if test -z "$HW_HP_3457A_TRUE"; then :
19970
19971$as_echo "#define HAVE_HW_HP_3457A 1" >>confdefs.h
19972
19973$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
19974
19975fi
19976
19977
19978	# Check whether --enable-hp-3478a was given.
19979if test "${enable_hp_3478a+set}" = set; then :
19980  enableval=$enable_hp_3478a; HW_HP_3478A=$enableval
19981else
19982  HW_HP_3478A=$enable_all_drivers
19983fi
19984
19985
19986	if test "x$HW_HP_3478A" = xyes; then :
19987  sr_hw_info=yes
19988		sr_check_driver_deps libgpib \
19989			|| HW_HP_3478A=no sr_hw_info="no (missing: $sr_deps_missing)"
19990
19991else
19992  sr_hw_info='no (disabled)'
19993fi
19994	sr_driver_summary_append "hp-3478a" "$sr_hw_info"
19995
19996	 if test "x$HW_HP_3478A" = xyes; then
19997  HW_HP_3478A_TRUE=
19998  HW_HP_3478A_FALSE='#'
19999else
20000  HW_HP_3478A_TRUE='#'
20001  HW_HP_3478A_FALSE=
20002fi
20003
20004	if test -z "$HW_HP_3478A_TRUE"; then :
20005
20006$as_echo "#define HAVE_HW_HP_3478A 1" >>confdefs.h
20007
20008$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20009
20010fi
20011
20012
20013	# Check whether --enable-hung-chang-dso-2100 was given.
20014if test "${enable_hung_chang_dso_2100+set}" = set; then :
20015  enableval=$enable_hung_chang_dso_2100; HW_HUNG_CHANG_DSO_2100=$enableval
20016else
20017  HW_HUNG_CHANG_DSO_2100=$enable_all_drivers
20018fi
20019
20020
20021	if test "x$HW_HUNG_CHANG_DSO_2100" = xyes; then :
20022  sr_hw_info=yes
20023		sr_check_driver_deps libieee1284 \
20024			|| HW_HUNG_CHANG_DSO_2100=no sr_hw_info="no (missing: $sr_deps_missing)"
20025
20026else
20027  sr_hw_info='no (disabled)'
20028fi
20029	sr_driver_summary_append "hung-chang-dso-2100" "$sr_hw_info"
20030
20031	 if test "x$HW_HUNG_CHANG_DSO_2100" = xyes; then
20032  HW_HUNG_CHANG_DSO_2100_TRUE=
20033  HW_HUNG_CHANG_DSO_2100_FALSE='#'
20034else
20035  HW_HUNG_CHANG_DSO_2100_TRUE='#'
20036  HW_HUNG_CHANG_DSO_2100_FALSE=
20037fi
20038
20039	if test -z "$HW_HUNG_CHANG_DSO_2100_TRUE"; then :
20040
20041$as_echo "#define HAVE_HW_HUNG_CHANG_DSO_2100 1" >>confdefs.h
20042
20043$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20044
20045fi
20046
20047
20048	# Check whether --enable-ikalogic-scanalogic2 was given.
20049if test "${enable_ikalogic_scanalogic2+set}" = set; then :
20050  enableval=$enable_ikalogic_scanalogic2; HW_IKALOGIC_SCANALOGIC2=$enableval
20051else
20052  HW_IKALOGIC_SCANALOGIC2=$enable_all_drivers
20053fi
20054
20055
20056	if test "x$HW_IKALOGIC_SCANALOGIC2" = xyes; then :
20057  sr_hw_info=yes
20058		sr_check_driver_deps libusb \
20059			|| HW_IKALOGIC_SCANALOGIC2=no sr_hw_info="no (missing: $sr_deps_missing)"
20060
20061else
20062  sr_hw_info='no (disabled)'
20063fi
20064	sr_driver_summary_append "ikalogic-scanalogic2" "$sr_hw_info"
20065
20066	 if test "x$HW_IKALOGIC_SCANALOGIC2" = xyes; then
20067  HW_IKALOGIC_SCANALOGIC2_TRUE=
20068  HW_IKALOGIC_SCANALOGIC2_FALSE='#'
20069else
20070  HW_IKALOGIC_SCANALOGIC2_TRUE='#'
20071  HW_IKALOGIC_SCANALOGIC2_FALSE=
20072fi
20073
20074	if test -z "$HW_IKALOGIC_SCANALOGIC2_TRUE"; then :
20075
20076$as_echo "#define HAVE_HW_IKALOGIC_SCANALOGIC2 1" >>confdefs.h
20077
20078$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20079
20080fi
20081
20082
20083	# Check whether --enable-ikalogic-scanaplus was given.
20084if test "${enable_ikalogic_scanaplus+set}" = set; then :
20085  enableval=$enable_ikalogic_scanaplus; HW_IKALOGIC_SCANAPLUS=$enableval
20086else
20087  HW_IKALOGIC_SCANAPLUS=$enable_all_drivers
20088fi
20089
20090
20091	if test "x$HW_IKALOGIC_SCANAPLUS" = xyes; then :
20092  sr_hw_info=yes
20093		sr_check_driver_deps libftdi \
20094			|| HW_IKALOGIC_SCANAPLUS=no sr_hw_info="no (missing: $sr_deps_missing)"
20095
20096else
20097  sr_hw_info='no (disabled)'
20098fi
20099	sr_driver_summary_append "ikalogic-scanaplus" "$sr_hw_info"
20100
20101	 if test "x$HW_IKALOGIC_SCANAPLUS" = xyes; then
20102  HW_IKALOGIC_SCANAPLUS_TRUE=
20103  HW_IKALOGIC_SCANAPLUS_FALSE='#'
20104else
20105  HW_IKALOGIC_SCANAPLUS_TRUE='#'
20106  HW_IKALOGIC_SCANAPLUS_FALSE=
20107fi
20108
20109	if test -z "$HW_IKALOGIC_SCANAPLUS_TRUE"; then :
20110
20111$as_echo "#define HAVE_HW_IKALOGIC_SCANAPLUS 1" >>confdefs.h
20112
20113$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20114
20115fi
20116
20117
20118	# Check whether --enable-ipdbg-la was given.
20119if test "${enable_ipdbg_la+set}" = set; then :
20120  enableval=$enable_ipdbg_la; HW_IPDBG_LA=$enableval
20121else
20122  HW_IPDBG_LA=$enable_all_drivers
20123fi
20124
20125
20126	if test "x$HW_IPDBG_LA" = xyes; then :
20127  sr_hw_info=yes
20128else
20129  sr_hw_info='no (disabled)'
20130fi
20131	sr_driver_summary_append "ipdbg-la" "$sr_hw_info"
20132
20133	 if test "x$HW_IPDBG_LA" = xyes; then
20134  HW_IPDBG_LA_TRUE=
20135  HW_IPDBG_LA_FALSE='#'
20136else
20137  HW_IPDBG_LA_TRUE='#'
20138  HW_IPDBG_LA_FALSE=
20139fi
20140
20141	if test -z "$HW_IPDBG_LA_TRUE"; then :
20142
20143$as_echo "#define HAVE_HW_IPDBG_LA 1" >>confdefs.h
20144
20145$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20146
20147fi
20148
20149
20150	# Check whether --enable-kecheng-kc-330b was given.
20151if test "${enable_kecheng_kc_330b+set}" = set; then :
20152  enableval=$enable_kecheng_kc_330b; HW_KECHENG_KC_330B=$enableval
20153else
20154  HW_KECHENG_KC_330B=$enable_all_drivers
20155fi
20156
20157
20158	if test "x$HW_KECHENG_KC_330B" = xyes; then :
20159  sr_hw_info=yes
20160		sr_check_driver_deps libusb \
20161			|| HW_KECHENG_KC_330B=no sr_hw_info="no (missing: $sr_deps_missing)"
20162
20163else
20164  sr_hw_info='no (disabled)'
20165fi
20166	sr_driver_summary_append "kecheng-kc-330b" "$sr_hw_info"
20167
20168	 if test "x$HW_KECHENG_KC_330B" = xyes; then
20169  HW_KECHENG_KC_330B_TRUE=
20170  HW_KECHENG_KC_330B_FALSE='#'
20171else
20172  HW_KECHENG_KC_330B_TRUE='#'
20173  HW_KECHENG_KC_330B_FALSE=
20174fi
20175
20176	if test -z "$HW_KECHENG_KC_330B_TRUE"; then :
20177
20178$as_echo "#define HAVE_HW_KECHENG_KC_330B 1" >>confdefs.h
20179
20180$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20181
20182fi
20183
20184
20185	# Check whether --enable-kern-scale was given.
20186if test "${enable_kern_scale+set}" = set; then :
20187  enableval=$enable_kern_scale; HW_KERN_SCALE=$enableval
20188else
20189  HW_KERN_SCALE=$enable_all_drivers
20190fi
20191
20192
20193	if test "x$HW_KERN_SCALE" = xyes; then :
20194  sr_hw_info=yes
20195		sr_check_driver_deps serial_comm \
20196			|| HW_KERN_SCALE=no sr_hw_info="no (missing: $sr_deps_missing)"
20197
20198else
20199  sr_hw_info='no (disabled)'
20200fi
20201	sr_driver_summary_append "kern-scale" "$sr_hw_info"
20202
20203	 if test "x$HW_KERN_SCALE" = xyes; then
20204  HW_KERN_SCALE_TRUE=
20205  HW_KERN_SCALE_FALSE='#'
20206else
20207  HW_KERN_SCALE_TRUE='#'
20208  HW_KERN_SCALE_FALSE=
20209fi
20210
20211	if test -z "$HW_KERN_SCALE_TRUE"; then :
20212
20213$as_echo "#define HAVE_HW_KERN_SCALE 1" >>confdefs.h
20214
20215$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20216
20217fi
20218
20219
20220	# Check whether --enable-korad-kaxxxxp was given.
20221if test "${enable_korad_kaxxxxp+set}" = set; then :
20222  enableval=$enable_korad_kaxxxxp; HW_KORAD_KAXXXXP=$enableval
20223else
20224  HW_KORAD_KAXXXXP=$enable_all_drivers
20225fi
20226
20227
20228	if test "x$HW_KORAD_KAXXXXP" = xyes; then :
20229  sr_hw_info=yes
20230		sr_check_driver_deps serial_comm \
20231			|| HW_KORAD_KAXXXXP=no sr_hw_info="no (missing: $sr_deps_missing)"
20232
20233else
20234  sr_hw_info='no (disabled)'
20235fi
20236	sr_driver_summary_append "korad-kaxxxxp" "$sr_hw_info"
20237
20238	 if test "x$HW_KORAD_KAXXXXP" = xyes; then
20239  HW_KORAD_KAXXXXP_TRUE=
20240  HW_KORAD_KAXXXXP_FALSE='#'
20241else
20242  HW_KORAD_KAXXXXP_TRUE='#'
20243  HW_KORAD_KAXXXXP_FALSE=
20244fi
20245
20246	if test -z "$HW_KORAD_KAXXXXP_TRUE"; then :
20247
20248$as_echo "#define HAVE_HW_KORAD_KAXXXXP 1" >>confdefs.h
20249
20250$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20251
20252fi
20253
20254
20255	# Check whether --enable-lascar-el-usb was given.
20256if test "${enable_lascar_el_usb+set}" = set; then :
20257  enableval=$enable_lascar_el_usb; HW_LASCAR_EL_USB=$enableval
20258else
20259  HW_LASCAR_EL_USB=$enable_all_drivers
20260fi
20261
20262
20263	if test "x$HW_LASCAR_EL_USB" = xyes; then :
20264  sr_hw_info=yes
20265		sr_check_driver_deps libusb \
20266			|| HW_LASCAR_EL_USB=no sr_hw_info="no (missing: $sr_deps_missing)"
20267
20268else
20269  sr_hw_info='no (disabled)'
20270fi
20271	sr_driver_summary_append "lascar-el-usb" "$sr_hw_info"
20272
20273	 if test "x$HW_LASCAR_EL_USB" = xyes; then
20274  HW_LASCAR_EL_USB_TRUE=
20275  HW_LASCAR_EL_USB_FALSE='#'
20276else
20277  HW_LASCAR_EL_USB_TRUE='#'
20278  HW_LASCAR_EL_USB_FALSE=
20279fi
20280
20281	if test -z "$HW_LASCAR_EL_USB_TRUE"; then :
20282
20283$as_echo "#define HAVE_HW_LASCAR_EL_USB 1" >>confdefs.h
20284
20285$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20286
20287fi
20288
20289
20290	# Check whether --enable-lecroy-logicstudio was given.
20291if test "${enable_lecroy_logicstudio+set}" = set; then :
20292  enableval=$enable_lecroy_logicstudio; HW_LECROY_LOGICSTUDIO=$enableval
20293else
20294  HW_LECROY_LOGICSTUDIO=$enable_all_drivers
20295fi
20296
20297
20298	if test "x$HW_LECROY_LOGICSTUDIO" = xyes; then :
20299  sr_hw_info=yes
20300		sr_check_driver_deps libusb \
20301			|| HW_LECROY_LOGICSTUDIO=no sr_hw_info="no (missing: $sr_deps_missing)"
20302
20303else
20304  sr_hw_info='no (disabled)'
20305fi
20306	sr_driver_summary_append "lecroy-logicstudio" "$sr_hw_info"
20307
20308	 if test "x$HW_LECROY_LOGICSTUDIO" = xyes; then
20309  HW_LECROY_LOGICSTUDIO_TRUE=
20310  HW_LECROY_LOGICSTUDIO_FALSE='#'
20311else
20312  HW_LECROY_LOGICSTUDIO_TRUE='#'
20313  HW_LECROY_LOGICSTUDIO_FALSE=
20314fi
20315
20316	if test -z "$HW_LECROY_LOGICSTUDIO_TRUE"; then :
20317
20318$as_echo "#define HAVE_HW_LECROY_LOGICSTUDIO 1" >>confdefs.h
20319
20320$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20321
20322fi
20323
20324
20325	# Check whether --enable-lecroy-xstream was given.
20326if test "${enable_lecroy_xstream+set}" = set; then :
20327  enableval=$enable_lecroy_xstream; HW_LECROY_XSTREAM=$enableval
20328else
20329  HW_LECROY_XSTREAM=$enable_all_drivers
20330fi
20331
20332
20333	if test "x$HW_LECROY_XSTREAM" = xyes; then :
20334  sr_hw_info=yes
20335else
20336  sr_hw_info='no (disabled)'
20337fi
20338	sr_driver_summary_append "lecroy-xstream" "$sr_hw_info"
20339
20340	 if test "x$HW_LECROY_XSTREAM" = xyes; then
20341  HW_LECROY_XSTREAM_TRUE=
20342  HW_LECROY_XSTREAM_FALSE='#'
20343else
20344  HW_LECROY_XSTREAM_TRUE='#'
20345  HW_LECROY_XSTREAM_FALSE=
20346fi
20347
20348	if test -z "$HW_LECROY_XSTREAM_TRUE"; then :
20349
20350$as_echo "#define HAVE_HW_LECROY_XSTREAM 1" >>confdefs.h
20351
20352$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20353
20354fi
20355
20356
20357	# Check whether --enable-manson-hcs-3xxx was given.
20358if test "${enable_manson_hcs_3xxx+set}" = set; then :
20359  enableval=$enable_manson_hcs_3xxx; HW_MANSON_HCS_3XXX=$enableval
20360else
20361  HW_MANSON_HCS_3XXX=$enable_all_drivers
20362fi
20363
20364
20365	if test "x$HW_MANSON_HCS_3XXX" = xyes; then :
20366  sr_hw_info=yes
20367		sr_check_driver_deps serial_comm \
20368			|| HW_MANSON_HCS_3XXX=no sr_hw_info="no (missing: $sr_deps_missing)"
20369
20370else
20371  sr_hw_info='no (disabled)'
20372fi
20373	sr_driver_summary_append "manson-hcs-3xxx" "$sr_hw_info"
20374
20375	 if test "x$HW_MANSON_HCS_3XXX" = xyes; then
20376  HW_MANSON_HCS_3XXX_TRUE=
20377  HW_MANSON_HCS_3XXX_FALSE='#'
20378else
20379  HW_MANSON_HCS_3XXX_TRUE='#'
20380  HW_MANSON_HCS_3XXX_FALSE=
20381fi
20382
20383	if test -z "$HW_MANSON_HCS_3XXX_TRUE"; then :
20384
20385$as_echo "#define HAVE_HW_MANSON_HCS_3XXX 1" >>confdefs.h
20386
20387$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20388
20389fi
20390
20391
20392	# Check whether --enable-mastech-ms6514 was given.
20393if test "${enable_mastech_ms6514+set}" = set; then :
20394  enableval=$enable_mastech_ms6514; HW_MASTECH_MS6514=$enableval
20395else
20396  HW_MASTECH_MS6514=$enable_all_drivers
20397fi
20398
20399
20400	if test "x$HW_MASTECH_MS6514" = xyes; then :
20401  sr_hw_info=yes
20402		sr_check_driver_deps serial_comm \
20403			|| HW_MASTECH_MS6514=no sr_hw_info="no (missing: $sr_deps_missing)"
20404
20405else
20406  sr_hw_info='no (disabled)'
20407fi
20408	sr_driver_summary_append "mastech-ms6514" "$sr_hw_info"
20409
20410	 if test "x$HW_MASTECH_MS6514" = xyes; then
20411  HW_MASTECH_MS6514_TRUE=
20412  HW_MASTECH_MS6514_FALSE='#'
20413else
20414  HW_MASTECH_MS6514_TRUE='#'
20415  HW_MASTECH_MS6514_FALSE=
20416fi
20417
20418	if test -z "$HW_MASTECH_MS6514_TRUE"; then :
20419
20420$as_echo "#define HAVE_HW_MASTECH_MS6514 1" >>confdefs.h
20421
20422$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20423
20424fi
20425
20426
20427	# Check whether --enable-maynuo-m97 was given.
20428if test "${enable_maynuo_m97+set}" = set; then :
20429  enableval=$enable_maynuo_m97; HW_MAYNUO_M97=$enableval
20430else
20431  HW_MAYNUO_M97=$enable_all_drivers
20432fi
20433
20434
20435	if test "x$HW_MAYNUO_M97" = xyes; then :
20436  sr_hw_info=yes
20437else
20438  sr_hw_info='no (disabled)'
20439fi
20440	sr_driver_summary_append "maynuo-m97" "$sr_hw_info"
20441
20442	 if test "x$HW_MAYNUO_M97" = xyes; then
20443  HW_MAYNUO_M97_TRUE=
20444  HW_MAYNUO_M97_FALSE='#'
20445else
20446  HW_MAYNUO_M97_TRUE='#'
20447  HW_MAYNUO_M97_FALSE=
20448fi
20449
20450	if test -z "$HW_MAYNUO_M97_TRUE"; then :
20451
20452$as_echo "#define HAVE_HW_MAYNUO_M97 1" >>confdefs.h
20453
20454$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20455
20456fi
20457
20458
20459	# Check whether --enable-mic-985xx was given.
20460if test "${enable_mic_985xx+set}" = set; then :
20461  enableval=$enable_mic_985xx; HW_MIC_985XX=$enableval
20462else
20463  HW_MIC_985XX=$enable_all_drivers
20464fi
20465
20466
20467	if test "x$HW_MIC_985XX" = xyes; then :
20468  sr_hw_info=yes
20469		sr_check_driver_deps serial_comm \
20470			|| HW_MIC_985XX=no sr_hw_info="no (missing: $sr_deps_missing)"
20471
20472else
20473  sr_hw_info='no (disabled)'
20474fi
20475	sr_driver_summary_append "mic-985xx" "$sr_hw_info"
20476
20477	 if test "x$HW_MIC_985XX" = xyes; then
20478  HW_MIC_985XX_TRUE=
20479  HW_MIC_985XX_FALSE='#'
20480else
20481  HW_MIC_985XX_TRUE='#'
20482  HW_MIC_985XX_FALSE=
20483fi
20484
20485	if test -z "$HW_MIC_985XX_TRUE"; then :
20486
20487$as_echo "#define HAVE_HW_MIC_985XX 1" >>confdefs.h
20488
20489$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20490
20491fi
20492
20493
20494	# Check whether --enable-microchip-pickit2 was given.
20495if test "${enable_microchip_pickit2+set}" = set; then :
20496  enableval=$enable_microchip_pickit2; HW_MICROCHIP_PICKIT2=$enableval
20497else
20498  HW_MICROCHIP_PICKIT2=$enable_all_drivers
20499fi
20500
20501
20502	if test "x$HW_MICROCHIP_PICKIT2" = xyes; then :
20503  sr_hw_info=yes
20504		sr_check_driver_deps libusb \
20505			|| HW_MICROCHIP_PICKIT2=no sr_hw_info="no (missing: $sr_deps_missing)"
20506
20507else
20508  sr_hw_info='no (disabled)'
20509fi
20510	sr_driver_summary_append "microchip-pickit2" "$sr_hw_info"
20511
20512	 if test "x$HW_MICROCHIP_PICKIT2" = xyes; then
20513  HW_MICROCHIP_PICKIT2_TRUE=
20514  HW_MICROCHIP_PICKIT2_FALSE='#'
20515else
20516  HW_MICROCHIP_PICKIT2_TRUE='#'
20517  HW_MICROCHIP_PICKIT2_FALSE=
20518fi
20519
20520	if test -z "$HW_MICROCHIP_PICKIT2_TRUE"; then :
20521
20522$as_echo "#define HAVE_HW_MICROCHIP_PICKIT2 1" >>confdefs.h
20523
20524$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20525
20526fi
20527
20528
20529	# Check whether --enable-mooshimeter-dmm was given.
20530if test "${enable_mooshimeter_dmm+set}" = set; then :
20531  enableval=$enable_mooshimeter_dmm; HW_MOOSHIMETER_DMM=$enableval
20532else
20533  HW_MOOSHIMETER_DMM=$enable_all_drivers
20534fi
20535
20536
20537	if test "x$HW_MOOSHIMETER_DMM" = xyes; then :
20538  sr_hw_info=yes
20539		sr_check_driver_deps bluetooth_comm libgio \
20540			|| HW_MOOSHIMETER_DMM=no sr_hw_info="no (missing: $sr_deps_missing)"
20541
20542else
20543  sr_hw_info='no (disabled)'
20544fi
20545	sr_driver_summary_append "mooshimeter-dmm" "$sr_hw_info"
20546
20547	 if test "x$HW_MOOSHIMETER_DMM" = xyes; then
20548  HW_MOOSHIMETER_DMM_TRUE=
20549  HW_MOOSHIMETER_DMM_FALSE='#'
20550else
20551  HW_MOOSHIMETER_DMM_TRUE='#'
20552  HW_MOOSHIMETER_DMM_FALSE=
20553fi
20554
20555	if test -z "$HW_MOOSHIMETER_DMM_TRUE"; then :
20556
20557$as_echo "#define HAVE_HW_MOOSHIMETER_DMM 1" >>confdefs.h
20558
20559$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20560
20561fi
20562
20563
20564	# Check whether --enable-motech-lps-30x was given.
20565if test "${enable_motech_lps_30x+set}" = set; then :
20566  enableval=$enable_motech_lps_30x; HW_MOTECH_LPS_30X=$enableval
20567else
20568  HW_MOTECH_LPS_30X=$enable_all_drivers
20569fi
20570
20571
20572	if test "x$HW_MOTECH_LPS_30X" = xyes; then :
20573  sr_hw_info=yes
20574		sr_check_driver_deps serial_comm \
20575			|| HW_MOTECH_LPS_30X=no sr_hw_info="no (missing: $sr_deps_missing)"
20576
20577else
20578  sr_hw_info='no (disabled)'
20579fi
20580	sr_driver_summary_append "motech-lps-30x" "$sr_hw_info"
20581
20582	 if test "x$HW_MOTECH_LPS_30X" = xyes; then
20583  HW_MOTECH_LPS_30X_TRUE=
20584  HW_MOTECH_LPS_30X_FALSE='#'
20585else
20586  HW_MOTECH_LPS_30X_TRUE='#'
20587  HW_MOTECH_LPS_30X_FALSE=
20588fi
20589
20590	if test -z "$HW_MOTECH_LPS_30X_TRUE"; then :
20591
20592$as_echo "#define HAVE_HW_MOTECH_LPS_30X 1" >>confdefs.h
20593
20594$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20595
20596fi
20597
20598
20599	# Check whether --enable-norma-dmm was given.
20600if test "${enable_norma_dmm+set}" = set; then :
20601  enableval=$enable_norma_dmm; HW_NORMA_DMM=$enableval
20602else
20603  HW_NORMA_DMM=$enable_all_drivers
20604fi
20605
20606
20607	if test "x$HW_NORMA_DMM" = xyes; then :
20608  sr_hw_info=yes
20609		sr_check_driver_deps serial_comm \
20610			|| HW_NORMA_DMM=no sr_hw_info="no (missing: $sr_deps_missing)"
20611
20612else
20613  sr_hw_info='no (disabled)'
20614fi
20615	sr_driver_summary_append "norma-dmm" "$sr_hw_info"
20616
20617	 if test "x$HW_NORMA_DMM" = xyes; then
20618  HW_NORMA_DMM_TRUE=
20619  HW_NORMA_DMM_FALSE='#'
20620else
20621  HW_NORMA_DMM_TRUE='#'
20622  HW_NORMA_DMM_FALSE=
20623fi
20624
20625	if test -z "$HW_NORMA_DMM_TRUE"; then :
20626
20627$as_echo "#define HAVE_HW_NORMA_DMM 1" >>confdefs.h
20628
20629$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20630
20631fi
20632
20633
20634	# Check whether --enable-openbench-logic-sniffer was given.
20635if test "${enable_openbench_logic_sniffer+set}" = set; then :
20636  enableval=$enable_openbench_logic_sniffer; HW_OPENBENCH_LOGIC_SNIFFER=$enableval
20637else
20638  HW_OPENBENCH_LOGIC_SNIFFER=$enable_all_drivers
20639fi
20640
20641
20642	if test "x$HW_OPENBENCH_LOGIC_SNIFFER" = xyes; then :
20643  sr_hw_info=yes
20644		sr_check_driver_deps serial_comm \
20645			|| HW_OPENBENCH_LOGIC_SNIFFER=no sr_hw_info="no (missing: $sr_deps_missing)"
20646
20647else
20648  sr_hw_info='no (disabled)'
20649fi
20650	sr_driver_summary_append "openbench-logic-sniffer" "$sr_hw_info"
20651
20652	 if test "x$HW_OPENBENCH_LOGIC_SNIFFER" = xyes; then
20653  HW_OPENBENCH_LOGIC_SNIFFER_TRUE=
20654  HW_OPENBENCH_LOGIC_SNIFFER_FALSE='#'
20655else
20656  HW_OPENBENCH_LOGIC_SNIFFER_TRUE='#'
20657  HW_OPENBENCH_LOGIC_SNIFFER_FALSE=
20658fi
20659
20660	if test -z "$HW_OPENBENCH_LOGIC_SNIFFER_TRUE"; then :
20661
20662$as_echo "#define HAVE_HW_OPENBENCH_LOGIC_SNIFFER 1" >>confdefs.h
20663
20664$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20665
20666fi
20667
20668
20669	# Check whether --enable-pce-322a was given.
20670if test "${enable_pce_322a+set}" = set; then :
20671  enableval=$enable_pce_322a; HW_PCE_322A=$enableval
20672else
20673  HW_PCE_322A=$enable_all_drivers
20674fi
20675
20676
20677	if test "x$HW_PCE_322A" = xyes; then :
20678  sr_hw_info=yes
20679		sr_check_driver_deps serial_comm \
20680			|| HW_PCE_322A=no sr_hw_info="no (missing: $sr_deps_missing)"
20681
20682else
20683  sr_hw_info='no (disabled)'
20684fi
20685	sr_driver_summary_append "pce-322a" "$sr_hw_info"
20686
20687	 if test "x$HW_PCE_322A" = xyes; then
20688  HW_PCE_322A_TRUE=
20689  HW_PCE_322A_FALSE='#'
20690else
20691  HW_PCE_322A_TRUE='#'
20692  HW_PCE_322A_FALSE=
20693fi
20694
20695	if test -z "$HW_PCE_322A_TRUE"; then :
20696
20697$as_echo "#define HAVE_HW_PCE_322A 1" >>confdefs.h
20698
20699$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20700
20701fi
20702
20703
20704	# Check whether --enable-pipistrello-ols was given.
20705if test "${enable_pipistrello_ols+set}" = set; then :
20706  enableval=$enable_pipistrello_ols; HW_PIPISTRELLO_OLS=$enableval
20707else
20708  HW_PIPISTRELLO_OLS=$enable_all_drivers
20709fi
20710
20711
20712	if test "x$HW_PIPISTRELLO_OLS" = xyes; then :
20713  sr_hw_info=yes
20714		sr_check_driver_deps libftdi \
20715			|| HW_PIPISTRELLO_OLS=no sr_hw_info="no (missing: $sr_deps_missing)"
20716
20717else
20718  sr_hw_info='no (disabled)'
20719fi
20720	sr_driver_summary_append "pipistrello-ols" "$sr_hw_info"
20721
20722	 if test "x$HW_PIPISTRELLO_OLS" = xyes; then
20723  HW_PIPISTRELLO_OLS_TRUE=
20724  HW_PIPISTRELLO_OLS_FALSE='#'
20725else
20726  HW_PIPISTRELLO_OLS_TRUE='#'
20727  HW_PIPISTRELLO_OLS_FALSE=
20728fi
20729
20730	if test -z "$HW_PIPISTRELLO_OLS_TRUE"; then :
20731
20732$as_echo "#define HAVE_HW_PIPISTRELLO_OLS 1" >>confdefs.h
20733
20734$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20735
20736fi
20737
20738
20739	# Check whether --enable-rdtech-dps was given.
20740if test "${enable_rdtech_dps+set}" = set; then :
20741  enableval=$enable_rdtech_dps; HW_RDTECH_DPS=$enableval
20742else
20743  HW_RDTECH_DPS=$enable_all_drivers
20744fi
20745
20746
20747	if test "x$HW_RDTECH_DPS" = xyes; then :
20748  sr_hw_info=yes
20749		sr_check_driver_deps serial_comm \
20750			|| HW_RDTECH_DPS=no sr_hw_info="no (missing: $sr_deps_missing)"
20751
20752else
20753  sr_hw_info='no (disabled)'
20754fi
20755	sr_driver_summary_append "rdtech-dps" "$sr_hw_info"
20756
20757	 if test "x$HW_RDTECH_DPS" = xyes; then
20758  HW_RDTECH_DPS_TRUE=
20759  HW_RDTECH_DPS_FALSE='#'
20760else
20761  HW_RDTECH_DPS_TRUE='#'
20762  HW_RDTECH_DPS_FALSE=
20763fi
20764
20765	if test -z "$HW_RDTECH_DPS_TRUE"; then :
20766
20767$as_echo "#define HAVE_HW_RDTECH_DPS 1" >>confdefs.h
20768
20769$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20770
20771fi
20772
20773
20774	# Check whether --enable-rigol-ds was given.
20775if test "${enable_rigol_ds+set}" = set; then :
20776  enableval=$enable_rigol_ds; HW_RIGOL_DS=$enableval
20777else
20778  HW_RIGOL_DS=$enable_all_drivers
20779fi
20780
20781
20782	if test "x$HW_RIGOL_DS" = xyes; then :
20783  sr_hw_info=yes
20784else
20785  sr_hw_info='no (disabled)'
20786fi
20787	sr_driver_summary_append "rigol-ds" "$sr_hw_info"
20788
20789	 if test "x$HW_RIGOL_DS" = xyes; then
20790  HW_RIGOL_DS_TRUE=
20791  HW_RIGOL_DS_FALSE='#'
20792else
20793  HW_RIGOL_DS_TRUE='#'
20794  HW_RIGOL_DS_FALSE=
20795fi
20796
20797	if test -z "$HW_RIGOL_DS_TRUE"; then :
20798
20799$as_echo "#define HAVE_HW_RIGOL_DS 1" >>confdefs.h
20800
20801$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20802
20803fi
20804
20805
20806	# Check whether --enable-rohde-schwarz-sme-0x was given.
20807if test "${enable_rohde_schwarz_sme_0x+set}" = set; then :
20808  enableval=$enable_rohde_schwarz_sme_0x; HW_ROHDE_SCHWARZ_SME_0X=$enableval
20809else
20810  HW_ROHDE_SCHWARZ_SME_0X=$enable_all_drivers
20811fi
20812
20813
20814	if test "x$HW_ROHDE_SCHWARZ_SME_0X" = xyes; then :
20815  sr_hw_info=yes
20816		sr_check_driver_deps serial_comm \
20817			|| HW_ROHDE_SCHWARZ_SME_0X=no sr_hw_info="no (missing: $sr_deps_missing)"
20818
20819else
20820  sr_hw_info='no (disabled)'
20821fi
20822	sr_driver_summary_append "rohde-schwarz-sme-0x" "$sr_hw_info"
20823
20824	 if test "x$HW_ROHDE_SCHWARZ_SME_0X" = xyes; then
20825  HW_ROHDE_SCHWARZ_SME_0X_TRUE=
20826  HW_ROHDE_SCHWARZ_SME_0X_FALSE='#'
20827else
20828  HW_ROHDE_SCHWARZ_SME_0X_TRUE='#'
20829  HW_ROHDE_SCHWARZ_SME_0X_FALSE=
20830fi
20831
20832	if test -z "$HW_ROHDE_SCHWARZ_SME_0X_TRUE"; then :
20833
20834$as_echo "#define HAVE_HW_ROHDE_SCHWARZ_SME_0X 1" >>confdefs.h
20835
20836$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20837
20838fi
20839
20840
20841	# Check whether --enable-saleae-logic16 was given.
20842if test "${enable_saleae_logic16+set}" = set; then :
20843  enableval=$enable_saleae_logic16; HW_SALEAE_LOGIC16=$enableval
20844else
20845  HW_SALEAE_LOGIC16=$enable_all_drivers
20846fi
20847
20848
20849	if test "x$HW_SALEAE_LOGIC16" = xyes; then :
20850  sr_hw_info=yes
20851		sr_check_driver_deps libusb \
20852			|| HW_SALEAE_LOGIC16=no sr_hw_info="no (missing: $sr_deps_missing)"
20853
20854else
20855  sr_hw_info='no (disabled)'
20856fi
20857	sr_driver_summary_append "saleae-logic16" "$sr_hw_info"
20858
20859	 if test "x$HW_SALEAE_LOGIC16" = xyes; then
20860  HW_SALEAE_LOGIC16_TRUE=
20861  HW_SALEAE_LOGIC16_FALSE='#'
20862else
20863  HW_SALEAE_LOGIC16_TRUE='#'
20864  HW_SALEAE_LOGIC16_FALSE=
20865fi
20866
20867	if test -z "$HW_SALEAE_LOGIC16_TRUE"; then :
20868
20869$as_echo "#define HAVE_HW_SALEAE_LOGIC16 1" >>confdefs.h
20870
20871$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20872
20873fi
20874
20875
20876	# Check whether --enable-saleae-logic-pro was given.
20877if test "${enable_saleae_logic_pro+set}" = set; then :
20878  enableval=$enable_saleae_logic_pro; HW_SALEAE_LOGIC_PRO=$enableval
20879else
20880  HW_SALEAE_LOGIC_PRO=$enable_all_drivers
20881fi
20882
20883
20884	if test "x$HW_SALEAE_LOGIC_PRO" = xyes; then :
20885  sr_hw_info=yes
20886		sr_check_driver_deps libusb \
20887			|| HW_SALEAE_LOGIC_PRO=no sr_hw_info="no (missing: $sr_deps_missing)"
20888
20889else
20890  sr_hw_info='no (disabled)'
20891fi
20892	sr_driver_summary_append "saleae-logic-pro" "$sr_hw_info"
20893
20894	 if test "x$HW_SALEAE_LOGIC_PRO" = xyes; then
20895  HW_SALEAE_LOGIC_PRO_TRUE=
20896  HW_SALEAE_LOGIC_PRO_FALSE='#'
20897else
20898  HW_SALEAE_LOGIC_PRO_TRUE='#'
20899  HW_SALEAE_LOGIC_PRO_FALSE=
20900fi
20901
20902	if test -z "$HW_SALEAE_LOGIC_PRO_TRUE"; then :
20903
20904$as_echo "#define HAVE_HW_SALEAE_LOGIC_PRO 1" >>confdefs.h
20905
20906$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20907
20908fi
20909
20910
20911	# Check whether --enable-scpi-dmm was given.
20912if test "${enable_scpi_dmm+set}" = set; then :
20913  enableval=$enable_scpi_dmm; HW_SCPI_DMM=$enableval
20914else
20915  HW_SCPI_DMM=$enable_all_drivers
20916fi
20917
20918
20919	if test "x$HW_SCPI_DMM" = xyes; then :
20920  sr_hw_info=yes
20921else
20922  sr_hw_info='no (disabled)'
20923fi
20924	sr_driver_summary_append "scpi-dmm" "$sr_hw_info"
20925
20926	 if test "x$HW_SCPI_DMM" = xyes; then
20927  HW_SCPI_DMM_TRUE=
20928  HW_SCPI_DMM_FALSE='#'
20929else
20930  HW_SCPI_DMM_TRUE='#'
20931  HW_SCPI_DMM_FALSE=
20932fi
20933
20934	if test -z "$HW_SCPI_DMM_TRUE"; then :
20935
20936$as_echo "#define HAVE_HW_SCPI_DMM 1" >>confdefs.h
20937
20938$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20939
20940fi
20941
20942
20943	# Check whether --enable-scpi-pps was given.
20944if test "${enable_scpi_pps+set}" = set; then :
20945  enableval=$enable_scpi_pps; HW_SCPI_PPS=$enableval
20946else
20947  HW_SCPI_PPS=$enable_all_drivers
20948fi
20949
20950
20951	if test "x$HW_SCPI_PPS" = xyes; then :
20952  sr_hw_info=yes
20953else
20954  sr_hw_info='no (disabled)'
20955fi
20956	sr_driver_summary_append "scpi-pps" "$sr_hw_info"
20957
20958	 if test "x$HW_SCPI_PPS" = xyes; then
20959  HW_SCPI_PPS_TRUE=
20960  HW_SCPI_PPS_FALSE='#'
20961else
20962  HW_SCPI_PPS_TRUE='#'
20963  HW_SCPI_PPS_FALSE=
20964fi
20965
20966	if test -z "$HW_SCPI_PPS_TRUE"; then :
20967
20968$as_echo "#define HAVE_HW_SCPI_PPS 1" >>confdefs.h
20969
20970$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
20971
20972fi
20973
20974
20975	# Check whether --enable-serial-dmm was given.
20976if test "${enable_serial_dmm+set}" = set; then :
20977  enableval=$enable_serial_dmm; HW_SERIAL_DMM=$enableval
20978else
20979  HW_SERIAL_DMM=$enable_all_drivers
20980fi
20981
20982
20983	if test "x$HW_SERIAL_DMM" = xyes; then :
20984  sr_hw_info=yes
20985		sr_check_driver_deps serial_comm \
20986			|| HW_SERIAL_DMM=no sr_hw_info="no (missing: $sr_deps_missing)"
20987
20988else
20989  sr_hw_info='no (disabled)'
20990fi
20991	sr_driver_summary_append "serial-dmm" "$sr_hw_info"
20992
20993	 if test "x$HW_SERIAL_DMM" = xyes; then
20994  HW_SERIAL_DMM_TRUE=
20995  HW_SERIAL_DMM_FALSE='#'
20996else
20997  HW_SERIAL_DMM_TRUE='#'
20998  HW_SERIAL_DMM_FALSE=
20999fi
21000
21001	if test -z "$HW_SERIAL_DMM_TRUE"; then :
21002
21003$as_echo "#define HAVE_HW_SERIAL_DMM 1" >>confdefs.h
21004
21005$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21006
21007fi
21008
21009
21010	# Check whether --enable-serial-lcr was given.
21011if test "${enable_serial_lcr+set}" = set; then :
21012  enableval=$enable_serial_lcr; HW_SERIAL_LCR=$enableval
21013else
21014  HW_SERIAL_LCR=$enable_all_drivers
21015fi
21016
21017
21018	if test "x$HW_SERIAL_LCR" = xyes; then :
21019  sr_hw_info=yes
21020		sr_check_driver_deps serial_comm \
21021			|| HW_SERIAL_LCR=no sr_hw_info="no (missing: $sr_deps_missing)"
21022
21023else
21024  sr_hw_info='no (disabled)'
21025fi
21026	sr_driver_summary_append "serial-lcr" "$sr_hw_info"
21027
21028	 if test "x$HW_SERIAL_LCR" = xyes; then
21029  HW_SERIAL_LCR_TRUE=
21030  HW_SERIAL_LCR_FALSE='#'
21031else
21032  HW_SERIAL_LCR_TRUE='#'
21033  HW_SERIAL_LCR_FALSE=
21034fi
21035
21036	if test -z "$HW_SERIAL_LCR_TRUE"; then :
21037
21038$as_echo "#define HAVE_HW_SERIAL_LCR 1" >>confdefs.h
21039
21040$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21041
21042fi
21043
21044
21045	# Check whether --enable-siglent-sds was given.
21046if test "${enable_siglent_sds+set}" = set; then :
21047  enableval=$enable_siglent_sds; HW_SIGLENT_SDS=$enableval
21048else
21049  HW_SIGLENT_SDS=$enable_all_drivers
21050fi
21051
21052
21053	if test "x$HW_SIGLENT_SDS" = xyes; then :
21054  sr_hw_info=yes
21055else
21056  sr_hw_info='no (disabled)'
21057fi
21058	sr_driver_summary_append "siglent-sds" "$sr_hw_info"
21059
21060	 if test "x$HW_SIGLENT_SDS" = xyes; then
21061  HW_SIGLENT_SDS_TRUE=
21062  HW_SIGLENT_SDS_FALSE='#'
21063else
21064  HW_SIGLENT_SDS_TRUE='#'
21065  HW_SIGLENT_SDS_FALSE=
21066fi
21067
21068	if test -z "$HW_SIGLENT_SDS_TRUE"; then :
21069
21070$as_echo "#define HAVE_HW_SIGLENT_SDS 1" >>confdefs.h
21071
21072$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21073
21074fi
21075
21076
21077	# Check whether --enable-sysclk-lwla was given.
21078if test "${enable_sysclk_lwla+set}" = set; then :
21079  enableval=$enable_sysclk_lwla; HW_SYSCLK_LWLA=$enableval
21080else
21081  HW_SYSCLK_LWLA=$enable_all_drivers
21082fi
21083
21084
21085	if test "x$HW_SYSCLK_LWLA" = xyes; then :
21086  sr_hw_info=yes
21087		sr_check_driver_deps libusb \
21088			|| HW_SYSCLK_LWLA=no sr_hw_info="no (missing: $sr_deps_missing)"
21089
21090else
21091  sr_hw_info='no (disabled)'
21092fi
21093	sr_driver_summary_append "sysclk-lwla" "$sr_hw_info"
21094
21095	 if test "x$HW_SYSCLK_LWLA" = xyes; then
21096  HW_SYSCLK_LWLA_TRUE=
21097  HW_SYSCLK_LWLA_FALSE='#'
21098else
21099  HW_SYSCLK_LWLA_TRUE='#'
21100  HW_SYSCLK_LWLA_FALSE=
21101fi
21102
21103	if test -z "$HW_SYSCLK_LWLA_TRUE"; then :
21104
21105$as_echo "#define HAVE_HW_SYSCLK_LWLA 1" >>confdefs.h
21106
21107$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21108
21109fi
21110
21111
21112	# Check whether --enable-sysclk-sla5032 was given.
21113if test "${enable_sysclk_sla5032+set}" = set; then :
21114  enableval=$enable_sysclk_sla5032; HW_SYSCLK_SLA5032=$enableval
21115else
21116  HW_SYSCLK_SLA5032=$enable_all_drivers
21117fi
21118
21119
21120	if test "x$HW_SYSCLK_SLA5032" = xyes; then :
21121  sr_hw_info=yes
21122		sr_check_driver_deps libusb \
21123			|| HW_SYSCLK_SLA5032=no sr_hw_info="no (missing: $sr_deps_missing)"
21124
21125else
21126  sr_hw_info='no (disabled)'
21127fi
21128	sr_driver_summary_append "sysclk-sla5032" "$sr_hw_info"
21129
21130	 if test "x$HW_SYSCLK_SLA5032" = xyes; then
21131  HW_SYSCLK_SLA5032_TRUE=
21132  HW_SYSCLK_SLA5032_FALSE='#'
21133else
21134  HW_SYSCLK_SLA5032_TRUE='#'
21135  HW_SYSCLK_SLA5032_FALSE=
21136fi
21137
21138	if test -z "$HW_SYSCLK_SLA5032_TRUE"; then :
21139
21140$as_echo "#define HAVE_HW_SYSCLK_SLA5032 1" >>confdefs.h
21141
21142$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21143
21144fi
21145
21146
21147	# Check whether --enable-teleinfo was given.
21148if test "${enable_teleinfo+set}" = set; then :
21149  enableval=$enable_teleinfo; HW_TELEINFO=$enableval
21150else
21151  HW_TELEINFO=$enable_all_drivers
21152fi
21153
21154
21155	if test "x$HW_TELEINFO" = xyes; then :
21156  sr_hw_info=yes
21157		sr_check_driver_deps serial_comm \
21158			|| HW_TELEINFO=no sr_hw_info="no (missing: $sr_deps_missing)"
21159
21160else
21161  sr_hw_info='no (disabled)'
21162fi
21163	sr_driver_summary_append "teleinfo" "$sr_hw_info"
21164
21165	 if test "x$HW_TELEINFO" = xyes; then
21166  HW_TELEINFO_TRUE=
21167  HW_TELEINFO_FALSE='#'
21168else
21169  HW_TELEINFO_TRUE='#'
21170  HW_TELEINFO_FALSE=
21171fi
21172
21173	if test -z "$HW_TELEINFO_TRUE"; then :
21174
21175$as_echo "#define HAVE_HW_TELEINFO 1" >>confdefs.h
21176
21177$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21178
21179fi
21180
21181
21182	# Check whether --enable-testo was given.
21183if test "${enable_testo+set}" = set; then :
21184  enableval=$enable_testo; HW_TESTO=$enableval
21185else
21186  HW_TESTO=$enable_all_drivers
21187fi
21188
21189
21190	if test "x$HW_TESTO" = xyes; then :
21191  sr_hw_info=yes
21192		sr_check_driver_deps libusb \
21193			|| HW_TESTO=no sr_hw_info="no (missing: $sr_deps_missing)"
21194
21195else
21196  sr_hw_info='no (disabled)'
21197fi
21198	sr_driver_summary_append "testo" "$sr_hw_info"
21199
21200	 if test "x$HW_TESTO" = xyes; then
21201  HW_TESTO_TRUE=
21202  HW_TESTO_FALSE='#'
21203else
21204  HW_TESTO_TRUE='#'
21205  HW_TESTO_FALSE=
21206fi
21207
21208	if test -z "$HW_TESTO_TRUE"; then :
21209
21210$as_echo "#define HAVE_HW_TESTO 1" >>confdefs.h
21211
21212$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21213
21214fi
21215
21216
21217	# Check whether --enable-tondaj-sl-814 was given.
21218if test "${enable_tondaj_sl_814+set}" = set; then :
21219  enableval=$enable_tondaj_sl_814; HW_TONDAJ_SL_814=$enableval
21220else
21221  HW_TONDAJ_SL_814=$enable_all_drivers
21222fi
21223
21224
21225	if test "x$HW_TONDAJ_SL_814" = xyes; then :
21226  sr_hw_info=yes
21227		sr_check_driver_deps serial_comm \
21228			|| HW_TONDAJ_SL_814=no sr_hw_info="no (missing: $sr_deps_missing)"
21229
21230else
21231  sr_hw_info='no (disabled)'
21232fi
21233	sr_driver_summary_append "tondaj-sl-814" "$sr_hw_info"
21234
21235	 if test "x$HW_TONDAJ_SL_814" = xyes; then
21236  HW_TONDAJ_SL_814_TRUE=
21237  HW_TONDAJ_SL_814_FALSE='#'
21238else
21239  HW_TONDAJ_SL_814_TRUE='#'
21240  HW_TONDAJ_SL_814_FALSE=
21241fi
21242
21243	if test -z "$HW_TONDAJ_SL_814_TRUE"; then :
21244
21245$as_echo "#define HAVE_HW_TONDAJ_SL_814 1" >>confdefs.h
21246
21247$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21248
21249fi
21250
21251
21252	# Check whether --enable-uni-t-dmm was given.
21253if test "${enable_uni_t_dmm+set}" = set; then :
21254  enableval=$enable_uni_t_dmm; HW_UNI_T_DMM=$enableval
21255else
21256  HW_UNI_T_DMM=$enable_all_drivers
21257fi
21258
21259
21260	if test "x$HW_UNI_T_DMM" = xyes; then :
21261  sr_hw_info=yes
21262		sr_check_driver_deps libusb \
21263			|| HW_UNI_T_DMM=no sr_hw_info="no (missing: $sr_deps_missing)"
21264
21265else
21266  sr_hw_info='no (disabled)'
21267fi
21268	sr_driver_summary_append "uni-t-dmm" "$sr_hw_info"
21269
21270	 if test "x$HW_UNI_T_DMM" = xyes; then
21271  HW_UNI_T_DMM_TRUE=
21272  HW_UNI_T_DMM_FALSE='#'
21273else
21274  HW_UNI_T_DMM_TRUE='#'
21275  HW_UNI_T_DMM_FALSE=
21276fi
21277
21278	if test -z "$HW_UNI_T_DMM_TRUE"; then :
21279
21280$as_echo "#define HAVE_HW_UNI_T_DMM 1" >>confdefs.h
21281
21282$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21283
21284fi
21285
21286
21287	# Check whether --enable-uni-t-ut32x was given.
21288if test "${enable_uni_t_ut32x+set}" = set; then :
21289  enableval=$enable_uni_t_ut32x; HW_UNI_T_UT32X=$enableval
21290else
21291  HW_UNI_T_UT32X=$enable_all_drivers
21292fi
21293
21294
21295	if test "x$HW_UNI_T_UT32X" = xyes; then :
21296  sr_hw_info=yes
21297		sr_check_driver_deps serial_comm \
21298			|| HW_UNI_T_UT32X=no sr_hw_info="no (missing: $sr_deps_missing)"
21299
21300else
21301  sr_hw_info='no (disabled)'
21302fi
21303	sr_driver_summary_append "uni-t-ut32x" "$sr_hw_info"
21304
21305	 if test "x$HW_UNI_T_UT32X" = xyes; then
21306  HW_UNI_T_UT32X_TRUE=
21307  HW_UNI_T_UT32X_FALSE='#'
21308else
21309  HW_UNI_T_UT32X_TRUE='#'
21310  HW_UNI_T_UT32X_FALSE=
21311fi
21312
21313	if test -z "$HW_UNI_T_UT32X_TRUE"; then :
21314
21315$as_echo "#define HAVE_HW_UNI_T_UT32X 1" >>confdefs.h
21316
21317$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21318
21319fi
21320
21321
21322	# Check whether --enable-yokogawa-dlm was given.
21323if test "${enable_yokogawa_dlm+set}" = set; then :
21324  enableval=$enable_yokogawa_dlm; HW_YOKOGAWA_DLM=$enableval
21325else
21326  HW_YOKOGAWA_DLM=$enable_all_drivers
21327fi
21328
21329
21330	if test "x$HW_YOKOGAWA_DLM" = xyes; then :
21331  sr_hw_info=yes
21332else
21333  sr_hw_info='no (disabled)'
21334fi
21335	sr_driver_summary_append "yokogawa-dlm" "$sr_hw_info"
21336
21337	 if test "x$HW_YOKOGAWA_DLM" = xyes; then
21338  HW_YOKOGAWA_DLM_TRUE=
21339  HW_YOKOGAWA_DLM_FALSE='#'
21340else
21341  HW_YOKOGAWA_DLM_TRUE='#'
21342  HW_YOKOGAWA_DLM_FALSE=
21343fi
21344
21345	if test -z "$HW_YOKOGAWA_DLM_TRUE"; then :
21346
21347$as_echo "#define HAVE_HW_YOKOGAWA_DLM 1" >>confdefs.h
21348
21349$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21350
21351fi
21352
21353
21354	# Check whether --enable-zeroplus-logic-cube was given.
21355if test "${enable_zeroplus_logic_cube+set}" = set; then :
21356  enableval=$enable_zeroplus_logic_cube; HW_ZEROPLUS_LOGIC_CUBE=$enableval
21357else
21358  HW_ZEROPLUS_LOGIC_CUBE=$enable_all_drivers
21359fi
21360
21361
21362	if test "x$HW_ZEROPLUS_LOGIC_CUBE" = xyes; then :
21363  sr_hw_info=yes
21364		sr_check_driver_deps libusb \
21365			|| HW_ZEROPLUS_LOGIC_CUBE=no sr_hw_info="no (missing: $sr_deps_missing)"
21366
21367else
21368  sr_hw_info='no (disabled)'
21369fi
21370	sr_driver_summary_append "zeroplus-logic-cube" "$sr_hw_info"
21371
21372	 if test "x$HW_ZEROPLUS_LOGIC_CUBE" = xyes; then
21373  HW_ZEROPLUS_LOGIC_CUBE_TRUE=
21374  HW_ZEROPLUS_LOGIC_CUBE_FALSE='#'
21375else
21376  HW_ZEROPLUS_LOGIC_CUBE_TRUE='#'
21377  HW_ZEROPLUS_LOGIC_CUBE_FALSE=
21378fi
21379
21380	if test -z "$HW_ZEROPLUS_LOGIC_CUBE_TRUE"; then :
21381
21382$as_echo "#define HAVE_HW_ZEROPLUS_LOGIC_CUBE 1" >>confdefs.h
21383
21384$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21385
21386fi
21387
21388
21389	# Check whether --enable-zketech-ebd-usb was given.
21390if test "${enable_zketech_ebd_usb+set}" = set; then :
21391  enableval=$enable_zketech_ebd_usb; HW_ZKETECH_EBD_USB=$enableval
21392else
21393  HW_ZKETECH_EBD_USB=$enable_all_drivers
21394fi
21395
21396
21397	if test "x$HW_ZKETECH_EBD_USB" = xyes; then :
21398  sr_hw_info=yes
21399		sr_check_driver_deps serial_comm \
21400			|| HW_ZKETECH_EBD_USB=no sr_hw_info="no (missing: $sr_deps_missing)"
21401
21402else
21403  sr_hw_info='no (disabled)'
21404fi
21405	sr_driver_summary_append "zketech-ebd-usb" "$sr_hw_info"
21406
21407	 if test "x$HW_ZKETECH_EBD_USB" = xyes; then
21408  HW_ZKETECH_EBD_USB_TRUE=
21409  HW_ZKETECH_EBD_USB_FALSE='#'
21410else
21411  HW_ZKETECH_EBD_USB_TRUE='#'
21412  HW_ZKETECH_EBD_USB_FALSE=
21413fi
21414
21415	if test -z "$HW_ZKETECH_EBD_USB_TRUE"; then :
21416
21417$as_echo "#define HAVE_HW_ZKETECH_EBD_USB 1" >>confdefs.h
21418
21419$as_echo "#define HAVE_DRIVERS 1" >>confdefs.h
21420
21421fi
21422
21423
21424###############################
21425##  Language bindings setup  ##
21426###############################
21427
21428ac_ext=cpp
21429ac_cpp='$CXXCPP $CPPFLAGS'
21430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21433
21434case $ac_compile in #(
21435  *'$CXXFLAGS '*) :
21436    sr_lang='C++' sr_cc=$CXX sr_conftest="conftest.${ac_ext:-cc}" ;; #(
21437  *'$CFLAGS '*) :
21438    sr_lang=C sr_cc=$CC sr_conftest="conftest.${ac_ext:-c}" ;; #(
21439  *) :
21440    as_fn_error $? "current language is neither C nor C++" "$LINENO" 5 ;;
21441esac
21442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which $sr_lang compiler warning flags to use" >&5
21443$as_echo_n "checking which $sr_lang compiler warning flags to use... " >&6; }
21444sr_warning_flags=
21445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21446/* end confdefs.h.  */
21447
21448int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }
21449
21450_ACEOF
21451case $sr_enable_warnings in #(
21452  no) :
21453     ;; #(
21454  min) :
21455    sr_check_compile_warning_flags -Wall ;; #(
21456  fatal) :
21457    sr_check_compile_warning_flags -Wall -Wextra -Werror ;; #(
21458  *) :
21459    sr_check_compile_warning_flags -Wall -Wextra ;;
21460esac
21461rm -f "$sr_conftest"
21462SR_WXXFLAGS=$sr_warning_flags
21463
21464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sr_warning_flags:-none}" >&5
21465$as_echo "${sr_warning_flags:-none}" >&6; }
21466
21467# Check whether --enable-bindings was given.
21468if test "${enable_bindings+set}" = set; then :
21469  enableval=$enable_bindings;
21470else
21471  enable_bindings=yes
21472fi
21473
21474
21475# Check whether --enable-cxx was given.
21476if test "${enable_cxx+set}" = set; then :
21477  enableval=$enable_cxx;
21478else
21479  enable_cxx=$enable_bindings
21480fi
21481
21482
21483# Check whether --enable-python was given.
21484if test "${enable_python+set}" = set; then :
21485  enableval=$enable_python;
21486else
21487  enable_python=$enable_bindings
21488fi
21489
21490
21491# Check whether --enable-ruby was given.
21492if test "${enable_ruby+set}" = set; then :
21493  enableval=$enable_ruby;
21494else
21495  enable_ruby=$enable_bindings
21496fi
21497
21498
21499# Check whether --enable-java was given.
21500if test "${enable_java+set}" = set; then :
21501  enableval=$enable_java;
21502else
21503  enable_java=$enable_bindings
21504fi
21505
21506
21507####################
21508##  C++ bindings  ##
21509####################
21510
21511sr_cxx_missing=
21512
21513# Check if the C++ compiler supports the C++11 standard.
21514      ax_cxx_compile_cxx11_required=false
21515  ac_ext=cpp
21516ac_cpp='$CXXCPP $CPPFLAGS'
21517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21520  ac_success=no
21521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
21522$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
21523if ${ax_cv_cxx_compile_cxx11+:} false; then :
21524  $as_echo_n "(cached) " >&6
21525else
21526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21527/* end confdefs.h.  */
21528
21529
21530// If the compiler admits that it is not ready for C++11, why torture it?
21531// Hopefully, this will speed up the test.
21532
21533#ifndef __cplusplus
21534
21535#error "This is not a C++ compiler"
21536
21537#elif __cplusplus < 201103L
21538
21539#error "This is not a C++11 compiler"
21540
21541#else
21542
21543namespace cxx11
21544{
21545
21546  namespace test_static_assert
21547  {
21548
21549    template <typename T>
21550    struct check
21551    {
21552      static_assert(sizeof(int) <= sizeof(T), "not big enough");
21553    };
21554
21555  }
21556
21557  namespace test_final_override
21558  {
21559
21560    struct Base
21561    {
21562      virtual void f() {}
21563    };
21564
21565    struct Derived : public Base
21566    {
21567      virtual void f() override {}
21568    };
21569
21570  }
21571
21572  namespace test_double_right_angle_brackets
21573  {
21574
21575    template < typename T >
21576    struct check {};
21577
21578    typedef check<void> single_type;
21579    typedef check<check<void>> double_type;
21580    typedef check<check<check<void>>> triple_type;
21581    typedef check<check<check<check<void>>>> quadruple_type;
21582
21583  }
21584
21585  namespace test_decltype
21586  {
21587
21588    int
21589    f()
21590    {
21591      int a = 1;
21592      decltype(a) b = 2;
21593      return a + b;
21594    }
21595
21596  }
21597
21598  namespace test_type_deduction
21599  {
21600
21601    template < typename T1, typename T2 >
21602    struct is_same
21603    {
21604      static const bool value = false;
21605    };
21606
21607    template < typename T >
21608    struct is_same<T, T>
21609    {
21610      static const bool value = true;
21611    };
21612
21613    template < typename T1, typename T2 >
21614    auto
21615    add(T1 a1, T2 a2) -> decltype(a1 + a2)
21616    {
21617      return a1 + a2;
21618    }
21619
21620    int
21621    test(const int c, volatile int v)
21622    {
21623      static_assert(is_same<int, decltype(0)>::value == true, "");
21624      static_assert(is_same<int, decltype(c)>::value == false, "");
21625      static_assert(is_same<int, decltype(v)>::value == false, "");
21626      auto ac = c;
21627      auto av = v;
21628      auto sumi = ac + av + 'x';
21629      auto sumf = ac + av + 1.0;
21630      static_assert(is_same<int, decltype(ac)>::value == true, "");
21631      static_assert(is_same<int, decltype(av)>::value == true, "");
21632      static_assert(is_same<int, decltype(sumi)>::value == true, "");
21633      static_assert(is_same<int, decltype(sumf)>::value == false, "");
21634      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
21635      return (sumf > 0.0) ? sumi : add(c, v);
21636    }
21637
21638  }
21639
21640  namespace test_noexcept
21641  {
21642
21643    int f() { return 0; }
21644    int g() noexcept { return 0; }
21645
21646    static_assert(noexcept(f()) == false, "");
21647    static_assert(noexcept(g()) == true, "");
21648
21649  }
21650
21651  namespace test_constexpr
21652  {
21653
21654    template < typename CharT >
21655    unsigned long constexpr
21656    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
21657    {
21658      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
21659    }
21660
21661    template < typename CharT >
21662    unsigned long constexpr
21663    strlen_c(const CharT *const s) noexcept
21664    {
21665      return strlen_c_r(s, 0UL);
21666    }
21667
21668    static_assert(strlen_c("") == 0UL, "");
21669    static_assert(strlen_c("1") == 1UL, "");
21670    static_assert(strlen_c("example") == 7UL, "");
21671    static_assert(strlen_c("another\0example") == 7UL, "");
21672
21673  }
21674
21675  namespace test_rvalue_references
21676  {
21677
21678    template < int N >
21679    struct answer
21680    {
21681      static constexpr int value = N;
21682    };
21683
21684    answer<1> f(int&)       { return answer<1>(); }
21685    answer<2> f(const int&) { return answer<2>(); }
21686    answer<3> f(int&&)      { return answer<3>(); }
21687
21688    void
21689    test()
21690    {
21691      int i = 0;
21692      const int c = 0;
21693      static_assert(decltype(f(i))::value == 1, "");
21694      static_assert(decltype(f(c))::value == 2, "");
21695      static_assert(decltype(f(0))::value == 3, "");
21696    }
21697
21698  }
21699
21700  namespace test_uniform_initialization
21701  {
21702
21703    struct test
21704    {
21705      static const int zero {};
21706      static const int one {1};
21707    };
21708
21709    static_assert(test::zero == 0, "");
21710    static_assert(test::one == 1, "");
21711
21712  }
21713
21714  namespace test_lambdas
21715  {
21716
21717    void
21718    test1()
21719    {
21720      auto lambda1 = [](){};
21721      auto lambda2 = lambda1;
21722      lambda1();
21723      lambda2();
21724    }
21725
21726    int
21727    test2()
21728    {
21729      auto a = [](int i, int j){ return i + j; }(1, 2);
21730      auto b = []() -> int { return '0'; }();
21731      auto c = [=](){ return a + b; }();
21732      auto d = [&](){ return c; }();
21733      auto e = [a, &b](int x) mutable {
21734        const auto identity = [](int y){ return y; };
21735        for (auto i = 0; i < a; ++i)
21736          a += b--;
21737        return x + identity(a + b);
21738      }(0);
21739      return a + b + c + d + e;
21740    }
21741
21742    int
21743    test3()
21744    {
21745      const auto nullary = [](){ return 0; };
21746      const auto unary = [](int x){ return x; };
21747      using nullary_t = decltype(nullary);
21748      using unary_t = decltype(unary);
21749      const auto higher1st = [](nullary_t f){ return f(); };
21750      const auto higher2nd = [unary](nullary_t f1){
21751        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
21752      };
21753      return higher1st(nullary) + higher2nd(nullary)(unary);
21754    }
21755
21756  }
21757
21758  namespace test_variadic_templates
21759  {
21760
21761    template <int...>
21762    struct sum;
21763
21764    template <int N0, int... N1toN>
21765    struct sum<N0, N1toN...>
21766    {
21767      static constexpr auto value = N0 + sum<N1toN...>::value;
21768    };
21769
21770    template <>
21771    struct sum<>
21772    {
21773      static constexpr auto value = 0;
21774    };
21775
21776    static_assert(sum<>::value == 0, "");
21777    static_assert(sum<1>::value == 1, "");
21778    static_assert(sum<23>::value == 23, "");
21779    static_assert(sum<1, 2>::value == 3, "");
21780    static_assert(sum<5, 5, 11>::value == 21, "");
21781    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
21782
21783  }
21784
21785  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
21786  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
21787  // because of this.
21788  namespace test_template_alias_sfinae
21789  {
21790
21791    struct foo {};
21792
21793    template<typename T>
21794    using member = typename T::member_type;
21795
21796    template<typename T>
21797    void func(...) {}
21798
21799    template<typename T>
21800    void func(member<T>*) {}
21801
21802    void test();
21803
21804    void test() { func<foo>(0); }
21805
21806  }
21807
21808}  // namespace cxx11
21809
21810#endif  // __cplusplus >= 201103L
21811
21812
21813
21814_ACEOF
21815if ac_fn_cxx_try_compile "$LINENO"; then :
21816  ax_cv_cxx_compile_cxx11=yes
21817else
21818  ax_cv_cxx_compile_cxx11=no
21819fi
21820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821fi
21822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
21823$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
21824  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
21825    ac_success=yes
21826  fi
21827
21828
21829
21830    if test x$ac_success = xno; then
21831                for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
21832      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
21833      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
21834$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
21835if eval \${$cachevar+:} false; then :
21836  $as_echo_n "(cached) " >&6
21837else
21838  ac_save_CXX="$CXX"
21839         CXX="$CXX $switch"
21840         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21841/* end confdefs.h.  */
21842
21843
21844// If the compiler admits that it is not ready for C++11, why torture it?
21845// Hopefully, this will speed up the test.
21846
21847#ifndef __cplusplus
21848
21849#error "This is not a C++ compiler"
21850
21851#elif __cplusplus < 201103L
21852
21853#error "This is not a C++11 compiler"
21854
21855#else
21856
21857namespace cxx11
21858{
21859
21860  namespace test_static_assert
21861  {
21862
21863    template <typename T>
21864    struct check
21865    {
21866      static_assert(sizeof(int) <= sizeof(T), "not big enough");
21867    };
21868
21869  }
21870
21871  namespace test_final_override
21872  {
21873
21874    struct Base
21875    {
21876      virtual void f() {}
21877    };
21878
21879    struct Derived : public Base
21880    {
21881      virtual void f() override {}
21882    };
21883
21884  }
21885
21886  namespace test_double_right_angle_brackets
21887  {
21888
21889    template < typename T >
21890    struct check {};
21891
21892    typedef check<void> single_type;
21893    typedef check<check<void>> double_type;
21894    typedef check<check<check<void>>> triple_type;
21895    typedef check<check<check<check<void>>>> quadruple_type;
21896
21897  }
21898
21899  namespace test_decltype
21900  {
21901
21902    int
21903    f()
21904    {
21905      int a = 1;
21906      decltype(a) b = 2;
21907      return a + b;
21908    }
21909
21910  }
21911
21912  namespace test_type_deduction
21913  {
21914
21915    template < typename T1, typename T2 >
21916    struct is_same
21917    {
21918      static const bool value = false;
21919    };
21920
21921    template < typename T >
21922    struct is_same<T, T>
21923    {
21924      static const bool value = true;
21925    };
21926
21927    template < typename T1, typename T2 >
21928    auto
21929    add(T1 a1, T2 a2) -> decltype(a1 + a2)
21930    {
21931      return a1 + a2;
21932    }
21933
21934    int
21935    test(const int c, volatile int v)
21936    {
21937      static_assert(is_same<int, decltype(0)>::value == true, "");
21938      static_assert(is_same<int, decltype(c)>::value == false, "");
21939      static_assert(is_same<int, decltype(v)>::value == false, "");
21940      auto ac = c;
21941      auto av = v;
21942      auto sumi = ac + av + 'x';
21943      auto sumf = ac + av + 1.0;
21944      static_assert(is_same<int, decltype(ac)>::value == true, "");
21945      static_assert(is_same<int, decltype(av)>::value == true, "");
21946      static_assert(is_same<int, decltype(sumi)>::value == true, "");
21947      static_assert(is_same<int, decltype(sumf)>::value == false, "");
21948      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
21949      return (sumf > 0.0) ? sumi : add(c, v);
21950    }
21951
21952  }
21953
21954  namespace test_noexcept
21955  {
21956
21957    int f() { return 0; }
21958    int g() noexcept { return 0; }
21959
21960    static_assert(noexcept(f()) == false, "");
21961    static_assert(noexcept(g()) == true, "");
21962
21963  }
21964
21965  namespace test_constexpr
21966  {
21967
21968    template < typename CharT >
21969    unsigned long constexpr
21970    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
21971    {
21972      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
21973    }
21974
21975    template < typename CharT >
21976    unsigned long constexpr
21977    strlen_c(const CharT *const s) noexcept
21978    {
21979      return strlen_c_r(s, 0UL);
21980    }
21981
21982    static_assert(strlen_c("") == 0UL, "");
21983    static_assert(strlen_c("1") == 1UL, "");
21984    static_assert(strlen_c("example") == 7UL, "");
21985    static_assert(strlen_c("another\0example") == 7UL, "");
21986
21987  }
21988
21989  namespace test_rvalue_references
21990  {
21991
21992    template < int N >
21993    struct answer
21994    {
21995      static constexpr int value = N;
21996    };
21997
21998    answer<1> f(int&)       { return answer<1>(); }
21999    answer<2> f(const int&) { return answer<2>(); }
22000    answer<3> f(int&&)      { return answer<3>(); }
22001
22002    void
22003    test()
22004    {
22005      int i = 0;
22006      const int c = 0;
22007      static_assert(decltype(f(i))::value == 1, "");
22008      static_assert(decltype(f(c))::value == 2, "");
22009      static_assert(decltype(f(0))::value == 3, "");
22010    }
22011
22012  }
22013
22014  namespace test_uniform_initialization
22015  {
22016
22017    struct test
22018    {
22019      static const int zero {};
22020      static const int one {1};
22021    };
22022
22023    static_assert(test::zero == 0, "");
22024    static_assert(test::one == 1, "");
22025
22026  }
22027
22028  namespace test_lambdas
22029  {
22030
22031    void
22032    test1()
22033    {
22034      auto lambda1 = [](){};
22035      auto lambda2 = lambda1;
22036      lambda1();
22037      lambda2();
22038    }
22039
22040    int
22041    test2()
22042    {
22043      auto a = [](int i, int j){ return i + j; }(1, 2);
22044      auto b = []() -> int { return '0'; }();
22045      auto c = [=](){ return a + b; }();
22046      auto d = [&](){ return c; }();
22047      auto e = [a, &b](int x) mutable {
22048        const auto identity = [](int y){ return y; };
22049        for (auto i = 0; i < a; ++i)
22050          a += b--;
22051        return x + identity(a + b);
22052      }(0);
22053      return a + b + c + d + e;
22054    }
22055
22056    int
22057    test3()
22058    {
22059      const auto nullary = [](){ return 0; };
22060      const auto unary = [](int x){ return x; };
22061      using nullary_t = decltype(nullary);
22062      using unary_t = decltype(unary);
22063      const auto higher1st = [](nullary_t f){ return f(); };
22064      const auto higher2nd = [unary](nullary_t f1){
22065        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
22066      };
22067      return higher1st(nullary) + higher2nd(nullary)(unary);
22068    }
22069
22070  }
22071
22072  namespace test_variadic_templates
22073  {
22074
22075    template <int...>
22076    struct sum;
22077
22078    template <int N0, int... N1toN>
22079    struct sum<N0, N1toN...>
22080    {
22081      static constexpr auto value = N0 + sum<N1toN...>::value;
22082    };
22083
22084    template <>
22085    struct sum<>
22086    {
22087      static constexpr auto value = 0;
22088    };
22089
22090    static_assert(sum<>::value == 0, "");
22091    static_assert(sum<1>::value == 1, "");
22092    static_assert(sum<23>::value == 23, "");
22093    static_assert(sum<1, 2>::value == 3, "");
22094    static_assert(sum<5, 5, 11>::value == 21, "");
22095    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
22096
22097  }
22098
22099  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
22100  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
22101  // because of this.
22102  namespace test_template_alias_sfinae
22103  {
22104
22105    struct foo {};
22106
22107    template<typename T>
22108    using member = typename T::member_type;
22109
22110    template<typename T>
22111    void func(...) {}
22112
22113    template<typename T>
22114    void func(member<T>*) {}
22115
22116    void test();
22117
22118    void test() { func<foo>(0); }
22119
22120  }
22121
22122}  // namespace cxx11
22123
22124#endif  // __cplusplus >= 201103L
22125
22126
22127
22128_ACEOF
22129if ac_fn_cxx_try_compile "$LINENO"; then :
22130  eval $cachevar=yes
22131else
22132  eval $cachevar=no
22133fi
22134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135         CXX="$ac_save_CXX"
22136fi
22137eval ac_res=\$$cachevar
22138	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22139$as_echo "$ac_res" >&6; }
22140      if eval test x\$$cachevar = xyes; then
22141        CXX="$CXX $switch"
22142        if test -n "$CXXCPP" ; then
22143          CXXCPP="$CXXCPP $switch"
22144        fi
22145        ac_success=yes
22146        break
22147      fi
22148    done
22149  fi
22150  ac_ext=cpp
22151ac_cpp='$CXXCPP $CPPFLAGS'
22152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22155
22156  if test x$ax_cxx_compile_cxx11_required = xtrue; then
22157    if test x$ac_success = xno; then
22158      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
22159    fi
22160  fi
22161  if test x$ac_success = xno; then
22162    HAVE_CXX11=0
22163    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
22164$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
22165  else
22166    HAVE_CXX11=1
22167
22168$as_echo "#define HAVE_CXX11 1" >>confdefs.h
22169
22170  fi
22171
22172
22173if test "x$HAVE_CXX11" != x1; then :
22174  sr_cxx_missing=${sr_cxx_missing}${sr_cxx_missing:+', '}'C++11'
22175fi
22176
22177# The C++ bindings need glibmm.
22178if test -n "$PKG_CONFIG" && \
22179    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glibmm-2.4 >= 2.32.0\""; } >&5
22180  ($PKG_CONFIG --exists --print-errors "glibmm-2.4 >= 2.32.0") 2>&5
22181  ac_status=$?
22182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22183  test $ac_status = 0; }; then
22184  	sr_have_glibmm=yes
22185	SR_PKGLIBS_CXX=${SR_PKGLIBS_CXX}${SR_PKGLIBS_CXX:+' '}"glibmm-2.4 >= 2.32.0"
22186	sr_glibmm_version=`$PKG_CONFIG --modversion "glibmm-2.4 >= 2.32.0" 2>&5`
22187	sr_pkg_check_summary_append "glibmm-2.4 >= 2.32.0" "$sr_glibmm_version"
22188else
22189  	sr_pkg_check_summary_append "glibmm-2.4 >= 2.32.0" no
22190	sr_have_glibmm=no sr_glibmm_version=
22191fi
22192
22193if test "x$sr_have_glibmm" != xyes; then :
22194  sr_cxx_missing=${sr_cxx_missing}${sr_cxx_missing:+', '}glibmm
22195fi
22196
22197# The C++ bindings use Doxygen to parse libsigrok symbols.
22198# Extract the first word of "doxygen", so it can be a program name with args.
22199set dummy doxygen; ac_word=$2
22200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22201$as_echo_n "checking for $ac_word... " >&6; }
22202if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
22203  $as_echo_n "(cached) " >&6
22204else
22205  if test -n "$HAVE_DOXYGEN"; then
22206  ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
22207else
22208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22209for as_dir in $PATH
22210do
22211  IFS=$as_save_IFS
22212  test -z "$as_dir" && as_dir=.
22213    for ac_exec_ext in '' $ac_executable_extensions; do
22214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22215    ac_cv_prog_HAVE_DOXYGEN="yes"
22216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22217    break 2
22218  fi
22219done
22220  done
22221IFS=$as_save_IFS
22222
22223  test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
22224fi
22225fi
22226HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
22227if test -n "$HAVE_DOXYGEN"; then
22228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
22229$as_echo "$HAVE_DOXYGEN" >&6; }
22230else
22231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22232$as_echo "no" >&6; }
22233fi
22234
22235
22236if test "x$HAVE_DOXYGEN" != xyes; then :
22237  sr_cxx_missing=${sr_cxx_missing}${sr_cxx_missing:+', '}Doxygen
22238fi
22239
22240# Link C++ code with gnustl_shared if it exists (Android)
22241sr_sl_save_LIBS=$LIBS
22242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __cxa_throw" >&5
22243$as_echo_n "checking for library containing __cxa_throw... " >&6; }
22244if ${ac_cv_search___cxa_throw+:} false; then :
22245  $as_echo_n "(cached) " >&6
22246else
22247  ac_func_search_save_LIBS=$LIBS
22248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22249/* end confdefs.h.  */
22250
22251/* Override any GCC internal prototype to avoid an error.
22252   Use char because int might match the return type of a GCC
22253   builtin and then its argument prototype would still apply.  */
22254#ifdef __cplusplus
22255extern "C"
22256#endif
22257char __cxa_throw ();
22258int
22259main ()
22260{
22261return __cxa_throw ();
22262  ;
22263  return 0;
22264}
22265_ACEOF
22266for ac_lib in '' gnustl_shared; do
22267  if test -z "$ac_lib"; then
22268    ac_res="none required"
22269  else
22270    ac_res=-l$ac_lib
22271    LIBS="-l$ac_lib $SR_EXTRA_CXX_LIBS $ac_func_search_save_LIBS"
22272  fi
22273  if ac_fn_cxx_try_link "$LINENO"; then :
22274  ac_cv_search___cxa_throw=$ac_res
22275fi
22276rm -f core conftest.err conftest.$ac_objext \
22277    conftest$ac_exeext
22278  if ${ac_cv_search___cxa_throw+:} false; then :
22279  break
22280fi
22281done
22282if ${ac_cv_search___cxa_throw+:} false; then :
22283
22284else
22285  ac_cv_search___cxa_throw=no
22286fi
22287rm conftest.$ac_ext
22288LIBS=$ac_func_search_save_LIBS
22289fi
22290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___cxa_throw" >&5
22291$as_echo "$ac_cv_search___cxa_throw" >&6; }
22292ac_res=$ac_cv_search___cxa_throw
22293if test "$ac_res" != no; then :
22294  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22295
22296fi
22297
22298LIBS=$sr_sl_save_LIBS
22299case $ac_cv_search___cxa_throw in #(
22300  no*) :
22301     ;; #(
22302  *) :
22303    SR_EXTRA_CXX_LIBS=$ac_cv_search___cxa_throw${SR_EXTRA_CXX_LIBS:+' '}$SR_EXTRA_CXX_LIBS ;;
22304esac
22305
22306
22307# Python is needed for the C++ bindings.
22308
22309
22310
22311
22312
22313
22314        if test -n "$PYTHON"; then
22315      # If the user set $PYTHON, use it and don't search something else.
22316      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
22317$as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
22318      prog="import sys
22319# split strings by '.' and convert to numeric.  Append some zeros
22320# because we need at least 4 digits for the hex conversion.
22321# map returns an iterator in Python 3.0 and a list in 2.x
22322minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
22323minverhex = 0
22324# xrange is not present in Python 3.0 and range returns an iterator
22325for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22326sys.exit(sys.hexversion < minverhex)"
22327  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22328   ($PYTHON -c "$prog") >&5 2>&5
22329   ac_status=$?
22330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331   (exit $ac_status); }; then :
22332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22333$as_echo "yes" >&6; }
22334else
22335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22336$as_echo "no" >&6; }
22337			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22338fi
22339      am_display_PYTHON=$PYTHON
22340    else
22341      # Otherwise, try each interpreter until we find one that satisfies
22342      # VERSION.
22343      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
22344$as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
22345if ${am_cv_pathless_PYTHON+:} false; then :
22346  $as_echo_n "(cached) " >&6
22347else
22348
22349	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
22350	  test "$am_cv_pathless_PYTHON" = none && break
22351	  prog="import sys
22352# split strings by '.' and convert to numeric.  Append some zeros
22353# because we need at least 4 digits for the hex conversion.
22354# map returns an iterator in Python 3.0 and a list in 2.x
22355minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
22356minverhex = 0
22357# xrange is not present in Python 3.0 and range returns an iterator
22358for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22359sys.exit(sys.hexversion < minverhex)"
22360  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22361   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22362   ac_status=$?
22363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364   (exit $ac_status); }; then :
22365  break
22366fi
22367	done
22368fi
22369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22370$as_echo "$am_cv_pathless_PYTHON" >&6; }
22371      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22372      if test "$am_cv_pathless_PYTHON" = none; then
22373	PYTHON=:
22374      else
22375        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22376set dummy $am_cv_pathless_PYTHON; ac_word=$2
22377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22378$as_echo_n "checking for $ac_word... " >&6; }
22379if ${ac_cv_path_PYTHON+:} false; then :
22380  $as_echo_n "(cached) " >&6
22381else
22382  case $PYTHON in
22383  [\\/]* | ?:[\\/]*)
22384  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22385  ;;
22386  *)
22387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22388for as_dir in $PATH
22389do
22390  IFS=$as_save_IFS
22391  test -z "$as_dir" && as_dir=.
22392    for ac_exec_ext in '' $ac_executable_extensions; do
22393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22394    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22396    break 2
22397  fi
22398done
22399  done
22400IFS=$as_save_IFS
22401
22402  ;;
22403esac
22404fi
22405PYTHON=$ac_cv_path_PYTHON
22406if test -n "$PYTHON"; then
22407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22408$as_echo "$PYTHON" >&6; }
22409else
22410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22411$as_echo "no" >&6; }
22412fi
22413
22414
22415      fi
22416      am_display_PYTHON=$am_cv_pathless_PYTHON
22417    fi
22418
22419
22420  if test "$PYTHON" = :; then
22421      HAVE_PYTHON=no
22422	sr_cxx_missing=${sr_cxx_missing}${sr_cxx_missing:+', '}Python
22423  else
22424
22425
22426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22427$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22428if ${am_cv_python_version+:} false; then :
22429  $as_echo_n "(cached) " >&6
22430else
22431  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22432fi
22433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22434$as_echo "$am_cv_python_version" >&6; }
22435  PYTHON_VERSION=$am_cv_python_version
22436
22437
22438
22439  PYTHON_PREFIX='${prefix}'
22440
22441  PYTHON_EXEC_PREFIX='${exec_prefix}'
22442
22443
22444
22445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22446$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22447if ${am_cv_python_platform+:} false; then :
22448  $as_echo_n "(cached) " >&6
22449else
22450  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22451fi
22452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22453$as_echo "$am_cv_python_platform" >&6; }
22454  PYTHON_PLATFORM=$am_cv_python_platform
22455
22456
22457  # Just factor out some code duplication.
22458  am_python_setup_sysconfig="\
22459import sys
22460# Prefer sysconfig over distutils.sysconfig, for better compatibility
22461# with python 3.x.  See automake bug#10227.
22462try:
22463    import sysconfig
22464except ImportError:
22465    can_use_sysconfig = 0
22466else:
22467    can_use_sysconfig = 1
22468# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22469# <https://github.com/pypa/virtualenv/issues/118>
22470try:
22471    from platform import python_implementation
22472    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22473        can_use_sysconfig = 0
22474except ImportError:
22475    pass"
22476
22477
22478            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22479$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22480if ${am_cv_python_pythondir+:} false; then :
22481  $as_echo_n "(cached) " >&6
22482else
22483  if test "x$prefix" = xNONE
22484     then
22485       am_py_prefix=$ac_default_prefix
22486     else
22487       am_py_prefix=$prefix
22488     fi
22489     am_cv_python_pythondir=`$PYTHON -c "
22490$am_python_setup_sysconfig
22491if can_use_sysconfig:
22492    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22493else:
22494    from distutils import sysconfig
22495    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22496sys.stdout.write(sitedir)"`
22497     case $am_cv_python_pythondir in
22498     $am_py_prefix*)
22499       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22500       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22501       ;;
22502     *)
22503       case $am_py_prefix in
22504         /usr|/System*) ;;
22505         *)
22506	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22507	  ;;
22508       esac
22509       ;;
22510     esac
22511
22512fi
22513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22514$as_echo "$am_cv_python_pythondir" >&6; }
22515  pythondir=$am_cv_python_pythondir
22516
22517
22518
22519  pkgpythondir=\${pythondir}/$PACKAGE
22520
22521
22522        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22523$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22524if ${am_cv_python_pyexecdir+:} false; then :
22525  $as_echo_n "(cached) " >&6
22526else
22527  if test "x$exec_prefix" = xNONE
22528     then
22529       am_py_exec_prefix=$am_py_prefix
22530     else
22531       am_py_exec_prefix=$exec_prefix
22532     fi
22533     am_cv_python_pyexecdir=`$PYTHON -c "
22534$am_python_setup_sysconfig
22535if can_use_sysconfig:
22536    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22537else:
22538    from distutils import sysconfig
22539    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22540sys.stdout.write(sitedir)"`
22541     case $am_cv_python_pyexecdir in
22542     $am_py_exec_prefix*)
22543       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22544       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22545       ;;
22546     *)
22547       case $am_py_exec_prefix in
22548         /usr|/System*) ;;
22549         *)
22550	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22551	   ;;
22552       esac
22553       ;;
22554     esac
22555
22556fi
22557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22558$as_echo "$am_cv_python_pyexecdir" >&6; }
22559  pyexecdir=$am_cv_python_pyexecdir
22560
22561
22562
22563  pkgpyexecdir=\${pyexecdir}/$PACKAGE
22564
22565
22566    HAVE_PYTHON=yes
22567  fi
22568
22569
22570
22571if test -z "$sr_cxx_missing"; then :
22572  BINDINGS_CXX=$enable_cxx
22573else
22574  BINDINGS_CXX=no
22575fi
22576 if test "x$BINDINGS_CXX" = xyes; then
22577  BINDINGS_CXX_TRUE=
22578  BINDINGS_CXX_FALSE='#'
22579else
22580  BINDINGS_CXX_TRUE='#'
22581  BINDINGS_CXX_FALSE=
22582fi
22583
22584
22585# C++ bindings want stoi and stod.
22586if test -z "$BINDINGS_CXX_TRUE"; then :
22587
22588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stoi and stod" >&5
22589$as_echo_n "checking for stoi and stod... " >&6; }
22590if ${sr_cv_have_stoi_stod+:} false; then :
22591  $as_echo_n "(cached) " >&6
22592else
22593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22594/* end confdefs.h.  */
22595#include <string>
22596int
22597main ()
22598{
22599(void) std::stoi("1"); (void) std::stod("1.0");
22600  ;
22601  return 0;
22602}
22603_ACEOF
22604if ac_fn_cxx_try_compile "$LINENO"; then :
22605  sr_cv_have_stoi_stod=yes
22606else
22607  sr_cv_have_stoi_stod=no
22608fi
22609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22610fi
22611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sr_cv_have_stoi_stod" >&5
22612$as_echo "$sr_cv_have_stoi_stod" >&6; }
22613	if test "x$sr_cv_have_stoi_stod" = xyes; then :
22614
22615$as_echo "#define HAVE_STOI_STOD 1" >>confdefs.h
22616
22617fi
22618
22619fi
22620
22621#######################
22622##  Python bindings  ##
22623#######################
22624
22625if test "x$BINDINGS_CXX" = xyes; then :
22626  sr_python_missing=
22627else
22628  sr_python_missing='C++ bindings'
22629fi
22630
22631# Extract major and minor version number of the Python interpreter.
22632sr_pymajor=${PYTHON_VERSION%%.*}
22633sr_pyminor=${PYTHON_VERSION#*.}
22634
22635# The Python bindings need Python development files. Check for either
22636# Python 3 or Python 2 headers depending on the interpreter version.
22637if test -n "$PKG_CONFIG" && \
22638    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python = \$PYTHON_VERSION\""; } >&5
22639  ($PKG_CONFIG --exists --print-errors "python = $PYTHON_VERSION") 2>&5
22640  ac_status=$?
22641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22642  test $ac_status = 0; }; then
22643  	sr_have_python_dev=yes
22644	SR_PKGLIBS_PYTHON=${SR_PKGLIBS_PYTHON}${SR_PKGLIBS_PYTHON:+' '}"python = $PYTHON_VERSION"
22645	sr_python_dev_version=`$PKG_CONFIG --modversion "python = $PYTHON_VERSION" 2>&5`
22646	sr_pkg_check_summary_append "python = $PYTHON_VERSION" "$sr_python_dev_version"
22647else
22648  	sr_pkg_check_summary_append "python = $PYTHON_VERSION" no
22649	if test -n "$PKG_CONFIG" && \
22650    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\$sr_pymajor = \$PYTHON_VERSION\""; } >&5
22651  ($PKG_CONFIG --exists --print-errors "python$sr_pymajor = $PYTHON_VERSION") 2>&5
22652  ac_status=$?
22653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22654  test $ac_status = 0; }; then
22655  	sr_have_python_dev=yes
22656	SR_PKGLIBS_PYTHON=${SR_PKGLIBS_PYTHON}${SR_PKGLIBS_PYTHON:+' '}"python$sr_pymajor = $PYTHON_VERSION"
22657	sr_python_dev_version=`$PKG_CONFIG --modversion "python$sr_pymajor = $PYTHON_VERSION" 2>&5`
22658	sr_pkg_check_summary_append "python$sr_pymajor = $PYTHON_VERSION" "$sr_python_dev_version"
22659else
22660  	sr_pkg_check_summary_append "python$sr_pymajor = $PYTHON_VERSION" no
22661	if test -n "$PKG_CONFIG" && \
22662    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\$sr_pymajor\$sr_pyminor = \$PYTHON_VERSION\""; } >&5
22663  ($PKG_CONFIG --exists --print-errors "python$sr_pymajor$sr_pyminor = $PYTHON_VERSION") 2>&5
22664  ac_status=$?
22665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22666  test $ac_status = 0; }; then
22667  	sr_have_python_dev=yes
22668	SR_PKGLIBS_PYTHON=${SR_PKGLIBS_PYTHON}${SR_PKGLIBS_PYTHON:+' '}"python$sr_pymajor$sr_pyminor = $PYTHON_VERSION"
22669	sr_python_dev_version=`$PKG_CONFIG --modversion "python$sr_pymajor$sr_pyminor = $PYTHON_VERSION" 2>&5`
22670	sr_pkg_check_summary_append "python$sr_pymajor$sr_pyminor = $PYTHON_VERSION" "$sr_python_dev_version"
22671else
22672  	sr_pkg_check_summary_append "python$sr_pymajor$sr_pyminor = $PYTHON_VERSION" no
22673	if test -n "$PKG_CONFIG" && \
22674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYTHON_VERSION = \$PYTHON_VERSION\""; } >&5
22675  ($PKG_CONFIG --exists --print-errors "python-$PYTHON_VERSION = $PYTHON_VERSION") 2>&5
22676  ac_status=$?
22677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22678  test $ac_status = 0; }; then
22679  	sr_have_python_dev=yes
22680	SR_PKGLIBS_PYTHON=${SR_PKGLIBS_PYTHON}${SR_PKGLIBS_PYTHON:+' '}"python-$PYTHON_VERSION = $PYTHON_VERSION"
22681	sr_python_dev_version=`$PKG_CONFIG --modversion "python-$PYTHON_VERSION = $PYTHON_VERSION" 2>&5`
22682	sr_pkg_check_summary_append "python-$PYTHON_VERSION = $PYTHON_VERSION" "$sr_python_dev_version"
22683else
22684  	sr_pkg_check_summary_append "python-$PYTHON_VERSION = $PYTHON_VERSION" no
22685	sr_have_python_dev=no sr_python_dev_version=
22686fi
22687
22688fi
22689
22690fi
22691
22692fi
22693
22694
22695if test "x$sr_have_python_dev" != xyes; then :
22696  sr_python_missing=${sr_python_missing}${sr_python_missing:+', '}Headers
22697fi
22698
22699# PyGObject is needed for the Python bindings.
22700if test -n "$PKG_CONFIG" && \
22701    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0 >= 3.0.0\""; } >&5
22702  ($PKG_CONFIG --exists --print-errors "pygobject-3.0 >= 3.0.0") 2>&5
22703  ac_status=$?
22704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22705  test $ac_status = 0; }; then
22706  	sr_have_pygobject=yes
22707	SR_PKGLIBS_PYTHON=${SR_PKGLIBS_PYTHON}${SR_PKGLIBS_PYTHON:+' '}"pygobject-3.0 >= 3.0.0"
22708	sr_pygobject_version=`$PKG_CONFIG --modversion "pygobject-3.0 >= 3.0.0" 2>&5`
22709	sr_pkg_check_summary_append "pygobject-3.0 >= 3.0.0" "$sr_pygobject_version"
22710else
22711  	sr_pkg_check_summary_append "pygobject-3.0 >= 3.0.0" no
22712	sr_have_pygobject=no sr_pygobject_version=
22713fi
22714
22715if test "x$sr_have_pygobject" != xyes; then :
22716  sr_python_missing=${sr_python_missing}${sr_python_missing:+', '}PyGObject
22717fi
22718
22719if test -n "$PKG_CONFIG" && \
22720    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0 < 3.7.91\""; } >&5
22721  ($PKG_CONFIG --exists --print-errors "pygobject-3.0 < 3.7.91") 2>&5
22722  ac_status=$?
22723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22724  test $ac_status = 0; }; then
22725
22726$as_echo "#define PYGOBJECT_FLAGS_SIGNED 1" >>confdefs.h
22727
22728fi
22729
22730# The Python bindings need the setuptools and numpy Python modules.
22731# We'll let it go through even if the AX macro wasn't found, as the
22732# Python modules may still be there.
22733
22734
22735    if test -z $PYTHON;
22736    then
22737        if test -z "";
22738        then
22739            PYTHON="python3"
22740        else
22741            PYTHON=""
22742        fi
22743    fi
22744    PYTHON_NAME=`basename $PYTHON`
22745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: setuptools" >&5
22746$as_echo_n "checking $PYTHON_NAME module: setuptools... " >&6; }
22747    $PYTHON -c "import setuptools" 2>/dev/null
22748    if test $? -eq 0;
22749    then
22750        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22751$as_echo "yes" >&6; }
22752        eval HAVE_PYMOD_SETUPTOOLS=yes
22753    else
22754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22755$as_echo "no" >&6; }
22756        eval HAVE_PYMOD_SETUPTOOLS=no
22757        #
22758        if test -n ""
22759        then
22760            as_fn_error $? "failed to find required module setuptools" "$LINENO" 5
22761            exit 1
22762        fi
22763    fi
22764
22765
22766    if test -z $PYTHON;
22767    then
22768        if test -z "";
22769        then
22770            PYTHON="python3"
22771        else
22772            PYTHON=""
22773        fi
22774    fi
22775    PYTHON_NAME=`basename $PYTHON`
22776    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: numpy" >&5
22777$as_echo_n "checking $PYTHON_NAME module: numpy... " >&6; }
22778    $PYTHON -c "import numpy" 2>/dev/null
22779    if test $? -eq 0;
22780    then
22781        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22782$as_echo "yes" >&6; }
22783        eval HAVE_PYMOD_NUMPY=yes
22784    else
22785        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22786$as_echo "no" >&6; }
22787        eval HAVE_PYMOD_NUMPY=no
22788        #
22789        if test -n ""
22790        then
22791            as_fn_error $? "failed to find required module numpy" "$LINENO" 5
22792            exit 1
22793        fi
22794    fi
22795
22796
22797if test "x$HAVE_PYMOD_SETUPTOOLS" != xyes; then :
22798  sr_python_missing=${sr_python_missing}${sr_python_missing:+', '}setuptools
22799fi
22800if test "x$HAVE_PYMOD_NUMPY" != xyes; then :
22801  sr_python_missing=${sr_python_missing}${sr_python_missing:+', '}numpy
22802fi
22803
22804# The Python bindings use SWIG to generate code.
22805for ac_prog in swig swig3.0 swig2.0
22806do
22807  # Extract the first word of "$ac_prog", so it can be a program name with args.
22808set dummy $ac_prog; ac_word=$2
22809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22810$as_echo_n "checking for $ac_word... " >&6; }
22811if ${ac_cv_prog_SWIG+:} false; then :
22812  $as_echo_n "(cached) " >&6
22813else
22814  if test -n "$SWIG"; then
22815  ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
22816else
22817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22818for as_dir in $PATH
22819do
22820  IFS=$as_save_IFS
22821  test -z "$as_dir" && as_dir=.
22822    for ac_exec_ext in '' $ac_executable_extensions; do
22823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22824    ac_cv_prog_SWIG="$ac_prog"
22825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22826    break 2
22827  fi
22828done
22829  done
22830IFS=$as_save_IFS
22831
22832fi
22833fi
22834SWIG=$ac_cv_prog_SWIG
22835if test -n "$SWIG"; then
22836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22837$as_echo "$SWIG" >&6; }
22838else
22839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22840$as_echo "no" >&6; }
22841fi
22842
22843
22844  test -n "$SWIG" && break
22845done
22846
22847if test "x$SWIG" != x; then :
22848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SWIG version" >&5
22849$as_echo_n "checking for $SWIG version... " >&6; }
22850    SWIG_VERSION=`$SWIG -version 2>&1 | sed -n 's/SWIG Version //p'`
22851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION" >&5
22852$as_echo "$SWIG_VERSION" >&6; }
22853fi
22854if test "x$SWIG" = x; then :
22855  sr_python_missing=${sr_python_missing}${sr_python_missing:+', '}SWIG
22856fi
22857
22858if test -z "$sr_python_missing"; then :
22859  BINDINGS_PYTHON=$enable_python
22860else
22861  BINDINGS_PYTHON=no
22862fi
22863 if test "x$BINDINGS_PYTHON" = xyes; then
22864  BINDINGS_PYTHON_TRUE=
22865  BINDINGS_PYTHON_FALSE='#'
22866else
22867  BINDINGS_PYTHON_TRUE='#'
22868  BINDINGS_PYTHON_FALSE=
22869fi
22870
22871
22872#####################
22873##  Ruby bindings  ##
22874#####################
22875
22876if test "x$BINDINGS_CXX" = xyes; then :
22877  sr_ruby_missing=
22878else
22879  sr_ruby_missing='C++ bindings'
22880fi
22881
22882for ac_prog in "${RUBY-ruby}"
22883do
22884  # Extract the first word of "$ac_prog", so it can be a program name with args.
22885set dummy $ac_prog; ac_word=$2
22886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22887$as_echo_n "checking for $ac_word... " >&6; }
22888if ${ac_cv_path_RUBY+:} false; then :
22889  $as_echo_n "(cached) " >&6
22890else
22891  case $RUBY in
22892  [\\/]* | ?:[\\/]*)
22893  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
22894  ;;
22895  *)
22896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22897for as_dir in $PATH
22898do
22899  IFS=$as_save_IFS
22900  test -z "$as_dir" && as_dir=.
22901    for ac_exec_ext in '' $ac_executable_extensions; do
22902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22903    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
22904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22905    break 2
22906  fi
22907done
22908  done
22909IFS=$as_save_IFS
22910
22911  ;;
22912esac
22913fi
22914RUBY=$ac_cv_path_RUBY
22915if test -n "$RUBY"; then
22916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
22917$as_echo "$RUBY" >&6; }
22918else
22919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22920$as_echo "no" >&6; }
22921fi
22922
22923
22924  test -n "$RUBY" && break
22925done
22926
22927if test "x$RUBY" != x; then :
22928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby version" >&5
22929$as_echo_n "checking for Ruby version... " >&6; }
22930    RUBY_VERSION=`$RUBY -e 'puts RUBY_VERSION'`
22931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_VERSION" >&5
22932$as_echo "$RUBY_VERSION" >&6; }
22933    RUBY_DLEXT=`$RUBY -rrbconfig -e 'puts RbConfig::CONFIG["DLEXT"]'`
22934
22935fi
22936
22937if test "x$RUBY" = x; then :
22938  sr_ruby_missing=${sr_ruby_missing}${sr_ruby_missing:+', '}Ruby
22939fi
22940
22941# Extract major and minor version number of the Ruby interpreter.
22942sr_rbmajor=${RUBY_VERSION%%.*}
22943sr_rbminor=${RUBY_VERSION#*.}
22944sr_rbminor=${sr_rbminor%%.*}
22945
22946# The Ruby bindings need Ruby development files.
22947if test -n "$PKG_CONFIG" && \
22948    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby\""; } >&5
22949  ($PKG_CONFIG --exists --print-errors "ruby") 2>&5
22950  ac_status=$?
22951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22952  test $ac_status = 0; }; then
22953  	sr_have_ruby_dev=yes
22954	SR_PKGLIBS_RUBY=${SR_PKGLIBS_RUBY}${SR_PKGLIBS_RUBY:+' '}"ruby"
22955	sr_ruby_dev_version=`$PKG_CONFIG --modversion "ruby" 2>&5`
22956	sr_pkg_check_summary_append "ruby" "$sr_ruby_dev_version"
22957else
22958  	sr_pkg_check_summary_append "ruby" no
22959	if test -n "$PKG_CONFIG" && \
22960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-\$sr_rbmajor.\$sr_rbminor\""; } >&5
22961  ($PKG_CONFIG --exists --print-errors "ruby-$sr_rbmajor.$sr_rbminor") 2>&5
22962  ac_status=$?
22963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22964  test $ac_status = 0; }; then
22965  	sr_have_ruby_dev=yes
22966	SR_PKGLIBS_RUBY=${SR_PKGLIBS_RUBY}${SR_PKGLIBS_RUBY:+' '}"ruby-$sr_rbmajor.$sr_rbminor"
22967	sr_ruby_dev_version=`$PKG_CONFIG --modversion "ruby-$sr_rbmajor.$sr_rbminor" 2>&5`
22968	sr_pkg_check_summary_append "ruby-$sr_rbmajor.$sr_rbminor" "$sr_ruby_dev_version"
22969else
22970  	sr_pkg_check_summary_append "ruby-$sr_rbmajor.$sr_rbminor" no
22971	sr_have_ruby_dev=no sr_ruby_dev_version=
22972fi
22973
22974fi
22975
22976
22977if test "x$sr_have_ruby_dev" != xyes; then :
22978  sr_ruby_missing=${sr_ruby_missing}${sr_ruby_missing:+', '}Headers
22979fi
22980
22981# The Ruby bindings use SWIG >= 3.0.8 to generate code.
22982if test "x$SWIG" = x; then :
22983  sr_ruby_missing=${sr_ruby_missing}${sr_ruby_missing:+', '}SWIG
22984else
22985  as_arg_v1=$SWIG_VERSION
22986as_arg_v2="3.0.8"
22987awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
22988case $? in #(
22989  1) :
22990    sr_ruby_missing=${sr_ruby_missing}${sr_ruby_missing:+', '}'SWIG >= 3.0.8' ;; #(
22991  0) :
22992     ;; #(
22993  2) :
22994     ;; #(
22995  *) :
22996     ;;
22997esac
22998fi
22999
23000if test -z "$sr_ruby_missing"; then :
23001  BINDINGS_RUBY=$enable_ruby
23002else
23003  BINDINGS_RUBY=no
23004fi
23005 if test "x$BINDINGS_RUBY" = xyes; then
23006  BINDINGS_RUBY_TRUE=
23007  BINDINGS_RUBY_FALSE='#'
23008else
23009  BINDINGS_RUBY_TRUE='#'
23010  BINDINGS_RUBY_FALSE=
23011fi
23012
23013
23014####################
23015##  Java bindings ##
23016####################
23017
23018if test "x$BINDINGS_CXX" = xyes; then :
23019  sr_java_missing=
23020else
23021  sr_java_missing='C++ bindings'
23022fi
23023
23024# The Java bindings use SWIG to generate code.
23025if test "x$SWIG" = x; then :
23026  sr_java_missing=${sr_java_missing}${sr_java_missing:+', '}SWIG
23027fi
23028
23029# Find Java compiler and JNI includes for Java bindings.
23030# Extract the first word of "javac", so it can be a program name with args.
23031set dummy javac; ac_word=$2
23032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23033$as_echo_n "checking for $ac_word... " >&6; }
23034if ${ac_cv_prog_HAVE_JAVAC+:} false; then :
23035  $as_echo_n "(cached) " >&6
23036else
23037  if test -n "$HAVE_JAVAC"; then
23038  ac_cv_prog_HAVE_JAVAC="$HAVE_JAVAC" # Let the user override the test.
23039else
23040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23041for as_dir in $PATH
23042do
23043  IFS=$as_save_IFS
23044  test -z "$as_dir" && as_dir=.
23045    for ac_exec_ext in '' $ac_executable_extensions; do
23046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23047    ac_cv_prog_HAVE_JAVAC="yes"
23048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23049    break 2
23050  fi
23051done
23052  done
23053IFS=$as_save_IFS
23054
23055  test -z "$ac_cv_prog_HAVE_JAVAC" && ac_cv_prog_HAVE_JAVAC="no"
23056fi
23057fi
23058HAVE_JAVAC=$ac_cv_prog_HAVE_JAVAC
23059if test -n "$HAVE_JAVAC"; then
23060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_JAVAC" >&5
23061$as_echo "$HAVE_JAVAC" >&6; }
23062else
23063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23064$as_echo "no" >&6; }
23065fi
23066
23067
23068if test "x$HAVE_JAVAC" = xno; then :
23069  sr_java_missing=${sr_java_missing}${sr_java_missing:+', '}JavaC
23070fi
23071
23072
23073# Check whether --with-jni-include-path was given.
23074if test "${with_jni_include_path+set}" = set; then :
23075  withval=$with_jni_include_path; JNI_INCLUDE_DIRS=" $withval"
23076else
23077  JNI_INCLUDE_DIRS=
23078fi
23079
23080
23081JNI_CPPFLAGS=
23082if test "x$enable_java$HAVE_JAVAC" = xyesyes; then :
23083
23084
23085if test "x$JAVAPREFIX" = x; then :
23086  test "x$JAVAC" = x && for ac_prog in "gcj -C" guavac jikes javac
23087do
23088  # Extract the first word of "$ac_prog", so it can be a program name with args.
23089set dummy $ac_prog; ac_word=$2
23090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23091$as_echo_n "checking for $ac_word... " >&6; }
23092if ${ac_cv_prog_JAVAC+:} false; then :
23093  $as_echo_n "(cached) " >&6
23094else
23095  if test -n "$JAVAC"; then
23096  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23097else
23098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23099for as_dir in $PATH
23100do
23101  IFS=$as_save_IFS
23102  test -z "$as_dir" && as_dir=.
23103    for ac_exec_ext in '' $ac_executable_extensions; do
23104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23105    ac_cv_prog_JAVAC="$ac_prog"
23106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23107    break 2
23108  fi
23109done
23110  done
23111IFS=$as_save_IFS
23112
23113fi
23114fi
23115JAVAC=$ac_cv_prog_JAVAC
23116if test -n "$JAVAC"; then
23117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23118$as_echo "$JAVAC" >&6; }
23119else
23120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23121$as_echo "no" >&6; }
23122fi
23123
23124
23125  test -n "$JAVAC" && break
23126done
23127
23128else
23129  test "x$JAVAC" = x && for ac_prog in "gcj -C" guavac jikes javac
23130do
23131  # Extract the first word of "$ac_prog", so it can be a program name with args.
23132set dummy $ac_prog; ac_word=$2
23133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23134$as_echo_n "checking for $ac_word... " >&6; }
23135if ${ac_cv_prog_JAVAC+:} false; then :
23136  $as_echo_n "(cached) " >&6
23137else
23138  if test -n "$JAVAC"; then
23139  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23140else
23141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23142for as_dir in $JAVAPREFIX/bin
23143do
23144  IFS=$as_save_IFS
23145  test -z "$as_dir" && as_dir=.
23146    for ac_exec_ext in '' $ac_executable_extensions; do
23147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23148    ac_cv_prog_JAVAC="$ac_prog"
23149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23150    break 2
23151  fi
23152done
23153  done
23154IFS=$as_save_IFS
23155
23156fi
23157fi
23158JAVAC=$ac_cv_prog_JAVAC
23159if test -n "$JAVAC"; then
23160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23161$as_echo "$JAVAC" >&6; }
23162else
23163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23164$as_echo "no" >&6; }
23165fi
23166
23167
23168  test -n "$JAVAC" && break
23169done
23170
23171fi
23172test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
23173
23174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
23175$as_echo_n "checking if $JAVAC works... " >&6; }
23176if ${ac_cv_prog_javac_works+:} false; then :
23177  $as_echo_n "(cached) " >&6
23178else
23179
23180JAVA_TEST=Test.java
23181CLASS_TEST=Test.class
23182cat << \EOF > $JAVA_TEST
23183/* #line 23183 "configure" */
23184public class Test {
23185}
23186EOF
23187if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
23188  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23189  (eval $ac_try) 2>&5
23190  ac_status=$?
23191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23192  test $ac_status = 0; }; } >/dev/null 2>&1; then
23193  ac_cv_prog_javac_works=yes
23194else
23195  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23196  echo "configure: failed program was:" >&5
23197  cat $JAVA_TEST >&5
23198fi
23199rm -f $JAVA_TEST $CLASS_TEST
23200
23201fi
23202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
23203$as_echo "$ac_cv_prog_javac_works" >&6; }
23204
23205
23206	if test -z "$JNI_INCLUDE_DIRS" && test "x$cross_compiling" != xyes; then :
23207
23208		## Work around the totally broken logic in AX_JNI_INCLUDE_DIR:
23209		## If we can find jni.h without any special search path, skip
23210		## the execution of the broken macro to increase our chances of
23211		## success.
23212		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23213/* end confdefs.h.  */
23214#include <jni.h>
23215int
23216main ()
23217{
23218
23219  ;
23220  return 0;
23221}
23222_ACEOF
23223if ac_fn_cxx_try_compile "$LINENO"; then :
23224
23225else
23226
23227
23228
23229
23230JNI_INCLUDE_DIRS=""
23231
23232if test "x$JAVA_HOME" != x; then
23233	_JTOPDIR="$JAVA_HOME"
23234else
23235	if test "x$JAVAC" = x; then
23236		JAVAC=javac
23237	fi
23238	# Extract the first word of "$JAVAC", so it can be a program name with args.
23239set dummy $JAVAC; ac_word=$2
23240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23241$as_echo_n "checking for $ac_word... " >&6; }
23242if ${ac_cv_path__ACJNI_JAVAC+:} false; then :
23243  $as_echo_n "(cached) " >&6
23244else
23245  case $_ACJNI_JAVAC in
23246  [\\/]* | ?:[\\/]*)
23247  ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path.
23248  ;;
23249  *)
23250  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23251for as_dir in $PATH
23252do
23253  IFS=$as_save_IFS
23254  test -z "$as_dir" && as_dir=.
23255    for ac_exec_ext in '' $ac_executable_extensions; do
23256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23257    ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext"
23258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23259    break 2
23260  fi
23261done
23262  done
23263IFS=$as_save_IFS
23264
23265  test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="no"
23266  ;;
23267esac
23268fi
23269_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC
23270if test -n "$_ACJNI_JAVAC"; then
23271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ACJNI_JAVAC" >&5
23272$as_echo "$_ACJNI_JAVAC" >&6; }
23273else
23274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23275$as_echo "no" >&6; }
23276fi
23277
23278
23279	if test "x$_ACJNI_JAVAC" = xno; then
23280		as_fn_error $? "cannot find JDK; try setting \$JAVAC or \$JAVA_HOME" "$LINENO" 5
23281	fi
23282
23283# find the include directory relative to the javac executable
23284_cur=""$_ACJNI_JAVAC""
23285while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
23286        { $as_echo "$as_me:${as_lineno-$LINENO}: checking symlink for $_cur" >&5
23287$as_echo_n "checking symlink for $_cur... " >&6; }
23288        _slink=`ls -ld "$_cur" | sed 's/.* -> //'`
23289        case "$_slink" in
23290        /*) _cur="$_slink";;
23291        # 'X' avoids triggering unwanted echo options.
23292        *) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
23293        esac
23294        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cur" >&5
23295$as_echo "$_cur" >&6; }
23296done
23297_ACJNI_FOLLOWED="$_cur"
23298
23299	_JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
23300fi
23301
23302case "$host_os" in
23303        darwin*)        # Apple Java headers are inside the Xcode bundle.
23304            macos_version=$(sw_vers -productVersion | sed -n -e 's/^[0-9]*.\([0-9]*\).[0-9]*/\1/p')
23305            if [ "$macos_version" -gt "7" ]; then
23306                _JTOPDIR="$(xcrun --show-sdk-path)/System/Library/Frameworks/JavaVM.framework"
23307                _JINC="$_JTOPDIR/Headers"
23308            else
23309                _JTOPDIR="/System/Library/Frameworks/JavaVM.framework"
23310                _JINC="$_JTOPDIR/Headers"
23311            fi
23312            ;;
23313        *) _JINC="$_JTOPDIR/include";;
23314esac
23315$as_echo "$as_me:${as_lineno-$LINENO}: _JTOPDIR=$_JTOPDIR" >&5
23316$as_echo "$as_me:${as_lineno-$LINENO}: _JINC=$_JINC" >&5
23317
23318# On Mac OS X 10.6.4, jni.h is a symlink:
23319# /System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers/jni.h
23320# -> ../../CurrentJDK/Headers/jni.h.
23321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking jni headers" >&5
23322$as_echo_n "checking jni headers... " >&6; }
23323if ${ac_cv_jni_header_path+:} false; then :
23324  $as_echo_n "(cached) " >&6
23325else
23326
23327  if test -f "$_JINC/jni.h"; then
23328    ac_cv_jni_header_path="$_JINC"
23329    JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $ac_cv_jni_header_path"
23330  else
23331    _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
23332    if test -f "$_JTOPDIR/include/jni.h"; then
23333      ac_cv_jni_header_path="$_JTOPDIR/include"
23334      JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $ac_cv_jni_header_path"
23335    else
23336      ac_cv_jni_header_path=none
23337    fi
23338  fi
23339
23340fi
23341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jni_header_path" >&5
23342$as_echo "$ac_cv_jni_header_path" >&6; }
23343
23344# get the likely subdirectories for system specific java includes
23345case "$host_os" in
23346bsdi*)          _JNI_INC_SUBDIRS="bsdos";;
23347freebsd*)       _JNI_INC_SUBDIRS="freebsd";;
23348darwin*)        _JNI_INC_SUBDIRS="darwin";;
23349linux*)         _JNI_INC_SUBDIRS="linux genunix";;
23350osf*)           _JNI_INC_SUBDIRS="alpha";;
23351solaris*)       _JNI_INC_SUBDIRS="solaris";;
23352mingw*)		_JNI_INC_SUBDIRS="win32";;
23353cygwin*)	_JNI_INC_SUBDIRS="win32";;
23354*)              _JNI_INC_SUBDIRS="genunix";;
23355esac
23356
23357if test "x$ac_cv_jni_header_path" != "xnone"; then
23358  # add any subdirectories that are present
23359  for JINCSUBDIR in $_JNI_INC_SUBDIRS
23360  do
23361    if test -d "$_JTOPDIR/include/$JINCSUBDIR"; then
23362         JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$JINCSUBDIR"
23363    fi
23364  done
23365fi
23366
23367fi
23368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23369
23370fi
23371
23372fi
23373for sr_dir in $JNI_INCLUDE_DIRS
23374do
23375	JNI_CPPFLAGS=${JNI_CPPFLAGS}${JNI_CPPFLAGS:+' '}"-I$sr_dir"
23376done
23377
23378
23379sr_save_cppflags=$CPPFLAGS
23380CPPFLAGS=${CPPFLAGS}${CPPFLAGS:+' '}$JNI_CPPFLAGS
23381
23382ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
23383if test "x$ac_cv_header_jni_h" = xyes; then :
23384
23385else
23386  sr_java_missing=${sr_java_missing}${sr_java_missing:+', '}'JNI headers'
23387fi
23388
23389
23390CPPFLAGS=$sr_save_cppflags
23391
23392if test -z "$sr_java_missing"; then :
23393  BINDINGS_JAVA=$enable_java
23394else
23395  BINDINGS_JAVA=no
23396fi
23397 if test "x$BINDINGS_JAVA" = xyes; then
23398  BINDINGS_JAVA_TRUE=
23399  BINDINGS_JAVA_FALSE='#'
23400else
23401  BINDINGS_JAVA_TRUE='#'
23402  BINDINGS_JAVA_FALSE=
23403fi
23404
23405
23406##############################
23407##  Finalize configuration  ##
23408##############################
23409
23410# Add mandatory dependencies to module list.
23411SR_PKGLIBS=${SR_PKGLIBS}${SR_PKGLIBS:+' '}'libzip >= 0.10'
23412
23413
23414# Retrieve the compile and link flags for all modules combined.
23415# Also, bail out at this point if any module dependency is not met.
23416
23417pkg_failed=no
23418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSIGROK" >&5
23419$as_echo_n "checking for LIBSIGROK... " >&6; }
23420
23421if test -n "$LIBSIGROK_CFLAGS"; then
23422    pkg_cv_LIBSIGROK_CFLAGS="$LIBSIGROK_CFLAGS"
23423 elif test -n "$PKG_CONFIG"; then
23424    if test -n "$PKG_CONFIG" && \
23425    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32.0 \$SR_PKGLIBS\""; } >&5
23426  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32.0 $SR_PKGLIBS") 2>&5
23427  ac_status=$?
23428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23429  test $ac_status = 0; }; then
23430  pkg_cv_LIBSIGROK_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.32.0 $SR_PKGLIBS" 2>/dev/null`
23431		      test "x$?" != "x0" && pkg_failed=yes
23432else
23433  pkg_failed=yes
23434fi
23435 else
23436    pkg_failed=untried
23437fi
23438if test -n "$LIBSIGROK_LIBS"; then
23439    pkg_cv_LIBSIGROK_LIBS="$LIBSIGROK_LIBS"
23440 elif test -n "$PKG_CONFIG"; then
23441    if test -n "$PKG_CONFIG" && \
23442    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32.0 \$SR_PKGLIBS\""; } >&5
23443  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32.0 $SR_PKGLIBS") 2>&5
23444  ac_status=$?
23445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23446  test $ac_status = 0; }; then
23447  pkg_cv_LIBSIGROK_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.32.0 $SR_PKGLIBS" 2>/dev/null`
23448		      test "x$?" != "x0" && pkg_failed=yes
23449else
23450  pkg_failed=yes
23451fi
23452 else
23453    pkg_failed=untried
23454fi
23455
23456
23457
23458if test $pkg_failed = yes; then
23459   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23460$as_echo "no" >&6; }
23461
23462if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23463        _pkg_short_errors_supported=yes
23464else
23465        _pkg_short_errors_supported=no
23466fi
23467        if test $_pkg_short_errors_supported = yes; then
23468	        LIBSIGROK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.32.0 $SR_PKGLIBS" 2>&1`
23469        else
23470	        LIBSIGROK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.32.0 $SR_PKGLIBS" 2>&1`
23471        fi
23472	# Put the nasty error message in config.log where it belongs
23473	echo "$LIBSIGROK_PKG_ERRORS" >&5
23474
23475	as_fn_error $? "Package requirements (glib-2.0 >= 2.32.0 $SR_PKGLIBS) were not met:
23476
23477$LIBSIGROK_PKG_ERRORS
23478
23479Consider adjusting the PKG_CONFIG_PATH environment variable if you
23480installed software in a non-standard prefix.
23481
23482Alternatively, you may set the environment variables LIBSIGROK_CFLAGS
23483and LIBSIGROK_LIBS to avoid the need to call pkg-config.
23484See the pkg-config man page for more details." "$LINENO" 5
23485elif test $pkg_failed = untried; then
23486     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23487$as_echo "no" >&6; }
23488	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23490as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23491is in your PATH or set the PKG_CONFIG environment variable to the full
23492path to pkg-config.
23493
23494Alternatively, you may set the environment variables LIBSIGROK_CFLAGS
23495and LIBSIGROK_LIBS to avoid the need to call pkg-config.
23496See the pkg-config man page for more details.
23497
23498To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23499See \`config.log' for more details" "$LINENO" 5; }
23500else
23501	LIBSIGROK_CFLAGS=$pkg_cv_LIBSIGROK_CFLAGS
23502	LIBSIGROK_LIBS=$pkg_cv_LIBSIGROK_LIBS
23503        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23504$as_echo "yes" >&6; }
23505
23506fi
23507
23508pkg_failed=no
23509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TESTS" >&5
23510$as_echo_n "checking for TESTS... " >&6; }
23511
23512if test -n "$TESTS_CFLAGS"; then
23513    pkg_cv_TESTS_CFLAGS="$TESTS_CFLAGS"
23514 elif test -n "$PKG_CONFIG"; then
23515    if test -n "$PKG_CONFIG" && \
23516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SR_PKGLIBS_TESTS glib-2.0 \$SR_PKGLIBS\""; } >&5
23517  ($PKG_CONFIG --exists --print-errors "$SR_PKGLIBS_TESTS glib-2.0 $SR_PKGLIBS") 2>&5
23518  ac_status=$?
23519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23520  test $ac_status = 0; }; then
23521  pkg_cv_TESTS_CFLAGS=`$PKG_CONFIG --cflags "$SR_PKGLIBS_TESTS glib-2.0 $SR_PKGLIBS" 2>/dev/null`
23522		      test "x$?" != "x0" && pkg_failed=yes
23523else
23524  pkg_failed=yes
23525fi
23526 else
23527    pkg_failed=untried
23528fi
23529if test -n "$TESTS_LIBS"; then
23530    pkg_cv_TESTS_LIBS="$TESTS_LIBS"
23531 elif test -n "$PKG_CONFIG"; then
23532    if test -n "$PKG_CONFIG" && \
23533    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SR_PKGLIBS_TESTS glib-2.0 \$SR_PKGLIBS\""; } >&5
23534  ($PKG_CONFIG --exists --print-errors "$SR_PKGLIBS_TESTS glib-2.0 $SR_PKGLIBS") 2>&5
23535  ac_status=$?
23536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23537  test $ac_status = 0; }; then
23538  pkg_cv_TESTS_LIBS=`$PKG_CONFIG --libs "$SR_PKGLIBS_TESTS glib-2.0 $SR_PKGLIBS" 2>/dev/null`
23539		      test "x$?" != "x0" && pkg_failed=yes
23540else
23541  pkg_failed=yes
23542fi
23543 else
23544    pkg_failed=untried
23545fi
23546
23547
23548
23549if test $pkg_failed = yes; then
23550   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23551$as_echo "no" >&6; }
23552
23553if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23554        _pkg_short_errors_supported=yes
23555else
23556        _pkg_short_errors_supported=no
23557fi
23558        if test $_pkg_short_errors_supported = yes; then
23559	        TESTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SR_PKGLIBS_TESTS glib-2.0 $SR_PKGLIBS" 2>&1`
23560        else
23561	        TESTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SR_PKGLIBS_TESTS glib-2.0 $SR_PKGLIBS" 2>&1`
23562        fi
23563	# Put the nasty error message in config.log where it belongs
23564	echo "$TESTS_PKG_ERRORS" >&5
23565
23566	as_fn_error $? "Package requirements ($SR_PKGLIBS_TESTS glib-2.0 $SR_PKGLIBS) were not met:
23567
23568$TESTS_PKG_ERRORS
23569
23570Consider adjusting the PKG_CONFIG_PATH environment variable if you
23571installed software in a non-standard prefix.
23572
23573Alternatively, you may set the environment variables TESTS_CFLAGS
23574and TESTS_LIBS to avoid the need to call pkg-config.
23575See the pkg-config man page for more details." "$LINENO" 5
23576elif test $pkg_failed = untried; then
23577     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23578$as_echo "no" >&6; }
23579	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23581as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23582is in your PATH or set the PKG_CONFIG environment variable to the full
23583path to pkg-config.
23584
23585Alternatively, you may set the environment variables TESTS_CFLAGS
23586and TESTS_LIBS to avoid the need to call pkg-config.
23587See the pkg-config man page for more details.
23588
23589To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23590See \`config.log' for more details" "$LINENO" 5; }
23591else
23592	TESTS_CFLAGS=$pkg_cv_TESTS_CFLAGS
23593	TESTS_LIBS=$pkg_cv_TESTS_LIBS
23594        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23595$as_echo "yes" >&6; }
23596
23597fi
23598
23599# SR_PKGLIBS_CXX may be empty, so only invoke these checks when
23600# the C++ bindings are enabled.
23601if test -z "$BINDINGS_CXX_TRUE"; then :
23602
23603
23604pkg_failed=no
23605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSIGROKCXX" >&5
23606$as_echo_n "checking for LIBSIGROKCXX... " >&6; }
23607
23608if test -n "$LIBSIGROKCXX_CFLAGS"; then
23609    pkg_cv_LIBSIGROKCXX_CFLAGS="$LIBSIGROKCXX_CFLAGS"
23610 elif test -n "$PKG_CONFIG"; then
23611    if test -n "$PKG_CONFIG" && \
23612    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SR_PKGLIBS_CXX\""; } >&5
23613  ($PKG_CONFIG --exists --print-errors "$SR_PKGLIBS_CXX") 2>&5
23614  ac_status=$?
23615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23616  test $ac_status = 0; }; then
23617  pkg_cv_LIBSIGROKCXX_CFLAGS=`$PKG_CONFIG --cflags "$SR_PKGLIBS_CXX" 2>/dev/null`
23618		      test "x$?" != "x0" && pkg_failed=yes
23619else
23620  pkg_failed=yes
23621fi
23622 else
23623    pkg_failed=untried
23624fi
23625if test -n "$LIBSIGROKCXX_LIBS"; then
23626    pkg_cv_LIBSIGROKCXX_LIBS="$LIBSIGROKCXX_LIBS"
23627 elif test -n "$PKG_CONFIG"; then
23628    if test -n "$PKG_CONFIG" && \
23629    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SR_PKGLIBS_CXX\""; } >&5
23630  ($PKG_CONFIG --exists --print-errors "$SR_PKGLIBS_CXX") 2>&5
23631  ac_status=$?
23632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23633  test $ac_status = 0; }; then
23634  pkg_cv_LIBSIGROKCXX_LIBS=`$PKG_CONFIG --libs "$SR_PKGLIBS_CXX" 2>/dev/null`
23635		      test "x$?" != "x0" && pkg_failed=yes
23636else
23637  pkg_failed=yes
23638fi
23639 else
23640    pkg_failed=untried
23641fi
23642
23643
23644
23645if test $pkg_failed = yes; then
23646   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23647$as_echo "no" >&6; }
23648
23649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23650        _pkg_short_errors_supported=yes
23651else
23652        _pkg_short_errors_supported=no
23653fi
23654        if test $_pkg_short_errors_supported = yes; then
23655	        LIBSIGROKCXX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SR_PKGLIBS_CXX" 2>&1`
23656        else
23657	        LIBSIGROKCXX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SR_PKGLIBS_CXX" 2>&1`
23658        fi
23659	# Put the nasty error message in config.log where it belongs
23660	echo "$LIBSIGROKCXX_PKG_ERRORS" >&5
23661
23662	as_fn_error $? "Package requirements ($SR_PKGLIBS_CXX) were not met:
23663
23664$LIBSIGROKCXX_PKG_ERRORS
23665
23666Consider adjusting the PKG_CONFIG_PATH environment variable if you
23667installed software in a non-standard prefix.
23668
23669Alternatively, you may set the environment variables LIBSIGROKCXX_CFLAGS
23670and LIBSIGROKCXX_LIBS to avoid the need to call pkg-config.
23671See the pkg-config man page for more details." "$LINENO" 5
23672elif test $pkg_failed = untried; then
23673     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23674$as_echo "no" >&6; }
23675	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23677as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23678is in your PATH or set the PKG_CONFIG environment variable to the full
23679path to pkg-config.
23680
23681Alternatively, you may set the environment variables LIBSIGROKCXX_CFLAGS
23682and LIBSIGROKCXX_LIBS to avoid the need to call pkg-config.
23683See the pkg-config man page for more details.
23684
23685To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23686See \`config.log' for more details" "$LINENO" 5; }
23687else
23688	LIBSIGROKCXX_CFLAGS=$pkg_cv_LIBSIGROKCXX_CFLAGS
23689	LIBSIGROKCXX_LIBS=$pkg_cv_LIBSIGROKCXX_LIBS
23690        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23691$as_echo "yes" >&6; }
23692
23693fi
23694
23695pkg_failed=no
23696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYSIGROK" >&5
23697$as_echo_n "checking for PYSIGROK... " >&6; }
23698
23699if test -n "$PYSIGROK_CFLAGS"; then
23700    pkg_cv_PYSIGROK_CFLAGS="$PYSIGROK_CFLAGS"
23701 elif test -n "$PKG_CONFIG"; then
23702    if test -n "$PKG_CONFIG" && \
23703    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SR_PKGLIBS_PYTHON \$SR_PKGLIBS_CXX\""; } >&5
23704  ($PKG_CONFIG --exists --print-errors "$SR_PKGLIBS_PYTHON $SR_PKGLIBS_CXX") 2>&5
23705  ac_status=$?
23706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23707  test $ac_status = 0; }; then
23708  pkg_cv_PYSIGROK_CFLAGS=`$PKG_CONFIG --cflags "$SR_PKGLIBS_PYTHON $SR_PKGLIBS_CXX" 2>/dev/null`
23709		      test "x$?" != "x0" && pkg_failed=yes
23710else
23711  pkg_failed=yes
23712fi
23713 else
23714    pkg_failed=untried
23715fi
23716if test -n "$PYSIGROK_LIBS"; then
23717    pkg_cv_PYSIGROK_LIBS="$PYSIGROK_LIBS"
23718 elif test -n "$PKG_CONFIG"; then
23719    if test -n "$PKG_CONFIG" && \
23720    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SR_PKGLIBS_PYTHON \$SR_PKGLIBS_CXX\""; } >&5
23721  ($PKG_CONFIG --exists --print-errors "$SR_PKGLIBS_PYTHON $SR_PKGLIBS_CXX") 2>&5
23722  ac_status=$?
23723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23724  test $ac_status = 0; }; then
23725  pkg_cv_PYSIGROK_LIBS=`$PKG_CONFIG --libs "$SR_PKGLIBS_PYTHON $SR_PKGLIBS_CXX" 2>/dev/null`
23726		      test "x$?" != "x0" && pkg_failed=yes
23727else
23728  pkg_failed=yes
23729fi
23730 else
23731    pkg_failed=untried
23732fi
23733
23734
23735
23736if test $pkg_failed = yes; then
23737   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23738$as_echo "no" >&6; }
23739
23740if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23741        _pkg_short_errors_supported=yes
23742else
23743        _pkg_short_errors_supported=no
23744fi
23745        if test $_pkg_short_errors_supported = yes; then
23746	        PYSIGROK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SR_PKGLIBS_PYTHON $SR_PKGLIBS_CXX" 2>&1`
23747        else
23748	        PYSIGROK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SR_PKGLIBS_PYTHON $SR_PKGLIBS_CXX" 2>&1`
23749        fi
23750	# Put the nasty error message in config.log where it belongs
23751	echo "$PYSIGROK_PKG_ERRORS" >&5
23752
23753	as_fn_error $? "Package requirements ($SR_PKGLIBS_PYTHON $SR_PKGLIBS_CXX) were not met:
23754
23755$PYSIGROK_PKG_ERRORS
23756
23757Consider adjusting the PKG_CONFIG_PATH environment variable if you
23758installed software in a non-standard prefix.
23759
23760Alternatively, you may set the environment variables PYSIGROK_CFLAGS
23761and PYSIGROK_LIBS to avoid the need to call pkg-config.
23762See the pkg-config man page for more details." "$LINENO" 5
23763elif test $pkg_failed = untried; then
23764     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23765$as_echo "no" >&6; }
23766	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23768as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23769is in your PATH or set the PKG_CONFIG environment variable to the full
23770path to pkg-config.
23771
23772Alternatively, you may set the environment variables PYSIGROK_CFLAGS
23773and PYSIGROK_LIBS to avoid the need to call pkg-config.
23774See the pkg-config man page for more details.
23775
23776To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23777See \`config.log' for more details" "$LINENO" 5; }
23778else
23779	PYSIGROK_CFLAGS=$pkg_cv_PYSIGROK_CFLAGS
23780	PYSIGROK_LIBS=$pkg_cv_PYSIGROK_LIBS
23781        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23782$as_echo "yes" >&6; }
23783
23784fi
23785
23786pkg_failed=no
23787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RBSIGROK" >&5
23788$as_echo_n "checking for RBSIGROK... " >&6; }
23789
23790if test -n "$RBSIGROK_CFLAGS"; then
23791    pkg_cv_RBSIGROK_CFLAGS="$RBSIGROK_CFLAGS"
23792 elif test -n "$PKG_CONFIG"; then
23793    if test -n "$PKG_CONFIG" && \
23794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SR_PKGLIBS_RUBY \$SR_PKGLIBS_CXX\""; } >&5
23795  ($PKG_CONFIG --exists --print-errors "$SR_PKGLIBS_RUBY $SR_PKGLIBS_CXX") 2>&5
23796  ac_status=$?
23797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23798  test $ac_status = 0; }; then
23799  pkg_cv_RBSIGROK_CFLAGS=`$PKG_CONFIG --cflags "$SR_PKGLIBS_RUBY $SR_PKGLIBS_CXX" 2>/dev/null`
23800		      test "x$?" != "x0" && pkg_failed=yes
23801else
23802  pkg_failed=yes
23803fi
23804 else
23805    pkg_failed=untried
23806fi
23807if test -n "$RBSIGROK_LIBS"; then
23808    pkg_cv_RBSIGROK_LIBS="$RBSIGROK_LIBS"
23809 elif test -n "$PKG_CONFIG"; then
23810    if test -n "$PKG_CONFIG" && \
23811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SR_PKGLIBS_RUBY \$SR_PKGLIBS_CXX\""; } >&5
23812  ($PKG_CONFIG --exists --print-errors "$SR_PKGLIBS_RUBY $SR_PKGLIBS_CXX") 2>&5
23813  ac_status=$?
23814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23815  test $ac_status = 0; }; then
23816  pkg_cv_RBSIGROK_LIBS=`$PKG_CONFIG --libs "$SR_PKGLIBS_RUBY $SR_PKGLIBS_CXX" 2>/dev/null`
23817		      test "x$?" != "x0" && pkg_failed=yes
23818else
23819  pkg_failed=yes
23820fi
23821 else
23822    pkg_failed=untried
23823fi
23824
23825
23826
23827if test $pkg_failed = yes; then
23828   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23829$as_echo "no" >&6; }
23830
23831if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23832        _pkg_short_errors_supported=yes
23833else
23834        _pkg_short_errors_supported=no
23835fi
23836        if test $_pkg_short_errors_supported = yes; then
23837	        RBSIGROK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SR_PKGLIBS_RUBY $SR_PKGLIBS_CXX" 2>&1`
23838        else
23839	        RBSIGROK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SR_PKGLIBS_RUBY $SR_PKGLIBS_CXX" 2>&1`
23840        fi
23841	# Put the nasty error message in config.log where it belongs
23842	echo "$RBSIGROK_PKG_ERRORS" >&5
23843
23844	as_fn_error $? "Package requirements ($SR_PKGLIBS_RUBY $SR_PKGLIBS_CXX) were not met:
23845
23846$RBSIGROK_PKG_ERRORS
23847
23848Consider adjusting the PKG_CONFIG_PATH environment variable if you
23849installed software in a non-standard prefix.
23850
23851Alternatively, you may set the environment variables RBSIGROK_CFLAGS
23852and RBSIGROK_LIBS to avoid the need to call pkg-config.
23853See the pkg-config man page for more details." "$LINENO" 5
23854elif test $pkg_failed = untried; then
23855     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23856$as_echo "no" >&6; }
23857	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23859as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23860is in your PATH or set the PKG_CONFIG environment variable to the full
23861path to pkg-config.
23862
23863Alternatively, you may set the environment variables RBSIGROK_CFLAGS
23864and RBSIGROK_LIBS to avoid the need to call pkg-config.
23865See the pkg-config man page for more details.
23866
23867To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23868See \`config.log' for more details" "$LINENO" 5; }
23869else
23870	RBSIGROK_CFLAGS=$pkg_cv_RBSIGROK_CFLAGS
23871	RBSIGROK_LIBS=$pkg_cv_RBSIGROK_LIBS
23872        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23873$as_echo "yes" >&6; }
23874	RBSIGROK_EXTDIR="lib/$($PKG_CONFIG --variable=sitearch $SR_PKGLIBS_RUBY)/$($PKG_CONFIG --variable=RUBY_BASE_NAME $SR_PKGLIBS_RUBY)/vendor_ruby/$($PKG_CONFIG --variable=ruby_version $SR_PKGLIBS_RUBY)"
23875
23876fi
23877
23878fi
23879
23880# Check for specific libusb features, now that we know the CFLAGS.
23881ac_ext=c
23882ac_cpp='$CPP $CPPFLAGS'
23883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23885ac_compiler_gnu=$ac_cv_c_compiler_gnu
23886
23887sr_save_cflags=$CFLAGS
23888sr_save_libs=$LIBS
23889CFLAGS="$LIBSIGROK_CFLAGS $CFLAGS"
23890LIBS="$LIBSIGROK_LIBS $LIBS"
23891ac_fn_c_check_type "$LINENO" "libusb_os_handle" "ac_cv_type_libusb_os_handle" "#include <libusb.h>
23892"
23893if test "x$ac_cv_type_libusb_os_handle" = xyes; then :
23894
23895cat >>confdefs.h <<_ACEOF
23896#define HAVE_LIBUSB_OS_HANDLE 1
23897_ACEOF
23898
23899sr_have_libusb_os_handle=yes
23900else
23901  sr_have_libusb_os_handle=no
23902fi
23903
23904for ac_func in zip_discard
23905do :
23906  ac_fn_c_check_func "$LINENO" "zip_discard" "ac_cv_func_zip_discard"
23907if test "x$ac_cv_func_zip_discard" = xyes; then :
23908  cat >>confdefs.h <<_ACEOF
23909#define HAVE_ZIP_DISCARD 1
23910_ACEOF
23911
23912fi
23913done
23914
23915LIBS=$sr_save_libs
23916CFLAGS=$sr_save_cflags
23917
23918if test -z "$NEED_USB_TRUE"; then :
23919  case $sr_have_libusb_os_handle:$host_os in #(
23920  no:mingw*) :
23921    as_fn_error $? "Windows builds require the event-abstraction branch of libusb" "$LINENO" 5 ;; #(
23922  *) :
23923     ;;
23924esac
23925fi
23926
23927sr_glib_version=`$PKG_CONFIG --modversion glib-2.0 2>&5`
23928sr_libzip_version=`$PKG_CONFIG --modversion libzip 2>&5`
23929
23930
23931cat >>confdefs.h <<_ACEOF
23932#define CONF_LIBZIP_VERSION "$sr_libzip_version"
23933_ACEOF
23934
23935
23936cat >>confdefs.h <<_ACEOF
23937#define CONF_HOST "$host"
23938_ACEOF
23939
23940
23941ac_config_files="$ac_config_files Makefile libsigrok.pc bindings/cxx/libsigrokcxx.pc"
23942
23943
23944cat >confcache <<\_ACEOF
23945# This file is a shell script that caches the results of configure
23946# tests run on this system so they can be shared between configure
23947# scripts and configure runs, see configure's option --config-cache.
23948# It is not useful on other systems.  If it contains results you don't
23949# want to keep, you may remove or edit it.
23950#
23951# config.status only pays attention to the cache file if you give it
23952# the --recheck option to rerun configure.
23953#
23954# `ac_cv_env_foo' variables (set or unset) will be overridden when
23955# loading this file, other *unset* `ac_cv_foo' will be assigned the
23956# following values.
23957
23958_ACEOF
23959
23960# The following way of writing the cache mishandles newlines in values,
23961# but we know of no workaround that is simple, portable, and efficient.
23962# So, we kill variables containing newlines.
23963# Ultrix sh set writes to stderr and can't be redirected directly,
23964# and sets the high bit in the cache file unless we assign to the vars.
23965(
23966  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23967    eval ac_val=\$$ac_var
23968    case $ac_val in #(
23969    *${as_nl}*)
23970      case $ac_var in #(
23971      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23972$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23973      esac
23974      case $ac_var in #(
23975      _ | IFS | as_nl) ;; #(
23976      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23977      *) { eval $ac_var=; unset $ac_var;} ;;
23978      esac ;;
23979    esac
23980  done
23981
23982  (set) 2>&1 |
23983    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23984    *${as_nl}ac_space=\ *)
23985      # `set' does not quote correctly, so add quotes: double-quote
23986      # substitution turns \\\\ into \\, and sed turns \\ into \.
23987      sed -n \
23988	"s/'/'\\\\''/g;
23989	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23990      ;; #(
23991    *)
23992      # `set' quotes correctly as required by POSIX, so do not add quotes.
23993      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23994      ;;
23995    esac |
23996    sort
23997) |
23998  sed '
23999     /^ac_cv_env_/b end
24000     t clear
24001     :clear
24002     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24003     t end
24004     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24005     :end' >>confcache
24006if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24007  if test -w "$cache_file"; then
24008    if test "x$cache_file" != "x/dev/null"; then
24009      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24010$as_echo "$as_me: updating cache $cache_file" >&6;}
24011      if test ! -f "$cache_file" || test -h "$cache_file"; then
24012	cat confcache >"$cache_file"
24013      else
24014        case $cache_file in #(
24015        */* | ?:*)
24016	  mv -f confcache "$cache_file"$$ &&
24017	  mv -f "$cache_file"$$ "$cache_file" ;; #(
24018        *)
24019	  mv -f confcache "$cache_file" ;;
24020	esac
24021      fi
24022    fi
24023  else
24024    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24025$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24026  fi
24027fi
24028rm -f confcache
24029
24030test "x$prefix" = xNONE && prefix=$ac_default_prefix
24031# Let make expand exec_prefix.
24032test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24033
24034DEFS=-DHAVE_CONFIG_H
24035
24036ac_libobjs=
24037ac_ltlibobjs=
24038U=
24039for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24040  # 1. Remove the extension, and $U if already installed.
24041  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24042  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24043  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24044  #    will be set to the directory where LIBOBJS objects are built.
24045  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24046  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24047done
24048LIBOBJS=$ac_libobjs
24049
24050LTLIBOBJS=$ac_ltlibobjs
24051
24052
24053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24054$as_echo_n "checking that generated files are newer than configure... " >&6; }
24055   if test -n "$am_sleep_pid"; then
24056     # Hide warnings about reused PIDs.
24057     wait $am_sleep_pid 2>/dev/null
24058   fi
24059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24060$as_echo "done" >&6; }
24061 if test -n "$EXEEXT"; then
24062  am__EXEEXT_TRUE=
24063  am__EXEEXT_FALSE='#'
24064else
24065  am__EXEEXT_TRUE='#'
24066  am__EXEEXT_FALSE=
24067fi
24068
24069if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24070  as_fn_error $? "conditional \"AMDEP\" was never defined.
24071Usually this means the macro was only invoked conditionally." "$LINENO" 5
24072fi
24073if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24074  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24075Usually this means the macro was only invoked conditionally." "$LINENO" 5
24076fi
24077if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24078  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24079Usually this means the macro was only invoked conditionally." "$LINENO" 5
24080fi
24081if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24082  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24083Usually this means the macro was only invoked conditionally." "$LINENO" 5
24084fi
24085if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
24086  as_fn_error $? "conditional \"WIN32\" was never defined.
24087Usually this means the macro was only invoked conditionally." "$LINENO" 5
24088fi
24089if test -z "${NEED_USB_TRUE}" && test -z "${NEED_USB_FALSE}"; then
24090  as_fn_error $? "conditional \"NEED_USB\" was never defined.
24091Usually this means the macro was only invoked conditionally." "$LINENO" 5
24092fi
24093if test -z "${NEED_VISA_TRUE}" && test -z "${NEED_VISA_FALSE}"; then
24094  as_fn_error $? "conditional \"NEED_VISA\" was never defined.
24095Usually this means the macro was only invoked conditionally." "$LINENO" 5
24096fi
24097if test -z "${NEED_GPIB_TRUE}" && test -z "${NEED_GPIB_FALSE}"; then
24098  as_fn_error $? "conditional \"NEED_GPIB\" was never defined.
24099Usually this means the macro was only invoked conditionally." "$LINENO" 5
24100fi
24101if test -z "${NEED_SERIAL_TRUE}" && test -z "${NEED_SERIAL_FALSE}"; then
24102  as_fn_error $? "conditional \"NEED_SERIAL\" was never defined.
24103Usually this means the macro was only invoked conditionally." "$LINENO" 5
24104fi
24105if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
24106  as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
24107Usually this means the macro was only invoked conditionally." "$LINENO" 5
24108fi
24109
24110if test -z "${NEED_RPC_TRUE}" && test -z "${NEED_RPC_FALSE}"; then
24111  as_fn_error $? "conditional \"NEED_RPC\" was never defined.
24112Usually this means the macro was only invoked conditionally." "$LINENO" 5
24113fi
24114if test -z "${HW_AGILENT_DMM_TRUE}" && test -z "${HW_AGILENT_DMM_FALSE}"; then
24115  as_fn_error $? "conditional \"HW_AGILENT_DMM\" was never defined.
24116Usually this means the macro was only invoked conditionally." "$LINENO" 5
24117fi
24118if test -z "${HW_APPA_55II_TRUE}" && test -z "${HW_APPA_55II_FALSE}"; then
24119  as_fn_error $? "conditional \"HW_APPA_55II\" was never defined.
24120Usually this means the macro was only invoked conditionally." "$LINENO" 5
24121fi
24122if test -z "${HW_ARACHNID_LABS_RE_LOAD_PRO_TRUE}" && test -z "${HW_ARACHNID_LABS_RE_LOAD_PRO_FALSE}"; then
24123  as_fn_error $? "conditional \"HW_ARACHNID_LABS_RE_LOAD_PRO\" was never defined.
24124Usually this means the macro was only invoked conditionally." "$LINENO" 5
24125fi
24126if test -z "${HW_ASIX_SIGMA_TRUE}" && test -z "${HW_ASIX_SIGMA_FALSE}"; then
24127  as_fn_error $? "conditional \"HW_ASIX_SIGMA\" was never defined.
24128Usually this means the macro was only invoked conditionally." "$LINENO" 5
24129fi
24130if test -z "${HW_ATTEN_PPS3XXX_TRUE}" && test -z "${HW_ATTEN_PPS3XXX_FALSE}"; then
24131  as_fn_error $? "conditional \"HW_ATTEN_PPS3XXX\" was never defined.
24132Usually this means the macro was only invoked conditionally." "$LINENO" 5
24133fi
24134if test -z "${HW_BAYLIBRE_ACME_TRUE}" && test -z "${HW_BAYLIBRE_ACME_FALSE}"; then
24135  as_fn_error $? "conditional \"HW_BAYLIBRE_ACME\" was never defined.
24136Usually this means the macro was only invoked conditionally." "$LINENO" 5
24137fi
24138if test -z "${HW_BEAGLELOGIC_TRUE}" && test -z "${HW_BEAGLELOGIC_FALSE}"; then
24139  as_fn_error $? "conditional \"HW_BEAGLELOGIC\" was never defined.
24140Usually this means the macro was only invoked conditionally." "$LINENO" 5
24141fi
24142if test -z "${HW_BRYMEN_DMM_TRUE}" && test -z "${HW_BRYMEN_DMM_FALSE}"; then
24143  as_fn_error $? "conditional \"HW_BRYMEN_DMM\" was never defined.
24144Usually this means the macro was only invoked conditionally." "$LINENO" 5
24145fi
24146if test -z "${HW_CEM_DT_885X_TRUE}" && test -z "${HW_CEM_DT_885X_FALSE}"; then
24147  as_fn_error $? "conditional \"HW_CEM_DT_885X\" was never defined.
24148Usually this means the macro was only invoked conditionally." "$LINENO" 5
24149fi
24150if test -z "${HW_CENTER_3XX_TRUE}" && test -z "${HW_CENTER_3XX_FALSE}"; then
24151  as_fn_error $? "conditional \"HW_CENTER_3XX\" was never defined.
24152Usually this means the macro was only invoked conditionally." "$LINENO" 5
24153fi
24154if test -z "${HW_CHRONOVU_LA_TRUE}" && test -z "${HW_CHRONOVU_LA_FALSE}"; then
24155  as_fn_error $? "conditional \"HW_CHRONOVU_LA\" was never defined.
24156Usually this means the macro was only invoked conditionally." "$LINENO" 5
24157fi
24158if test -z "${HW_COLEAD_SLM_TRUE}" && test -z "${HW_COLEAD_SLM_FALSE}"; then
24159  as_fn_error $? "conditional \"HW_COLEAD_SLM\" was never defined.
24160Usually this means the macro was only invoked conditionally." "$LINENO" 5
24161fi
24162if test -z "${HW_CONRAD_DIGI_35_CPU_TRUE}" && test -z "${HW_CONRAD_DIGI_35_CPU_FALSE}"; then
24163  as_fn_error $? "conditional \"HW_CONRAD_DIGI_35_CPU\" was never defined.
24164Usually this means the macro was only invoked conditionally." "$LINENO" 5
24165fi
24166if test -z "${HW_DEMO_TRUE}" && test -z "${HW_DEMO_FALSE}"; then
24167  as_fn_error $? "conditional \"HW_DEMO\" was never defined.
24168Usually this means the macro was only invoked conditionally." "$LINENO" 5
24169fi
24170if test -z "${HW_DREAMSOURCELAB_DSLOGIC_TRUE}" && test -z "${HW_DREAMSOURCELAB_DSLOGIC_FALSE}"; then
24171  as_fn_error $? "conditional \"HW_DREAMSOURCELAB_DSLOGIC\" was never defined.
24172Usually this means the macro was only invoked conditionally." "$LINENO" 5
24173fi
24174if test -z "${HW_FLUKE_45_TRUE}" && test -z "${HW_FLUKE_45_FALSE}"; then
24175  as_fn_error $? "conditional \"HW_FLUKE_45\" was never defined.
24176Usually this means the macro was only invoked conditionally." "$LINENO" 5
24177fi
24178if test -z "${HW_FLUKE_DMM_TRUE}" && test -z "${HW_FLUKE_DMM_FALSE}"; then
24179  as_fn_error $? "conditional \"HW_FLUKE_DMM\" was never defined.
24180Usually this means the macro was only invoked conditionally." "$LINENO" 5
24181fi
24182if test -z "${HW_FTDI_LA_TRUE}" && test -z "${HW_FTDI_LA_FALSE}"; then
24183  as_fn_error $? "conditional \"HW_FTDI_LA\" was never defined.
24184Usually this means the macro was only invoked conditionally." "$LINENO" 5
24185fi
24186if test -z "${HW_FX2LAFW_TRUE}" && test -z "${HW_FX2LAFW_FALSE}"; then
24187  as_fn_error $? "conditional \"HW_FX2LAFW\" was never defined.
24188Usually this means the macro was only invoked conditionally." "$LINENO" 5
24189fi
24190if test -z "${HW_GMC_MH_1X_2X_TRUE}" && test -z "${HW_GMC_MH_1X_2X_FALSE}"; then
24191  as_fn_error $? "conditional \"HW_GMC_MH_1X_2X\" was never defined.
24192Usually this means the macro was only invoked conditionally." "$LINENO" 5
24193fi
24194if test -z "${HW_GWINSTEK_GDS_800_TRUE}" && test -z "${HW_GWINSTEK_GDS_800_FALSE}"; then
24195  as_fn_error $? "conditional \"HW_GWINSTEK_GDS_800\" was never defined.
24196Usually this means the macro was only invoked conditionally." "$LINENO" 5
24197fi
24198if test -z "${HW_GWINSTEK_GPD_TRUE}" && test -z "${HW_GWINSTEK_GPD_FALSE}"; then
24199  as_fn_error $? "conditional \"HW_GWINSTEK_GPD\" was never defined.
24200Usually this means the macro was only invoked conditionally." "$LINENO" 5
24201fi
24202if test -z "${HW_HAMEG_HMO_TRUE}" && test -z "${HW_HAMEG_HMO_FALSE}"; then
24203  as_fn_error $? "conditional \"HW_HAMEG_HMO\" was never defined.
24204Usually this means the macro was only invoked conditionally." "$LINENO" 5
24205fi
24206if test -z "${HW_HANTEK_4032L_TRUE}" && test -z "${HW_HANTEK_4032L_FALSE}"; then
24207  as_fn_error $? "conditional \"HW_HANTEK_4032L\" was never defined.
24208Usually this means the macro was only invoked conditionally." "$LINENO" 5
24209fi
24210if test -z "${HW_HANTEK_6XXX_TRUE}" && test -z "${HW_HANTEK_6XXX_FALSE}"; then
24211  as_fn_error $? "conditional \"HW_HANTEK_6XXX\" was never defined.
24212Usually this means the macro was only invoked conditionally." "$LINENO" 5
24213fi
24214if test -z "${HW_HANTEK_DSO_TRUE}" && test -z "${HW_HANTEK_DSO_FALSE}"; then
24215  as_fn_error $? "conditional \"HW_HANTEK_DSO\" was never defined.
24216Usually this means the macro was only invoked conditionally." "$LINENO" 5
24217fi
24218if test -z "${HW_HP_3457A_TRUE}" && test -z "${HW_HP_3457A_FALSE}"; then
24219  as_fn_error $? "conditional \"HW_HP_3457A\" was never defined.
24220Usually this means the macro was only invoked conditionally." "$LINENO" 5
24221fi
24222if test -z "${HW_HP_3478A_TRUE}" && test -z "${HW_HP_3478A_FALSE}"; then
24223  as_fn_error $? "conditional \"HW_HP_3478A\" was never defined.
24224Usually this means the macro was only invoked conditionally." "$LINENO" 5
24225fi
24226if test -z "${HW_HUNG_CHANG_DSO_2100_TRUE}" && test -z "${HW_HUNG_CHANG_DSO_2100_FALSE}"; then
24227  as_fn_error $? "conditional \"HW_HUNG_CHANG_DSO_2100\" was never defined.
24228Usually this means the macro was only invoked conditionally." "$LINENO" 5
24229fi
24230if test -z "${HW_IKALOGIC_SCANALOGIC2_TRUE}" && test -z "${HW_IKALOGIC_SCANALOGIC2_FALSE}"; then
24231  as_fn_error $? "conditional \"HW_IKALOGIC_SCANALOGIC2\" was never defined.
24232Usually this means the macro was only invoked conditionally." "$LINENO" 5
24233fi
24234if test -z "${HW_IKALOGIC_SCANAPLUS_TRUE}" && test -z "${HW_IKALOGIC_SCANAPLUS_FALSE}"; then
24235  as_fn_error $? "conditional \"HW_IKALOGIC_SCANAPLUS\" was never defined.
24236Usually this means the macro was only invoked conditionally." "$LINENO" 5
24237fi
24238if test -z "${HW_IPDBG_LA_TRUE}" && test -z "${HW_IPDBG_LA_FALSE}"; then
24239  as_fn_error $? "conditional \"HW_IPDBG_LA\" was never defined.
24240Usually this means the macro was only invoked conditionally." "$LINENO" 5
24241fi
24242if test -z "${HW_KECHENG_KC_330B_TRUE}" && test -z "${HW_KECHENG_KC_330B_FALSE}"; then
24243  as_fn_error $? "conditional \"HW_KECHENG_KC_330B\" was never defined.
24244Usually this means the macro was only invoked conditionally." "$LINENO" 5
24245fi
24246if test -z "${HW_KERN_SCALE_TRUE}" && test -z "${HW_KERN_SCALE_FALSE}"; then
24247  as_fn_error $? "conditional \"HW_KERN_SCALE\" was never defined.
24248Usually this means the macro was only invoked conditionally." "$LINENO" 5
24249fi
24250if test -z "${HW_KORAD_KAXXXXP_TRUE}" && test -z "${HW_KORAD_KAXXXXP_FALSE}"; then
24251  as_fn_error $? "conditional \"HW_KORAD_KAXXXXP\" was never defined.
24252Usually this means the macro was only invoked conditionally." "$LINENO" 5
24253fi
24254if test -z "${HW_LASCAR_EL_USB_TRUE}" && test -z "${HW_LASCAR_EL_USB_FALSE}"; then
24255  as_fn_error $? "conditional \"HW_LASCAR_EL_USB\" was never defined.
24256Usually this means the macro was only invoked conditionally." "$LINENO" 5
24257fi
24258if test -z "${HW_LECROY_LOGICSTUDIO_TRUE}" && test -z "${HW_LECROY_LOGICSTUDIO_FALSE}"; then
24259  as_fn_error $? "conditional \"HW_LECROY_LOGICSTUDIO\" was never defined.
24260Usually this means the macro was only invoked conditionally." "$LINENO" 5
24261fi
24262if test -z "${HW_LECROY_XSTREAM_TRUE}" && test -z "${HW_LECROY_XSTREAM_FALSE}"; then
24263  as_fn_error $? "conditional \"HW_LECROY_XSTREAM\" was never defined.
24264Usually this means the macro was only invoked conditionally." "$LINENO" 5
24265fi
24266if test -z "${HW_MANSON_HCS_3XXX_TRUE}" && test -z "${HW_MANSON_HCS_3XXX_FALSE}"; then
24267  as_fn_error $? "conditional \"HW_MANSON_HCS_3XXX\" was never defined.
24268Usually this means the macro was only invoked conditionally." "$LINENO" 5
24269fi
24270if test -z "${HW_MASTECH_MS6514_TRUE}" && test -z "${HW_MASTECH_MS6514_FALSE}"; then
24271  as_fn_error $? "conditional \"HW_MASTECH_MS6514\" was never defined.
24272Usually this means the macro was only invoked conditionally." "$LINENO" 5
24273fi
24274if test -z "${HW_MAYNUO_M97_TRUE}" && test -z "${HW_MAYNUO_M97_FALSE}"; then
24275  as_fn_error $? "conditional \"HW_MAYNUO_M97\" was never defined.
24276Usually this means the macro was only invoked conditionally." "$LINENO" 5
24277fi
24278if test -z "${HW_MIC_985XX_TRUE}" && test -z "${HW_MIC_985XX_FALSE}"; then
24279  as_fn_error $? "conditional \"HW_MIC_985XX\" was never defined.
24280Usually this means the macro was only invoked conditionally." "$LINENO" 5
24281fi
24282if test -z "${HW_MICROCHIP_PICKIT2_TRUE}" && test -z "${HW_MICROCHIP_PICKIT2_FALSE}"; then
24283  as_fn_error $? "conditional \"HW_MICROCHIP_PICKIT2\" was never defined.
24284Usually this means the macro was only invoked conditionally." "$LINENO" 5
24285fi
24286if test -z "${HW_MOOSHIMETER_DMM_TRUE}" && test -z "${HW_MOOSHIMETER_DMM_FALSE}"; then
24287  as_fn_error $? "conditional \"HW_MOOSHIMETER_DMM\" was never defined.
24288Usually this means the macro was only invoked conditionally." "$LINENO" 5
24289fi
24290if test -z "${HW_MOTECH_LPS_30X_TRUE}" && test -z "${HW_MOTECH_LPS_30X_FALSE}"; then
24291  as_fn_error $? "conditional \"HW_MOTECH_LPS_30X\" was never defined.
24292Usually this means the macro was only invoked conditionally." "$LINENO" 5
24293fi
24294if test -z "${HW_NORMA_DMM_TRUE}" && test -z "${HW_NORMA_DMM_FALSE}"; then
24295  as_fn_error $? "conditional \"HW_NORMA_DMM\" was never defined.
24296Usually this means the macro was only invoked conditionally." "$LINENO" 5
24297fi
24298if test -z "${HW_OPENBENCH_LOGIC_SNIFFER_TRUE}" && test -z "${HW_OPENBENCH_LOGIC_SNIFFER_FALSE}"; then
24299  as_fn_error $? "conditional \"HW_OPENBENCH_LOGIC_SNIFFER\" was never defined.
24300Usually this means the macro was only invoked conditionally." "$LINENO" 5
24301fi
24302if test -z "${HW_PCE_322A_TRUE}" && test -z "${HW_PCE_322A_FALSE}"; then
24303  as_fn_error $? "conditional \"HW_PCE_322A\" was never defined.
24304Usually this means the macro was only invoked conditionally." "$LINENO" 5
24305fi
24306if test -z "${HW_PIPISTRELLO_OLS_TRUE}" && test -z "${HW_PIPISTRELLO_OLS_FALSE}"; then
24307  as_fn_error $? "conditional \"HW_PIPISTRELLO_OLS\" was never defined.
24308Usually this means the macro was only invoked conditionally." "$LINENO" 5
24309fi
24310if test -z "${HW_RDTECH_DPS_TRUE}" && test -z "${HW_RDTECH_DPS_FALSE}"; then
24311  as_fn_error $? "conditional \"HW_RDTECH_DPS\" was never defined.
24312Usually this means the macro was only invoked conditionally." "$LINENO" 5
24313fi
24314if test -z "${HW_RIGOL_DS_TRUE}" && test -z "${HW_RIGOL_DS_FALSE}"; then
24315  as_fn_error $? "conditional \"HW_RIGOL_DS\" was never defined.
24316Usually this means the macro was only invoked conditionally." "$LINENO" 5
24317fi
24318if test -z "${HW_ROHDE_SCHWARZ_SME_0X_TRUE}" && test -z "${HW_ROHDE_SCHWARZ_SME_0X_FALSE}"; then
24319  as_fn_error $? "conditional \"HW_ROHDE_SCHWARZ_SME_0X\" was never defined.
24320Usually this means the macro was only invoked conditionally." "$LINENO" 5
24321fi
24322if test -z "${HW_SALEAE_LOGIC16_TRUE}" && test -z "${HW_SALEAE_LOGIC16_FALSE}"; then
24323  as_fn_error $? "conditional \"HW_SALEAE_LOGIC16\" was never defined.
24324Usually this means the macro was only invoked conditionally." "$LINENO" 5
24325fi
24326if test -z "${HW_SALEAE_LOGIC_PRO_TRUE}" && test -z "${HW_SALEAE_LOGIC_PRO_FALSE}"; then
24327  as_fn_error $? "conditional \"HW_SALEAE_LOGIC_PRO\" was never defined.
24328Usually this means the macro was only invoked conditionally." "$LINENO" 5
24329fi
24330if test -z "${HW_SCPI_DMM_TRUE}" && test -z "${HW_SCPI_DMM_FALSE}"; then
24331  as_fn_error $? "conditional \"HW_SCPI_DMM\" was never defined.
24332Usually this means the macro was only invoked conditionally." "$LINENO" 5
24333fi
24334if test -z "${HW_SCPI_PPS_TRUE}" && test -z "${HW_SCPI_PPS_FALSE}"; then
24335  as_fn_error $? "conditional \"HW_SCPI_PPS\" was never defined.
24336Usually this means the macro was only invoked conditionally." "$LINENO" 5
24337fi
24338if test -z "${HW_SERIAL_DMM_TRUE}" && test -z "${HW_SERIAL_DMM_FALSE}"; then
24339  as_fn_error $? "conditional \"HW_SERIAL_DMM\" was never defined.
24340Usually this means the macro was only invoked conditionally." "$LINENO" 5
24341fi
24342if test -z "${HW_SERIAL_LCR_TRUE}" && test -z "${HW_SERIAL_LCR_FALSE}"; then
24343  as_fn_error $? "conditional \"HW_SERIAL_LCR\" was never defined.
24344Usually this means the macro was only invoked conditionally." "$LINENO" 5
24345fi
24346if test -z "${HW_SIGLENT_SDS_TRUE}" && test -z "${HW_SIGLENT_SDS_FALSE}"; then
24347  as_fn_error $? "conditional \"HW_SIGLENT_SDS\" was never defined.
24348Usually this means the macro was only invoked conditionally." "$LINENO" 5
24349fi
24350if test -z "${HW_SYSCLK_LWLA_TRUE}" && test -z "${HW_SYSCLK_LWLA_FALSE}"; then
24351  as_fn_error $? "conditional \"HW_SYSCLK_LWLA\" was never defined.
24352Usually this means the macro was only invoked conditionally." "$LINENO" 5
24353fi
24354if test -z "${HW_SYSCLK_SLA5032_TRUE}" && test -z "${HW_SYSCLK_SLA5032_FALSE}"; then
24355  as_fn_error $? "conditional \"HW_SYSCLK_SLA5032\" was never defined.
24356Usually this means the macro was only invoked conditionally." "$LINENO" 5
24357fi
24358if test -z "${HW_TELEINFO_TRUE}" && test -z "${HW_TELEINFO_FALSE}"; then
24359  as_fn_error $? "conditional \"HW_TELEINFO\" was never defined.
24360Usually this means the macro was only invoked conditionally." "$LINENO" 5
24361fi
24362if test -z "${HW_TESTO_TRUE}" && test -z "${HW_TESTO_FALSE}"; then
24363  as_fn_error $? "conditional \"HW_TESTO\" was never defined.
24364Usually this means the macro was only invoked conditionally." "$LINENO" 5
24365fi
24366if test -z "${HW_TONDAJ_SL_814_TRUE}" && test -z "${HW_TONDAJ_SL_814_FALSE}"; then
24367  as_fn_error $? "conditional \"HW_TONDAJ_SL_814\" was never defined.
24368Usually this means the macro was only invoked conditionally." "$LINENO" 5
24369fi
24370if test -z "${HW_UNI_T_DMM_TRUE}" && test -z "${HW_UNI_T_DMM_FALSE}"; then
24371  as_fn_error $? "conditional \"HW_UNI_T_DMM\" was never defined.
24372Usually this means the macro was only invoked conditionally." "$LINENO" 5
24373fi
24374if test -z "${HW_UNI_T_UT32X_TRUE}" && test -z "${HW_UNI_T_UT32X_FALSE}"; then
24375  as_fn_error $? "conditional \"HW_UNI_T_UT32X\" was never defined.
24376Usually this means the macro was only invoked conditionally." "$LINENO" 5
24377fi
24378if test -z "${HW_YOKOGAWA_DLM_TRUE}" && test -z "${HW_YOKOGAWA_DLM_FALSE}"; then
24379  as_fn_error $? "conditional \"HW_YOKOGAWA_DLM\" was never defined.
24380Usually this means the macro was only invoked conditionally." "$LINENO" 5
24381fi
24382if test -z "${HW_ZEROPLUS_LOGIC_CUBE_TRUE}" && test -z "${HW_ZEROPLUS_LOGIC_CUBE_FALSE}"; then
24383  as_fn_error $? "conditional \"HW_ZEROPLUS_LOGIC_CUBE\" was never defined.
24384Usually this means the macro was only invoked conditionally." "$LINENO" 5
24385fi
24386if test -z "${HW_ZKETECH_EBD_USB_TRUE}" && test -z "${HW_ZKETECH_EBD_USB_FALSE}"; then
24387  as_fn_error $? "conditional \"HW_ZKETECH_EBD_USB\" was never defined.
24388Usually this means the macro was only invoked conditionally." "$LINENO" 5
24389fi
24390if test -z "${BINDINGS_CXX_TRUE}" && test -z "${BINDINGS_CXX_FALSE}"; then
24391  as_fn_error $? "conditional \"BINDINGS_CXX\" was never defined.
24392Usually this means the macro was only invoked conditionally." "$LINENO" 5
24393fi
24394if test -z "${BINDINGS_PYTHON_TRUE}" && test -z "${BINDINGS_PYTHON_FALSE}"; then
24395  as_fn_error $? "conditional \"BINDINGS_PYTHON\" was never defined.
24396Usually this means the macro was only invoked conditionally." "$LINENO" 5
24397fi
24398if test -z "${BINDINGS_RUBY_TRUE}" && test -z "${BINDINGS_RUBY_FALSE}"; then
24399  as_fn_error $? "conditional \"BINDINGS_RUBY\" was never defined.
24400Usually this means the macro was only invoked conditionally." "$LINENO" 5
24401fi
24402if test -z "${BINDINGS_JAVA_TRUE}" && test -z "${BINDINGS_JAVA_FALSE}"; then
24403  as_fn_error $? "conditional \"BINDINGS_JAVA\" was never defined.
24404Usually this means the macro was only invoked conditionally." "$LINENO" 5
24405fi
24406
24407: "${CONFIG_STATUS=./config.status}"
24408ac_write_fail=0
24409ac_clean_files_save=$ac_clean_files
24410ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24411{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24412$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24413as_write_fail=0
24414cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24415#! $SHELL
24416# Generated by $as_me.
24417# Run this file to recreate the current configuration.
24418# Compiler output produced by configure, useful for debugging
24419# configure, is in config.log if it exists.
24420
24421debug=false
24422ac_cs_recheck=false
24423ac_cs_silent=false
24424
24425SHELL=\${CONFIG_SHELL-$SHELL}
24426export SHELL
24427_ASEOF
24428cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24429## -------------------- ##
24430## M4sh Initialization. ##
24431## -------------------- ##
24432
24433# Be more Bourne compatible
24434DUALCASE=1; export DUALCASE # for MKS sh
24435if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24436  emulate sh
24437  NULLCMD=:
24438  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24439  # is contrary to our usage.  Disable this feature.
24440  alias -g '${1+"$@"}'='"$@"'
24441  setopt NO_GLOB_SUBST
24442else
24443  case `(set -o) 2>/dev/null` in #(
24444  *posix*) :
24445    set -o posix ;; #(
24446  *) :
24447     ;;
24448esac
24449fi
24450
24451
24452as_nl='
24453'
24454export as_nl
24455# Printing a long string crashes Solaris 7 /usr/bin/printf.
24456as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24457as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24458as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24459# Prefer a ksh shell builtin over an external printf program on Solaris,
24460# but without wasting forks for bash or zsh.
24461if test -z "$BASH_VERSION$ZSH_VERSION" \
24462    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24463  as_echo='print -r --'
24464  as_echo_n='print -rn --'
24465elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24466  as_echo='printf %s\n'
24467  as_echo_n='printf %s'
24468else
24469  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24470    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24471    as_echo_n='/usr/ucb/echo -n'
24472  else
24473    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24474    as_echo_n_body='eval
24475      arg=$1;
24476      case $arg in #(
24477      *"$as_nl"*)
24478	expr "X$arg" : "X\\(.*\\)$as_nl";
24479	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24480      esac;
24481      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24482    '
24483    export as_echo_n_body
24484    as_echo_n='sh -c $as_echo_n_body as_echo'
24485  fi
24486  export as_echo_body
24487  as_echo='sh -c $as_echo_body as_echo'
24488fi
24489
24490# The user is always right.
24491if test "${PATH_SEPARATOR+set}" != set; then
24492  PATH_SEPARATOR=:
24493  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24494    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24495      PATH_SEPARATOR=';'
24496  }
24497fi
24498
24499
24500# IFS
24501# We need space, tab and new line, in precisely that order.  Quoting is
24502# there to prevent editors from complaining about space-tab.
24503# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24504# splitting by setting IFS to empty value.)
24505IFS=" ""	$as_nl"
24506
24507# Find who we are.  Look in the path if we contain no directory separator.
24508as_myself=
24509case $0 in #((
24510  *[\\/]* ) as_myself=$0 ;;
24511  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24512for as_dir in $PATH
24513do
24514  IFS=$as_save_IFS
24515  test -z "$as_dir" && as_dir=.
24516    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24517  done
24518IFS=$as_save_IFS
24519
24520     ;;
24521esac
24522# We did not find ourselves, most probably we were run as `sh COMMAND'
24523# in which case we are not to be found in the path.
24524if test "x$as_myself" = x; then
24525  as_myself=$0
24526fi
24527if test ! -f "$as_myself"; then
24528  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24529  exit 1
24530fi
24531
24532# Unset variables that we do not need and which cause bugs (e.g. in
24533# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24534# suppresses any "Segmentation fault" message there.  '((' could
24535# trigger a bug in pdksh 5.2.14.
24536for as_var in BASH_ENV ENV MAIL MAILPATH
24537do eval test x\${$as_var+set} = xset \
24538  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24539done
24540PS1='$ '
24541PS2='> '
24542PS4='+ '
24543
24544# NLS nuisances.
24545LC_ALL=C
24546export LC_ALL
24547LANGUAGE=C
24548export LANGUAGE
24549
24550# CDPATH.
24551(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24552
24553
24554# as_fn_error STATUS ERROR [LINENO LOG_FD]
24555# ----------------------------------------
24556# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24557# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24558# script with STATUS, using 1 if that was 0.
24559as_fn_error ()
24560{
24561  as_status=$1; test $as_status -eq 0 && as_status=1
24562  if test "$4"; then
24563    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24564    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24565  fi
24566  $as_echo "$as_me: error: $2" >&2
24567  as_fn_exit $as_status
24568} # as_fn_error
24569
24570
24571# as_fn_set_status STATUS
24572# -----------------------
24573# Set $? to STATUS, without forking.
24574as_fn_set_status ()
24575{
24576  return $1
24577} # as_fn_set_status
24578
24579# as_fn_exit STATUS
24580# -----------------
24581# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24582as_fn_exit ()
24583{
24584  set +e
24585  as_fn_set_status $1
24586  exit $1
24587} # as_fn_exit
24588
24589# as_fn_unset VAR
24590# ---------------
24591# Portably unset VAR.
24592as_fn_unset ()
24593{
24594  { eval $1=; unset $1;}
24595}
24596as_unset=as_fn_unset
24597# as_fn_append VAR VALUE
24598# ----------------------
24599# Append the text in VALUE to the end of the definition contained in VAR. Take
24600# advantage of any shell optimizations that allow amortized linear growth over
24601# repeated appends, instead of the typical quadratic growth present in naive
24602# implementations.
24603if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24604  eval 'as_fn_append ()
24605  {
24606    eval $1+=\$2
24607  }'
24608else
24609  as_fn_append ()
24610  {
24611    eval $1=\$$1\$2
24612  }
24613fi # as_fn_append
24614
24615# as_fn_arith ARG...
24616# ------------------
24617# Perform arithmetic evaluation on the ARGs, and store the result in the
24618# global $as_val. Take advantage of shells that can avoid forks. The arguments
24619# must be portable across $(()) and expr.
24620if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24621  eval 'as_fn_arith ()
24622  {
24623    as_val=$(( $* ))
24624  }'
24625else
24626  as_fn_arith ()
24627  {
24628    as_val=`expr "$@" || test $? -eq 1`
24629  }
24630fi # as_fn_arith
24631
24632
24633if expr a : '\(a\)' >/dev/null 2>&1 &&
24634   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24635  as_expr=expr
24636else
24637  as_expr=false
24638fi
24639
24640if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24641  as_basename=basename
24642else
24643  as_basename=false
24644fi
24645
24646if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24647  as_dirname=dirname
24648else
24649  as_dirname=false
24650fi
24651
24652as_me=`$as_basename -- "$0" ||
24653$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24654	 X"$0" : 'X\(//\)$' \| \
24655	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24656$as_echo X/"$0" |
24657    sed '/^.*\/\([^/][^/]*\)\/*$/{
24658	    s//\1/
24659	    q
24660	  }
24661	  /^X\/\(\/\/\)$/{
24662	    s//\1/
24663	    q
24664	  }
24665	  /^X\/\(\/\).*/{
24666	    s//\1/
24667	    q
24668	  }
24669	  s/.*/./; q'`
24670
24671# Avoid depending upon Character Ranges.
24672as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24673as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24674as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24675as_cr_digits='0123456789'
24676as_cr_alnum=$as_cr_Letters$as_cr_digits
24677
24678ECHO_C= ECHO_N= ECHO_T=
24679case `echo -n x` in #(((((
24680-n*)
24681  case `echo 'xy\c'` in
24682  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
24683  xy)  ECHO_C='\c';;
24684  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24685       ECHO_T='	';;
24686  esac;;
24687*)
24688  ECHO_N='-n';;
24689esac
24690
24691rm -f conf$$ conf$$.exe conf$$.file
24692if test -d conf$$.dir; then
24693  rm -f conf$$.dir/conf$$.file
24694else
24695  rm -f conf$$.dir
24696  mkdir conf$$.dir 2>/dev/null
24697fi
24698if (echo >conf$$.file) 2>/dev/null; then
24699  if ln -s conf$$.file conf$$ 2>/dev/null; then
24700    as_ln_s='ln -s'
24701    # ... but there are two gotchas:
24702    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24703    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24704    # In both cases, we have to default to `cp -pR'.
24705    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24706      as_ln_s='cp -pR'
24707  elif ln conf$$.file conf$$ 2>/dev/null; then
24708    as_ln_s=ln
24709  else
24710    as_ln_s='cp -pR'
24711  fi
24712else
24713  as_ln_s='cp -pR'
24714fi
24715rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24716rmdir conf$$.dir 2>/dev/null
24717
24718
24719# as_fn_mkdir_p
24720# -------------
24721# Create "$as_dir" as a directory, including parents if necessary.
24722as_fn_mkdir_p ()
24723{
24724
24725  case $as_dir in #(
24726  -*) as_dir=./$as_dir;;
24727  esac
24728  test -d "$as_dir" || eval $as_mkdir_p || {
24729    as_dirs=
24730    while :; do
24731      case $as_dir in #(
24732      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24733      *) as_qdir=$as_dir;;
24734      esac
24735      as_dirs="'$as_qdir' $as_dirs"
24736      as_dir=`$as_dirname -- "$as_dir" ||
24737$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24738	 X"$as_dir" : 'X\(//\)[^/]' \| \
24739	 X"$as_dir" : 'X\(//\)$' \| \
24740	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24741$as_echo X"$as_dir" |
24742    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24743	    s//\1/
24744	    q
24745	  }
24746	  /^X\(\/\/\)[^/].*/{
24747	    s//\1/
24748	    q
24749	  }
24750	  /^X\(\/\/\)$/{
24751	    s//\1/
24752	    q
24753	  }
24754	  /^X\(\/\).*/{
24755	    s//\1/
24756	    q
24757	  }
24758	  s/.*/./; q'`
24759      test -d "$as_dir" && break
24760    done
24761    test -z "$as_dirs" || eval "mkdir $as_dirs"
24762  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24763
24764
24765} # as_fn_mkdir_p
24766if mkdir -p . 2>/dev/null; then
24767  as_mkdir_p='mkdir -p "$as_dir"'
24768else
24769  test -d ./-p && rmdir ./-p
24770  as_mkdir_p=false
24771fi
24772
24773
24774# as_fn_executable_p FILE
24775# -----------------------
24776# Test if FILE is an executable regular file.
24777as_fn_executable_p ()
24778{
24779  test -f "$1" && test -x "$1"
24780} # as_fn_executable_p
24781as_test_x='test -x'
24782as_executable_p=as_fn_executable_p
24783
24784# Sed expression to map a string onto a valid CPP name.
24785as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24786
24787# Sed expression to map a string onto a valid variable name.
24788as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24789
24790
24791exec 6>&1
24792## ----------------------------------- ##
24793## Main body of $CONFIG_STATUS script. ##
24794## ----------------------------------- ##
24795_ASEOF
24796test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24797
24798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24799# Save the log message, to keep $0 and so on meaningful, and to
24800# report actual input values of CONFIG_FILES etc. instead of their
24801# values after options handling.
24802ac_log="
24803This file was extended by libsigrok $as_me 0.5.2, which was
24804generated by GNU Autoconf 2.69.  Invocation command line was
24805
24806  CONFIG_FILES    = $CONFIG_FILES
24807  CONFIG_HEADERS  = $CONFIG_HEADERS
24808  CONFIG_LINKS    = $CONFIG_LINKS
24809  CONFIG_COMMANDS = $CONFIG_COMMANDS
24810  $ $0 $@
24811
24812on `(hostname || uname -n) 2>/dev/null | sed 1q`
24813"
24814
24815_ACEOF
24816
24817case $ac_config_files in *"
24818"*) set x $ac_config_files; shift; ac_config_files=$*;;
24819esac
24820
24821case $ac_config_headers in *"
24822"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24823esac
24824
24825
24826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24827# Files that config.status was made for.
24828config_files="$ac_config_files"
24829config_headers="$ac_config_headers"
24830config_commands="$ac_config_commands"
24831
24832_ACEOF
24833
24834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24835ac_cs_usage="\
24836\`$as_me' instantiates files and other configuration actions
24837from templates according to the current configuration.  Unless the files
24838and actions are specified as TAGs, all are instantiated by default.
24839
24840Usage: $0 [OPTION]... [TAG]...
24841
24842  -h, --help       print this help, then exit
24843  -V, --version    print version number and configuration settings, then exit
24844      --config     print configuration, then exit
24845  -q, --quiet, --silent
24846                   do not print progress messages
24847  -d, --debug      don't remove temporary files
24848      --recheck    update $as_me by reconfiguring in the same conditions
24849      --file=FILE[:TEMPLATE]
24850                   instantiate the configuration file FILE
24851      --header=FILE[:TEMPLATE]
24852                   instantiate the configuration header FILE
24853
24854Configuration files:
24855$config_files
24856
24857Configuration headers:
24858$config_headers
24859
24860Configuration commands:
24861$config_commands
24862
24863Report bugs to <sigrok-devel@lists.sourceforge.net>.
24864libsigrok home page: <http://www.sigrok.org>."
24865
24866_ACEOF
24867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24868ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24869ac_cs_version="\\
24870libsigrok config.status 0.5.2
24871configured by $0, generated by GNU Autoconf 2.69,
24872  with options \\"\$ac_cs_config\\"
24873
24874Copyright (C) 2012 Free Software Foundation, Inc.
24875This config.status script is free software; the Free Software Foundation
24876gives unlimited permission to copy, distribute and modify it."
24877
24878ac_pwd='$ac_pwd'
24879srcdir='$srcdir'
24880INSTALL='$INSTALL'
24881MKDIR_P='$MKDIR_P'
24882AWK='$AWK'
24883test -n "\$AWK" || AWK=awk
24884_ACEOF
24885
24886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24887# The default lists apply if the user does not specify any file.
24888ac_need_defaults=:
24889while test $# != 0
24890do
24891  case $1 in
24892  --*=?*)
24893    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24894    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24895    ac_shift=:
24896    ;;
24897  --*=)
24898    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24899    ac_optarg=
24900    ac_shift=:
24901    ;;
24902  *)
24903    ac_option=$1
24904    ac_optarg=$2
24905    ac_shift=shift
24906    ;;
24907  esac
24908
24909  case $ac_option in
24910  # Handling of the options.
24911  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24912    ac_cs_recheck=: ;;
24913  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24914    $as_echo "$ac_cs_version"; exit ;;
24915  --config | --confi | --conf | --con | --co | --c )
24916    $as_echo "$ac_cs_config"; exit ;;
24917  --debug | --debu | --deb | --de | --d | -d )
24918    debug=: ;;
24919  --file | --fil | --fi | --f )
24920    $ac_shift
24921    case $ac_optarg in
24922    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24923    '') as_fn_error $? "missing file argument" ;;
24924    esac
24925    as_fn_append CONFIG_FILES " '$ac_optarg'"
24926    ac_need_defaults=false;;
24927  --header | --heade | --head | --hea )
24928    $ac_shift
24929    case $ac_optarg in
24930    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24931    esac
24932    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24933    ac_need_defaults=false;;
24934  --he | --h)
24935    # Conflict between --help and --header
24936    as_fn_error $? "ambiguous option: \`$1'
24937Try \`$0 --help' for more information.";;
24938  --help | --hel | -h )
24939    $as_echo "$ac_cs_usage"; exit ;;
24940  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24941  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24942    ac_cs_silent=: ;;
24943
24944  # This is an error.
24945  -*) as_fn_error $? "unrecognized option: \`$1'
24946Try \`$0 --help' for more information." ;;
24947
24948  *) as_fn_append ac_config_targets " $1"
24949     ac_need_defaults=false ;;
24950
24951  esac
24952  shift
24953done
24954
24955ac_configure_extra_args=
24956
24957if $ac_cs_silent; then
24958  exec 6>/dev/null
24959  ac_configure_extra_args="$ac_configure_extra_args --silent"
24960fi
24961
24962_ACEOF
24963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24964if \$ac_cs_recheck; then
24965  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24966  shift
24967  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24968  CONFIG_SHELL='$SHELL'
24969  export CONFIG_SHELL
24970  exec "\$@"
24971fi
24972
24973_ACEOF
24974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24975exec 5>>config.log
24976{
24977  echo
24978  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24979## Running $as_me. ##
24980_ASBOX
24981  $as_echo "$ac_log"
24982} >&5
24983
24984_ACEOF
24985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24986#
24987# INIT-COMMANDS
24988#
24989AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
24990
24991
24992# The HP-UX ksh and POSIX shell print the target directory to stdout
24993# if CDPATH is set.
24994(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24995
24996sed_quote_subst='$sed_quote_subst'
24997double_quote_subst='$double_quote_subst'
24998delay_variable_subst='$delay_variable_subst'
24999macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25000macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25001enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25002enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25003pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25004enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25005shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25006SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25007ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25008PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25009host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25010host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25011host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25012build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25013build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25014build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25015SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25016Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25017GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25018EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25019FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25020LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25021NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25022LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25023max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25024ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25025exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25026lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25027lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25028lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25029lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25030lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25031reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25032reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25033OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25034deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25035file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25036file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25037want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25038DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25039sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25040AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25041AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25042archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25043STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25044RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25045old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25046old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25047old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25048lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25049CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25050CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25051compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25052GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25053lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25054lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25055lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25056lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25057lt_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"`'
25058lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25059nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25060lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25061lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25062objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25063MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25064lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25065lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25066lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25067lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25068lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25069need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25070MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25071DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25072NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25073LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25074OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25075OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25076libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25077shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25078extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25079archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25080enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25081export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25082whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25083compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25084old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25085old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25086archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25087archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25088module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25089module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25090with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25091allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25092no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25093hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25094hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25095hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25096hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25097hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25098hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25099hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25100inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25101link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25102always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25103export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25104exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25105include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25106prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25107postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25108file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25109variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25110need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25111need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25112version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25113runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25114shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25115shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25116libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25117library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25118soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25119install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25120postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25121postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25122finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25123finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25124hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25125sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25126configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25127configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25128hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25129enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25130enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25131enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25132old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25133striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25134compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25135predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25136postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25137predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25138postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25139compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25140LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25141reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25142reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25143old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25144compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25145GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25146lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25147lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25148lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25149lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25150lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25151archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25152enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25153export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25154whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25155compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25156old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25157old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25158archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25159archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25160module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25161module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25162with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25163allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25164no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25165hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25166hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25167hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25168hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25169hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25170hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25171hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25172inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25173link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25174always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25175export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25176exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25177include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25178prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25179postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25180file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25181hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25182compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25183predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25184postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25185predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25186postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25187compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25188
25189LTCC='$LTCC'
25190LTCFLAGS='$LTCFLAGS'
25191compiler='$compiler_DEFAULT'
25192
25193# A function that is used when there is no print builtin or printf.
25194func_fallback_echo ()
25195{
25196  eval 'cat <<_LTECHO_EOF
25197\$1
25198_LTECHO_EOF'
25199}
25200
25201# Quote evaled strings.
25202for var in SHELL \
25203ECHO \
25204PATH_SEPARATOR \
25205SED \
25206GREP \
25207EGREP \
25208FGREP \
25209LD \
25210NM \
25211LN_S \
25212lt_SP2NL \
25213lt_NL2SP \
25214reload_flag \
25215OBJDUMP \
25216deplibs_check_method \
25217file_magic_cmd \
25218file_magic_glob \
25219want_nocaseglob \
25220DLLTOOL \
25221sharedlib_from_linklib_cmd \
25222AR \
25223AR_FLAGS \
25224archiver_list_spec \
25225STRIP \
25226RANLIB \
25227CC \
25228CFLAGS \
25229compiler \
25230lt_cv_sys_global_symbol_pipe \
25231lt_cv_sys_global_symbol_to_cdecl \
25232lt_cv_sys_global_symbol_to_import \
25233lt_cv_sys_global_symbol_to_c_name_address \
25234lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25235lt_cv_nm_interface \
25236nm_file_list_spec \
25237lt_cv_truncate_bin \
25238lt_prog_compiler_no_builtin_flag \
25239lt_prog_compiler_pic \
25240lt_prog_compiler_wl \
25241lt_prog_compiler_static \
25242lt_cv_prog_compiler_c_o \
25243need_locks \
25244MANIFEST_TOOL \
25245DSYMUTIL \
25246NMEDIT \
25247LIPO \
25248OTOOL \
25249OTOOL64 \
25250shrext_cmds \
25251export_dynamic_flag_spec \
25252whole_archive_flag_spec \
25253compiler_needs_object \
25254with_gnu_ld \
25255allow_undefined_flag \
25256no_undefined_flag \
25257hardcode_libdir_flag_spec \
25258hardcode_libdir_separator \
25259exclude_expsyms \
25260include_expsyms \
25261file_list_spec \
25262variables_saved_for_relink \
25263libname_spec \
25264library_names_spec \
25265soname_spec \
25266install_override_mode \
25267finish_eval \
25268old_striplib \
25269striplib \
25270compiler_lib_search_dirs \
25271predep_objects \
25272postdep_objects \
25273predeps \
25274postdeps \
25275compiler_lib_search_path \
25276LD_CXX \
25277reload_flag_CXX \
25278compiler_CXX \
25279lt_prog_compiler_no_builtin_flag_CXX \
25280lt_prog_compiler_pic_CXX \
25281lt_prog_compiler_wl_CXX \
25282lt_prog_compiler_static_CXX \
25283lt_cv_prog_compiler_c_o_CXX \
25284export_dynamic_flag_spec_CXX \
25285whole_archive_flag_spec_CXX \
25286compiler_needs_object_CXX \
25287with_gnu_ld_CXX \
25288allow_undefined_flag_CXX \
25289no_undefined_flag_CXX \
25290hardcode_libdir_flag_spec_CXX \
25291hardcode_libdir_separator_CXX \
25292exclude_expsyms_CXX \
25293include_expsyms_CXX \
25294file_list_spec_CXX \
25295compiler_lib_search_dirs_CXX \
25296predep_objects_CXX \
25297postdep_objects_CXX \
25298predeps_CXX \
25299postdeps_CXX \
25300compiler_lib_search_path_CXX; do
25301    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25302    *[\\\\\\\`\\"\\\$]*)
25303      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25304      ;;
25305    *)
25306      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25307      ;;
25308    esac
25309done
25310
25311# Double-quote double-evaled strings.
25312for var in reload_cmds \
25313old_postinstall_cmds \
25314old_postuninstall_cmds \
25315old_archive_cmds \
25316extract_expsyms_cmds \
25317old_archive_from_new_cmds \
25318old_archive_from_expsyms_cmds \
25319archive_cmds \
25320archive_expsym_cmds \
25321module_cmds \
25322module_expsym_cmds \
25323export_symbols_cmds \
25324prelink_cmds \
25325postlink_cmds \
25326postinstall_cmds \
25327postuninstall_cmds \
25328finish_cmds \
25329sys_lib_search_path_spec \
25330configure_time_dlsearch_path \
25331configure_time_lt_sys_library_path \
25332reload_cmds_CXX \
25333old_archive_cmds_CXX \
25334old_archive_from_new_cmds_CXX \
25335old_archive_from_expsyms_cmds_CXX \
25336archive_cmds_CXX \
25337archive_expsym_cmds_CXX \
25338module_cmds_CXX \
25339module_expsym_cmds_CXX \
25340export_symbols_cmds_CXX \
25341prelink_cmds_CXX \
25342postlink_cmds_CXX; do
25343    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25344    *[\\\\\\\`\\"\\\$]*)
25345      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25346      ;;
25347    *)
25348      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25349      ;;
25350    esac
25351done
25352
25353ac_aux_dir='$ac_aux_dir'
25354
25355# See if we are running on zsh, and set the options that allow our
25356# commands through without removal of \ escapes INIT.
25357if test -n "\${ZSH_VERSION+set}"; then
25358   setopt NO_GLOB_SUBST
25359fi
25360
25361
25362    PACKAGE='$PACKAGE'
25363    VERSION='$VERSION'
25364    RM='$RM'
25365    ofile='$ofile'
25366
25367
25368
25369
25370
25371
25372_ACEOF
25373
25374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25375
25376# Handling of arguments.
25377for ac_config_target in $ac_config_targets
25378do
25379  case $ac_config_target in
25380    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25381    "include/libsigrok/version.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libsigrok/version.h" ;;
25382    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25383    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25384    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25385    "libsigrok.pc") CONFIG_FILES="$CONFIG_FILES libsigrok.pc" ;;
25386    "bindings/cxx/libsigrokcxx.pc") CONFIG_FILES="$CONFIG_FILES bindings/cxx/libsigrokcxx.pc" ;;
25387
25388  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25389  esac
25390done
25391
25392
25393# If the user did not use the arguments to specify the items to instantiate,
25394# then the envvar interface is used.  Set only those that are not.
25395# We use the long form for the default assignment because of an extremely
25396# bizarre bug on SunOS 4.1.3.
25397if $ac_need_defaults; then
25398  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25399  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25400  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25401fi
25402
25403# Have a temporary directory for convenience.  Make it in the build tree
25404# simply because there is no reason against having it here, and in addition,
25405# creating and moving files from /tmp can sometimes cause problems.
25406# Hook for its removal unless debugging.
25407# Note that there is a small window in which the directory will not be cleaned:
25408# after its creation but before its name has been assigned to `$tmp'.
25409$debug ||
25410{
25411  tmp= ac_tmp=
25412  trap 'exit_status=$?
25413  : "${ac_tmp:=$tmp}"
25414  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25415' 0
25416  trap 'as_fn_exit 1' 1 2 13 15
25417}
25418# Create a (secure) tmp directory for tmp files.
25419
25420{
25421  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25422  test -d "$tmp"
25423}  ||
25424{
25425  tmp=./conf$$-$RANDOM
25426  (umask 077 && mkdir "$tmp")
25427} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25428ac_tmp=$tmp
25429
25430# Set up the scripts for CONFIG_FILES section.
25431# No need to generate them if there are no CONFIG_FILES.
25432# This happens for instance with `./config.status config.h'.
25433if test -n "$CONFIG_FILES"; then
25434
25435
25436ac_cr=`echo X | tr X '\015'`
25437# On cygwin, bash can eat \r inside `` if the user requested igncr.
25438# But we know of no other shell where ac_cr would be empty at this
25439# point, so we can use a bashism as a fallback.
25440if test "x$ac_cr" = x; then
25441  eval ac_cr=\$\'\\r\'
25442fi
25443ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25444if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25445  ac_cs_awk_cr='\\r'
25446else
25447  ac_cs_awk_cr=$ac_cr
25448fi
25449
25450echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25451_ACEOF
25452
25453
25454{
25455  echo "cat >conf$$subs.awk <<_ACEOF" &&
25456  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25457  echo "_ACEOF"
25458} >conf$$subs.sh ||
25459  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25460ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25461ac_delim='%!_!# '
25462for ac_last_try in false false false false false :; do
25463  . ./conf$$subs.sh ||
25464    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25465
25466  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25467  if test $ac_delim_n = $ac_delim_num; then
25468    break
25469  elif $ac_last_try; then
25470    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25471  else
25472    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25473  fi
25474done
25475rm -f conf$$subs.sh
25476
25477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25478cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25479_ACEOF
25480sed -n '
25481h
25482s/^/S["/; s/!.*/"]=/
25483p
25484g
25485s/^[^!]*!//
25486:repl
25487t repl
25488s/'"$ac_delim"'$//
25489t delim
25490:nl
25491h
25492s/\(.\{148\}\)..*/\1/
25493t more1
25494s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25495p
25496n
25497b repl
25498:more1
25499s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25500p
25501g
25502s/.\{148\}//
25503t nl
25504:delim
25505h
25506s/\(.\{148\}\)..*/\1/
25507t more2
25508s/["\\]/\\&/g; s/^/"/; s/$/"/
25509p
25510b
25511:more2
25512s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25513p
25514g
25515s/.\{148\}//
25516t delim
25517' <conf$$subs.awk | sed '
25518/^[^""]/{
25519  N
25520  s/\n//
25521}
25522' >>$CONFIG_STATUS || ac_write_fail=1
25523rm -f conf$$subs.awk
25524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25525_ACAWK
25526cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25527  for (key in S) S_is_set[key] = 1
25528  FS = ""
25529
25530}
25531{
25532  line = $ 0
25533  nfields = split(line, field, "@")
25534  substed = 0
25535  len = length(field[1])
25536  for (i = 2; i < nfields; i++) {
25537    key = field[i]
25538    keylen = length(key)
25539    if (S_is_set[key]) {
25540      value = S[key]
25541      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25542      len += length(value) + length(field[++i])
25543      substed = 1
25544    } else
25545      len += 1 + keylen
25546  }
25547
25548  print line
25549}
25550
25551_ACAWK
25552_ACEOF
25553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25554if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25555  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25556else
25557  cat
25558fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25559  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25560_ACEOF
25561
25562# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25563# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25564# trailing colons and then remove the whole line if VPATH becomes empty
25565# (actually we leave an empty line to preserve line numbers).
25566if test "x$srcdir" = x.; then
25567  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
25568h
25569s///
25570s/^/:/
25571s/[	 ]*$/:/
25572s/:\$(srcdir):/:/g
25573s/:\${srcdir}:/:/g
25574s/:@srcdir@:/:/g
25575s/^:*//
25576s/:*$//
25577x
25578s/\(=[	 ]*\).*/\1/
25579G
25580s/\n//
25581s/^[^=]*=[	 ]*$//
25582}'
25583fi
25584
25585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25586fi # test -n "$CONFIG_FILES"
25587
25588# Set up the scripts for CONFIG_HEADERS section.
25589# No need to generate them if there are no CONFIG_HEADERS.
25590# This happens for instance with `./config.status Makefile'.
25591if test -n "$CONFIG_HEADERS"; then
25592cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25593BEGIN {
25594_ACEOF
25595
25596# Transform confdefs.h into an awk script `defines.awk', embedded as
25597# here-document in config.status, that substitutes the proper values into
25598# config.h.in to produce config.h.
25599
25600# Create a delimiter string that does not exist in confdefs.h, to ease
25601# handling of long lines.
25602ac_delim='%!_!# '
25603for ac_last_try in false false :; do
25604  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25605  if test -z "$ac_tt"; then
25606    break
25607  elif $ac_last_try; then
25608    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25609  else
25610    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25611  fi
25612done
25613
25614# For the awk script, D is an array of macro values keyed by name,
25615# likewise P contains macro parameters if any.  Preserve backslash
25616# newline sequences.
25617
25618ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25619sed -n '
25620s/.\{148\}/&'"$ac_delim"'/g
25621t rset
25622:rset
25623s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
25624t def
25625d
25626:def
25627s/\\$//
25628t bsnl
25629s/["\\]/\\&/g
25630s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25631D["\1"]=" \3"/p
25632s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
25633d
25634:bsnl
25635s/["\\]/\\&/g
25636s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25637D["\1"]=" \3\\\\\\n"\\/p
25638t cont
25639s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25640t cont
25641d
25642:cont
25643n
25644s/.\{148\}/&'"$ac_delim"'/g
25645t clear
25646:clear
25647s/\\$//
25648t bsnlc
25649s/["\\]/\\&/g; s/^/"/; s/$/"/p
25650d
25651:bsnlc
25652s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25653b cont
25654' <confdefs.h | sed '
25655s/'"$ac_delim"'/"\\\
25656"/g' >>$CONFIG_STATUS || ac_write_fail=1
25657
25658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25659  for (key in D) D_is_set[key] = 1
25660  FS = ""
25661}
25662/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25663  line = \$ 0
25664  split(line, arg, " ")
25665  if (arg[1] == "#") {
25666    defundef = arg[2]
25667    mac1 = arg[3]
25668  } else {
25669    defundef = substr(arg[1], 2)
25670    mac1 = arg[2]
25671  }
25672  split(mac1, mac2, "(") #)
25673  macro = mac2[1]
25674  prefix = substr(line, 1, index(line, defundef) - 1)
25675  if (D_is_set[macro]) {
25676    # Preserve the white space surrounding the "#".
25677    print prefix "define", macro P[macro] D[macro]
25678    next
25679  } else {
25680    # Replace #undef with comments.  This is necessary, for example,
25681    # in the case of _POSIX_SOURCE, which is predefined and required
25682    # on some systems where configure will not decide to define it.
25683    if (defundef == "undef") {
25684      print "/*", prefix defundef, macro, "*/"
25685      next
25686    }
25687  }
25688}
25689{ print }
25690_ACAWK
25691_ACEOF
25692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25693  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25694fi # test -n "$CONFIG_HEADERS"
25695
25696
25697eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25698shift
25699for ac_tag
25700do
25701  case $ac_tag in
25702  :[FHLC]) ac_mode=$ac_tag; continue;;
25703  esac
25704  case $ac_mode$ac_tag in
25705  :[FHL]*:*);;
25706  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25707  :[FH]-) ac_tag=-:-;;
25708  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25709  esac
25710  ac_save_IFS=$IFS
25711  IFS=:
25712  set x $ac_tag
25713  IFS=$ac_save_IFS
25714  shift
25715  ac_file=$1
25716  shift
25717
25718  case $ac_mode in
25719  :L) ac_source=$1;;
25720  :[FH])
25721    ac_file_inputs=
25722    for ac_f
25723    do
25724      case $ac_f in
25725      -) ac_f="$ac_tmp/stdin";;
25726      *) # Look for the file first in the build tree, then in the source tree
25727	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
25728	 # because $ac_f cannot contain `:'.
25729	 test -f "$ac_f" ||
25730	   case $ac_f in
25731	   [\\/$]*) false;;
25732	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25733	   esac ||
25734	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25735      esac
25736      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25737      as_fn_append ac_file_inputs " '$ac_f'"
25738    done
25739
25740    # Let's still pretend it is `configure' which instantiates (i.e., don't
25741    # use $as_me), people would be surprised to read:
25742    #    /* config.h.  Generated by config.status.  */
25743    configure_input='Generated from '`
25744	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25745	`' by configure.'
25746    if test x"$ac_file" != x-; then
25747      configure_input="$ac_file.  $configure_input"
25748      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25749$as_echo "$as_me: creating $ac_file" >&6;}
25750    fi
25751    # Neutralize special characters interpreted by sed in replacement strings.
25752    case $configure_input in #(
25753    *\&* | *\|* | *\\* )
25754       ac_sed_conf_input=`$as_echo "$configure_input" |
25755       sed 's/[\\\\&|]/\\\\&/g'`;; #(
25756    *) ac_sed_conf_input=$configure_input;;
25757    esac
25758
25759    case $ac_tag in
25760    *:-:* | *:-) cat >"$ac_tmp/stdin" \
25761      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25762    esac
25763    ;;
25764  esac
25765
25766  ac_dir=`$as_dirname -- "$ac_file" ||
25767$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25768	 X"$ac_file" : 'X\(//\)[^/]' \| \
25769	 X"$ac_file" : 'X\(//\)$' \| \
25770	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25771$as_echo X"$ac_file" |
25772    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25773	    s//\1/
25774	    q
25775	  }
25776	  /^X\(\/\/\)[^/].*/{
25777	    s//\1/
25778	    q
25779	  }
25780	  /^X\(\/\/\)$/{
25781	    s//\1/
25782	    q
25783	  }
25784	  /^X\(\/\).*/{
25785	    s//\1/
25786	    q
25787	  }
25788	  s/.*/./; q'`
25789  as_dir="$ac_dir"; as_fn_mkdir_p
25790  ac_builddir=.
25791
25792case "$ac_dir" in
25793.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25794*)
25795  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25796  # A ".." for each directory in $ac_dir_suffix.
25797  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25798  case $ac_top_builddir_sub in
25799  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25800  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25801  esac ;;
25802esac
25803ac_abs_top_builddir=$ac_pwd
25804ac_abs_builddir=$ac_pwd$ac_dir_suffix
25805# for backward compatibility:
25806ac_top_builddir=$ac_top_build_prefix
25807
25808case $srcdir in
25809  .)  # We are building in place.
25810    ac_srcdir=.
25811    ac_top_srcdir=$ac_top_builddir_sub
25812    ac_abs_top_srcdir=$ac_pwd ;;
25813  [\\/]* | ?:[\\/]* )  # Absolute name.
25814    ac_srcdir=$srcdir$ac_dir_suffix;
25815    ac_top_srcdir=$srcdir
25816    ac_abs_top_srcdir=$srcdir ;;
25817  *) # Relative name.
25818    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25819    ac_top_srcdir=$ac_top_build_prefix$srcdir
25820    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25821esac
25822ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25823
25824
25825  case $ac_mode in
25826  :F)
25827  #
25828  # CONFIG_FILE
25829  #
25830
25831  case $INSTALL in
25832  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25833  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25834  esac
25835  ac_MKDIR_P=$MKDIR_P
25836  case $MKDIR_P in
25837  [\\/$]* | ?:[\\/]* ) ;;
25838  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25839  esac
25840_ACEOF
25841
25842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25843# If the template does not know about datarootdir, expand it.
25844# FIXME: This hack should be removed a few years after 2.60.
25845ac_datarootdir_hack=; ac_datarootdir_seen=
25846ac_sed_dataroot='
25847/datarootdir/ {
25848  p
25849  q
25850}
25851/@datadir@/p
25852/@docdir@/p
25853/@infodir@/p
25854/@localedir@/p
25855/@mandir@/p'
25856case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25857*datarootdir*) ac_datarootdir_seen=yes;;
25858*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25859  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25860$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25861_ACEOF
25862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25863  ac_datarootdir_hack='
25864  s&@datadir@&$datadir&g
25865  s&@docdir@&$docdir&g
25866  s&@infodir@&$infodir&g
25867  s&@localedir@&$localedir&g
25868  s&@mandir@&$mandir&g
25869  s&\\\${datarootdir}&$datarootdir&g' ;;
25870esac
25871_ACEOF
25872
25873# Neutralize VPATH when `$srcdir' = `.'.
25874# Shell code in configure.ac might set extrasub.
25875# FIXME: do we really want to maintain this feature?
25876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25877ac_sed_extra="$ac_vpsub
25878$extrasub
25879_ACEOF
25880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25881:t
25882/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25883s|@configure_input@|$ac_sed_conf_input|;t t
25884s&@top_builddir@&$ac_top_builddir_sub&;t t
25885s&@top_build_prefix@&$ac_top_build_prefix&;t t
25886s&@srcdir@&$ac_srcdir&;t t
25887s&@abs_srcdir@&$ac_abs_srcdir&;t t
25888s&@top_srcdir@&$ac_top_srcdir&;t t
25889s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25890s&@builddir@&$ac_builddir&;t t
25891s&@abs_builddir@&$ac_abs_builddir&;t t
25892s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25893s&@INSTALL@&$ac_INSTALL&;t t
25894s&@MKDIR_P@&$ac_MKDIR_P&;t t
25895$ac_datarootdir_hack
25896"
25897eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25898  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25899
25900test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25901  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25902  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
25903      "$ac_tmp/out"`; test -z "$ac_out"; } &&
25904  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25905which seems to be undefined.  Please make sure it is defined" >&5
25906$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25907which seems to be undefined.  Please make sure it is defined" >&2;}
25908
25909  rm -f "$ac_tmp/stdin"
25910  case $ac_file in
25911  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25912  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25913  esac \
25914  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25915 ;;
25916  :H)
25917  #
25918  # CONFIG_HEADER
25919  #
25920  if test x"$ac_file" != x-; then
25921    {
25922      $as_echo "/* $configure_input  */" \
25923      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25924    } >"$ac_tmp/config.h" \
25925      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25926    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25927      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25928$as_echo "$as_me: $ac_file is unchanged" >&6;}
25929    else
25930      rm -f "$ac_file"
25931      mv "$ac_tmp/config.h" "$ac_file" \
25932	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
25933    fi
25934  else
25935    $as_echo "/* $configure_input  */" \
25936      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25937      || as_fn_error $? "could not create -" "$LINENO" 5
25938  fi
25939# Compute "$ac_file"'s index in $config_headers.
25940_am_arg="$ac_file"
25941_am_stamp_count=1
25942for _am_header in $config_headers :; do
25943  case $_am_header in
25944    $_am_arg | $_am_arg:* )
25945      break ;;
25946    * )
25947      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25948  esac
25949done
25950echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25951$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25952	 X"$_am_arg" : 'X\(//\)[^/]' \| \
25953	 X"$_am_arg" : 'X\(//\)$' \| \
25954	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25955$as_echo X"$_am_arg" |
25956    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25957	    s//\1/
25958	    q
25959	  }
25960	  /^X\(\/\/\)[^/].*/{
25961	    s//\1/
25962	    q
25963	  }
25964	  /^X\(\/\/\)$/{
25965	    s//\1/
25966	    q
25967	  }
25968	  /^X\(\/\).*/{
25969	    s//\1/
25970	    q
25971	  }
25972	  s/.*/./; q'`/stamp-h$_am_stamp_count
25973 ;;
25974
25975  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25976$as_echo "$as_me: executing $ac_file commands" >&6;}
25977 ;;
25978  esac
25979
25980
25981  case $ac_file$ac_mode in
25982    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25983  # Older Autoconf quotes --file arguments for eval, but not when files
25984  # are listed without --file.  Let's play safe and only enable the eval
25985  # if we detect the quoting.
25986  # TODO: see whether this extra hack can be removed once we start
25987  # requiring Autoconf 2.70 or later.
25988  case $CONFIG_FILES in #(
25989  *\'*) :
25990    eval set x "$CONFIG_FILES" ;; #(
25991  *) :
25992    set x $CONFIG_FILES ;; #(
25993  *) :
25994     ;;
25995esac
25996  shift
25997  # Used to flag and report bootstrapping failures.
25998  am_rc=0
25999  for am_mf
26000  do
26001    # Strip MF so we end up with the name of the file.
26002    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
26003    # Check whether this is an Automake generated Makefile which includes
26004    # dependency-tracking related rules and includes.
26005    # Grep'ing the whole file directly is not great: AIX grep has a line
26006    # limit of 2048, but all sed's we know have understand at least 4000.
26007    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26008      || continue
26009    am_dirpart=`$as_dirname -- "$am_mf" ||
26010$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26011	 X"$am_mf" : 'X\(//\)[^/]' \| \
26012	 X"$am_mf" : 'X\(//\)$' \| \
26013	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26014$as_echo X"$am_mf" |
26015    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26016	    s//\1/
26017	    q
26018	  }
26019	  /^X\(\/\/\)[^/].*/{
26020	    s//\1/
26021	    q
26022	  }
26023	  /^X\(\/\/\)$/{
26024	    s//\1/
26025	    q
26026	  }
26027	  /^X\(\/\).*/{
26028	    s//\1/
26029	    q
26030	  }
26031	  s/.*/./; q'`
26032    am_filepart=`$as_basename -- "$am_mf" ||
26033$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26034	 X"$am_mf" : 'X\(//\)$' \| \
26035	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26036$as_echo X/"$am_mf" |
26037    sed '/^.*\/\([^/][^/]*\)\/*$/{
26038	    s//\1/
26039	    q
26040	  }
26041	  /^X\/\(\/\/\)$/{
26042	    s//\1/
26043	    q
26044	  }
26045	  /^X\/\(\/\).*/{
26046	    s//\1/
26047	    q
26048	  }
26049	  s/.*/./; q'`
26050    { echo "$as_me:$LINENO: cd "$am_dirpart" \
26051      && sed -e '/# am--include-marker/d' "$am_filepart" \
26052        | $MAKE -f - am--depfiles" >&5
26053   (cd "$am_dirpart" \
26054      && sed -e '/# am--include-marker/d' "$am_filepart" \
26055        | $MAKE -f - am--depfiles) >&5 2>&5
26056   ac_status=$?
26057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058   (exit $ac_status); } || am_rc=$?
26059  done
26060  if test $am_rc -ne 0; then
26061    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26063as_fn_error $? "Something went wrong bootstrapping makefile fragments
26064    for automatic dependency tracking.  Try re-running configure with the
26065    '--disable-dependency-tracking' option to at least be able to build
26066    the package (albeit without support for automatic dependency tracking).
26067See \`config.log' for more details" "$LINENO" 5; }
26068  fi
26069  { am_dirpart=; unset am_dirpart;}
26070  { am_filepart=; unset am_filepart;}
26071  { am_mf=; unset am_mf;}
26072  { am_rc=; unset am_rc;}
26073  rm -f conftest-deps.mk
26074}
26075 ;;
26076    "libtool":C)
26077
26078    # See if we are running on zsh, and set the options that allow our
26079    # commands through without removal of \ escapes.
26080    if test -n "${ZSH_VERSION+set}"; then
26081      setopt NO_GLOB_SUBST
26082    fi
26083
26084    cfgfile=${ofile}T
26085    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26086    $RM "$cfgfile"
26087
26088    cat <<_LT_EOF >> "$cfgfile"
26089#! $SHELL
26090# Generated automatically by $as_me ($PACKAGE) $VERSION
26091# NOTE: Changes made to this file will be lost: look at ltmain.sh.
26092
26093# Provide generalized library-building support services.
26094# Written by Gordon Matzigkeit, 1996
26095
26096# Copyright (C) 2014 Free Software Foundation, Inc.
26097# This is free software; see the source for copying conditions.  There is NO
26098# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26099
26100# GNU Libtool is free software; you can redistribute it and/or modify
26101# it under the terms of the GNU General Public License as published by
26102# the Free Software Foundation; either version 2 of of the License, or
26103# (at your option) any later version.
26104#
26105# As a special exception to the GNU General Public License, if you
26106# distribute this file as part of a program or library that is built
26107# using GNU Libtool, you may include this file under the  same
26108# distribution terms that you use for the rest of that program.
26109#
26110# GNU Libtool is distributed in the hope that it will be useful, but
26111# WITHOUT ANY WARRANTY; without even the implied warranty of
26112# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26113# GNU General Public License for more details.
26114#
26115# You should have received a copy of the GNU General Public License
26116# along with this program.  If not, see <http://www.gnu.org/licenses/>.
26117
26118
26119# The names of the tagged configurations supported by this script.
26120available_tags='CXX '
26121
26122# Configured defaults for sys_lib_dlsearch_path munging.
26123: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26124
26125# ### BEGIN LIBTOOL CONFIG
26126
26127# Which release of libtool.m4 was used?
26128macro_version=$macro_version
26129macro_revision=$macro_revision
26130
26131# Whether or not to build shared libraries.
26132build_libtool_libs=$enable_shared
26133
26134# Whether or not to build static libraries.
26135build_old_libs=$enable_static
26136
26137# What type of objects to build.
26138pic_mode=$pic_mode
26139
26140# Whether or not to optimize for fast installation.
26141fast_install=$enable_fast_install
26142
26143# Shared archive member basename,for filename based shared library versioning on AIX.
26144shared_archive_member_spec=$shared_archive_member_spec
26145
26146# Shell to use when invoking shell scripts.
26147SHELL=$lt_SHELL
26148
26149# An echo program that protects backslashes.
26150ECHO=$lt_ECHO
26151
26152# The PATH separator for the build system.
26153PATH_SEPARATOR=$lt_PATH_SEPARATOR
26154
26155# The host system.
26156host_alias=$host_alias
26157host=$host
26158host_os=$host_os
26159
26160# The build system.
26161build_alias=$build_alias
26162build=$build
26163build_os=$build_os
26164
26165# A sed program that does not truncate output.
26166SED=$lt_SED
26167
26168# Sed that helps us avoid accidentally triggering echo(1) options like -n.
26169Xsed="\$SED -e 1s/^X//"
26170
26171# A grep program that handles long lines.
26172GREP=$lt_GREP
26173
26174# An ERE matcher.
26175EGREP=$lt_EGREP
26176
26177# A literal string matcher.
26178FGREP=$lt_FGREP
26179
26180# A BSD- or MS-compatible name lister.
26181NM=$lt_NM
26182
26183# Whether we need soft or hard links.
26184LN_S=$lt_LN_S
26185
26186# What is the maximum length of a command?
26187max_cmd_len=$max_cmd_len
26188
26189# Object file suffix (normally "o").
26190objext=$ac_objext
26191
26192# Executable file suffix (normally "").
26193exeext=$exeext
26194
26195# whether the shell understands "unset".
26196lt_unset=$lt_unset
26197
26198# turn spaces into newlines.
26199SP2NL=$lt_lt_SP2NL
26200
26201# turn newlines into spaces.
26202NL2SP=$lt_lt_NL2SP
26203
26204# convert \$build file names to \$host format.
26205to_host_file_cmd=$lt_cv_to_host_file_cmd
26206
26207# convert \$build files to toolchain format.
26208to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26209
26210# An object symbol dumper.
26211OBJDUMP=$lt_OBJDUMP
26212
26213# Method to check whether dependent libraries are shared objects.
26214deplibs_check_method=$lt_deplibs_check_method
26215
26216# Command to use when deplibs_check_method = "file_magic".
26217file_magic_cmd=$lt_file_magic_cmd
26218
26219# How to find potential files when deplibs_check_method = "file_magic".
26220file_magic_glob=$lt_file_magic_glob
26221
26222# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26223want_nocaseglob=$lt_want_nocaseglob
26224
26225# DLL creation program.
26226DLLTOOL=$lt_DLLTOOL
26227
26228# Command to associate shared and link libraries.
26229sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26230
26231# The archiver.
26232AR=$lt_AR
26233
26234# Flags to create an archive.
26235AR_FLAGS=$lt_AR_FLAGS
26236
26237# How to feed a file listing to the archiver.
26238archiver_list_spec=$lt_archiver_list_spec
26239
26240# A symbol stripping program.
26241STRIP=$lt_STRIP
26242
26243# Commands used to install an old-style archive.
26244RANLIB=$lt_RANLIB
26245old_postinstall_cmds=$lt_old_postinstall_cmds
26246old_postuninstall_cmds=$lt_old_postuninstall_cmds
26247
26248# Whether to use a lock for old archive extraction.
26249lock_old_archive_extraction=$lock_old_archive_extraction
26250
26251# A C compiler.
26252LTCC=$lt_CC
26253
26254# LTCC compiler flags.
26255LTCFLAGS=$lt_CFLAGS
26256
26257# Take the output of nm and produce a listing of raw symbols and C names.
26258global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26259
26260# Transform the output of nm in a proper C declaration.
26261global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26262
26263# Transform the output of nm into a list of symbols to manually relocate.
26264global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26265
26266# Transform the output of nm in a C name address pair.
26267global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26268
26269# Transform the output of nm in a C name address pair when lib prefix is needed.
26270global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26271
26272# The name lister interface.
26273nm_interface=$lt_lt_cv_nm_interface
26274
26275# Specify filename containing input files for \$NM.
26276nm_file_list_spec=$lt_nm_file_list_spec
26277
26278# The root where to search for dependent libraries,and where our libraries should be installed.
26279lt_sysroot=$lt_sysroot
26280
26281# Command to truncate a binary pipe.
26282lt_truncate_bin=$lt_lt_cv_truncate_bin
26283
26284# The name of the directory that contains temporary libtool files.
26285objdir=$objdir
26286
26287# Used to examine libraries when file_magic_cmd begins with "file".
26288MAGIC_CMD=$MAGIC_CMD
26289
26290# Must we lock files when doing compilation?
26291need_locks=$lt_need_locks
26292
26293# Manifest tool.
26294MANIFEST_TOOL=$lt_MANIFEST_TOOL
26295
26296# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26297DSYMUTIL=$lt_DSYMUTIL
26298
26299# Tool to change global to local symbols on Mac OS X.
26300NMEDIT=$lt_NMEDIT
26301
26302# Tool to manipulate fat objects and archives on Mac OS X.
26303LIPO=$lt_LIPO
26304
26305# ldd/readelf like tool for Mach-O binaries on Mac OS X.
26306OTOOL=$lt_OTOOL
26307
26308# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26309OTOOL64=$lt_OTOOL64
26310
26311# Old archive suffix (normally "a").
26312libext=$libext
26313
26314# Shared library suffix (normally ".so").
26315shrext_cmds=$lt_shrext_cmds
26316
26317# The commands to extract the exported symbol list from a shared archive.
26318extract_expsyms_cmds=$lt_extract_expsyms_cmds
26319
26320# Variables whose values should be saved in libtool wrapper scripts and
26321# restored at link time.
26322variables_saved_for_relink=$lt_variables_saved_for_relink
26323
26324# Do we need the "lib" prefix for modules?
26325need_lib_prefix=$need_lib_prefix
26326
26327# Do we need a version for libraries?
26328need_version=$need_version
26329
26330# Library versioning type.
26331version_type=$version_type
26332
26333# Shared library runtime path variable.
26334runpath_var=$runpath_var
26335
26336# Shared library path variable.
26337shlibpath_var=$shlibpath_var
26338
26339# Is shlibpath searched before the hard-coded library search path?
26340shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26341
26342# Format of library name prefix.
26343libname_spec=$lt_libname_spec
26344
26345# List of archive names.  First name is the real one, the rest are links.
26346# The last name is the one that the linker finds with -lNAME
26347library_names_spec=$lt_library_names_spec
26348
26349# The coded name of the library, if different from the real name.
26350soname_spec=$lt_soname_spec
26351
26352# Permission mode override for installation of shared libraries.
26353install_override_mode=$lt_install_override_mode
26354
26355# Command to use after installation of a shared archive.
26356postinstall_cmds=$lt_postinstall_cmds
26357
26358# Command to use after uninstallation of a shared archive.
26359postuninstall_cmds=$lt_postuninstall_cmds
26360
26361# Commands used to finish a libtool library installation in a directory.
26362finish_cmds=$lt_finish_cmds
26363
26364# As "finish_cmds", except a single script fragment to be evaled but
26365# not shown.
26366finish_eval=$lt_finish_eval
26367
26368# Whether we should hardcode library paths into libraries.
26369hardcode_into_libs=$hardcode_into_libs
26370
26371# Compile-time system search path for libraries.
26372sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26373
26374# Detected run-time system search path for libraries.
26375sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26376
26377# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26378configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26379
26380# Whether dlopen is supported.
26381dlopen_support=$enable_dlopen
26382
26383# Whether dlopen of programs is supported.
26384dlopen_self=$enable_dlopen_self
26385
26386# Whether dlopen of statically linked programs is supported.
26387dlopen_self_static=$enable_dlopen_self_static
26388
26389# Commands to strip libraries.
26390old_striplib=$lt_old_striplib
26391striplib=$lt_striplib
26392
26393
26394# The linker used to build libraries.
26395LD=$lt_LD
26396
26397# How to create reloadable object files.
26398reload_flag=$lt_reload_flag
26399reload_cmds=$lt_reload_cmds
26400
26401# Commands used to build an old-style archive.
26402old_archive_cmds=$lt_old_archive_cmds
26403
26404# A language specific compiler.
26405CC=$lt_compiler
26406
26407# Is the compiler the GNU compiler?
26408with_gcc=$GCC
26409
26410# Compiler flag to turn off builtin functions.
26411no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26412
26413# Additional compiler flags for building library objects.
26414pic_flag=$lt_lt_prog_compiler_pic
26415
26416# How to pass a linker flag through the compiler.
26417wl=$lt_lt_prog_compiler_wl
26418
26419# Compiler flag to prevent dynamic linking.
26420link_static_flag=$lt_lt_prog_compiler_static
26421
26422# Does compiler simultaneously support -c and -o options?
26423compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26424
26425# Whether or not to add -lc for building shared libraries.
26426build_libtool_need_lc=$archive_cmds_need_lc
26427
26428# Whether or not to disallow shared libs when runtime libs are static.
26429allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26430
26431# Compiler flag to allow reflexive dlopens.
26432export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26433
26434# Compiler flag to generate shared objects directly from archives.
26435whole_archive_flag_spec=$lt_whole_archive_flag_spec
26436
26437# Whether the compiler copes with passing no objects directly.
26438compiler_needs_object=$lt_compiler_needs_object
26439
26440# Create an old-style archive from a shared archive.
26441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26442
26443# Create a temporary old-style archive to link instead of a shared archive.
26444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26445
26446# Commands used to build a shared archive.
26447archive_cmds=$lt_archive_cmds
26448archive_expsym_cmds=$lt_archive_expsym_cmds
26449
26450# Commands used to build a loadable module if different from building
26451# a shared archive.
26452module_cmds=$lt_module_cmds
26453module_expsym_cmds=$lt_module_expsym_cmds
26454
26455# Whether we are building with GNU ld or not.
26456with_gnu_ld=$lt_with_gnu_ld
26457
26458# Flag that allows shared libraries with undefined symbols to be built.
26459allow_undefined_flag=$lt_allow_undefined_flag
26460
26461# Flag that enforces no undefined symbols.
26462no_undefined_flag=$lt_no_undefined_flag
26463
26464# Flag to hardcode \$libdir into a binary during linking.
26465# This must work even if \$libdir does not exist
26466hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26467
26468# Whether we need a single "-rpath" flag with a separated argument.
26469hardcode_libdir_separator=$lt_hardcode_libdir_separator
26470
26471# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26472# DIR into the resulting binary.
26473hardcode_direct=$hardcode_direct
26474
26475# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26476# DIR into the resulting binary and the resulting library dependency is
26477# "absolute",i.e impossible to change by setting \$shlibpath_var if the
26478# library is relocated.
26479hardcode_direct_absolute=$hardcode_direct_absolute
26480
26481# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26482# into the resulting binary.
26483hardcode_minus_L=$hardcode_minus_L
26484
26485# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26486# into the resulting binary.
26487hardcode_shlibpath_var=$hardcode_shlibpath_var
26488
26489# Set to "yes" if building a shared library automatically hardcodes DIR
26490# into the library and all subsequent libraries and executables linked
26491# against it.
26492hardcode_automatic=$hardcode_automatic
26493
26494# Set to yes if linker adds runtime paths of dependent libraries
26495# to runtime path list.
26496inherit_rpath=$inherit_rpath
26497
26498# Whether libtool must link a program against all its dependency libraries.
26499link_all_deplibs=$link_all_deplibs
26500
26501# Set to "yes" if exported symbols are required.
26502always_export_symbols=$always_export_symbols
26503
26504# The commands to list exported symbols.
26505export_symbols_cmds=$lt_export_symbols_cmds
26506
26507# Symbols that should not be listed in the preloaded symbols.
26508exclude_expsyms=$lt_exclude_expsyms
26509
26510# Symbols that must always be exported.
26511include_expsyms=$lt_include_expsyms
26512
26513# Commands necessary for linking programs (against libraries) with templates.
26514prelink_cmds=$lt_prelink_cmds
26515
26516# Commands necessary for finishing linking programs.
26517postlink_cmds=$lt_postlink_cmds
26518
26519# Specify filename containing input files.
26520file_list_spec=$lt_file_list_spec
26521
26522# How to hardcode a shared library path into an executable.
26523hardcode_action=$hardcode_action
26524
26525# The directories searched by this compiler when creating a shared library.
26526compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26527
26528# Dependencies to place before and after the objects being linked to
26529# create a shared library.
26530predep_objects=$lt_predep_objects
26531postdep_objects=$lt_postdep_objects
26532predeps=$lt_predeps
26533postdeps=$lt_postdeps
26534
26535# The library search path used internally by the compiler when linking
26536# a shared library.
26537compiler_lib_search_path=$lt_compiler_lib_search_path
26538
26539# ### END LIBTOOL CONFIG
26540
26541_LT_EOF
26542
26543    cat <<'_LT_EOF' >> "$cfgfile"
26544
26545# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26546
26547# func_munge_path_list VARIABLE PATH
26548# -----------------------------------
26549# VARIABLE is name of variable containing _space_ separated list of
26550# directories to be munged by the contents of PATH, which is string
26551# having a format:
26552# "DIR[:DIR]:"
26553#       string "DIR[ DIR]" will be prepended to VARIABLE
26554# ":DIR[:DIR]"
26555#       string "DIR[ DIR]" will be appended to VARIABLE
26556# "DIRP[:DIRP]::[DIRA:]DIRA"
26557#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26558#       "DIRA[ DIRA]" will be appended to VARIABLE
26559# "DIR[:DIR]"
26560#       VARIABLE will be replaced by "DIR[ DIR]"
26561func_munge_path_list ()
26562{
26563    case x$2 in
26564    x)
26565        ;;
26566    *:)
26567        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26568        ;;
26569    x:*)
26570        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26571        ;;
26572    *::*)
26573        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26574        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26575        ;;
26576    *)
26577        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26578        ;;
26579    esac
26580}
26581
26582
26583# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
26584func_cc_basename ()
26585{
26586    for cc_temp in $*""; do
26587      case $cc_temp in
26588        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26589        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26590        \-*) ;;
26591        *) break;;
26592      esac
26593    done
26594    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26595}
26596
26597
26598# ### END FUNCTIONS SHARED WITH CONFIGURE
26599
26600_LT_EOF
26601
26602  case $host_os in
26603  aix3*)
26604    cat <<\_LT_EOF >> "$cfgfile"
26605# AIX sometimes has problems with the GCC collect2 program.  For some
26606# reason, if we set the COLLECT_NAMES environment variable, the problems
26607# vanish in a puff of smoke.
26608if test set != "${COLLECT_NAMES+set}"; then
26609  COLLECT_NAMES=
26610  export COLLECT_NAMES
26611fi
26612_LT_EOF
26613    ;;
26614  esac
26615
26616
26617ltmain=$ac_aux_dir/ltmain.sh
26618
26619
26620  # We use sed instead of cat because bash on DJGPP gets confused if
26621  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26622  # text mode, it properly converts lines to CR/LF.  This bash problem
26623  # is reportedly fixed, but why not run on old versions too?
26624  sed '$q' "$ltmain" >> "$cfgfile" \
26625     || (rm -f "$cfgfile"; exit 1)
26626
26627   mv -f "$cfgfile" "$ofile" ||
26628    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26629  chmod +x "$ofile"
26630
26631
26632    cat <<_LT_EOF >> "$ofile"
26633
26634# ### BEGIN LIBTOOL TAG CONFIG: CXX
26635
26636# The linker used to build libraries.
26637LD=$lt_LD_CXX
26638
26639# How to create reloadable object files.
26640reload_flag=$lt_reload_flag_CXX
26641reload_cmds=$lt_reload_cmds_CXX
26642
26643# Commands used to build an old-style archive.
26644old_archive_cmds=$lt_old_archive_cmds_CXX
26645
26646# A language specific compiler.
26647CC=$lt_compiler_CXX
26648
26649# Is the compiler the GNU compiler?
26650with_gcc=$GCC_CXX
26651
26652# Compiler flag to turn off builtin functions.
26653no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26654
26655# Additional compiler flags for building library objects.
26656pic_flag=$lt_lt_prog_compiler_pic_CXX
26657
26658# How to pass a linker flag through the compiler.
26659wl=$lt_lt_prog_compiler_wl_CXX
26660
26661# Compiler flag to prevent dynamic linking.
26662link_static_flag=$lt_lt_prog_compiler_static_CXX
26663
26664# Does compiler simultaneously support -c and -o options?
26665compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26666
26667# Whether or not to add -lc for building shared libraries.
26668build_libtool_need_lc=$archive_cmds_need_lc_CXX
26669
26670# Whether or not to disallow shared libs when runtime libs are static.
26671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26672
26673# Compiler flag to allow reflexive dlopens.
26674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26675
26676# Compiler flag to generate shared objects directly from archives.
26677whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26678
26679# Whether the compiler copes with passing no objects directly.
26680compiler_needs_object=$lt_compiler_needs_object_CXX
26681
26682# Create an old-style archive from a shared archive.
26683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26684
26685# Create a temporary old-style archive to link instead of a shared archive.
26686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26687
26688# Commands used to build a shared archive.
26689archive_cmds=$lt_archive_cmds_CXX
26690archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26691
26692# Commands used to build a loadable module if different from building
26693# a shared archive.
26694module_cmds=$lt_module_cmds_CXX
26695module_expsym_cmds=$lt_module_expsym_cmds_CXX
26696
26697# Whether we are building with GNU ld or not.
26698with_gnu_ld=$lt_with_gnu_ld_CXX
26699
26700# Flag that allows shared libraries with undefined symbols to be built.
26701allow_undefined_flag=$lt_allow_undefined_flag_CXX
26702
26703# Flag that enforces no undefined symbols.
26704no_undefined_flag=$lt_no_undefined_flag_CXX
26705
26706# Flag to hardcode \$libdir into a binary during linking.
26707# This must work even if \$libdir does not exist
26708hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26709
26710# Whether we need a single "-rpath" flag with a separated argument.
26711hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26712
26713# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26714# DIR into the resulting binary.
26715hardcode_direct=$hardcode_direct_CXX
26716
26717# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26718# DIR into the resulting binary and the resulting library dependency is
26719# "absolute",i.e impossible to change by setting \$shlibpath_var if the
26720# library is relocated.
26721hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26722
26723# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26724# into the resulting binary.
26725hardcode_minus_L=$hardcode_minus_L_CXX
26726
26727# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26728# into the resulting binary.
26729hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26730
26731# Set to "yes" if building a shared library automatically hardcodes DIR
26732# into the library and all subsequent libraries and executables linked
26733# against it.
26734hardcode_automatic=$hardcode_automatic_CXX
26735
26736# Set to yes if linker adds runtime paths of dependent libraries
26737# to runtime path list.
26738inherit_rpath=$inherit_rpath_CXX
26739
26740# Whether libtool must link a program against all its dependency libraries.
26741link_all_deplibs=$link_all_deplibs_CXX
26742
26743# Set to "yes" if exported symbols are required.
26744always_export_symbols=$always_export_symbols_CXX
26745
26746# The commands to list exported symbols.
26747export_symbols_cmds=$lt_export_symbols_cmds_CXX
26748
26749# Symbols that should not be listed in the preloaded symbols.
26750exclude_expsyms=$lt_exclude_expsyms_CXX
26751
26752# Symbols that must always be exported.
26753include_expsyms=$lt_include_expsyms_CXX
26754
26755# Commands necessary for linking programs (against libraries) with templates.
26756prelink_cmds=$lt_prelink_cmds_CXX
26757
26758# Commands necessary for finishing linking programs.
26759postlink_cmds=$lt_postlink_cmds_CXX
26760
26761# Specify filename containing input files.
26762file_list_spec=$lt_file_list_spec_CXX
26763
26764# How to hardcode a shared library path into an executable.
26765hardcode_action=$hardcode_action_CXX
26766
26767# The directories searched by this compiler when creating a shared library.
26768compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26769
26770# Dependencies to place before and after the objects being linked to
26771# create a shared library.
26772predep_objects=$lt_predep_objects_CXX
26773postdep_objects=$lt_postdep_objects_CXX
26774predeps=$lt_predeps_CXX
26775postdeps=$lt_postdeps_CXX
26776
26777# The library search path used internally by the compiler when linking
26778# a shared library.
26779compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26780
26781# ### END LIBTOOL TAG CONFIG: CXX
26782_LT_EOF
26783
26784 ;;
26785
26786  esac
26787done # for ac_tag
26788
26789
26790as_fn_exit 0
26791_ACEOF
26792ac_clean_files=$ac_clean_files_save
26793
26794test $ac_write_fail = 0 ||
26795  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26796
26797
26798# configure is writing to config.log, and then calls config.status.
26799# config.status does its own redirection, appending to config.log.
26800# Unfortunately, on DOS this fails, as config.log is still kept open
26801# by configure, so config.status won't be able to write to it; its
26802# output is simply discarded.  So we exec the FD to /dev/null,
26803# effectively closing config.log, so it can be properly (re)opened and
26804# appended to by config.status.  When coming back to configure, we
26805# need to make the FD available again.
26806if test "$no_create" != yes; then
26807  ac_cs_success=:
26808  ac_config_status_args=
26809  test "$silent" = yes &&
26810    ac_config_status_args="$ac_config_status_args --quiet"
26811  exec 5>/dev/null
26812  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26813  exec 5>>config.log
26814  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26815  # would make configure fail if this is the last instruction.
26816  $ac_cs_success || as_fn_exit 1
26817fi
26818if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26819  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26820$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26821fi
26822
26823
26824# Prepare bindings report messages.
26825
26826
26827	sr_report_cxx=
26828	test -z "$sr_cxx_missing" || sr_report_cxx=" (missing: $sr_cxx_missing)"
26829	test "x$enable_cxx" = xyes || sr_report_cxx=' (disabled)'
26830
26831	sr_report_python=
26832	test -z "$sr_python_missing" || sr_report_python=" (missing: $sr_python_missing)"
26833	test "x$enable_python" = xyes || sr_report_python=' (disabled)'
26834
26835	sr_report_ruby=
26836	test -z "$sr_ruby_missing" || sr_report_ruby=" (missing: $sr_ruby_missing)"
26837	test "x$enable_ruby" = xyes || sr_report_ruby=' (disabled)'
26838
26839	sr_report_java=
26840	test -z "$sr_java_missing" || sr_report_java=" (missing: $sr_java_missing)"
26841	test "x$enable_java" = xyes || sr_report_java=' (disabled)'
26842
26843
26844cat >&6 <<_EOF
26845
26846libsigrok configuration summary:
26847 - Package version................. $SR_PACKAGE_VERSION
26848 - Library ABI version............. $SR_LIB_VERSION
26849 - Prefix.......................... $prefix
26850 - Building on..................... $build
26851 - Building for.................... $host
26852 - Building shared / static........ $enable_shared / $enable_static
26853
26854Compile configuration:
26855 - C compiler...................... $CC
26856 - C compiler version.............. $sr_cc_version
26857 - C compiler flags................ $CFLAGS
26858 - Additional C compiler flags..... $SR_EXTRA_CFLAGS
26859 - C compiler warnings............. $SR_WFLAGS
26860 - C++ compiler.................... $CXX
26861 - C++ compiler version............ $sr_cxx_version
26862 - C++ compiler flags.............. $CXXFLAGS
26863 - C++ compiler warnings........... $SR_WXXFLAGS
26864 - Linker flags.................... $LDFLAGS
26865
26866Detected libraries (required):
26867 - glib-2.0 >= 2.32.0.............. $sr_glib_version
26868 - libzip >= 0.10.................. $sr_libzip_version
26869
26870Detected libraries (optional):
26871$sr_pkglibs_summary
26872Enabled hardware drivers:
26873$sr_driver_summary
26874Enabled serial communication transports:
26875  - serial comm ................... $sr_have_serial_comm
26876  - libserialport ................. $sr_have_libserialport
26877  - hidapi ........................ $sr_have_libhidapi
26878  - bluetooth ..................... $sr_have_bluetooth
26879  - bluez ......................... $sr_have_libbluez
26880
26881Enabled SCPI backends:
26882 - TCP............................. yes
26883 - RPC............................. $sr_cv_have_rpc
26884 - serial.......................... $sr_have_serial_comm
26885 - VISA............................ $sr_have_librevisa
26886 - GPIB............................ $sr_have_libgpib
26887 - USBTMC.......................... $sr_have_libusb
26888
26889Enabled language bindings:
26890 - C++............................. $BINDINGS_CXX$sr_report_cxx
26891 - Python.......................... $BINDINGS_PYTHON$sr_report_python
26892 - Ruby............................ $BINDINGS_RUBY$sr_report_ruby
26893 - Java............................ $BINDINGS_JAVA$sr_report_java
26894
26895_EOF
26896
26897# Emit a warning if the C++ bindings are not being built.
26898if test -z "$BINDINGS_CXX_TRUE"; then :
26899  else
26900
26901cat >&6 <<_EOF
26902===============================================================================
26903WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
26904===============================================================================
26905===                                                                         ===
26906===         The libsigrok C++ bindings are not being built since you        ===
26907===             are missing one or more dependencies (see above)!           ===
26908===                                                                         ===
26909===      This means you won't be able to compile frontends that require     ===
26910===  the C++ bindings (such as PulseView)! You also won't be able to build  ===
26911===     other bindings and frontends using those (such as sigrok-meter)!    ===
26912===                                                                         ===
26913===============================================================================
26914WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
26915===============================================================================
26916
26917_EOF
26918
26919fi
26920