1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for unixcw 3.5.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='unixcw'
589PACKAGE_TARNAME='unixcw'
590PACKAGE_VERSION='3.5.1'
591PACKAGE_STRING='unixcw 3.5.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/libcw/libcw_gen.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LD_LINKS_SO
636CC_LINKS_SO
637CFLAG_PIC
638SRC_SUBDIRS
639LIBOBJS
640LIBCW_NDEBUG
641LIBCW_WITH_DEV_FALSE
642LIBCW_WITH_DEV_TRUE
643MOC
644QT5_LIBS
645QT5_CFLAGS
646PKG_CONFIG_LIBDIR
647PKG_CONFIG_PATH
648PKG_CONFIG
649LIBCW_VERSION
650LDCONFIG
651GZIP
652OSS_LIB
653DL_LIB
654HOST_IS_FREEBSD_FALSE
655HOST_IS_FREEBSD_TRUE
656CXXCPP
657am__fastdepCXX_FALSE
658am__fastdepCXX_TRUE
659CXXDEPMODE
660ac_ct_CXX
661CXXFLAGS
662CXX
663CPP
664OTOOL64
665OTOOL
666LIPO
667NMEDIT
668DSYMUTIL
669MANIFEST_TOOL
670RANLIB
671ac_ct_AR
672AR
673DLLTOOL
674OBJDUMP
675LN_S
676NM
677ac_ct_DUMPBIN
678DUMPBIN
679LD
680FGREP
681EGREP
682GREP
683SED
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687am__nodep
688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__quote
692am__include
693DEPDIR
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701host_os
702host_vendor
703host_cpu
704host
705build_os
706build_vendor
707build_cpu
708build
709LIBTOOL
710AM_BACKSLASH
711AM_DEFAULT_VERBOSITY
712AM_DEFAULT_V
713AM_V
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL'
775ac_subst_files=''
776ac_user_opts='
777enable_option_checking
778enable_silent_rules
779enable_shared
780enable_static
781with_pic
782enable_fast_install
783enable_dependency_tracking
784with_gnu_ld
785with_sysroot
786enable_libtool_lock
787enable_console
788enable_oss
789enable_alsa
790enable_pulseaudio
791enable_cwcp
792enable_xcwcp
793enable_dev
794'
795      ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CPP
804CXX
805CXXFLAGS
806CCC
807CXXCPP
808PKG_CONFIG
809PKG_CONFIG_PATH
810PKG_CONFIG_LIBDIR
811QT5_CFLAGS
812QT5_LIBS'
813
814
815# Initialize some variables set by options.
816ac_init_help=
817ac_init_version=false
818ac_unrecognized_opts=
819ac_unrecognized_sep=
820# The variables have the same names as the options, with
821# dashes changed to underlines.
822cache_file=/dev/null
823exec_prefix=NONE
824no_create=
825no_recursion=
826prefix=NONE
827program_prefix=NONE
828program_suffix=NONE
829program_transform_name=s,x,x,
830silent=
831site=
832srcdir=
833verbose=
834x_includes=NONE
835x_libraries=NONE
836
837# Installation directory options.
838# These are left unexpanded so users can "make install exec_prefix=/foo"
839# and all the variables that are supposed to be based on exec_prefix
840# by default will actually change.
841# Use braces instead of parens because sh, perl, etc. also accept them.
842# (The list follows the same order as the GNU Coding Standards.)
843bindir='${exec_prefix}/bin'
844sbindir='${exec_prefix}/sbin'
845libexecdir='${exec_prefix}/libexec'
846datarootdir='${prefix}/share'
847datadir='${datarootdir}'
848sysconfdir='${prefix}/etc'
849sharedstatedir='${prefix}/com'
850localstatedir='${prefix}/var'
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
862
863ac_prev=
864ac_dashdash=
865for ac_option
866do
867  # If the previous option needs an argument, assign it.
868  if test -n "$ac_prev"; then
869    eval $ac_prev=\$ac_option
870    ac_prev=
871    continue
872  fi
873
874  case $ac_option in
875  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876  *=)   ac_optarg= ;;
877  *)    ac_optarg=yes ;;
878  esac
879
880  # Accept the important Cygnus configure options, so we can diagnose typos.
881
882  case $ac_dashdash$ac_option in
883  --)
884    ac_dashdash=yes ;;
885
886  -bindir | --bindir | --bindi | --bind | --bin | --bi)
887    ac_prev=bindir ;;
888  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889    bindir=$ac_optarg ;;
890
891  -build | --build | --buil | --bui | --bu)
892    ac_prev=build_alias ;;
893  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894    build_alias=$ac_optarg ;;
895
896  -cache-file | --cache-file | --cache-fil | --cache-fi \
897  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898    ac_prev=cache_file ;;
899  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901    cache_file=$ac_optarg ;;
902
903  --config-cache | -C)
904    cache_file=config.cache ;;
905
906  -datadir | --datadir | --datadi | --datad)
907    ac_prev=datadir ;;
908  -datadir=* | --datadir=* | --datadi=* | --datad=*)
909    datadir=$ac_optarg ;;
910
911  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912  | --dataroo | --dataro | --datar)
913    ac_prev=datarootdir ;;
914  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916    datarootdir=$ac_optarg ;;
917
918  -disable-* | --disable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=no ;;
933
934  -docdir | --docdir | --docdi | --doc | --do)
935    ac_prev=docdir ;;
936  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937    docdir=$ac_optarg ;;
938
939  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940    ac_prev=dvidir ;;
941  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942    dvidir=$ac_optarg ;;
943
944  -enable-* | --enable-*)
945    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946    # Reject names that are not valid shell variable names.
947    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948      as_fn_error $? "invalid feature name: $ac_useropt"
949    ac_useropt_orig=$ac_useropt
950    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951    case $ac_user_opts in
952      *"
953"enable_$ac_useropt"
954"*) ;;
955      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956	 ac_unrecognized_sep=', ';;
957    esac
958    eval enable_$ac_useropt=\$ac_optarg ;;
959
960  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962  | --exec | --exe | --ex)
963    ac_prev=exec_prefix ;;
964  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966  | --exec=* | --exe=* | --ex=*)
967    exec_prefix=$ac_optarg ;;
968
969  -gas | --gas | --ga | --g)
970    # Obsolete; use --with-gas.
971    with_gas=yes ;;
972
973  -help | --help | --hel | --he | -h)
974    ac_init_help=long ;;
975  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976    ac_init_help=recursive ;;
977  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978    ac_init_help=short ;;
979
980  -host | --host | --hos | --ho)
981    ac_prev=host_alias ;;
982  -host=* | --host=* | --hos=* | --ho=*)
983    host_alias=$ac_optarg ;;
984
985  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986    ac_prev=htmldir ;;
987  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988  | --ht=*)
989    htmldir=$ac_optarg ;;
990
991  -includedir | --includedir | --includedi | --included | --include \
992  | --includ | --inclu | --incl | --inc)
993    ac_prev=includedir ;;
994  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995  | --includ=* | --inclu=* | --incl=* | --inc=*)
996    includedir=$ac_optarg ;;
997
998  -infodir | --infodir | --infodi | --infod | --info | --inf)
999    ac_prev=infodir ;;
1000  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001    infodir=$ac_optarg ;;
1002
1003  -libdir | --libdir | --libdi | --libd)
1004    ac_prev=libdir ;;
1005  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006    libdir=$ac_optarg ;;
1007
1008  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009  | --libexe | --libex | --libe)
1010    ac_prev=libexecdir ;;
1011  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012  | --libexe=* | --libex=* | --libe=*)
1013    libexecdir=$ac_optarg ;;
1014
1015  -localedir | --localedir | --localedi | --localed | --locale)
1016    ac_prev=localedir ;;
1017  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018    localedir=$ac_optarg ;;
1019
1020  -localstatedir | --localstatedir | --localstatedi | --localstated \
1021  | --localstate | --localstat | --localsta | --localst | --locals)
1022    ac_prev=localstatedir ;;
1023  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025    localstatedir=$ac_optarg ;;
1026
1027  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028    ac_prev=mandir ;;
1029  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030    mandir=$ac_optarg ;;
1031
1032  -nfp | --nfp | --nf)
1033    # Obsolete; use --without-fp.
1034    with_fp=no ;;
1035
1036  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037  | --no-cr | --no-c | -n)
1038    no_create=yes ;;
1039
1040  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042    no_recursion=yes ;;
1043
1044  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046  | --oldin | --oldi | --old | --ol | --o)
1047    ac_prev=oldincludedir ;;
1048  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051    oldincludedir=$ac_optarg ;;
1052
1053  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054    ac_prev=prefix ;;
1055  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056    prefix=$ac_optarg ;;
1057
1058  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059  | --program-pre | --program-pr | --program-p)
1060    ac_prev=program_prefix ;;
1061  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063    program_prefix=$ac_optarg ;;
1064
1065  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066  | --program-suf | --program-su | --program-s)
1067    ac_prev=program_suffix ;;
1068  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070    program_suffix=$ac_optarg ;;
1071
1072  -program-transform-name | --program-transform-name \
1073  | --program-transform-nam | --program-transform-na \
1074  | --program-transform-n | --program-transform- \
1075  | --program-transform | --program-transfor \
1076  | --program-transfo | --program-transf \
1077  | --program-trans | --program-tran \
1078  | --progr-tra | --program-tr | --program-t)
1079    ac_prev=program_transform_name ;;
1080  -program-transform-name=* | --program-transform-name=* \
1081  | --program-transform-nam=* | --program-transform-na=* \
1082  | --program-transform-n=* | --program-transform-=* \
1083  | --program-transform=* | --program-transfor=* \
1084  | --program-transfo=* | --program-transf=* \
1085  | --program-trans=* | --program-tran=* \
1086  | --progr-tra=* | --program-tr=* | --program-t=*)
1087    program_transform_name=$ac_optarg ;;
1088
1089  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090    ac_prev=pdfdir ;;
1091  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092    pdfdir=$ac_optarg ;;
1093
1094  -psdir | --psdir | --psdi | --psd | --ps)
1095    ac_prev=psdir ;;
1096  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097    psdir=$ac_optarg ;;
1098
1099  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100  | -silent | --silent | --silen | --sile | --sil)
1101    silent=yes ;;
1102
1103  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104    ac_prev=sbindir ;;
1105  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106  | --sbi=* | --sb=*)
1107    sbindir=$ac_optarg ;;
1108
1109  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111  | --sharedst | --shareds | --shared | --share | --shar \
1112  | --sha | --sh)
1113    ac_prev=sharedstatedir ;;
1114  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117  | --sha=* | --sh=*)
1118    sharedstatedir=$ac_optarg ;;
1119
1120  -site | --site | --sit)
1121    ac_prev=site ;;
1122  -site=* | --site=* | --sit=*)
1123    site=$ac_optarg ;;
1124
1125  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126    ac_prev=srcdir ;;
1127  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128    srcdir=$ac_optarg ;;
1129
1130  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131  | --syscon | --sysco | --sysc | --sys | --sy)
1132    ac_prev=sysconfdir ;;
1133  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135    sysconfdir=$ac_optarg ;;
1136
1137  -target | --target | --targe | --targ | --tar | --ta | --t)
1138    ac_prev=target_alias ;;
1139  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140    target_alias=$ac_optarg ;;
1141
1142  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143    verbose=yes ;;
1144
1145  -version | --version | --versio | --versi | --vers | -V)
1146    ac_init_version=: ;;
1147
1148  -with-* | --with-*)
1149    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150    # Reject names that are not valid shell variable names.
1151    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152      as_fn_error $? "invalid package name: $ac_useropt"
1153    ac_useropt_orig=$ac_useropt
1154    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155    case $ac_user_opts in
1156      *"
1157"with_$ac_useropt"
1158"*) ;;
1159      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160	 ac_unrecognized_sep=', ';;
1161    esac
1162    eval with_$ac_useropt=\$ac_optarg ;;
1163
1164  -without-* | --without-*)
1165    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166    # Reject names that are not valid shell variable names.
1167    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168      as_fn_error $? "invalid package name: $ac_useropt"
1169    ac_useropt_orig=$ac_useropt
1170    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171    case $ac_user_opts in
1172      *"
1173"with_$ac_useropt"
1174"*) ;;
1175      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176	 ac_unrecognized_sep=', ';;
1177    esac
1178    eval with_$ac_useropt=no ;;
1179
1180  --x)
1181    # Obsolete; use --with-x.
1182    with_x=yes ;;
1183
1184  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185  | --x-incl | --x-inc | --x-in | --x-i)
1186    ac_prev=x_includes ;;
1187  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189    x_includes=$ac_optarg ;;
1190
1191  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193    ac_prev=x_libraries ;;
1194  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196    x_libraries=$ac_optarg ;;
1197
1198  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199Try \`$0 --help' for more information"
1200    ;;
1201
1202  *=*)
1203    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204    # Reject names that are not valid shell variable names.
1205    case $ac_envvar in #(
1206      '' | [0-9]* | *[!_$as_cr_alnum]* )
1207      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208    esac
1209    eval $ac_envvar=\$ac_optarg
1210    export $ac_envvar ;;
1211
1212  *)
1213    # FIXME: should be removed in autoconf 3.0.
1214    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218    ;;
1219
1220  esac
1221done
1222
1223if test -n "$ac_prev"; then
1224  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225  as_fn_error $? "missing argument to $ac_option"
1226fi
1227
1228if test -n "$ac_unrecognized_opts"; then
1229  case $enable_option_checking in
1230    no) ;;
1231    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233  esac
1234fi
1235
1236# Check all directory arguments for consistency.
1237for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238		datadir sysconfdir sharedstatedir localstatedir includedir \
1239		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240		libdir localedir mandir
1241do
1242  eval ac_val=\$$ac_var
1243  # Remove trailing slashes.
1244  case $ac_val in
1245    */ )
1246      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247      eval $ac_var=\$ac_val;;
1248  esac
1249  # Be sure to have absolute directory names.
1250  case $ac_val in
1251    [\\/$]* | ?:[\\/]* )  continue;;
1252    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253  esac
1254  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255done
1256
1257# There might be people who depend on the old broken behavior: `$host'
1258# used to hold the argument of --host etc.
1259# FIXME: To remove some day.
1260build=$build_alias
1261host=$host_alias
1262target=$target_alias
1263
1264# FIXME: To remove some day.
1265if test "x$host_alias" != x; then
1266  if test "x$build_alias" = x; then
1267    cross_compiling=maybe
1268  elif test "x$build_alias" != "x$host_alias"; then
1269    cross_compiling=yes
1270  fi
1271fi
1272
1273ac_tool_prefix=
1274test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276test "$silent" = yes && exec 6>/dev/null
1277
1278
1279ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280ac_ls_di=`ls -di .` &&
1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282  as_fn_error $? "working directory cannot be determined"
1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284  as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287# Find the source files, if location was not specified.
1288if test -z "$srcdir"; then
1289  ac_srcdir_defaulted=yes
1290  # Try the directory containing this script, then the parent directory.
1291  ac_confdir=`$as_dirname -- "$as_myself" ||
1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293	 X"$as_myself" : 'X\(//\)[^/]' \| \
1294	 X"$as_myself" : 'X\(//\)$' \| \
1295	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296$as_echo X"$as_myself" |
1297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\/\)[^/].*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)$/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\).*/{
1310	    s//\1/
1311	    q
1312	  }
1313	  s/.*/./; q'`
1314  srcdir=$ac_confdir
1315  if test ! -r "$srcdir/$ac_unique_file"; then
1316    srcdir=..
1317  fi
1318else
1319  ac_srcdir_defaulted=no
1320fi
1321if test ! -r "$srcdir/$ac_unique_file"; then
1322  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324fi
1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326ac_abs_confdir=`(
1327	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328	pwd)`
1329# When building in place, set srcdir=.
1330if test "$ac_abs_confdir" = "$ac_pwd"; then
1331  srcdir=.
1332fi
1333# Remove unnecessary trailing slashes from srcdir.
1334# Double slashes in file names in object file debugging info
1335# mess up M-x gdb in Emacs.
1336case $srcdir in
1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338esac
1339for ac_var in $ac_precious_vars; do
1340  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341  eval ac_env_${ac_var}_value=\$${ac_var}
1342  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344done
1345
1346#
1347# Report the --help message.
1348#
1349if test "$ac_init_help" = "long"; then
1350  # Omit some internal or obsolete options to make the list less imposing.
1351  # This message is too long to be a string in the A/UX 3.1 sh.
1352  cat <<_ACEOF
1353\`configure' configures unixcw 3.5.1 to adapt to many kinds of systems.
1354
1355Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358VAR=VALUE.  See below for descriptions of some of the useful variables.
1359
1360Defaults for the options are specified in brackets.
1361
1362Configuration:
1363  -h, --help              display this help and exit
1364      --help=short        display options specific to this package
1365      --help=recursive    display the short help of all the included packages
1366  -V, --version           display version information and exit
1367  -q, --quiet, --silent   do not print \`checking ...' messages
1368      --cache-file=FILE   cache test results in FILE [disabled]
1369  -C, --config-cache      alias for \`--cache-file=config.cache'
1370  -n, --no-create         do not create output files
1371      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1372
1373Installation directories:
1374  --prefix=PREFIX         install architecture-independent files in PREFIX
1375                          [$ac_default_prefix]
1376  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1377                          [PREFIX]
1378
1379By default, \`make install' will install all the files in
1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1381an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382for instance \`--prefix=\$HOME'.
1383
1384For better control, use the options below.
1385
1386Fine tuning of the installation directories:
1387  --bindir=DIR            user executables [EPREFIX/bin]
1388  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1389  --libexecdir=DIR        program executables [EPREFIX/libexec]
1390  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1391  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1392  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1393  --libdir=DIR            object code libraries [EPREFIX/lib]
1394  --includedir=DIR        C header files [PREFIX/include]
1395  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1396  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1397  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1398  --infodir=DIR           info documentation [DATAROOTDIR/info]
1399  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1400  --mandir=DIR            man documentation [DATAROOTDIR/man]
1401  --docdir=DIR            documentation root [DATAROOTDIR/doc/unixcw]
1402  --htmldir=DIR           html documentation [DOCDIR]
1403  --dvidir=DIR            dvi documentation [DOCDIR]
1404  --pdfdir=DIR            pdf documentation [DOCDIR]
1405  --psdir=DIR             ps documentation [DOCDIR]
1406_ACEOF
1407
1408  cat <<\_ACEOF
1409
1410Program names:
1411  --program-prefix=PREFIX            prepend PREFIX to installed program names
1412  --program-suffix=SUFFIX            append SUFFIX to installed program names
1413  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1414
1415System types:
1416  --build=BUILD     configure for building on BUILD [guessed]
1417  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422  case $ac_init_help in
1423     short | recursive ) echo "Configuration of unixcw 3.5.1:";;
1424   esac
1425  cat <<\_ACEOF
1426
1427Optional Features:
1428  --disable-option-checking  ignore unrecognized --enable/--with options
1429  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431  --enable-silent-rules   less verbose build output (undo: "make V=1")
1432  --disable-silent-rules  verbose build output (undo: "make V=0")
1433  --enable-shared[=PKGS]  build shared libraries [default=yes]
1434  --enable-static[=PKGS]  build static libraries [default=yes]
1435  --enable-fast-install[=PKGS]
1436                          optimize for fast installation [default=yes]
1437  --enable-dependency-tracking
1438                          do not reject slow dependency extractors
1439  --disable-dependency-tracking
1440                          speeds up one-time build
1441  --disable-libtool-lock  avoid locking (might break parallel builds)
1442  --disable-console       disable support for console buzzer audio output
1443  --disable-oss           disable support for OSS audio output
1444  --disable-alsa          disable support for ALSA audio output
1445  --disable-pulseaudio    disable support for PulseAudio audio output
1446  --disable-cwcp          do not build cwcp (application with curses user
1447                          interface)
1448  --disable-xcwcp         do not build xcwcp (application with Qt5 user
1449                          interface)
1450  --enable-dev            enable development support (messages/debug
1451                          code/asserts)
1452
1453Optional Packages:
1454  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1455  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1456  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1457                          both]
1458  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1459  --with-sysroot=DIR Search for dependent libraries within DIR
1460                        (or the compiler's sysroot if not specified).
1461
1462Some influential environment variables:
1463  CC          C compiler command
1464  CFLAGS      C compiler flags
1465  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466              nonstandard directory <lib dir>
1467  LIBS        libraries to pass to the linker, e.g. -l<library>
1468  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469              you have headers in a nonstandard directory <include dir>
1470  CPP         C preprocessor
1471  CXX         C++ compiler command
1472  CXXFLAGS    C++ compiler flags
1473  CXXCPP      C++ preprocessor
1474  PKG_CONFIG  path to pkg-config utility
1475  PKG_CONFIG_PATH
1476              directories to add to pkg-config's search path
1477  PKG_CONFIG_LIBDIR
1478              path overriding pkg-config's built-in search path
1479  QT5_CFLAGS  C compiler flags for QT5, overriding pkg-config
1480  QT5_LIBS    linker flags for QT5, overriding pkg-config
1481
1482Use these variables to override the choices made by `configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
1485Report bugs to the package provider.
1486_ACEOF
1487ac_status=$?
1488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491  # If there are subdirs, report their specific --help.
1492  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493    test -d "$ac_dir" ||
1494      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495      continue
1496    ac_builddir=.
1497
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502  # A ".." for each directory in $ac_dir_suffix.
1503  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504  case $ac_top_builddir_sub in
1505  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507  esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
1513
1514case $srcdir in
1515  .)  # We are building in place.
1516    ac_srcdir=.
1517    ac_top_srcdir=$ac_top_builddir_sub
1518    ac_abs_top_srcdir=$ac_pwd ;;
1519  [\\/]* | ?:[\\/]* )  # Absolute name.
1520    ac_srcdir=$srcdir$ac_dir_suffix;
1521    ac_top_srcdir=$srcdir
1522    ac_abs_top_srcdir=$srcdir ;;
1523  *) # Relative name.
1524    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525    ac_top_srcdir=$ac_top_build_prefix$srcdir
1526    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527esac
1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530    cd "$ac_dir" || { ac_status=$?; continue; }
1531    # Check for guested configure.
1532    if test -f "$ac_srcdir/configure.gnu"; then
1533      echo &&
1534      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535    elif test -f "$ac_srcdir/configure"; then
1536      echo &&
1537      $SHELL "$ac_srcdir/configure" --help=recursive
1538    else
1539      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540    fi || ac_status=$?
1541    cd "$ac_pwd" || { ac_status=$?; break; }
1542  done
1543fi
1544
1545test -n "$ac_init_help" && exit $ac_status
1546if $ac_init_version; then
1547  cat <<\_ACEOF
1548unixcw configure 3.5.1
1549generated by GNU Autoconf 2.69
1550
1551Copyright (C) 2012 Free Software Foundation, Inc.
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554_ACEOF
1555  exit
1556fi
1557
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
1561
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  rm -f conftest.$ac_objext
1569  if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572  *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576  (eval "$ac_compile") 2>conftest.err
1577  ac_status=$?
1578  if test -s conftest.err; then
1579    grep -v '^ *+' conftest.err >conftest.er1
1580    cat conftest.er1 >&5
1581    mv -f conftest.er1 conftest.err
1582  fi
1583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584  test $ac_status = 0; } && {
1585	 test -z "$ac_c_werror_flag" ||
1586	 test ! -s conftest.err
1587       } && test -s conftest.$ac_objext; then :
1588  ac_retval=0
1589else
1590  $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593	ac_retval=1
1594fi
1595  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596  as_fn_set_status $ac_retval
1597
1598} # ac_fn_c_try_compile
1599
1600# ac_fn_c_try_link LINENO
1601# -----------------------
1602# Try to link conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_link ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  rm -f conftest.$ac_objext conftest$ac_exeext
1607  if { { ac_try="$ac_link"
1608case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614  (eval "$ac_link") 2>conftest.err
1615  ac_status=$?
1616  if test -s conftest.err; then
1617    grep -v '^ *+' conftest.err >conftest.er1
1618    cat conftest.er1 >&5
1619    mv -f conftest.er1 conftest.err
1620  fi
1621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && {
1623	 test -z "$ac_c_werror_flag" ||
1624	 test ! -s conftest.err
1625       } && test -s conftest$ac_exeext && {
1626	 test "$cross_compiling" = yes ||
1627	 test -x conftest$ac_exeext
1628       }; then :
1629  ac_retval=0
1630else
1631  $as_echo "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
1633
1634	ac_retval=1
1635fi
1636  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1637  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1638  # interfere with the next link command; also delete a directory that is
1639  # left behind by Apple's compiler.  We do this before executing the actions.
1640  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642  as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_link
1645
1646# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647# -------------------------------------------------------
1648# Tests whether HEADER exists and can be compiled using the include files in
1649# INCLUDES, setting the cache variable VAR accordingly.
1650ac_fn_c_check_header_compile ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654$as_echo_n "checking for $2... " >&6; }
1655if eval \${$3+:} false; then :
1656  $as_echo_n "(cached) " >&6
1657else
1658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659/* end confdefs.h.  */
1660$4
1661#include <$2>
1662_ACEOF
1663if ac_fn_c_try_compile "$LINENO"; then :
1664  eval "$3=yes"
1665else
1666  eval "$3=no"
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669fi
1670eval ac_res=\$$3
1671	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672$as_echo "$ac_res" >&6; }
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675} # ac_fn_c_check_header_compile
1676
1677# ac_fn_c_try_cpp LINENO
1678# ----------------------
1679# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_cpp ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if { { ac_try="$ac_cpp conftest.$ac_ext"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } > conftest.i && {
1699	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707    ac_retval=1
1708fi
1709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710  as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_cpp
1713
1714# ac_fn_c_try_run LINENO
1715# ----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717# that executables *can* be run.
1718ac_fn_c_try_run ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_link") 2>&5
1729  ac_status=$?
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732  { { case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_try") 2>&5
1739  ac_status=$?
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; }; }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: program exited with status $ac_status" >&5
1745       $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748       ac_retval=$ac_status
1749fi
1750  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752  as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_run
1755
1756# ac_fn_c_check_func LINENO FUNC VAR
1757# ----------------------------------
1758# Tests whether FUNC exists, setting the cache variable VAR accordingly
1759ac_fn_c_check_func ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if eval \${$3+:} false; then :
1765  $as_echo_n "(cached) " >&6
1766else
1767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h.  */
1769/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1771#define $2 innocuous_$2
1772
1773/* System header to define __stub macros and hopefully few prototypes,
1774    which can conflict with char $2 (); below.
1775    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776    <limits.h> exists even on freestanding compilers.  */
1777
1778#ifdef __STDC__
1779# include <limits.h>
1780#else
1781# include <assert.h>
1782#endif
1783
1784#undef $2
1785
1786/* Override any GCC internal prototype to avoid an error.
1787   Use char because int might match the return type of a GCC
1788   builtin and then its argument prototype would still apply.  */
1789#ifdef __cplusplus
1790extern "C"
1791#endif
1792char $2 ();
1793/* The GNU C library defines this for functions which it implements
1794    to always fail with ENOSYS.  Some functions are actually named
1795    something starting with __ and the normal name is an alias.  */
1796#if defined __stub_$2 || defined __stub___$2
1797choke me
1798#endif
1799
1800int
1801main ()
1802{
1803return $2 ();
1804  ;
1805  return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_link "$LINENO"; then :
1809  eval "$3=yes"
1810else
1811  eval "$3=no"
1812fi
1813rm -f core conftest.err conftest.$ac_objext \
1814    conftest$ac_exeext conftest.$ac_ext
1815fi
1816eval ac_res=\$$3
1817	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821} # ac_fn_c_check_func
1822
1823# ac_fn_cxx_try_compile LINENO
1824# ----------------------------
1825# Try to compile conftest.$ac_ext, and return whether this succeeded.
1826ac_fn_cxx_try_compile ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  rm -f conftest.$ac_objext
1830  if { { ac_try="$ac_compile"
1831case "(($ac_try" in
1832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833  *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837  (eval "$ac_compile") 2>conftest.err
1838  ac_status=$?
1839  if test -s conftest.err; then
1840    grep -v '^ *+' conftest.err >conftest.er1
1841    cat conftest.er1 >&5
1842    mv -f conftest.er1 conftest.err
1843  fi
1844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845  test $ac_status = 0; } && {
1846	 test -z "$ac_cxx_werror_flag" ||
1847	 test ! -s conftest.err
1848       } && test -s conftest.$ac_objext; then :
1849  ac_retval=0
1850else
1851  $as_echo "$as_me: failed program was:" >&5
1852sed 's/^/| /' conftest.$ac_ext >&5
1853
1854	ac_retval=1
1855fi
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857  as_fn_set_status $ac_retval
1858
1859} # ac_fn_cxx_try_compile
1860
1861# ac_fn_cxx_try_cpp LINENO
1862# ------------------------
1863# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1864ac_fn_cxx_try_cpp ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  if { { ac_try="$ac_cpp conftest.$ac_ext"
1868case "(($ac_try" in
1869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870  *) ac_try_echo=$ac_try;;
1871esac
1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873$as_echo "$ac_try_echo"; } >&5
1874  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1875  ac_status=$?
1876  if test -s conftest.err; then
1877    grep -v '^ *+' conftest.err >conftest.er1
1878    cat conftest.er1 >&5
1879    mv -f conftest.er1 conftest.err
1880  fi
1881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882  test $ac_status = 0; } > conftest.i && {
1883	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1884	 test ! -s conftest.err
1885       }; then :
1886  ac_retval=0
1887else
1888  $as_echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891    ac_retval=1
1892fi
1893  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894  as_fn_set_status $ac_retval
1895
1896} # ac_fn_cxx_try_cpp
1897
1898# ac_fn_cxx_try_link LINENO
1899# -------------------------
1900# Try to link conftest.$ac_ext, and return whether this succeeded.
1901ac_fn_cxx_try_link ()
1902{
1903  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904  rm -f conftest.$ac_objext conftest$ac_exeext
1905  if { { ac_try="$ac_link"
1906case "(($ac_try" in
1907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908  *) ac_try_echo=$ac_try;;
1909esac
1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911$as_echo "$ac_try_echo"; } >&5
1912  (eval "$ac_link") 2>conftest.err
1913  ac_status=$?
1914  if test -s conftest.err; then
1915    grep -v '^ *+' conftest.err >conftest.er1
1916    cat conftest.er1 >&5
1917    mv -f conftest.er1 conftest.err
1918  fi
1919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920  test $ac_status = 0; } && {
1921	 test -z "$ac_cxx_werror_flag" ||
1922	 test ! -s conftest.err
1923       } && test -s conftest$ac_exeext && {
1924	 test "$cross_compiling" = yes ||
1925	 test -x conftest$ac_exeext
1926       }; then :
1927  ac_retval=0
1928else
1929  $as_echo "$as_me: failed program was:" >&5
1930sed 's/^/| /' conftest.$ac_ext >&5
1931
1932	ac_retval=1
1933fi
1934  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1935  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1936  # interfere with the next link command; also delete a directory that is
1937  # left behind by Apple's compiler.  We do this before executing the actions.
1938  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940  as_fn_set_status $ac_retval
1941
1942} # ac_fn_cxx_try_link
1943
1944# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1945# -------------------------------------------------------
1946# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1947# the include files in INCLUDES and setting the cache variable VAR
1948# accordingly.
1949ac_fn_c_check_header_mongrel ()
1950{
1951  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952  if eval \${$3+:} false; then :
1953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954$as_echo_n "checking for $2... " >&6; }
1955if eval \${$3+:} false; then :
1956  $as_echo_n "(cached) " >&6
1957fi
1958eval ac_res=\$$3
1959	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960$as_echo "$ac_res" >&6; }
1961else
1962  # Is the header compilable?
1963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1964$as_echo_n "checking $2 usability... " >&6; }
1965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h.  */
1967$4
1968#include <$2>
1969_ACEOF
1970if ac_fn_c_try_compile "$LINENO"; then :
1971  ac_header_compiler=yes
1972else
1973  ac_header_compiler=no
1974fi
1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1977$as_echo "$ac_header_compiler" >&6; }
1978
1979# Is the header present?
1980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1981$as_echo_n "checking $2 presence... " >&6; }
1982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h.  */
1984#include <$2>
1985_ACEOF
1986if ac_fn_c_try_cpp "$LINENO"; then :
1987  ac_header_preproc=yes
1988else
1989  ac_header_preproc=no
1990fi
1991rm -f conftest.err conftest.i conftest.$ac_ext
1992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1993$as_echo "$ac_header_preproc" >&6; }
1994
1995# So?  What about this header?
1996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1997  yes:no: )
1998    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1999$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2000    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002    ;;
2003  no:yes:* )
2004    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2005$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2006    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2007$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2008    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2009$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2010    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2011$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2012    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014    ;;
2015esac
2016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017$as_echo_n "checking for $2... " >&6; }
2018if eval \${$3+:} false; then :
2019  $as_echo_n "(cached) " >&6
2020else
2021  eval "$3=\$ac_header_compiler"
2022fi
2023eval ac_res=\$$3
2024	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025$as_echo "$ac_res" >&6; }
2026fi
2027  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029} # ac_fn_c_check_header_mongrel
2030
2031# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2032# -------------------------------------------
2033# Tests whether TYPE exists after having included INCLUDES, setting cache
2034# variable VAR accordingly.
2035ac_fn_c_check_type ()
2036{
2037  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039$as_echo_n "checking for $2... " >&6; }
2040if eval \${$3+:} false; then :
2041  $as_echo_n "(cached) " >&6
2042else
2043  eval "$3=no"
2044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h.  */
2046$4
2047int
2048main ()
2049{
2050if (sizeof ($2))
2051	 return 0;
2052  ;
2053  return 0;
2054}
2055_ACEOF
2056if ac_fn_c_try_compile "$LINENO"; then :
2057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h.  */
2059$4
2060int
2061main ()
2062{
2063if (sizeof (($2)))
2064	    return 0;
2065  ;
2066  return 0;
2067}
2068_ACEOF
2069if ac_fn_c_try_compile "$LINENO"; then :
2070
2071else
2072  eval "$3=yes"
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075fi
2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077fi
2078eval ac_res=\$$3
2079	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080$as_echo "$ac_res" >&6; }
2081  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082
2083} # ac_fn_c_check_type
2084cat >config.log <<_ACEOF
2085This file contains any messages produced by compilers while
2086running configure, to aid debugging if configure makes a mistake.
2087
2088It was created by unixcw $as_me 3.5.1, which was
2089generated by GNU Autoconf 2.69.  Invocation command line was
2090
2091  $ $0 $@
2092
2093_ACEOF
2094exec 5>>config.log
2095{
2096cat <<_ASUNAME
2097## --------- ##
2098## Platform. ##
2099## --------- ##
2100
2101hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2102uname -m = `(uname -m) 2>/dev/null || echo unknown`
2103uname -r = `(uname -r) 2>/dev/null || echo unknown`
2104uname -s = `(uname -s) 2>/dev/null || echo unknown`
2105uname -v = `(uname -v) 2>/dev/null || echo unknown`
2106
2107/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2108/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2109
2110/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2111/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2112/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2113/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2114/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2115/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2116/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2117
2118_ASUNAME
2119
2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH
2122do
2123  IFS=$as_save_IFS
2124  test -z "$as_dir" && as_dir=.
2125    $as_echo "PATH: $as_dir"
2126  done
2127IFS=$as_save_IFS
2128
2129} >&5
2130
2131cat >&5 <<_ACEOF
2132
2133
2134## ----------- ##
2135## Core tests. ##
2136## ----------- ##
2137
2138_ACEOF
2139
2140
2141# Keep a trace of the command line.
2142# Strip out --no-create and --no-recursion so they do not pile up.
2143# Strip out --silent because we don't want to record it for future runs.
2144# Also quote any args containing shell meta-characters.
2145# Make two passes to allow for proper duplicate-argument suppression.
2146ac_configure_args=
2147ac_configure_args0=
2148ac_configure_args1=
2149ac_must_keep_next=false
2150for ac_pass in 1 2
2151do
2152  for ac_arg
2153  do
2154    case $ac_arg in
2155    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2156    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2157    | -silent | --silent | --silen | --sile | --sil)
2158      continue ;;
2159    *\'*)
2160      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2161    esac
2162    case $ac_pass in
2163    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2164    2)
2165      as_fn_append ac_configure_args1 " '$ac_arg'"
2166      if test $ac_must_keep_next = true; then
2167	ac_must_keep_next=false # Got value, back to normal.
2168      else
2169	case $ac_arg in
2170	  *=* | --config-cache | -C | -disable-* | --disable-* \
2171	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2172	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2173	  | -with-* | --with-* | -without-* | --without-* | --x)
2174	    case "$ac_configure_args0 " in
2175	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2176	    esac
2177	    ;;
2178	  -* ) ac_must_keep_next=true ;;
2179	esac
2180      fi
2181      as_fn_append ac_configure_args " '$ac_arg'"
2182      ;;
2183    esac
2184  done
2185done
2186{ ac_configure_args0=; unset ac_configure_args0;}
2187{ ac_configure_args1=; unset ac_configure_args1;}
2188
2189# When interrupted or exit'd, cleanup temporary files, and complete
2190# config.log.  We remove comments because anyway the quotes in there
2191# would cause problems or look ugly.
2192# WARNING: Use '\'' to represent an apostrophe within the trap.
2193# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2194trap 'exit_status=$?
2195  # Save into config.log some information that might help in debugging.
2196  {
2197    echo
2198
2199    $as_echo "## ---------------- ##
2200## Cache variables. ##
2201## ---------------- ##"
2202    echo
2203    # The following way of writing the cache mishandles newlines in values,
2204(
2205  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2206    eval ac_val=\$$ac_var
2207    case $ac_val in #(
2208    *${as_nl}*)
2209      case $ac_var in #(
2210      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2211$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2212      esac
2213      case $ac_var in #(
2214      _ | IFS | as_nl) ;; #(
2215      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2216      *) { eval $ac_var=; unset $ac_var;} ;;
2217      esac ;;
2218    esac
2219  done
2220  (set) 2>&1 |
2221    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2222    *${as_nl}ac_space=\ *)
2223      sed -n \
2224	"s/'\''/'\''\\\\'\'''\''/g;
2225	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2226      ;; #(
2227    *)
2228      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2229      ;;
2230    esac |
2231    sort
2232)
2233    echo
2234
2235    $as_echo "## ----------------- ##
2236## Output variables. ##
2237## ----------------- ##"
2238    echo
2239    for ac_var in $ac_subst_vars
2240    do
2241      eval ac_val=\$$ac_var
2242      case $ac_val in
2243      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244      esac
2245      $as_echo "$ac_var='\''$ac_val'\''"
2246    done | sort
2247    echo
2248
2249    if test -n "$ac_subst_files"; then
2250      $as_echo "## ------------------- ##
2251## File substitutions. ##
2252## ------------------- ##"
2253      echo
2254      for ac_var in $ac_subst_files
2255      do
2256	eval ac_val=\$$ac_var
2257	case $ac_val in
2258	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259	esac
2260	$as_echo "$ac_var='\''$ac_val'\''"
2261      done | sort
2262      echo
2263    fi
2264
2265    if test -s confdefs.h; then
2266      $as_echo "## ----------- ##
2267## confdefs.h. ##
2268## ----------- ##"
2269      echo
2270      cat confdefs.h
2271      echo
2272    fi
2273    test "$ac_signal" != 0 &&
2274      $as_echo "$as_me: caught signal $ac_signal"
2275    $as_echo "$as_me: exit $exit_status"
2276  } >&5
2277  rm -f core *.core core.conftest.* &&
2278    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2279    exit $exit_status
2280' 0
2281for ac_signal in 1 2 13 15; do
2282  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2283done
2284ac_signal=0
2285
2286# confdefs.h avoids OS command line length limits that DEFS can exceed.
2287rm -f -r conftest* confdefs.h
2288
2289$as_echo "/* confdefs.h */" > confdefs.h
2290
2291# Predefined preprocessor variables.
2292
2293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_NAME "$PACKAGE_NAME"
2295_ACEOF
2296
2297cat >>confdefs.h <<_ACEOF
2298#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2299_ACEOF
2300
2301cat >>confdefs.h <<_ACEOF
2302#define PACKAGE_VERSION "$PACKAGE_VERSION"
2303_ACEOF
2304
2305cat >>confdefs.h <<_ACEOF
2306#define PACKAGE_STRING "$PACKAGE_STRING"
2307_ACEOF
2308
2309cat >>confdefs.h <<_ACEOF
2310#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2311_ACEOF
2312
2313cat >>confdefs.h <<_ACEOF
2314#define PACKAGE_URL "$PACKAGE_URL"
2315_ACEOF
2316
2317
2318# Let the site file select an alternate cache file if it wants to.
2319# Prefer an explicitly selected file to automatically selected ones.
2320ac_site_file1=NONE
2321ac_site_file2=NONE
2322if test -n "$CONFIG_SITE"; then
2323  # We do not want a PATH search for config.site.
2324  case $CONFIG_SITE in #((
2325    -*)  ac_site_file1=./$CONFIG_SITE;;
2326    */*) ac_site_file1=$CONFIG_SITE;;
2327    *)   ac_site_file1=./$CONFIG_SITE;;
2328  esac
2329elif test "x$prefix" != xNONE; then
2330  ac_site_file1=$prefix/share/config.site
2331  ac_site_file2=$prefix/etc/config.site
2332else
2333  ac_site_file1=$ac_default_prefix/share/config.site
2334  ac_site_file2=$ac_default_prefix/etc/config.site
2335fi
2336for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2337do
2338  test "x$ac_site_file" = xNONE && continue
2339  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2340    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2341$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2342    sed 's/^/| /' "$ac_site_file" >&5
2343    . "$ac_site_file" \
2344      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346as_fn_error $? "failed to load site script $ac_site_file
2347See \`config.log' for more details" "$LINENO" 5; }
2348  fi
2349done
2350
2351if test -r "$cache_file"; then
2352  # Some versions of bash will fail to source /dev/null (special files
2353  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2354  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2355    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2356$as_echo "$as_me: loading cache $cache_file" >&6;}
2357    case $cache_file in
2358      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2359      *)                      . "./$cache_file";;
2360    esac
2361  fi
2362else
2363  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2364$as_echo "$as_me: creating cache $cache_file" >&6;}
2365  >$cache_file
2366fi
2367
2368# Check that the precious variables saved in the cache have kept the same
2369# value.
2370ac_cache_corrupted=false
2371for ac_var in $ac_precious_vars; do
2372  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2373  eval ac_new_set=\$ac_env_${ac_var}_set
2374  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2375  eval ac_new_val=\$ac_env_${ac_var}_value
2376  case $ac_old_set,$ac_new_set in
2377    set,)
2378      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2379$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2380      ac_cache_corrupted=: ;;
2381    ,set)
2382      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2383$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2384      ac_cache_corrupted=: ;;
2385    ,);;
2386    *)
2387      if test "x$ac_old_val" != "x$ac_new_val"; then
2388	# differences in whitespace do not lead to failure.
2389	ac_old_val_w=`echo x $ac_old_val`
2390	ac_new_val_w=`echo x $ac_new_val`
2391	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2392	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2393$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2394	  ac_cache_corrupted=:
2395	else
2396	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2397$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2398	  eval $ac_var=\$ac_old_val
2399	fi
2400	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2401$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2402	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2403$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2404      fi;;
2405  esac
2406  # Pass precious variables to config.status.
2407  if test "$ac_new_set" = set; then
2408    case $ac_new_val in
2409    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2410    *) ac_arg=$ac_var=$ac_new_val ;;
2411    esac
2412    case " $ac_configure_args " in
2413      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2414      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2415    esac
2416  fi
2417done
2418if $ac_cache_corrupted; then
2419  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2422$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2423  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2424fi
2425## -------------------- ##
2426## Main body of script. ##
2427## -------------------- ##
2428
2429ac_ext=c
2430ac_cpp='$CPP $CPPFLAGS'
2431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434
2435
2436
2437am__api_version='1.14'
2438
2439ac_aux_dir=
2440for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2441  if test -f "$ac_dir/install-sh"; then
2442    ac_aux_dir=$ac_dir
2443    ac_install_sh="$ac_aux_dir/install-sh -c"
2444    break
2445  elif test -f "$ac_dir/install.sh"; then
2446    ac_aux_dir=$ac_dir
2447    ac_install_sh="$ac_aux_dir/install.sh -c"
2448    break
2449  elif test -f "$ac_dir/shtool"; then
2450    ac_aux_dir=$ac_dir
2451    ac_install_sh="$ac_aux_dir/shtool install -c"
2452    break
2453  fi
2454done
2455if test -z "$ac_aux_dir"; then
2456  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2457fi
2458
2459# These three variables are undocumented and unsupported,
2460# and are intended to be withdrawn in a future Autoconf release.
2461# They can cause serious problems if a builder's source tree is in a directory
2462# whose full name contains unusual characters.
2463ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2464ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2465ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2466
2467
2468# Find a good install program.  We prefer a C program (faster),
2469# so one script is as good as another.  But avoid the broken or
2470# incompatible versions:
2471# SysV /etc/install, /usr/sbin/install
2472# SunOS /usr/etc/install
2473# IRIX /sbin/install
2474# AIX /bin/install
2475# AmigaOS /C/install, which installs bootblocks on floppy discs
2476# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2477# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2478# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2479# OS/2's system install, which has a completely different semantic
2480# ./install, which can be erroneously created by make from ./install.sh.
2481# Reject install programs that cannot install multiple files.
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2483$as_echo_n "checking for a BSD-compatible install... " >&6; }
2484if test -z "$INSTALL"; then
2485if ${ac_cv_path_install+:} false; then :
2486  $as_echo_n "(cached) " >&6
2487else
2488  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491  IFS=$as_save_IFS
2492  test -z "$as_dir" && as_dir=.
2493    # Account for people who put trailing slashes in PATH elements.
2494case $as_dir/ in #((
2495  ./ | .// | /[cC]/* | \
2496  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2497  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2498  /usr/ucb/* ) ;;
2499  *)
2500    # OSF1 and SCO ODT 3.0 have their own names for install.
2501    # Don't use installbsd from OSF since it installs stuff as root
2502    # by default.
2503    for ac_prog in ginstall scoinst install; do
2504      for ac_exec_ext in '' $ac_executable_extensions; do
2505	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2506	  if test $ac_prog = install &&
2507	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508	    # AIX install.  It has an incompatible calling convention.
2509	    :
2510	  elif test $ac_prog = install &&
2511	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512	    # program-specific install script used by HP pwplus--don't use.
2513	    :
2514	  else
2515	    rm -rf conftest.one conftest.two conftest.dir
2516	    echo one > conftest.one
2517	    echo two > conftest.two
2518	    mkdir conftest.dir
2519	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2520	      test -s conftest.one && test -s conftest.two &&
2521	      test -s conftest.dir/conftest.one &&
2522	      test -s conftest.dir/conftest.two
2523	    then
2524	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2525	      break 3
2526	    fi
2527	  fi
2528	fi
2529      done
2530    done
2531    ;;
2532esac
2533
2534  done
2535IFS=$as_save_IFS
2536
2537rm -rf conftest.one conftest.two conftest.dir
2538
2539fi
2540  if test "${ac_cv_path_install+set}" = set; then
2541    INSTALL=$ac_cv_path_install
2542  else
2543    # As a last resort, use the slow shell script.  Don't cache a
2544    # value for INSTALL within a source directory, because that will
2545    # break other packages using the cache if that directory is
2546    # removed, or if the value is a relative name.
2547    INSTALL=$ac_install_sh
2548  fi
2549fi
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2551$as_echo "$INSTALL" >&6; }
2552
2553# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2554# It thinks the first close brace ends the variable substitution.
2555test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2556
2557test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2558
2559test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2560
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2562$as_echo_n "checking whether build environment is sane... " >&6; }
2563# Reject unsafe characters in $srcdir or the absolute working directory
2564# name.  Accept space and tab only in the latter.
2565am_lf='
2566'
2567case `pwd` in
2568  *[\\\"\#\$\&\'\`$am_lf]*)
2569    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2570esac
2571case $srcdir in
2572  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2573    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2574esac
2575
2576# Do 'set' in a subshell so we don't clobber the current shell's
2577# arguments.  Must try -L first in case configure is actually a
2578# symlink; some systems play weird games with the mod time of symlinks
2579# (eg FreeBSD returns the mod time of the symlink's containing
2580# directory).
2581if (
2582   am_has_slept=no
2583   for am_try in 1 2; do
2584     echo "timestamp, slept: $am_has_slept" > conftest.file
2585     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2586     if test "$*" = "X"; then
2587	# -L didn't work.
2588	set X `ls -t "$srcdir/configure" conftest.file`
2589     fi
2590     if test "$*" != "X $srcdir/configure conftest.file" \
2591	&& test "$*" != "X conftest.file $srcdir/configure"; then
2592
2593	# If neither matched, then we have a broken ls.  This can happen
2594	# if, for instance, CONFIG_SHELL is bash and it inherits a
2595	# broken ls alias from the environment.  This has actually
2596	# happened.  Such a system could not be considered "sane".
2597	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2598  alias in your environment" "$LINENO" 5
2599     fi
2600     if test "$2" = conftest.file || test $am_try -eq 2; then
2601       break
2602     fi
2603     # Just in case.
2604     sleep 1
2605     am_has_slept=yes
2606   done
2607   test "$2" = conftest.file
2608   )
2609then
2610   # Ok.
2611   :
2612else
2613   as_fn_error $? "newly created file is older than distributed files!
2614Check your system clock" "$LINENO" 5
2615fi
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617$as_echo "yes" >&6; }
2618# If we didn't sleep, we still need to ensure time stamps of config.status and
2619# generated files are strictly newer.
2620am_sleep_pid=
2621if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2622  ( sleep 1 ) &
2623  am_sleep_pid=$!
2624fi
2625
2626rm -f conftest.file
2627
2628test "$program_prefix" != NONE &&
2629  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2630# Use a double $ so make ignores it.
2631test "$program_suffix" != NONE &&
2632  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2633# Double any \ or $.
2634# By default was `s,x,x', remove it if useless.
2635ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2636program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2637
2638# Expand $ac_aux_dir to an absolute path.
2639am_aux_dir=`cd "$ac_aux_dir" && pwd`
2640
2641if test x"${MISSING+set}" != xset; then
2642  case $am_aux_dir in
2643  *\ * | *\	*)
2644    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2645  *)
2646    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2647  esac
2648fi
2649# Use eval to expand $SHELL
2650if eval "$MISSING --is-lightweight"; then
2651  am_missing_run="$MISSING "
2652else
2653  am_missing_run=
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2655$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2656fi
2657
2658if test x"${install_sh}" != xset; then
2659  case $am_aux_dir in
2660  *\ * | *\	*)
2661    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2662  *)
2663    install_sh="\${SHELL} $am_aux_dir/install-sh"
2664  esac
2665fi
2666
2667# Installed binaries are usually stripped using 'strip' when the user
2668# run "make install-strip".  However 'strip' might not be the right
2669# tool to use in cross-compilation environments, therefore Automake
2670# will honor the 'STRIP' environment variable to overrule this program.
2671if test "$cross_compiling" != no; then
2672  if test -n "$ac_tool_prefix"; then
2673  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2674set dummy ${ac_tool_prefix}strip; ac_word=$2
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676$as_echo_n "checking for $ac_word... " >&6; }
2677if ${ac_cv_prog_STRIP+:} false; then :
2678  $as_echo_n "(cached) " >&6
2679else
2680  if test -n "$STRIP"; then
2681  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686  IFS=$as_save_IFS
2687  test -z "$as_dir" && as_dir=.
2688    for ac_exec_ext in '' $ac_executable_extensions; do
2689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692    break 2
2693  fi
2694done
2695  done
2696IFS=$as_save_IFS
2697
2698fi
2699fi
2700STRIP=$ac_cv_prog_STRIP
2701if test -n "$STRIP"; then
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2703$as_echo "$STRIP" >&6; }
2704else
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706$as_echo "no" >&6; }
2707fi
2708
2709
2710fi
2711if test -z "$ac_cv_prog_STRIP"; then
2712  ac_ct_STRIP=$STRIP
2713  # Extract the first word of "strip", so it can be a program name with args.
2714set dummy strip; ac_word=$2
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716$as_echo_n "checking for $ac_word... " >&6; }
2717if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2718  $as_echo_n "(cached) " >&6
2719else
2720  if test -n "$ac_ct_STRIP"; then
2721  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726  IFS=$as_save_IFS
2727  test -z "$as_dir" && as_dir=.
2728    for ac_exec_ext in '' $ac_executable_extensions; do
2729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730    ac_cv_prog_ac_ct_STRIP="strip"
2731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732    break 2
2733  fi
2734done
2735  done
2736IFS=$as_save_IFS
2737
2738fi
2739fi
2740ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2741if test -n "$ac_ct_STRIP"; then
2742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2743$as_echo "$ac_ct_STRIP" >&6; }
2744else
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746$as_echo "no" >&6; }
2747fi
2748
2749  if test "x$ac_ct_STRIP" = x; then
2750    STRIP=":"
2751  else
2752    case $cross_compiling:$ac_tool_warned in
2753yes:)
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756ac_tool_warned=yes ;;
2757esac
2758    STRIP=$ac_ct_STRIP
2759  fi
2760else
2761  STRIP="$ac_cv_prog_STRIP"
2762fi
2763
2764fi
2765INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2766
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2768$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2769if test -z "$MKDIR_P"; then
2770  if ${ac_cv_path_mkdir+:} false; then :
2771  $as_echo_n "(cached) " >&6
2772else
2773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2775do
2776  IFS=$as_save_IFS
2777  test -z "$as_dir" && as_dir=.
2778    for ac_prog in mkdir gmkdir; do
2779	 for ac_exec_ext in '' $ac_executable_extensions; do
2780	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2781	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2782	     'mkdir (GNU coreutils) '* | \
2783	     'mkdir (coreutils) '* | \
2784	     'mkdir (fileutils) '4.1*)
2785	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2786	       break 3;;
2787	   esac
2788	 done
2789       done
2790  done
2791IFS=$as_save_IFS
2792
2793fi
2794
2795  test -d ./--version && rmdir ./--version
2796  if test "${ac_cv_path_mkdir+set}" = set; then
2797    MKDIR_P="$ac_cv_path_mkdir -p"
2798  else
2799    # As a last resort, use the slow shell script.  Don't cache a
2800    # value for MKDIR_P within a source directory, because that will
2801    # break other packages using the cache if that directory is
2802    # removed, or if the value is a relative name.
2803    MKDIR_P="$ac_install_sh -d"
2804  fi
2805fi
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2807$as_echo "$MKDIR_P" >&6; }
2808
2809for ac_prog in gawk mawk nawk awk
2810do
2811  # Extract the first word of "$ac_prog", so it can be a program name with args.
2812set dummy $ac_prog; ac_word=$2
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814$as_echo_n "checking for $ac_word... " >&6; }
2815if ${ac_cv_prog_AWK+:} false; then :
2816  $as_echo_n "(cached) " >&6
2817else
2818  if test -n "$AWK"; then
2819  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824  IFS=$as_save_IFS
2825  test -z "$as_dir" && as_dir=.
2826    for ac_exec_ext in '' $ac_executable_extensions; do
2827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828    ac_cv_prog_AWK="$ac_prog"
2829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830    break 2
2831  fi
2832done
2833  done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838AWK=$ac_cv_prog_AWK
2839if test -n "$AWK"; then
2840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2841$as_echo "$AWK" >&6; }
2842else
2843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845fi
2846
2847
2848  test -n "$AWK" && break
2849done
2850
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2852$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2853set x ${MAKE-make}
2854ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2855if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2856  $as_echo_n "(cached) " >&6
2857else
2858  cat >conftest.make <<\_ACEOF
2859SHELL = /bin/sh
2860all:
2861	@echo '@@@%%%=$(MAKE)=@@@%%%'
2862_ACEOF
2863# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2864case `${MAKE-make} -f conftest.make 2>/dev/null` in
2865  *@@@%%%=?*=@@@%%%*)
2866    eval ac_cv_prog_make_${ac_make}_set=yes;;
2867  *)
2868    eval ac_cv_prog_make_${ac_make}_set=no;;
2869esac
2870rm -f conftest.make
2871fi
2872if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874$as_echo "yes" >&6; }
2875  SET_MAKE=
2876else
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878$as_echo "no" >&6; }
2879  SET_MAKE="MAKE=${MAKE-make}"
2880fi
2881
2882rm -rf .tst 2>/dev/null
2883mkdir .tst 2>/dev/null
2884if test -d .tst; then
2885  am__leading_dot=.
2886else
2887  am__leading_dot=_
2888fi
2889rmdir .tst 2>/dev/null
2890
2891# Check whether --enable-silent-rules was given.
2892if test "${enable_silent_rules+set}" = set; then :
2893  enableval=$enable_silent_rules;
2894fi
2895
2896case $enable_silent_rules in # (((
2897  yes) AM_DEFAULT_VERBOSITY=0;;
2898   no) AM_DEFAULT_VERBOSITY=1;;
2899    *) AM_DEFAULT_VERBOSITY=1;;
2900esac
2901am_make=${MAKE-make}
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2903$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2904if ${am_cv_make_support_nested_variables+:} false; then :
2905  $as_echo_n "(cached) " >&6
2906else
2907  if $as_echo 'TRUE=$(BAR$(V))
2908BAR0=false
2909BAR1=true
2910V=1
2911am__doit:
2912	@$(TRUE)
2913.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2914  am_cv_make_support_nested_variables=yes
2915else
2916  am_cv_make_support_nested_variables=no
2917fi
2918fi
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2920$as_echo "$am_cv_make_support_nested_variables" >&6; }
2921if test $am_cv_make_support_nested_variables = yes; then
2922    AM_V='$(V)'
2923  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2924else
2925  AM_V=$AM_DEFAULT_VERBOSITY
2926  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2927fi
2928AM_BACKSLASH='\'
2929
2930if test "`cd $srcdir && pwd`" != "`pwd`"; then
2931  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2932  # is not polluted with repeated "-I."
2933  am__isrc=' -I$(srcdir)'
2934  # test to see if srcdir already configured
2935  if test -f $srcdir/config.status; then
2936    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2937  fi
2938fi
2939
2940# test whether we have cygpath
2941if test -z "$CYGPATH_W"; then
2942  if (cygpath --version) >/dev/null 2>/dev/null; then
2943    CYGPATH_W='cygpath -w'
2944  else
2945    CYGPATH_W=echo
2946  fi
2947fi
2948
2949
2950# Define the identity of the package.
2951 PACKAGE='unixcw'
2952 VERSION='3.5.1'
2953
2954
2955cat >>confdefs.h <<_ACEOF
2956#define PACKAGE "$PACKAGE"
2957_ACEOF
2958
2959
2960cat >>confdefs.h <<_ACEOF
2961#define VERSION "$VERSION"
2962_ACEOF
2963
2964# Some tools Automake needs.
2965
2966ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2967
2968
2969AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2970
2971
2972AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2973
2974
2975AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2976
2977
2978MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2979
2980# For better backward compatibility.  To be removed once Automake 1.9.x
2981# dies out for good.  For more background, see:
2982# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2983# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2984mkdir_p='$(MKDIR_P)'
2985
2986# We need awk for the "check" target.  The system "awk" is bad on
2987# some platforms.
2988# Always define AMTAR for backward compatibility.  Yes, it's still used
2989# in the wild :-(  We should find a proper way to deprecate it ...
2990AMTAR='$${TAR-tar}'
2991
2992
2993# We'll loop over all known methods to create a tar archive until one works.
2994_am_tools='gnutar  pax cpio none'
2995
2996am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2997
2998
2999
3000
3001
3002
3003# POSIX will say in a future version that running "rm -f" with no argument
3004# is OK; and we want to be able to make that assumption in our Makefile
3005# recipes.  So use an aggressive probe to check that the usage we want is
3006# actually supported "in the wild" to an acceptable degree.
3007# See automake bug#10828.
3008# To make any issue more visible, cause the running configure to be aborted
3009# by default if the 'rm' program in use doesn't match our expectations; the
3010# user can still override this though.
3011if rm -f && rm -fr && rm -rf; then : OK; else
3012  cat >&2 <<'END'
3013Oops!
3014
3015Your 'rm' program seems unable to run without file operands specified
3016on the command line, even when the '-f' option is present.  This is contrary
3017to the behaviour of most rm programs out there, and not conforming with
3018the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3019
3020Please tell bug-automake@gnu.org about your system, including the value
3021of your $PATH and any error possibly output before this message.  This
3022can help us improve future automake versions.
3023
3024END
3025  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3026    echo 'Configuration will proceed anyway, since you have set the' >&2
3027    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3028    echo >&2
3029  else
3030    cat >&2 <<'END'
3031Aborting the configuration process, to ensure you take notice of the issue.
3032
3033You can download and install GNU coreutils to get an 'rm' implementation
3034that behaves properly: <http://www.gnu.org/software/coreutils/>.
3035
3036If you want to complete the configuration process using your problematic
3037'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3038to "yes", and re-run configure.
3039
3040END
3041    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3042  fi
3043fi
3044
3045
3046# Libtool initialization, added during tests on FreeBSD
3047case `pwd` in
3048  *\ * | *\	*)
3049    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3050$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3051esac
3052
3053
3054
3055macro_version='2.4.2'
3056macro_revision='1.3337'
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070ltmain="$ac_aux_dir/ltmain.sh"
3071
3072# Make sure we can run config.sub.
3073$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3074  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3075
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3077$as_echo_n "checking build system type... " >&6; }
3078if ${ac_cv_build+:} false; then :
3079  $as_echo_n "(cached) " >&6
3080else
3081  ac_build_alias=$build_alias
3082test "x$ac_build_alias" = x &&
3083  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3084test "x$ac_build_alias" = x &&
3085  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3086ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3087  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3088
3089fi
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3091$as_echo "$ac_cv_build" >&6; }
3092case $ac_cv_build in
3093*-*-*) ;;
3094*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3095esac
3096build=$ac_cv_build
3097ac_save_IFS=$IFS; IFS='-'
3098set x $ac_cv_build
3099shift
3100build_cpu=$1
3101build_vendor=$2
3102shift; shift
3103# Remember, the first character of IFS is used to create $*,
3104# except with old shells:
3105build_os=$*
3106IFS=$ac_save_IFS
3107case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3108
3109
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3111$as_echo_n "checking host system type... " >&6; }
3112if ${ac_cv_host+:} false; then :
3113  $as_echo_n "(cached) " >&6
3114else
3115  if test "x$host_alias" = x; then
3116  ac_cv_host=$ac_cv_build
3117else
3118  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3119    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3120fi
3121
3122fi
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3124$as_echo "$ac_cv_host" >&6; }
3125case $ac_cv_host in
3126*-*-*) ;;
3127*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3128esac
3129host=$ac_cv_host
3130ac_save_IFS=$IFS; IFS='-'
3131set x $ac_cv_host
3132shift
3133host_cpu=$1
3134host_vendor=$2
3135shift; shift
3136# Remember, the first character of IFS is used to create $*,
3137# except with old shells:
3138host_os=$*
3139IFS=$ac_save_IFS
3140case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3141
3142
3143# Backslashify metacharacters that are still active within
3144# double-quoted strings.
3145sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3146
3147# Same as above, but do not quote variable references.
3148double_quote_subst='s/\(["`\\]\)/\\\1/g'
3149
3150# Sed substitution to delay expansion of an escaped shell variable in a
3151# double_quote_subst'ed string.
3152delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3153
3154# Sed substitution to delay expansion of an escaped single quote.
3155delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3156
3157# Sed substitution to avoid accidental globbing in evaled expressions
3158no_glob_subst='s/\*/\\\*/g'
3159
3160ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3161ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3162ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3163
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3165$as_echo_n "checking how to print strings... " >&6; }
3166# Test print first, because it will be a builtin if present.
3167if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3168   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3169  ECHO='print -r --'
3170elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3171  ECHO='printf %s\n'
3172else
3173  # Use this function as a fallback that always works.
3174  func_fallback_echo ()
3175  {
3176    eval 'cat <<_LTECHO_EOF
3177$1
3178_LTECHO_EOF'
3179  }
3180  ECHO='func_fallback_echo'
3181fi
3182
3183# func_echo_all arg...
3184# Invoke $ECHO with all args, space-separated.
3185func_echo_all ()
3186{
3187    $ECHO ""
3188}
3189
3190case "$ECHO" in
3191  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3192$as_echo "printf" >&6; } ;;
3193  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3194$as_echo "print -r" >&6; } ;;
3195  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3196$as_echo "cat" >&6; } ;;
3197esac
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212DEPDIR="${am__leading_dot}deps"
3213
3214ac_config_commands="$ac_config_commands depfiles"
3215
3216
3217am_make=${MAKE-make}
3218cat > confinc << 'END'
3219am__doit:
3220	@echo this is the am__doit target
3221.PHONY: am__doit
3222END
3223# If we don't find an include directive, just comment out the code.
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3225$as_echo_n "checking for style of include used by $am_make... " >&6; }
3226am__include="#"
3227am__quote=
3228_am_result=none
3229# First try GNU make style include.
3230echo "include confinc" > confmf
3231# Ignore all kinds of additional output from 'make'.
3232case `$am_make -s -f confmf 2> /dev/null` in #(
3233*the\ am__doit\ target*)
3234  am__include=include
3235  am__quote=
3236  _am_result=GNU
3237  ;;
3238esac
3239# Now try BSD make style include.
3240if test "$am__include" = "#"; then
3241   echo '.include "confinc"' > confmf
3242   case `$am_make -s -f confmf 2> /dev/null` in #(
3243   *the\ am__doit\ target*)
3244     am__include=.include
3245     am__quote="\""
3246     _am_result=BSD
3247     ;;
3248   esac
3249fi
3250
3251
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3253$as_echo "$_am_result" >&6; }
3254rm -f confinc confmf
3255
3256# Check whether --enable-dependency-tracking was given.
3257if test "${enable_dependency_tracking+set}" = set; then :
3258  enableval=$enable_dependency_tracking;
3259fi
3260
3261if test "x$enable_dependency_tracking" != xno; then
3262  am_depcomp="$ac_aux_dir/depcomp"
3263  AMDEPBACKSLASH='\'
3264  am__nodep='_no'
3265fi
3266 if test "x$enable_dependency_tracking" != xno; then
3267  AMDEP_TRUE=
3268  AMDEP_FALSE='#'
3269else
3270  AMDEP_TRUE='#'
3271  AMDEP_FALSE=
3272fi
3273
3274
3275ac_ext=c
3276ac_cpp='$CPP $CPPFLAGS'
3277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280if test -n "$ac_tool_prefix"; then
3281  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3282set dummy ${ac_tool_prefix}gcc; 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_CC+:} false; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288  if test -n "$CC"; then
3289  ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}gcc"
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
3308CC=$ac_cv_prog_CC
3309if test -n "$CC"; then
3310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3311$as_echo "$CC" >&6; }
3312else
3313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315fi
3316
3317
3318fi
3319if test -z "$ac_cv_prog_CC"; then
3320  ac_ct_CC=$CC
3321  # Extract the first word of "gcc", so it can be a program name with args.
3322set dummy gcc; ac_word=$2
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324$as_echo_n "checking for $ac_word... " >&6; }
3325if ${ac_cv_prog_ac_ct_CC+:} false; then :
3326  $as_echo_n "(cached) " >&6
3327else
3328  if test -n "$ac_ct_CC"; then
3329  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334  IFS=$as_save_IFS
3335  test -z "$as_dir" && as_dir=.
3336    for ac_exec_ext in '' $ac_executable_extensions; do
3337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338    ac_cv_prog_ac_ct_CC="gcc"
3339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340    break 2
3341  fi
3342done
3343  done
3344IFS=$as_save_IFS
3345
3346fi
3347fi
3348ac_ct_CC=$ac_cv_prog_ac_ct_CC
3349if test -n "$ac_ct_CC"; then
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3351$as_echo "$ac_ct_CC" >&6; }
3352else
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355fi
3356
3357  if test "x$ac_ct_CC" = x; then
3358    CC=""
3359  else
3360    case $cross_compiling:$ac_tool_warned in
3361yes:)
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364ac_tool_warned=yes ;;
3365esac
3366    CC=$ac_ct_CC
3367  fi
3368else
3369  CC="$ac_cv_prog_CC"
3370fi
3371
3372if test -z "$CC"; then
3373          if test -n "$ac_tool_prefix"; then
3374    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3375set dummy ${ac_tool_prefix}cc; ac_word=$2
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377$as_echo_n "checking for $ac_word... " >&6; }
3378if ${ac_cv_prog_CC+:} false; then :
3379  $as_echo_n "(cached) " >&6
3380else
3381  if test -n "$CC"; then
3382  ac_cv_prog_CC="$CC" # Let the user override the test.
3383else
3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385for as_dir in $PATH
3386do
3387  IFS=$as_save_IFS
3388  test -z "$as_dir" && as_dir=.
3389    for ac_exec_ext in '' $ac_executable_extensions; do
3390  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391    ac_cv_prog_CC="${ac_tool_prefix}cc"
3392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393    break 2
3394  fi
3395done
3396  done
3397IFS=$as_save_IFS
3398
3399fi
3400fi
3401CC=$ac_cv_prog_CC
3402if test -n "$CC"; then
3403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404$as_echo "$CC" >&6; }
3405else
3406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407$as_echo "no" >&6; }
3408fi
3409
3410
3411  fi
3412fi
3413if test -z "$CC"; then
3414  # Extract the first word of "cc", so it can be a program name with args.
3415set dummy cc; ac_word=$2
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417$as_echo_n "checking for $ac_word... " >&6; }
3418if ${ac_cv_prog_CC+:} false; then :
3419  $as_echo_n "(cached) " >&6
3420else
3421  if test -n "$CC"; then
3422  ac_cv_prog_CC="$CC" # Let the user override the test.
3423else
3424  ac_prog_rejected=no
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428  IFS=$as_save_IFS
3429  test -z "$as_dir" && as_dir=.
3430    for ac_exec_ext in '' $ac_executable_extensions; do
3431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3433       ac_prog_rejected=yes
3434       continue
3435     fi
3436    ac_cv_prog_CC="cc"
3437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438    break 2
3439  fi
3440done
3441  done
3442IFS=$as_save_IFS
3443
3444if test $ac_prog_rejected = yes; then
3445  # We found a bogon in the path, so make sure we never use it.
3446  set dummy $ac_cv_prog_CC
3447  shift
3448  if test $# != 0; then
3449    # We chose a different compiler from the bogus one.
3450    # However, it has the same basename, so the bogon will be chosen
3451    # first if we set CC to just the basename; use the full file name.
3452    shift
3453    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3454  fi
3455fi
3456fi
3457fi
3458CC=$ac_cv_prog_CC
3459if test -n "$CC"; then
3460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461$as_echo "$CC" >&6; }
3462else
3463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464$as_echo "no" >&6; }
3465fi
3466
3467
3468fi
3469if test -z "$CC"; then
3470  if test -n "$ac_tool_prefix"; then
3471  for ac_prog in cl.exe
3472  do
3473    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3474set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476$as_echo_n "checking for $ac_word... " >&6; }
3477if ${ac_cv_prog_CC+:} false; then :
3478  $as_echo_n "(cached) " >&6
3479else
3480  if test -n "$CC"; then
3481  ac_cv_prog_CC="$CC" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486  IFS=$as_save_IFS
3487  test -z "$as_dir" && as_dir=.
3488    for ac_exec_ext in '' $ac_executable_extensions; do
3489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492    break 2
3493  fi
3494done
3495  done
3496IFS=$as_save_IFS
3497
3498fi
3499fi
3500CC=$ac_cv_prog_CC
3501if test -n "$CC"; then
3502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503$as_echo "$CC" >&6; }
3504else
3505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
3507fi
3508
3509
3510    test -n "$CC" && break
3511  done
3512fi
3513if test -z "$CC"; then
3514  ac_ct_CC=$CC
3515  for ac_prog in cl.exe
3516do
3517  # Extract the first word of "$ac_prog", so it can be a program name with args.
3518set dummy $ac_prog; ac_word=$2
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520$as_echo_n "checking for $ac_word... " >&6; }
3521if ${ac_cv_prog_ac_ct_CC+:} false; then :
3522  $as_echo_n "(cached) " >&6
3523else
3524  if test -n "$ac_ct_CC"; then
3525  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3526else
3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH
3529do
3530  IFS=$as_save_IFS
3531  test -z "$as_dir" && as_dir=.
3532    for ac_exec_ext in '' $ac_executable_extensions; do
3533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534    ac_cv_prog_ac_ct_CC="$ac_prog"
3535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536    break 2
3537  fi
3538done
3539  done
3540IFS=$as_save_IFS
3541
3542fi
3543fi
3544ac_ct_CC=$ac_cv_prog_ac_ct_CC
3545if test -n "$ac_ct_CC"; then
3546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3547$as_echo "$ac_ct_CC" >&6; }
3548else
3549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550$as_echo "no" >&6; }
3551fi
3552
3553
3554  test -n "$ac_ct_CC" && break
3555done
3556
3557  if test "x$ac_ct_CC" = x; then
3558    CC=""
3559  else
3560    case $cross_compiling:$ac_tool_warned in
3561yes:)
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3564ac_tool_warned=yes ;;
3565esac
3566    CC=$ac_ct_CC
3567  fi
3568fi
3569
3570fi
3571
3572
3573test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575as_fn_error $? "no acceptable C compiler found in \$PATH
3576See \`config.log' for more details" "$LINENO" 5; }
3577
3578# Provide some information about the compiler.
3579$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3580set X $ac_compile
3581ac_compiler=$2
3582for ac_option in --version -v -V -qversion; do
3583  { { ac_try="$ac_compiler $ac_option >&5"
3584case "(($ac_try" in
3585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586  *) ac_try_echo=$ac_try;;
3587esac
3588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589$as_echo "$ac_try_echo"; } >&5
3590  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3591  ac_status=$?
3592  if test -s conftest.err; then
3593    sed '10a\
3594... rest of stderr output deleted ...
3595         10q' conftest.err >conftest.er1
3596    cat conftest.er1 >&5
3597  fi
3598  rm -f conftest.er1 conftest.err
3599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600  test $ac_status = 0; }
3601done
3602
3603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605
3606int
3607main ()
3608{
3609
3610  ;
3611  return 0;
3612}
3613_ACEOF
3614ac_clean_files_save=$ac_clean_files
3615ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3616# Try to create an executable without -o first, disregard a.out.
3617# It will help us diagnose broken compilers, and finding out an intuition
3618# of exeext.
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3620$as_echo_n "checking whether the C compiler works... " >&6; }
3621ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3622
3623# The possible output files:
3624ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3625
3626ac_rmfiles=
3627for ac_file in $ac_files
3628do
3629  case $ac_file in
3630    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3631    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3632  esac
3633done
3634rm -f $ac_rmfiles
3635
3636if { { ac_try="$ac_link_default"
3637case "(($ac_try" in
3638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639  *) ac_try_echo=$ac_try;;
3640esac
3641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642$as_echo "$ac_try_echo"; } >&5
3643  (eval "$ac_link_default") 2>&5
3644  ac_status=$?
3645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646  test $ac_status = 0; }; then :
3647  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3648# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3649# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3650# so that the user can short-circuit this test for compilers unknown to
3651# Autoconf.
3652for ac_file in $ac_files ''
3653do
3654  test -f "$ac_file" || continue
3655  case $ac_file in
3656    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3657	;;
3658    [ab].out )
3659	# We found the default executable, but exeext='' is most
3660	# certainly right.
3661	break;;
3662    *.* )
3663	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3664	then :; else
3665	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3666	fi
3667	# We set ac_cv_exeext here because the later test for it is not
3668	# safe: cross compilers may not add the suffix if given an `-o'
3669	# argument, so we may need to know it at that point already.
3670	# Even if this section looks crufty: it has the advantage of
3671	# actually working.
3672	break;;
3673    * )
3674	break;;
3675  esac
3676done
3677test "$ac_cv_exeext" = no && ac_cv_exeext=
3678
3679else
3680  ac_file=''
3681fi
3682if test -z "$ac_file"; then :
3683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684$as_echo "no" >&6; }
3685$as_echo "$as_me: failed program was:" >&5
3686sed 's/^/| /' conftest.$ac_ext >&5
3687
3688{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690as_fn_error 77 "C compiler cannot create executables
3691See \`config.log' for more details" "$LINENO" 5; }
3692else
3693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3694$as_echo "yes" >&6; }
3695fi
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3697$as_echo_n "checking for C compiler default output file name... " >&6; }
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3699$as_echo "$ac_file" >&6; }
3700ac_exeext=$ac_cv_exeext
3701
3702rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3703ac_clean_files=$ac_clean_files_save
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3705$as_echo_n "checking for suffix of executables... " >&6; }
3706if { { ac_try="$ac_link"
3707case "(($ac_try" in
3708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709  *) ac_try_echo=$ac_try;;
3710esac
3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712$as_echo "$ac_try_echo"; } >&5
3713  (eval "$ac_link") 2>&5
3714  ac_status=$?
3715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716  test $ac_status = 0; }; then :
3717  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3718# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3719# work properly (i.e., refer to `conftest.exe'), while it won't with
3720# `rm'.
3721for ac_file in conftest.exe conftest conftest.*; do
3722  test -f "$ac_file" || continue
3723  case $ac_file in
3724    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3725    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3726	  break;;
3727    * ) break;;
3728  esac
3729done
3730else
3731  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3734See \`config.log' for more details" "$LINENO" 5; }
3735fi
3736rm -f conftest conftest$ac_cv_exeext
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3738$as_echo "$ac_cv_exeext" >&6; }
3739
3740rm -f conftest.$ac_ext
3741EXEEXT=$ac_cv_exeext
3742ac_exeext=$EXEEXT
3743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h.  */
3745#include <stdio.h>
3746int
3747main ()
3748{
3749FILE *f = fopen ("conftest.out", "w");
3750 return ferror (f) || fclose (f) != 0;
3751
3752  ;
3753  return 0;
3754}
3755_ACEOF
3756ac_clean_files="$ac_clean_files conftest.out"
3757# Check that the compiler produces executables we can run.  If not, either
3758# the compiler is broken, or we cross compile.
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3760$as_echo_n "checking whether we are cross compiling... " >&6; }
3761if test "$cross_compiling" != yes; then
3762  { { ac_try="$ac_link"
3763case "(($ac_try" in
3764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765  *) ac_try_echo=$ac_try;;
3766esac
3767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768$as_echo "$ac_try_echo"; } >&5
3769  (eval "$ac_link") 2>&5
3770  ac_status=$?
3771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772  test $ac_status = 0; }
3773  if { ac_try='./conftest$ac_cv_exeext'
3774  { { case "(($ac_try" in
3775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776  *) ac_try_echo=$ac_try;;
3777esac
3778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779$as_echo "$ac_try_echo"; } >&5
3780  (eval "$ac_try") 2>&5
3781  ac_status=$?
3782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783  test $ac_status = 0; }; }; then
3784    cross_compiling=no
3785  else
3786    if test "$cross_compiling" = maybe; then
3787	cross_compiling=yes
3788    else
3789	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3791as_fn_error $? "cannot run C compiled programs.
3792If you meant to cross compile, use \`--host'.
3793See \`config.log' for more details" "$LINENO" 5; }
3794    fi
3795  fi
3796fi
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3798$as_echo "$cross_compiling" >&6; }
3799
3800rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3801ac_clean_files=$ac_clean_files_save
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3803$as_echo_n "checking for suffix of object files... " >&6; }
3804if ${ac_cv_objext+:} false; then :
3805  $as_echo_n "(cached) " >&6
3806else
3807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808/* end confdefs.h.  */
3809
3810int
3811main ()
3812{
3813
3814  ;
3815  return 0;
3816}
3817_ACEOF
3818rm -f conftest.o conftest.obj
3819if { { ac_try="$ac_compile"
3820case "(($ac_try" in
3821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822  *) ac_try_echo=$ac_try;;
3823esac
3824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825$as_echo "$ac_try_echo"; } >&5
3826  (eval "$ac_compile") 2>&5
3827  ac_status=$?
3828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829  test $ac_status = 0; }; then :
3830  for ac_file in conftest.o conftest.obj conftest.*; do
3831  test -f "$ac_file" || continue;
3832  case $ac_file in
3833    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3834    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3835       break;;
3836  esac
3837done
3838else
3839  $as_echo "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
3842{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844as_fn_error $? "cannot compute suffix of object files: cannot compile
3845See \`config.log' for more details" "$LINENO" 5; }
3846fi
3847rm -f conftest.$ac_cv_objext conftest.$ac_ext
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3850$as_echo "$ac_cv_objext" >&6; }
3851OBJEXT=$ac_cv_objext
3852ac_objext=$OBJEXT
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3854$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3855if ${ac_cv_c_compiler_gnu+:} false; then :
3856  $as_echo_n "(cached) " >&6
3857else
3858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h.  */
3860
3861int
3862main ()
3863{
3864#ifndef __GNUC__
3865       choke me
3866#endif
3867
3868  ;
3869  return 0;
3870}
3871_ACEOF
3872if ac_fn_c_try_compile "$LINENO"; then :
3873  ac_compiler_gnu=yes
3874else
3875  ac_compiler_gnu=no
3876fi
3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878ac_cv_c_compiler_gnu=$ac_compiler_gnu
3879
3880fi
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3882$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3883if test $ac_compiler_gnu = yes; then
3884  GCC=yes
3885else
3886  GCC=
3887fi
3888ac_test_CFLAGS=${CFLAGS+set}
3889ac_save_CFLAGS=$CFLAGS
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3891$as_echo_n "checking whether $CC accepts -g... " >&6; }
3892if ${ac_cv_prog_cc_g+:} false; then :
3893  $as_echo_n "(cached) " >&6
3894else
3895  ac_save_c_werror_flag=$ac_c_werror_flag
3896   ac_c_werror_flag=yes
3897   ac_cv_prog_cc_g=no
3898   CFLAGS="-g"
3899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h.  */
3901
3902int
3903main ()
3904{
3905
3906  ;
3907  return 0;
3908}
3909_ACEOF
3910if ac_fn_c_try_compile "$LINENO"; then :
3911  ac_cv_prog_cc_g=yes
3912else
3913  CFLAGS=""
3914      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915/* end confdefs.h.  */
3916
3917int
3918main ()
3919{
3920
3921  ;
3922  return 0;
3923}
3924_ACEOF
3925if ac_fn_c_try_compile "$LINENO"; then :
3926
3927else
3928  ac_c_werror_flag=$ac_save_c_werror_flag
3929	 CFLAGS="-g"
3930	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931/* end confdefs.h.  */
3932
3933int
3934main ()
3935{
3936
3937  ;
3938  return 0;
3939}
3940_ACEOF
3941if ac_fn_c_try_compile "$LINENO"; then :
3942  ac_cv_prog_cc_g=yes
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945fi
3946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947fi
3948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949   ac_c_werror_flag=$ac_save_c_werror_flag
3950fi
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3952$as_echo "$ac_cv_prog_cc_g" >&6; }
3953if test "$ac_test_CFLAGS" = set; then
3954  CFLAGS=$ac_save_CFLAGS
3955elif test $ac_cv_prog_cc_g = yes; then
3956  if test "$GCC" = yes; then
3957    CFLAGS="-g -O2"
3958  else
3959    CFLAGS="-g"
3960  fi
3961else
3962  if test "$GCC" = yes; then
3963    CFLAGS="-O2"
3964  else
3965    CFLAGS=
3966  fi
3967fi
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3969$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3970if ${ac_cv_prog_cc_c89+:} false; then :
3971  $as_echo_n "(cached) " >&6
3972else
3973  ac_cv_prog_cc_c89=no
3974ac_save_CC=$CC
3975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976/* end confdefs.h.  */
3977#include <stdarg.h>
3978#include <stdio.h>
3979struct stat;
3980/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3981struct buf { int x; };
3982FILE * (*rcsopen) (struct buf *, struct stat *, int);
3983static char *e (p, i)
3984     char **p;
3985     int i;
3986{
3987  return p[i];
3988}
3989static char *f (char * (*g) (char **, int), char **p, ...)
3990{
3991  char *s;
3992  va_list v;
3993  va_start (v,p);
3994  s = g (p, va_arg (v,int));
3995  va_end (v);
3996  return s;
3997}
3998
3999/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4000   function prototypes and stuff, but not '\xHH' hex character constants.
4001   These don't provoke an error unfortunately, instead are silently treated
4002   as 'x'.  The following induces an error, until -std is added to get
4003   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4004   array size at least.  It's necessary to write '\x00'==0 to get something
4005   that's true only with -std.  */
4006int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4007
4008/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4009   inside strings and character constants.  */
4010#define FOO(x) 'x'
4011int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4012
4013int test (int i, double x);
4014struct s1 {int (*f) (int a);};
4015struct s2 {int (*f) (double a);};
4016int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4017int argc;
4018char **argv;
4019int
4020main ()
4021{
4022return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4023  ;
4024  return 0;
4025}
4026_ACEOF
4027for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4028	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4029do
4030  CC="$ac_save_CC $ac_arg"
4031  if ac_fn_c_try_compile "$LINENO"; then :
4032  ac_cv_prog_cc_c89=$ac_arg
4033fi
4034rm -f core conftest.err conftest.$ac_objext
4035  test "x$ac_cv_prog_cc_c89" != "xno" && break
4036done
4037rm -f conftest.$ac_ext
4038CC=$ac_save_CC
4039
4040fi
4041# AC_CACHE_VAL
4042case "x$ac_cv_prog_cc_c89" in
4043  x)
4044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4045$as_echo "none needed" >&6; } ;;
4046  xno)
4047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4048$as_echo "unsupported" >&6; } ;;
4049  *)
4050    CC="$CC $ac_cv_prog_cc_c89"
4051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4052$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4053esac
4054if test "x$ac_cv_prog_cc_c89" != xno; then :
4055
4056fi
4057
4058ac_ext=c
4059ac_cpp='$CPP $CPPFLAGS'
4060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063
4064ac_ext=c
4065ac_cpp='$CPP $CPPFLAGS'
4066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4070$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4071if ${am_cv_prog_cc_c_o+:} false; then :
4072  $as_echo_n "(cached) " >&6
4073else
4074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h.  */
4076
4077int
4078main ()
4079{
4080
4081  ;
4082  return 0;
4083}
4084_ACEOF
4085  # Make sure it works both with $CC and with simple cc.
4086  # Following AC_PROG_CC_C_O, we do the test twice because some
4087  # compilers refuse to overwrite an existing .o file with -o,
4088  # though they will create one.
4089  am_cv_prog_cc_c_o=yes
4090  for am_i in 1 2; do
4091    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4092   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } \
4096         && test -f conftest2.$ac_objext; then
4097      : OK
4098    else
4099      am_cv_prog_cc_c_o=no
4100      break
4101    fi
4102  done
4103  rm -f core conftest*
4104  unset am_i
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4107$as_echo "$am_cv_prog_cc_c_o" >&6; }
4108if test "$am_cv_prog_cc_c_o" != yes; then
4109   # Losing compiler, so override with the script.
4110   # FIXME: It is wrong to rewrite CC.
4111   # But if we don't then we get into trouble of one sort or another.
4112   # A longer-term fix would be to have automake use am__CC in this case,
4113   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4114   CC="$am_aux_dir/compile $CC"
4115fi
4116ac_ext=c
4117ac_cpp='$CPP $CPPFLAGS'
4118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121
4122
4123depcc="$CC"   am_compiler_list=
4124
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4126$as_echo_n "checking dependency style of $depcc... " >&6; }
4127if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4128  $as_echo_n "(cached) " >&6
4129else
4130  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4131  # We make a subdir and do the tests there.  Otherwise we can end up
4132  # making bogus files that we don't know about and never remove.  For
4133  # instance it was reported that on HP-UX the gcc test will end up
4134  # making a dummy file named 'D' -- because '-MD' means "put the output
4135  # in D".
4136  rm -rf conftest.dir
4137  mkdir conftest.dir
4138  # Copy depcomp to subdir because otherwise we won't find it if we're
4139  # using a relative directory.
4140  cp "$am_depcomp" conftest.dir
4141  cd conftest.dir
4142  # We will build objects and dependencies in a subdirectory because
4143  # it helps to detect inapplicable dependency modes.  For instance
4144  # both Tru64's cc and ICC support -MD to output dependencies as a
4145  # side effect of compilation, but ICC will put the dependencies in
4146  # the current directory while Tru64 will put them in the object
4147  # directory.
4148  mkdir sub
4149
4150  am_cv_CC_dependencies_compiler_type=none
4151  if test "$am_compiler_list" = ""; then
4152     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4153  fi
4154  am__universal=false
4155  case " $depcc " in #(
4156     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4157     esac
4158
4159  for depmode in $am_compiler_list; do
4160    # Setup a source with many dependencies, because some compilers
4161    # like to wrap large dependency lists on column 80 (with \), and
4162    # we should not choose a depcomp mode which is confused by this.
4163    #
4164    # We need to recreate these files for each test, as the compiler may
4165    # overwrite some of them when testing with obscure command lines.
4166    # This happens at least with the AIX C compiler.
4167    : > sub/conftest.c
4168    for i in 1 2 3 4 5 6; do
4169      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4170      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4171      # Solaris 10 /bin/sh.
4172      echo '/* dummy */' > sub/conftst$i.h
4173    done
4174    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4175
4176    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4177    # mode.  It turns out that the SunPro C++ compiler does not properly
4178    # handle '-M -o', and we need to detect this.  Also, some Intel
4179    # versions had trouble with output in subdirs.
4180    am__obj=sub/conftest.${OBJEXT-o}
4181    am__minus_obj="-o $am__obj"
4182    case $depmode in
4183    gcc)
4184      # This depmode causes a compiler race in universal mode.
4185      test "$am__universal" = false || continue
4186      ;;
4187    nosideeffect)
4188      # After this tag, mechanisms are not by side-effect, so they'll
4189      # only be used when explicitly requested.
4190      if test "x$enable_dependency_tracking" = xyes; then
4191	continue
4192      else
4193	break
4194      fi
4195      ;;
4196    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4197      # This compiler won't grok '-c -o', but also, the minuso test has
4198      # not run yet.  These depmodes are late enough in the game, and
4199      # so weak that their functioning should not be impacted.
4200      am__obj=conftest.${OBJEXT-o}
4201      am__minus_obj=
4202      ;;
4203    none) break ;;
4204    esac
4205    if depmode=$depmode \
4206       source=sub/conftest.c object=$am__obj \
4207       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4208       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4209         >/dev/null 2>conftest.err &&
4210       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4211       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4212       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4213       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4214      # icc doesn't choke on unknown options, it will just issue warnings
4215      # or remarks (even with -Werror).  So we grep stderr for any message
4216      # that says an option was ignored or not supported.
4217      # When given -MP, icc 7.0 and 7.1 complain thusly:
4218      #   icc: Command line warning: ignoring option '-M'; no argument required
4219      # The diagnosis changed in icc 8.0:
4220      #   icc: Command line remark: option '-MP' not supported
4221      if (grep 'ignoring option' conftest.err ||
4222          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4223        am_cv_CC_dependencies_compiler_type=$depmode
4224        break
4225      fi
4226    fi
4227  done
4228
4229  cd ..
4230  rm -rf conftest.dir
4231else
4232  am_cv_CC_dependencies_compiler_type=none
4233fi
4234
4235fi
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4237$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4238CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4239
4240 if
4241  test "x$enable_dependency_tracking" != xno \
4242  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4243  am__fastdepCC_TRUE=
4244  am__fastdepCC_FALSE='#'
4245else
4246  am__fastdepCC_TRUE='#'
4247  am__fastdepCC_FALSE=
4248fi
4249
4250
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4252$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4253if ${ac_cv_path_SED+:} false; then :
4254  $as_echo_n "(cached) " >&6
4255else
4256            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4257     for ac_i in 1 2 3 4 5 6 7; do
4258       ac_script="$ac_script$as_nl$ac_script"
4259     done
4260     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4261     { ac_script=; unset ac_script;}
4262     if test -z "$SED"; then
4263  ac_path_SED_found=false
4264  # Loop through the user's path and test for each of PROGNAME-LIST
4265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268  IFS=$as_save_IFS
4269  test -z "$as_dir" && as_dir=.
4270    for ac_prog in sed gsed; do
4271    for ac_exec_ext in '' $ac_executable_extensions; do
4272      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4273      as_fn_executable_p "$ac_path_SED" || continue
4274# Check for GNU ac_path_SED and select it if it is found.
4275  # Check for GNU $ac_path_SED
4276case `"$ac_path_SED" --version 2>&1` in
4277*GNU*)
4278  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4279*)
4280  ac_count=0
4281  $as_echo_n 0123456789 >"conftest.in"
4282  while :
4283  do
4284    cat "conftest.in" "conftest.in" >"conftest.tmp"
4285    mv "conftest.tmp" "conftest.in"
4286    cp "conftest.in" "conftest.nl"
4287    $as_echo '' >> "conftest.nl"
4288    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4289    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4290    as_fn_arith $ac_count + 1 && ac_count=$as_val
4291    if test $ac_count -gt ${ac_path_SED_max-0}; then
4292      # Best one so far, save it but keep looking for a better one
4293      ac_cv_path_SED="$ac_path_SED"
4294      ac_path_SED_max=$ac_count
4295    fi
4296    # 10*(2^10) chars as input seems more than enough
4297    test $ac_count -gt 10 && break
4298  done
4299  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300esac
4301
4302      $ac_path_SED_found && break 3
4303    done
4304  done
4305  done
4306IFS=$as_save_IFS
4307  if test -z "$ac_cv_path_SED"; then
4308    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4309  fi
4310else
4311  ac_cv_path_SED=$SED
4312fi
4313
4314fi
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4316$as_echo "$ac_cv_path_SED" >&6; }
4317 SED="$ac_cv_path_SED"
4318  rm -f conftest.sed
4319
4320test -z "$SED" && SED=sed
4321Xsed="$SED -e 1s/^X//"
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4334$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4335if ${ac_cv_path_GREP+:} false; then :
4336  $as_echo_n "(cached) " >&6
4337else
4338  if test -z "$GREP"; then
4339  ac_path_GREP_found=false
4340  # Loop through the user's path and test for each of PROGNAME-LIST
4341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4343do
4344  IFS=$as_save_IFS
4345  test -z "$as_dir" && as_dir=.
4346    for ac_prog in grep ggrep; do
4347    for ac_exec_ext in '' $ac_executable_extensions; do
4348      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4349      as_fn_executable_p "$ac_path_GREP" || continue
4350# Check for GNU ac_path_GREP and select it if it is found.
4351  # Check for GNU $ac_path_GREP
4352case `"$ac_path_GREP" --version 2>&1` in
4353*GNU*)
4354  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4355*)
4356  ac_count=0
4357  $as_echo_n 0123456789 >"conftest.in"
4358  while :
4359  do
4360    cat "conftest.in" "conftest.in" >"conftest.tmp"
4361    mv "conftest.tmp" "conftest.in"
4362    cp "conftest.in" "conftest.nl"
4363    $as_echo 'GREP' >> "conftest.nl"
4364    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366    as_fn_arith $ac_count + 1 && ac_count=$as_val
4367    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4368      # Best one so far, save it but keep looking for a better one
4369      ac_cv_path_GREP="$ac_path_GREP"
4370      ac_path_GREP_max=$ac_count
4371    fi
4372    # 10*(2^10) chars as input seems more than enough
4373    test $ac_count -gt 10 && break
4374  done
4375  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376esac
4377
4378      $ac_path_GREP_found && break 3
4379    done
4380  done
4381  done
4382IFS=$as_save_IFS
4383  if test -z "$ac_cv_path_GREP"; then
4384    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4385  fi
4386else
4387  ac_cv_path_GREP=$GREP
4388fi
4389
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4392$as_echo "$ac_cv_path_GREP" >&6; }
4393 GREP="$ac_cv_path_GREP"
4394
4395
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4397$as_echo_n "checking for egrep... " >&6; }
4398if ${ac_cv_path_EGREP+:} false; then :
4399  $as_echo_n "(cached) " >&6
4400else
4401  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4402   then ac_cv_path_EGREP="$GREP -E"
4403   else
4404     if test -z "$EGREP"; then
4405  ac_path_EGREP_found=false
4406  # Loop through the user's path and test for each of PROGNAME-LIST
4407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412    for ac_prog in egrep; do
4413    for ac_exec_ext in '' $ac_executable_extensions; do
4414      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4415      as_fn_executable_p "$ac_path_EGREP" || continue
4416# Check for GNU ac_path_EGREP and select it if it is found.
4417  # Check for GNU $ac_path_EGREP
4418case `"$ac_path_EGREP" --version 2>&1` in
4419*GNU*)
4420  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4421*)
4422  ac_count=0
4423  $as_echo_n 0123456789 >"conftest.in"
4424  while :
4425  do
4426    cat "conftest.in" "conftest.in" >"conftest.tmp"
4427    mv "conftest.tmp" "conftest.in"
4428    cp "conftest.in" "conftest.nl"
4429    $as_echo 'EGREP' >> "conftest.nl"
4430    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432    as_fn_arith $ac_count + 1 && ac_count=$as_val
4433    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434      # Best one so far, save it but keep looking for a better one
4435      ac_cv_path_EGREP="$ac_path_EGREP"
4436      ac_path_EGREP_max=$ac_count
4437    fi
4438    # 10*(2^10) chars as input seems more than enough
4439    test $ac_count -gt 10 && break
4440  done
4441  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442esac
4443
4444      $ac_path_EGREP_found && break 3
4445    done
4446  done
4447  done
4448IFS=$as_save_IFS
4449  if test -z "$ac_cv_path_EGREP"; then
4450    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4451  fi
4452else
4453  ac_cv_path_EGREP=$EGREP
4454fi
4455
4456   fi
4457fi
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4459$as_echo "$ac_cv_path_EGREP" >&6; }
4460 EGREP="$ac_cv_path_EGREP"
4461
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4464$as_echo_n "checking for fgrep... " >&6; }
4465if ${ac_cv_path_FGREP+:} false; then :
4466  $as_echo_n "(cached) " >&6
4467else
4468  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4469   then ac_cv_path_FGREP="$GREP -F"
4470   else
4471     if test -z "$FGREP"; then
4472  ac_path_FGREP_found=false
4473  # Loop through the user's path and test for each of PROGNAME-LIST
4474  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4476do
4477  IFS=$as_save_IFS
4478  test -z "$as_dir" && as_dir=.
4479    for ac_prog in fgrep; do
4480    for ac_exec_ext in '' $ac_executable_extensions; do
4481      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4482      as_fn_executable_p "$ac_path_FGREP" || continue
4483# Check for GNU ac_path_FGREP and select it if it is found.
4484  # Check for GNU $ac_path_FGREP
4485case `"$ac_path_FGREP" --version 2>&1` in
4486*GNU*)
4487  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4488*)
4489  ac_count=0
4490  $as_echo_n 0123456789 >"conftest.in"
4491  while :
4492  do
4493    cat "conftest.in" "conftest.in" >"conftest.tmp"
4494    mv "conftest.tmp" "conftest.in"
4495    cp "conftest.in" "conftest.nl"
4496    $as_echo 'FGREP' >> "conftest.nl"
4497    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4498    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4499    as_fn_arith $ac_count + 1 && ac_count=$as_val
4500    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4501      # Best one so far, save it but keep looking for a better one
4502      ac_cv_path_FGREP="$ac_path_FGREP"
4503      ac_path_FGREP_max=$ac_count
4504    fi
4505    # 10*(2^10) chars as input seems more than enough
4506    test $ac_count -gt 10 && break
4507  done
4508  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4509esac
4510
4511      $ac_path_FGREP_found && break 3
4512    done
4513  done
4514  done
4515IFS=$as_save_IFS
4516  if test -z "$ac_cv_path_FGREP"; then
4517    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4518  fi
4519else
4520  ac_cv_path_FGREP=$FGREP
4521fi
4522
4523   fi
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4526$as_echo "$ac_cv_path_FGREP" >&6; }
4527 FGREP="$ac_cv_path_FGREP"
4528
4529
4530test -z "$GREP" && GREP=grep
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550# Check whether --with-gnu-ld was given.
4551if test "${with_gnu_ld+set}" = set; then :
4552  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4553else
4554  with_gnu_ld=no
4555fi
4556
4557ac_prog=ld
4558if test "$GCC" = yes; then
4559  # Check if gcc -print-prog-name=ld gives a path.
4560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4561$as_echo_n "checking for ld used by $CC... " >&6; }
4562  case $host in
4563  *-*-mingw*)
4564    # gcc leaves a trailing carriage return which upsets mingw
4565    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4566  *)
4567    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4568  esac
4569  case $ac_prog in
4570    # Accept absolute paths.
4571    [\\/]* | ?:[\\/]*)
4572      re_direlt='/[^/][^/]*/\.\./'
4573      # Canonicalize the pathname of ld
4574      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4575      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4576	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4577      done
4578      test -z "$LD" && LD="$ac_prog"
4579      ;;
4580  "")
4581    # If it fails, then pretend we aren't using GCC.
4582    ac_prog=ld
4583    ;;
4584  *)
4585    # If it is relative, then search for the first ld in PATH.
4586    with_gnu_ld=unknown
4587    ;;
4588  esac
4589elif test "$with_gnu_ld" = yes; then
4590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4591$as_echo_n "checking for GNU ld... " >&6; }
4592else
4593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4594$as_echo_n "checking for non-GNU ld... " >&6; }
4595fi
4596if ${lt_cv_path_LD+:} false; then :
4597  $as_echo_n "(cached) " >&6
4598else
4599  if test -z "$LD"; then
4600  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4601  for ac_dir in $PATH; do
4602    IFS="$lt_save_ifs"
4603    test -z "$ac_dir" && ac_dir=.
4604    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4605      lt_cv_path_LD="$ac_dir/$ac_prog"
4606      # Check to see if the program is GNU ld.  I'd rather use --version,
4607      # but apparently some variants of GNU ld only accept -v.
4608      # Break only if it was the GNU/non-GNU ld that we prefer.
4609      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4610      *GNU* | *'with BFD'*)
4611	test "$with_gnu_ld" != no && break
4612	;;
4613      *)
4614	test "$with_gnu_ld" != yes && break
4615	;;
4616      esac
4617    fi
4618  done
4619  IFS="$lt_save_ifs"
4620else
4621  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4622fi
4623fi
4624
4625LD="$lt_cv_path_LD"
4626if test -n "$LD"; then
4627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4628$as_echo "$LD" >&6; }
4629else
4630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631$as_echo "no" >&6; }
4632fi
4633test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4635$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4636if ${lt_cv_prog_gnu_ld+:} false; then :
4637  $as_echo_n "(cached) " >&6
4638else
4639  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4640case `$LD -v 2>&1 </dev/null` in
4641*GNU* | *'with BFD'*)
4642  lt_cv_prog_gnu_ld=yes
4643  ;;
4644*)
4645  lt_cv_prog_gnu_ld=no
4646  ;;
4647esac
4648fi
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4650$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4651with_gnu_ld=$lt_cv_prog_gnu_ld
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4662$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4663if ${lt_cv_path_NM+:} false; then :
4664  $as_echo_n "(cached) " >&6
4665else
4666  if test -n "$NM"; then
4667  # Let the user override the test.
4668  lt_cv_path_NM="$NM"
4669else
4670  lt_nm_to_check="${ac_tool_prefix}nm"
4671  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4672    lt_nm_to_check="$lt_nm_to_check nm"
4673  fi
4674  for lt_tmp_nm in $lt_nm_to_check; do
4675    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4676    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4677      IFS="$lt_save_ifs"
4678      test -z "$ac_dir" && ac_dir=.
4679      tmp_nm="$ac_dir/$lt_tmp_nm"
4680      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4681	# Check to see if the nm accepts a BSD-compat flag.
4682	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4683	#   nm: unknown option "B" ignored
4684	# Tru64's nm complains that /dev/null is an invalid object file
4685	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4686	*/dev/null* | *'Invalid file or object type'*)
4687	  lt_cv_path_NM="$tmp_nm -B"
4688	  break
4689	  ;;
4690	*)
4691	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4692	  */dev/null*)
4693	    lt_cv_path_NM="$tmp_nm -p"
4694	    break
4695	    ;;
4696	  *)
4697	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4698	    continue # so that we can try to find one that supports BSD flags
4699	    ;;
4700	  esac
4701	  ;;
4702	esac
4703      fi
4704    done
4705    IFS="$lt_save_ifs"
4706  done
4707  : ${lt_cv_path_NM=no}
4708fi
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4711$as_echo "$lt_cv_path_NM" >&6; }
4712if test "$lt_cv_path_NM" != "no"; then
4713  NM="$lt_cv_path_NM"
4714else
4715  # Didn't find any BSD compatible name lister, look for dumpbin.
4716  if test -n "$DUMPBIN"; then :
4717    # Let the user override the test.
4718  else
4719    if test -n "$ac_tool_prefix"; then
4720  for ac_prog in dumpbin "link -dump"
4721  do
4722    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4723set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725$as_echo_n "checking for $ac_word... " >&6; }
4726if ${ac_cv_prog_DUMPBIN+:} false; then :
4727  $as_echo_n "(cached) " >&6
4728else
4729  if test -n "$DUMPBIN"; then
4730  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4731else
4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735  IFS=$as_save_IFS
4736  test -z "$as_dir" && as_dir=.
4737    for ac_exec_ext in '' $ac_executable_extensions; do
4738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741    break 2
4742  fi
4743done
4744  done
4745IFS=$as_save_IFS
4746
4747fi
4748fi
4749DUMPBIN=$ac_cv_prog_DUMPBIN
4750if test -n "$DUMPBIN"; then
4751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4752$as_echo "$DUMPBIN" >&6; }
4753else
4754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755$as_echo "no" >&6; }
4756fi
4757
4758
4759    test -n "$DUMPBIN" && break
4760  done
4761fi
4762if test -z "$DUMPBIN"; then
4763  ac_ct_DUMPBIN=$DUMPBIN
4764  for ac_prog in dumpbin "link -dump"
4765do
4766  # Extract the first word of "$ac_prog", so it can be a program name with args.
4767set dummy $ac_prog; ac_word=$2
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769$as_echo_n "checking for $ac_word... " >&6; }
4770if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4771  $as_echo_n "(cached) " >&6
4772else
4773  if test -n "$ac_ct_DUMPBIN"; then
4774  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4775else
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779  IFS=$as_save_IFS
4780  test -z "$as_dir" && as_dir=.
4781    for ac_exec_ext in '' $ac_executable_extensions; do
4782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785    break 2
4786  fi
4787done
4788  done
4789IFS=$as_save_IFS
4790
4791fi
4792fi
4793ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4794if test -n "$ac_ct_DUMPBIN"; then
4795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4796$as_echo "$ac_ct_DUMPBIN" >&6; }
4797else
4798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799$as_echo "no" >&6; }
4800fi
4801
4802
4803  test -n "$ac_ct_DUMPBIN" && break
4804done
4805
4806  if test "x$ac_ct_DUMPBIN" = x; then
4807    DUMPBIN=":"
4808  else
4809    case $cross_compiling:$ac_tool_warned in
4810yes:)
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4813ac_tool_warned=yes ;;
4814esac
4815    DUMPBIN=$ac_ct_DUMPBIN
4816  fi
4817fi
4818
4819    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4820    *COFF*)
4821      DUMPBIN="$DUMPBIN -symbols"
4822      ;;
4823    *)
4824      DUMPBIN=:
4825      ;;
4826    esac
4827  fi
4828
4829  if test "$DUMPBIN" != ":"; then
4830    NM="$DUMPBIN"
4831  fi
4832fi
4833test -z "$NM" && NM=nm
4834
4835
4836
4837
4838
4839
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4841$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4842if ${lt_cv_nm_interface+:} false; then :
4843  $as_echo_n "(cached) " >&6
4844else
4845  lt_cv_nm_interface="BSD nm"
4846  echo "int some_variable = 0;" > conftest.$ac_ext
4847  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4848  (eval "$ac_compile" 2>conftest.err)
4849  cat conftest.err >&5
4850  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4851  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4852  cat conftest.err >&5
4853  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4854  cat conftest.out >&5
4855  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4856    lt_cv_nm_interface="MS dumpbin"
4857  fi
4858  rm -f conftest*
4859fi
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4861$as_echo "$lt_cv_nm_interface" >&6; }
4862
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4864$as_echo_n "checking whether ln -s works... " >&6; }
4865LN_S=$as_ln_s
4866if test "$LN_S" = "ln -s"; then
4867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4868$as_echo "yes" >&6; }
4869else
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4871$as_echo "no, using $LN_S" >&6; }
4872fi
4873
4874# find the maximum length of command line arguments
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4876$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4877if ${lt_cv_sys_max_cmd_len+:} false; then :
4878  $as_echo_n "(cached) " >&6
4879else
4880    i=0
4881  teststring="ABCD"
4882
4883  case $build_os in
4884  msdosdjgpp*)
4885    # On DJGPP, this test can blow up pretty badly due to problems in libc
4886    # (any single argument exceeding 2000 bytes causes a buffer overrun
4887    # during glob expansion).  Even if it were fixed, the result of this
4888    # check would be larger than it should be.
4889    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4890    ;;
4891
4892  gnu*)
4893    # Under GNU Hurd, this test is not required because there is
4894    # no limit to the length of command line arguments.
4895    # Libtool will interpret -1 as no limit whatsoever
4896    lt_cv_sys_max_cmd_len=-1;
4897    ;;
4898
4899  cygwin* | mingw* | cegcc*)
4900    # On Win9x/ME, this test blows up -- it succeeds, but takes
4901    # about 5 minutes as the teststring grows exponentially.
4902    # Worse, since 9x/ME are not pre-emptively multitasking,
4903    # you end up with a "frozen" computer, even though with patience
4904    # the test eventually succeeds (with a max line length of 256k).
4905    # Instead, let's just punt: use the minimum linelength reported by
4906    # all of the supported platforms: 8192 (on NT/2K/XP).
4907    lt_cv_sys_max_cmd_len=8192;
4908    ;;
4909
4910  mint*)
4911    # On MiNT this can take a long time and run out of memory.
4912    lt_cv_sys_max_cmd_len=8192;
4913    ;;
4914
4915  amigaos*)
4916    # On AmigaOS with pdksh, this test takes hours, literally.
4917    # So we just punt and use a minimum line length of 8192.
4918    lt_cv_sys_max_cmd_len=8192;
4919    ;;
4920
4921  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4922    # This has been around since 386BSD, at least.  Likely further.
4923    if test -x /sbin/sysctl; then
4924      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4925    elif test -x /usr/sbin/sysctl; then
4926      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4927    else
4928      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4929    fi
4930    # And add a safety zone
4931    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4932    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4933    ;;
4934
4935  interix*)
4936    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4937    lt_cv_sys_max_cmd_len=196608
4938    ;;
4939
4940  os2*)
4941    # The test takes a long time on OS/2.
4942    lt_cv_sys_max_cmd_len=8192
4943    ;;
4944
4945  osf*)
4946    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4947    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4948    # nice to cause kernel panics so lets avoid the loop below.
4949    # First set a reasonable default.
4950    lt_cv_sys_max_cmd_len=16384
4951    #
4952    if test -x /sbin/sysconfig; then
4953      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4954        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4955      esac
4956    fi
4957    ;;
4958  sco3.2v5*)
4959    lt_cv_sys_max_cmd_len=102400
4960    ;;
4961  sysv5* | sco5v6* | sysv4.2uw2*)
4962    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4963    if test -n "$kargmax"; then
4964      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4965    else
4966      lt_cv_sys_max_cmd_len=32768
4967    fi
4968    ;;
4969  *)
4970    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4971    if test -n "$lt_cv_sys_max_cmd_len" && \
4972	test undefined != "$lt_cv_sys_max_cmd_len"; then
4973      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4974      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4975    else
4976      # Make teststring a little bigger before we do anything with it.
4977      # a 1K string should be a reasonable start.
4978      for i in 1 2 3 4 5 6 7 8 ; do
4979        teststring=$teststring$teststring
4980      done
4981      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4982      # If test is not a shell built-in, we'll probably end up computing a
4983      # maximum length that is only half of the actual maximum length, but
4984      # we can't tell.
4985      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4986	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4987	      test $i != 17 # 1/2 MB should be enough
4988      do
4989        i=`expr $i + 1`
4990        teststring=$teststring$teststring
4991      done
4992      # Only check the string length outside the loop.
4993      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4994      teststring=
4995      # Add a significant safety factor because C++ compilers can tack on
4996      # massive amounts of additional arguments before passing them to the
4997      # linker.  It appears as though 1/2 is a usable value.
4998      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4999    fi
5000    ;;
5001  esac
5002
5003fi
5004
5005if test -n $lt_cv_sys_max_cmd_len ; then
5006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5007$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5008else
5009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5010$as_echo "none" >&6; }
5011fi
5012max_cmd_len=$lt_cv_sys_max_cmd_len
5013
5014
5015
5016
5017
5018
5019: ${CP="cp -f"}
5020: ${MV="mv -f"}
5021: ${RM="rm -f"}
5022
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5024$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5025# Try some XSI features
5026xsi_shell=no
5027( _lt_dummy="a/b/c"
5028  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5029      = c,a/b,b/c, \
5030    && eval 'test $(( 1 + 1 )) -eq 2 \
5031    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5032  && xsi_shell=yes
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5034$as_echo "$xsi_shell" >&6; }
5035
5036
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5038$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5039lt_shell_append=no
5040( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5041    >/dev/null 2>&1 \
5042  && lt_shell_append=yes
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5044$as_echo "$lt_shell_append" >&6; }
5045
5046
5047if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5048  lt_unset=unset
5049else
5050  lt_unset=false
5051fi
5052
5053
5054
5055
5056
5057# test EBCDIC or ASCII
5058case `echo X|tr X '\101'` in
5059 A) # ASCII based system
5060    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5061  lt_SP2NL='tr \040 \012'
5062  lt_NL2SP='tr \015\012 \040\040'
5063  ;;
5064 *) # EBCDIC based system
5065  lt_SP2NL='tr \100 \n'
5066  lt_NL2SP='tr \r\n \100\100'
5067  ;;
5068esac
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5079$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5080if ${lt_cv_to_host_file_cmd+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  case $host in
5084  *-*-mingw* )
5085    case $build in
5086      *-*-mingw* ) # actually msys
5087        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5088        ;;
5089      *-*-cygwin* )
5090        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5091        ;;
5092      * ) # otherwise, assume *nix
5093        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5094        ;;
5095    esac
5096    ;;
5097  *-*-cygwin* )
5098    case $build in
5099      *-*-mingw* ) # actually msys
5100        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5101        ;;
5102      *-*-cygwin* )
5103        lt_cv_to_host_file_cmd=func_convert_file_noop
5104        ;;
5105      * ) # otherwise, assume *nix
5106        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5107        ;;
5108    esac
5109    ;;
5110  * ) # unhandled hosts (and "normal" native builds)
5111    lt_cv_to_host_file_cmd=func_convert_file_noop
5112    ;;
5113esac
5114
5115fi
5116
5117to_host_file_cmd=$lt_cv_to_host_file_cmd
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5119$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5120
5121
5122
5123
5124
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5126$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5127if ${lt_cv_to_tool_file_cmd+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  #assume ordinary cross tools, or native build.
5131lt_cv_to_tool_file_cmd=func_convert_file_noop
5132case $host in
5133  *-*-mingw* )
5134    case $build in
5135      *-*-mingw* ) # actually msys
5136        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5137        ;;
5138    esac
5139    ;;
5140esac
5141
5142fi
5143
5144to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5146$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5147
5148
5149
5150
5151
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5153$as_echo_n "checking for $LD option to reload object files... " >&6; }
5154if ${lt_cv_ld_reload_flag+:} false; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  lt_cv_ld_reload_flag='-r'
5158fi
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5160$as_echo "$lt_cv_ld_reload_flag" >&6; }
5161reload_flag=$lt_cv_ld_reload_flag
5162case $reload_flag in
5163"" | " "*) ;;
5164*) reload_flag=" $reload_flag" ;;
5165esac
5166reload_cmds='$LD$reload_flag -o $output$reload_objs'
5167case $host_os in
5168  cygwin* | mingw* | pw32* | cegcc*)
5169    if test "$GCC" != yes; then
5170      reload_cmds=false
5171    fi
5172    ;;
5173  darwin*)
5174    if test "$GCC" = yes; then
5175      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5176    else
5177      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5178    fi
5179    ;;
5180esac
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190if test -n "$ac_tool_prefix"; then
5191  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5192set dummy ${ac_tool_prefix}objdump; ac_word=$2
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194$as_echo_n "checking for $ac_word... " >&6; }
5195if ${ac_cv_prog_OBJDUMP+:} false; then :
5196  $as_echo_n "(cached) " >&6
5197else
5198  if test -n "$OBJDUMP"; then
5199  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5200else
5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204  IFS=$as_save_IFS
5205  test -z "$as_dir" && as_dir=.
5206    for ac_exec_ext in '' $ac_executable_extensions; do
5207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210    break 2
5211  fi
5212done
5213  done
5214IFS=$as_save_IFS
5215
5216fi
5217fi
5218OBJDUMP=$ac_cv_prog_OBJDUMP
5219if test -n "$OBJDUMP"; then
5220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5221$as_echo "$OBJDUMP" >&6; }
5222else
5223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224$as_echo "no" >&6; }
5225fi
5226
5227
5228fi
5229if test -z "$ac_cv_prog_OBJDUMP"; then
5230  ac_ct_OBJDUMP=$OBJDUMP
5231  # Extract the first word of "objdump", so it can be a program name with args.
5232set dummy objdump; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234$as_echo_n "checking for $ac_word... " >&6; }
5235if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5236  $as_echo_n "(cached) " >&6
5237else
5238  if test -n "$ac_ct_OBJDUMP"; then
5239  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246    for ac_exec_ext in '' $ac_executable_extensions; do
5247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250    break 2
5251  fi
5252done
5253  done
5254IFS=$as_save_IFS
5255
5256fi
5257fi
5258ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5259if test -n "$ac_ct_OBJDUMP"; then
5260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5261$as_echo "$ac_ct_OBJDUMP" >&6; }
5262else
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266
5267  if test "x$ac_ct_OBJDUMP" = x; then
5268    OBJDUMP="false"
5269  else
5270    case $cross_compiling:$ac_tool_warned in
5271yes:)
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274ac_tool_warned=yes ;;
5275esac
5276    OBJDUMP=$ac_ct_OBJDUMP
5277  fi
5278else
5279  OBJDUMP="$ac_cv_prog_OBJDUMP"
5280fi
5281
5282test -z "$OBJDUMP" && OBJDUMP=objdump
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5293$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5294if ${lt_cv_deplibs_check_method+:} false; then :
5295  $as_echo_n "(cached) " >&6
5296else
5297  lt_cv_file_magic_cmd='$MAGIC_CMD'
5298lt_cv_file_magic_test_file=
5299lt_cv_deplibs_check_method='unknown'
5300# Need to set the preceding variable on all platforms that support
5301# interlibrary dependencies.
5302# 'none' -- dependencies not supported.
5303# `unknown' -- same as none, but documents that we really don't know.
5304# 'pass_all' -- all dependencies passed with no checks.
5305# 'test_compile' -- check by making test program.
5306# 'file_magic [[regex]]' -- check by looking for files in library path
5307# which responds to the $file_magic_cmd with a given extended regex.
5308# If you have `file' or equivalent on your system and you're not sure
5309# whether `pass_all' will *always* work, you probably want this one.
5310
5311case $host_os in
5312aix[4-9]*)
5313  lt_cv_deplibs_check_method=pass_all
5314  ;;
5315
5316beos*)
5317  lt_cv_deplibs_check_method=pass_all
5318  ;;
5319
5320bsdi[45]*)
5321  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5322  lt_cv_file_magic_cmd='/usr/bin/file -L'
5323  lt_cv_file_magic_test_file=/shlib/libc.so
5324  ;;
5325
5326cygwin*)
5327  # func_win32_libid is a shell function defined in ltmain.sh
5328  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5329  lt_cv_file_magic_cmd='func_win32_libid'
5330  ;;
5331
5332mingw* | pw32*)
5333  # Base MSYS/MinGW do not provide the 'file' command needed by
5334  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5335  # unless we find 'file', for example because we are cross-compiling.
5336  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5337  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5338    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5339    lt_cv_file_magic_cmd='func_win32_libid'
5340  else
5341    # Keep this pattern in sync with the one in func_win32_libid.
5342    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5343    lt_cv_file_magic_cmd='$OBJDUMP -f'
5344  fi
5345  ;;
5346
5347cegcc*)
5348  # use the weaker test based on 'objdump'. See mingw*.
5349  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5350  lt_cv_file_magic_cmd='$OBJDUMP -f'
5351  ;;
5352
5353darwin* | rhapsody*)
5354  lt_cv_deplibs_check_method=pass_all
5355  ;;
5356
5357freebsd* | dragonfly*)
5358  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5359    case $host_cpu in
5360    i*86 )
5361      # Not sure whether the presence of OpenBSD here was a mistake.
5362      # Let's accept both of them until this is cleared up.
5363      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5364      lt_cv_file_magic_cmd=/usr/bin/file
5365      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5366      ;;
5367    esac
5368  else
5369    lt_cv_deplibs_check_method=pass_all
5370  fi
5371  ;;
5372
5373haiku*)
5374  lt_cv_deplibs_check_method=pass_all
5375  ;;
5376
5377hpux10.20* | hpux11*)
5378  lt_cv_file_magic_cmd=/usr/bin/file
5379  case $host_cpu in
5380  ia64*)
5381    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5382    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5383    ;;
5384  hppa*64*)
5385    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]'
5386    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5387    ;;
5388  *)
5389    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5390    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5391    ;;
5392  esac
5393  ;;
5394
5395interix[3-9]*)
5396  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5397  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5398  ;;
5399
5400irix5* | irix6* | nonstopux*)
5401  case $LD in
5402  *-32|*"-32 ") libmagic=32-bit;;
5403  *-n32|*"-n32 ") libmagic=N32;;
5404  *-64|*"-64 ") libmagic=64-bit;;
5405  *) libmagic=never-match;;
5406  esac
5407  lt_cv_deplibs_check_method=pass_all
5408  ;;
5409
5410# This must be glibc/ELF.
5411linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5412  lt_cv_deplibs_check_method=pass_all
5413  ;;
5414
5415netbsd* | netbsdelf*-gnu)
5416  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5417    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5418  else
5419    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5420  fi
5421  ;;
5422
5423newos6*)
5424  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5425  lt_cv_file_magic_cmd=/usr/bin/file
5426  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5427  ;;
5428
5429*nto* | *qnx*)
5430  lt_cv_deplibs_check_method=pass_all
5431  ;;
5432
5433openbsd*)
5434  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5435    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5436  else
5437    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5438  fi
5439  ;;
5440
5441osf3* | osf4* | osf5*)
5442  lt_cv_deplibs_check_method=pass_all
5443  ;;
5444
5445rdos*)
5446  lt_cv_deplibs_check_method=pass_all
5447  ;;
5448
5449solaris*)
5450  lt_cv_deplibs_check_method=pass_all
5451  ;;
5452
5453sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5454  lt_cv_deplibs_check_method=pass_all
5455  ;;
5456
5457sysv4 | sysv4.3*)
5458  case $host_vendor in
5459  motorola)
5460    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]'
5461    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5462    ;;
5463  ncr)
5464    lt_cv_deplibs_check_method=pass_all
5465    ;;
5466  sequent)
5467    lt_cv_file_magic_cmd='/bin/file'
5468    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5469    ;;
5470  sni)
5471    lt_cv_file_magic_cmd='/bin/file'
5472    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5473    lt_cv_file_magic_test_file=/lib/libc.so
5474    ;;
5475  siemens)
5476    lt_cv_deplibs_check_method=pass_all
5477    ;;
5478  pc)
5479    lt_cv_deplibs_check_method=pass_all
5480    ;;
5481  esac
5482  ;;
5483
5484tpf*)
5485  lt_cv_deplibs_check_method=pass_all
5486  ;;
5487esac
5488
5489fi
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5491$as_echo "$lt_cv_deplibs_check_method" >&6; }
5492
5493file_magic_glob=
5494want_nocaseglob=no
5495if test "$build" = "$host"; then
5496  case $host_os in
5497  mingw* | pw32*)
5498    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5499      want_nocaseglob=yes
5500    else
5501      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5502    fi
5503    ;;
5504  esac
5505fi
5506
5507file_magic_cmd=$lt_cv_file_magic_cmd
5508deplibs_check_method=$lt_cv_deplibs_check_method
5509test -z "$deplibs_check_method" && deplibs_check_method=unknown
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532if test -n "$ac_tool_prefix"; then
5533  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5534set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536$as_echo_n "checking for $ac_word... " >&6; }
5537if ${ac_cv_prog_DLLTOOL+:} false; then :
5538  $as_echo_n "(cached) " >&6
5539else
5540  if test -n "$DLLTOOL"; then
5541  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5542else
5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544for as_dir in $PATH
5545do
5546  IFS=$as_save_IFS
5547  test -z "$as_dir" && as_dir=.
5548    for ac_exec_ext in '' $ac_executable_extensions; do
5549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552    break 2
5553  fi
5554done
5555  done
5556IFS=$as_save_IFS
5557
5558fi
5559fi
5560DLLTOOL=$ac_cv_prog_DLLTOOL
5561if test -n "$DLLTOOL"; then
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5563$as_echo "$DLLTOOL" >&6; }
5564else
5565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566$as_echo "no" >&6; }
5567fi
5568
5569
5570fi
5571if test -z "$ac_cv_prog_DLLTOOL"; then
5572  ac_ct_DLLTOOL=$DLLTOOL
5573  # Extract the first word of "dlltool", so it can be a program name with args.
5574set dummy dlltool; ac_word=$2
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576$as_echo_n "checking for $ac_word... " >&6; }
5577if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5578  $as_echo_n "(cached) " >&6
5579else
5580  if test -n "$ac_ct_DLLTOOL"; then
5581  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5582else
5583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584for as_dir in $PATH
5585do
5586  IFS=$as_save_IFS
5587  test -z "$as_dir" && as_dir=.
5588    for ac_exec_ext in '' $ac_executable_extensions; do
5589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592    break 2
5593  fi
5594done
5595  done
5596IFS=$as_save_IFS
5597
5598fi
5599fi
5600ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5601if test -n "$ac_ct_DLLTOOL"; then
5602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5603$as_echo "$ac_ct_DLLTOOL" >&6; }
5604else
5605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606$as_echo "no" >&6; }
5607fi
5608
5609  if test "x$ac_ct_DLLTOOL" = x; then
5610    DLLTOOL="false"
5611  else
5612    case $cross_compiling:$ac_tool_warned in
5613yes:)
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616ac_tool_warned=yes ;;
5617esac
5618    DLLTOOL=$ac_ct_DLLTOOL
5619  fi
5620else
5621  DLLTOOL="$ac_cv_prog_DLLTOOL"
5622fi
5623
5624test -z "$DLLTOOL" && DLLTOOL=dlltool
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5636$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5637if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5638  $as_echo_n "(cached) " >&6
5639else
5640  lt_cv_sharedlib_from_linklib_cmd='unknown'
5641
5642case $host_os in
5643cygwin* | mingw* | pw32* | cegcc*)
5644  # two different shell functions defined in ltmain.sh
5645  # decide which to use based on capabilities of $DLLTOOL
5646  case `$DLLTOOL --help 2>&1` in
5647  *--identify-strict*)
5648    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5649    ;;
5650  *)
5651    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5652    ;;
5653  esac
5654  ;;
5655*)
5656  # fallback: assume linklib IS sharedlib
5657  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5658  ;;
5659esac
5660
5661fi
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5663$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5664sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5665test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5666
5667
5668
5669
5670
5671
5672
5673
5674if test -n "$ac_tool_prefix"; then
5675  for ac_prog in ar
5676  do
5677    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5678set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680$as_echo_n "checking for $ac_word... " >&6; }
5681if ${ac_cv_prog_AR+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684  if test -n "$AR"; then
5685  ac_cv_prog_AR="$AR" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690  IFS=$as_save_IFS
5691  test -z "$as_dir" && as_dir=.
5692    for ac_exec_ext in '' $ac_executable_extensions; do
5693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696    break 2
5697  fi
5698done
5699  done
5700IFS=$as_save_IFS
5701
5702fi
5703fi
5704AR=$ac_cv_prog_AR
5705if test -n "$AR"; then
5706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5707$as_echo "$AR" >&6; }
5708else
5709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }
5711fi
5712
5713
5714    test -n "$AR" && break
5715  done
5716fi
5717if test -z "$AR"; then
5718  ac_ct_AR=$AR
5719  for ac_prog in ar
5720do
5721  # Extract the first word of "$ac_prog", so it can be a program name with args.
5722set dummy $ac_prog; ac_word=$2
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724$as_echo_n "checking for $ac_word... " >&6; }
5725if ${ac_cv_prog_ac_ct_AR+:} false; then :
5726  $as_echo_n "(cached) " >&6
5727else
5728  if test -n "$ac_ct_AR"; then
5729  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5730else
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734  IFS=$as_save_IFS
5735  test -z "$as_dir" && as_dir=.
5736    for ac_exec_ext in '' $ac_executable_extensions; do
5737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738    ac_cv_prog_ac_ct_AR="$ac_prog"
5739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740    break 2
5741  fi
5742done
5743  done
5744IFS=$as_save_IFS
5745
5746fi
5747fi
5748ac_ct_AR=$ac_cv_prog_ac_ct_AR
5749if test -n "$ac_ct_AR"; then
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5751$as_echo "$ac_ct_AR" >&6; }
5752else
5753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754$as_echo "no" >&6; }
5755fi
5756
5757
5758  test -n "$ac_ct_AR" && break
5759done
5760
5761  if test "x$ac_ct_AR" = x; then
5762    AR="false"
5763  else
5764    case $cross_compiling:$ac_tool_warned in
5765yes:)
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768ac_tool_warned=yes ;;
5769esac
5770    AR=$ac_ct_AR
5771  fi
5772fi
5773
5774: ${AR=ar}
5775: ${AR_FLAGS=cru}
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5788$as_echo_n "checking for archiver @FILE support... " >&6; }
5789if ${lt_cv_ar_at_file+:} false; then :
5790  $as_echo_n "(cached) " >&6
5791else
5792  lt_cv_ar_at_file=no
5793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h.  */
5795
5796int
5797main ()
5798{
5799
5800  ;
5801  return 0;
5802}
5803_ACEOF
5804if ac_fn_c_try_compile "$LINENO"; then :
5805  echo conftest.$ac_objext > conftest.lst
5806      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5807      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5808  (eval $lt_ar_try) 2>&5
5809  ac_status=$?
5810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5811  test $ac_status = 0; }
5812      if test "$ac_status" -eq 0; then
5813	# Ensure the archiver fails upon bogus file names.
5814	rm -f conftest.$ac_objext libconftest.a
5815	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5816  (eval $lt_ar_try) 2>&5
5817  ac_status=$?
5818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5819  test $ac_status = 0; }
5820	if test "$ac_status" -ne 0; then
5821          lt_cv_ar_at_file=@
5822        fi
5823      fi
5824      rm -f conftest.* libconftest.a
5825
5826fi
5827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828
5829fi
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5831$as_echo "$lt_cv_ar_at_file" >&6; }
5832
5833if test "x$lt_cv_ar_at_file" = xno; then
5834  archiver_list_spec=
5835else
5836  archiver_list_spec=$lt_cv_ar_at_file
5837fi
5838
5839
5840
5841
5842
5843
5844
5845if test -n "$ac_tool_prefix"; then
5846  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5847set dummy ${ac_tool_prefix}strip; ac_word=$2
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849$as_echo_n "checking for $ac_word... " >&6; }
5850if ${ac_cv_prog_STRIP+:} false; then :
5851  $as_echo_n "(cached) " >&6
5852else
5853  if test -n "$STRIP"; then
5854  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859  IFS=$as_save_IFS
5860  test -z "$as_dir" && as_dir=.
5861    for ac_exec_ext in '' $ac_executable_extensions; do
5862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865    break 2
5866  fi
5867done
5868  done
5869IFS=$as_save_IFS
5870
5871fi
5872fi
5873STRIP=$ac_cv_prog_STRIP
5874if test -n "$STRIP"; then
5875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5876$as_echo "$STRIP" >&6; }
5877else
5878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879$as_echo "no" >&6; }
5880fi
5881
5882
5883fi
5884if test -z "$ac_cv_prog_STRIP"; then
5885  ac_ct_STRIP=$STRIP
5886  # Extract the first word of "strip", so it can be a program name with args.
5887set dummy strip; ac_word=$2
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889$as_echo_n "checking for $ac_word... " >&6; }
5890if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5891  $as_echo_n "(cached) " >&6
5892else
5893  if test -n "$ac_ct_STRIP"; then
5894  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899  IFS=$as_save_IFS
5900  test -z "$as_dir" && as_dir=.
5901    for ac_exec_ext in '' $ac_executable_extensions; do
5902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903    ac_cv_prog_ac_ct_STRIP="strip"
5904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905    break 2
5906  fi
5907done
5908  done
5909IFS=$as_save_IFS
5910
5911fi
5912fi
5913ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5914if test -n "$ac_ct_STRIP"; then
5915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5916$as_echo "$ac_ct_STRIP" >&6; }
5917else
5918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; }
5920fi
5921
5922  if test "x$ac_ct_STRIP" = x; then
5923    STRIP=":"
5924  else
5925    case $cross_compiling:$ac_tool_warned in
5926yes:)
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929ac_tool_warned=yes ;;
5930esac
5931    STRIP=$ac_ct_STRIP
5932  fi
5933else
5934  STRIP="$ac_cv_prog_STRIP"
5935fi
5936
5937test -z "$STRIP" && STRIP=:
5938
5939
5940
5941
5942
5943
5944if test -n "$ac_tool_prefix"; then
5945  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5946set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948$as_echo_n "checking for $ac_word... " >&6; }
5949if ${ac_cv_prog_RANLIB+:} false; then :
5950  $as_echo_n "(cached) " >&6
5951else
5952  if test -n "$RANLIB"; then
5953  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958  IFS=$as_save_IFS
5959  test -z "$as_dir" && as_dir=.
5960    for ac_exec_ext in '' $ac_executable_extensions; do
5961  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964    break 2
5965  fi
5966done
5967  done
5968IFS=$as_save_IFS
5969
5970fi
5971fi
5972RANLIB=$ac_cv_prog_RANLIB
5973if test -n "$RANLIB"; then
5974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5975$as_echo "$RANLIB" >&6; }
5976else
5977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978$as_echo "no" >&6; }
5979fi
5980
5981
5982fi
5983if test -z "$ac_cv_prog_RANLIB"; then
5984  ac_ct_RANLIB=$RANLIB
5985  # Extract the first word of "ranlib", so it can be a program name with args.
5986set dummy ranlib; ac_word=$2
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988$as_echo_n "checking for $ac_word... " >&6; }
5989if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5990  $as_echo_n "(cached) " >&6
5991else
5992  if test -n "$ac_ct_RANLIB"; then
5993  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998  IFS=$as_save_IFS
5999  test -z "$as_dir" && as_dir=.
6000    for ac_exec_ext in '' $ac_executable_extensions; do
6001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002    ac_cv_prog_ac_ct_RANLIB="ranlib"
6003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004    break 2
6005  fi
6006done
6007  done
6008IFS=$as_save_IFS
6009
6010fi
6011fi
6012ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6013if test -n "$ac_ct_RANLIB"; then
6014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6015$as_echo "$ac_ct_RANLIB" >&6; }
6016else
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018$as_echo "no" >&6; }
6019fi
6020
6021  if test "x$ac_ct_RANLIB" = x; then
6022    RANLIB=":"
6023  else
6024    case $cross_compiling:$ac_tool_warned in
6025yes:)
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6028ac_tool_warned=yes ;;
6029esac
6030    RANLIB=$ac_ct_RANLIB
6031  fi
6032else
6033  RANLIB="$ac_cv_prog_RANLIB"
6034fi
6035
6036test -z "$RANLIB" && RANLIB=:
6037
6038
6039
6040
6041
6042
6043# Determine commands to create old-style static archives.
6044old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6045old_postinstall_cmds='chmod 644 $oldlib'
6046old_postuninstall_cmds=
6047
6048if test -n "$RANLIB"; then
6049  case $host_os in
6050  openbsd*)
6051    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6052    ;;
6053  *)
6054    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6055    ;;
6056  esac
6057  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6058fi
6059
6060case $host_os in
6061  darwin*)
6062    lock_old_archive_extraction=yes ;;
6063  *)
6064    lock_old_archive_extraction=no ;;
6065esac
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105# If no C compiler was specified, use CC.
6106LTCC=${LTCC-"$CC"}
6107
6108# If no C compiler flags were specified, use CFLAGS.
6109LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6110
6111# Allow CC to be a program name with arguments.
6112compiler=$CC
6113
6114
6115# Check for command to grab the raw symbol name followed by C symbol from nm.
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6117$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6118if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6119  $as_echo_n "(cached) " >&6
6120else
6121
6122# These are sane defaults that work on at least a few old systems.
6123# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6124
6125# Character class describing NM global symbol codes.
6126symcode='[BCDEGRST]'
6127
6128# Regexp to match symbols that can be accessed directly from C.
6129sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6130
6131# Define system-specific variables.
6132case $host_os in
6133aix*)
6134  symcode='[BCDT]'
6135  ;;
6136cygwin* | mingw* | pw32* | cegcc*)
6137  symcode='[ABCDGISTW]'
6138  ;;
6139hpux*)
6140  if test "$host_cpu" = ia64; then
6141    symcode='[ABCDEGRST]'
6142  fi
6143  ;;
6144irix* | nonstopux*)
6145  symcode='[BCDEGRST]'
6146  ;;
6147osf*)
6148  symcode='[BCDEGQRST]'
6149  ;;
6150solaris*)
6151  symcode='[BDRT]'
6152  ;;
6153sco3.2v5*)
6154  symcode='[DT]'
6155  ;;
6156sysv4.2uw2*)
6157  symcode='[DT]'
6158  ;;
6159sysv5* | sco5v6* | unixware* | OpenUNIX*)
6160  symcode='[ABDT]'
6161  ;;
6162sysv4)
6163  symcode='[DFNSTU]'
6164  ;;
6165esac
6166
6167# If we're using GNU nm, then use its standard symbol codes.
6168case `$NM -V 2>&1` in
6169*GNU* | *'with BFD'*)
6170  symcode='[ABCDGIRSTW]' ;;
6171esac
6172
6173# Transform an extracted symbol line into a proper C declaration.
6174# Some systems (esp. on ia64) link data and code symbols differently,
6175# so use this general approach.
6176lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6177
6178# Transform an extracted symbol line into symbol name and symbol address
6179lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6180lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6181
6182# Handle CRLF in mingw tool chain
6183opt_cr=
6184case $build_os in
6185mingw*)
6186  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6187  ;;
6188esac
6189
6190# Try without a prefix underscore, then with it.
6191for ac_symprfx in "" "_"; do
6192
6193  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6194  symxfrm="\\1 $ac_symprfx\\2 \\2"
6195
6196  # Write the raw and C identifiers.
6197  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6198    # Fake it for dumpbin and say T for any non-static function
6199    # and D for any global variable.
6200    # Also find C++ and __fastcall symbols from MSVC++,
6201    # which start with @ or ?.
6202    lt_cv_sys_global_symbol_pipe="$AWK '"\
6203"     {last_section=section; section=\$ 3};"\
6204"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6205"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6206"     \$ 0!~/External *\|/{next};"\
6207"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6208"     {if(hide[section]) next};"\
6209"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6210"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6211"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6212"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6213"     ' prfx=^$ac_symprfx"
6214  else
6215    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6216  fi
6217  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6218
6219  # Check to see that the pipe works correctly.
6220  pipe_works=no
6221
6222  rm -f conftest*
6223  cat > conftest.$ac_ext <<_LT_EOF
6224#ifdef __cplusplus
6225extern "C" {
6226#endif
6227char nm_test_var;
6228void nm_test_func(void);
6229void nm_test_func(void){}
6230#ifdef __cplusplus
6231}
6232#endif
6233int main(){nm_test_var='a';nm_test_func();return(0);}
6234_LT_EOF
6235
6236  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6237  (eval $ac_compile) 2>&5
6238  ac_status=$?
6239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240  test $ac_status = 0; }; then
6241    # Now try to grab the symbols.
6242    nlist=conftest.nm
6243    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6244  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6245  ac_status=$?
6246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247  test $ac_status = 0; } && test -s "$nlist"; then
6248      # Try sorting and uniquifying the output.
6249      if sort "$nlist" | uniq > "$nlist"T; then
6250	mv -f "$nlist"T "$nlist"
6251      else
6252	rm -f "$nlist"T
6253      fi
6254
6255      # Make sure that we snagged all the symbols we need.
6256      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6257	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6258	  cat <<_LT_EOF > conftest.$ac_ext
6259/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6260#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6261/* DATA imports from DLLs on WIN32 con't be const, because runtime
6262   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6263# define LT_DLSYM_CONST
6264#elif defined(__osf__)
6265/* This system does not cope well with relocations in const data.  */
6266# define LT_DLSYM_CONST
6267#else
6268# define LT_DLSYM_CONST const
6269#endif
6270
6271#ifdef __cplusplus
6272extern "C" {
6273#endif
6274
6275_LT_EOF
6276	  # Now generate the symbol file.
6277	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6278
6279	  cat <<_LT_EOF >> conftest.$ac_ext
6280
6281/* The mapping between symbol names and symbols.  */
6282LT_DLSYM_CONST struct {
6283  const char *name;
6284  void       *address;
6285}
6286lt__PROGRAM__LTX_preloaded_symbols[] =
6287{
6288  { "@PROGRAM@", (void *) 0 },
6289_LT_EOF
6290	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6291	  cat <<\_LT_EOF >> conftest.$ac_ext
6292  {0, (void *) 0}
6293};
6294
6295/* This works around a problem in FreeBSD linker */
6296#ifdef FREEBSD_WORKAROUND
6297static const void *lt_preloaded_setup() {
6298  return lt__PROGRAM__LTX_preloaded_symbols;
6299}
6300#endif
6301
6302#ifdef __cplusplus
6303}
6304#endif
6305_LT_EOF
6306	  # Now try linking the two files.
6307	  mv conftest.$ac_objext conftstm.$ac_objext
6308	  lt_globsym_save_LIBS=$LIBS
6309	  lt_globsym_save_CFLAGS=$CFLAGS
6310	  LIBS="conftstm.$ac_objext"
6311	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6312	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6313  (eval $ac_link) 2>&5
6314  ac_status=$?
6315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6317	    pipe_works=yes
6318	  fi
6319	  LIBS=$lt_globsym_save_LIBS
6320	  CFLAGS=$lt_globsym_save_CFLAGS
6321	else
6322	  echo "cannot find nm_test_func in $nlist" >&5
6323	fi
6324      else
6325	echo "cannot find nm_test_var in $nlist" >&5
6326      fi
6327    else
6328      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6329    fi
6330  else
6331    echo "$progname: failed program was:" >&5
6332    cat conftest.$ac_ext >&5
6333  fi
6334  rm -rf conftest* conftst*
6335
6336  # Do not use the global_symbol_pipe unless it works.
6337  if test "$pipe_works" = yes; then
6338    break
6339  else
6340    lt_cv_sys_global_symbol_pipe=
6341  fi
6342done
6343
6344fi
6345
6346if test -z "$lt_cv_sys_global_symbol_pipe"; then
6347  lt_cv_sys_global_symbol_to_cdecl=
6348fi
6349if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6351$as_echo "failed" >&6; }
6352else
6353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6354$as_echo "ok" >&6; }
6355fi
6356
6357# Response file support.
6358if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6359  nm_file_list_spec='@'
6360elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6361  nm_file_list_spec='@'
6362fi
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6391$as_echo_n "checking for sysroot... " >&6; }
6392
6393# Check whether --with-sysroot was given.
6394if test "${with_sysroot+set}" = set; then :
6395  withval=$with_sysroot;
6396else
6397  with_sysroot=no
6398fi
6399
6400
6401lt_sysroot=
6402case ${with_sysroot} in #(
6403 yes)
6404   if test "$GCC" = yes; then
6405     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6406   fi
6407   ;; #(
6408 /*)
6409   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6410   ;; #(
6411 no|'')
6412   ;; #(
6413 *)
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6415$as_echo "${with_sysroot}" >&6; }
6416   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6417   ;;
6418esac
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6421$as_echo "${lt_sysroot:-no}" >&6; }
6422
6423
6424
6425
6426
6427# Check whether --enable-libtool-lock was given.
6428if test "${enable_libtool_lock+set}" = set; then :
6429  enableval=$enable_libtool_lock;
6430fi
6431
6432test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6433
6434# Some flags need to be propagated to the compiler or linker for good
6435# libtool support.
6436case $host in
6437ia64-*-hpux*)
6438  # Find out which ABI we are using.
6439  echo 'int i;' > conftest.$ac_ext
6440  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441  (eval $ac_compile) 2>&5
6442  ac_status=$?
6443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444  test $ac_status = 0; }; then
6445    case `/usr/bin/file conftest.$ac_objext` in
6446      *ELF-32*)
6447	HPUX_IA64_MODE="32"
6448	;;
6449      *ELF-64*)
6450	HPUX_IA64_MODE="64"
6451	;;
6452    esac
6453  fi
6454  rm -rf conftest*
6455  ;;
6456*-*-irix6*)
6457  # Find out which ABI we are using.
6458  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6459  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6460  (eval $ac_compile) 2>&5
6461  ac_status=$?
6462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6463  test $ac_status = 0; }; then
6464    if test "$lt_cv_prog_gnu_ld" = yes; then
6465      case `/usr/bin/file conftest.$ac_objext` in
6466	*32-bit*)
6467	  LD="${LD-ld} -melf32bsmip"
6468	  ;;
6469	*N32*)
6470	  LD="${LD-ld} -melf32bmipn32"
6471	  ;;
6472	*64-bit*)
6473	  LD="${LD-ld} -melf64bmip"
6474	;;
6475      esac
6476    else
6477      case `/usr/bin/file conftest.$ac_objext` in
6478	*32-bit*)
6479	  LD="${LD-ld} -32"
6480	  ;;
6481	*N32*)
6482	  LD="${LD-ld} -n32"
6483	  ;;
6484	*64-bit*)
6485	  LD="${LD-ld} -64"
6486	  ;;
6487      esac
6488    fi
6489  fi
6490  rm -rf conftest*
6491  ;;
6492
6493x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6494s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6495  # Find out which ABI we are using.
6496  echo 'int i;' > conftest.$ac_ext
6497  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6498  (eval $ac_compile) 2>&5
6499  ac_status=$?
6500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6501  test $ac_status = 0; }; then
6502    case `/usr/bin/file conftest.o` in
6503      *32-bit*)
6504	case $host in
6505	  x86_64-*kfreebsd*-gnu)
6506	    LD="${LD-ld} -m elf_i386_fbsd"
6507	    ;;
6508	  x86_64-*linux*)
6509	    case `/usr/bin/file conftest.o` in
6510	      *x86-64*)
6511		LD="${LD-ld} -m elf32_x86_64"
6512		;;
6513	      *)
6514		LD="${LD-ld} -m elf_i386"
6515		;;
6516	    esac
6517	    ;;
6518	  powerpc64le-*)
6519	    LD="${LD-ld} -m elf32lppclinux"
6520	    ;;
6521	  powerpc64-*)
6522	    LD="${LD-ld} -m elf32ppclinux"
6523	    ;;
6524	  s390x-*linux*)
6525	    LD="${LD-ld} -m elf_s390"
6526	    ;;
6527	  sparc64-*linux*)
6528	    LD="${LD-ld} -m elf32_sparc"
6529	    ;;
6530	esac
6531	;;
6532      *64-bit*)
6533	case $host in
6534	  x86_64-*kfreebsd*-gnu)
6535	    LD="${LD-ld} -m elf_x86_64_fbsd"
6536	    ;;
6537	  x86_64-*linux*)
6538	    LD="${LD-ld} -m elf_x86_64"
6539	    ;;
6540	  powerpcle-*)
6541	    LD="${LD-ld} -m elf64lppc"
6542	    ;;
6543	  powerpc-*)
6544	    LD="${LD-ld} -m elf64ppc"
6545	    ;;
6546	  s390*-*linux*|s390*-*tpf*)
6547	    LD="${LD-ld} -m elf64_s390"
6548	    ;;
6549	  sparc*-*linux*)
6550	    LD="${LD-ld} -m elf64_sparc"
6551	    ;;
6552	esac
6553	;;
6554    esac
6555  fi
6556  rm -rf conftest*
6557  ;;
6558
6559*-*-sco3.2v5*)
6560  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6561  SAVE_CFLAGS="$CFLAGS"
6562  CFLAGS="$CFLAGS -belf"
6563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6564$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6565if ${lt_cv_cc_needs_belf+:} false; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568  ac_ext=c
6569ac_cpp='$CPP $CPPFLAGS'
6570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6572ac_compiler_gnu=$ac_cv_c_compiler_gnu
6573
6574     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576
6577int
6578main ()
6579{
6580
6581  ;
6582  return 0;
6583}
6584_ACEOF
6585if ac_fn_c_try_link "$LINENO"; then :
6586  lt_cv_cc_needs_belf=yes
6587else
6588  lt_cv_cc_needs_belf=no
6589fi
6590rm -f core conftest.err conftest.$ac_objext \
6591    conftest$ac_exeext conftest.$ac_ext
6592     ac_ext=c
6593ac_cpp='$CPP $CPPFLAGS'
6594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597
6598fi
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6600$as_echo "$lt_cv_cc_needs_belf" >&6; }
6601  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6602    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6603    CFLAGS="$SAVE_CFLAGS"
6604  fi
6605  ;;
6606*-*solaris*)
6607  # Find out which ABI we are using.
6608  echo 'int i;' > conftest.$ac_ext
6609  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6610  (eval $ac_compile) 2>&5
6611  ac_status=$?
6612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6613  test $ac_status = 0; }; then
6614    case `/usr/bin/file conftest.o` in
6615    *64-bit*)
6616      case $lt_cv_prog_gnu_ld in
6617      yes*)
6618        case $host in
6619        i?86-*-solaris*)
6620          LD="${LD-ld} -m elf_x86_64"
6621          ;;
6622        sparc*-*-solaris*)
6623          LD="${LD-ld} -m elf64_sparc"
6624          ;;
6625        esac
6626        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6627        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6628          LD="${LD-ld}_sol2"
6629        fi
6630        ;;
6631      *)
6632	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6633	  LD="${LD-ld} -64"
6634	fi
6635	;;
6636      esac
6637      ;;
6638    esac
6639  fi
6640  rm -rf conftest*
6641  ;;
6642esac
6643
6644need_locks="$enable_libtool_lock"
6645
6646if test -n "$ac_tool_prefix"; then
6647  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6648set dummy ${ac_tool_prefix}mt; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  if test -n "$MANIFEST_TOOL"; then
6655  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660  IFS=$as_save_IFS
6661  test -z "$as_dir" && as_dir=.
6662    for ac_exec_ext in '' $ac_executable_extensions; do
6663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666    break 2
6667  fi
6668done
6669  done
6670IFS=$as_save_IFS
6671
6672fi
6673fi
6674MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6675if test -n "$MANIFEST_TOOL"; then
6676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6677$as_echo "$MANIFEST_TOOL" >&6; }
6678else
6679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680$as_echo "no" >&6; }
6681fi
6682
6683
6684fi
6685if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6686  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6687  # Extract the first word of "mt", so it can be a program name with args.
6688set dummy mt; ac_word=$2
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690$as_echo_n "checking for $ac_word... " >&6; }
6691if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6692  $as_echo_n "(cached) " >&6
6693else
6694  if test -n "$ac_ct_MANIFEST_TOOL"; then
6695  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700  IFS=$as_save_IFS
6701  test -z "$as_dir" && as_dir=.
6702    for ac_exec_ext in '' $ac_executable_extensions; do
6703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706    break 2
6707  fi
6708done
6709  done
6710IFS=$as_save_IFS
6711
6712fi
6713fi
6714ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6715if test -n "$ac_ct_MANIFEST_TOOL"; then
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6717$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6718else
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720$as_echo "no" >&6; }
6721fi
6722
6723  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6724    MANIFEST_TOOL=":"
6725  else
6726    case $cross_compiling:$ac_tool_warned in
6727yes:)
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730ac_tool_warned=yes ;;
6731esac
6732    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6733  fi
6734else
6735  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6736fi
6737
6738test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6740$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6741if ${lt_cv_path_mainfest_tool+:} false; then :
6742  $as_echo_n "(cached) " >&6
6743else
6744  lt_cv_path_mainfest_tool=no
6745  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6746  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6747  cat conftest.err >&5
6748  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6749    lt_cv_path_mainfest_tool=yes
6750  fi
6751  rm -f conftest*
6752fi
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6754$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6755if test "x$lt_cv_path_mainfest_tool" != xyes; then
6756  MANIFEST_TOOL=:
6757fi
6758
6759
6760
6761
6762
6763
6764  case $host_os in
6765    rhapsody* | darwin*)
6766    if test -n "$ac_tool_prefix"; then
6767  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6768set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
6771if ${ac_cv_prog_DSYMUTIL+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  if test -n "$DSYMUTIL"; then
6775  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780  IFS=$as_save_IFS
6781  test -z "$as_dir" && as_dir=.
6782    for ac_exec_ext in '' $ac_executable_extensions; do
6783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786    break 2
6787  fi
6788done
6789  done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794DSYMUTIL=$ac_cv_prog_DSYMUTIL
6795if test -n "$DSYMUTIL"; then
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6797$as_echo "$DSYMUTIL" >&6; }
6798else
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803
6804fi
6805if test -z "$ac_cv_prog_DSYMUTIL"; then
6806  ac_ct_DSYMUTIL=$DSYMUTIL
6807  # Extract the first word of "dsymutil", so it can be a program name with args.
6808set dummy dsymutil; ac_word=$2
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810$as_echo_n "checking for $ac_word... " >&6; }
6811if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814  if test -n "$ac_ct_DSYMUTIL"; then
6815  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820  IFS=$as_save_IFS
6821  test -z "$as_dir" && as_dir=.
6822    for ac_exec_ext in '' $ac_executable_extensions; do
6823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826    break 2
6827  fi
6828done
6829  done
6830IFS=$as_save_IFS
6831
6832fi
6833fi
6834ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6835if test -n "$ac_ct_DSYMUTIL"; then
6836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6837$as_echo "$ac_ct_DSYMUTIL" >&6; }
6838else
6839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840$as_echo "no" >&6; }
6841fi
6842
6843  if test "x$ac_ct_DSYMUTIL" = x; then
6844    DSYMUTIL=":"
6845  else
6846    case $cross_compiling:$ac_tool_warned in
6847yes:)
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850ac_tool_warned=yes ;;
6851esac
6852    DSYMUTIL=$ac_ct_DSYMUTIL
6853  fi
6854else
6855  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6856fi
6857
6858    if test -n "$ac_tool_prefix"; then
6859  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6860set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862$as_echo_n "checking for $ac_word... " >&6; }
6863if ${ac_cv_prog_NMEDIT+:} false; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866  if test -n "$NMEDIT"; then
6867  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872  IFS=$as_save_IFS
6873  test -z "$as_dir" && as_dir=.
6874    for ac_exec_ext in '' $ac_executable_extensions; do
6875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878    break 2
6879  fi
6880done
6881  done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886NMEDIT=$ac_cv_prog_NMEDIT
6887if test -n "$NMEDIT"; then
6888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6889$as_echo "$NMEDIT" >&6; }
6890else
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
6893fi
6894
6895
6896fi
6897if test -z "$ac_cv_prog_NMEDIT"; then
6898  ac_ct_NMEDIT=$NMEDIT
6899  # Extract the first word of "nmedit", so it can be a program name with args.
6900set dummy nmedit; ac_word=$2
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902$as_echo_n "checking for $ac_word... " >&6; }
6903if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906  if test -n "$ac_ct_NMEDIT"; then
6907  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912  IFS=$as_save_IFS
6913  test -z "$as_dir" && as_dir=.
6914    for ac_exec_ext in '' $ac_executable_extensions; do
6915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918    break 2
6919  fi
6920done
6921  done
6922IFS=$as_save_IFS
6923
6924fi
6925fi
6926ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6927if test -n "$ac_ct_NMEDIT"; then
6928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6929$as_echo "$ac_ct_NMEDIT" >&6; }
6930else
6931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932$as_echo "no" >&6; }
6933fi
6934
6935  if test "x$ac_ct_NMEDIT" = x; then
6936    NMEDIT=":"
6937  else
6938    case $cross_compiling:$ac_tool_warned in
6939yes:)
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942ac_tool_warned=yes ;;
6943esac
6944    NMEDIT=$ac_ct_NMEDIT
6945  fi
6946else
6947  NMEDIT="$ac_cv_prog_NMEDIT"
6948fi
6949
6950    if test -n "$ac_tool_prefix"; then
6951  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6952set dummy ${ac_tool_prefix}lipo; ac_word=$2
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954$as_echo_n "checking for $ac_word... " >&6; }
6955if ${ac_cv_prog_LIPO+:} false; then :
6956  $as_echo_n "(cached) " >&6
6957else
6958  if test -n "$LIPO"; then
6959  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6960else
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964  IFS=$as_save_IFS
6965  test -z "$as_dir" && as_dir=.
6966    for ac_exec_ext in '' $ac_executable_extensions; do
6967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970    break 2
6971  fi
6972done
6973  done
6974IFS=$as_save_IFS
6975
6976fi
6977fi
6978LIPO=$ac_cv_prog_LIPO
6979if test -n "$LIPO"; then
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6981$as_echo "$LIPO" >&6; }
6982else
6983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984$as_echo "no" >&6; }
6985fi
6986
6987
6988fi
6989if test -z "$ac_cv_prog_LIPO"; then
6990  ac_ct_LIPO=$LIPO
6991  # Extract the first word of "lipo", so it can be a program name with args.
6992set dummy lipo; ac_word=$2
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994$as_echo_n "checking for $ac_word... " >&6; }
6995if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6996  $as_echo_n "(cached) " >&6
6997else
6998  if test -n "$ac_ct_LIPO"; then
6999  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7000else
7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004  IFS=$as_save_IFS
7005  test -z "$as_dir" && as_dir=.
7006    for ac_exec_ext in '' $ac_executable_extensions; do
7007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008    ac_cv_prog_ac_ct_LIPO="lipo"
7009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010    break 2
7011  fi
7012done
7013  done
7014IFS=$as_save_IFS
7015
7016fi
7017fi
7018ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7019if test -n "$ac_ct_LIPO"; then
7020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7021$as_echo "$ac_ct_LIPO" >&6; }
7022else
7023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024$as_echo "no" >&6; }
7025fi
7026
7027  if test "x$ac_ct_LIPO" = x; then
7028    LIPO=":"
7029  else
7030    case $cross_compiling:$ac_tool_warned in
7031yes:)
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7034ac_tool_warned=yes ;;
7035esac
7036    LIPO=$ac_ct_LIPO
7037  fi
7038else
7039  LIPO="$ac_cv_prog_LIPO"
7040fi
7041
7042    if test -n "$ac_tool_prefix"; then
7043  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7044set dummy ${ac_tool_prefix}otool; ac_word=$2
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046$as_echo_n "checking for $ac_word... " >&6; }
7047if ${ac_cv_prog_OTOOL+:} false; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  if test -n "$OTOOL"; then
7051  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056  IFS=$as_save_IFS
7057  test -z "$as_dir" && as_dir=.
7058    for ac_exec_ext in '' $ac_executable_extensions; do
7059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062    break 2
7063  fi
7064done
7065  done
7066IFS=$as_save_IFS
7067
7068fi
7069fi
7070OTOOL=$ac_cv_prog_OTOOL
7071if test -n "$OTOOL"; then
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7073$as_echo "$OTOOL" >&6; }
7074else
7075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076$as_echo "no" >&6; }
7077fi
7078
7079
7080fi
7081if test -z "$ac_cv_prog_OTOOL"; then
7082  ac_ct_OTOOL=$OTOOL
7083  # Extract the first word of "otool", so it can be a program name with args.
7084set dummy otool; ac_word=$2
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086$as_echo_n "checking for $ac_word... " >&6; }
7087if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7088  $as_echo_n "(cached) " >&6
7089else
7090  if test -n "$ac_ct_OTOOL"; then
7091  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7092else
7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096  IFS=$as_save_IFS
7097  test -z "$as_dir" && as_dir=.
7098    for ac_exec_ext in '' $ac_executable_extensions; do
7099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100    ac_cv_prog_ac_ct_OTOOL="otool"
7101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102    break 2
7103  fi
7104done
7105  done
7106IFS=$as_save_IFS
7107
7108fi
7109fi
7110ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7111if test -n "$ac_ct_OTOOL"; then
7112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7113$as_echo "$ac_ct_OTOOL" >&6; }
7114else
7115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116$as_echo "no" >&6; }
7117fi
7118
7119  if test "x$ac_ct_OTOOL" = x; then
7120    OTOOL=":"
7121  else
7122    case $cross_compiling:$ac_tool_warned in
7123yes:)
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126ac_tool_warned=yes ;;
7127esac
7128    OTOOL=$ac_ct_OTOOL
7129  fi
7130else
7131  OTOOL="$ac_cv_prog_OTOOL"
7132fi
7133
7134    if test -n "$ac_tool_prefix"; then
7135  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7136set dummy ${ac_tool_prefix}otool64; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if ${ac_cv_prog_OTOOL64+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  if test -n "$OTOOL64"; then
7143  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150    for ac_exec_ext in '' $ac_executable_extensions; do
7151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157  done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162OTOOL64=$ac_cv_prog_OTOOL64
7163if test -n "$OTOOL64"; then
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7165$as_echo "$OTOOL64" >&6; }
7166else
7167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171
7172fi
7173if test -z "$ac_cv_prog_OTOOL64"; then
7174  ac_ct_OTOOL64=$OTOOL64
7175  # Extract the first word of "otool64", so it can be a program name with args.
7176set dummy otool64; ac_word=$2
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178$as_echo_n "checking for $ac_word... " >&6; }
7179if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  if test -n "$ac_ct_OTOOL64"; then
7183  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190    for ac_exec_ext in '' $ac_executable_extensions; do
7191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192    ac_cv_prog_ac_ct_OTOOL64="otool64"
7193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194    break 2
7195  fi
7196done
7197  done
7198IFS=$as_save_IFS
7199
7200fi
7201fi
7202ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7203if test -n "$ac_ct_OTOOL64"; then
7204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7205$as_echo "$ac_ct_OTOOL64" >&6; }
7206else
7207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208$as_echo "no" >&6; }
7209fi
7210
7211  if test "x$ac_ct_OTOOL64" = x; then
7212    OTOOL64=":"
7213  else
7214    case $cross_compiling:$ac_tool_warned in
7215yes:)
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218ac_tool_warned=yes ;;
7219esac
7220    OTOOL64=$ac_ct_OTOOL64
7221  fi
7222else
7223  OTOOL64="$ac_cv_prog_OTOOL64"
7224fi
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7253$as_echo_n "checking for -single_module linker flag... " >&6; }
7254if ${lt_cv_apple_cc_single_mod+:} false; then :
7255  $as_echo_n "(cached) " >&6
7256else
7257  lt_cv_apple_cc_single_mod=no
7258      if test -z "${LT_MULTI_MODULE}"; then
7259	# By default we will add the -single_module flag. You can override
7260	# by either setting the environment variable LT_MULTI_MODULE
7261	# non-empty at configure time, or by adding -multi_module to the
7262	# link flags.
7263	rm -rf libconftest.dylib*
7264	echo "int foo(void){return 1;}" > conftest.c
7265	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7266-dynamiclib -Wl,-single_module conftest.c" >&5
7267	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7268	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7269        _lt_result=$?
7270	# If there is a non-empty error log, and "single_module"
7271	# appears in it, assume the flag caused a linker warning
7272        if test -s conftest.err && $GREP single_module conftest.err; then
7273	  cat conftest.err >&5
7274	# Otherwise, if the output was created with a 0 exit code from
7275	# the compiler, it worked.
7276	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7277	  lt_cv_apple_cc_single_mod=yes
7278	else
7279	  cat conftest.err >&5
7280	fi
7281	rm -rf libconftest.dylib*
7282	rm -f conftest.*
7283      fi
7284fi
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7286$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7287
7288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7289$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7290if ${lt_cv_ld_exported_symbols_list+:} false; then :
7291  $as_echo_n "(cached) " >&6
7292else
7293  lt_cv_ld_exported_symbols_list=no
7294      save_LDFLAGS=$LDFLAGS
7295      echo "_main" > conftest.sym
7296      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7297      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298/* end confdefs.h.  */
7299
7300int
7301main ()
7302{
7303
7304  ;
7305  return 0;
7306}
7307_ACEOF
7308if ac_fn_c_try_link "$LINENO"; then :
7309  lt_cv_ld_exported_symbols_list=yes
7310else
7311  lt_cv_ld_exported_symbols_list=no
7312fi
7313rm -f core conftest.err conftest.$ac_objext \
7314    conftest$ac_exeext conftest.$ac_ext
7315	LDFLAGS="$save_LDFLAGS"
7316
7317fi
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7319$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7320
7321    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7322$as_echo_n "checking for -force_load linker flag... " >&6; }
7323if ${lt_cv_ld_force_load+:} false; then :
7324  $as_echo_n "(cached) " >&6
7325else
7326  lt_cv_ld_force_load=no
7327      cat > conftest.c << _LT_EOF
7328int forced_loaded() { return 2;}
7329_LT_EOF
7330      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7331      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7332      echo "$AR cru libconftest.a conftest.o" >&5
7333      $AR cru libconftest.a conftest.o 2>&5
7334      echo "$RANLIB libconftest.a" >&5
7335      $RANLIB libconftest.a 2>&5
7336      cat > conftest.c << _LT_EOF
7337int main() { return 0;}
7338_LT_EOF
7339      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7340      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7341      _lt_result=$?
7342      if test -s conftest.err && $GREP force_load conftest.err; then
7343	cat conftest.err >&5
7344      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7345	lt_cv_ld_force_load=yes
7346      else
7347	cat conftest.err >&5
7348      fi
7349        rm -f conftest.err libconftest.a conftest conftest.c
7350        rm -rf conftest.dSYM
7351
7352fi
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7354$as_echo "$lt_cv_ld_force_load" >&6; }
7355    case $host_os in
7356    rhapsody* | darwin1.[012])
7357      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7358    darwin1.*)
7359      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7360    darwin*) # darwin 5.x on
7361      # if running on 10.5 or later, the deployment target defaults
7362      # to the OS version, if on x86, and 10.4, the deployment
7363      # target defaults to 10.4. Don't you love it?
7364      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7365	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7366	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7367	10.[012]*)
7368	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7369	10.*)
7370	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7371      esac
7372    ;;
7373  esac
7374    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7375      _lt_dar_single_mod='$single_module'
7376    fi
7377    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7378      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7379    else
7380      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7381    fi
7382    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7383      _lt_dsymutil='~$DSYMUTIL $lib || :'
7384    else
7385      _lt_dsymutil=
7386    fi
7387    ;;
7388  esac
7389
7390ac_ext=c
7391ac_cpp='$CPP $CPPFLAGS'
7392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394ac_compiler_gnu=$ac_cv_c_compiler_gnu
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7396$as_echo_n "checking how to run the C preprocessor... " >&6; }
7397# On Suns, sometimes $CPP names a directory.
7398if test -n "$CPP" && test -d "$CPP"; then
7399  CPP=
7400fi
7401if test -z "$CPP"; then
7402  if ${ac_cv_prog_CPP+:} false; then :
7403  $as_echo_n "(cached) " >&6
7404else
7405      # Double quotes because CPP needs to be expanded
7406    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7407    do
7408      ac_preproc_ok=false
7409for ac_c_preproc_warn_flag in '' yes
7410do
7411  # Use a header file that comes with gcc, so configuring glibc
7412  # with a fresh cross-compiler works.
7413  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7414  # <limits.h> exists even on freestanding compilers.
7415  # On the NeXT, cc -E runs the code through the compiler's parser,
7416  # not just through cpp. "Syntax error" is here to catch this case.
7417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418/* end confdefs.h.  */
7419#ifdef __STDC__
7420# include <limits.h>
7421#else
7422# include <assert.h>
7423#endif
7424		     Syntax error
7425_ACEOF
7426if ac_fn_c_try_cpp "$LINENO"; then :
7427
7428else
7429  # Broken: fails on valid input.
7430continue
7431fi
7432rm -f conftest.err conftest.i conftest.$ac_ext
7433
7434  # OK, works on sane cases.  Now check whether nonexistent headers
7435  # can be detected and how.
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438#include <ac_nonexistent.h>
7439_ACEOF
7440if ac_fn_c_try_cpp "$LINENO"; then :
7441  # Broken: success on invalid input.
7442continue
7443else
7444  # Passes both tests.
7445ac_preproc_ok=:
7446break
7447fi
7448rm -f conftest.err conftest.i conftest.$ac_ext
7449
7450done
7451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7452rm -f conftest.i conftest.err conftest.$ac_ext
7453if $ac_preproc_ok; then :
7454  break
7455fi
7456
7457    done
7458    ac_cv_prog_CPP=$CPP
7459
7460fi
7461  CPP=$ac_cv_prog_CPP
7462else
7463  ac_cv_prog_CPP=$CPP
7464fi
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7466$as_echo "$CPP" >&6; }
7467ac_preproc_ok=false
7468for ac_c_preproc_warn_flag in '' yes
7469do
7470  # Use a header file that comes with gcc, so configuring glibc
7471  # with a fresh cross-compiler works.
7472  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7473  # <limits.h> exists even on freestanding compilers.
7474  # On the NeXT, cc -E runs the code through the compiler's parser,
7475  # not just through cpp. "Syntax error" is here to catch this case.
7476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477/* end confdefs.h.  */
7478#ifdef __STDC__
7479# include <limits.h>
7480#else
7481# include <assert.h>
7482#endif
7483		     Syntax error
7484_ACEOF
7485if ac_fn_c_try_cpp "$LINENO"; then :
7486
7487else
7488  # Broken: fails on valid input.
7489continue
7490fi
7491rm -f conftest.err conftest.i conftest.$ac_ext
7492
7493  # OK, works on sane cases.  Now check whether nonexistent headers
7494  # can be detected and how.
7495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h.  */
7497#include <ac_nonexistent.h>
7498_ACEOF
7499if ac_fn_c_try_cpp "$LINENO"; then :
7500  # Broken: success on invalid input.
7501continue
7502else
7503  # Passes both tests.
7504ac_preproc_ok=:
7505break
7506fi
7507rm -f conftest.err conftest.i conftest.$ac_ext
7508
7509done
7510# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7511rm -f conftest.i conftest.err conftest.$ac_ext
7512if $ac_preproc_ok; then :
7513
7514else
7515  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7517as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7518See \`config.log' for more details" "$LINENO" 5; }
7519fi
7520
7521ac_ext=c
7522ac_cpp='$CPP $CPPFLAGS'
7523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
7527
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7529$as_echo_n "checking for ANSI C header files... " >&6; }
7530if ${ac_cv_header_stdc+:} false; then :
7531  $as_echo_n "(cached) " >&6
7532else
7533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534/* end confdefs.h.  */
7535#include <stdlib.h>
7536#include <stdarg.h>
7537#include <string.h>
7538#include <float.h>
7539
7540int
7541main ()
7542{
7543
7544  ;
7545  return 0;
7546}
7547_ACEOF
7548if ac_fn_c_try_compile "$LINENO"; then :
7549  ac_cv_header_stdc=yes
7550else
7551  ac_cv_header_stdc=no
7552fi
7553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554
7555if test $ac_cv_header_stdc = yes; then
7556  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558/* end confdefs.h.  */
7559#include <string.h>
7560
7561_ACEOF
7562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7563  $EGREP "memchr" >/dev/null 2>&1; then :
7564
7565else
7566  ac_cv_header_stdc=no
7567fi
7568rm -f conftest*
7569
7570fi
7571
7572if test $ac_cv_header_stdc = yes; then
7573  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576#include <stdlib.h>
7577
7578_ACEOF
7579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7580  $EGREP "free" >/dev/null 2>&1; then :
7581
7582else
7583  ac_cv_header_stdc=no
7584fi
7585rm -f conftest*
7586
7587fi
7588
7589if test $ac_cv_header_stdc = yes; then
7590  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7591  if test "$cross_compiling" = yes; then :
7592  :
7593else
7594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h.  */
7596#include <ctype.h>
7597#include <stdlib.h>
7598#if ((' ' & 0x0FF) == 0x020)
7599# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7600# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7601#else
7602# define ISLOWER(c) \
7603		   (('a' <= (c) && (c) <= 'i') \
7604		     || ('j' <= (c) && (c) <= 'r') \
7605		     || ('s' <= (c) && (c) <= 'z'))
7606# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7607#endif
7608
7609#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7610int
7611main ()
7612{
7613  int i;
7614  for (i = 0; i < 256; i++)
7615    if (XOR (islower (i), ISLOWER (i))
7616	|| toupper (i) != TOUPPER (i))
7617      return 2;
7618  return 0;
7619}
7620_ACEOF
7621if ac_fn_c_try_run "$LINENO"; then :
7622
7623else
7624  ac_cv_header_stdc=no
7625fi
7626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7627  conftest.$ac_objext conftest.beam conftest.$ac_ext
7628fi
7629
7630fi
7631fi
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7633$as_echo "$ac_cv_header_stdc" >&6; }
7634if test $ac_cv_header_stdc = yes; then
7635
7636$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7637
7638fi
7639
7640# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7641for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7642		  inttypes.h stdint.h unistd.h
7643do :
7644  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7645ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7646"
7647if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7648  cat >>confdefs.h <<_ACEOF
7649#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7650_ACEOF
7651
7652fi
7653
7654done
7655
7656
7657for ac_header in dlfcn.h
7658do :
7659  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7660"
7661if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7662  cat >>confdefs.h <<_ACEOF
7663#define HAVE_DLFCN_H 1
7664_ACEOF
7665
7666fi
7667
7668done
7669
7670
7671
7672
7673
7674# Set options
7675
7676
7677
7678        enable_dlopen=no
7679
7680
7681  enable_win32_dll=no
7682
7683
7684            # Check whether --enable-shared was given.
7685if test "${enable_shared+set}" = set; then :
7686  enableval=$enable_shared; p=${PACKAGE-default}
7687    case $enableval in
7688    yes) enable_shared=yes ;;
7689    no) enable_shared=no ;;
7690    *)
7691      enable_shared=no
7692      # Look at the argument we got.  We use all the common list separators.
7693      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7694      for pkg in $enableval; do
7695	IFS="$lt_save_ifs"
7696	if test "X$pkg" = "X$p"; then
7697	  enable_shared=yes
7698	fi
7699      done
7700      IFS="$lt_save_ifs"
7701      ;;
7702    esac
7703else
7704  enable_shared=yes
7705fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715  # Check whether --enable-static was given.
7716if test "${enable_static+set}" = set; then :
7717  enableval=$enable_static; p=${PACKAGE-default}
7718    case $enableval in
7719    yes) enable_static=yes ;;
7720    no) enable_static=no ;;
7721    *)
7722     enable_static=no
7723      # Look at the argument we got.  We use all the common list separators.
7724      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7725      for pkg in $enableval; do
7726	IFS="$lt_save_ifs"
7727	if test "X$pkg" = "X$p"; then
7728	  enable_static=yes
7729	fi
7730      done
7731      IFS="$lt_save_ifs"
7732      ;;
7733    esac
7734else
7735  enable_static=yes
7736fi
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747# Check whether --with-pic was given.
7748if test "${with_pic+set}" = set; then :
7749  withval=$with_pic; lt_p=${PACKAGE-default}
7750    case $withval in
7751    yes|no) pic_mode=$withval ;;
7752    *)
7753      pic_mode=default
7754      # Look at the argument we got.  We use all the common list separators.
7755      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7756      for lt_pkg in $withval; do
7757	IFS="$lt_save_ifs"
7758	if test "X$lt_pkg" = "X$lt_p"; then
7759	  pic_mode=yes
7760	fi
7761      done
7762      IFS="$lt_save_ifs"
7763      ;;
7764    esac
7765else
7766  pic_mode=default
7767fi
7768
7769
7770test -z "$pic_mode" && pic_mode=default
7771
7772
7773
7774
7775
7776
7777
7778  # Check whether --enable-fast-install was given.
7779if test "${enable_fast_install+set}" = set; then :
7780  enableval=$enable_fast_install; p=${PACKAGE-default}
7781    case $enableval in
7782    yes) enable_fast_install=yes ;;
7783    no) enable_fast_install=no ;;
7784    *)
7785      enable_fast_install=no
7786      # Look at the argument we got.  We use all the common list separators.
7787      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7788      for pkg in $enableval; do
7789	IFS="$lt_save_ifs"
7790	if test "X$pkg" = "X$p"; then
7791	  enable_fast_install=yes
7792	fi
7793      done
7794      IFS="$lt_save_ifs"
7795      ;;
7796    esac
7797else
7798  enable_fast_install=yes
7799fi
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811# This can be used to rebuild libtool when needed
7812LIBTOOL_DEPS="$ltmain"
7813
7814# Always use our own libtool.
7815LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846test -z "$LN_S" && LN_S="ln -s"
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861if test -n "${ZSH_VERSION+set}" ; then
7862   setopt NO_GLOB_SUBST
7863fi
7864
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7866$as_echo_n "checking for objdir... " >&6; }
7867if ${lt_cv_objdir+:} false; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  rm -f .libs 2>/dev/null
7871mkdir .libs 2>/dev/null
7872if test -d .libs; then
7873  lt_cv_objdir=.libs
7874else
7875  # MS-DOS does not allow filenames that begin with a dot.
7876  lt_cv_objdir=_libs
7877fi
7878rmdir .libs 2>/dev/null
7879fi
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7881$as_echo "$lt_cv_objdir" >&6; }
7882objdir=$lt_cv_objdir
7883
7884
7885
7886
7887
7888cat >>confdefs.h <<_ACEOF
7889#define LT_OBJDIR "$lt_cv_objdir/"
7890_ACEOF
7891
7892
7893
7894
7895case $host_os in
7896aix3*)
7897  # AIX sometimes has problems with the GCC collect2 program.  For some
7898  # reason, if we set the COLLECT_NAMES environment variable, the problems
7899  # vanish in a puff of smoke.
7900  if test "X${COLLECT_NAMES+set}" != Xset; then
7901    COLLECT_NAMES=
7902    export COLLECT_NAMES
7903  fi
7904  ;;
7905esac
7906
7907# Global variables:
7908ofile=libtool
7909can_build_shared=yes
7910
7911# All known linkers require a `.a' archive for static linking (except MSVC,
7912# which needs '.lib').
7913libext=a
7914
7915with_gnu_ld="$lt_cv_prog_gnu_ld"
7916
7917old_CC="$CC"
7918old_CFLAGS="$CFLAGS"
7919
7920# Set sane defaults for various variables
7921test -z "$CC" && CC=cc
7922test -z "$LTCC" && LTCC=$CC
7923test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7924test -z "$LD" && LD=ld
7925test -z "$ac_objext" && ac_objext=o
7926
7927for cc_temp in $compiler""; do
7928  case $cc_temp in
7929    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7930    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7931    \-*) ;;
7932    *) break;;
7933  esac
7934done
7935cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7936
7937
7938# Only perform the check for file, if the check method requires it
7939test -z "$MAGIC_CMD" && MAGIC_CMD=file
7940case $deplibs_check_method in
7941file_magic*)
7942  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7943    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7944$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7945if ${lt_cv_path_MAGIC_CMD+:} false; then :
7946  $as_echo_n "(cached) " >&6
7947else
7948  case $MAGIC_CMD in
7949[\\/*] |  ?:[\\/]*)
7950  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7951  ;;
7952*)
7953  lt_save_MAGIC_CMD="$MAGIC_CMD"
7954  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7955  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7956  for ac_dir in $ac_dummy; do
7957    IFS="$lt_save_ifs"
7958    test -z "$ac_dir" && ac_dir=.
7959    if test -f $ac_dir/${ac_tool_prefix}file; then
7960      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7961      if test -n "$file_magic_test_file"; then
7962	case $deplibs_check_method in
7963	"file_magic "*)
7964	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7965	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7966	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7967	    $EGREP "$file_magic_regex" > /dev/null; then
7968	    :
7969	  else
7970	    cat <<_LT_EOF 1>&2
7971
7972*** Warning: the command libtool uses to detect shared libraries,
7973*** $file_magic_cmd, produces output that libtool cannot recognize.
7974*** The result is that libtool may fail to recognize shared libraries
7975*** as such.  This will affect the creation of libtool libraries that
7976*** depend on shared libraries, but programs linked with such libtool
7977*** libraries will work regardless of this problem.  Nevertheless, you
7978*** may want to report the problem to your system manager and/or to
7979*** bug-libtool@gnu.org
7980
7981_LT_EOF
7982	  fi ;;
7983	esac
7984      fi
7985      break
7986    fi
7987  done
7988  IFS="$lt_save_ifs"
7989  MAGIC_CMD="$lt_save_MAGIC_CMD"
7990  ;;
7991esac
7992fi
7993
7994MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995if test -n "$MAGIC_CMD"; then
7996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7997$as_echo "$MAGIC_CMD" >&6; }
7998else
7999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000$as_echo "no" >&6; }
8001fi
8002
8003
8004
8005
8006
8007if test -z "$lt_cv_path_MAGIC_CMD"; then
8008  if test -n "$ac_tool_prefix"; then
8009    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8010$as_echo_n "checking for file... " >&6; }
8011if ${lt_cv_path_MAGIC_CMD+:} false; then :
8012  $as_echo_n "(cached) " >&6
8013else
8014  case $MAGIC_CMD in
8015[\\/*] |  ?:[\\/]*)
8016  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8017  ;;
8018*)
8019  lt_save_MAGIC_CMD="$MAGIC_CMD"
8020  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8021  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8022  for ac_dir in $ac_dummy; do
8023    IFS="$lt_save_ifs"
8024    test -z "$ac_dir" && ac_dir=.
8025    if test -f $ac_dir/file; then
8026      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8027      if test -n "$file_magic_test_file"; then
8028	case $deplibs_check_method in
8029	"file_magic "*)
8030	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8031	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8032	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8033	    $EGREP "$file_magic_regex" > /dev/null; then
8034	    :
8035	  else
8036	    cat <<_LT_EOF 1>&2
8037
8038*** Warning: the command libtool uses to detect shared libraries,
8039*** $file_magic_cmd, produces output that libtool cannot recognize.
8040*** The result is that libtool may fail to recognize shared libraries
8041*** as such.  This will affect the creation of libtool libraries that
8042*** depend on shared libraries, but programs linked with such libtool
8043*** libraries will work regardless of this problem.  Nevertheless, you
8044*** may want to report the problem to your system manager and/or to
8045*** bug-libtool@gnu.org
8046
8047_LT_EOF
8048	  fi ;;
8049	esac
8050      fi
8051      break
8052    fi
8053  done
8054  IFS="$lt_save_ifs"
8055  MAGIC_CMD="$lt_save_MAGIC_CMD"
8056  ;;
8057esac
8058fi
8059
8060MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8061if test -n "$MAGIC_CMD"; then
8062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8063$as_echo "$MAGIC_CMD" >&6; }
8064else
8065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066$as_echo "no" >&6; }
8067fi
8068
8069
8070  else
8071    MAGIC_CMD=:
8072  fi
8073fi
8074
8075  fi
8076  ;;
8077esac
8078
8079# Use C for the default configuration in the libtool script
8080
8081lt_save_CC="$CC"
8082ac_ext=c
8083ac_cpp='$CPP $CPPFLAGS'
8084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8086ac_compiler_gnu=$ac_cv_c_compiler_gnu
8087
8088
8089# Source file extension for C test sources.
8090ac_ext=c
8091
8092# Object file extension for compiled C test sources.
8093objext=o
8094objext=$objext
8095
8096# Code to be used in simple compile tests
8097lt_simple_compile_test_code="int some_variable = 0;"
8098
8099# Code to be used in simple link tests
8100lt_simple_link_test_code='int main(){return(0);}'
8101
8102
8103
8104
8105
8106
8107
8108# If no C compiler was specified, use CC.
8109LTCC=${LTCC-"$CC"}
8110
8111# If no C compiler flags were specified, use CFLAGS.
8112LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8113
8114# Allow CC to be a program name with arguments.
8115compiler=$CC
8116
8117# Save the default compiler, since it gets overwritten when the other
8118# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8119compiler_DEFAULT=$CC
8120
8121# save warnings/boilerplate of simple test code
8122ac_outfile=conftest.$ac_objext
8123echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8124eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8125_lt_compiler_boilerplate=`cat conftest.err`
8126$RM conftest*
8127
8128ac_outfile=conftest.$ac_objext
8129echo "$lt_simple_link_test_code" >conftest.$ac_ext
8130eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8131_lt_linker_boilerplate=`cat conftest.err`
8132$RM -r conftest*
8133
8134
8135if test -n "$compiler"; then
8136
8137lt_prog_compiler_no_builtin_flag=
8138
8139if test "$GCC" = yes; then
8140  case $cc_basename in
8141  nvcc*)
8142    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8143  *)
8144    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8145  esac
8146
8147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8148$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8149if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8150  $as_echo_n "(cached) " >&6
8151else
8152  lt_cv_prog_compiler_rtti_exceptions=no
8153   ac_outfile=conftest.$ac_objext
8154   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8155   lt_compiler_flag="-fno-rtti -fno-exceptions"
8156   # Insert the option either (1) after the last *FLAGS variable, or
8157   # (2) before a word containing "conftest.", or (3) at the end.
8158   # Note that $ac_compile itself does not contain backslashes and begins
8159   # with a dollar sign (not a hyphen), so the echo should work correctly.
8160   # The option is referenced via a variable to avoid confusing sed.
8161   lt_compile=`echo "$ac_compile" | $SED \
8162   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8163   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8164   -e 's:$: $lt_compiler_flag:'`
8165   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8166   (eval "$lt_compile" 2>conftest.err)
8167   ac_status=$?
8168   cat conftest.err >&5
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   if (exit $ac_status) && test -s "$ac_outfile"; then
8171     # The compiler can only warn and ignore the option if not recognized
8172     # So say no if there are warnings other than the usual output.
8173     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8174     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8175     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8176       lt_cv_prog_compiler_rtti_exceptions=yes
8177     fi
8178   fi
8179   $RM conftest*
8180
8181fi
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8183$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8184
8185if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8186    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8187else
8188    :
8189fi
8190
8191fi
8192
8193
8194
8195
8196
8197
8198  lt_prog_compiler_wl=
8199lt_prog_compiler_pic=
8200lt_prog_compiler_static=
8201
8202
8203  if test "$GCC" = yes; then
8204    lt_prog_compiler_wl='-Wl,'
8205    lt_prog_compiler_static='-static'
8206
8207    case $host_os in
8208      aix*)
8209      # All AIX code is PIC.
8210      if test "$host_cpu" = ia64; then
8211	# AIX 5 now supports IA64 processor
8212	lt_prog_compiler_static='-Bstatic'
8213      fi
8214      ;;
8215
8216    amigaos*)
8217      case $host_cpu in
8218      powerpc)
8219            # see comment about AmigaOS4 .so support
8220            lt_prog_compiler_pic='-fPIC'
8221        ;;
8222      m68k)
8223            # FIXME: we need at least 68020 code to build shared libraries, but
8224            # adding the `-m68020' flag to GCC prevents building anything better,
8225            # like `-m68040'.
8226            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8227        ;;
8228      esac
8229      ;;
8230
8231    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8232      # PIC is the default for these OSes.
8233      ;;
8234
8235    mingw* | cygwin* | pw32* | os2* | cegcc*)
8236      # This hack is so that the source file can tell whether it is being
8237      # built for inclusion in a dll (and should export symbols for example).
8238      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8239      # (--disable-auto-import) libraries
8240      lt_prog_compiler_pic='-DDLL_EXPORT'
8241      ;;
8242
8243    darwin* | rhapsody*)
8244      # PIC is the default on this platform
8245      # Common symbols not allowed in MH_DYLIB files
8246      lt_prog_compiler_pic='-fno-common'
8247      ;;
8248
8249    haiku*)
8250      # PIC is the default for Haiku.
8251      # The "-static" flag exists, but is broken.
8252      lt_prog_compiler_static=
8253      ;;
8254
8255    hpux*)
8256      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8257      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8258      # sets the default TLS model and affects inlining.
8259      case $host_cpu in
8260      hppa*64*)
8261	# +Z the default
8262	;;
8263      *)
8264	lt_prog_compiler_pic='-fPIC'
8265	;;
8266      esac
8267      ;;
8268
8269    interix[3-9]*)
8270      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8271      # Instead, we relocate shared libraries at runtime.
8272      ;;
8273
8274    msdosdjgpp*)
8275      # Just because we use GCC doesn't mean we suddenly get shared libraries
8276      # on systems that don't support them.
8277      lt_prog_compiler_can_build_shared=no
8278      enable_shared=no
8279      ;;
8280
8281    *nto* | *qnx*)
8282      # QNX uses GNU C++, but need to define -shared option too, otherwise
8283      # it will coredump.
8284      lt_prog_compiler_pic='-fPIC -shared'
8285      ;;
8286
8287    sysv4*MP*)
8288      if test -d /usr/nec; then
8289	lt_prog_compiler_pic=-Kconform_pic
8290      fi
8291      ;;
8292
8293    *)
8294      lt_prog_compiler_pic='-fPIC'
8295      ;;
8296    esac
8297
8298    case $cc_basename in
8299    nvcc*) # Cuda Compiler Driver 2.2
8300      lt_prog_compiler_wl='-Xlinker '
8301      if test -n "$lt_prog_compiler_pic"; then
8302        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8303      fi
8304      ;;
8305    esac
8306  else
8307    # PORTME Check for flag to pass linker flags through the system compiler.
8308    case $host_os in
8309    aix*)
8310      lt_prog_compiler_wl='-Wl,'
8311      if test "$host_cpu" = ia64; then
8312	# AIX 5 now supports IA64 processor
8313	lt_prog_compiler_static='-Bstatic'
8314      else
8315	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8316      fi
8317      ;;
8318
8319    mingw* | cygwin* | pw32* | os2* | cegcc*)
8320      # This hack is so that the source file can tell whether it is being
8321      # built for inclusion in a dll (and should export symbols for example).
8322      lt_prog_compiler_pic='-DDLL_EXPORT'
8323      ;;
8324
8325    hpux9* | hpux10* | hpux11*)
8326      lt_prog_compiler_wl='-Wl,'
8327      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8328      # not for PA HP-UX.
8329      case $host_cpu in
8330      hppa*64*|ia64*)
8331	# +Z the default
8332	;;
8333      *)
8334	lt_prog_compiler_pic='+Z'
8335	;;
8336      esac
8337      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8338      lt_prog_compiler_static='${wl}-a ${wl}archive'
8339      ;;
8340
8341    irix5* | irix6* | nonstopux*)
8342      lt_prog_compiler_wl='-Wl,'
8343      # PIC (with -KPIC) is the default.
8344      lt_prog_compiler_static='-non_shared'
8345      ;;
8346
8347    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8348      case $cc_basename in
8349      # old Intel for x86_64 which still supported -KPIC.
8350      ecc*)
8351	lt_prog_compiler_wl='-Wl,'
8352	lt_prog_compiler_pic='-KPIC'
8353	lt_prog_compiler_static='-static'
8354        ;;
8355      # icc used to be incompatible with GCC.
8356      # ICC 10 doesn't accept -KPIC any more.
8357      icc* | ifort*)
8358	lt_prog_compiler_wl='-Wl,'
8359	lt_prog_compiler_pic='-fPIC'
8360	lt_prog_compiler_static='-static'
8361        ;;
8362      # Lahey Fortran 8.1.
8363      lf95*)
8364	lt_prog_compiler_wl='-Wl,'
8365	lt_prog_compiler_pic='--shared'
8366	lt_prog_compiler_static='--static'
8367	;;
8368      nagfor*)
8369	# NAG Fortran compiler
8370	lt_prog_compiler_wl='-Wl,-Wl,,'
8371	lt_prog_compiler_pic='-PIC'
8372	lt_prog_compiler_static='-Bstatic'
8373	;;
8374      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8375        # Portland Group compilers (*not* the Pentium gcc compiler,
8376	# which looks to be a dead project)
8377	lt_prog_compiler_wl='-Wl,'
8378	lt_prog_compiler_pic='-fpic'
8379	lt_prog_compiler_static='-Bstatic'
8380        ;;
8381      ccc*)
8382        lt_prog_compiler_wl='-Wl,'
8383        # All Alpha code is PIC.
8384        lt_prog_compiler_static='-non_shared'
8385        ;;
8386      xl* | bgxl* | bgf* | mpixl*)
8387	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8388	lt_prog_compiler_wl='-Wl,'
8389	lt_prog_compiler_pic='-qpic'
8390	lt_prog_compiler_static='-qstaticlink'
8391	;;
8392      *)
8393	case `$CC -V 2>&1 | sed 5q` in
8394	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8395	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8396	  lt_prog_compiler_pic='-KPIC'
8397	  lt_prog_compiler_static='-Bstatic'
8398	  lt_prog_compiler_wl=''
8399	  ;;
8400	*Sun\ F* | *Sun*Fortran*)
8401	  lt_prog_compiler_pic='-KPIC'
8402	  lt_prog_compiler_static='-Bstatic'
8403	  lt_prog_compiler_wl='-Qoption ld '
8404	  ;;
8405	*Sun\ C*)
8406	  # Sun C 5.9
8407	  lt_prog_compiler_pic='-KPIC'
8408	  lt_prog_compiler_static='-Bstatic'
8409	  lt_prog_compiler_wl='-Wl,'
8410	  ;;
8411        *Intel*\ [CF]*Compiler*)
8412	  lt_prog_compiler_wl='-Wl,'
8413	  lt_prog_compiler_pic='-fPIC'
8414	  lt_prog_compiler_static='-static'
8415	  ;;
8416	*Portland\ Group*)
8417	  lt_prog_compiler_wl='-Wl,'
8418	  lt_prog_compiler_pic='-fpic'
8419	  lt_prog_compiler_static='-Bstatic'
8420	  ;;
8421	esac
8422	;;
8423      esac
8424      ;;
8425
8426    newsos6)
8427      lt_prog_compiler_pic='-KPIC'
8428      lt_prog_compiler_static='-Bstatic'
8429      ;;
8430
8431    *nto* | *qnx*)
8432      # QNX uses GNU C++, but need to define -shared option too, otherwise
8433      # it will coredump.
8434      lt_prog_compiler_pic='-fPIC -shared'
8435      ;;
8436
8437    osf3* | osf4* | osf5*)
8438      lt_prog_compiler_wl='-Wl,'
8439      # All OSF/1 code is PIC.
8440      lt_prog_compiler_static='-non_shared'
8441      ;;
8442
8443    rdos*)
8444      lt_prog_compiler_static='-non_shared'
8445      ;;
8446
8447    solaris*)
8448      lt_prog_compiler_pic='-KPIC'
8449      lt_prog_compiler_static='-Bstatic'
8450      case $cc_basename in
8451      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8452	lt_prog_compiler_wl='-Qoption ld ';;
8453      *)
8454	lt_prog_compiler_wl='-Wl,';;
8455      esac
8456      ;;
8457
8458    sunos4*)
8459      lt_prog_compiler_wl='-Qoption ld '
8460      lt_prog_compiler_pic='-PIC'
8461      lt_prog_compiler_static='-Bstatic'
8462      ;;
8463
8464    sysv4 | sysv4.2uw2* | sysv4.3*)
8465      lt_prog_compiler_wl='-Wl,'
8466      lt_prog_compiler_pic='-KPIC'
8467      lt_prog_compiler_static='-Bstatic'
8468      ;;
8469
8470    sysv4*MP*)
8471      if test -d /usr/nec ;then
8472	lt_prog_compiler_pic='-Kconform_pic'
8473	lt_prog_compiler_static='-Bstatic'
8474      fi
8475      ;;
8476
8477    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8478      lt_prog_compiler_wl='-Wl,'
8479      lt_prog_compiler_pic='-KPIC'
8480      lt_prog_compiler_static='-Bstatic'
8481      ;;
8482
8483    unicos*)
8484      lt_prog_compiler_wl='-Wl,'
8485      lt_prog_compiler_can_build_shared=no
8486      ;;
8487
8488    uts4*)
8489      lt_prog_compiler_pic='-pic'
8490      lt_prog_compiler_static='-Bstatic'
8491      ;;
8492
8493    *)
8494      lt_prog_compiler_can_build_shared=no
8495      ;;
8496    esac
8497  fi
8498
8499case $host_os in
8500  # For platforms which do not support PIC, -DPIC is meaningless:
8501  *djgpp*)
8502    lt_prog_compiler_pic=
8503    ;;
8504  *)
8505    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8506    ;;
8507esac
8508
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8510$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8511if ${lt_cv_prog_compiler_pic+:} false; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8515fi
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8517$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8518lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8519
8520#
8521# Check to make sure the PIC flag actually works.
8522#
8523if test -n "$lt_prog_compiler_pic"; then
8524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8525$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8526if ${lt_cv_prog_compiler_pic_works+:} false; then :
8527  $as_echo_n "(cached) " >&6
8528else
8529  lt_cv_prog_compiler_pic_works=no
8530   ac_outfile=conftest.$ac_objext
8531   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8532   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8533   # Insert the option either (1) after the last *FLAGS variable, or
8534   # (2) before a word containing "conftest.", or (3) at the end.
8535   # Note that $ac_compile itself does not contain backslashes and begins
8536   # with a dollar sign (not a hyphen), so the echo should work correctly.
8537   # The option is referenced via a variable to avoid confusing sed.
8538   lt_compile=`echo "$ac_compile" | $SED \
8539   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8540   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8541   -e 's:$: $lt_compiler_flag:'`
8542   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8543   (eval "$lt_compile" 2>conftest.err)
8544   ac_status=$?
8545   cat conftest.err >&5
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   if (exit $ac_status) && test -s "$ac_outfile"; then
8548     # The compiler can only warn and ignore the option if not recognized
8549     # So say no if there are warnings other than the usual output.
8550     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8551     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8552     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8553       lt_cv_prog_compiler_pic_works=yes
8554     fi
8555   fi
8556   $RM conftest*
8557
8558fi
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8560$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8561
8562if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8563    case $lt_prog_compiler_pic in
8564     "" | " "*) ;;
8565     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8566     esac
8567else
8568    lt_prog_compiler_pic=
8569     lt_prog_compiler_can_build_shared=no
8570fi
8571
8572fi
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584#
8585# Check to make sure the static flag actually works.
8586#
8587wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8589$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8590if ${lt_cv_prog_compiler_static_works+:} false; then :
8591  $as_echo_n "(cached) " >&6
8592else
8593  lt_cv_prog_compiler_static_works=no
8594   save_LDFLAGS="$LDFLAGS"
8595   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8596   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8597   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8598     # The linker can only warn and ignore the option if not recognized
8599     # So say no if there are warnings
8600     if test -s conftest.err; then
8601       # Append any errors to the config.log.
8602       cat conftest.err 1>&5
8603       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8604       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8605       if diff conftest.exp conftest.er2 >/dev/null; then
8606         lt_cv_prog_compiler_static_works=yes
8607       fi
8608     else
8609       lt_cv_prog_compiler_static_works=yes
8610     fi
8611   fi
8612   $RM -r conftest*
8613   LDFLAGS="$save_LDFLAGS"
8614
8615fi
8616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8617$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8618
8619if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8620    :
8621else
8622    lt_prog_compiler_static=
8623fi
8624
8625
8626
8627
8628
8629
8630
8631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8632$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8633if ${lt_cv_prog_compiler_c_o+:} false; then :
8634  $as_echo_n "(cached) " >&6
8635else
8636  lt_cv_prog_compiler_c_o=no
8637   $RM -r conftest 2>/dev/null
8638   mkdir conftest
8639   cd conftest
8640   mkdir out
8641   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8642
8643   lt_compiler_flag="-o out/conftest2.$ac_objext"
8644   # Insert the option either (1) after the last *FLAGS variable, or
8645   # (2) before a word containing "conftest.", or (3) at the end.
8646   # Note that $ac_compile itself does not contain backslashes and begins
8647   # with a dollar sign (not a hyphen), so the echo should work correctly.
8648   lt_compile=`echo "$ac_compile" | $SED \
8649   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8650   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8651   -e 's:$: $lt_compiler_flag:'`
8652   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8653   (eval "$lt_compile" 2>out/conftest.err)
8654   ac_status=$?
8655   cat out/conftest.err >&5
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8658   then
8659     # The compiler can only warn and ignore the option if not recognized
8660     # So say no if there are warnings
8661     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8662     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8663     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8664       lt_cv_prog_compiler_c_o=yes
8665     fi
8666   fi
8667   chmod u+w . 2>&5
8668   $RM conftest*
8669   # SGI C++ compiler will create directory out/ii_files/ for
8670   # template instantiation
8671   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8672   $RM out/* && rmdir out
8673   cd ..
8674   $RM -r conftest
8675   $RM conftest*
8676
8677fi
8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8679$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8680
8681
8682
8683
8684
8685
8686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8687$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8688if ${lt_cv_prog_compiler_c_o+:} false; then :
8689  $as_echo_n "(cached) " >&6
8690else
8691  lt_cv_prog_compiler_c_o=no
8692   $RM -r conftest 2>/dev/null
8693   mkdir conftest
8694   cd conftest
8695   mkdir out
8696   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8697
8698   lt_compiler_flag="-o out/conftest2.$ac_objext"
8699   # Insert the option either (1) after the last *FLAGS variable, or
8700   # (2) before a word containing "conftest.", or (3) at the end.
8701   # Note that $ac_compile itself does not contain backslashes and begins
8702   # with a dollar sign (not a hyphen), so the echo should work correctly.
8703   lt_compile=`echo "$ac_compile" | $SED \
8704   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8705   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8706   -e 's:$: $lt_compiler_flag:'`
8707   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8708   (eval "$lt_compile" 2>out/conftest.err)
8709   ac_status=$?
8710   cat out/conftest.err >&5
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8713   then
8714     # The compiler can only warn and ignore the option if not recognized
8715     # So say no if there are warnings
8716     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8717     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8718     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8719       lt_cv_prog_compiler_c_o=yes
8720     fi
8721   fi
8722   chmod u+w . 2>&5
8723   $RM conftest*
8724   # SGI C++ compiler will create directory out/ii_files/ for
8725   # template instantiation
8726   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8727   $RM out/* && rmdir out
8728   cd ..
8729   $RM -r conftest
8730   $RM conftest*
8731
8732fi
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8734$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8735
8736
8737
8738
8739hard_links="nottested"
8740if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8741  # do not overwrite the value of need_locks provided by the user
8742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8743$as_echo_n "checking if we can lock with hard links... " >&6; }
8744  hard_links=yes
8745  $RM conftest*
8746  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8747  touch conftest.a
8748  ln conftest.a conftest.b 2>&5 || hard_links=no
8749  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8751$as_echo "$hard_links" >&6; }
8752  if test "$hard_links" = no; then
8753    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8754$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8755    need_locks=warn
8756  fi
8757else
8758  need_locks=no
8759fi
8760
8761
8762
8763
8764
8765
8766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8767$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8768
8769  runpath_var=
8770  allow_undefined_flag=
8771  always_export_symbols=no
8772  archive_cmds=
8773  archive_expsym_cmds=
8774  compiler_needs_object=no
8775  enable_shared_with_static_runtimes=no
8776  export_dynamic_flag_spec=
8777  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8778  hardcode_automatic=no
8779  hardcode_direct=no
8780  hardcode_direct_absolute=no
8781  hardcode_libdir_flag_spec=
8782  hardcode_libdir_separator=
8783  hardcode_minus_L=no
8784  hardcode_shlibpath_var=unsupported
8785  inherit_rpath=no
8786  link_all_deplibs=unknown
8787  module_cmds=
8788  module_expsym_cmds=
8789  old_archive_from_new_cmds=
8790  old_archive_from_expsyms_cmds=
8791  thread_safe_flag_spec=
8792  whole_archive_flag_spec=
8793  # include_expsyms should be a list of space-separated symbols to be *always*
8794  # included in the symbol list
8795  include_expsyms=
8796  # exclude_expsyms can be an extended regexp of symbols to exclude
8797  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8798  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8799  # as well as any symbol that contains `d'.
8800  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8801  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8802  # platforms (ab)use it in PIC code, but their linkers get confused if
8803  # the symbol is explicitly referenced.  Since portable code cannot
8804  # rely on this symbol name, it's probably fine to never include it in
8805  # preloaded symbol tables.
8806  # Exclude shared library initialization/finalization symbols.
8807  extract_expsyms_cmds=
8808
8809  case $host_os in
8810  cygwin* | mingw* | pw32* | cegcc*)
8811    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8812    # When not using gcc, we currently assume that we are using
8813    # Microsoft Visual C++.
8814    if test "$GCC" != yes; then
8815      with_gnu_ld=no
8816    fi
8817    ;;
8818  interix*)
8819    # we just hope/assume this is gcc and not c89 (= MSVC++)
8820    with_gnu_ld=yes
8821    ;;
8822  openbsd*)
8823    with_gnu_ld=no
8824    ;;
8825  linux* | k*bsd*-gnu | gnu*)
8826    link_all_deplibs=no
8827    ;;
8828  esac
8829
8830  ld_shlibs=yes
8831
8832  # On some targets, GNU ld is compatible enough with the native linker
8833  # that we're better off using the native interface for both.
8834  lt_use_gnu_ld_interface=no
8835  if test "$with_gnu_ld" = yes; then
8836    case $host_os in
8837      aix*)
8838	# The AIX port of GNU ld has always aspired to compatibility
8839	# with the native linker.  However, as the warning in the GNU ld
8840	# block says, versions before 2.19.5* couldn't really create working
8841	# shared libraries, regardless of the interface used.
8842	case `$LD -v 2>&1` in
8843	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8844	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8845	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8846	  *)
8847	    lt_use_gnu_ld_interface=yes
8848	    ;;
8849	esac
8850	;;
8851      *)
8852	lt_use_gnu_ld_interface=yes
8853	;;
8854    esac
8855  fi
8856
8857  if test "$lt_use_gnu_ld_interface" = yes; then
8858    # If archive_cmds runs LD, not CC, wlarc should be empty
8859    wlarc='${wl}'
8860
8861    # Set some defaults for GNU ld with shared library support. These
8862    # are reset later if shared libraries are not supported. Putting them
8863    # here allows them to be overridden if necessary.
8864    runpath_var=LD_RUN_PATH
8865    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866    export_dynamic_flag_spec='${wl}--export-dynamic'
8867    # ancient GNU ld didn't support --whole-archive et. al.
8868    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8869      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8870    else
8871      whole_archive_flag_spec=
8872    fi
8873    supports_anon_versioning=no
8874    case `$LD -v 2>&1` in
8875      *GNU\ gold*) supports_anon_versioning=yes ;;
8876      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8877      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8878      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8879      *\ 2.11.*) ;; # other 2.11 versions
8880      *) supports_anon_versioning=yes ;;
8881    esac
8882
8883    # See if GNU ld supports shared libraries.
8884    case $host_os in
8885    aix[3-9]*)
8886      # On AIX/PPC, the GNU linker is very broken
8887      if test "$host_cpu" != ia64; then
8888	ld_shlibs=no
8889	cat <<_LT_EOF 1>&2
8890
8891*** Warning: the GNU linker, at least up to release 2.19, is reported
8892*** to be unable to reliably create shared libraries on AIX.
8893*** Therefore, libtool is disabling shared libraries support.  If you
8894*** really care for shared libraries, you may want to install binutils
8895*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8896*** You will then need to restart the configuration process.
8897
8898_LT_EOF
8899      fi
8900      ;;
8901
8902    amigaos*)
8903      case $host_cpu in
8904      powerpc)
8905            # see comment about AmigaOS4 .so support
8906            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907            archive_expsym_cmds=''
8908        ;;
8909      m68k)
8910            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)'
8911            hardcode_libdir_flag_spec='-L$libdir'
8912            hardcode_minus_L=yes
8913        ;;
8914      esac
8915      ;;
8916
8917    beos*)
8918      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8919	allow_undefined_flag=unsupported
8920	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8921	# support --undefined.  This deserves some investigation.  FIXME
8922	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8923      else
8924	ld_shlibs=no
8925      fi
8926      ;;
8927
8928    cygwin* | mingw* | pw32* | cegcc*)
8929      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8930      # as there is no search path for DLLs.
8931      hardcode_libdir_flag_spec='-L$libdir'
8932      export_dynamic_flag_spec='${wl}--export-all-symbols'
8933      allow_undefined_flag=unsupported
8934      always_export_symbols=no
8935      enable_shared_with_static_runtimes=yes
8936      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'
8937      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8938
8939      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8940        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8941	# If the export-symbols file already is a .def file (1st line
8942	# is EXPORTS), use it as is; otherwise, prepend...
8943	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8944	  cp $export_symbols $output_objdir/$soname.def;
8945	else
8946	  echo EXPORTS > $output_objdir/$soname.def;
8947	  cat $export_symbols >> $output_objdir/$soname.def;
8948	fi~
8949	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8950      else
8951	ld_shlibs=no
8952      fi
8953      ;;
8954
8955    haiku*)
8956      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957      link_all_deplibs=yes
8958      ;;
8959
8960    interix[3-9]*)
8961      hardcode_direct=no
8962      hardcode_shlibpath_var=no
8963      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8964      export_dynamic_flag_spec='${wl}-E'
8965      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8966      # Instead, shared libraries are loaded at an image base (0x10000000 by
8967      # default) and relocated if they conflict, which is a slow very memory
8968      # consuming and fragmenting process.  To avoid this, we pick a random,
8969      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8970      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8971      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8972      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'
8973      ;;
8974
8975    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8976      tmp_diet=no
8977      if test "$host_os" = linux-dietlibc; then
8978	case $cc_basename in
8979	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8980	esac
8981      fi
8982      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8983	 && test "$tmp_diet" = no
8984      then
8985	tmp_addflag=' $pic_flag'
8986	tmp_sharedflag='-shared'
8987	case $cc_basename,$host_cpu in
8988        pgcc*)				# Portland Group C compiler
8989	  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'
8990	  tmp_addflag=' $pic_flag'
8991	  ;;
8992	pgf77* | pgf90* | pgf95* | pgfortran*)
8993					# Portland Group f77 and f90 compilers
8994	  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'
8995	  tmp_addflag=' $pic_flag -Mnomain' ;;
8996	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8997	  tmp_addflag=' -i_dynamic' ;;
8998	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8999	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9000	ifc* | ifort*)			# Intel Fortran compiler
9001	  tmp_addflag=' -nofor_main' ;;
9002	lf95*)				# Lahey Fortran 8.1
9003	  whole_archive_flag_spec=
9004	  tmp_sharedflag='--shared' ;;
9005	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9006	  tmp_sharedflag='-qmkshrobj'
9007	  tmp_addflag= ;;
9008	nvcc*)	# Cuda Compiler Driver 2.2
9009	  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'
9010	  compiler_needs_object=yes
9011	  ;;
9012	esac
9013	case `$CC -V 2>&1 | sed 5q` in
9014	*Sun\ C*)			# Sun C 5.9
9015	  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'
9016	  compiler_needs_object=yes
9017	  tmp_sharedflag='-G' ;;
9018	*Sun\ F*)			# Sun Fortran 8.3
9019	  tmp_sharedflag='-G' ;;
9020	esac
9021	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022
9023        if test "x$supports_anon_versioning" = xyes; then
9024          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9025	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9026	    echo "local: *; };" >> $output_objdir/$libname.ver~
9027	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9028        fi
9029
9030	case $cc_basename in
9031	xlf* | bgf* | bgxlf* | mpixlf*)
9032	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9033	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9034	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9035	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9036	  if test "x$supports_anon_versioning" = xyes; then
9037	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9038	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9039	      echo "local: *; };" >> $output_objdir/$libname.ver~
9040	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9041	  fi
9042	  ;;
9043	esac
9044      else
9045        ld_shlibs=no
9046      fi
9047      ;;
9048
9049    netbsd* | netbsdelf*-gnu)
9050      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9051	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9052	wlarc=
9053      else
9054	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9056      fi
9057      ;;
9058
9059    solaris*)
9060      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9061	ld_shlibs=no
9062	cat <<_LT_EOF 1>&2
9063
9064*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9065*** create shared libraries on Solaris systems.  Therefore, libtool
9066*** is disabling shared libraries support.  We urge you to upgrade GNU
9067*** binutils to release 2.9.1 or newer.  Another option is to modify
9068*** your PATH or compiler configuration so that the native linker is
9069*** used, and then restart.
9070
9071_LT_EOF
9072      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9073	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9075      else
9076	ld_shlibs=no
9077      fi
9078      ;;
9079
9080    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9081      case `$LD -v 2>&1` in
9082        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9083	ld_shlibs=no
9084	cat <<_LT_EOF 1>&2
9085
9086*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9087*** reliably create shared libraries on SCO systems.  Therefore, libtool
9088*** is disabling shared libraries support.  We urge you to upgrade GNU
9089*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9090*** your PATH or compiler configuration so that the native linker is
9091*** used, and then restart.
9092
9093_LT_EOF
9094	;;
9095	*)
9096	  # For security reasons, it is highly recommended that you always
9097	  # use absolute paths for naming shared libraries, and exclude the
9098	  # DT_RUNPATH tag from executables and libraries.  But doing so
9099	  # requires that you compile everything twice, which is a pain.
9100	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9101	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9102	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9104	  else
9105	    ld_shlibs=no
9106	  fi
9107	;;
9108      esac
9109      ;;
9110
9111    sunos4*)
9112      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9113      wlarc=
9114      hardcode_direct=yes
9115      hardcode_shlibpath_var=no
9116      ;;
9117
9118    *)
9119      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9120	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9121	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9122      else
9123	ld_shlibs=no
9124      fi
9125      ;;
9126    esac
9127
9128    if test "$ld_shlibs" = no; then
9129      runpath_var=
9130      hardcode_libdir_flag_spec=
9131      export_dynamic_flag_spec=
9132      whole_archive_flag_spec=
9133    fi
9134  else
9135    # PORTME fill in a description of your system's linker (not GNU ld)
9136    case $host_os in
9137    aix3*)
9138      allow_undefined_flag=unsupported
9139      always_export_symbols=yes
9140      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'
9141      # Note: this linker hardcodes the directories in LIBPATH if there
9142      # are no directories specified by -L.
9143      hardcode_minus_L=yes
9144      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9145	# Neither direct hardcoding nor static linking is supported with a
9146	# broken collect2.
9147	hardcode_direct=unsupported
9148      fi
9149      ;;
9150
9151    aix[4-9]*)
9152      if test "$host_cpu" = ia64; then
9153	# On IA64, the linker does run time linking by default, so we don't
9154	# have to do anything special.
9155	aix_use_runtimelinking=no
9156	exp_sym_flag='-Bexport'
9157	no_entry_flag=""
9158      else
9159	# If we're using GNU nm, then we don't want the "-C" option.
9160	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9161	# Also, AIX nm treats weak defined symbols like other global
9162	# defined symbols, whereas GNU nm marks them as "W".
9163	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9164	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9165	else
9166	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9167	fi
9168	aix_use_runtimelinking=no
9169
9170	# Test if we are trying to use run time linking or normal
9171	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9172	# need to do runtime linking.
9173	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9174	  for ld_flag in $LDFLAGS; do
9175	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9176	    aix_use_runtimelinking=yes
9177	    break
9178	  fi
9179	  done
9180	  ;;
9181	esac
9182
9183	exp_sym_flag='-bexport'
9184	no_entry_flag='-bnoentry'
9185      fi
9186
9187      # When large executables or shared objects are built, AIX ld can
9188      # have problems creating the table of contents.  If linking a library
9189      # or program results in "error TOC overflow" add -mminimal-toc to
9190      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9191      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9192
9193      archive_cmds=''
9194      hardcode_direct=yes
9195      hardcode_direct_absolute=yes
9196      hardcode_libdir_separator=':'
9197      link_all_deplibs=yes
9198      file_list_spec='${wl}-f,'
9199
9200      if test "$GCC" = yes; then
9201	case $host_os in aix4.[012]|aix4.[012].*)
9202	# We only want to do this on AIX 4.2 and lower, the check
9203	# below for broken collect2 doesn't work under 4.3+
9204	  collect2name=`${CC} -print-prog-name=collect2`
9205	  if test -f "$collect2name" &&
9206	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9207	  then
9208	  # We have reworked collect2
9209	  :
9210	  else
9211	  # We have old collect2
9212	  hardcode_direct=unsupported
9213	  # It fails to find uninstalled libraries when the uninstalled
9214	  # path is not listed in the libpath.  Setting hardcode_minus_L
9215	  # to unsupported forces relinking
9216	  hardcode_minus_L=yes
9217	  hardcode_libdir_flag_spec='-L$libdir'
9218	  hardcode_libdir_separator=
9219	  fi
9220	  ;;
9221	esac
9222	shared_flag='-shared'
9223	if test "$aix_use_runtimelinking" = yes; then
9224	  shared_flag="$shared_flag "'${wl}-G'
9225	fi
9226	link_all_deplibs=no
9227      else
9228	# not using gcc
9229	if test "$host_cpu" = ia64; then
9230	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9231	# chokes on -Wl,-G. The following line is correct:
9232	  shared_flag='-G'
9233	else
9234	  if test "$aix_use_runtimelinking" = yes; then
9235	    shared_flag='${wl}-G'
9236	  else
9237	    shared_flag='${wl}-bM:SRE'
9238	  fi
9239	fi
9240      fi
9241
9242      export_dynamic_flag_spec='${wl}-bexpall'
9243      # It seems that -bexpall does not export symbols beginning with
9244      # underscore (_), so it is better to generate a list of symbols to export.
9245      always_export_symbols=yes
9246      if test "$aix_use_runtimelinking" = yes; then
9247	# Warning - without using the other runtime loading flags (-brtl),
9248	# -berok will link without error, but may produce a broken library.
9249	allow_undefined_flag='-berok'
9250        # Determine the default libpath from the value encoded in an
9251        # empty executable.
9252        if test "${lt_cv_aix_libpath+set}" = set; then
9253  aix_libpath=$lt_cv_aix_libpath
9254else
9255  if ${lt_cv_aix_libpath_+:} false; then :
9256  $as_echo_n "(cached) " >&6
9257else
9258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259/* end confdefs.h.  */
9260
9261int
9262main ()
9263{
9264
9265  ;
9266  return 0;
9267}
9268_ACEOF
9269if ac_fn_c_try_link "$LINENO"; then :
9270
9271  lt_aix_libpath_sed='
9272      /Import File Strings/,/^$/ {
9273	  /^0/ {
9274	      s/^0  *\([^ ]*\) *$/\1/
9275	      p
9276	  }
9277      }'
9278  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9279  # Check for a 64-bit object if we didn't find anything.
9280  if test -z "$lt_cv_aix_libpath_"; then
9281    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9282  fi
9283fi
9284rm -f core conftest.err conftest.$ac_objext \
9285    conftest$ac_exeext conftest.$ac_ext
9286  if test -z "$lt_cv_aix_libpath_"; then
9287    lt_cv_aix_libpath_="/usr/lib:/lib"
9288  fi
9289
9290fi
9291
9292  aix_libpath=$lt_cv_aix_libpath_
9293fi
9294
9295        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9296        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9297      else
9298	if test "$host_cpu" = ia64; then
9299	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9300	  allow_undefined_flag="-z nodefs"
9301	  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"
9302	else
9303	 # Determine the default libpath from the value encoded in an
9304	 # empty executable.
9305	 if test "${lt_cv_aix_libpath+set}" = set; then
9306  aix_libpath=$lt_cv_aix_libpath
9307else
9308  if ${lt_cv_aix_libpath_+:} false; then :
9309  $as_echo_n "(cached) " >&6
9310else
9311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312/* end confdefs.h.  */
9313
9314int
9315main ()
9316{
9317
9318  ;
9319  return 0;
9320}
9321_ACEOF
9322if ac_fn_c_try_link "$LINENO"; then :
9323
9324  lt_aix_libpath_sed='
9325      /Import File Strings/,/^$/ {
9326	  /^0/ {
9327	      s/^0  *\([^ ]*\) *$/\1/
9328	      p
9329	  }
9330      }'
9331  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9332  # Check for a 64-bit object if we didn't find anything.
9333  if test -z "$lt_cv_aix_libpath_"; then
9334    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9335  fi
9336fi
9337rm -f core conftest.err conftest.$ac_objext \
9338    conftest$ac_exeext conftest.$ac_ext
9339  if test -z "$lt_cv_aix_libpath_"; then
9340    lt_cv_aix_libpath_="/usr/lib:/lib"
9341  fi
9342
9343fi
9344
9345  aix_libpath=$lt_cv_aix_libpath_
9346fi
9347
9348	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9349	  # Warning - without using the other run time loading flags,
9350	  # -berok will link without error, but may produce a broken library.
9351	  no_undefined_flag=' ${wl}-bernotok'
9352	  allow_undefined_flag=' ${wl}-berok'
9353	  if test "$with_gnu_ld" = yes; then
9354	    # We only use this code for GNU lds that support --whole-archive.
9355	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9356	  else
9357	    # Exported symbols can be pulled into shared objects from archives
9358	    whole_archive_flag_spec='$convenience'
9359	  fi
9360	  archive_cmds_need_lc=yes
9361	  # This is similar to how AIX traditionally builds its shared libraries.
9362	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9363	fi
9364      fi
9365      ;;
9366
9367    amigaos*)
9368      case $host_cpu in
9369      powerpc)
9370            # see comment about AmigaOS4 .so support
9371            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372            archive_expsym_cmds=''
9373        ;;
9374      m68k)
9375            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)'
9376            hardcode_libdir_flag_spec='-L$libdir'
9377            hardcode_minus_L=yes
9378        ;;
9379      esac
9380      ;;
9381
9382    bsdi[45]*)
9383      export_dynamic_flag_spec=-rdynamic
9384      ;;
9385
9386    cygwin* | mingw* | pw32* | cegcc*)
9387      # When not using gcc, we currently assume that we are using
9388      # Microsoft Visual C++.
9389      # hardcode_libdir_flag_spec is actually meaningless, as there is
9390      # no search path for DLLs.
9391      case $cc_basename in
9392      cl*)
9393	# Native MSVC
9394	hardcode_libdir_flag_spec=' '
9395	allow_undefined_flag=unsupported
9396	always_export_symbols=yes
9397	file_list_spec='@'
9398	# Tell ltmain to make .lib files, not .a files.
9399	libext=lib
9400	# Tell ltmain to make .dll files, not .so files.
9401	shrext_cmds=".dll"
9402	# FIXME: Setting linknames here is a bad hack.
9403	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9404	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9405	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9406	  else
9407	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9408	  fi~
9409	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9410	  linknames='
9411	# The linker will not automatically build a static lib if we build a DLL.
9412	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9413	enable_shared_with_static_runtimes=yes
9414	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9415	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9416	# Don't use ranlib
9417	old_postinstall_cmds='chmod 644 $oldlib'
9418	postlink_cmds='lt_outputfile="@OUTPUT@"~
9419	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9420	  case $lt_outputfile in
9421	    *.exe|*.EXE) ;;
9422	    *)
9423	      lt_outputfile="$lt_outputfile.exe"
9424	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9425	      ;;
9426	  esac~
9427	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9428	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9429	    $RM "$lt_outputfile.manifest";
9430	  fi'
9431	;;
9432      *)
9433	# Assume MSVC wrapper
9434	hardcode_libdir_flag_spec=' '
9435	allow_undefined_flag=unsupported
9436	# Tell ltmain to make .lib files, not .a files.
9437	libext=lib
9438	# Tell ltmain to make .dll files, not .so files.
9439	shrext_cmds=".dll"
9440	# FIXME: Setting linknames here is a bad hack.
9441	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9442	# The linker will automatically build a .lib file if we build a DLL.
9443	old_archive_from_new_cmds='true'
9444	# FIXME: Should let the user specify the lib program.
9445	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9446	enable_shared_with_static_runtimes=yes
9447	;;
9448      esac
9449      ;;
9450
9451    darwin* | rhapsody*)
9452
9453
9454  archive_cmds_need_lc=no
9455  hardcode_direct=no
9456  hardcode_automatic=yes
9457  hardcode_shlibpath_var=unsupported
9458  if test "$lt_cv_ld_force_load" = "yes"; then
9459    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\"`'
9460
9461  else
9462    whole_archive_flag_spec=''
9463  fi
9464  link_all_deplibs=yes
9465  allow_undefined_flag="$_lt_dar_allow_undefined"
9466  case $cc_basename in
9467     ifort*) _lt_dar_can_shared=yes ;;
9468     *) _lt_dar_can_shared=$GCC ;;
9469  esac
9470  if test "$_lt_dar_can_shared" = "yes"; then
9471    output_verbose_link_cmd=func_echo_all
9472    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9473    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9474    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}"
9475    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}"
9476
9477  else
9478  ld_shlibs=no
9479  fi
9480
9481      ;;
9482
9483    dgux*)
9484      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485      hardcode_libdir_flag_spec='-L$libdir'
9486      hardcode_shlibpath_var=no
9487      ;;
9488
9489    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9490    # support.  Future versions do this automatically, but an explicit c++rt0.o
9491    # does not break anything, and helps significantly (at the cost of a little
9492    # extra space).
9493    freebsd2.2*)
9494      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9495      hardcode_libdir_flag_spec='-R$libdir'
9496      hardcode_direct=yes
9497      hardcode_shlibpath_var=no
9498      ;;
9499
9500    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9501    freebsd2.*)
9502      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9503      hardcode_direct=yes
9504      hardcode_minus_L=yes
9505      hardcode_shlibpath_var=no
9506      ;;
9507
9508    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9509    freebsd* | dragonfly*)
9510      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9511      hardcode_libdir_flag_spec='-R$libdir'
9512      hardcode_direct=yes
9513      hardcode_shlibpath_var=no
9514      ;;
9515
9516    hpux9*)
9517      if test "$GCC" = yes; then
9518	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9519      else
9520	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9521      fi
9522      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9523      hardcode_libdir_separator=:
9524      hardcode_direct=yes
9525
9526      # hardcode_minus_L: Not really in the search PATH,
9527      # but as the default location of the library.
9528      hardcode_minus_L=yes
9529      export_dynamic_flag_spec='${wl}-E'
9530      ;;
9531
9532    hpux10*)
9533      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9534	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9535      else
9536	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9537      fi
9538      if test "$with_gnu_ld" = no; then
9539	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9540	hardcode_libdir_separator=:
9541	hardcode_direct=yes
9542	hardcode_direct_absolute=yes
9543	export_dynamic_flag_spec='${wl}-E'
9544	# hardcode_minus_L: Not really in the search PATH,
9545	# but as the default location of the library.
9546	hardcode_minus_L=yes
9547      fi
9548      ;;
9549
9550    hpux11*)
9551      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9552	case $host_cpu in
9553	hppa*64*)
9554	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9555	  ;;
9556	ia64*)
9557	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9558	  ;;
9559	*)
9560	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9561	  ;;
9562	esac
9563      else
9564	case $host_cpu in
9565	hppa*64*)
9566	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9567	  ;;
9568	ia64*)
9569	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9570	  ;;
9571	*)
9572
9573	  # Older versions of the 11.00 compiler do not understand -b yet
9574	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9575	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9576$as_echo_n "checking if $CC understands -b... " >&6; }
9577if ${lt_cv_prog_compiler__b+:} false; then :
9578  $as_echo_n "(cached) " >&6
9579else
9580  lt_cv_prog_compiler__b=no
9581   save_LDFLAGS="$LDFLAGS"
9582   LDFLAGS="$LDFLAGS -b"
9583   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9584   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9585     # The linker can only warn and ignore the option if not recognized
9586     # So say no if there are warnings
9587     if test -s conftest.err; then
9588       # Append any errors to the config.log.
9589       cat conftest.err 1>&5
9590       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9591       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9592       if diff conftest.exp conftest.er2 >/dev/null; then
9593         lt_cv_prog_compiler__b=yes
9594       fi
9595     else
9596       lt_cv_prog_compiler__b=yes
9597     fi
9598   fi
9599   $RM -r conftest*
9600   LDFLAGS="$save_LDFLAGS"
9601
9602fi
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9604$as_echo "$lt_cv_prog_compiler__b" >&6; }
9605
9606if test x"$lt_cv_prog_compiler__b" = xyes; then
9607    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9608else
9609    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9610fi
9611
9612	  ;;
9613	esac
9614      fi
9615      if test "$with_gnu_ld" = no; then
9616	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9617	hardcode_libdir_separator=:
9618
9619	case $host_cpu in
9620	hppa*64*|ia64*)
9621	  hardcode_direct=no
9622	  hardcode_shlibpath_var=no
9623	  ;;
9624	*)
9625	  hardcode_direct=yes
9626	  hardcode_direct_absolute=yes
9627	  export_dynamic_flag_spec='${wl}-E'
9628
9629	  # hardcode_minus_L: Not really in the search PATH,
9630	  # but as the default location of the library.
9631	  hardcode_minus_L=yes
9632	  ;;
9633	esac
9634      fi
9635      ;;
9636
9637    irix5* | irix6* | nonstopux*)
9638      if test "$GCC" = yes; then
9639	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'
9640	# Try to use the -exported_symbol ld option, if it does not
9641	# work, assume that -exports_file does not work either and
9642	# implicitly export all symbols.
9643	# This should be the same for all languages, so no per-tag cache variable.
9644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9645$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9646if ${lt_cv_irix_exported_symbol+:} false; then :
9647  $as_echo_n "(cached) " >&6
9648else
9649  save_LDFLAGS="$LDFLAGS"
9650	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9651	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652/* end confdefs.h.  */
9653int foo (void) { return 0; }
9654_ACEOF
9655if ac_fn_c_try_link "$LINENO"; then :
9656  lt_cv_irix_exported_symbol=yes
9657else
9658  lt_cv_irix_exported_symbol=no
9659fi
9660rm -f core conftest.err conftest.$ac_objext \
9661    conftest$ac_exeext conftest.$ac_ext
9662           LDFLAGS="$save_LDFLAGS"
9663fi
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9665$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9666	if test "$lt_cv_irix_exported_symbol" = yes; then
9667          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'
9668	fi
9669      else
9670	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'
9671	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'
9672      fi
9673      archive_cmds_need_lc='no'
9674      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9675      hardcode_libdir_separator=:
9676      inherit_rpath=yes
9677      link_all_deplibs=yes
9678      ;;
9679
9680    netbsd* | netbsdelf*-gnu)
9681      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9682	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9683      else
9684	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9685      fi
9686      hardcode_libdir_flag_spec='-R$libdir'
9687      hardcode_direct=yes
9688      hardcode_shlibpath_var=no
9689      ;;
9690
9691    newsos6)
9692      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693      hardcode_direct=yes
9694      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695      hardcode_libdir_separator=:
9696      hardcode_shlibpath_var=no
9697      ;;
9698
9699    *nto* | *qnx*)
9700      ;;
9701
9702    openbsd*)
9703      if test -f /usr/libexec/ld.so; then
9704	hardcode_direct=yes
9705	hardcode_shlibpath_var=no
9706	hardcode_direct_absolute=yes
9707	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9708	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9709	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9710	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9711	  export_dynamic_flag_spec='${wl}-E'
9712	else
9713	  case $host_os in
9714	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9715	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9716	     hardcode_libdir_flag_spec='-R$libdir'
9717	     ;;
9718	   *)
9719	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9720	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9721	     ;;
9722	  esac
9723	fi
9724      else
9725	ld_shlibs=no
9726      fi
9727      ;;
9728
9729    os2*)
9730      hardcode_libdir_flag_spec='-L$libdir'
9731      hardcode_minus_L=yes
9732      allow_undefined_flag=unsupported
9733      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9734      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9735      ;;
9736
9737    osf3*)
9738      if test "$GCC" = yes; then
9739	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9740	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'
9741      else
9742	allow_undefined_flag=' -expect_unresolved \*'
9743	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'
9744      fi
9745      archive_cmds_need_lc='no'
9746      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9747      hardcode_libdir_separator=:
9748      ;;
9749
9750    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9751      if test "$GCC" = yes; then
9752	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9753	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'
9754	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9755      else
9756	allow_undefined_flag=' -expect_unresolved \*'
9757	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'
9758	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~
9759	$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'
9760
9761	# Both c and cxx compiler support -rpath directly
9762	hardcode_libdir_flag_spec='-rpath $libdir'
9763      fi
9764      archive_cmds_need_lc='no'
9765      hardcode_libdir_separator=:
9766      ;;
9767
9768    solaris*)
9769      no_undefined_flag=' -z defs'
9770      if test "$GCC" = yes; then
9771	wlarc='${wl}'
9772	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9773	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9774	  $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'
9775      else
9776	case `$CC -V 2>&1` in
9777	*"Compilers 5.0"*)
9778	  wlarc=''
9779	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9780	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9781	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9782	  ;;
9783	*)
9784	  wlarc='${wl}'
9785	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9786	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9787	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9788	  ;;
9789	esac
9790      fi
9791      hardcode_libdir_flag_spec='-R$libdir'
9792      hardcode_shlibpath_var=no
9793      case $host_os in
9794      solaris2.[0-5] | solaris2.[0-5].*) ;;
9795      *)
9796	# The compiler driver will combine and reorder linker options,
9797	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9798	# but is careful enough not to reorder.
9799	# Supported since Solaris 2.6 (maybe 2.5.1?)
9800	if test "$GCC" = yes; then
9801	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9802	else
9803	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9804	fi
9805	;;
9806      esac
9807      link_all_deplibs=yes
9808      ;;
9809
9810    sunos4*)
9811      if test "x$host_vendor" = xsequent; then
9812	# Use $CC to link under sequent, because it throws in some extra .o
9813	# files that make .init and .fini sections work.
9814	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9815      else
9816	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9817      fi
9818      hardcode_libdir_flag_spec='-L$libdir'
9819      hardcode_direct=yes
9820      hardcode_minus_L=yes
9821      hardcode_shlibpath_var=no
9822      ;;
9823
9824    sysv4)
9825      case $host_vendor in
9826	sni)
9827	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828	  hardcode_direct=yes # is this really true???
9829	;;
9830	siemens)
9831	  ## LD is ld it makes a PLAMLIB
9832	  ## CC just makes a GrossModule.
9833	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9834	  reload_cmds='$CC -r -o $output$reload_objs'
9835	  hardcode_direct=no
9836        ;;
9837	motorola)
9838	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9840	;;
9841      esac
9842      runpath_var='LD_RUN_PATH'
9843      hardcode_shlibpath_var=no
9844      ;;
9845
9846    sysv4.3*)
9847      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848      hardcode_shlibpath_var=no
9849      export_dynamic_flag_spec='-Bexport'
9850      ;;
9851
9852    sysv4*MP*)
9853      if test -d /usr/nec; then
9854	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9855	hardcode_shlibpath_var=no
9856	runpath_var=LD_RUN_PATH
9857	hardcode_runpath_var=yes
9858	ld_shlibs=yes
9859      fi
9860      ;;
9861
9862    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9863      no_undefined_flag='${wl}-z,text'
9864      archive_cmds_need_lc=no
9865      hardcode_shlibpath_var=no
9866      runpath_var='LD_RUN_PATH'
9867
9868      if test "$GCC" = yes; then
9869	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9870	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9871      else
9872	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9873	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9874      fi
9875      ;;
9876
9877    sysv5* | sco3.2v5* | sco5v6*)
9878      # Note: We can NOT use -z defs as we might desire, because we do not
9879      # link with -lc, and that would cause any symbols used from libc to
9880      # always be unresolved, which means just about no library would
9881      # ever link correctly.  If we're not using GNU ld we use -z text
9882      # though, which does catch some bad symbols but isn't as heavy-handed
9883      # as -z defs.
9884      no_undefined_flag='${wl}-z,text'
9885      allow_undefined_flag='${wl}-z,nodefs'
9886      archive_cmds_need_lc=no
9887      hardcode_shlibpath_var=no
9888      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9889      hardcode_libdir_separator=':'
9890      link_all_deplibs=yes
9891      export_dynamic_flag_spec='${wl}-Bexport'
9892      runpath_var='LD_RUN_PATH'
9893
9894      if test "$GCC" = yes; then
9895	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9896	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9897      else
9898	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9899	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9900      fi
9901      ;;
9902
9903    uts4*)
9904      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905      hardcode_libdir_flag_spec='-L$libdir'
9906      hardcode_shlibpath_var=no
9907      ;;
9908
9909    *)
9910      ld_shlibs=no
9911      ;;
9912    esac
9913
9914    if test x$host_vendor = xsni; then
9915      case $host in
9916      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9917	export_dynamic_flag_spec='${wl}-Blargedynsym'
9918	;;
9919      esac
9920    fi
9921  fi
9922
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9924$as_echo "$ld_shlibs" >&6; }
9925test "$ld_shlibs" = no && can_build_shared=no
9926
9927with_gnu_ld=$with_gnu_ld
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943#
9944# Do we need to explicitly link libc?
9945#
9946case "x$archive_cmds_need_lc" in
9947x|xyes)
9948  # Assume -lc should be added
9949  archive_cmds_need_lc=yes
9950
9951  if test "$enable_shared" = yes && test "$GCC" = yes; then
9952    case $archive_cmds in
9953    *'~'*)
9954      # FIXME: we may have to deal with multi-command sequences.
9955      ;;
9956    '$CC '*)
9957      # Test whether the compiler implicitly links with -lc since on some
9958      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9959      # to ld, don't add -lc before -lgcc.
9960      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9961$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9962if ${lt_cv_archive_cmds_need_lc+:} false; then :
9963  $as_echo_n "(cached) " >&6
9964else
9965  $RM conftest*
9966	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9967
9968	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9969  (eval $ac_compile) 2>&5
9970  ac_status=$?
9971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9972  test $ac_status = 0; } 2>conftest.err; then
9973	  soname=conftest
9974	  lib=conftest
9975	  libobjs=conftest.$ac_objext
9976	  deplibs=
9977	  wl=$lt_prog_compiler_wl
9978	  pic_flag=$lt_prog_compiler_pic
9979	  compiler_flags=-v
9980	  linker_flags=-v
9981	  verstring=
9982	  output_objdir=.
9983	  libname=conftest
9984	  lt_save_allow_undefined_flag=$allow_undefined_flag
9985	  allow_undefined_flag=
9986	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9987  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9988  ac_status=$?
9989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9990  test $ac_status = 0; }
9991	  then
9992	    lt_cv_archive_cmds_need_lc=no
9993	  else
9994	    lt_cv_archive_cmds_need_lc=yes
9995	  fi
9996	  allow_undefined_flag=$lt_save_allow_undefined_flag
9997	else
9998	  cat conftest.err 1>&5
9999	fi
10000	$RM conftest*
10001
10002fi
10003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10004$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10005      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10006      ;;
10007    esac
10008  fi
10009  ;;
10010esac
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10164$as_echo_n "checking dynamic linker characteristics... " >&6; }
10165
10166if test "$GCC" = yes; then
10167  case $host_os in
10168    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10169    *) lt_awk_arg="/^libraries:/" ;;
10170  esac
10171  case $host_os in
10172    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10173    *) lt_sed_strip_eq="s,=/,/,g" ;;
10174  esac
10175  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10176  case $lt_search_path_spec in
10177  *\;*)
10178    # if the path contains ";" then we assume it to be the separator
10179    # otherwise default to the standard path separator (i.e. ":") - it is
10180    # assumed that no part of a normal pathname contains ";" but that should
10181    # okay in the real world where ";" in dirpaths is itself problematic.
10182    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10183    ;;
10184  *)
10185    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10186    ;;
10187  esac
10188  # Ok, now we have the path, separated by spaces, we can step through it
10189  # and add multilib dir if necessary.
10190  lt_tmp_lt_search_path_spec=
10191  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10192  for lt_sys_path in $lt_search_path_spec; do
10193    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10194      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10195    else
10196      test -d "$lt_sys_path" && \
10197	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10198    fi
10199  done
10200  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10201BEGIN {RS=" "; FS="/|\n";} {
10202  lt_foo="";
10203  lt_count=0;
10204  for (lt_i = NF; lt_i > 0; lt_i--) {
10205    if ($lt_i != "" && $lt_i != ".") {
10206      if ($lt_i == "..") {
10207        lt_count++;
10208      } else {
10209        if (lt_count == 0) {
10210          lt_foo="/" $lt_i lt_foo;
10211        } else {
10212          lt_count--;
10213        }
10214      }
10215    }
10216  }
10217  if (lt_foo != "") { lt_freq[lt_foo]++; }
10218  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10219}'`
10220  # AWK program above erroneously prepends '/' to C:/dos/paths
10221  # for these hosts.
10222  case $host_os in
10223    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10224      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10225  esac
10226  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10227else
10228  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10229fi
10230library_names_spec=
10231libname_spec='lib$name'
10232soname_spec=
10233shrext_cmds=".so"
10234postinstall_cmds=
10235postuninstall_cmds=
10236finish_cmds=
10237finish_eval=
10238shlibpath_var=
10239shlibpath_overrides_runpath=unknown
10240version_type=none
10241dynamic_linker="$host_os ld.so"
10242sys_lib_dlsearch_path_spec="/lib /usr/lib"
10243need_lib_prefix=unknown
10244hardcode_into_libs=no
10245
10246# when you set need_version to no, make sure it does not cause -set_version
10247# flags to be left without arguments
10248need_version=unknown
10249
10250case $host_os in
10251aix3*)
10252  version_type=linux # correct to gnu/linux during the next big refactor
10253  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10254  shlibpath_var=LIBPATH
10255
10256  # AIX 3 has no versioning support, so we append a major version to the name.
10257  soname_spec='${libname}${release}${shared_ext}$major'
10258  ;;
10259
10260aix[4-9]*)
10261  version_type=linux # correct to gnu/linux during the next big refactor
10262  need_lib_prefix=no
10263  need_version=no
10264  hardcode_into_libs=yes
10265  if test "$host_cpu" = ia64; then
10266    # AIX 5 supports IA64
10267    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10268    shlibpath_var=LD_LIBRARY_PATH
10269  else
10270    # With GCC up to 2.95.x, collect2 would create an import file
10271    # for dependence libraries.  The import file would start with
10272    # the line `#! .'.  This would cause the generated library to
10273    # depend on `.', always an invalid library.  This was fixed in
10274    # development snapshots of GCC prior to 3.0.
10275    case $host_os in
10276      aix4 | aix4.[01] | aix4.[01].*)
10277      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10278	   echo ' yes '
10279	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10280	:
10281      else
10282	can_build_shared=no
10283      fi
10284      ;;
10285    esac
10286    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10287    # soname into executable. Probably we can add versioning support to
10288    # collect2, so additional links can be useful in future.
10289    if test "$aix_use_runtimelinking" = yes; then
10290      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10291      # instead of lib<name>.a to let people know that these are not
10292      # typical AIX shared libraries.
10293      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294    else
10295      # We preserve .a as extension for shared libraries through AIX4.2
10296      # and later when we are not doing run time linking.
10297      library_names_spec='${libname}${release}.a $libname.a'
10298      soname_spec='${libname}${release}${shared_ext}$major'
10299    fi
10300    shlibpath_var=LIBPATH
10301  fi
10302  ;;
10303
10304amigaos*)
10305  case $host_cpu in
10306  powerpc)
10307    # Since July 2007 AmigaOS4 officially supports .so libraries.
10308    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10309    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310    ;;
10311  m68k)
10312    library_names_spec='$libname.ixlibrary $libname.a'
10313    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10314    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10315    ;;
10316  esac
10317  ;;
10318
10319beos*)
10320  library_names_spec='${libname}${shared_ext}'
10321  dynamic_linker="$host_os ld.so"
10322  shlibpath_var=LIBRARY_PATH
10323  ;;
10324
10325bsdi[45]*)
10326  version_type=linux # correct to gnu/linux during the next big refactor
10327  need_version=no
10328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329  soname_spec='${libname}${release}${shared_ext}$major'
10330  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10331  shlibpath_var=LD_LIBRARY_PATH
10332  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10333  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10334  # the default ld.so.conf also contains /usr/contrib/lib and
10335  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10336  # libtool to hard-code these into programs
10337  ;;
10338
10339cygwin* | mingw* | pw32* | cegcc*)
10340  version_type=windows
10341  shrext_cmds=".dll"
10342  need_version=no
10343  need_lib_prefix=no
10344
10345  case $GCC,$cc_basename in
10346  yes,*)
10347    # gcc
10348    library_names_spec='$libname.dll.a'
10349    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10350    postinstall_cmds='base_file=`basename \${file}`~
10351      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10352      dldir=$destdir/`dirname \$dlpath`~
10353      test -d \$dldir || mkdir -p \$dldir~
10354      $install_prog $dir/$dlname \$dldir/$dlname~
10355      chmod a+x \$dldir/$dlname~
10356      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10357        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10358      fi'
10359    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10360      dlpath=$dir/\$dldll~
10361       $RM \$dlpath'
10362    shlibpath_overrides_runpath=yes
10363
10364    case $host_os in
10365    cygwin*)
10366      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10367      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10368
10369      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10370      ;;
10371    mingw* | cegcc*)
10372      # MinGW DLLs use traditional 'lib' prefix
10373      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10374      ;;
10375    pw32*)
10376      # pw32 DLLs use 'pw' prefix rather than 'lib'
10377      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10378      ;;
10379    esac
10380    dynamic_linker='Win32 ld.exe'
10381    ;;
10382
10383  *,cl*)
10384    # Native MSVC
10385    libname_spec='$name'
10386    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10387    library_names_spec='${libname}.dll.lib'
10388
10389    case $build_os in
10390    mingw*)
10391      sys_lib_search_path_spec=
10392      lt_save_ifs=$IFS
10393      IFS=';'
10394      for lt_path in $LIB
10395      do
10396        IFS=$lt_save_ifs
10397        # Let DOS variable expansion print the short 8.3 style file name.
10398        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10399        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10400      done
10401      IFS=$lt_save_ifs
10402      # Convert to MSYS style.
10403      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10404      ;;
10405    cygwin*)
10406      # Convert to unix form, then to dos form, then back to unix form
10407      # but this time dos style (no spaces!) so that the unix form looks
10408      # like /cygdrive/c/PROGRA~1:/cygdr...
10409      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10410      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10411      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10412      ;;
10413    *)
10414      sys_lib_search_path_spec="$LIB"
10415      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10416        # It is most probably a Windows format PATH.
10417        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10418      else
10419        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10420      fi
10421      # FIXME: find the short name or the path components, as spaces are
10422      # common. (e.g. "Program Files" -> "PROGRA~1")
10423      ;;
10424    esac
10425
10426    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10427    postinstall_cmds='base_file=`basename \${file}`~
10428      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10429      dldir=$destdir/`dirname \$dlpath`~
10430      test -d \$dldir || mkdir -p \$dldir~
10431      $install_prog $dir/$dlname \$dldir/$dlname'
10432    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10433      dlpath=$dir/\$dldll~
10434       $RM \$dlpath'
10435    shlibpath_overrides_runpath=yes
10436    dynamic_linker='Win32 link.exe'
10437    ;;
10438
10439  *)
10440    # Assume MSVC wrapper
10441    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10442    dynamic_linker='Win32 ld.exe'
10443    ;;
10444  esac
10445  # FIXME: first we should search . and the directory the executable is in
10446  shlibpath_var=PATH
10447  ;;
10448
10449darwin* | rhapsody*)
10450  dynamic_linker="$host_os dyld"
10451  version_type=darwin
10452  need_lib_prefix=no
10453  need_version=no
10454  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10455  soname_spec='${libname}${release}${major}$shared_ext'
10456  shlibpath_overrides_runpath=yes
10457  shlibpath_var=DYLD_LIBRARY_PATH
10458  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10459
10460  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10461  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10462  ;;
10463
10464dgux*)
10465  version_type=linux # correct to gnu/linux during the next big refactor
10466  need_lib_prefix=no
10467  need_version=no
10468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10469  soname_spec='${libname}${release}${shared_ext}$major'
10470  shlibpath_var=LD_LIBRARY_PATH
10471  ;;
10472
10473freebsd* | dragonfly*)
10474  # DragonFly does not have aout.  When/if they implement a new
10475  # versioning mechanism, adjust this.
10476  if test -x /usr/bin/objformat; then
10477    objformat=`/usr/bin/objformat`
10478  else
10479    case $host_os in
10480    freebsd[23].*) objformat=aout ;;
10481    *) objformat=elf ;;
10482    esac
10483  fi
10484  version_type=freebsd-$objformat
10485  case $version_type in
10486    freebsd-elf*)
10487      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10488      need_version=no
10489      need_lib_prefix=no
10490      ;;
10491    freebsd-*)
10492      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10493      need_version=yes
10494      ;;
10495  esac
10496  shlibpath_var=LD_LIBRARY_PATH
10497  case $host_os in
10498  freebsd2.*)
10499    shlibpath_overrides_runpath=yes
10500    ;;
10501  freebsd3.[01]* | freebsdelf3.[01]*)
10502    shlibpath_overrides_runpath=yes
10503    hardcode_into_libs=yes
10504    ;;
10505  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10506  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10507    shlibpath_overrides_runpath=no
10508    hardcode_into_libs=yes
10509    ;;
10510  *) # from 4.6 on, and DragonFly
10511    shlibpath_overrides_runpath=yes
10512    hardcode_into_libs=yes
10513    ;;
10514  esac
10515  ;;
10516
10517haiku*)
10518  version_type=linux # correct to gnu/linux during the next big refactor
10519  need_lib_prefix=no
10520  need_version=no
10521  dynamic_linker="$host_os runtime_loader"
10522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10523  soname_spec='${libname}${release}${shared_ext}$major'
10524  shlibpath_var=LIBRARY_PATH
10525  shlibpath_overrides_runpath=yes
10526  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10527  hardcode_into_libs=yes
10528  ;;
10529
10530hpux9* | hpux10* | hpux11*)
10531  # Give a soname corresponding to the major version so that dld.sl refuses to
10532  # link against other versions.
10533  version_type=sunos
10534  need_lib_prefix=no
10535  need_version=no
10536  case $host_cpu in
10537  ia64*)
10538    shrext_cmds='.so'
10539    hardcode_into_libs=yes
10540    dynamic_linker="$host_os dld.so"
10541    shlibpath_var=LD_LIBRARY_PATH
10542    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10543    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544    soname_spec='${libname}${release}${shared_ext}$major'
10545    if test "X$HPUX_IA64_MODE" = X32; then
10546      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10547    else
10548      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10549    fi
10550    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10551    ;;
10552  hppa*64*)
10553    shrext_cmds='.sl'
10554    hardcode_into_libs=yes
10555    dynamic_linker="$host_os dld.sl"
10556    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10557    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10558    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559    soname_spec='${libname}${release}${shared_ext}$major'
10560    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10561    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10562    ;;
10563  *)
10564    shrext_cmds='.sl'
10565    dynamic_linker="$host_os dld.sl"
10566    shlibpath_var=SHLIB_PATH
10567    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10568    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569    soname_spec='${libname}${release}${shared_ext}$major'
10570    ;;
10571  esac
10572  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10573  postinstall_cmds='chmod 555 $lib'
10574  # or fails outright, so override atomically:
10575  install_override_mode=555
10576  ;;
10577
10578interix[3-9]*)
10579  version_type=linux # correct to gnu/linux during the next big refactor
10580  need_lib_prefix=no
10581  need_version=no
10582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10583  soname_spec='${libname}${release}${shared_ext}$major'
10584  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10585  shlibpath_var=LD_LIBRARY_PATH
10586  shlibpath_overrides_runpath=no
10587  hardcode_into_libs=yes
10588  ;;
10589
10590irix5* | irix6* | nonstopux*)
10591  case $host_os in
10592    nonstopux*) version_type=nonstopux ;;
10593    *)
10594	if test "$lt_cv_prog_gnu_ld" = yes; then
10595		version_type=linux # correct to gnu/linux during the next big refactor
10596	else
10597		version_type=irix
10598	fi ;;
10599  esac
10600  need_lib_prefix=no
10601  need_version=no
10602  soname_spec='${libname}${release}${shared_ext}$major'
10603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10604  case $host_os in
10605  irix5* | nonstopux*)
10606    libsuff= shlibsuff=
10607    ;;
10608  *)
10609    case $LD in # libtool.m4 will add one of these switches to LD
10610    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10611      libsuff= shlibsuff= libmagic=32-bit;;
10612    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10613      libsuff=32 shlibsuff=N32 libmagic=N32;;
10614    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10615      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10616    *) libsuff= shlibsuff= libmagic=never-match;;
10617    esac
10618    ;;
10619  esac
10620  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10621  shlibpath_overrides_runpath=no
10622  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10623  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10624  hardcode_into_libs=yes
10625  ;;
10626
10627# No shared lib support for Linux oldld, aout, or coff.
10628linux*oldld* | linux*aout* | linux*coff*)
10629  dynamic_linker=no
10630  ;;
10631
10632# This must be glibc/ELF.
10633linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10634  version_type=linux # correct to gnu/linux during the next big refactor
10635  need_lib_prefix=no
10636  need_version=no
10637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638  soname_spec='${libname}${release}${shared_ext}$major'
10639  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10640  shlibpath_var=LD_LIBRARY_PATH
10641  shlibpath_overrides_runpath=no
10642
10643  # Some binutils ld are patched to set DT_RUNPATH
10644  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10645  $as_echo_n "(cached) " >&6
10646else
10647  lt_cv_shlibpath_overrides_runpath=no
10648    save_LDFLAGS=$LDFLAGS
10649    save_libdir=$libdir
10650    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10651	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10652    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653/* end confdefs.h.  */
10654
10655int
10656main ()
10657{
10658
10659  ;
10660  return 0;
10661}
10662_ACEOF
10663if ac_fn_c_try_link "$LINENO"; then :
10664  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10665  lt_cv_shlibpath_overrides_runpath=yes
10666fi
10667fi
10668rm -f core conftest.err conftest.$ac_objext \
10669    conftest$ac_exeext conftest.$ac_ext
10670    LDFLAGS=$save_LDFLAGS
10671    libdir=$save_libdir
10672
10673fi
10674
10675  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10676
10677  # This implies no fast_install, which is unacceptable.
10678  # Some rework will be needed to allow for fast_install
10679  # before this can be enabled.
10680  hardcode_into_libs=yes
10681
10682  # Append ld.so.conf contents to the search path
10683  if test -f /etc/ld.so.conf; then
10684    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' ' '`
10685    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10686  fi
10687
10688  # We used to test for /lib/ld.so.1 and disable shared libraries on
10689  # powerpc, because MkLinux only supported shared libraries with the
10690  # GNU dynamic linker.  Since this was broken with cross compilers,
10691  # most powerpc-linux boxes support dynamic linking these days and
10692  # people can always --disable-shared, the test was removed, and we
10693  # assume the GNU/Linux dynamic linker is in use.
10694  dynamic_linker='GNU/Linux ld.so'
10695  ;;
10696
10697netbsdelf*-gnu)
10698  version_type=linux
10699  need_lib_prefix=no
10700  need_version=no
10701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10702  soname_spec='${libname}${release}${shared_ext}$major'
10703  shlibpath_var=LD_LIBRARY_PATH
10704  shlibpath_overrides_runpath=no
10705  hardcode_into_libs=yes
10706  dynamic_linker='NetBSD ld.elf_so'
10707  ;;
10708
10709netbsd*)
10710  version_type=sunos
10711  need_lib_prefix=no
10712  need_version=no
10713  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10714    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10715    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10716    dynamic_linker='NetBSD (a.out) ld.so'
10717  else
10718    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10719    soname_spec='${libname}${release}${shared_ext}$major'
10720    dynamic_linker='NetBSD ld.elf_so'
10721  fi
10722  shlibpath_var=LD_LIBRARY_PATH
10723  shlibpath_overrides_runpath=yes
10724  hardcode_into_libs=yes
10725  ;;
10726
10727newsos6)
10728  version_type=linux # correct to gnu/linux during the next big refactor
10729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730  shlibpath_var=LD_LIBRARY_PATH
10731  shlibpath_overrides_runpath=yes
10732  ;;
10733
10734*nto* | *qnx*)
10735  version_type=qnx
10736  need_lib_prefix=no
10737  need_version=no
10738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739  soname_spec='${libname}${release}${shared_ext}$major'
10740  shlibpath_var=LD_LIBRARY_PATH
10741  shlibpath_overrides_runpath=no
10742  hardcode_into_libs=yes
10743  dynamic_linker='ldqnx.so'
10744  ;;
10745
10746openbsd*)
10747  version_type=sunos
10748  sys_lib_dlsearch_path_spec="/usr/lib"
10749  need_lib_prefix=no
10750  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10751  case $host_os in
10752    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10753    *)				need_version=no  ;;
10754  esac
10755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10756  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10757  shlibpath_var=LD_LIBRARY_PATH
10758  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10759    case $host_os in
10760      openbsd2.[89] | openbsd2.[89].*)
10761	shlibpath_overrides_runpath=no
10762	;;
10763      *)
10764	shlibpath_overrides_runpath=yes
10765	;;
10766      esac
10767  else
10768    shlibpath_overrides_runpath=yes
10769  fi
10770  ;;
10771
10772os2*)
10773  libname_spec='$name'
10774  shrext_cmds=".dll"
10775  need_lib_prefix=no
10776  library_names_spec='$libname${shared_ext} $libname.a'
10777  dynamic_linker='OS/2 ld.exe'
10778  shlibpath_var=LIBPATH
10779  ;;
10780
10781osf3* | osf4* | osf5*)
10782  version_type=osf
10783  need_lib_prefix=no
10784  need_version=no
10785  soname_spec='${libname}${release}${shared_ext}$major'
10786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787  shlibpath_var=LD_LIBRARY_PATH
10788  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10789  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10790  ;;
10791
10792rdos*)
10793  dynamic_linker=no
10794  ;;
10795
10796solaris*)
10797  version_type=linux # correct to gnu/linux during the next big refactor
10798  need_lib_prefix=no
10799  need_version=no
10800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801  soname_spec='${libname}${release}${shared_ext}$major'
10802  shlibpath_var=LD_LIBRARY_PATH
10803  shlibpath_overrides_runpath=yes
10804  hardcode_into_libs=yes
10805  # ldd complains unless libraries are executable
10806  postinstall_cmds='chmod +x $lib'
10807  ;;
10808
10809sunos4*)
10810  version_type=sunos
10811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10812  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10813  shlibpath_var=LD_LIBRARY_PATH
10814  shlibpath_overrides_runpath=yes
10815  if test "$with_gnu_ld" = yes; then
10816    need_lib_prefix=no
10817  fi
10818  need_version=yes
10819  ;;
10820
10821sysv4 | sysv4.3*)
10822  version_type=linux # correct to gnu/linux during the next big refactor
10823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824  soname_spec='${libname}${release}${shared_ext}$major'
10825  shlibpath_var=LD_LIBRARY_PATH
10826  case $host_vendor in
10827    sni)
10828      shlibpath_overrides_runpath=no
10829      need_lib_prefix=no
10830      runpath_var=LD_RUN_PATH
10831      ;;
10832    siemens)
10833      need_lib_prefix=no
10834      ;;
10835    motorola)
10836      need_lib_prefix=no
10837      need_version=no
10838      shlibpath_overrides_runpath=no
10839      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10840      ;;
10841  esac
10842  ;;
10843
10844sysv4*MP*)
10845  if test -d /usr/nec ;then
10846    version_type=linux # correct to gnu/linux during the next big refactor
10847    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10848    soname_spec='$libname${shared_ext}.$major'
10849    shlibpath_var=LD_LIBRARY_PATH
10850  fi
10851  ;;
10852
10853sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10854  version_type=freebsd-elf
10855  need_lib_prefix=no
10856  need_version=no
10857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10858  soname_spec='${libname}${release}${shared_ext}$major'
10859  shlibpath_var=LD_LIBRARY_PATH
10860  shlibpath_overrides_runpath=yes
10861  hardcode_into_libs=yes
10862  if test "$with_gnu_ld" = yes; then
10863    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10864  else
10865    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10866    case $host_os in
10867      sco3.2v5*)
10868        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10869	;;
10870    esac
10871  fi
10872  sys_lib_dlsearch_path_spec='/usr/lib'
10873  ;;
10874
10875tpf*)
10876  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10877  version_type=linux # correct to gnu/linux during the next big refactor
10878  need_lib_prefix=no
10879  need_version=no
10880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881  shlibpath_var=LD_LIBRARY_PATH
10882  shlibpath_overrides_runpath=no
10883  hardcode_into_libs=yes
10884  ;;
10885
10886uts4*)
10887  version_type=linux # correct to gnu/linux during the next big refactor
10888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889  soname_spec='${libname}${release}${shared_ext}$major'
10890  shlibpath_var=LD_LIBRARY_PATH
10891  ;;
10892
10893*)
10894  dynamic_linker=no
10895  ;;
10896esac
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10898$as_echo "$dynamic_linker" >&6; }
10899test "$dynamic_linker" = no && can_build_shared=no
10900
10901variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10902if test "$GCC" = yes; then
10903  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10904fi
10905
10906if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10907  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10908fi
10909if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10910  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10911fi
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11005$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11006hardcode_action=
11007if test -n "$hardcode_libdir_flag_spec" ||
11008   test -n "$runpath_var" ||
11009   test "X$hardcode_automatic" = "Xyes" ; then
11010
11011  # We can hardcode non-existent directories.
11012  if test "$hardcode_direct" != no &&
11013     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11014     # have to relink, otherwise we might link with an installed library
11015     # when we should be linking with a yet-to-be-installed one
11016     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11017     test "$hardcode_minus_L" != no; then
11018    # Linking always hardcodes the temporary library directory.
11019    hardcode_action=relink
11020  else
11021    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11022    hardcode_action=immediate
11023  fi
11024else
11025  # We cannot hardcode anything, or else we can only hardcode existing
11026  # directories.
11027  hardcode_action=unsupported
11028fi
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11030$as_echo "$hardcode_action" >&6; }
11031
11032if test "$hardcode_action" = relink ||
11033   test "$inherit_rpath" = yes; then
11034  # Fast installation is not supported
11035  enable_fast_install=no
11036elif test "$shlibpath_overrides_runpath" = yes ||
11037     test "$enable_shared" = no; then
11038  # Fast installation is not necessary
11039  enable_fast_install=needless
11040fi
11041
11042
11043
11044
11045
11046
11047  if test "x$enable_dlopen" != xyes; then
11048  enable_dlopen=unknown
11049  enable_dlopen_self=unknown
11050  enable_dlopen_self_static=unknown
11051else
11052  lt_cv_dlopen=no
11053  lt_cv_dlopen_libs=
11054
11055  case $host_os in
11056  beos*)
11057    lt_cv_dlopen="load_add_on"
11058    lt_cv_dlopen_libs=
11059    lt_cv_dlopen_self=yes
11060    ;;
11061
11062  mingw* | pw32* | cegcc*)
11063    lt_cv_dlopen="LoadLibrary"
11064    lt_cv_dlopen_libs=
11065    ;;
11066
11067  cygwin*)
11068    lt_cv_dlopen="dlopen"
11069    lt_cv_dlopen_libs=
11070    ;;
11071
11072  darwin*)
11073  # if libdl is installed we need to link against it
11074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11075$as_echo_n "checking for dlopen in -ldl... " >&6; }
11076if ${ac_cv_lib_dl_dlopen+:} false; then :
11077  $as_echo_n "(cached) " >&6
11078else
11079  ac_check_lib_save_LIBS=$LIBS
11080LIBS="-ldl  $LIBS"
11081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082/* end confdefs.h.  */
11083
11084/* Override any GCC internal prototype to avoid an error.
11085   Use char because int might match the return type of a GCC
11086   builtin and then its argument prototype would still apply.  */
11087#ifdef __cplusplus
11088extern "C"
11089#endif
11090char dlopen ();
11091int
11092main ()
11093{
11094return dlopen ();
11095  ;
11096  return 0;
11097}
11098_ACEOF
11099if ac_fn_c_try_link "$LINENO"; then :
11100  ac_cv_lib_dl_dlopen=yes
11101else
11102  ac_cv_lib_dl_dlopen=no
11103fi
11104rm -f core conftest.err conftest.$ac_objext \
11105    conftest$ac_exeext conftest.$ac_ext
11106LIBS=$ac_check_lib_save_LIBS
11107fi
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11109$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11110if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11111  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11112else
11113
11114    lt_cv_dlopen="dyld"
11115    lt_cv_dlopen_libs=
11116    lt_cv_dlopen_self=yes
11117
11118fi
11119
11120    ;;
11121
11122  *)
11123    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11124if test "x$ac_cv_func_shl_load" = xyes; then :
11125  lt_cv_dlopen="shl_load"
11126else
11127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11128$as_echo_n "checking for shl_load in -ldld... " >&6; }
11129if ${ac_cv_lib_dld_shl_load+:} false; then :
11130  $as_echo_n "(cached) " >&6
11131else
11132  ac_check_lib_save_LIBS=$LIBS
11133LIBS="-ldld  $LIBS"
11134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135/* end confdefs.h.  */
11136
11137/* Override any GCC internal prototype to avoid an error.
11138   Use char because int might match the return type of a GCC
11139   builtin and then its argument prototype would still apply.  */
11140#ifdef __cplusplus
11141extern "C"
11142#endif
11143char shl_load ();
11144int
11145main ()
11146{
11147return shl_load ();
11148  ;
11149  return 0;
11150}
11151_ACEOF
11152if ac_fn_c_try_link "$LINENO"; then :
11153  ac_cv_lib_dld_shl_load=yes
11154else
11155  ac_cv_lib_dld_shl_load=no
11156fi
11157rm -f core conftest.err conftest.$ac_objext \
11158    conftest$ac_exeext conftest.$ac_ext
11159LIBS=$ac_check_lib_save_LIBS
11160fi
11161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11162$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11163if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11164  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11165else
11166  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11167if test "x$ac_cv_func_dlopen" = xyes; then :
11168  lt_cv_dlopen="dlopen"
11169else
11170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11171$as_echo_n "checking for dlopen in -ldl... " >&6; }
11172if ${ac_cv_lib_dl_dlopen+:} false; then :
11173  $as_echo_n "(cached) " >&6
11174else
11175  ac_check_lib_save_LIBS=$LIBS
11176LIBS="-ldl  $LIBS"
11177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178/* end confdefs.h.  */
11179
11180/* Override any GCC internal prototype to avoid an error.
11181   Use char because int might match the return type of a GCC
11182   builtin and then its argument prototype would still apply.  */
11183#ifdef __cplusplus
11184extern "C"
11185#endif
11186char dlopen ();
11187int
11188main ()
11189{
11190return dlopen ();
11191  ;
11192  return 0;
11193}
11194_ACEOF
11195if ac_fn_c_try_link "$LINENO"; then :
11196  ac_cv_lib_dl_dlopen=yes
11197else
11198  ac_cv_lib_dl_dlopen=no
11199fi
11200rm -f core conftest.err conftest.$ac_objext \
11201    conftest$ac_exeext conftest.$ac_ext
11202LIBS=$ac_check_lib_save_LIBS
11203fi
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11205$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11206if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11207  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11208else
11209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11210$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11211if ${ac_cv_lib_svld_dlopen+:} false; then :
11212  $as_echo_n "(cached) " >&6
11213else
11214  ac_check_lib_save_LIBS=$LIBS
11215LIBS="-lsvld  $LIBS"
11216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217/* end confdefs.h.  */
11218
11219/* Override any GCC internal prototype to avoid an error.
11220   Use char because int might match the return type of a GCC
11221   builtin and then its argument prototype would still apply.  */
11222#ifdef __cplusplus
11223extern "C"
11224#endif
11225char dlopen ();
11226int
11227main ()
11228{
11229return dlopen ();
11230  ;
11231  return 0;
11232}
11233_ACEOF
11234if ac_fn_c_try_link "$LINENO"; then :
11235  ac_cv_lib_svld_dlopen=yes
11236else
11237  ac_cv_lib_svld_dlopen=no
11238fi
11239rm -f core conftest.err conftest.$ac_objext \
11240    conftest$ac_exeext conftest.$ac_ext
11241LIBS=$ac_check_lib_save_LIBS
11242fi
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11244$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11245if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11246  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11247else
11248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11249$as_echo_n "checking for dld_link in -ldld... " >&6; }
11250if ${ac_cv_lib_dld_dld_link+:} false; then :
11251  $as_echo_n "(cached) " >&6
11252else
11253  ac_check_lib_save_LIBS=$LIBS
11254LIBS="-ldld  $LIBS"
11255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256/* end confdefs.h.  */
11257
11258/* Override any GCC internal prototype to avoid an error.
11259   Use char because int might match the return type of a GCC
11260   builtin and then its argument prototype would still apply.  */
11261#ifdef __cplusplus
11262extern "C"
11263#endif
11264char dld_link ();
11265int
11266main ()
11267{
11268return dld_link ();
11269  ;
11270  return 0;
11271}
11272_ACEOF
11273if ac_fn_c_try_link "$LINENO"; then :
11274  ac_cv_lib_dld_dld_link=yes
11275else
11276  ac_cv_lib_dld_dld_link=no
11277fi
11278rm -f core conftest.err conftest.$ac_objext \
11279    conftest$ac_exeext conftest.$ac_ext
11280LIBS=$ac_check_lib_save_LIBS
11281fi
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11283$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11284if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11285  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11286fi
11287
11288
11289fi
11290
11291
11292fi
11293
11294
11295fi
11296
11297
11298fi
11299
11300
11301fi
11302
11303    ;;
11304  esac
11305
11306  if test "x$lt_cv_dlopen" != xno; then
11307    enable_dlopen=yes
11308  else
11309    enable_dlopen=no
11310  fi
11311
11312  case $lt_cv_dlopen in
11313  dlopen)
11314    save_CPPFLAGS="$CPPFLAGS"
11315    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11316
11317    save_LDFLAGS="$LDFLAGS"
11318    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11319
11320    save_LIBS="$LIBS"
11321    LIBS="$lt_cv_dlopen_libs $LIBS"
11322
11323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11324$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11325if ${lt_cv_dlopen_self+:} false; then :
11326  $as_echo_n "(cached) " >&6
11327else
11328  	  if test "$cross_compiling" = yes; then :
11329  lt_cv_dlopen_self=cross
11330else
11331  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11332  lt_status=$lt_dlunknown
11333  cat > conftest.$ac_ext <<_LT_EOF
11334#line $LINENO "configure"
11335#include "confdefs.h"
11336
11337#if HAVE_DLFCN_H
11338#include <dlfcn.h>
11339#endif
11340
11341#include <stdio.h>
11342
11343#ifdef RTLD_GLOBAL
11344#  define LT_DLGLOBAL		RTLD_GLOBAL
11345#else
11346#  ifdef DL_GLOBAL
11347#    define LT_DLGLOBAL		DL_GLOBAL
11348#  else
11349#    define LT_DLGLOBAL		0
11350#  endif
11351#endif
11352
11353/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11354   find out it does not work in some platform. */
11355#ifndef LT_DLLAZY_OR_NOW
11356#  ifdef RTLD_LAZY
11357#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11358#  else
11359#    ifdef DL_LAZY
11360#      define LT_DLLAZY_OR_NOW		DL_LAZY
11361#    else
11362#      ifdef RTLD_NOW
11363#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11364#      else
11365#        ifdef DL_NOW
11366#          define LT_DLLAZY_OR_NOW	DL_NOW
11367#        else
11368#          define LT_DLLAZY_OR_NOW	0
11369#        endif
11370#      endif
11371#    endif
11372#  endif
11373#endif
11374
11375/* When -fvisbility=hidden is used, assume the code has been annotated
11376   correspondingly for the symbols needed.  */
11377#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11378int fnord () __attribute__((visibility("default")));
11379#endif
11380
11381int fnord () { return 42; }
11382int main ()
11383{
11384  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11385  int status = $lt_dlunknown;
11386
11387  if (self)
11388    {
11389      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11390      else
11391        {
11392	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11393          else puts (dlerror ());
11394	}
11395      /* dlclose (self); */
11396    }
11397  else
11398    puts (dlerror ());
11399
11400  return status;
11401}
11402_LT_EOF
11403  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11404  (eval $ac_link) 2>&5
11405  ac_status=$?
11406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11407  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11408    (./conftest; exit; ) >&5 2>/dev/null
11409    lt_status=$?
11410    case x$lt_status in
11411      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11412      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11413      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11414    esac
11415  else :
11416    # compilation failed
11417    lt_cv_dlopen_self=no
11418  fi
11419fi
11420rm -fr conftest*
11421
11422
11423fi
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11425$as_echo "$lt_cv_dlopen_self" >&6; }
11426
11427    if test "x$lt_cv_dlopen_self" = xyes; then
11428      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11429      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11430$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11431if ${lt_cv_dlopen_self_static+:} false; then :
11432  $as_echo_n "(cached) " >&6
11433else
11434  	  if test "$cross_compiling" = yes; then :
11435  lt_cv_dlopen_self_static=cross
11436else
11437  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11438  lt_status=$lt_dlunknown
11439  cat > conftest.$ac_ext <<_LT_EOF
11440#line $LINENO "configure"
11441#include "confdefs.h"
11442
11443#if HAVE_DLFCN_H
11444#include <dlfcn.h>
11445#endif
11446
11447#include <stdio.h>
11448
11449#ifdef RTLD_GLOBAL
11450#  define LT_DLGLOBAL		RTLD_GLOBAL
11451#else
11452#  ifdef DL_GLOBAL
11453#    define LT_DLGLOBAL		DL_GLOBAL
11454#  else
11455#    define LT_DLGLOBAL		0
11456#  endif
11457#endif
11458
11459/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11460   find out it does not work in some platform. */
11461#ifndef LT_DLLAZY_OR_NOW
11462#  ifdef RTLD_LAZY
11463#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11464#  else
11465#    ifdef DL_LAZY
11466#      define LT_DLLAZY_OR_NOW		DL_LAZY
11467#    else
11468#      ifdef RTLD_NOW
11469#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11470#      else
11471#        ifdef DL_NOW
11472#          define LT_DLLAZY_OR_NOW	DL_NOW
11473#        else
11474#          define LT_DLLAZY_OR_NOW	0
11475#        endif
11476#      endif
11477#    endif
11478#  endif
11479#endif
11480
11481/* When -fvisbility=hidden is used, assume the code has been annotated
11482   correspondingly for the symbols needed.  */
11483#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11484int fnord () __attribute__((visibility("default")));
11485#endif
11486
11487int fnord () { return 42; }
11488int main ()
11489{
11490  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11491  int status = $lt_dlunknown;
11492
11493  if (self)
11494    {
11495      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11496      else
11497        {
11498	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11499          else puts (dlerror ());
11500	}
11501      /* dlclose (self); */
11502    }
11503  else
11504    puts (dlerror ());
11505
11506  return status;
11507}
11508_LT_EOF
11509  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11510  (eval $ac_link) 2>&5
11511  ac_status=$?
11512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11513  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11514    (./conftest; exit; ) >&5 2>/dev/null
11515    lt_status=$?
11516    case x$lt_status in
11517      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11518      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11519      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11520    esac
11521  else :
11522    # compilation failed
11523    lt_cv_dlopen_self_static=no
11524  fi
11525fi
11526rm -fr conftest*
11527
11528
11529fi
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11531$as_echo "$lt_cv_dlopen_self_static" >&6; }
11532    fi
11533
11534    CPPFLAGS="$save_CPPFLAGS"
11535    LDFLAGS="$save_LDFLAGS"
11536    LIBS="$save_LIBS"
11537    ;;
11538  esac
11539
11540  case $lt_cv_dlopen_self in
11541  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11542  *) enable_dlopen_self=unknown ;;
11543  esac
11544
11545  case $lt_cv_dlopen_self_static in
11546  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11547  *) enable_dlopen_self_static=unknown ;;
11548  esac
11549fi
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567striplib=
11568old_striplib=
11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11570$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11571if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11572  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11573  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11575$as_echo "yes" >&6; }
11576else
11577# FIXME - insert some real tests, host_os isn't really good enough
11578  case $host_os in
11579  darwin*)
11580    if test -n "$STRIP" ; then
11581      striplib="$STRIP -x"
11582      old_striplib="$STRIP -S"
11583      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11584$as_echo "yes" >&6; }
11585    else
11586      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587$as_echo "no" >&6; }
11588    fi
11589    ;;
11590  *)
11591    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592$as_echo "no" >&6; }
11593    ;;
11594  esac
11595fi
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608  # Report which library types will actually be built
11609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11610$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11612$as_echo "$can_build_shared" >&6; }
11613
11614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11615$as_echo_n "checking whether to build shared libraries... " >&6; }
11616  test "$can_build_shared" = "no" && enable_shared=no
11617
11618  # On AIX, shared libraries and static libraries use the same namespace, and
11619  # are all built from PIC.
11620  case $host_os in
11621  aix3*)
11622    test "$enable_shared" = yes && enable_static=no
11623    if test -n "$RANLIB"; then
11624      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11625      postinstall_cmds='$RANLIB $lib'
11626    fi
11627    ;;
11628
11629  aix[4-9]*)
11630    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11631      test "$enable_shared" = yes && enable_static=no
11632    fi
11633    ;;
11634  esac
11635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11636$as_echo "$enable_shared" >&6; }
11637
11638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11639$as_echo_n "checking whether to build static libraries... " >&6; }
11640  # Make sure either enable_shared or enable_static is yes.
11641  test "$enable_shared" = yes || enable_static=yes
11642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11643$as_echo "$enable_static" >&6; }
11644
11645
11646
11647
11648fi
11649ac_ext=c
11650ac_cpp='$CPP $CPPFLAGS'
11651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11653ac_compiler_gnu=$ac_cv_c_compiler_gnu
11654
11655CC="$lt_save_CC"
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671        ac_config_commands="$ac_config_commands libtool"
11672
11673
11674
11675
11676# Only expand once:
11677
11678
11679
11680# Specify a configuration header.
11681ac_config_headers="$ac_config_headers src/config.h"
11682
11683
11684ac_config_files="$ac_config_files src/libcw/libcw.pc"
11685
11686
11687# General checks for programs.
11688ac_ext=c
11689ac_cpp='$CPP $CPPFLAGS'
11690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11692ac_compiler_gnu=$ac_cv_c_compiler_gnu
11693if test -n "$ac_tool_prefix"; then
11694  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11695set dummy ${ac_tool_prefix}gcc; ac_word=$2
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697$as_echo_n "checking for $ac_word... " >&6; }
11698if ${ac_cv_prog_CC+:} false; then :
11699  $as_echo_n "(cached) " >&6
11700else
11701  if test -n "$CC"; then
11702  ac_cv_prog_CC="$CC" # Let the user override the test.
11703else
11704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705for as_dir in $PATH
11706do
11707  IFS=$as_save_IFS
11708  test -z "$as_dir" && as_dir=.
11709    for ac_exec_ext in '' $ac_executable_extensions; do
11710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713    break 2
11714  fi
11715done
11716  done
11717IFS=$as_save_IFS
11718
11719fi
11720fi
11721CC=$ac_cv_prog_CC
11722if test -n "$CC"; then
11723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11724$as_echo "$CC" >&6; }
11725else
11726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727$as_echo "no" >&6; }
11728fi
11729
11730
11731fi
11732if test -z "$ac_cv_prog_CC"; then
11733  ac_ct_CC=$CC
11734  # Extract the first word of "gcc", so it can be a program name with args.
11735set dummy gcc; ac_word=$2
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737$as_echo_n "checking for $ac_word... " >&6; }
11738if ${ac_cv_prog_ac_ct_CC+:} false; then :
11739  $as_echo_n "(cached) " >&6
11740else
11741  if test -n "$ac_ct_CC"; then
11742  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11743else
11744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745for as_dir in $PATH
11746do
11747  IFS=$as_save_IFS
11748  test -z "$as_dir" && as_dir=.
11749    for ac_exec_ext in '' $ac_executable_extensions; do
11750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11751    ac_cv_prog_ac_ct_CC="gcc"
11752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753    break 2
11754  fi
11755done
11756  done
11757IFS=$as_save_IFS
11758
11759fi
11760fi
11761ac_ct_CC=$ac_cv_prog_ac_ct_CC
11762if test -n "$ac_ct_CC"; then
11763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11764$as_echo "$ac_ct_CC" >&6; }
11765else
11766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767$as_echo "no" >&6; }
11768fi
11769
11770  if test "x$ac_ct_CC" = x; then
11771    CC=""
11772  else
11773    case $cross_compiling:$ac_tool_warned in
11774yes:)
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11777ac_tool_warned=yes ;;
11778esac
11779    CC=$ac_ct_CC
11780  fi
11781else
11782  CC="$ac_cv_prog_CC"
11783fi
11784
11785if test -z "$CC"; then
11786          if test -n "$ac_tool_prefix"; then
11787    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11788set dummy ${ac_tool_prefix}cc; ac_word=$2
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790$as_echo_n "checking for $ac_word... " >&6; }
11791if ${ac_cv_prog_CC+:} false; then :
11792  $as_echo_n "(cached) " >&6
11793else
11794  if test -n "$CC"; then
11795  ac_cv_prog_CC="$CC" # Let the user override the test.
11796else
11797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798for as_dir in $PATH
11799do
11800  IFS=$as_save_IFS
11801  test -z "$as_dir" && as_dir=.
11802    for ac_exec_ext in '' $ac_executable_extensions; do
11803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11804    ac_cv_prog_CC="${ac_tool_prefix}cc"
11805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806    break 2
11807  fi
11808done
11809  done
11810IFS=$as_save_IFS
11811
11812fi
11813fi
11814CC=$ac_cv_prog_CC
11815if test -n "$CC"; then
11816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11817$as_echo "$CC" >&6; }
11818else
11819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820$as_echo "no" >&6; }
11821fi
11822
11823
11824  fi
11825fi
11826if test -z "$CC"; then
11827  # Extract the first word of "cc", so it can be a program name with args.
11828set dummy cc; ac_word=$2
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830$as_echo_n "checking for $ac_word... " >&6; }
11831if ${ac_cv_prog_CC+:} false; then :
11832  $as_echo_n "(cached) " >&6
11833else
11834  if test -n "$CC"; then
11835  ac_cv_prog_CC="$CC" # Let the user override the test.
11836else
11837  ac_prog_rejected=no
11838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841  IFS=$as_save_IFS
11842  test -z "$as_dir" && as_dir=.
11843    for ac_exec_ext in '' $ac_executable_extensions; do
11844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11846       ac_prog_rejected=yes
11847       continue
11848     fi
11849    ac_cv_prog_CC="cc"
11850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851    break 2
11852  fi
11853done
11854  done
11855IFS=$as_save_IFS
11856
11857if test $ac_prog_rejected = yes; then
11858  # We found a bogon in the path, so make sure we never use it.
11859  set dummy $ac_cv_prog_CC
11860  shift
11861  if test $# != 0; then
11862    # We chose a different compiler from the bogus one.
11863    # However, it has the same basename, so the bogon will be chosen
11864    # first if we set CC to just the basename; use the full file name.
11865    shift
11866    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11867  fi
11868fi
11869fi
11870fi
11871CC=$ac_cv_prog_CC
11872if test -n "$CC"; then
11873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11874$as_echo "$CC" >&6; }
11875else
11876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877$as_echo "no" >&6; }
11878fi
11879
11880
11881fi
11882if test -z "$CC"; then
11883  if test -n "$ac_tool_prefix"; then
11884  for ac_prog in cl.exe
11885  do
11886    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11887set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889$as_echo_n "checking for $ac_word... " >&6; }
11890if ${ac_cv_prog_CC+:} false; then :
11891  $as_echo_n "(cached) " >&6
11892else
11893  if test -n "$CC"; then
11894  ac_cv_prog_CC="$CC" # Let the user override the test.
11895else
11896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897for as_dir in $PATH
11898do
11899  IFS=$as_save_IFS
11900  test -z "$as_dir" && as_dir=.
11901    for ac_exec_ext in '' $ac_executable_extensions; do
11902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11903    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11905    break 2
11906  fi
11907done
11908  done
11909IFS=$as_save_IFS
11910
11911fi
11912fi
11913CC=$ac_cv_prog_CC
11914if test -n "$CC"; then
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11916$as_echo "$CC" >&6; }
11917else
11918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919$as_echo "no" >&6; }
11920fi
11921
11922
11923    test -n "$CC" && break
11924  done
11925fi
11926if test -z "$CC"; then
11927  ac_ct_CC=$CC
11928  for ac_prog in cl.exe
11929do
11930  # Extract the first word of "$ac_prog", so it can be a program name with args.
11931set dummy $ac_prog; ac_word=$2
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933$as_echo_n "checking for $ac_word... " >&6; }
11934if ${ac_cv_prog_ac_ct_CC+:} false; then :
11935  $as_echo_n "(cached) " >&6
11936else
11937  if test -n "$ac_ct_CC"; then
11938  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11939else
11940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941for as_dir in $PATH
11942do
11943  IFS=$as_save_IFS
11944  test -z "$as_dir" && as_dir=.
11945    for ac_exec_ext in '' $ac_executable_extensions; do
11946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11947    ac_cv_prog_ac_ct_CC="$ac_prog"
11948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949    break 2
11950  fi
11951done
11952  done
11953IFS=$as_save_IFS
11954
11955fi
11956fi
11957ac_ct_CC=$ac_cv_prog_ac_ct_CC
11958if test -n "$ac_ct_CC"; then
11959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11960$as_echo "$ac_ct_CC" >&6; }
11961else
11962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963$as_echo "no" >&6; }
11964fi
11965
11966
11967  test -n "$ac_ct_CC" && break
11968done
11969
11970  if test "x$ac_ct_CC" = x; then
11971    CC=""
11972  else
11973    case $cross_compiling:$ac_tool_warned in
11974yes:)
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11977ac_tool_warned=yes ;;
11978esac
11979    CC=$ac_ct_CC
11980  fi
11981fi
11982
11983fi
11984
11985
11986test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11988as_fn_error $? "no acceptable C compiler found in \$PATH
11989See \`config.log' for more details" "$LINENO" 5; }
11990
11991# Provide some information about the compiler.
11992$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11993set X $ac_compile
11994ac_compiler=$2
11995for ac_option in --version -v -V -qversion; do
11996  { { ac_try="$ac_compiler $ac_option >&5"
11997case "(($ac_try" in
11998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999  *) ac_try_echo=$ac_try;;
12000esac
12001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12002$as_echo "$ac_try_echo"; } >&5
12003  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12004  ac_status=$?
12005  if test -s conftest.err; then
12006    sed '10a\
12007... rest of stderr output deleted ...
12008         10q' conftest.err >conftest.er1
12009    cat conftest.er1 >&5
12010  fi
12011  rm -f conftest.er1 conftest.err
12012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013  test $ac_status = 0; }
12014done
12015
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12017$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12018if ${ac_cv_c_compiler_gnu+:} false; then :
12019  $as_echo_n "(cached) " >&6
12020else
12021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022/* end confdefs.h.  */
12023
12024int
12025main ()
12026{
12027#ifndef __GNUC__
12028       choke me
12029#endif
12030
12031  ;
12032  return 0;
12033}
12034_ACEOF
12035if ac_fn_c_try_compile "$LINENO"; then :
12036  ac_compiler_gnu=yes
12037else
12038  ac_compiler_gnu=no
12039fi
12040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041ac_cv_c_compiler_gnu=$ac_compiler_gnu
12042
12043fi
12044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12045$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12046if test $ac_compiler_gnu = yes; then
12047  GCC=yes
12048else
12049  GCC=
12050fi
12051ac_test_CFLAGS=${CFLAGS+set}
12052ac_save_CFLAGS=$CFLAGS
12053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12054$as_echo_n "checking whether $CC accepts -g... " >&6; }
12055if ${ac_cv_prog_cc_g+:} false; then :
12056  $as_echo_n "(cached) " >&6
12057else
12058  ac_save_c_werror_flag=$ac_c_werror_flag
12059   ac_c_werror_flag=yes
12060   ac_cv_prog_cc_g=no
12061   CFLAGS="-g"
12062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063/* end confdefs.h.  */
12064
12065int
12066main ()
12067{
12068
12069  ;
12070  return 0;
12071}
12072_ACEOF
12073if ac_fn_c_try_compile "$LINENO"; then :
12074  ac_cv_prog_cc_g=yes
12075else
12076  CFLAGS=""
12077      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078/* end confdefs.h.  */
12079
12080int
12081main ()
12082{
12083
12084  ;
12085  return 0;
12086}
12087_ACEOF
12088if ac_fn_c_try_compile "$LINENO"; then :
12089
12090else
12091  ac_c_werror_flag=$ac_save_c_werror_flag
12092	 CFLAGS="-g"
12093	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094/* end confdefs.h.  */
12095
12096int
12097main ()
12098{
12099
12100  ;
12101  return 0;
12102}
12103_ACEOF
12104if ac_fn_c_try_compile "$LINENO"; then :
12105  ac_cv_prog_cc_g=yes
12106fi
12107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108fi
12109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110fi
12111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112   ac_c_werror_flag=$ac_save_c_werror_flag
12113fi
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12115$as_echo "$ac_cv_prog_cc_g" >&6; }
12116if test "$ac_test_CFLAGS" = set; then
12117  CFLAGS=$ac_save_CFLAGS
12118elif test $ac_cv_prog_cc_g = yes; then
12119  if test "$GCC" = yes; then
12120    CFLAGS="-g -O2"
12121  else
12122    CFLAGS="-g"
12123  fi
12124else
12125  if test "$GCC" = yes; then
12126    CFLAGS="-O2"
12127  else
12128    CFLAGS=
12129  fi
12130fi
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12132$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12133if ${ac_cv_prog_cc_c89+:} false; then :
12134  $as_echo_n "(cached) " >&6
12135else
12136  ac_cv_prog_cc_c89=no
12137ac_save_CC=$CC
12138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139/* end confdefs.h.  */
12140#include <stdarg.h>
12141#include <stdio.h>
12142struct stat;
12143/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12144struct buf { int x; };
12145FILE * (*rcsopen) (struct buf *, struct stat *, int);
12146static char *e (p, i)
12147     char **p;
12148     int i;
12149{
12150  return p[i];
12151}
12152static char *f (char * (*g) (char **, int), char **p, ...)
12153{
12154  char *s;
12155  va_list v;
12156  va_start (v,p);
12157  s = g (p, va_arg (v,int));
12158  va_end (v);
12159  return s;
12160}
12161
12162/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12163   function prototypes and stuff, but not '\xHH' hex character constants.
12164   These don't provoke an error unfortunately, instead are silently treated
12165   as 'x'.  The following induces an error, until -std is added to get
12166   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12167   array size at least.  It's necessary to write '\x00'==0 to get something
12168   that's true only with -std.  */
12169int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12170
12171/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12172   inside strings and character constants.  */
12173#define FOO(x) 'x'
12174int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12175
12176int test (int i, double x);
12177struct s1 {int (*f) (int a);};
12178struct s2 {int (*f) (double a);};
12179int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12180int argc;
12181char **argv;
12182int
12183main ()
12184{
12185return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12186  ;
12187  return 0;
12188}
12189_ACEOF
12190for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12191	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12192do
12193  CC="$ac_save_CC $ac_arg"
12194  if ac_fn_c_try_compile "$LINENO"; then :
12195  ac_cv_prog_cc_c89=$ac_arg
12196fi
12197rm -f core conftest.err conftest.$ac_objext
12198  test "x$ac_cv_prog_cc_c89" != "xno" && break
12199done
12200rm -f conftest.$ac_ext
12201CC=$ac_save_CC
12202
12203fi
12204# AC_CACHE_VAL
12205case "x$ac_cv_prog_cc_c89" in
12206  x)
12207    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12208$as_echo "none needed" >&6; } ;;
12209  xno)
12210    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12211$as_echo "unsupported" >&6; } ;;
12212  *)
12213    CC="$CC $ac_cv_prog_cc_c89"
12214    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12215$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12216esac
12217if test "x$ac_cv_prog_cc_c89" != xno; then :
12218
12219fi
12220
12221ac_ext=c
12222ac_cpp='$CPP $CPPFLAGS'
12223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12225ac_compiler_gnu=$ac_cv_c_compiler_gnu
12226
12227ac_ext=c
12228ac_cpp='$CPP $CPPFLAGS'
12229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12231ac_compiler_gnu=$ac_cv_c_compiler_gnu
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12233$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12234if ${am_cv_prog_cc_c_o+:} false; then :
12235  $as_echo_n "(cached) " >&6
12236else
12237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238/* end confdefs.h.  */
12239
12240int
12241main ()
12242{
12243
12244  ;
12245  return 0;
12246}
12247_ACEOF
12248  # Make sure it works both with $CC and with simple cc.
12249  # Following AC_PROG_CC_C_O, we do the test twice because some
12250  # compilers refuse to overwrite an existing .o file with -o,
12251  # though they will create one.
12252  am_cv_prog_cc_c_o=yes
12253  for am_i in 1 2; do
12254    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12255   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); } \
12259         && test -f conftest2.$ac_objext; then
12260      : OK
12261    else
12262      am_cv_prog_cc_c_o=no
12263      break
12264    fi
12265  done
12266  rm -f core conftest*
12267  unset am_i
12268fi
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12270$as_echo "$am_cv_prog_cc_c_o" >&6; }
12271if test "$am_cv_prog_cc_c_o" != yes; then
12272   # Losing compiler, so override with the script.
12273   # FIXME: It is wrong to rewrite CC.
12274   # But if we don't then we get into trouble of one sort or another.
12275   # A longer-term fix would be to have automake use am__CC in this case,
12276   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12277   CC="$am_aux_dir/compile $CC"
12278fi
12279ac_ext=c
12280ac_cpp='$CPP $CPPFLAGS'
12281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12283ac_compiler_gnu=$ac_cv_c_compiler_gnu
12284
12285
12286depcc="$CC"   am_compiler_list=
12287
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12289$as_echo_n "checking dependency style of $depcc... " >&6; }
12290if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12291  $as_echo_n "(cached) " >&6
12292else
12293  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12294  # We make a subdir and do the tests there.  Otherwise we can end up
12295  # making bogus files that we don't know about and never remove.  For
12296  # instance it was reported that on HP-UX the gcc test will end up
12297  # making a dummy file named 'D' -- because '-MD' means "put the output
12298  # in D".
12299  rm -rf conftest.dir
12300  mkdir conftest.dir
12301  # Copy depcomp to subdir because otherwise we won't find it if we're
12302  # using a relative directory.
12303  cp "$am_depcomp" conftest.dir
12304  cd conftest.dir
12305  # We will build objects and dependencies in a subdirectory because
12306  # it helps to detect inapplicable dependency modes.  For instance
12307  # both Tru64's cc and ICC support -MD to output dependencies as a
12308  # side effect of compilation, but ICC will put the dependencies in
12309  # the current directory while Tru64 will put them in the object
12310  # directory.
12311  mkdir sub
12312
12313  am_cv_CC_dependencies_compiler_type=none
12314  if test "$am_compiler_list" = ""; then
12315     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12316  fi
12317  am__universal=false
12318  case " $depcc " in #(
12319     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12320     esac
12321
12322  for depmode in $am_compiler_list; do
12323    # Setup a source with many dependencies, because some compilers
12324    # like to wrap large dependency lists on column 80 (with \), and
12325    # we should not choose a depcomp mode which is confused by this.
12326    #
12327    # We need to recreate these files for each test, as the compiler may
12328    # overwrite some of them when testing with obscure command lines.
12329    # This happens at least with the AIX C compiler.
12330    : > sub/conftest.c
12331    for i in 1 2 3 4 5 6; do
12332      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12333      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12334      # Solaris 10 /bin/sh.
12335      echo '/* dummy */' > sub/conftst$i.h
12336    done
12337    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12338
12339    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12340    # mode.  It turns out that the SunPro C++ compiler does not properly
12341    # handle '-M -o', and we need to detect this.  Also, some Intel
12342    # versions had trouble with output in subdirs.
12343    am__obj=sub/conftest.${OBJEXT-o}
12344    am__minus_obj="-o $am__obj"
12345    case $depmode in
12346    gcc)
12347      # This depmode causes a compiler race in universal mode.
12348      test "$am__universal" = false || continue
12349      ;;
12350    nosideeffect)
12351      # After this tag, mechanisms are not by side-effect, so they'll
12352      # only be used when explicitly requested.
12353      if test "x$enable_dependency_tracking" = xyes; then
12354	continue
12355      else
12356	break
12357      fi
12358      ;;
12359    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12360      # This compiler won't grok '-c -o', but also, the minuso test has
12361      # not run yet.  These depmodes are late enough in the game, and
12362      # so weak that their functioning should not be impacted.
12363      am__obj=conftest.${OBJEXT-o}
12364      am__minus_obj=
12365      ;;
12366    none) break ;;
12367    esac
12368    if depmode=$depmode \
12369       source=sub/conftest.c object=$am__obj \
12370       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12371       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12372         >/dev/null 2>conftest.err &&
12373       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12374       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12375       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12376       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12377      # icc doesn't choke on unknown options, it will just issue warnings
12378      # or remarks (even with -Werror).  So we grep stderr for any message
12379      # that says an option was ignored or not supported.
12380      # When given -MP, icc 7.0 and 7.1 complain thusly:
12381      #   icc: Command line warning: ignoring option '-M'; no argument required
12382      # The diagnosis changed in icc 8.0:
12383      #   icc: Command line remark: option '-MP' not supported
12384      if (grep 'ignoring option' conftest.err ||
12385          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12386        am_cv_CC_dependencies_compiler_type=$depmode
12387        break
12388      fi
12389    fi
12390  done
12391
12392  cd ..
12393  rm -rf conftest.dir
12394else
12395  am_cv_CC_dependencies_compiler_type=none
12396fi
12397
12398fi
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12400$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12401CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12402
12403 if
12404  test "x$enable_dependency_tracking" != xno \
12405  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12406  am__fastdepCC_TRUE=
12407  am__fastdepCC_FALSE='#'
12408else
12409  am__fastdepCC_TRUE='#'
12410  am__fastdepCC_FALSE=
12411fi
12412
12413
12414ac_ext=cpp
12415ac_cpp='$CXXCPP $CPPFLAGS'
12416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12419if test -z "$CXX"; then
12420  if test -n "$CCC"; then
12421    CXX=$CCC
12422  else
12423    if test -n "$ac_tool_prefix"; then
12424  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12425  do
12426    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12427set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429$as_echo_n "checking for $ac_word... " >&6; }
12430if ${ac_cv_prog_CXX+:} false; then :
12431  $as_echo_n "(cached) " >&6
12432else
12433  if test -n "$CXX"; then
12434  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12435else
12436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437for as_dir in $PATH
12438do
12439  IFS=$as_save_IFS
12440  test -z "$as_dir" && as_dir=.
12441    for ac_exec_ext in '' $ac_executable_extensions; do
12442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12443    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445    break 2
12446  fi
12447done
12448  done
12449IFS=$as_save_IFS
12450
12451fi
12452fi
12453CXX=$ac_cv_prog_CXX
12454if test -n "$CXX"; then
12455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12456$as_echo "$CXX" >&6; }
12457else
12458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459$as_echo "no" >&6; }
12460fi
12461
12462
12463    test -n "$CXX" && break
12464  done
12465fi
12466if test -z "$CXX"; then
12467  ac_ct_CXX=$CXX
12468  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12469do
12470  # Extract the first word of "$ac_prog", so it can be a program name with args.
12471set dummy $ac_prog; ac_word=$2
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473$as_echo_n "checking for $ac_word... " >&6; }
12474if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12475  $as_echo_n "(cached) " >&6
12476else
12477  if test -n "$ac_ct_CXX"; then
12478  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12479else
12480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481for as_dir in $PATH
12482do
12483  IFS=$as_save_IFS
12484  test -z "$as_dir" && as_dir=.
12485    for ac_exec_ext in '' $ac_executable_extensions; do
12486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12487    ac_cv_prog_ac_ct_CXX="$ac_prog"
12488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489    break 2
12490  fi
12491done
12492  done
12493IFS=$as_save_IFS
12494
12495fi
12496fi
12497ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12498if test -n "$ac_ct_CXX"; then
12499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12500$as_echo "$ac_ct_CXX" >&6; }
12501else
12502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
12504fi
12505
12506
12507  test -n "$ac_ct_CXX" && break
12508done
12509
12510  if test "x$ac_ct_CXX" = x; then
12511    CXX="g++"
12512  else
12513    case $cross_compiling:$ac_tool_warned in
12514yes:)
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12517ac_tool_warned=yes ;;
12518esac
12519    CXX=$ac_ct_CXX
12520  fi
12521fi
12522
12523  fi
12524fi
12525# Provide some information about the compiler.
12526$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12527set X $ac_compile
12528ac_compiler=$2
12529for ac_option in --version -v -V -qversion; do
12530  { { ac_try="$ac_compiler $ac_option >&5"
12531case "(($ac_try" in
12532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533  *) ac_try_echo=$ac_try;;
12534esac
12535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12536$as_echo "$ac_try_echo"; } >&5
12537  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12538  ac_status=$?
12539  if test -s conftest.err; then
12540    sed '10a\
12541... rest of stderr output deleted ...
12542         10q' conftest.err >conftest.er1
12543    cat conftest.er1 >&5
12544  fi
12545  rm -f conftest.er1 conftest.err
12546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12547  test $ac_status = 0; }
12548done
12549
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12551$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12552if ${ac_cv_cxx_compiler_gnu+:} false; then :
12553  $as_echo_n "(cached) " >&6
12554else
12555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556/* end confdefs.h.  */
12557
12558int
12559main ()
12560{
12561#ifndef __GNUC__
12562       choke me
12563#endif
12564
12565  ;
12566  return 0;
12567}
12568_ACEOF
12569if ac_fn_cxx_try_compile "$LINENO"; then :
12570  ac_compiler_gnu=yes
12571else
12572  ac_compiler_gnu=no
12573fi
12574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12576
12577fi
12578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12579$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12580if test $ac_compiler_gnu = yes; then
12581  GXX=yes
12582else
12583  GXX=
12584fi
12585ac_test_CXXFLAGS=${CXXFLAGS+set}
12586ac_save_CXXFLAGS=$CXXFLAGS
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12588$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12589if ${ac_cv_prog_cxx_g+:} false; then :
12590  $as_echo_n "(cached) " >&6
12591else
12592  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12593   ac_cxx_werror_flag=yes
12594   ac_cv_prog_cxx_g=no
12595   CXXFLAGS="-g"
12596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597/* end confdefs.h.  */
12598
12599int
12600main ()
12601{
12602
12603  ;
12604  return 0;
12605}
12606_ACEOF
12607if ac_fn_cxx_try_compile "$LINENO"; then :
12608  ac_cv_prog_cxx_g=yes
12609else
12610  CXXFLAGS=""
12611      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612/* end confdefs.h.  */
12613
12614int
12615main ()
12616{
12617
12618  ;
12619  return 0;
12620}
12621_ACEOF
12622if ac_fn_cxx_try_compile "$LINENO"; then :
12623
12624else
12625  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12626	 CXXFLAGS="-g"
12627	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628/* end confdefs.h.  */
12629
12630int
12631main ()
12632{
12633
12634  ;
12635  return 0;
12636}
12637_ACEOF
12638if ac_fn_cxx_try_compile "$LINENO"; then :
12639  ac_cv_prog_cxx_g=yes
12640fi
12641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642fi
12643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644fi
12645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12647fi
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12649$as_echo "$ac_cv_prog_cxx_g" >&6; }
12650if test "$ac_test_CXXFLAGS" = set; then
12651  CXXFLAGS=$ac_save_CXXFLAGS
12652elif test $ac_cv_prog_cxx_g = yes; then
12653  if test "$GXX" = yes; then
12654    CXXFLAGS="-g -O2"
12655  else
12656    CXXFLAGS="-g"
12657  fi
12658else
12659  if test "$GXX" = yes; then
12660    CXXFLAGS="-O2"
12661  else
12662    CXXFLAGS=
12663  fi
12664fi
12665ac_ext=c
12666ac_cpp='$CPP $CPPFLAGS'
12667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12669ac_compiler_gnu=$ac_cv_c_compiler_gnu
12670
12671depcc="$CXX"  am_compiler_list=
12672
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12674$as_echo_n "checking dependency style of $depcc... " >&6; }
12675if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12676  $as_echo_n "(cached) " >&6
12677else
12678  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12679  # We make a subdir and do the tests there.  Otherwise we can end up
12680  # making bogus files that we don't know about and never remove.  For
12681  # instance it was reported that on HP-UX the gcc test will end up
12682  # making a dummy file named 'D' -- because '-MD' means "put the output
12683  # in D".
12684  rm -rf conftest.dir
12685  mkdir conftest.dir
12686  # Copy depcomp to subdir because otherwise we won't find it if we're
12687  # using a relative directory.
12688  cp "$am_depcomp" conftest.dir
12689  cd conftest.dir
12690  # We will build objects and dependencies in a subdirectory because
12691  # it helps to detect inapplicable dependency modes.  For instance
12692  # both Tru64's cc and ICC support -MD to output dependencies as a
12693  # side effect of compilation, but ICC will put the dependencies in
12694  # the current directory while Tru64 will put them in the object
12695  # directory.
12696  mkdir sub
12697
12698  am_cv_CXX_dependencies_compiler_type=none
12699  if test "$am_compiler_list" = ""; then
12700     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12701  fi
12702  am__universal=false
12703  case " $depcc " in #(
12704     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12705     esac
12706
12707  for depmode in $am_compiler_list; do
12708    # Setup a source with many dependencies, because some compilers
12709    # like to wrap large dependency lists on column 80 (with \), and
12710    # we should not choose a depcomp mode which is confused by this.
12711    #
12712    # We need to recreate these files for each test, as the compiler may
12713    # overwrite some of them when testing with obscure command lines.
12714    # This happens at least with the AIX C compiler.
12715    : > sub/conftest.c
12716    for i in 1 2 3 4 5 6; do
12717      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12718      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12719      # Solaris 10 /bin/sh.
12720      echo '/* dummy */' > sub/conftst$i.h
12721    done
12722    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12723
12724    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12725    # mode.  It turns out that the SunPro C++ compiler does not properly
12726    # handle '-M -o', and we need to detect this.  Also, some Intel
12727    # versions had trouble with output in subdirs.
12728    am__obj=sub/conftest.${OBJEXT-o}
12729    am__minus_obj="-o $am__obj"
12730    case $depmode in
12731    gcc)
12732      # This depmode causes a compiler race in universal mode.
12733      test "$am__universal" = false || continue
12734      ;;
12735    nosideeffect)
12736      # After this tag, mechanisms are not by side-effect, so they'll
12737      # only be used when explicitly requested.
12738      if test "x$enable_dependency_tracking" = xyes; then
12739	continue
12740      else
12741	break
12742      fi
12743      ;;
12744    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12745      # This compiler won't grok '-c -o', but also, the minuso test has
12746      # not run yet.  These depmodes are late enough in the game, and
12747      # so weak that their functioning should not be impacted.
12748      am__obj=conftest.${OBJEXT-o}
12749      am__minus_obj=
12750      ;;
12751    none) break ;;
12752    esac
12753    if depmode=$depmode \
12754       source=sub/conftest.c object=$am__obj \
12755       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12756       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12757         >/dev/null 2>conftest.err &&
12758       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12759       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12760       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12761       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12762      # icc doesn't choke on unknown options, it will just issue warnings
12763      # or remarks (even with -Werror).  So we grep stderr for any message
12764      # that says an option was ignored or not supported.
12765      # When given -MP, icc 7.0 and 7.1 complain thusly:
12766      #   icc: Command line warning: ignoring option '-M'; no argument required
12767      # The diagnosis changed in icc 8.0:
12768      #   icc: Command line remark: option '-MP' not supported
12769      if (grep 'ignoring option' conftest.err ||
12770          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12771        am_cv_CXX_dependencies_compiler_type=$depmode
12772        break
12773      fi
12774    fi
12775  done
12776
12777  cd ..
12778  rm -rf conftest.dir
12779else
12780  am_cv_CXX_dependencies_compiler_type=none
12781fi
12782
12783fi
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12785$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12786CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12787
12788 if
12789  test "x$enable_dependency_tracking" != xno \
12790  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12791  am__fastdepCXX_TRUE=
12792  am__fastdepCXX_FALSE='#'
12793else
12794  am__fastdepCXX_TRUE='#'
12795  am__fastdepCXX_FALSE=
12796fi
12797
12798
12799
12800
12801func_stripname_cnf ()
12802{
12803  case ${2} in
12804  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12805  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12806  esac
12807} # func_stripname_cnf
12808
12809      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12810    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12811    (test "X$CXX" != "Xg++"))) ; then
12812  ac_ext=cpp
12813ac_cpp='$CXXCPP $CPPFLAGS'
12814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12818$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12819if test -z "$CXXCPP"; then
12820  if ${ac_cv_prog_CXXCPP+:} false; then :
12821  $as_echo_n "(cached) " >&6
12822else
12823      # Double quotes because CXXCPP needs to be expanded
12824    for CXXCPP in "$CXX -E" "/lib/cpp"
12825    do
12826      ac_preproc_ok=false
12827for ac_cxx_preproc_warn_flag in '' yes
12828do
12829  # Use a header file that comes with gcc, so configuring glibc
12830  # with a fresh cross-compiler works.
12831  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12832  # <limits.h> exists even on freestanding compilers.
12833  # On the NeXT, cc -E runs the code through the compiler's parser,
12834  # not just through cpp. "Syntax error" is here to catch this case.
12835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836/* end confdefs.h.  */
12837#ifdef __STDC__
12838# include <limits.h>
12839#else
12840# include <assert.h>
12841#endif
12842		     Syntax error
12843_ACEOF
12844if ac_fn_cxx_try_cpp "$LINENO"; then :
12845
12846else
12847  # Broken: fails on valid input.
12848continue
12849fi
12850rm -f conftest.err conftest.i conftest.$ac_ext
12851
12852  # OK, works on sane cases.  Now check whether nonexistent headers
12853  # can be detected and how.
12854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855/* end confdefs.h.  */
12856#include <ac_nonexistent.h>
12857_ACEOF
12858if ac_fn_cxx_try_cpp "$LINENO"; then :
12859  # Broken: success on invalid input.
12860continue
12861else
12862  # Passes both tests.
12863ac_preproc_ok=:
12864break
12865fi
12866rm -f conftest.err conftest.i conftest.$ac_ext
12867
12868done
12869# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12870rm -f conftest.i conftest.err conftest.$ac_ext
12871if $ac_preproc_ok; then :
12872  break
12873fi
12874
12875    done
12876    ac_cv_prog_CXXCPP=$CXXCPP
12877
12878fi
12879  CXXCPP=$ac_cv_prog_CXXCPP
12880else
12881  ac_cv_prog_CXXCPP=$CXXCPP
12882fi
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12884$as_echo "$CXXCPP" >&6; }
12885ac_preproc_ok=false
12886for ac_cxx_preproc_warn_flag in '' yes
12887do
12888  # Use a header file that comes with gcc, so configuring glibc
12889  # with a fresh cross-compiler works.
12890  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12891  # <limits.h> exists even on freestanding compilers.
12892  # On the NeXT, cc -E runs the code through the compiler's parser,
12893  # not just through cpp. "Syntax error" is here to catch this case.
12894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895/* end confdefs.h.  */
12896#ifdef __STDC__
12897# include <limits.h>
12898#else
12899# include <assert.h>
12900#endif
12901		     Syntax error
12902_ACEOF
12903if ac_fn_cxx_try_cpp "$LINENO"; then :
12904
12905else
12906  # Broken: fails on valid input.
12907continue
12908fi
12909rm -f conftest.err conftest.i conftest.$ac_ext
12910
12911  # OK, works on sane cases.  Now check whether nonexistent headers
12912  # can be detected and how.
12913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914/* end confdefs.h.  */
12915#include <ac_nonexistent.h>
12916_ACEOF
12917if ac_fn_cxx_try_cpp "$LINENO"; then :
12918  # Broken: success on invalid input.
12919continue
12920else
12921  # Passes both tests.
12922ac_preproc_ok=:
12923break
12924fi
12925rm -f conftest.err conftest.i conftest.$ac_ext
12926
12927done
12928# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12929rm -f conftest.i conftest.err conftest.$ac_ext
12930if $ac_preproc_ok; then :
12931
12932else
12933  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12935as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12936See \`config.log' for more details" "$LINENO" 5; }
12937fi
12938
12939ac_ext=c
12940ac_cpp='$CPP $CPPFLAGS'
12941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944
12945else
12946  _lt_caught_CXX_error=yes
12947fi
12948
12949ac_ext=cpp
12950ac_cpp='$CXXCPP $CPPFLAGS'
12951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12954
12955archive_cmds_need_lc_CXX=no
12956allow_undefined_flag_CXX=
12957always_export_symbols_CXX=no
12958archive_expsym_cmds_CXX=
12959compiler_needs_object_CXX=no
12960export_dynamic_flag_spec_CXX=
12961hardcode_direct_CXX=no
12962hardcode_direct_absolute_CXX=no
12963hardcode_libdir_flag_spec_CXX=
12964hardcode_libdir_separator_CXX=
12965hardcode_minus_L_CXX=no
12966hardcode_shlibpath_var_CXX=unsupported
12967hardcode_automatic_CXX=no
12968inherit_rpath_CXX=no
12969module_cmds_CXX=
12970module_expsym_cmds_CXX=
12971link_all_deplibs_CXX=unknown
12972old_archive_cmds_CXX=$old_archive_cmds
12973reload_flag_CXX=$reload_flag
12974reload_cmds_CXX=$reload_cmds
12975no_undefined_flag_CXX=
12976whole_archive_flag_spec_CXX=
12977enable_shared_with_static_runtimes_CXX=no
12978
12979# Source file extension for C++ test sources.
12980ac_ext=cpp
12981
12982# Object file extension for compiled C++ test sources.
12983objext=o
12984objext_CXX=$objext
12985
12986# No sense in running all these tests if we already determined that
12987# the CXX compiler isn't working.  Some variables (like enable_shared)
12988# are currently assumed to apply to all compilers on this platform,
12989# and will be corrupted by setting them based on a non-working compiler.
12990if test "$_lt_caught_CXX_error" != yes; then
12991  # Code to be used in simple compile tests
12992  lt_simple_compile_test_code="int some_variable = 0;"
12993
12994  # Code to be used in simple link tests
12995  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12996
12997  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12998
12999
13000
13001
13002
13003
13004# If no C compiler was specified, use CC.
13005LTCC=${LTCC-"$CC"}
13006
13007# If no C compiler flags were specified, use CFLAGS.
13008LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13009
13010# Allow CC to be a program name with arguments.
13011compiler=$CC
13012
13013
13014  # save warnings/boilerplate of simple test code
13015  ac_outfile=conftest.$ac_objext
13016echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13017eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13018_lt_compiler_boilerplate=`cat conftest.err`
13019$RM conftest*
13020
13021  ac_outfile=conftest.$ac_objext
13022echo "$lt_simple_link_test_code" >conftest.$ac_ext
13023eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13024_lt_linker_boilerplate=`cat conftest.err`
13025$RM -r conftest*
13026
13027
13028  # Allow CC to be a program name with arguments.
13029  lt_save_CC=$CC
13030  lt_save_CFLAGS=$CFLAGS
13031  lt_save_LD=$LD
13032  lt_save_GCC=$GCC
13033  GCC=$GXX
13034  lt_save_with_gnu_ld=$with_gnu_ld
13035  lt_save_path_LD=$lt_cv_path_LD
13036  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13037    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13038  else
13039    $as_unset lt_cv_prog_gnu_ld
13040  fi
13041  if test -n "${lt_cv_path_LDCXX+set}"; then
13042    lt_cv_path_LD=$lt_cv_path_LDCXX
13043  else
13044    $as_unset lt_cv_path_LD
13045  fi
13046  test -z "${LDCXX+set}" || LD=$LDCXX
13047  CC=${CXX-"c++"}
13048  CFLAGS=$CXXFLAGS
13049  compiler=$CC
13050  compiler_CXX=$CC
13051  for cc_temp in $compiler""; do
13052  case $cc_temp in
13053    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13054    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13055    \-*) ;;
13056    *) break;;
13057  esac
13058done
13059cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13060
13061
13062  if test -n "$compiler"; then
13063    # We don't want -fno-exception when compiling C++ code, so set the
13064    # no_builtin_flag separately
13065    if test "$GXX" = yes; then
13066      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13067    else
13068      lt_prog_compiler_no_builtin_flag_CXX=
13069    fi
13070
13071    if test "$GXX" = yes; then
13072      # Set up default GNU C++ configuration
13073
13074
13075
13076# Check whether --with-gnu-ld was given.
13077if test "${with_gnu_ld+set}" = set; then :
13078  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13079else
13080  with_gnu_ld=no
13081fi
13082
13083ac_prog=ld
13084if test "$GCC" = yes; then
13085  # Check if gcc -print-prog-name=ld gives a path.
13086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13087$as_echo_n "checking for ld used by $CC... " >&6; }
13088  case $host in
13089  *-*-mingw*)
13090    # gcc leaves a trailing carriage return which upsets mingw
13091    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13092  *)
13093    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13094  esac
13095  case $ac_prog in
13096    # Accept absolute paths.
13097    [\\/]* | ?:[\\/]*)
13098      re_direlt='/[^/][^/]*/\.\./'
13099      # Canonicalize the pathname of ld
13100      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13101      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13102	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13103      done
13104      test -z "$LD" && LD="$ac_prog"
13105      ;;
13106  "")
13107    # If it fails, then pretend we aren't using GCC.
13108    ac_prog=ld
13109    ;;
13110  *)
13111    # If it is relative, then search for the first ld in PATH.
13112    with_gnu_ld=unknown
13113    ;;
13114  esac
13115elif test "$with_gnu_ld" = yes; then
13116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13117$as_echo_n "checking for GNU ld... " >&6; }
13118else
13119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13120$as_echo_n "checking for non-GNU ld... " >&6; }
13121fi
13122if ${lt_cv_path_LD+:} false; then :
13123  $as_echo_n "(cached) " >&6
13124else
13125  if test -z "$LD"; then
13126  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13127  for ac_dir in $PATH; do
13128    IFS="$lt_save_ifs"
13129    test -z "$ac_dir" && ac_dir=.
13130    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13131      lt_cv_path_LD="$ac_dir/$ac_prog"
13132      # Check to see if the program is GNU ld.  I'd rather use --version,
13133      # but apparently some variants of GNU ld only accept -v.
13134      # Break only if it was the GNU/non-GNU ld that we prefer.
13135      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13136      *GNU* | *'with BFD'*)
13137	test "$with_gnu_ld" != no && break
13138	;;
13139      *)
13140	test "$with_gnu_ld" != yes && break
13141	;;
13142      esac
13143    fi
13144  done
13145  IFS="$lt_save_ifs"
13146else
13147  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13148fi
13149fi
13150
13151LD="$lt_cv_path_LD"
13152if test -n "$LD"; then
13153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13154$as_echo "$LD" >&6; }
13155else
13156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157$as_echo "no" >&6; }
13158fi
13159test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13161$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13162if ${lt_cv_prog_gnu_ld+:} false; then :
13163  $as_echo_n "(cached) " >&6
13164else
13165  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13166case `$LD -v 2>&1 </dev/null` in
13167*GNU* | *'with BFD'*)
13168  lt_cv_prog_gnu_ld=yes
13169  ;;
13170*)
13171  lt_cv_prog_gnu_ld=no
13172  ;;
13173esac
13174fi
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13176$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13177with_gnu_ld=$lt_cv_prog_gnu_ld
13178
13179
13180
13181
13182
13183
13184
13185      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13186      # archiving commands below assume that GNU ld is being used.
13187      if test "$with_gnu_ld" = yes; then
13188        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189        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'
13190
13191        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13192        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13193
13194        # If archive_cmds runs LD, not CC, wlarc should be empty
13195        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13196        #     investigate it a little bit more. (MM)
13197        wlarc='${wl}'
13198
13199        # ancient GNU ld didn't support --whole-archive et. al.
13200        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13201	  $GREP 'no-whole-archive' > /dev/null; then
13202          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13203        else
13204          whole_archive_flag_spec_CXX=
13205        fi
13206      else
13207        with_gnu_ld=no
13208        wlarc=
13209
13210        # A generic and very simple default shared library creation
13211        # command for GNU C++ for the case where it uses the native
13212        # linker, instead of GNU ld.  If possible, this setting should
13213        # overridden to take advantage of the native linker features on
13214        # the platform it is being used on.
13215        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13216      fi
13217
13218      # Commands to make compiler produce verbose output that lists
13219      # what "hidden" libraries, object files and flags are used when
13220      # linking a shared library.
13221      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13222
13223    else
13224      GXX=no
13225      with_gnu_ld=no
13226      wlarc=
13227    fi
13228
13229    # PORTME: fill in a description of your system's C++ link characteristics
13230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13231$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13232    ld_shlibs_CXX=yes
13233    case $host_os in
13234      aix3*)
13235        # FIXME: insert proper C++ library support
13236        ld_shlibs_CXX=no
13237        ;;
13238      aix[4-9]*)
13239        if test "$host_cpu" = ia64; then
13240          # On IA64, the linker does run time linking by default, so we don't
13241          # have to do anything special.
13242          aix_use_runtimelinking=no
13243          exp_sym_flag='-Bexport'
13244          no_entry_flag=""
13245        else
13246          aix_use_runtimelinking=no
13247
13248          # Test if we are trying to use run time linking or normal
13249          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13250          # need to do runtime linking.
13251          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13252	    for ld_flag in $LDFLAGS; do
13253	      case $ld_flag in
13254	      *-brtl*)
13255	        aix_use_runtimelinking=yes
13256	        break
13257	        ;;
13258	      esac
13259	    done
13260	    ;;
13261          esac
13262
13263          exp_sym_flag='-bexport'
13264          no_entry_flag='-bnoentry'
13265        fi
13266
13267        # When large executables or shared objects are built, AIX ld can
13268        # have problems creating the table of contents.  If linking a library
13269        # or program results in "error TOC overflow" add -mminimal-toc to
13270        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13271        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13272
13273        archive_cmds_CXX=''
13274        hardcode_direct_CXX=yes
13275        hardcode_direct_absolute_CXX=yes
13276        hardcode_libdir_separator_CXX=':'
13277        link_all_deplibs_CXX=yes
13278        file_list_spec_CXX='${wl}-f,'
13279
13280        if test "$GXX" = yes; then
13281          case $host_os in aix4.[012]|aix4.[012].*)
13282          # We only want to do this on AIX 4.2 and lower, the check
13283          # below for broken collect2 doesn't work under 4.3+
13284	  collect2name=`${CC} -print-prog-name=collect2`
13285	  if test -f "$collect2name" &&
13286	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13287	  then
13288	    # We have reworked collect2
13289	    :
13290	  else
13291	    # We have old collect2
13292	    hardcode_direct_CXX=unsupported
13293	    # It fails to find uninstalled libraries when the uninstalled
13294	    # path is not listed in the libpath.  Setting hardcode_minus_L
13295	    # to unsupported forces relinking
13296	    hardcode_minus_L_CXX=yes
13297	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13298	    hardcode_libdir_separator_CXX=
13299	  fi
13300          esac
13301          shared_flag='-shared'
13302	  if test "$aix_use_runtimelinking" = yes; then
13303	    shared_flag="$shared_flag "'${wl}-G'
13304	  fi
13305        else
13306          # not using gcc
13307          if test "$host_cpu" = ia64; then
13308	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13309	  # chokes on -Wl,-G. The following line is correct:
13310	  shared_flag='-G'
13311          else
13312	    if test "$aix_use_runtimelinking" = yes; then
13313	      shared_flag='${wl}-G'
13314	    else
13315	      shared_flag='${wl}-bM:SRE'
13316	    fi
13317          fi
13318        fi
13319
13320        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13321        # It seems that -bexpall does not export symbols beginning with
13322        # underscore (_), so it is better to generate a list of symbols to
13323	# export.
13324        always_export_symbols_CXX=yes
13325        if test "$aix_use_runtimelinking" = yes; then
13326          # Warning - without using the other runtime loading flags (-brtl),
13327          # -berok will link without error, but may produce a broken library.
13328          allow_undefined_flag_CXX='-berok'
13329          # Determine the default libpath from the value encoded in an empty
13330          # executable.
13331          if test "${lt_cv_aix_libpath+set}" = set; then
13332  aix_libpath=$lt_cv_aix_libpath
13333else
13334  if ${lt_cv_aix_libpath__CXX+:} false; then :
13335  $as_echo_n "(cached) " >&6
13336else
13337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338/* end confdefs.h.  */
13339
13340int
13341main ()
13342{
13343
13344  ;
13345  return 0;
13346}
13347_ACEOF
13348if ac_fn_cxx_try_link "$LINENO"; then :
13349
13350  lt_aix_libpath_sed='
13351      /Import File Strings/,/^$/ {
13352	  /^0/ {
13353	      s/^0  *\([^ ]*\) *$/\1/
13354	      p
13355	  }
13356      }'
13357  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13358  # Check for a 64-bit object if we didn't find anything.
13359  if test -z "$lt_cv_aix_libpath__CXX"; then
13360    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13361  fi
13362fi
13363rm -f core conftest.err conftest.$ac_objext \
13364    conftest$ac_exeext conftest.$ac_ext
13365  if test -z "$lt_cv_aix_libpath__CXX"; then
13366    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13367  fi
13368
13369fi
13370
13371  aix_libpath=$lt_cv_aix_libpath__CXX
13372fi
13373
13374          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13375
13376          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13377        else
13378          if test "$host_cpu" = ia64; then
13379	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13380	    allow_undefined_flag_CXX="-z nodefs"
13381	    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"
13382          else
13383	    # Determine the default libpath from the value encoded in an
13384	    # empty executable.
13385	    if test "${lt_cv_aix_libpath+set}" = set; then
13386  aix_libpath=$lt_cv_aix_libpath
13387else
13388  if ${lt_cv_aix_libpath__CXX+:} false; then :
13389  $as_echo_n "(cached) " >&6
13390else
13391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392/* end confdefs.h.  */
13393
13394int
13395main ()
13396{
13397
13398  ;
13399  return 0;
13400}
13401_ACEOF
13402if ac_fn_cxx_try_link "$LINENO"; then :
13403
13404  lt_aix_libpath_sed='
13405      /Import File Strings/,/^$/ {
13406	  /^0/ {
13407	      s/^0  *\([^ ]*\) *$/\1/
13408	      p
13409	  }
13410      }'
13411  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13412  # Check for a 64-bit object if we didn't find anything.
13413  if test -z "$lt_cv_aix_libpath__CXX"; then
13414    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13415  fi
13416fi
13417rm -f core conftest.err conftest.$ac_objext \
13418    conftest$ac_exeext conftest.$ac_ext
13419  if test -z "$lt_cv_aix_libpath__CXX"; then
13420    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13421  fi
13422
13423fi
13424
13425  aix_libpath=$lt_cv_aix_libpath__CXX
13426fi
13427
13428	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13429	    # Warning - without using the other run time loading flags,
13430	    # -berok will link without error, but may produce a broken library.
13431	    no_undefined_flag_CXX=' ${wl}-bernotok'
13432	    allow_undefined_flag_CXX=' ${wl}-berok'
13433	    if test "$with_gnu_ld" = yes; then
13434	      # We only use this code for GNU lds that support --whole-archive.
13435	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13436	    else
13437	      # Exported symbols can be pulled into shared objects from archives
13438	      whole_archive_flag_spec_CXX='$convenience'
13439	    fi
13440	    archive_cmds_need_lc_CXX=yes
13441	    # This is similar to how AIX traditionally builds its shared
13442	    # libraries.
13443	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13444          fi
13445        fi
13446        ;;
13447
13448      beos*)
13449	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13450	  allow_undefined_flag_CXX=unsupported
13451	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13452	  # support --undefined.  This deserves some investigation.  FIXME
13453	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13454	else
13455	  ld_shlibs_CXX=no
13456	fi
13457	;;
13458
13459      chorus*)
13460        case $cc_basename in
13461          *)
13462	  # FIXME: insert proper C++ library support
13463	  ld_shlibs_CXX=no
13464	  ;;
13465        esac
13466        ;;
13467
13468      cygwin* | mingw* | pw32* | cegcc*)
13469	case $GXX,$cc_basename in
13470	,cl* | no,cl*)
13471	  # Native MSVC
13472	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13473	  # no search path for DLLs.
13474	  hardcode_libdir_flag_spec_CXX=' '
13475	  allow_undefined_flag_CXX=unsupported
13476	  always_export_symbols_CXX=yes
13477	  file_list_spec_CXX='@'
13478	  # Tell ltmain to make .lib files, not .a files.
13479	  libext=lib
13480	  # Tell ltmain to make .dll files, not .so files.
13481	  shrext_cmds=".dll"
13482	  # FIXME: Setting linknames here is a bad hack.
13483	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13484	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13485	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13486	    else
13487	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13488	    fi~
13489	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13490	    linknames='
13491	  # The linker will not automatically build a static lib if we build a DLL.
13492	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13493	  enable_shared_with_static_runtimes_CXX=yes
13494	  # Don't use ranlib
13495	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13496	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13497	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13498	    case $lt_outputfile in
13499	      *.exe|*.EXE) ;;
13500	      *)
13501		lt_outputfile="$lt_outputfile.exe"
13502		lt_tool_outputfile="$lt_tool_outputfile.exe"
13503		;;
13504	    esac~
13505	    func_to_tool_file "$lt_outputfile"~
13506	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13507	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13508	      $RM "$lt_outputfile.manifest";
13509	    fi'
13510	  ;;
13511	*)
13512	  # g++
13513	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13514	  # as there is no search path for DLLs.
13515	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13516	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13517	  allow_undefined_flag_CXX=unsupported
13518	  always_export_symbols_CXX=no
13519	  enable_shared_with_static_runtimes_CXX=yes
13520
13521	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13522	    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'
13523	    # If the export-symbols file already is a .def file (1st line
13524	    # is EXPORTS), use it as is; otherwise, prepend...
13525	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13526	      cp $export_symbols $output_objdir/$soname.def;
13527	    else
13528	      echo EXPORTS > $output_objdir/$soname.def;
13529	      cat $export_symbols >> $output_objdir/$soname.def;
13530	    fi~
13531	    $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'
13532	  else
13533	    ld_shlibs_CXX=no
13534	  fi
13535	  ;;
13536	esac
13537	;;
13538      darwin* | rhapsody*)
13539
13540
13541  archive_cmds_need_lc_CXX=no
13542  hardcode_direct_CXX=no
13543  hardcode_automatic_CXX=yes
13544  hardcode_shlibpath_var_CXX=unsupported
13545  if test "$lt_cv_ld_force_load" = "yes"; then
13546    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\"`'
13547
13548  else
13549    whole_archive_flag_spec_CXX=''
13550  fi
13551  link_all_deplibs_CXX=yes
13552  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13553  case $cc_basename in
13554     ifort*) _lt_dar_can_shared=yes ;;
13555     *) _lt_dar_can_shared=$GCC ;;
13556  esac
13557  if test "$_lt_dar_can_shared" = "yes"; then
13558    output_verbose_link_cmd=func_echo_all
13559    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}"
13560    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13561    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}"
13562    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}"
13563       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13564      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}"
13565      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}"
13566    fi
13567
13568  else
13569  ld_shlibs_CXX=no
13570  fi
13571
13572	;;
13573
13574      dgux*)
13575        case $cc_basename in
13576          ec++*)
13577	    # FIXME: insert proper C++ library support
13578	    ld_shlibs_CXX=no
13579	    ;;
13580          ghcx*)
13581	    # Green Hills C++ Compiler
13582	    # FIXME: insert proper C++ library support
13583	    ld_shlibs_CXX=no
13584	    ;;
13585          *)
13586	    # FIXME: insert proper C++ library support
13587	    ld_shlibs_CXX=no
13588	    ;;
13589        esac
13590        ;;
13591
13592      freebsd2.*)
13593        # C++ shared libraries reported to be fairly broken before
13594	# switch to ELF
13595        ld_shlibs_CXX=no
13596        ;;
13597
13598      freebsd-elf*)
13599        archive_cmds_need_lc_CXX=no
13600        ;;
13601
13602      freebsd* | dragonfly*)
13603        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13604        # conventions
13605        ld_shlibs_CXX=yes
13606        ;;
13607
13608      haiku*)
13609        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13610        link_all_deplibs_CXX=yes
13611        ;;
13612
13613      hpux9*)
13614        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13615        hardcode_libdir_separator_CXX=:
13616        export_dynamic_flag_spec_CXX='${wl}-E'
13617        hardcode_direct_CXX=yes
13618        hardcode_minus_L_CXX=yes # Not in the search PATH,
13619				             # but as the default
13620				             # location of the library.
13621
13622        case $cc_basename in
13623          CC*)
13624            # FIXME: insert proper C++ library support
13625            ld_shlibs_CXX=no
13626            ;;
13627          aCC*)
13628            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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13629            # Commands to make compiler produce verbose output that lists
13630            # what "hidden" libraries, object files and flags are used when
13631            # linking a shared library.
13632            #
13633            # There doesn't appear to be a way to prevent this compiler from
13634            # explicitly linking system object files so we need to strip them
13635            # from the output so that they don't get included in the library
13636            # dependencies.
13637            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"'
13638            ;;
13639          *)
13640            if test "$GXX" = yes; then
13641              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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13642            else
13643              # FIXME: insert proper C++ library support
13644              ld_shlibs_CXX=no
13645            fi
13646            ;;
13647        esac
13648        ;;
13649
13650      hpux10*|hpux11*)
13651        if test $with_gnu_ld = no; then
13652	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13653	  hardcode_libdir_separator_CXX=:
13654
13655          case $host_cpu in
13656            hppa*64*|ia64*)
13657              ;;
13658            *)
13659	      export_dynamic_flag_spec_CXX='${wl}-E'
13660              ;;
13661          esac
13662        fi
13663        case $host_cpu in
13664          hppa*64*|ia64*)
13665            hardcode_direct_CXX=no
13666            hardcode_shlibpath_var_CXX=no
13667            ;;
13668          *)
13669            hardcode_direct_CXX=yes
13670            hardcode_direct_absolute_CXX=yes
13671            hardcode_minus_L_CXX=yes # Not in the search PATH,
13672					         # but as the default
13673					         # location of the library.
13674            ;;
13675        esac
13676
13677        case $cc_basename in
13678          CC*)
13679	    # FIXME: insert proper C++ library support
13680	    ld_shlibs_CXX=no
13681	    ;;
13682          aCC*)
13683	    case $host_cpu in
13684	      hppa*64*)
13685	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13686	        ;;
13687	      ia64*)
13688	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13689	        ;;
13690	      *)
13691	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13692	        ;;
13693	    esac
13694	    # Commands to make compiler produce verbose output that lists
13695	    # what "hidden" libraries, object files and flags are used when
13696	    # linking a shared library.
13697	    #
13698	    # There doesn't appear to be a way to prevent this compiler from
13699	    # explicitly linking system object files so we need to strip them
13700	    # from the output so that they don't get included in the library
13701	    # dependencies.
13702	    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"'
13703	    ;;
13704          *)
13705	    if test "$GXX" = yes; then
13706	      if test $with_gnu_ld = no; then
13707	        case $host_cpu in
13708	          hppa*64*)
13709	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13710	            ;;
13711	          ia64*)
13712	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13713	            ;;
13714	          *)
13715	            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'
13716	            ;;
13717	        esac
13718	      fi
13719	    else
13720	      # FIXME: insert proper C++ library support
13721	      ld_shlibs_CXX=no
13722	    fi
13723	    ;;
13724        esac
13725        ;;
13726
13727      interix[3-9]*)
13728	hardcode_direct_CXX=no
13729	hardcode_shlibpath_var_CXX=no
13730	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13731	export_dynamic_flag_spec_CXX='${wl}-E'
13732	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13733	# Instead, shared libraries are loaded at an image base (0x10000000 by
13734	# default) and relocated if they conflict, which is a slow very memory
13735	# consuming and fragmenting process.  To avoid this, we pick a random,
13736	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13737	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13738	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'
13739	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'
13740	;;
13741      irix5* | irix6*)
13742        case $cc_basename in
13743          CC*)
13744	    # SGI C++
13745	    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'
13746
13747	    # Archives containing C++ object files must be created using
13748	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13749	    # necessary to make sure instantiated templates are included
13750	    # in the archive.
13751	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13752	    ;;
13753          *)
13754	    if test "$GXX" = yes; then
13755	      if test "$with_gnu_ld" = no; then
13756	        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'
13757	      else
13758	        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'
13759	      fi
13760	    fi
13761	    link_all_deplibs_CXX=yes
13762	    ;;
13763        esac
13764        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13765        hardcode_libdir_separator_CXX=:
13766        inherit_rpath_CXX=yes
13767        ;;
13768
13769      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13770        case $cc_basename in
13771          KCC*)
13772	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13773
13774	    # KCC will only create a shared library if the output file
13775	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13776	    # to its proper name (with version) after linking.
13777	    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'
13778	    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'
13779	    # Commands to make compiler produce verbose output that lists
13780	    # what "hidden" libraries, object files and flags are used when
13781	    # linking a shared library.
13782	    #
13783	    # There doesn't appear to be a way to prevent this compiler from
13784	    # explicitly linking system object files so we need to strip them
13785	    # from the output so that they don't get included in the library
13786	    # dependencies.
13787	    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"'
13788
13789	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13790	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13791
13792	    # Archives containing C++ object files must be created using
13793	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13794	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13795	    ;;
13796	  icpc* | ecpc* )
13797	    # Intel C++
13798	    with_gnu_ld=yes
13799	    # version 8.0 and above of icpc choke on multiply defined symbols
13800	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13801	    # earlier do not add the objects themselves.
13802	    case `$CC -V 2>&1` in
13803	      *"Version 7."*)
13804	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13805		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'
13806		;;
13807	      *)  # Version 8.0 or newer
13808	        tmp_idyn=
13809	        case $host_cpu in
13810		  ia64*) tmp_idyn=' -i_dynamic';;
13811		esac
13812	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13813		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'
13814		;;
13815	    esac
13816	    archive_cmds_need_lc_CXX=no
13817	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13818	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13819	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13820	    ;;
13821          pgCC* | pgcpp*)
13822            # Portland Group C++ compiler
13823	    case `$CC -V` in
13824	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13825	      prelink_cmds_CXX='tpldir=Template.dir~
13826		rm -rf $tpldir~
13827		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13828		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13829	      old_archive_cmds_CXX='tpldir=Template.dir~
13830		rm -rf $tpldir~
13831		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13832		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13833		$RANLIB $oldlib'
13834	      archive_cmds_CXX='tpldir=Template.dir~
13835		rm -rf $tpldir~
13836		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13837		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13838	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13839		rm -rf $tpldir~
13840		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13841		$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'
13842	      ;;
13843	    *) # Version 6 and above use weak symbols
13844	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13845	      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'
13846	      ;;
13847	    esac
13848
13849	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13850	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13851	    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'
13852            ;;
13853	  cxx*)
13854	    # Compaq C++
13855	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13856	    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'
13857
13858	    runpath_var=LD_RUN_PATH
13859	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13860	    hardcode_libdir_separator_CXX=:
13861
13862	    # Commands to make compiler produce verbose output that lists
13863	    # what "hidden" libraries, object files and flags are used when
13864	    # linking a shared library.
13865	    #
13866	    # There doesn't appear to be a way to prevent this compiler from
13867	    # explicitly linking system object files so we need to strip them
13868	    # from the output so that they don't get included in the library
13869	    # dependencies.
13870	    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'
13871	    ;;
13872	  xl* | mpixl* | bgxl*)
13873	    # IBM XL 8.0 on PPC, with GNU ld
13874	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13875	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13876	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13877	    if test "x$supports_anon_versioning" = xyes; then
13878	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13879		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13880		echo "local: *; };" >> $output_objdir/$libname.ver~
13881		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13882	    fi
13883	    ;;
13884	  *)
13885	    case `$CC -V 2>&1 | sed 5q` in
13886	    *Sun\ C*)
13887	      # Sun C++ 5.9
13888	      no_undefined_flag_CXX=' -zdefs'
13889	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13890	      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'
13891	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13892	      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'
13893	      compiler_needs_object_CXX=yes
13894
13895	      # Not sure whether something based on
13896	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13897	      # would be better.
13898	      output_verbose_link_cmd='func_echo_all'
13899
13900	      # Archives containing C++ object files must be created using
13901	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13902	      # necessary to make sure instantiated templates are included
13903	      # in the archive.
13904	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13905	      ;;
13906	    esac
13907	    ;;
13908	esac
13909	;;
13910
13911      lynxos*)
13912        # FIXME: insert proper C++ library support
13913	ld_shlibs_CXX=no
13914	;;
13915
13916      m88k*)
13917        # FIXME: insert proper C++ library support
13918        ld_shlibs_CXX=no
13919	;;
13920
13921      mvs*)
13922        case $cc_basename in
13923          cxx*)
13924	    # FIXME: insert proper C++ library support
13925	    ld_shlibs_CXX=no
13926	    ;;
13927	  *)
13928	    # FIXME: insert proper C++ library support
13929	    ld_shlibs_CXX=no
13930	    ;;
13931	esac
13932	;;
13933
13934      netbsd*)
13935        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13936	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13937	  wlarc=
13938	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13939	  hardcode_direct_CXX=yes
13940	  hardcode_shlibpath_var_CXX=no
13941	fi
13942	# Workaround some broken pre-1.5 toolchains
13943	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13944	;;
13945
13946      *nto* | *qnx*)
13947        ld_shlibs_CXX=yes
13948	;;
13949
13950      openbsd2*)
13951        # C++ shared libraries are fairly broken
13952	ld_shlibs_CXX=no
13953	;;
13954
13955      openbsd*)
13956	if test -f /usr/libexec/ld.so; then
13957	  hardcode_direct_CXX=yes
13958	  hardcode_shlibpath_var_CXX=no
13959	  hardcode_direct_absolute_CXX=yes
13960	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13961	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13962	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13963	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13964	    export_dynamic_flag_spec_CXX='${wl}-E'
13965	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13966	  fi
13967	  output_verbose_link_cmd=func_echo_all
13968	else
13969	  ld_shlibs_CXX=no
13970	fi
13971	;;
13972
13973      osf3* | osf4* | osf5*)
13974        case $cc_basename in
13975          KCC*)
13976	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13977
13978	    # KCC will only create a shared library if the output file
13979	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13980	    # to its proper name (with version) after linking.
13981	    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'
13982
13983	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13984	    hardcode_libdir_separator_CXX=:
13985
13986	    # Archives containing C++ object files must be created using
13987	    # the KAI C++ compiler.
13988	    case $host in
13989	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13990	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13991	    esac
13992	    ;;
13993          RCC*)
13994	    # Rational C++ 2.4.1
13995	    # FIXME: insert proper C++ library support
13996	    ld_shlibs_CXX=no
13997	    ;;
13998          cxx*)
13999	    case $host in
14000	      osf3*)
14001	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14002	        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'
14003	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14004		;;
14005	      *)
14006	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14007	        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'
14008	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14009	          echo "-hidden">> $lib.exp~
14010	          $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~
14011	          $RM $lib.exp'
14012	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14013		;;
14014	    esac
14015
14016	    hardcode_libdir_separator_CXX=:
14017
14018	    # Commands to make compiler produce verbose output that lists
14019	    # what "hidden" libraries, object files and flags are used when
14020	    # linking a shared library.
14021	    #
14022	    # There doesn't appear to be a way to prevent this compiler from
14023	    # explicitly linking system object files so we need to strip them
14024	    # from the output so that they don't get included in the library
14025	    # dependencies.
14026	    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"'
14027	    ;;
14028	  *)
14029	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14030	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14031	      case $host in
14032	        osf3*)
14033	          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'
14034		  ;;
14035	        *)
14036	          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'
14037		  ;;
14038	      esac
14039
14040	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14041	      hardcode_libdir_separator_CXX=:
14042
14043	      # Commands to make compiler produce verbose output that lists
14044	      # what "hidden" libraries, object files and flags are used when
14045	      # linking a shared library.
14046	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14047
14048	    else
14049	      # FIXME: insert proper C++ library support
14050	      ld_shlibs_CXX=no
14051	    fi
14052	    ;;
14053        esac
14054        ;;
14055
14056      psos*)
14057        # FIXME: insert proper C++ library support
14058        ld_shlibs_CXX=no
14059        ;;
14060
14061      sunos4*)
14062        case $cc_basename in
14063          CC*)
14064	    # Sun C++ 4.x
14065	    # FIXME: insert proper C++ library support
14066	    ld_shlibs_CXX=no
14067	    ;;
14068          lcc*)
14069	    # Lucid
14070	    # FIXME: insert proper C++ library support
14071	    ld_shlibs_CXX=no
14072	    ;;
14073          *)
14074	    # FIXME: insert proper C++ library support
14075	    ld_shlibs_CXX=no
14076	    ;;
14077        esac
14078        ;;
14079
14080      solaris*)
14081        case $cc_basename in
14082          CC* | sunCC*)
14083	    # Sun C++ 4.2, 5.x and Centerline C++
14084            archive_cmds_need_lc_CXX=yes
14085	    no_undefined_flag_CXX=' -zdefs'
14086	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14087	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14088	      $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'
14089
14090	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14091	    hardcode_shlibpath_var_CXX=no
14092	    case $host_os in
14093	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14094	      *)
14095		# The compiler driver will combine and reorder linker options,
14096		# but understands `-z linker_flag'.
14097	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14098		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14099	        ;;
14100	    esac
14101	    link_all_deplibs_CXX=yes
14102
14103	    output_verbose_link_cmd='func_echo_all'
14104
14105	    # Archives containing C++ object files must be created using
14106	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14107	    # necessary to make sure instantiated templates are included
14108	    # in the archive.
14109	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14110	    ;;
14111          gcx*)
14112	    # Green Hills C++ Compiler
14113	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14114
14115	    # The C++ compiler must be used to create the archive.
14116	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14117	    ;;
14118          *)
14119	    # GNU C++ compiler with Solaris linker
14120	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14121	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14122	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14123	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14124	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14125		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14126
14127	        # Commands to make compiler produce verbose output that lists
14128	        # what "hidden" libraries, object files and flags are used when
14129	        # linking a shared library.
14130	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14131	      else
14132	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14133	        # platform.
14134	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14135	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14136		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14137
14138	        # Commands to make compiler produce verbose output that lists
14139	        # what "hidden" libraries, object files and flags are used when
14140	        # linking a shared library.
14141	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14142	      fi
14143
14144	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14145	      case $host_os in
14146		solaris2.[0-5] | solaris2.[0-5].*) ;;
14147		*)
14148		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14149		  ;;
14150	      esac
14151	    fi
14152	    ;;
14153        esac
14154        ;;
14155
14156    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14157      no_undefined_flag_CXX='${wl}-z,text'
14158      archive_cmds_need_lc_CXX=no
14159      hardcode_shlibpath_var_CXX=no
14160      runpath_var='LD_RUN_PATH'
14161
14162      case $cc_basename in
14163        CC*)
14164	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14165	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14166	  ;;
14167	*)
14168	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14169	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14170	  ;;
14171      esac
14172      ;;
14173
14174      sysv5* | sco3.2v5* | sco5v6*)
14175	# Note: We can NOT use -z defs as we might desire, because we do not
14176	# link with -lc, and that would cause any symbols used from libc to
14177	# always be unresolved, which means just about no library would
14178	# ever link correctly.  If we're not using GNU ld we use -z text
14179	# though, which does catch some bad symbols but isn't as heavy-handed
14180	# as -z defs.
14181	no_undefined_flag_CXX='${wl}-z,text'
14182	allow_undefined_flag_CXX='${wl}-z,nodefs'
14183	archive_cmds_need_lc_CXX=no
14184	hardcode_shlibpath_var_CXX=no
14185	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14186	hardcode_libdir_separator_CXX=':'
14187	link_all_deplibs_CXX=yes
14188	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14189	runpath_var='LD_RUN_PATH'
14190
14191	case $cc_basename in
14192          CC*)
14193	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14194	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14195	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14196	      '"$old_archive_cmds_CXX"
14197	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14198	      '"$reload_cmds_CXX"
14199	    ;;
14200	  *)
14201	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14202	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14203	    ;;
14204	esac
14205      ;;
14206
14207      tandem*)
14208        case $cc_basename in
14209          NCC*)
14210	    # NonStop-UX NCC 3.20
14211	    # FIXME: insert proper C++ library support
14212	    ld_shlibs_CXX=no
14213	    ;;
14214          *)
14215	    # FIXME: insert proper C++ library support
14216	    ld_shlibs_CXX=no
14217	    ;;
14218        esac
14219        ;;
14220
14221      vxworks*)
14222        # FIXME: insert proper C++ library support
14223        ld_shlibs_CXX=no
14224        ;;
14225
14226      *)
14227        # FIXME: insert proper C++ library support
14228        ld_shlibs_CXX=no
14229        ;;
14230    esac
14231
14232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14233$as_echo "$ld_shlibs_CXX" >&6; }
14234    test "$ld_shlibs_CXX" = no && can_build_shared=no
14235
14236    GCC_CXX="$GXX"
14237    LD_CXX="$LD"
14238
14239    ## CAVEAT EMPTOR:
14240    ## There is no encapsulation within the following macros, do not change
14241    ## the running order or otherwise move them around unless you know exactly
14242    ## what you are doing...
14243    # Dependencies to place before and after the object being linked:
14244predep_objects_CXX=
14245postdep_objects_CXX=
14246predeps_CXX=
14247postdeps_CXX=
14248compiler_lib_search_path_CXX=
14249
14250cat > conftest.$ac_ext <<_LT_EOF
14251class Foo
14252{
14253public:
14254  Foo (void) { a = 0; }
14255private:
14256  int a;
14257};
14258_LT_EOF
14259
14260
14261_lt_libdeps_save_CFLAGS=$CFLAGS
14262case "$CC $CFLAGS " in #(
14263*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14264*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14265*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14266esac
14267
14268if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14269  (eval $ac_compile) 2>&5
14270  ac_status=$?
14271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14272  test $ac_status = 0; }; then
14273  # Parse the compiler output and extract the necessary
14274  # objects, libraries and library flags.
14275
14276  # Sentinel used to keep track of whether or not we are before
14277  # the conftest object file.
14278  pre_test_object_deps_done=no
14279
14280  for p in `eval "$output_verbose_link_cmd"`; do
14281    case ${prev}${p} in
14282
14283    -L* | -R* | -l*)
14284       # Some compilers place space between "-{L,R}" and the path.
14285       # Remove the space.
14286       if test $p = "-L" ||
14287          test $p = "-R"; then
14288	 prev=$p
14289	 continue
14290       fi
14291
14292       # Expand the sysroot to ease extracting the directories later.
14293       if test -z "$prev"; then
14294         case $p in
14295         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14296         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14297         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14298         esac
14299       fi
14300       case $p in
14301       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14302       esac
14303       if test "$pre_test_object_deps_done" = no; then
14304	 case ${prev} in
14305	 -L | -R)
14306	   # Internal compiler library paths should come after those
14307	   # provided the user.  The postdeps already come after the
14308	   # user supplied libs so there is no need to process them.
14309	   if test -z "$compiler_lib_search_path_CXX"; then
14310	     compiler_lib_search_path_CXX="${prev}${p}"
14311	   else
14312	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14313	   fi
14314	   ;;
14315	 # The "-l" case would never come before the object being
14316	 # linked, so don't bother handling this case.
14317	 esac
14318       else
14319	 if test -z "$postdeps_CXX"; then
14320	   postdeps_CXX="${prev}${p}"
14321	 else
14322	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14323	 fi
14324       fi
14325       prev=
14326       ;;
14327
14328    *.lto.$objext) ;; # Ignore GCC LTO objects
14329    *.$objext)
14330       # This assumes that the test object file only shows up
14331       # once in the compiler output.
14332       if test "$p" = "conftest.$objext"; then
14333	 pre_test_object_deps_done=yes
14334	 continue
14335       fi
14336
14337       if test "$pre_test_object_deps_done" = no; then
14338	 if test -z "$predep_objects_CXX"; then
14339	   predep_objects_CXX="$p"
14340	 else
14341	   predep_objects_CXX="$predep_objects_CXX $p"
14342	 fi
14343       else
14344	 if test -z "$postdep_objects_CXX"; then
14345	   postdep_objects_CXX="$p"
14346	 else
14347	   postdep_objects_CXX="$postdep_objects_CXX $p"
14348	 fi
14349       fi
14350       ;;
14351
14352    *) ;; # Ignore the rest.
14353
14354    esac
14355  done
14356
14357  # Clean up.
14358  rm -f a.out a.exe
14359else
14360  echo "libtool.m4: error: problem compiling CXX test program"
14361fi
14362
14363$RM -f confest.$objext
14364CFLAGS=$_lt_libdeps_save_CFLAGS
14365
14366# PORTME: override above test on systems where it is broken
14367case $host_os in
14368interix[3-9]*)
14369  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14370  # hack all around it, let's just trust "g++" to DTRT.
14371  predep_objects_CXX=
14372  postdep_objects_CXX=
14373  postdeps_CXX=
14374  ;;
14375
14376linux*)
14377  case `$CC -V 2>&1 | sed 5q` in
14378  *Sun\ C*)
14379    # Sun C++ 5.9
14380
14381    # The more standards-conforming stlport4 library is
14382    # incompatible with the Cstd library. Avoid specifying
14383    # it if it's in CXXFLAGS. Ignore libCrun as
14384    # -library=stlport4 depends on it.
14385    case " $CXX $CXXFLAGS " in
14386    *" -library=stlport4 "*)
14387      solaris_use_stlport4=yes
14388      ;;
14389    esac
14390
14391    if test "$solaris_use_stlport4" != yes; then
14392      postdeps_CXX='-library=Cstd -library=Crun'
14393    fi
14394    ;;
14395  esac
14396  ;;
14397
14398solaris*)
14399  case $cc_basename in
14400  CC* | sunCC*)
14401    # The more standards-conforming stlport4 library is
14402    # incompatible with the Cstd library. Avoid specifying
14403    # it if it's in CXXFLAGS. Ignore libCrun as
14404    # -library=stlport4 depends on it.
14405    case " $CXX $CXXFLAGS " in
14406    *" -library=stlport4 "*)
14407      solaris_use_stlport4=yes
14408      ;;
14409    esac
14410
14411    # Adding this requires a known-good setup of shared libraries for
14412    # Sun compiler versions before 5.6, else PIC objects from an old
14413    # archive will be linked into the output, leading to subtle bugs.
14414    if test "$solaris_use_stlport4" != yes; then
14415      postdeps_CXX='-library=Cstd -library=Crun'
14416    fi
14417    ;;
14418  esac
14419  ;;
14420esac
14421
14422
14423case " $postdeps_CXX " in
14424*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14425esac
14426 compiler_lib_search_dirs_CXX=
14427if test -n "${compiler_lib_search_path_CXX}"; then
14428 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14429fi
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461    lt_prog_compiler_wl_CXX=
14462lt_prog_compiler_pic_CXX=
14463lt_prog_compiler_static_CXX=
14464
14465
14466  # C++ specific cases for pic, static, wl, etc.
14467  if test "$GXX" = yes; then
14468    lt_prog_compiler_wl_CXX='-Wl,'
14469    lt_prog_compiler_static_CXX='-static'
14470
14471    case $host_os in
14472    aix*)
14473      # All AIX code is PIC.
14474      if test "$host_cpu" = ia64; then
14475	# AIX 5 now supports IA64 processor
14476	lt_prog_compiler_static_CXX='-Bstatic'
14477      fi
14478      ;;
14479
14480    amigaos*)
14481      case $host_cpu in
14482      powerpc)
14483            # see comment about AmigaOS4 .so support
14484            lt_prog_compiler_pic_CXX='-fPIC'
14485        ;;
14486      m68k)
14487            # FIXME: we need at least 68020 code to build shared libraries, but
14488            # adding the `-m68020' flag to GCC prevents building anything better,
14489            # like `-m68040'.
14490            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14491        ;;
14492      esac
14493      ;;
14494
14495    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14496      # PIC is the default for these OSes.
14497      ;;
14498    mingw* | cygwin* | os2* | pw32* | cegcc*)
14499      # This hack is so that the source file can tell whether it is being
14500      # built for inclusion in a dll (and should export symbols for example).
14501      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14502      # (--disable-auto-import) libraries
14503      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14504      ;;
14505    darwin* | rhapsody*)
14506      # PIC is the default on this platform
14507      # Common symbols not allowed in MH_DYLIB files
14508      lt_prog_compiler_pic_CXX='-fno-common'
14509      ;;
14510    *djgpp*)
14511      # DJGPP does not support shared libraries at all
14512      lt_prog_compiler_pic_CXX=
14513      ;;
14514    haiku*)
14515      # PIC is the default for Haiku.
14516      # The "-static" flag exists, but is broken.
14517      lt_prog_compiler_static_CXX=
14518      ;;
14519    interix[3-9]*)
14520      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14521      # Instead, we relocate shared libraries at runtime.
14522      ;;
14523    sysv4*MP*)
14524      if test -d /usr/nec; then
14525	lt_prog_compiler_pic_CXX=-Kconform_pic
14526      fi
14527      ;;
14528    hpux*)
14529      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14530      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14531      # sets the default TLS model and affects inlining.
14532      case $host_cpu in
14533      hppa*64*)
14534	;;
14535      *)
14536	lt_prog_compiler_pic_CXX='-fPIC'
14537	;;
14538      esac
14539      ;;
14540    *qnx* | *nto*)
14541      # QNX uses GNU C++, but need to define -shared option too, otherwise
14542      # it will coredump.
14543      lt_prog_compiler_pic_CXX='-fPIC -shared'
14544      ;;
14545    *)
14546      lt_prog_compiler_pic_CXX='-fPIC'
14547      ;;
14548    esac
14549  else
14550    case $host_os in
14551      aix[4-9]*)
14552	# All AIX code is PIC.
14553	if test "$host_cpu" = ia64; then
14554	  # AIX 5 now supports IA64 processor
14555	  lt_prog_compiler_static_CXX='-Bstatic'
14556	else
14557	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14558	fi
14559	;;
14560      chorus*)
14561	case $cc_basename in
14562	cxch68*)
14563	  # Green Hills C++ Compiler
14564	  # _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"
14565	  ;;
14566	esac
14567	;;
14568      mingw* | cygwin* | os2* | pw32* | cegcc*)
14569	# This hack is so that the source file can tell whether it is being
14570	# built for inclusion in a dll (and should export symbols for example).
14571	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14572	;;
14573      dgux*)
14574	case $cc_basename in
14575	  ec++*)
14576	    lt_prog_compiler_pic_CXX='-KPIC'
14577	    ;;
14578	  ghcx*)
14579	    # Green Hills C++ Compiler
14580	    lt_prog_compiler_pic_CXX='-pic'
14581	    ;;
14582	  *)
14583	    ;;
14584	esac
14585	;;
14586      freebsd* | dragonfly*)
14587	# FreeBSD uses GNU C++
14588	;;
14589      hpux9* | hpux10* | hpux11*)
14590	case $cc_basename in
14591	  CC*)
14592	    lt_prog_compiler_wl_CXX='-Wl,'
14593	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14594	    if test "$host_cpu" != ia64; then
14595	      lt_prog_compiler_pic_CXX='+Z'
14596	    fi
14597	    ;;
14598	  aCC*)
14599	    lt_prog_compiler_wl_CXX='-Wl,'
14600	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14601	    case $host_cpu in
14602	    hppa*64*|ia64*)
14603	      # +Z the default
14604	      ;;
14605	    *)
14606	      lt_prog_compiler_pic_CXX='+Z'
14607	      ;;
14608	    esac
14609	    ;;
14610	  *)
14611	    ;;
14612	esac
14613	;;
14614      interix*)
14615	# This is c89, which is MS Visual C++ (no shared libs)
14616	# Anyone wants to do a port?
14617	;;
14618      irix5* | irix6* | nonstopux*)
14619	case $cc_basename in
14620	  CC*)
14621	    lt_prog_compiler_wl_CXX='-Wl,'
14622	    lt_prog_compiler_static_CXX='-non_shared'
14623	    # CC pic flag -KPIC is the default.
14624	    ;;
14625	  *)
14626	    ;;
14627	esac
14628	;;
14629      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14630	case $cc_basename in
14631	  KCC*)
14632	    # KAI C++ Compiler
14633	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14634	    lt_prog_compiler_pic_CXX='-fPIC'
14635	    ;;
14636	  ecpc* )
14637	    # old Intel C++ for x86_64 which still supported -KPIC.
14638	    lt_prog_compiler_wl_CXX='-Wl,'
14639	    lt_prog_compiler_pic_CXX='-KPIC'
14640	    lt_prog_compiler_static_CXX='-static'
14641	    ;;
14642	  icpc* )
14643	    # Intel C++, used to be incompatible with GCC.
14644	    # ICC 10 doesn't accept -KPIC any more.
14645	    lt_prog_compiler_wl_CXX='-Wl,'
14646	    lt_prog_compiler_pic_CXX='-fPIC'
14647	    lt_prog_compiler_static_CXX='-static'
14648	    ;;
14649	  pgCC* | pgcpp*)
14650	    # Portland Group C++ compiler
14651	    lt_prog_compiler_wl_CXX='-Wl,'
14652	    lt_prog_compiler_pic_CXX='-fpic'
14653	    lt_prog_compiler_static_CXX='-Bstatic'
14654	    ;;
14655	  cxx*)
14656	    # Compaq C++
14657	    # Make sure the PIC flag is empty.  It appears that all Alpha
14658	    # Linux and Compaq Tru64 Unix objects are PIC.
14659	    lt_prog_compiler_pic_CXX=
14660	    lt_prog_compiler_static_CXX='-non_shared'
14661	    ;;
14662	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14663	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14664	    lt_prog_compiler_wl_CXX='-Wl,'
14665	    lt_prog_compiler_pic_CXX='-qpic'
14666	    lt_prog_compiler_static_CXX='-qstaticlink'
14667	    ;;
14668	  *)
14669	    case `$CC -V 2>&1 | sed 5q` in
14670	    *Sun\ C*)
14671	      # Sun C++ 5.9
14672	      lt_prog_compiler_pic_CXX='-KPIC'
14673	      lt_prog_compiler_static_CXX='-Bstatic'
14674	      lt_prog_compiler_wl_CXX='-Qoption ld '
14675	      ;;
14676	    esac
14677	    ;;
14678	esac
14679	;;
14680      lynxos*)
14681	;;
14682      m88k*)
14683	;;
14684      mvs*)
14685	case $cc_basename in
14686	  cxx*)
14687	    lt_prog_compiler_pic_CXX='-W c,exportall'
14688	    ;;
14689	  *)
14690	    ;;
14691	esac
14692	;;
14693      netbsd* | netbsdelf*-gnu)
14694	;;
14695      *qnx* | *nto*)
14696        # QNX uses GNU C++, but need to define -shared option too, otherwise
14697        # it will coredump.
14698        lt_prog_compiler_pic_CXX='-fPIC -shared'
14699        ;;
14700      osf3* | osf4* | osf5*)
14701	case $cc_basename in
14702	  KCC*)
14703	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14704	    ;;
14705	  RCC*)
14706	    # Rational C++ 2.4.1
14707	    lt_prog_compiler_pic_CXX='-pic'
14708	    ;;
14709	  cxx*)
14710	    # Digital/Compaq C++
14711	    lt_prog_compiler_wl_CXX='-Wl,'
14712	    # Make sure the PIC flag is empty.  It appears that all Alpha
14713	    # Linux and Compaq Tru64 Unix objects are PIC.
14714	    lt_prog_compiler_pic_CXX=
14715	    lt_prog_compiler_static_CXX='-non_shared'
14716	    ;;
14717	  *)
14718	    ;;
14719	esac
14720	;;
14721      psos*)
14722	;;
14723      solaris*)
14724	case $cc_basename in
14725	  CC* | sunCC*)
14726	    # Sun C++ 4.2, 5.x and Centerline C++
14727	    lt_prog_compiler_pic_CXX='-KPIC'
14728	    lt_prog_compiler_static_CXX='-Bstatic'
14729	    lt_prog_compiler_wl_CXX='-Qoption ld '
14730	    ;;
14731	  gcx*)
14732	    # Green Hills C++ Compiler
14733	    lt_prog_compiler_pic_CXX='-PIC'
14734	    ;;
14735	  *)
14736	    ;;
14737	esac
14738	;;
14739      sunos4*)
14740	case $cc_basename in
14741	  CC*)
14742	    # Sun C++ 4.x
14743	    lt_prog_compiler_pic_CXX='-pic'
14744	    lt_prog_compiler_static_CXX='-Bstatic'
14745	    ;;
14746	  lcc*)
14747	    # Lucid
14748	    lt_prog_compiler_pic_CXX='-pic'
14749	    ;;
14750	  *)
14751	    ;;
14752	esac
14753	;;
14754      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14755	case $cc_basename in
14756	  CC*)
14757	    lt_prog_compiler_wl_CXX='-Wl,'
14758	    lt_prog_compiler_pic_CXX='-KPIC'
14759	    lt_prog_compiler_static_CXX='-Bstatic'
14760	    ;;
14761	esac
14762	;;
14763      tandem*)
14764	case $cc_basename in
14765	  NCC*)
14766	    # NonStop-UX NCC 3.20
14767	    lt_prog_compiler_pic_CXX='-KPIC'
14768	    ;;
14769	  *)
14770	    ;;
14771	esac
14772	;;
14773      vxworks*)
14774	;;
14775      *)
14776	lt_prog_compiler_can_build_shared_CXX=no
14777	;;
14778    esac
14779  fi
14780
14781case $host_os in
14782  # For platforms which do not support PIC, -DPIC is meaningless:
14783  *djgpp*)
14784    lt_prog_compiler_pic_CXX=
14785    ;;
14786  *)
14787    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14788    ;;
14789esac
14790
14791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14792$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14793if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14794  $as_echo_n "(cached) " >&6
14795else
14796  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14797fi
14798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14799$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14800lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14801
14802#
14803# Check to make sure the PIC flag actually works.
14804#
14805if test -n "$lt_prog_compiler_pic_CXX"; then
14806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14807$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14808if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14809  $as_echo_n "(cached) " >&6
14810else
14811  lt_cv_prog_compiler_pic_works_CXX=no
14812   ac_outfile=conftest.$ac_objext
14813   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14814   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14815   # Insert the option either (1) after the last *FLAGS variable, or
14816   # (2) before a word containing "conftest.", or (3) at the end.
14817   # Note that $ac_compile itself does not contain backslashes and begins
14818   # with a dollar sign (not a hyphen), so the echo should work correctly.
14819   # The option is referenced via a variable to avoid confusing sed.
14820   lt_compile=`echo "$ac_compile" | $SED \
14821   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14822   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14823   -e 's:$: $lt_compiler_flag:'`
14824   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14825   (eval "$lt_compile" 2>conftest.err)
14826   ac_status=$?
14827   cat conftest.err >&5
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   if (exit $ac_status) && test -s "$ac_outfile"; then
14830     # The compiler can only warn and ignore the option if not recognized
14831     # So say no if there are warnings other than the usual output.
14832     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14833     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14834     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14835       lt_cv_prog_compiler_pic_works_CXX=yes
14836     fi
14837   fi
14838   $RM conftest*
14839
14840fi
14841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14842$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14843
14844if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14845    case $lt_prog_compiler_pic_CXX in
14846     "" | " "*) ;;
14847     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14848     esac
14849else
14850    lt_prog_compiler_pic_CXX=
14851     lt_prog_compiler_can_build_shared_CXX=no
14852fi
14853
14854fi
14855
14856
14857
14858
14859
14860#
14861# Check to make sure the static flag actually works.
14862#
14863wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14865$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14866if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14867  $as_echo_n "(cached) " >&6
14868else
14869  lt_cv_prog_compiler_static_works_CXX=no
14870   save_LDFLAGS="$LDFLAGS"
14871   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14872   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14873   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14874     # The linker can only warn and ignore the option if not recognized
14875     # So say no if there are warnings
14876     if test -s conftest.err; then
14877       # Append any errors to the config.log.
14878       cat conftest.err 1>&5
14879       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14880       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14881       if diff conftest.exp conftest.er2 >/dev/null; then
14882         lt_cv_prog_compiler_static_works_CXX=yes
14883       fi
14884     else
14885       lt_cv_prog_compiler_static_works_CXX=yes
14886     fi
14887   fi
14888   $RM -r conftest*
14889   LDFLAGS="$save_LDFLAGS"
14890
14891fi
14892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14893$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14894
14895if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14896    :
14897else
14898    lt_prog_compiler_static_CXX=
14899fi
14900
14901
14902
14903
14904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14906if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14907  $as_echo_n "(cached) " >&6
14908else
14909  lt_cv_prog_compiler_c_o_CXX=no
14910   $RM -r conftest 2>/dev/null
14911   mkdir conftest
14912   cd conftest
14913   mkdir out
14914   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14915
14916   lt_compiler_flag="-o out/conftest2.$ac_objext"
14917   # Insert the option either (1) after the last *FLAGS variable, or
14918   # (2) before a word containing "conftest.", or (3) at the end.
14919   # Note that $ac_compile itself does not contain backslashes and begins
14920   # with a dollar sign (not a hyphen), so the echo should work correctly.
14921   lt_compile=`echo "$ac_compile" | $SED \
14922   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14923   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14924   -e 's:$: $lt_compiler_flag:'`
14925   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14926   (eval "$lt_compile" 2>out/conftest.err)
14927   ac_status=$?
14928   cat out/conftest.err >&5
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14931   then
14932     # The compiler can only warn and ignore the option if not recognized
14933     # So say no if there are warnings
14934     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14935     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14936     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14937       lt_cv_prog_compiler_c_o_CXX=yes
14938     fi
14939   fi
14940   chmod u+w . 2>&5
14941   $RM conftest*
14942   # SGI C++ compiler will create directory out/ii_files/ for
14943   # template instantiation
14944   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14945   $RM out/* && rmdir out
14946   cd ..
14947   $RM -r conftest
14948   $RM conftest*
14949
14950fi
14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14952$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14953
14954
14955
14956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14957$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14958if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14959  $as_echo_n "(cached) " >&6
14960else
14961  lt_cv_prog_compiler_c_o_CXX=no
14962   $RM -r conftest 2>/dev/null
14963   mkdir conftest
14964   cd conftest
14965   mkdir out
14966   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14967
14968   lt_compiler_flag="-o out/conftest2.$ac_objext"
14969   # Insert the option either (1) after the last *FLAGS variable, or
14970   # (2) before a word containing "conftest.", or (3) at the end.
14971   # Note that $ac_compile itself does not contain backslashes and begins
14972   # with a dollar sign (not a hyphen), so the echo should work correctly.
14973   lt_compile=`echo "$ac_compile" | $SED \
14974   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14975   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14976   -e 's:$: $lt_compiler_flag:'`
14977   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14978   (eval "$lt_compile" 2>out/conftest.err)
14979   ac_status=$?
14980   cat out/conftest.err >&5
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14983   then
14984     # The compiler can only warn and ignore the option if not recognized
14985     # So say no if there are warnings
14986     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14987     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14988     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14989       lt_cv_prog_compiler_c_o_CXX=yes
14990     fi
14991   fi
14992   chmod u+w . 2>&5
14993   $RM conftest*
14994   # SGI C++ compiler will create directory out/ii_files/ for
14995   # template instantiation
14996   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14997   $RM out/* && rmdir out
14998   cd ..
14999   $RM -r conftest
15000   $RM conftest*
15001
15002fi
15003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15004$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15005
15006
15007
15008
15009hard_links="nottested"
15010if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15011  # do not overwrite the value of need_locks provided by the user
15012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15013$as_echo_n "checking if we can lock with hard links... " >&6; }
15014  hard_links=yes
15015  $RM conftest*
15016  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15017  touch conftest.a
15018  ln conftest.a conftest.b 2>&5 || hard_links=no
15019  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15021$as_echo "$hard_links" >&6; }
15022  if test "$hard_links" = no; then
15023    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15024$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15025    need_locks=warn
15026  fi
15027else
15028  need_locks=no
15029fi
15030
15031
15032
15033    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15034$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15035
15036  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15037  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15038  case $host_os in
15039  aix[4-9]*)
15040    # If we're using GNU nm, then we don't want the "-C" option.
15041    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15042    # Also, AIX nm treats weak defined symbols like other global defined
15043    # symbols, whereas GNU nm marks them as "W".
15044    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15045      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15046    else
15047      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15048    fi
15049    ;;
15050  pw32*)
15051    export_symbols_cmds_CXX="$ltdll_cmds"
15052    ;;
15053  cygwin* | mingw* | cegcc*)
15054    case $cc_basename in
15055    cl*)
15056      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15057      ;;
15058    *)
15059      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'
15060      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15061      ;;
15062    esac
15063    ;;
15064  linux* | k*bsd*-gnu | gnu*)
15065    link_all_deplibs_CXX=no
15066    ;;
15067  *)
15068    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15069    ;;
15070  esac
15071
15072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15073$as_echo "$ld_shlibs_CXX" >&6; }
15074test "$ld_shlibs_CXX" = no && can_build_shared=no
15075
15076with_gnu_ld_CXX=$with_gnu_ld
15077
15078
15079
15080
15081
15082
15083#
15084# Do we need to explicitly link libc?
15085#
15086case "x$archive_cmds_need_lc_CXX" in
15087x|xyes)
15088  # Assume -lc should be added
15089  archive_cmds_need_lc_CXX=yes
15090
15091  if test "$enable_shared" = yes && test "$GCC" = yes; then
15092    case $archive_cmds_CXX in
15093    *'~'*)
15094      # FIXME: we may have to deal with multi-command sequences.
15095      ;;
15096    '$CC '*)
15097      # Test whether the compiler implicitly links with -lc since on some
15098      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15099      # to ld, don't add -lc before -lgcc.
15100      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15101$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15102if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15103  $as_echo_n "(cached) " >&6
15104else
15105  $RM conftest*
15106	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15107
15108	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15109  (eval $ac_compile) 2>&5
15110  ac_status=$?
15111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15112  test $ac_status = 0; } 2>conftest.err; then
15113	  soname=conftest
15114	  lib=conftest
15115	  libobjs=conftest.$ac_objext
15116	  deplibs=
15117	  wl=$lt_prog_compiler_wl_CXX
15118	  pic_flag=$lt_prog_compiler_pic_CXX
15119	  compiler_flags=-v
15120	  linker_flags=-v
15121	  verstring=
15122	  output_objdir=.
15123	  libname=conftest
15124	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15125	  allow_undefined_flag_CXX=
15126	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15127  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15128  ac_status=$?
15129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15130  test $ac_status = 0; }
15131	  then
15132	    lt_cv_archive_cmds_need_lc_CXX=no
15133	  else
15134	    lt_cv_archive_cmds_need_lc_CXX=yes
15135	  fi
15136	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15137	else
15138	  cat conftest.err 1>&5
15139	fi
15140	$RM conftest*
15141
15142fi
15143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15144$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15145      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15146      ;;
15147    esac
15148  fi
15149  ;;
15150esac
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15214$as_echo_n "checking dynamic linker characteristics... " >&6; }
15215
15216library_names_spec=
15217libname_spec='lib$name'
15218soname_spec=
15219shrext_cmds=".so"
15220postinstall_cmds=
15221postuninstall_cmds=
15222finish_cmds=
15223finish_eval=
15224shlibpath_var=
15225shlibpath_overrides_runpath=unknown
15226version_type=none
15227dynamic_linker="$host_os ld.so"
15228sys_lib_dlsearch_path_spec="/lib /usr/lib"
15229need_lib_prefix=unknown
15230hardcode_into_libs=no
15231
15232# when you set need_version to no, make sure it does not cause -set_version
15233# flags to be left without arguments
15234need_version=unknown
15235
15236case $host_os in
15237aix3*)
15238  version_type=linux # correct to gnu/linux during the next big refactor
15239  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15240  shlibpath_var=LIBPATH
15241
15242  # AIX 3 has no versioning support, so we append a major version to the name.
15243  soname_spec='${libname}${release}${shared_ext}$major'
15244  ;;
15245
15246aix[4-9]*)
15247  version_type=linux # correct to gnu/linux during the next big refactor
15248  need_lib_prefix=no
15249  need_version=no
15250  hardcode_into_libs=yes
15251  if test "$host_cpu" = ia64; then
15252    # AIX 5 supports IA64
15253    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15254    shlibpath_var=LD_LIBRARY_PATH
15255  else
15256    # With GCC up to 2.95.x, collect2 would create an import file
15257    # for dependence libraries.  The import file would start with
15258    # the line `#! .'.  This would cause the generated library to
15259    # depend on `.', always an invalid library.  This was fixed in
15260    # development snapshots of GCC prior to 3.0.
15261    case $host_os in
15262      aix4 | aix4.[01] | aix4.[01].*)
15263      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15264	   echo ' yes '
15265	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15266	:
15267      else
15268	can_build_shared=no
15269      fi
15270      ;;
15271    esac
15272    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15273    # soname into executable. Probably we can add versioning support to
15274    # collect2, so additional links can be useful in future.
15275    if test "$aix_use_runtimelinking" = yes; then
15276      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15277      # instead of lib<name>.a to let people know that these are not
15278      # typical AIX shared libraries.
15279      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280    else
15281      # We preserve .a as extension for shared libraries through AIX4.2
15282      # and later when we are not doing run time linking.
15283      library_names_spec='${libname}${release}.a $libname.a'
15284      soname_spec='${libname}${release}${shared_ext}$major'
15285    fi
15286    shlibpath_var=LIBPATH
15287  fi
15288  ;;
15289
15290amigaos*)
15291  case $host_cpu in
15292  powerpc)
15293    # Since July 2007 AmigaOS4 officially supports .so libraries.
15294    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15295    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296    ;;
15297  m68k)
15298    library_names_spec='$libname.ixlibrary $libname.a'
15299    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15300    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15301    ;;
15302  esac
15303  ;;
15304
15305beos*)
15306  library_names_spec='${libname}${shared_ext}'
15307  dynamic_linker="$host_os ld.so"
15308  shlibpath_var=LIBRARY_PATH
15309  ;;
15310
15311bsdi[45]*)
15312  version_type=linux # correct to gnu/linux during the next big refactor
15313  need_version=no
15314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315  soname_spec='${libname}${release}${shared_ext}$major'
15316  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15317  shlibpath_var=LD_LIBRARY_PATH
15318  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15319  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15320  # the default ld.so.conf also contains /usr/contrib/lib and
15321  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15322  # libtool to hard-code these into programs
15323  ;;
15324
15325cygwin* | mingw* | pw32* | cegcc*)
15326  version_type=windows
15327  shrext_cmds=".dll"
15328  need_version=no
15329  need_lib_prefix=no
15330
15331  case $GCC,$cc_basename in
15332  yes,*)
15333    # gcc
15334    library_names_spec='$libname.dll.a'
15335    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15336    postinstall_cmds='base_file=`basename \${file}`~
15337      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15338      dldir=$destdir/`dirname \$dlpath`~
15339      test -d \$dldir || mkdir -p \$dldir~
15340      $install_prog $dir/$dlname \$dldir/$dlname~
15341      chmod a+x \$dldir/$dlname~
15342      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15343        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15344      fi'
15345    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15346      dlpath=$dir/\$dldll~
15347       $RM \$dlpath'
15348    shlibpath_overrides_runpath=yes
15349
15350    case $host_os in
15351    cygwin*)
15352      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15353      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15354
15355      ;;
15356    mingw* | cegcc*)
15357      # MinGW DLLs use traditional 'lib' prefix
15358      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15359      ;;
15360    pw32*)
15361      # pw32 DLLs use 'pw' prefix rather than 'lib'
15362      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15363      ;;
15364    esac
15365    dynamic_linker='Win32 ld.exe'
15366    ;;
15367
15368  *,cl*)
15369    # Native MSVC
15370    libname_spec='$name'
15371    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15372    library_names_spec='${libname}.dll.lib'
15373
15374    case $build_os in
15375    mingw*)
15376      sys_lib_search_path_spec=
15377      lt_save_ifs=$IFS
15378      IFS=';'
15379      for lt_path in $LIB
15380      do
15381        IFS=$lt_save_ifs
15382        # Let DOS variable expansion print the short 8.3 style file name.
15383        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15384        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15385      done
15386      IFS=$lt_save_ifs
15387      # Convert to MSYS style.
15388      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15389      ;;
15390    cygwin*)
15391      # Convert to unix form, then to dos form, then back to unix form
15392      # but this time dos style (no spaces!) so that the unix form looks
15393      # like /cygdrive/c/PROGRA~1:/cygdr...
15394      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15395      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15396      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15397      ;;
15398    *)
15399      sys_lib_search_path_spec="$LIB"
15400      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15401        # It is most probably a Windows format PATH.
15402        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15403      else
15404        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15405      fi
15406      # FIXME: find the short name or the path components, as spaces are
15407      # common. (e.g. "Program Files" -> "PROGRA~1")
15408      ;;
15409    esac
15410
15411    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15412    postinstall_cmds='base_file=`basename \${file}`~
15413      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15414      dldir=$destdir/`dirname \$dlpath`~
15415      test -d \$dldir || mkdir -p \$dldir~
15416      $install_prog $dir/$dlname \$dldir/$dlname'
15417    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15418      dlpath=$dir/\$dldll~
15419       $RM \$dlpath'
15420    shlibpath_overrides_runpath=yes
15421    dynamic_linker='Win32 link.exe'
15422    ;;
15423
15424  *)
15425    # Assume MSVC wrapper
15426    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15427    dynamic_linker='Win32 ld.exe'
15428    ;;
15429  esac
15430  # FIXME: first we should search . and the directory the executable is in
15431  shlibpath_var=PATH
15432  ;;
15433
15434darwin* | rhapsody*)
15435  dynamic_linker="$host_os dyld"
15436  version_type=darwin
15437  need_lib_prefix=no
15438  need_version=no
15439  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15440  soname_spec='${libname}${release}${major}$shared_ext'
15441  shlibpath_overrides_runpath=yes
15442  shlibpath_var=DYLD_LIBRARY_PATH
15443  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15444
15445  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15446  ;;
15447
15448dgux*)
15449  version_type=linux # correct to gnu/linux during the next big refactor
15450  need_lib_prefix=no
15451  need_version=no
15452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15453  soname_spec='${libname}${release}${shared_ext}$major'
15454  shlibpath_var=LD_LIBRARY_PATH
15455  ;;
15456
15457freebsd* | dragonfly*)
15458  # DragonFly does not have aout.  When/if they implement a new
15459  # versioning mechanism, adjust this.
15460  if test -x /usr/bin/objformat; then
15461    objformat=`/usr/bin/objformat`
15462  else
15463    case $host_os in
15464    freebsd[23].*) objformat=aout ;;
15465    *) objformat=elf ;;
15466    esac
15467  fi
15468  version_type=freebsd-$objformat
15469  case $version_type in
15470    freebsd-elf*)
15471      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15472      need_version=no
15473      need_lib_prefix=no
15474      ;;
15475    freebsd-*)
15476      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15477      need_version=yes
15478      ;;
15479  esac
15480  shlibpath_var=LD_LIBRARY_PATH
15481  case $host_os in
15482  freebsd2.*)
15483    shlibpath_overrides_runpath=yes
15484    ;;
15485  freebsd3.[01]* | freebsdelf3.[01]*)
15486    shlibpath_overrides_runpath=yes
15487    hardcode_into_libs=yes
15488    ;;
15489  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15490  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15491    shlibpath_overrides_runpath=no
15492    hardcode_into_libs=yes
15493    ;;
15494  *) # from 4.6 on, and DragonFly
15495    shlibpath_overrides_runpath=yes
15496    hardcode_into_libs=yes
15497    ;;
15498  esac
15499  ;;
15500
15501haiku*)
15502  version_type=linux # correct to gnu/linux during the next big refactor
15503  need_lib_prefix=no
15504  need_version=no
15505  dynamic_linker="$host_os runtime_loader"
15506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15507  soname_spec='${libname}${release}${shared_ext}$major'
15508  shlibpath_var=LIBRARY_PATH
15509  shlibpath_overrides_runpath=yes
15510  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15511  hardcode_into_libs=yes
15512  ;;
15513
15514hpux9* | hpux10* | hpux11*)
15515  # Give a soname corresponding to the major version so that dld.sl refuses to
15516  # link against other versions.
15517  version_type=sunos
15518  need_lib_prefix=no
15519  need_version=no
15520  case $host_cpu in
15521  ia64*)
15522    shrext_cmds='.so'
15523    hardcode_into_libs=yes
15524    dynamic_linker="$host_os dld.so"
15525    shlibpath_var=LD_LIBRARY_PATH
15526    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15527    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528    soname_spec='${libname}${release}${shared_ext}$major'
15529    if test "X$HPUX_IA64_MODE" = X32; then
15530      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15531    else
15532      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15533    fi
15534    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15535    ;;
15536  hppa*64*)
15537    shrext_cmds='.sl'
15538    hardcode_into_libs=yes
15539    dynamic_linker="$host_os dld.sl"
15540    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15541    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15542    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15543    soname_spec='${libname}${release}${shared_ext}$major'
15544    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15545    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15546    ;;
15547  *)
15548    shrext_cmds='.sl'
15549    dynamic_linker="$host_os dld.sl"
15550    shlibpath_var=SHLIB_PATH
15551    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15552    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553    soname_spec='${libname}${release}${shared_ext}$major'
15554    ;;
15555  esac
15556  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15557  postinstall_cmds='chmod 555 $lib'
15558  # or fails outright, so override atomically:
15559  install_override_mode=555
15560  ;;
15561
15562interix[3-9]*)
15563  version_type=linux # correct to gnu/linux during the next big refactor
15564  need_lib_prefix=no
15565  need_version=no
15566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15567  soname_spec='${libname}${release}${shared_ext}$major'
15568  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15569  shlibpath_var=LD_LIBRARY_PATH
15570  shlibpath_overrides_runpath=no
15571  hardcode_into_libs=yes
15572  ;;
15573
15574irix5* | irix6* | nonstopux*)
15575  case $host_os in
15576    nonstopux*) version_type=nonstopux ;;
15577    *)
15578	if test "$lt_cv_prog_gnu_ld" = yes; then
15579		version_type=linux # correct to gnu/linux during the next big refactor
15580	else
15581		version_type=irix
15582	fi ;;
15583  esac
15584  need_lib_prefix=no
15585  need_version=no
15586  soname_spec='${libname}${release}${shared_ext}$major'
15587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15588  case $host_os in
15589  irix5* | nonstopux*)
15590    libsuff= shlibsuff=
15591    ;;
15592  *)
15593    case $LD in # libtool.m4 will add one of these switches to LD
15594    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15595      libsuff= shlibsuff= libmagic=32-bit;;
15596    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15597      libsuff=32 shlibsuff=N32 libmagic=N32;;
15598    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15599      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15600    *) libsuff= shlibsuff= libmagic=never-match;;
15601    esac
15602    ;;
15603  esac
15604  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15605  shlibpath_overrides_runpath=no
15606  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15607  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15608  hardcode_into_libs=yes
15609  ;;
15610
15611# No shared lib support for Linux oldld, aout, or coff.
15612linux*oldld* | linux*aout* | linux*coff*)
15613  dynamic_linker=no
15614  ;;
15615
15616# This must be glibc/ELF.
15617linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15618  version_type=linux # correct to gnu/linux during the next big refactor
15619  need_lib_prefix=no
15620  need_version=no
15621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622  soname_spec='${libname}${release}${shared_ext}$major'
15623  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15624  shlibpath_var=LD_LIBRARY_PATH
15625  shlibpath_overrides_runpath=no
15626
15627  # Some binutils ld are patched to set DT_RUNPATH
15628  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15629  $as_echo_n "(cached) " >&6
15630else
15631  lt_cv_shlibpath_overrides_runpath=no
15632    save_LDFLAGS=$LDFLAGS
15633    save_libdir=$libdir
15634    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15635	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15636    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637/* end confdefs.h.  */
15638
15639int
15640main ()
15641{
15642
15643  ;
15644  return 0;
15645}
15646_ACEOF
15647if ac_fn_cxx_try_link "$LINENO"; then :
15648  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15649  lt_cv_shlibpath_overrides_runpath=yes
15650fi
15651fi
15652rm -f core conftest.err conftest.$ac_objext \
15653    conftest$ac_exeext conftest.$ac_ext
15654    LDFLAGS=$save_LDFLAGS
15655    libdir=$save_libdir
15656
15657fi
15658
15659  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15660
15661  # This implies no fast_install, which is unacceptable.
15662  # Some rework will be needed to allow for fast_install
15663  # before this can be enabled.
15664  hardcode_into_libs=yes
15665
15666  # Append ld.so.conf contents to the search path
15667  if test -f /etc/ld.so.conf; then
15668    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' ' '`
15669    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15670  fi
15671
15672  # We used to test for /lib/ld.so.1 and disable shared libraries on
15673  # powerpc, because MkLinux only supported shared libraries with the
15674  # GNU dynamic linker.  Since this was broken with cross compilers,
15675  # most powerpc-linux boxes support dynamic linking these days and
15676  # people can always --disable-shared, the test was removed, and we
15677  # assume the GNU/Linux dynamic linker is in use.
15678  dynamic_linker='GNU/Linux ld.so'
15679  ;;
15680
15681netbsdelf*-gnu)
15682  version_type=linux
15683  need_lib_prefix=no
15684  need_version=no
15685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15686  soname_spec='${libname}${release}${shared_ext}$major'
15687  shlibpath_var=LD_LIBRARY_PATH
15688  shlibpath_overrides_runpath=no
15689  hardcode_into_libs=yes
15690  dynamic_linker='NetBSD ld.elf_so'
15691  ;;
15692
15693netbsd*)
15694  version_type=sunos
15695  need_lib_prefix=no
15696  need_version=no
15697  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15698    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15699    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15700    dynamic_linker='NetBSD (a.out) ld.so'
15701  else
15702    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15703    soname_spec='${libname}${release}${shared_ext}$major'
15704    dynamic_linker='NetBSD ld.elf_so'
15705  fi
15706  shlibpath_var=LD_LIBRARY_PATH
15707  shlibpath_overrides_runpath=yes
15708  hardcode_into_libs=yes
15709  ;;
15710
15711newsos6)
15712  version_type=linux # correct to gnu/linux during the next big refactor
15713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714  shlibpath_var=LD_LIBRARY_PATH
15715  shlibpath_overrides_runpath=yes
15716  ;;
15717
15718*nto* | *qnx*)
15719  version_type=qnx
15720  need_lib_prefix=no
15721  need_version=no
15722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723  soname_spec='${libname}${release}${shared_ext}$major'
15724  shlibpath_var=LD_LIBRARY_PATH
15725  shlibpath_overrides_runpath=no
15726  hardcode_into_libs=yes
15727  dynamic_linker='ldqnx.so'
15728  ;;
15729
15730openbsd*)
15731  version_type=sunos
15732  sys_lib_dlsearch_path_spec="/usr/lib"
15733  need_lib_prefix=no
15734  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15735  case $host_os in
15736    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15737    *)				need_version=no  ;;
15738  esac
15739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15740  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15741  shlibpath_var=LD_LIBRARY_PATH
15742  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15743    case $host_os in
15744      openbsd2.[89] | openbsd2.[89].*)
15745	shlibpath_overrides_runpath=no
15746	;;
15747      *)
15748	shlibpath_overrides_runpath=yes
15749	;;
15750      esac
15751  else
15752    shlibpath_overrides_runpath=yes
15753  fi
15754  ;;
15755
15756os2*)
15757  libname_spec='$name'
15758  shrext_cmds=".dll"
15759  need_lib_prefix=no
15760  library_names_spec='$libname${shared_ext} $libname.a'
15761  dynamic_linker='OS/2 ld.exe'
15762  shlibpath_var=LIBPATH
15763  ;;
15764
15765osf3* | osf4* | osf5*)
15766  version_type=osf
15767  need_lib_prefix=no
15768  need_version=no
15769  soname_spec='${libname}${release}${shared_ext}$major'
15770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771  shlibpath_var=LD_LIBRARY_PATH
15772  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15773  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15774  ;;
15775
15776rdos*)
15777  dynamic_linker=no
15778  ;;
15779
15780solaris*)
15781  version_type=linux # correct to gnu/linux during the next big refactor
15782  need_lib_prefix=no
15783  need_version=no
15784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785  soname_spec='${libname}${release}${shared_ext}$major'
15786  shlibpath_var=LD_LIBRARY_PATH
15787  shlibpath_overrides_runpath=yes
15788  hardcode_into_libs=yes
15789  # ldd complains unless libraries are executable
15790  postinstall_cmds='chmod +x $lib'
15791  ;;
15792
15793sunos4*)
15794  version_type=sunos
15795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15796  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15797  shlibpath_var=LD_LIBRARY_PATH
15798  shlibpath_overrides_runpath=yes
15799  if test "$with_gnu_ld" = yes; then
15800    need_lib_prefix=no
15801  fi
15802  need_version=yes
15803  ;;
15804
15805sysv4 | sysv4.3*)
15806  version_type=linux # correct to gnu/linux during the next big refactor
15807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808  soname_spec='${libname}${release}${shared_ext}$major'
15809  shlibpath_var=LD_LIBRARY_PATH
15810  case $host_vendor in
15811    sni)
15812      shlibpath_overrides_runpath=no
15813      need_lib_prefix=no
15814      runpath_var=LD_RUN_PATH
15815      ;;
15816    siemens)
15817      need_lib_prefix=no
15818      ;;
15819    motorola)
15820      need_lib_prefix=no
15821      need_version=no
15822      shlibpath_overrides_runpath=no
15823      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15824      ;;
15825  esac
15826  ;;
15827
15828sysv4*MP*)
15829  if test -d /usr/nec ;then
15830    version_type=linux # correct to gnu/linux during the next big refactor
15831    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15832    soname_spec='$libname${shared_ext}.$major'
15833    shlibpath_var=LD_LIBRARY_PATH
15834  fi
15835  ;;
15836
15837sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15838  version_type=freebsd-elf
15839  need_lib_prefix=no
15840  need_version=no
15841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15842  soname_spec='${libname}${release}${shared_ext}$major'
15843  shlibpath_var=LD_LIBRARY_PATH
15844  shlibpath_overrides_runpath=yes
15845  hardcode_into_libs=yes
15846  if test "$with_gnu_ld" = yes; then
15847    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15848  else
15849    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15850    case $host_os in
15851      sco3.2v5*)
15852        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15853	;;
15854    esac
15855  fi
15856  sys_lib_dlsearch_path_spec='/usr/lib'
15857  ;;
15858
15859tpf*)
15860  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15861  version_type=linux # correct to gnu/linux during the next big refactor
15862  need_lib_prefix=no
15863  need_version=no
15864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865  shlibpath_var=LD_LIBRARY_PATH
15866  shlibpath_overrides_runpath=no
15867  hardcode_into_libs=yes
15868  ;;
15869
15870uts4*)
15871  version_type=linux # correct to gnu/linux during the next big refactor
15872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873  soname_spec='${libname}${release}${shared_ext}$major'
15874  shlibpath_var=LD_LIBRARY_PATH
15875  ;;
15876
15877*)
15878  dynamic_linker=no
15879  ;;
15880esac
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15882$as_echo "$dynamic_linker" >&6; }
15883test "$dynamic_linker" = no && can_build_shared=no
15884
15885variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15886if test "$GCC" = yes; then
15887  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15888fi
15889
15890if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15891  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15892fi
15893if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15894  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15895fi
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15935$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15936hardcode_action_CXX=
15937if test -n "$hardcode_libdir_flag_spec_CXX" ||
15938   test -n "$runpath_var_CXX" ||
15939   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15940
15941  # We can hardcode non-existent directories.
15942  if test "$hardcode_direct_CXX" != no &&
15943     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15944     # have to relink, otherwise we might link with an installed library
15945     # when we should be linking with a yet-to-be-installed one
15946     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15947     test "$hardcode_minus_L_CXX" != no; then
15948    # Linking always hardcodes the temporary library directory.
15949    hardcode_action_CXX=relink
15950  else
15951    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15952    hardcode_action_CXX=immediate
15953  fi
15954else
15955  # We cannot hardcode anything, or else we can only hardcode existing
15956  # directories.
15957  hardcode_action_CXX=unsupported
15958fi
15959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15960$as_echo "$hardcode_action_CXX" >&6; }
15961
15962if test "$hardcode_action_CXX" = relink ||
15963   test "$inherit_rpath_CXX" = yes; then
15964  # Fast installation is not supported
15965  enable_fast_install=no
15966elif test "$shlibpath_overrides_runpath" = yes ||
15967     test "$enable_shared" = no; then
15968  # Fast installation is not necessary
15969  enable_fast_install=needless
15970fi
15971
15972
15973
15974
15975
15976
15977
15978  fi # test -n "$compiler"
15979
15980  CC=$lt_save_CC
15981  CFLAGS=$lt_save_CFLAGS
15982  LDCXX=$LD
15983  LD=$lt_save_LD
15984  GCC=$lt_save_GCC
15985  with_gnu_ld=$lt_save_with_gnu_ld
15986  lt_cv_path_LDCXX=$lt_cv_path_LD
15987  lt_cv_path_LD=$lt_save_path_LD
15988  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15989  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15990fi # test "$_lt_caught_CXX_error" != yes
15991
15992ac_ext=c
15993ac_cpp='$CPP $CPPFLAGS'
15994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15996ac_compiler_gnu=$ac_cv_c_compiler_gnu
15997
15998
15999for ac_prog in gawk mawk nawk awk
16000do
16001  # Extract the first word of "$ac_prog", so it can be a program name with args.
16002set dummy $ac_prog; ac_word=$2
16003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16004$as_echo_n "checking for $ac_word... " >&6; }
16005if ${ac_cv_prog_AWK+:} false; then :
16006  $as_echo_n "(cached) " >&6
16007else
16008  if test -n "$AWK"; then
16009  ac_cv_prog_AWK="$AWK" # Let the user override the test.
16010else
16011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16012for as_dir in $PATH
16013do
16014  IFS=$as_save_IFS
16015  test -z "$as_dir" && as_dir=.
16016    for ac_exec_ext in '' $ac_executable_extensions; do
16017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16018    ac_cv_prog_AWK="$ac_prog"
16019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16020    break 2
16021  fi
16022done
16023  done
16024IFS=$as_save_IFS
16025
16026fi
16027fi
16028AWK=$ac_cv_prog_AWK
16029if test -n "$AWK"; then
16030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
16031$as_echo "$AWK" >&6; }
16032else
16033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16034$as_echo "no" >&6; }
16035fi
16036
16037
16038  test -n "$AWK" && break
16039done
16040
16041
16042if test -n "$ac_tool_prefix"; then
16043  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16044set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16046$as_echo_n "checking for $ac_word... " >&6; }
16047if ${ac_cv_prog_RANLIB+:} false; then :
16048  $as_echo_n "(cached) " >&6
16049else
16050  if test -n "$RANLIB"; then
16051  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16052else
16053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16054for as_dir in $PATH
16055do
16056  IFS=$as_save_IFS
16057  test -z "$as_dir" && as_dir=.
16058    for ac_exec_ext in '' $ac_executable_extensions; do
16059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16060    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16062    break 2
16063  fi
16064done
16065  done
16066IFS=$as_save_IFS
16067
16068fi
16069fi
16070RANLIB=$ac_cv_prog_RANLIB
16071if test -n "$RANLIB"; then
16072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16073$as_echo "$RANLIB" >&6; }
16074else
16075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16076$as_echo "no" >&6; }
16077fi
16078
16079
16080fi
16081if test -z "$ac_cv_prog_RANLIB"; then
16082  ac_ct_RANLIB=$RANLIB
16083  # Extract the first word of "ranlib", so it can be a program name with args.
16084set dummy ranlib; ac_word=$2
16085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16086$as_echo_n "checking for $ac_word... " >&6; }
16087if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16088  $as_echo_n "(cached) " >&6
16089else
16090  if test -n "$ac_ct_RANLIB"; then
16091  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16092else
16093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16094for as_dir in $PATH
16095do
16096  IFS=$as_save_IFS
16097  test -z "$as_dir" && as_dir=.
16098    for ac_exec_ext in '' $ac_executable_extensions; do
16099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16100    ac_cv_prog_ac_ct_RANLIB="ranlib"
16101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16102    break 2
16103  fi
16104done
16105  done
16106IFS=$as_save_IFS
16107
16108fi
16109fi
16110ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16111if test -n "$ac_ct_RANLIB"; then
16112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16113$as_echo "$ac_ct_RANLIB" >&6; }
16114else
16115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116$as_echo "no" >&6; }
16117fi
16118
16119  if test "x$ac_ct_RANLIB" = x; then
16120    RANLIB=":"
16121  else
16122    case $cross_compiling:$ac_tool_warned in
16123yes:)
16124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16126ac_tool_warned=yes ;;
16127esac
16128    RANLIB=$ac_ct_RANLIB
16129  fi
16130else
16131  RANLIB="$ac_cv_prog_RANLIB"
16132fi
16133 # Added during tests on FreeBSD
16134
16135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16136$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16137set x ${MAKE-make}
16138ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16139if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16140  $as_echo_n "(cached) " >&6
16141else
16142  cat >conftest.make <<\_ACEOF
16143SHELL = /bin/sh
16144all:
16145	@echo '@@@%%%=$(MAKE)=@@@%%%'
16146_ACEOF
16147# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16148case `${MAKE-make} -f conftest.make 2>/dev/null` in
16149  *@@@%%%=?*=@@@%%%*)
16150    eval ac_cv_prog_make_${ac_make}_set=yes;;
16151  *)
16152    eval ac_cv_prog_make_${ac_make}_set=no;;
16153esac
16154rm -f conftest.make
16155fi
16156if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16158$as_echo "yes" >&6; }
16159  SET_MAKE=
16160else
16161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16162$as_echo "no" >&6; }
16163  SET_MAKE="MAKE=${MAKE-make}"
16164fi
16165
16166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16167$as_echo_n "checking whether ln -s works... " >&6; }
16168LN_S=$as_ln_s
16169if test "$LN_S" = "ln -s"; then
16170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16171$as_echo "yes" >&6; }
16172else
16173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16174$as_echo "no, using $LN_S" >&6; }
16175fi
16176
16177
16178
16179
16180
16181
16182
16183# OS-specific configuration. On top there are default values of some
16184# flags, to be modified per host type.
16185
16186# General notice: FreeBSD 9.3 doesn't like empty quotes
16187# (e.g. DL_LIB=\"\"). Empty string should be totally empty.
16188
16189# libcw on Linux needs "-ldl" library (dlopen() and related symbols)
16190# for dynamic loading of ALSA and PulseAudio libraries. Tested BSD
16191# systems (FreeBSD and OpenBSD) don't have a separate -ldl library
16192# (and since they don't support ALSA and PulseAudio, libcw on BSDs
16193# wouldn't even need the library).
16194DL_LIB=
16195
16196# libcw on OpenBSD (tested on 5.5) needs -lossaudio for _oss_ioctl
16197# symbol. No explicit OSS library needed by libcw on FreeBSD and
16198# Linux. Quick and short googling suggests that NetBSD also uses
16199# ossaudio library.
16200# TODO: consider using AC_CHECK_LIB(ossaudio, _oss_ioctl)
16201OSS_LIB=
16202
16203IS_FREEBSD=false
16204
16205case $host_os in
16206    *linux*|*Linux*)
16207	{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected Linux: $host_os" >&5
16208$as_echo "$as_me: Detected Linux: $host_os" >&6;}
16209	# Needed because of dynamic loading of libraries in libcw.
16210	DL_LIB=\"-ldl\"
16211	;;
16212    *freebsd*|*FreeBSD*)
16213	{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected FreeBSD: $host_os" >&5
16214$as_echo "$as_me: Detected FreeBSD: $host_os" >&6;}
16215	IS_FREEBSD=true
16216	;;
16217    *openbsd*|*OpenBSD*)
16218	{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected OpenBSD: $host_os" >&5
16219$as_echo "$as_me: Detected OpenBSD: $host_os" >&6;}
16220	OSS_LIB=\"-lossaudio\"
16221	;;
16222    *netbsd*|*NetBSD*)
16223	# I didn't test unixcw on NetBSD, but let's give it a
16224	# chance.
16225	{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected NetBSD: $host_os" >&5
16226$as_echo "$as_me: Detected NetBSD: $host_os" >&6;}
16227	OSS_LIB=\"-lossaudio\"
16228	;;
16229    *)
16230	{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected other OS: $host_os" >&5
16231$as_echo "$as_me: Detected other OS: $host_os" >&6;}
16232	# Until someone complains, for other OSes we will configure
16233	# the flags the same way as on Linux.
16234	DL_LIB=\"-ldl\"
16235	;;
16236esac
16237 if test $IS_FREEBSD = true; then
16238  HOST_IS_FREEBSD_TRUE=
16239  HOST_IS_FREEBSD_FALSE='#'
16240else
16241  HOST_IS_FREEBSD_TRUE='#'
16242  HOST_IS_FREEBSD_FALSE=
16243fi
16244
16245
16246
16247
16248
16249
16250
16251
16252# Check specifically for gzip and ldconfig, and substitute the harmless ":"
16253# if absent.
16254# Extract the first word of "gzip", so it can be a program name with args.
16255set dummy gzip; ac_word=$2
16256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16257$as_echo_n "checking for $ac_word... " >&6; }
16258if ${ac_cv_path_GZIP+:} false; then :
16259  $as_echo_n "(cached) " >&6
16260else
16261  case $GZIP in
16262  [\\/]* | ?:[\\/]*)
16263  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
16264  ;;
16265  *)
16266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16267for as_dir in $PATH
16268do
16269  IFS=$as_save_IFS
16270  test -z "$as_dir" && as_dir=.
16271    for ac_exec_ext in '' $ac_executable_extensions; do
16272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16273    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
16274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16275    break 2
16276  fi
16277done
16278  done
16279IFS=$as_save_IFS
16280
16281  ;;
16282esac
16283fi
16284GZIP=$ac_cv_path_GZIP
16285if test -n "$GZIP"; then
16286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
16287$as_echo "$GZIP" >&6; }
16288else
16289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290$as_echo "no" >&6; }
16291fi
16292
16293
16294if test -z "$GZIP" ; then
16295  GZIP=":"
16296fi
16297# Extract the first word of "ldconfig", so it can be a program name with args.
16298set dummy ldconfig; ac_word=$2
16299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16300$as_echo_n "checking for $ac_word... " >&6; }
16301if ${ac_cv_path_LDCONFIG+:} false; then :
16302  $as_echo_n "(cached) " >&6
16303else
16304  case $LDCONFIG in
16305  [\\/]* | ?:[\\/]*)
16306  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
16307  ;;
16308  *)
16309  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16310for as_dir in $PATH
16311do
16312  IFS=$as_save_IFS
16313  test -z "$as_dir" && as_dir=.
16314    for ac_exec_ext in '' $ac_executable_extensions; do
16315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16316    ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
16317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16318    break 2
16319  fi
16320done
16321  done
16322IFS=$as_save_IFS
16323
16324  ;;
16325esac
16326fi
16327LDCONFIG=$ac_cv_path_LDCONFIG
16328if test -n "$LDCONFIG"; then
16329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
16330$as_echo "$LDCONFIG" >&6; }
16331else
16332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16333$as_echo "no" >&6; }
16334fi
16335
16336
16337if test -z "$LDCONFIG" ; then
16338  LDCONFIG=":"
16339fi
16340
16341
16342
16343
16344
16345
16346# Check for basic but essential libraries
16347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16348$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16349if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16350  $as_echo_n "(cached) " >&6
16351else
16352  ac_check_lib_save_LIBS=$LIBS
16353LIBS="-lpthread  $LIBS"
16354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355/* end confdefs.h.  */
16356
16357/* Override any GCC internal prototype to avoid an error.
16358   Use char because int might match the return type of a GCC
16359   builtin and then its argument prototype would still apply.  */
16360#ifdef __cplusplus
16361extern "C"
16362#endif
16363char pthread_create ();
16364int
16365main ()
16366{
16367return pthread_create ();
16368  ;
16369  return 0;
16370}
16371_ACEOF
16372if ac_fn_c_try_link "$LINENO"; then :
16373  ac_cv_lib_pthread_pthread_create=yes
16374else
16375  ac_cv_lib_pthread_pthread_create=no
16376fi
16377rm -f core conftest.err conftest.$ac_objext \
16378    conftest$ac_exeext conftest.$ac_ext
16379LIBS=$ac_check_lib_save_LIBS
16380fi
16381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16382$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16383if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16384  cat >>confdefs.h <<_ACEOF
16385#define HAVE_LIBPTHREAD 1
16386_ACEOF
16387
16388  LIBS="-lpthread $LIBS"
16389
16390fi
16391
16392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
16393$as_echo_n "checking for floor in -lm... " >&6; }
16394if ${ac_cv_lib_m_floor+:} false; then :
16395  $as_echo_n "(cached) " >&6
16396else
16397  ac_check_lib_save_LIBS=$LIBS
16398LIBS="-lm  $LIBS"
16399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400/* end confdefs.h.  */
16401
16402/* Override any GCC internal prototype to avoid an error.
16403   Use char because int might match the return type of a GCC
16404   builtin and then its argument prototype would still apply.  */
16405#ifdef __cplusplus
16406extern "C"
16407#endif
16408char floor ();
16409int
16410main ()
16411{
16412return floor ();
16413  ;
16414  return 0;
16415}
16416_ACEOF
16417if ac_fn_c_try_link "$LINENO"; then :
16418  ac_cv_lib_m_floor=yes
16419else
16420  ac_cv_lib_m_floor=no
16421fi
16422rm -f core conftest.err conftest.$ac_objext \
16423    conftest$ac_exeext conftest.$ac_ext
16424LIBS=$ac_check_lib_save_LIBS
16425fi
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
16427$as_echo "$ac_cv_lib_m_floor" >&6; }
16428if test "x$ac_cv_lib_m_floor" = xyes; then :
16429  cat >>confdefs.h <<_ACEOF
16430#define HAVE_LIBM 1
16431_ACEOF
16432
16433  LIBS="-lm $LIBS"
16434
16435fi
16436
16437
16438# show-stoppers
16439if test $ac_cv_lib_m_floor = 'no' ; then
16440   as_fn_error $? "math library is missing, cannot continue" "$LINENO" 5
16441fi
16442if test $ac_cv_lib_pthread_pthread_create = 'no' ; then
16443   as_fn_error $? "pthread library is missing, cannot continue" "$LINENO" 5
16444fi
16445
16446
16447
16448# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
16449# library's current:revision:age
16450#
16451# I'm defining it here so that it's available in config.h and can be
16452# used in libcw's cw_version() function that should return the
16453# numbers.
16454LIBCW_VERSION=\"6:6:1\"
16455
16456cat >>confdefs.h <<_ACEOF
16457#define LIBCW_VERSION $LIBCW_VERSION
16458_ACEOF
16459
16460
16461
16462
16463# ########################################################################
16464# definitions of custom command line options for configure script
16465# ########################################################################
16466
16467
16468# Build support for console buzzer output? Yes by default.
16469# Check whether --enable-console was given.
16470if test "${enable_console+set}" = set; then :
16471  enableval=$enable_console;
16472else
16473  enable_console=yes
16474fi
16475
16476
16477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include console buzzer audio support" >&5
16478$as_echo_n "checking whether to include console buzzer audio support... " >&6; }
16479if test "$enable_console" = "yes" ; then
16480    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16481$as_echo "yes" >&6; }
16482else
16483    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484$as_echo "no" >&6; }
16485fi
16486
16487
16488# Build support for OSS audio system? Yes by default.
16489# Check whether --enable-oss was given.
16490if test "${enable_oss+set}" = set; then :
16491  enableval=$enable_oss;
16492else
16493  enable_oss=yes
16494fi
16495
16496
16497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include OSS audio support" >&5
16498$as_echo_n "checking whether to include OSS audio support... " >&6; }
16499if test "$enable_oss" = "yes" ; then
16500    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16501$as_echo "yes" >&6; }
16502else
16503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16504$as_echo "no" >&6; }
16505fi
16506
16507
16508# Build support for ALSA audio system? Yes by default.
16509# Check whether --enable-alsa was given.
16510if test "${enable_alsa+set}" = set; then :
16511  enableval=$enable_alsa;
16512else
16513  enable_alsa=yes
16514fi
16515
16516
16517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include ALSA audio support" >&5
16518$as_echo_n "checking whether to include ALSA audio support... " >&6; }
16519if test "$enable_alsa" = "yes" ; then
16520    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16521$as_echo "yes" >&6; }
16522else
16523    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16524$as_echo "no" >&6; }
16525fi
16526
16527
16528# Build support for PulseAudio audio system? Yes by default.
16529# Check whether --enable-pulseaudio was given.
16530if test "${enable_pulseaudio+set}" = set; then :
16531  enableval=$enable_pulseaudio;
16532else
16533  enable_pulseaudio=yes
16534fi
16535
16536
16537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include PulseAudio audio support" >&5
16538$as_echo_n "checking whether to include PulseAudio audio support... " >&6; }
16539if test "$enable_pulseaudio" = "yes" ; then
16540    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16541$as_echo "yes" >&6; }
16542else
16543    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16544$as_echo "no" >&6; }
16545fi
16546
16547
16548# Build cwcp? Yes by default.
16549# Check whether --enable-cwcp was given.
16550if test "${enable_cwcp+set}" = set; then :
16551  enableval=$enable_cwcp;
16552else
16553  enable_cwcp=yes
16554fi
16555
16556
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cwcp" >&5
16558$as_echo_n "checking whether to build cwcp... " >&6; }
16559if test "$enable_cwcp" = "yes" ; then
16560    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16561$as_echo "yes" >&6; }
16562else
16563    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16564$as_echo "no" >&6; }
16565fi
16566
16567
16568# Build xcwcp? Yes by default.
16569# Check whether --enable-xcwcp was given.
16570if test "${enable_xcwcp+set}" = set; then :
16571  enableval=$enable_xcwcp;
16572else
16573  enable_xcwcp=yes
16574fi
16575
16576
16577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build xcwcp" >&5
16578$as_echo_n "checking whether to build xcwcp... " >&6; }
16579if test "$enable_xcwcp" = "yes" ; then
16580    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16581$as_echo "yes" >&6; }
16582else
16583    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16584$as_echo "no" >&6; }
16585fi
16586
16587
16588# Enable development debugging? No by default.
16589# Check whether --enable-dev was given.
16590if test "${enable_dev+set}" = set; then :
16591  enableval=$enable_dev;
16592else
16593  enable_dev=no
16594fi
16595
16596
16597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable development support" >&5
16598$as_echo_n "checking whether to enable development support... " >&6; }
16599if test "$enable_dev" = "yes" ; then
16600    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16601$as_echo "yes" >&6; }
16602else
16603    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16604$as_echo "no" >&6; }
16605fi
16606
16607
16608# #####
16609#  end
16610# #####
16611
16612
16613
16614
16615
16616# ########################################################################
16617# Process command line options, and if enabled - checking if requirements
16618# for enabled features are satisfied.
16619# ########################################################################
16620
16621
16622if test "$enable_console" = "no" ; then
16623    WITH_CONSOLE='no'
16624else
16625     # Search for header that provides KIOCSOUND
16626    for ac_header in sys/kd.h sys/vtkd.h sys/kbio.h
16627do :
16628  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16629ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16630if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16631  cat >>confdefs.h <<_ACEOF
16632#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16633_ACEOF
16634
16635fi
16636
16637done
16638
16639    if test "$ac_cv_header_sys_kd_h" = 'no' \
16640	&& test "$ac_cv_header_sys_vtkd_h" = 'no' \
16641	&& test "$ac_cv_header_sys_kbio_h" = 'no' ; then
16642
16643	WITH_CONSOLE='no'
16644	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find either sys/kd.h, sys/vtkd.h, or sys/kbio.h - support for console buzzer audio output will be disabled" >&5
16645$as_echo "$as_me: WARNING: Cannot find either sys/kd.h, sys/vtkd.h, or sys/kbio.h - support for console buzzer audio output will be disabled" >&2;}
16646    else
16647	WITH_CONSOLE='yes'
16648    fi
16649fi
16650
16651if test "$WITH_CONSOLE" = 'yes' ; then
16652
16653$as_echo "#define LIBCW_WITH_CONSOLE 1" >>confdefs.h
16654
16655fi
16656
16657
16658
16659if test "$enable_oss" = "no" ; then
16660    WITH_OSS='no'
16661else
16662    for ac_header in soundcard.h sys/soundcard.h
16663do :
16664  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16665ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16666if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16667  cat >>confdefs.h <<_ACEOF
16668#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16669_ACEOF
16670
16671fi
16672
16673done
16674
16675    if test "$ac_cv_header_soundcard_h" = 'no' \
16676	&& test "$ac_cv_header_sys_soundcard_h" = 'no' ; then
16677
16678	WITH_OSS='no'
16679        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find either soundcard.h or sys/soundcard.h - support for OSS audio output will be disabled" >&5
16680$as_echo "$as_me: WARNING: Cannot find either soundcard.h or sys/soundcard.h - support for OSS audio output will be disabled" >&2;}
16681    else
16682	WITH_OSS='yes'
16683    fi
16684fi
16685
16686if test "$WITH_OSS" = 'yes' ; then
16687
16688$as_echo "#define LIBCW_WITH_OSS 1" >>confdefs.h
16689
16690fi
16691
16692
16693
16694if test "$enable_alsa" = "no" ; then
16695    WITH_ALSA='no'
16696else
16697    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16698$as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16699if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16700  $as_echo_n "(cached) " >&6
16701else
16702  ac_check_lib_save_LIBS=$LIBS
16703LIBS="-lasound  $LIBS"
16704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705/* end confdefs.h.  */
16706
16707/* Override any GCC internal prototype to avoid an error.
16708   Use char because int might match the return type of a GCC
16709   builtin and then its argument prototype would still apply.  */
16710#ifdef __cplusplus
16711extern "C"
16712#endif
16713char snd_pcm_open ();
16714int
16715main ()
16716{
16717return snd_pcm_open ();
16718  ;
16719  return 0;
16720}
16721_ACEOF
16722if ac_fn_c_try_link "$LINENO"; then :
16723  ac_cv_lib_asound_snd_pcm_open=yes
16724else
16725  ac_cv_lib_asound_snd_pcm_open=no
16726fi
16727rm -f core conftest.err conftest.$ac_objext \
16728    conftest$ac_exeext conftest.$ac_ext
16729LIBS=$ac_check_lib_save_LIBS
16730fi
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16732$as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16733if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16734  cat >>confdefs.h <<_ACEOF
16735#define HAVE_LIBASOUND 1
16736_ACEOF
16737
16738  LIBS="-lasound $LIBS"
16739
16740fi
16741
16742    if test "$ac_cv_lib_asound_snd_pcm_open" = 'yes' ; then
16743
16744	# Check for certain routines which are missing from liboss-salsa-dev
16745        # (kfreebsd's libasound implementation). If a function is found
16746	# build system defines HAVE_function_name in config.h.
16747	for ac_func in  \
16748	    snd_pcm_hw_params_test_periods \
16749	    snd_pcm_hw_params_test_buffer_size \
16750
16751do :
16752  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16753ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16754if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16755  cat >>confdefs.h <<_ACEOF
16756#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16757_ACEOF
16758
16759fi
16760done
16761
16762
16763	WITH_ALSA='yes'
16764    else
16765	WITH_ALSA='no'
16766	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ALSA library files - support for ALSA audio output will be disabled" >&5
16767$as_echo "$as_me: WARNING: Cannot find ALSA library files - support for ALSA audio output will be disabled" >&2;}
16768    fi
16769fi
16770
16771if test "$WITH_ALSA" = 'yes' ; then
16772
16773$as_echo "#define LIBCW_WITH_ALSA 1" >>confdefs.h
16774
16775fi
16776
16777
16778
16779if test "$enable_pulseaudio" = "no" ; then
16780    WITH_PULSEAUDIO='no'
16781else
16782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_new in -lpulse-simple" >&5
16783$as_echo_n "checking for pa_simple_new in -lpulse-simple... " >&6; }
16784if ${ac_cv_lib_pulse_simple_pa_simple_new+:} false; then :
16785  $as_echo_n "(cached) " >&6
16786else
16787  ac_check_lib_save_LIBS=$LIBS
16788LIBS="-lpulse-simple  $LIBS"
16789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790/* end confdefs.h.  */
16791
16792/* Override any GCC internal prototype to avoid an error.
16793   Use char because int might match the return type of a GCC
16794   builtin and then its argument prototype would still apply.  */
16795#ifdef __cplusplus
16796extern "C"
16797#endif
16798char pa_simple_new ();
16799int
16800main ()
16801{
16802return pa_simple_new ();
16803  ;
16804  return 0;
16805}
16806_ACEOF
16807if ac_fn_c_try_link "$LINENO"; then :
16808  ac_cv_lib_pulse_simple_pa_simple_new=yes
16809else
16810  ac_cv_lib_pulse_simple_pa_simple_new=no
16811fi
16812rm -f core conftest.err conftest.$ac_objext \
16813    conftest$ac_exeext conftest.$ac_ext
16814LIBS=$ac_check_lib_save_LIBS
16815fi
16816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_new" >&5
16817$as_echo "$ac_cv_lib_pulse_simple_pa_simple_new" >&6; }
16818if test "x$ac_cv_lib_pulse_simple_pa_simple_new" = xyes; then :
16819  cat >>confdefs.h <<_ACEOF
16820#define HAVE_LIBPULSE_SIMPLE 1
16821_ACEOF
16822
16823  LIBS="-lpulse-simple $LIBS"
16824
16825fi
16826
16827    if test "$ac_cv_lib_pulse_simple_pa_simple_new" = 'yes' ; then
16828
16829	WITH_PULSEAUDIO='yes'
16830    else
16831	WITH_PULSEAUDIO='no'
16832	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find PulseAudio library files - support for PulseAudio audio output will be disabled" >&5
16833$as_echo "$as_me: WARNING: Cannot find PulseAudio library files - support for PulseAudio audio output will be disabled" >&2;}
16834    fi
16835fi
16836
16837if test "$WITH_PULSEAUDIO" = 'yes' ; then
16838
16839$as_echo "#define LIBCW_WITH_PULSEAUDIO 1" >>confdefs.h
16840
16841fi
16842
16843
16844
16845if test "$enable_cwcp" = "no" ; then
16846   WITH_CWCP='no'
16847else
16848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
16849$as_echo_n "checking for initscr in -lncurses... " >&6; }
16850if ${ac_cv_lib_curses_initscr+:} false; then :
16851  $as_echo_n "(cached) " >&6
16852else
16853  ac_check_lib_save_LIBS=$LIBS
16854LIBS="-lncurses  $LIBS"
16855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856/* end confdefs.h.  */
16857
16858/* Override any GCC internal prototype to avoid an error.
16859   Use char because int might match the return type of a GCC
16860   builtin and then its argument prototype would still apply.  */
16861#ifdef __cplusplus
16862extern "C"
16863#endif
16864char initscr ();
16865int
16866main ()
16867{
16868return initscr ();
16869  ;
16870  return 0;
16871}
16872_ACEOF
16873if ac_fn_c_try_link "$LINENO"; then :
16874  ac_cv_lib_curses_initscr=yes
16875else
16876  ac_cv_lib_curses_initscr=no
16877fi
16878rm -f core conftest.err conftest.$ac_objext \
16879    conftest$ac_exeext conftest.$ac_ext
16880LIBS=$ac_check_lib_save_LIBS
16881fi
16882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
16883$as_echo "$ac_cv_lib_curses_initscr" >&6; }
16884if test "x$ac_cv_lib_curses_initscr" = xyes; then :
16885  cat >>confdefs.h <<_ACEOF
16886#define HAVE_LIBCURSES 1
16887_ACEOF
16888
16889  LIBS="-lncurses $LIBS"
16890
16891fi
16892
16893    if test $ac_cv_lib_curses_initscr = 'yes' ; then
16894	WITH_CWCP='yes'
16895    else
16896	WITH_CWCP='no'
16897	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libcurses - unable to build cwcp" >&5
16898$as_echo "$as_me: WARNING: Cannot find libcurses - unable to build cwcp" >&2;}
16899    fi
16900fi
16901
16902
16903
16904if test "$enable_xcwcp" = "no" ; then
16905    WITH_XCWCP='no'
16906else
16907    # http://stackoverflow.com/questions/5178511/integrate-qt-project-with-autotool
16908
16909
16910
16911
16912
16913
16914
16915if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16916	if test -n "$ac_tool_prefix"; then
16917  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16918set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16920$as_echo_n "checking for $ac_word... " >&6; }
16921if ${ac_cv_path_PKG_CONFIG+:} false; then :
16922  $as_echo_n "(cached) " >&6
16923else
16924  case $PKG_CONFIG in
16925  [\\/]* | ?:[\\/]*)
16926  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16927  ;;
16928  *)
16929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16930for as_dir in $PATH
16931do
16932  IFS=$as_save_IFS
16933  test -z "$as_dir" && as_dir=.
16934    for ac_exec_ext in '' $ac_executable_extensions; do
16935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16936    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16938    break 2
16939  fi
16940done
16941  done
16942IFS=$as_save_IFS
16943
16944  ;;
16945esac
16946fi
16947PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16948if test -n "$PKG_CONFIG"; then
16949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16950$as_echo "$PKG_CONFIG" >&6; }
16951else
16952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953$as_echo "no" >&6; }
16954fi
16955
16956
16957fi
16958if test -z "$ac_cv_path_PKG_CONFIG"; then
16959  ac_pt_PKG_CONFIG=$PKG_CONFIG
16960  # Extract the first word of "pkg-config", so it can be a program name with args.
16961set dummy pkg-config; ac_word=$2
16962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16963$as_echo_n "checking for $ac_word... " >&6; }
16964if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16965  $as_echo_n "(cached) " >&6
16966else
16967  case $ac_pt_PKG_CONFIG in
16968  [\\/]* | ?:[\\/]*)
16969  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16970  ;;
16971  *)
16972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16973for as_dir in $PATH
16974do
16975  IFS=$as_save_IFS
16976  test -z "$as_dir" && as_dir=.
16977    for ac_exec_ext in '' $ac_executable_extensions; do
16978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16979    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16981    break 2
16982  fi
16983done
16984  done
16985IFS=$as_save_IFS
16986
16987  ;;
16988esac
16989fi
16990ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16991if test -n "$ac_pt_PKG_CONFIG"; then
16992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16993$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16994else
16995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16996$as_echo "no" >&6; }
16997fi
16998
16999  if test "x$ac_pt_PKG_CONFIG" = x; then
17000    PKG_CONFIG=""
17001  else
17002    case $cross_compiling:$ac_tool_warned in
17003yes:)
17004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17006ac_tool_warned=yes ;;
17007esac
17008    PKG_CONFIG=$ac_pt_PKG_CONFIG
17009  fi
17010else
17011  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17012fi
17013
17014fi
17015if test -n "$PKG_CONFIG"; then
17016	_pkg_min_version=0.9.0
17017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17018$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17019	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17020		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17021$as_echo "yes" >&6; }
17022	else
17023		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024$as_echo "no" >&6; }
17025		PKG_CONFIG=""
17026	fi
17027fi
17028
17029pkg_failed=no
17030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT5" >&5
17031$as_echo_n "checking for QT5... " >&6; }
17032
17033if test -n "$QT5_CFLAGS"; then
17034    pkg_cv_QT5_CFLAGS="$QT5_CFLAGS"
17035 elif test -n "$PKG_CONFIG"; then
17036    if test -n "$PKG_CONFIG" && \
17037    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Widgets Qt5Gui Qt5Core >= 5.0.0\""; } >&5
17038  ($PKG_CONFIG --exists --print-errors "Qt5Widgets Qt5Gui Qt5Core >= 5.0.0") 2>&5
17039  ac_status=$?
17040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17041  test $ac_status = 0; }; then
17042  pkg_cv_QT5_CFLAGS=`$PKG_CONFIG --cflags "Qt5Widgets Qt5Gui Qt5Core >= 5.0.0" 2>/dev/null`
17043		      test "x$?" != "x0" && pkg_failed=yes
17044else
17045  pkg_failed=yes
17046fi
17047 else
17048    pkg_failed=untried
17049fi
17050if test -n "$QT5_LIBS"; then
17051    pkg_cv_QT5_LIBS="$QT5_LIBS"
17052 elif test -n "$PKG_CONFIG"; then
17053    if test -n "$PKG_CONFIG" && \
17054    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Widgets Qt5Gui Qt5Core >= 5.0.0\""; } >&5
17055  ($PKG_CONFIG --exists --print-errors "Qt5Widgets Qt5Gui Qt5Core >= 5.0.0") 2>&5
17056  ac_status=$?
17057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17058  test $ac_status = 0; }; then
17059  pkg_cv_QT5_LIBS=`$PKG_CONFIG --libs "Qt5Widgets Qt5Gui Qt5Core >= 5.0.0" 2>/dev/null`
17060		      test "x$?" != "x0" && pkg_failed=yes
17061else
17062  pkg_failed=yes
17063fi
17064 else
17065    pkg_failed=untried
17066fi
17067
17068
17069
17070if test $pkg_failed = yes; then
17071   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17072$as_echo "no" >&6; }
17073
17074if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17075        _pkg_short_errors_supported=yes
17076else
17077        _pkg_short_errors_supported=no
17078fi
17079        if test $_pkg_short_errors_supported = yes; then
17080	        QT5_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Widgets Qt5Gui Qt5Core >= 5.0.0" 2>&1`
17081        else
17082	        QT5_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Widgets Qt5Gui Qt5Core >= 5.0.0" 2>&1`
17083        fi
17084	# Put the nasty error message in config.log where it belongs
17085	echo "$QT5_PKG_ERRORS" >&5
17086
17087
17088
17089			   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Qt5 files - unable to build xcwcp" >&5
17090$as_echo "$as_me: WARNING: Cannot find Qt5 files - unable to build xcwcp" >&2;}
17091
17092			   WITH_XCWCP='no'
17093
17094
17095elif test $pkg_failed = untried; then
17096     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17097$as_echo "no" >&6; }
17098
17099
17100			   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Qt5 files - unable to build xcwcp" >&5
17101$as_echo "$as_me: WARNING: Cannot find Qt5 files - unable to build xcwcp" >&2;}
17102
17103			   WITH_XCWCP='no'
17104
17105
17106else
17107	QT5_CFLAGS=$pkg_cv_QT5_CFLAGS
17108	QT5_LIBS=$pkg_cv_QT5_LIBS
17109        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17110$as_echo "yes" >&6; }
17111
17112			   for ac_prog in moc-qt5 moc
17113do
17114  # Extract the first word of "$ac_prog", so it can be a program name with args.
17115set dummy $ac_prog; ac_word=$2
17116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17117$as_echo_n "checking for $ac_word... " >&6; }
17118if ${ac_cv_path_MOC+:} false; then :
17119  $as_echo_n "(cached) " >&6
17120else
17121  case $MOC in
17122  [\\/]* | ?:[\\/]*)
17123  ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
17124  ;;
17125  *)
17126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17127for as_dir in `eval $PKG_CONFIG --variable=host_bins Qt5Core`
17128do
17129  IFS=$as_save_IFS
17130  test -z "$as_dir" && as_dir=.
17131    for ac_exec_ext in '' $ac_executable_extensions; do
17132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17133    ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
17134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17135    break 2
17136  fi
17137done
17138  done
17139IFS=$as_save_IFS
17140
17141  ;;
17142esac
17143fi
17144MOC=$ac_cv_path_MOC
17145if test -n "$MOC"; then
17146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
17147$as_echo "$MOC" >&6; }
17148else
17149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17150$as_echo "no" >&6; }
17151fi
17152
17153
17154  test -n "$MOC" && break
17155done
17156test -n "$MOC" || MOC="moc"
17157
17158
17159			   { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT5 CLFAGS is $QT5_CFLAGS" >&5
17160$as_echo "QT5 CLFAGS is $QT5_CFLAGS" >&6; }
17161			   { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT5 LIBS is $QT5_LIBS" >&5
17162$as_echo "QT5 LIBS is $QT5_LIBS" >&6; }
17163
17164
17165
17166
17167
17168			   WITH_XCWCP='yes'
17169
17170
17171fi
17172fi
17173
17174
17175
17176# Development support tools.
17177 if test "$enable_dev" = "yes"; then
17178  LIBCW_WITH_DEV_TRUE=
17179  LIBCW_WITH_DEV_FALSE='#'
17180else
17181  LIBCW_WITH_DEV_TRUE='#'
17182  LIBCW_WITH_DEV_FALSE=
17183fi
17184
17185if test "$enable_dev" = "yes" ; then
17186   WITH_DEV='yes'
17187
17188$as_echo "#define LIBCW_WITH_DEV 1" >>confdefs.h
17189
17190else
17191   WITH_DEV='no'
17192fi
17193
17194
17195if test "$WITH_DEV" = 'yes' ; then
17196    LIBCW_NDEBUG=""
17197else
17198    LIBCW_NDEBUG="-DNDEBUG"
17199fi
17200
17201
17202
17203
17204
17205
17206# #####
17207#  end
17208# #####
17209
17210
17211
17212# unixcw uses per-target linker object lists (target_LDADD)
17213LIBS=
17214
17215
17216
17217# Checks for header files
17218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17219$as_echo_n "checking for ANSI C header files... " >&6; }
17220if ${ac_cv_header_stdc+:} false; then :
17221  $as_echo_n "(cached) " >&6
17222else
17223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224/* end confdefs.h.  */
17225#include <stdlib.h>
17226#include <stdarg.h>
17227#include <string.h>
17228#include <float.h>
17229
17230int
17231main ()
17232{
17233
17234  ;
17235  return 0;
17236}
17237_ACEOF
17238if ac_fn_c_try_compile "$LINENO"; then :
17239  ac_cv_header_stdc=yes
17240else
17241  ac_cv_header_stdc=no
17242fi
17243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17244
17245if test $ac_cv_header_stdc = yes; then
17246  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248/* end confdefs.h.  */
17249#include <string.h>
17250
17251_ACEOF
17252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17253  $EGREP "memchr" >/dev/null 2>&1; then :
17254
17255else
17256  ac_cv_header_stdc=no
17257fi
17258rm -f conftest*
17259
17260fi
17261
17262if test $ac_cv_header_stdc = yes; then
17263  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265/* end confdefs.h.  */
17266#include <stdlib.h>
17267
17268_ACEOF
17269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17270  $EGREP "free" >/dev/null 2>&1; then :
17271
17272else
17273  ac_cv_header_stdc=no
17274fi
17275rm -f conftest*
17276
17277fi
17278
17279if test $ac_cv_header_stdc = yes; then
17280  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17281  if test "$cross_compiling" = yes; then :
17282  :
17283else
17284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17285/* end confdefs.h.  */
17286#include <ctype.h>
17287#include <stdlib.h>
17288#if ((' ' & 0x0FF) == 0x020)
17289# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17290# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17291#else
17292# define ISLOWER(c) \
17293		   (('a' <= (c) && (c) <= 'i') \
17294		     || ('j' <= (c) && (c) <= 'r') \
17295		     || ('s' <= (c) && (c) <= 'z'))
17296# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17297#endif
17298
17299#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17300int
17301main ()
17302{
17303  int i;
17304  for (i = 0; i < 256; i++)
17305    if (XOR (islower (i), ISLOWER (i))
17306	|| toupper (i) != TOUPPER (i))
17307      return 2;
17308  return 0;
17309}
17310_ACEOF
17311if ac_fn_c_try_run "$LINENO"; then :
17312
17313else
17314  ac_cv_header_stdc=no
17315fi
17316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17317  conftest.$ac_objext conftest.beam conftest.$ac_ext
17318fi
17319
17320fi
17321fi
17322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17323$as_echo "$ac_cv_header_stdc" >&6; }
17324if test $ac_cv_header_stdc = yes; then
17325
17326$as_echo "#define STDC_HEADERS 1" >>confdefs.h
17327
17328fi
17329
17330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17331$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17332if ${ac_cv_header_stdbool_h+:} false; then :
17333  $as_echo_n "(cached) " >&6
17334else
17335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336/* end confdefs.h.  */
17337
17338             #include <stdbool.h>
17339             #ifndef bool
17340              "error: bool is not defined"
17341             #endif
17342             #ifndef false
17343              "error: false is not defined"
17344             #endif
17345             #if false
17346              "error: false is not 0"
17347             #endif
17348             #ifndef true
17349              "error: true is not defined"
17350             #endif
17351             #if true != 1
17352              "error: true is not 1"
17353             #endif
17354             #ifndef __bool_true_false_are_defined
17355              "error: __bool_true_false_are_defined is not defined"
17356             #endif
17357
17358             struct s { _Bool s: 1; _Bool t; } s;
17359
17360             char a[true == 1 ? 1 : -1];
17361             char b[false == 0 ? 1 : -1];
17362             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17363             char d[(bool) 0.5 == true ? 1 : -1];
17364             /* See body of main program for 'e'.  */
17365             char f[(_Bool) 0.0 == false ? 1 : -1];
17366             char g[true];
17367             char h[sizeof (_Bool)];
17368             char i[sizeof s.t];
17369             enum { j = false, k = true, l = false * true, m = true * 256 };
17370             /* The following fails for
17371                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17372             _Bool n[m];
17373             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17374             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17375             /* Catch a bug in an HP-UX C compiler.  See
17376                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17377                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17378              */
17379             _Bool q = true;
17380             _Bool *pq = &q;
17381
17382int
17383main ()
17384{
17385
17386             bool e = &s;
17387             *pq |= q;
17388             *pq |= ! q;
17389             /* Refer to every declared value, to avoid compiler optimizations.  */
17390             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17391                     + !m + !n + !o + !p + !q + !pq);
17392
17393  ;
17394  return 0;
17395}
17396_ACEOF
17397if ac_fn_c_try_compile "$LINENO"; then :
17398  ac_cv_header_stdbool_h=yes
17399else
17400  ac_cv_header_stdbool_h=no
17401fi
17402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17403fi
17404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17405$as_echo "$ac_cv_header_stdbool_h" >&6; }
17406   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17407if test "x$ac_cv_type__Bool" = xyes; then :
17408
17409cat >>confdefs.h <<_ACEOF
17410#define HAVE__BOOL 1
17411_ACEOF
17412
17413
17414fi
17415
17416
17417if test $ac_cv_header_stdbool_h = yes; then
17418
17419$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
17420
17421fi
17422
17423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17424$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17425if ${ac_cv_header_time+:} false; then :
17426  $as_echo_n "(cached) " >&6
17427else
17428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429/* end confdefs.h.  */
17430#include <sys/types.h>
17431#include <sys/time.h>
17432#include <time.h>
17433
17434int
17435main ()
17436{
17437if ((struct tm *) 0)
17438return 0;
17439  ;
17440  return 0;
17441}
17442_ACEOF
17443if ac_fn_c_try_compile "$LINENO"; then :
17444  ac_cv_header_time=yes
17445else
17446  ac_cv_header_time=no
17447fi
17448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449fi
17450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17451$as_echo "$ac_cv_header_time" >&6; }
17452if test $ac_cv_header_time = yes; then
17453
17454$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17455
17456fi
17457
17458for ac_header in fcntl.h limits.h stdlib.h string.h strings.h sys/ioctl.h \
17459                  sys/param.h sys/time.h unistd.h locale.h libintl.h
17460do :
17461  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17462ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17463if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17464  cat >>confdefs.h <<_ACEOF
17465#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17466_ACEOF
17467
17468fi
17469
17470done
17471
17472for ac_header in getopt.h
17473do :
17474  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17475if test "x$ac_cv_header_getopt_h" = xyes; then :
17476  cat >>confdefs.h <<_ACEOF
17477#define HAVE_GETOPT_H 1
17478_ACEOF
17479
17480fi
17481
17482done
17483
17484for ac_header in string.h strings.h
17485do :
17486  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17487ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17488if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17489  cat >>confdefs.h <<_ACEOF
17490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17491_ACEOF
17492
17493fi
17494
17495done
17496
17497if test "$ac_cv_header_string_h" = 'no' \
17498    && test "$ac_cv_header_strings_h" = 'no' ; then
17499  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find either string.h or strings.h" >&5
17500$as_echo "$as_me: WARNING: Cannot find either string.h or strings.h" >&2;}
17501fi
17502
17503# Checks for typedefs, structures, and compiler characteristics.
17504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17505$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17506if ${ac_cv_c_const+:} false; then :
17507  $as_echo_n "(cached) " >&6
17508else
17509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510/* end confdefs.h.  */
17511
17512int
17513main ()
17514{
17515
17516#ifndef __cplusplus
17517  /* Ultrix mips cc rejects this sort of thing.  */
17518  typedef int charset[2];
17519  const charset cs = { 0, 0 };
17520  /* SunOS 4.1.1 cc rejects this.  */
17521  char const *const *pcpcc;
17522  char **ppc;
17523  /* NEC SVR4.0.2 mips cc rejects this.  */
17524  struct point {int x, y;};
17525  static struct point const zero = {0,0};
17526  /* AIX XL C 1.02.0.0 rejects this.
17527     It does not let you subtract one const X* pointer from another in
17528     an arm of an if-expression whose if-part is not a constant
17529     expression */
17530  const char *g = "string";
17531  pcpcc = &g + (g ? g-g : 0);
17532  /* HPUX 7.0 cc rejects these. */
17533  ++pcpcc;
17534  ppc = (char**) pcpcc;
17535  pcpcc = (char const *const *) ppc;
17536  { /* SCO 3.2v4 cc rejects this sort of thing.  */
17537    char tx;
17538    char *t = &tx;
17539    char const *s = 0 ? (char *) 0 : (char const *) 0;
17540
17541    *t++ = 0;
17542    if (s) return 0;
17543  }
17544  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17545    int x[] = {25, 17};
17546    const int *foo = &x[0];
17547    ++foo;
17548  }
17549  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17550    typedef const int *iptr;
17551    iptr p = 0;
17552    ++p;
17553  }
17554  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17555       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17556    struct s { int j; const int *ap[3]; } bx;
17557    struct s *b = &bx; b->j = 5;
17558  }
17559  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17560    const int foo = 10;
17561    if (!foo) return 0;
17562  }
17563  return !cs[0] && !zero.x;
17564#endif
17565
17566  ;
17567  return 0;
17568}
17569_ACEOF
17570if ac_fn_c_try_compile "$LINENO"; then :
17571  ac_cv_c_const=yes
17572else
17573  ac_cv_c_const=no
17574fi
17575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17576fi
17577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17578$as_echo "$ac_cv_c_const" >&6; }
17579if test $ac_cv_c_const = no; then
17580
17581$as_echo "#define const /**/" >>confdefs.h
17582
17583fi
17584
17585ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17586if test "x$ac_cv_type_size_t" = xyes; then :
17587
17588else
17589
17590cat >>confdefs.h <<_ACEOF
17591#define size_t unsigned int
17592_ACEOF
17593
17594fi
17595
17596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
17597$as_echo_n "checking for working volatile... " >&6; }
17598if ${ac_cv_c_volatile+:} false; then :
17599  $as_echo_n "(cached) " >&6
17600else
17601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602/* end confdefs.h.  */
17603
17604int
17605main ()
17606{
17607
17608volatile int x;
17609int * volatile y = (int *) 0;
17610return !x && !y;
17611  ;
17612  return 0;
17613}
17614_ACEOF
17615if ac_fn_c_try_compile "$LINENO"; then :
17616  ac_cv_c_volatile=yes
17617else
17618  ac_cv_c_volatile=no
17619fi
17620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621fi
17622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
17623$as_echo "$ac_cv_c_volatile" >&6; }
17624if test $ac_cv_c_volatile = no; then
17625
17626$as_echo "#define volatile /**/" >>confdefs.h
17627
17628fi
17629
17630if test $ac_cv_c_compiler_gnu = yes; then
17631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
17632$as_echo_n "checking whether $CC needs -traditional... " >&6; }
17633if ${ac_cv_prog_gcc_traditional+:} false; then :
17634  $as_echo_n "(cached) " >&6
17635else
17636    ac_pattern="Autoconf.*'x'"
17637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638/* end confdefs.h.  */
17639#include <sgtty.h>
17640Autoconf TIOCGETP
17641_ACEOF
17642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17643  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
17644  ac_cv_prog_gcc_traditional=yes
17645else
17646  ac_cv_prog_gcc_traditional=no
17647fi
17648rm -f conftest*
17649
17650
17651  if test $ac_cv_prog_gcc_traditional = no; then
17652    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653/* end confdefs.h.  */
17654#include <termio.h>
17655Autoconf TCGETA
17656_ACEOF
17657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17658  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
17659  ac_cv_prog_gcc_traditional=yes
17660fi
17661rm -f conftest*
17662
17663  fi
17664fi
17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
17666$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
17667  if test $ac_cv_prog_gcc_traditional = yes; then
17668    CC="$CC -traditional"
17669  fi
17670fi
17671
17672
17673# Checks for library functions.
17674for ac_header in stdlib.h
17675do :
17676  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17677if test "x$ac_cv_header_stdlib_h" = xyes; then :
17678  cat >>confdefs.h <<_ACEOF
17679#define HAVE_STDLIB_H 1
17680_ACEOF
17681
17682fi
17683
17684done
17685
17686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17687$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17688if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17689  $as_echo_n "(cached) " >&6
17690else
17691  if test "$cross_compiling" = yes; then :
17692  ac_cv_func_malloc_0_nonnull=no
17693else
17694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695/* end confdefs.h.  */
17696#if defined STDC_HEADERS || defined HAVE_STDLIB_H
17697# include <stdlib.h>
17698#else
17699char *malloc ();
17700#endif
17701
17702int
17703main ()
17704{
17705return ! malloc (0);
17706  ;
17707  return 0;
17708}
17709_ACEOF
17710if ac_fn_c_try_run "$LINENO"; then :
17711  ac_cv_func_malloc_0_nonnull=yes
17712else
17713  ac_cv_func_malloc_0_nonnull=no
17714fi
17715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17716  conftest.$ac_objext conftest.beam conftest.$ac_ext
17717fi
17718
17719fi
17720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17721$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17722if test $ac_cv_func_malloc_0_nonnull = yes; then :
17723
17724$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
17725
17726else
17727  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
17728
17729   case " $LIBOBJS " in
17730  *" malloc.$ac_objext "* ) ;;
17731  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
17732 ;;
17733esac
17734
17735
17736$as_echo "#define malloc rpl_malloc" >>confdefs.h
17737
17738fi
17739
17740
17741for ac_header in stdlib.h
17742do :
17743  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17744if test "x$ac_cv_header_stdlib_h" = xyes; then :
17745  cat >>confdefs.h <<_ACEOF
17746#define HAVE_STDLIB_H 1
17747_ACEOF
17748
17749fi
17750
17751done
17752
17753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
17754$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
17755if ${ac_cv_func_realloc_0_nonnull+:} false; then :
17756  $as_echo_n "(cached) " >&6
17757else
17758  if test "$cross_compiling" = yes; then :
17759  ac_cv_func_realloc_0_nonnull=no
17760else
17761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762/* end confdefs.h.  */
17763#if defined STDC_HEADERS || defined HAVE_STDLIB_H
17764# include <stdlib.h>
17765#else
17766char *realloc ();
17767#endif
17768
17769int
17770main ()
17771{
17772return ! realloc (0, 0);
17773  ;
17774  return 0;
17775}
17776_ACEOF
17777if ac_fn_c_try_run "$LINENO"; then :
17778  ac_cv_func_realloc_0_nonnull=yes
17779else
17780  ac_cv_func_realloc_0_nonnull=no
17781fi
17782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17783  conftest.$ac_objext conftest.beam conftest.$ac_ext
17784fi
17785
17786fi
17787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
17788$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
17789if test $ac_cv_func_realloc_0_nonnull = yes; then :
17790
17791$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
17792
17793else
17794  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
17795
17796   case " $LIBOBJS " in
17797  *" realloc.$ac_objext "* ) ;;
17798  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
17799 ;;
17800esac
17801
17802
17803$as_echo "#define realloc rpl_realloc" >>confdefs.h
17804
17805fi
17806
17807
17808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
17809$as_echo_n "checking for working strcoll... " >&6; }
17810if ${ac_cv_func_strcoll_works+:} false; then :
17811  $as_echo_n "(cached) " >&6
17812else
17813  if test "$cross_compiling" = yes; then :
17814  ac_cv_func_strcoll_works=no
17815else
17816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817/* end confdefs.h.  */
17818$ac_includes_default
17819int
17820main ()
17821{
17822return (strcoll ("abc", "def") >= 0 ||
17823	 strcoll ("ABC", "DEF") >= 0 ||
17824	 strcoll ("123", "456") >= 0)
17825  ;
17826  return 0;
17827}
17828_ACEOF
17829if ac_fn_c_try_run "$LINENO"; then :
17830  ac_cv_func_strcoll_works=yes
17831else
17832  ac_cv_func_strcoll_works=no
17833fi
17834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17835  conftest.$ac_objext conftest.beam conftest.$ac_ext
17836fi
17837
17838fi
17839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
17840$as_echo "$ac_cv_func_strcoll_works" >&6; }
17841if test $ac_cv_func_strcoll_works = yes; then
17842
17843$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
17844
17845fi
17846
17847for ac_func in vprintf
17848do :
17849  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
17850if test "x$ac_cv_func_vprintf" = xyes; then :
17851  cat >>confdefs.h <<_ACEOF
17852#define HAVE_VPRINTF 1
17853_ACEOF
17854
17855ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
17856if test "x$ac_cv_func__doprnt" = xyes; then :
17857
17858$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
17859
17860fi
17861
17862fi
17863done
17864
17865
17866for ac_func in floor gettimeofday memset sqrt strchr strdup strrchr \
17867                strtoul getopt_long setlocale memmove select strerror strspn
17868do :
17869  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17870ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17871if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17872  cat >>confdefs.h <<_ACEOF
17873#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17874_ACEOF
17875
17876fi
17877done
17878
17879for ac_header in sys/select.h sys/socket.h
17880do :
17881  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17882ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17884  cat >>confdefs.h <<_ACEOF
17885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17886_ACEOF
17887
17888fi
17889
17890done
17891
17892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
17893$as_echo_n "checking types of arguments for select... " >&6; }
17894if ${ac_cv_func_select_args+:} false; then :
17895  $as_echo_n "(cached) " >&6
17896else
17897  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
17898 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
17899  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
17900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901/* end confdefs.h.  */
17902$ac_includes_default
17903#ifdef HAVE_SYS_SELECT_H
17904# include <sys/select.h>
17905#endif
17906#ifdef HAVE_SYS_SOCKET_H
17907# include <sys/socket.h>
17908#endif
17909
17910int
17911main ()
17912{
17913extern int select ($ac_arg1,
17914					    $ac_arg234, $ac_arg234, $ac_arg234,
17915					    $ac_arg5);
17916  ;
17917  return 0;
17918}
17919_ACEOF
17920if ac_fn_c_try_compile "$LINENO"; then :
17921  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
17922fi
17923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924  done
17925 done
17926done
17927# Provide a safe default value.
17928: "${ac_cv_func_select_args=int,int *,struct timeval *}"
17929
17930fi
17931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
17932$as_echo "$ac_cv_func_select_args" >&6; }
17933ac_save_IFS=$IFS; IFS=','
17934set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
17935IFS=$ac_save_IFS
17936shift
17937
17938cat >>confdefs.h <<_ACEOF
17939#define SELECT_TYPE_ARG1 $1
17940_ACEOF
17941
17942
17943cat >>confdefs.h <<_ACEOF
17944#define SELECT_TYPE_ARG234 ($2)
17945_ACEOF
17946
17947
17948cat >>confdefs.h <<_ACEOF
17949#define SELECT_TYPE_ARG5 ($3)
17950_ACEOF
17951
17952rm -f conftest*
17953
17954
17955
17956
17957
17958# Decide on which subdirectories to build; substitute into SRC_SUBDIRS.
17959# Build cwcp if curses is available, and xcwcp if Qt is available.
17960SRC_SUBDIRS="libcw cwutils cw cwgen"
17961
17962if test "$WITH_CWCP" = 'yes' ; then
17963    SRC_SUBDIRS="$SRC_SUBDIRS cwcp"
17964fi
17965
17966if test "$WITH_XCWCP" = 'yes' ; then
17967    SRC_SUBDIRS="$SRC_SUBDIRS xcwcp"
17968fi
17969
17970
17971
17972
17973
17974# Used for debug purposes.
17975# CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O0/g'`
17976
17977
17978
17979# Add -Wall, -W, -pedantic, and other paranoia to gcc command flags, and -Wall
17980# to with a few suppressions to icc command flags, then similarly, though less
17981# so, for g++ and icpc.
17982if test "`basename $CC`" = "gcc" ; then
17983  CFLAGS="$CFLAGS -Wall -W -pedantic -Wfloat-equal -Wpointer-arith -std=gnu99"
17984  CFLAGS="$CFLAGS -Wcast-qual -Wwrite-strings -Wmissing-prototypes"
17985  CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-declarations -Wredundant-decls"
17986else
17987  if test "`basename $CC`" = "icc" ; then
17988    CFLAGS="$CFLAGS -Wall -wd181,188,279,383,593,810,981,1469"
17989  fi
17990fi
17991if test "`basename $CXX`" = "g++" ; then
17992  # -Wno-variadic-macros is to silence g++'s warnings about C99
17993  # variadic macros from libcw_debug.h
17994  CXXFLAGS="$CXXFLAGS -Wall -W -pedantic -Wno-long-long -Wno-variadic-macros"
17995else
17996  if test "`basename $CXX`" = "icpc" ; then
17997    CXXFLAGS="$CXXFLAGS -Wall -wd181,188,279,383,593,810,981,1469"
17998  fi
17999fi
18000
18001# Determine if -fPIC or -KPIC is available for building .so libraries.
18002# Because gcc complains about invalid flags, but then continues, we have to
18003# check by searching the compile stdout and stderr for any output.
18004if test -z "$CFLAG_PIC" ; then
18005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -KPIC or -fPIC compiler options" >&5
18006$as_echo_n "checking for -KPIC or -fPIC compiler options... " >&6; }
18007  cat >conftest.c <<-EOF
18008  int so_test() { return 0; }
18009EOF
18010  if $CC -fPIC -c conftest.c 2>&1 | egrep -q '.' ; then
18011    if $CC -KPIC -c conftest.c 2>&1 | egrep -q '.' ; then
18012      CFLAG_PIC=""
18013    else
18014      CFLAG_PIC="-KPIC"
18015    fi
18016  else
18017    CFLAG_PIC="-fPIC"
18018  fi
18019  rm -f conftest.c conftest.o
18020  if test -n "$CFLAG_PIC" ; then
18021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAG_PIC" >&5
18022$as_echo "$CFLAG_PIC" >&6; }
18023  else
18024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18025$as_echo "no" >&6; }
18026  fi
18027fi
18028
18029
18030# Determine if the C compiler builds DSO files, by testing with -shared.
18031CC_LINKS_SO="no"
18032if test -n "$CC" ; then
18033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc builds .so files with -shared" >&5
18034$as_echo_n "checking whether cc builds .so files with -shared... " >&6; }
18035  cat >conftest.c <<-EOF
18036  int so_test() { return 0; }
18037EOF
18038  $CC -c conftest.c >/dev/null 2>/dev/null
18039  $CC -shared -o conftest.so conftest.o >/dev/null 2>/dev/null
18040  rm -f conftest.c conftest.o
18041  if test -f conftest.so ; then
18042    nm conftest.so | grep -q so_test
18043    if test $? -eq 0 ; then
18044      CC_LINKS_SO="yes"
18045    fi
18046  fi
18047  rm -f conftest.so
18048  if test $CC_LINKS_SO = "yes" ; then
18049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18050$as_echo "yes" >&6; }
18051  else
18052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18053$as_echo "no" >&6; }
18054  fi
18055fi
18056
18057
18058# A linker might also build DSO files with -G, but we'll prefer to use the
18059# compiler if it will cooperate.
18060LD_LINKS_SO="no"
18061# Extract the first word of "ld", so it can be a program name with args.
18062set dummy ld; ac_word=$2
18063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18064$as_echo_n "checking for $ac_word... " >&6; }
18065if ${ac_cv_path_LD+:} false; then :
18066  $as_echo_n "(cached) " >&6
18067else
18068  case $LD in
18069  [\\/]* | ?:[\\/]*)
18070  ac_cv_path_LD="$LD" # Let the user override the test with a path.
18071  ;;
18072  *)
18073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18074for as_dir in $PATH
18075do
18076  IFS=$as_save_IFS
18077  test -z "$as_dir" && as_dir=.
18078    for ac_exec_ext in '' $ac_executable_extensions; do
18079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18080    ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
18081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18082    break 2
18083  fi
18084done
18085  done
18086IFS=$as_save_IFS
18087
18088  ;;
18089esac
18090fi
18091LD=$ac_cv_path_LD
18092if test -n "$LD"; then
18093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18094$as_echo "$LD" >&6; }
18095else
18096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18097$as_echo "no" >&6; }
18098fi
18099
18100
18101if test -n "$LD" ; then
18102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld builds .so files with -G" >&5
18103$as_echo_n "checking whether ld builds .so files with -G... " >&6; }
18104  cat >conftest.c <<-EOF
18105  int so_test() { return 0; }
18106EOF
18107  $CC -c conftest.c >/dev/null 2>/dev/null
18108  $LD -G -o conftest.so conftest.o >/dev/null 2>/dev/null
18109  rm -f conftest.c conftest.o
18110  if test -f conftest.so ; then
18111    nm conftest.so | grep -q so_test
18112    if test $? -eq 0 ; then
18113      LD_LINKS_SO="yes"
18114    fi
18115  fi
18116  rm -f conftest.so
18117  if test $LD_LINKS_SO = "yes" ; then
18118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18119$as_echo "yes" >&6; }
18120  else
18121    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18122$as_echo "no" >&6; }
18123  fi
18124else
18125  LD=":"
18126fi
18127
18128
18129
18130
18131
18132
18133
18134ac_config_files="$ac_config_files Makefile.inc Makefile src/Makefile src/libcw/Makefile src/libcw/tests/Makefile src/cwutils/Makefile src/cw/Makefile src/cwgen/Makefile"
18135
18136
18137if test "$WITH_CWCP" = 'yes' ; then
18138   ac_config_files="$ac_config_files src/cwcp/Makefile"
18139
18140fi
18141if test "$WITH_XCWCP" = 'yes' ; then
18142   ac_config_files="$ac_config_files src/xcwcp/Makefile"
18143
18144fi
18145
18146
18147
18148
18149
18150cat >confcache <<\_ACEOF
18151# This file is a shell script that caches the results of configure
18152# tests run on this system so they can be shared between configure
18153# scripts and configure runs, see configure's option --config-cache.
18154# It is not useful on other systems.  If it contains results you don't
18155# want to keep, you may remove or edit it.
18156#
18157# config.status only pays attention to the cache file if you give it
18158# the --recheck option to rerun configure.
18159#
18160# `ac_cv_env_foo' variables (set or unset) will be overridden when
18161# loading this file, other *unset* `ac_cv_foo' will be assigned the
18162# following values.
18163
18164_ACEOF
18165
18166# The following way of writing the cache mishandles newlines in values,
18167# but we know of no workaround that is simple, portable, and efficient.
18168# So, we kill variables containing newlines.
18169# Ultrix sh set writes to stderr and can't be redirected directly,
18170# and sets the high bit in the cache file unless we assign to the vars.
18171(
18172  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18173    eval ac_val=\$$ac_var
18174    case $ac_val in #(
18175    *${as_nl}*)
18176      case $ac_var in #(
18177      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18178$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18179      esac
18180      case $ac_var in #(
18181      _ | IFS | as_nl) ;; #(
18182      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18183      *) { eval $ac_var=; unset $ac_var;} ;;
18184      esac ;;
18185    esac
18186  done
18187
18188  (set) 2>&1 |
18189    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18190    *${as_nl}ac_space=\ *)
18191      # `set' does not quote correctly, so add quotes: double-quote
18192      # substitution turns \\\\ into \\, and sed turns \\ into \.
18193      sed -n \
18194	"s/'/'\\\\''/g;
18195	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18196      ;; #(
18197    *)
18198      # `set' quotes correctly as required by POSIX, so do not add quotes.
18199      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18200      ;;
18201    esac |
18202    sort
18203) |
18204  sed '
18205     /^ac_cv_env_/b end
18206     t clear
18207     :clear
18208     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18209     t end
18210     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18211     :end' >>confcache
18212if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18213  if test -w "$cache_file"; then
18214    if test "x$cache_file" != "x/dev/null"; then
18215      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18216$as_echo "$as_me: updating cache $cache_file" >&6;}
18217      if test ! -f "$cache_file" || test -h "$cache_file"; then
18218	cat confcache >"$cache_file"
18219      else
18220        case $cache_file in #(
18221        */* | ?:*)
18222	  mv -f confcache "$cache_file"$$ &&
18223	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18224        *)
18225	  mv -f confcache "$cache_file" ;;
18226	esac
18227      fi
18228    fi
18229  else
18230    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18231$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18232  fi
18233fi
18234rm -f confcache
18235
18236test "x$prefix" = xNONE && prefix=$ac_default_prefix
18237# Let make expand exec_prefix.
18238test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18239
18240DEFS=-DHAVE_CONFIG_H
18241
18242ac_libobjs=
18243ac_ltlibobjs=
18244U=
18245for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18246  # 1. Remove the extension, and $U if already installed.
18247  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18248  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18249  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18250  #    will be set to the directory where LIBOBJS objects are built.
18251  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18252  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18253done
18254LIBOBJS=$ac_libobjs
18255
18256LTLIBOBJS=$ac_ltlibobjs
18257
18258
18259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18260$as_echo_n "checking that generated files are newer than configure... " >&6; }
18261   if test -n "$am_sleep_pid"; then
18262     # Hide warnings about reused PIDs.
18263     wait $am_sleep_pid 2>/dev/null
18264   fi
18265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18266$as_echo "done" >&6; }
18267 if test -n "$EXEEXT"; then
18268  am__EXEEXT_TRUE=
18269  am__EXEEXT_FALSE='#'
18270else
18271  am__EXEEXT_TRUE='#'
18272  am__EXEEXT_FALSE=
18273fi
18274
18275if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18276  as_fn_error $? "conditional \"AMDEP\" was never defined.
18277Usually this means the macro was only invoked conditionally." "$LINENO" 5
18278fi
18279if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18280  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18281Usually this means the macro was only invoked conditionally." "$LINENO" 5
18282fi
18283if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18284  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18285Usually this means the macro was only invoked conditionally." "$LINENO" 5
18286fi
18287if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18288  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18289Usually this means the macro was only invoked conditionally." "$LINENO" 5
18290fi
18291if test -z "${HOST_IS_FREEBSD_TRUE}" && test -z "${HOST_IS_FREEBSD_FALSE}"; then
18292  as_fn_error $? "conditional \"HOST_IS_FREEBSD\" was never defined.
18293Usually this means the macro was only invoked conditionally." "$LINENO" 5
18294fi
18295if test -z "${LIBCW_WITH_DEV_TRUE}" && test -z "${LIBCW_WITH_DEV_FALSE}"; then
18296  as_fn_error $? "conditional \"LIBCW_WITH_DEV\" was never defined.
18297Usually this means the macro was only invoked conditionally." "$LINENO" 5
18298fi
18299
18300: "${CONFIG_STATUS=./config.status}"
18301ac_write_fail=0
18302ac_clean_files_save=$ac_clean_files
18303ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18304{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18305$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18306as_write_fail=0
18307cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18308#! $SHELL
18309# Generated by $as_me.
18310# Run this file to recreate the current configuration.
18311# Compiler output produced by configure, useful for debugging
18312# configure, is in config.log if it exists.
18313
18314debug=false
18315ac_cs_recheck=false
18316ac_cs_silent=false
18317
18318SHELL=\${CONFIG_SHELL-$SHELL}
18319export SHELL
18320_ASEOF
18321cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18322## -------------------- ##
18323## M4sh Initialization. ##
18324## -------------------- ##
18325
18326# Be more Bourne compatible
18327DUALCASE=1; export DUALCASE # for MKS sh
18328if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18329  emulate sh
18330  NULLCMD=:
18331  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18332  # is contrary to our usage.  Disable this feature.
18333  alias -g '${1+"$@"}'='"$@"'
18334  setopt NO_GLOB_SUBST
18335else
18336  case `(set -o) 2>/dev/null` in #(
18337  *posix*) :
18338    set -o posix ;; #(
18339  *) :
18340     ;;
18341esac
18342fi
18343
18344
18345as_nl='
18346'
18347export as_nl
18348# Printing a long string crashes Solaris 7 /usr/bin/printf.
18349as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18350as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18351as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18352# Prefer a ksh shell builtin over an external printf program on Solaris,
18353# but without wasting forks for bash or zsh.
18354if test -z "$BASH_VERSION$ZSH_VERSION" \
18355    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18356  as_echo='print -r --'
18357  as_echo_n='print -rn --'
18358elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18359  as_echo='printf %s\n'
18360  as_echo_n='printf %s'
18361else
18362  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18363    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18364    as_echo_n='/usr/ucb/echo -n'
18365  else
18366    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18367    as_echo_n_body='eval
18368      arg=$1;
18369      case $arg in #(
18370      *"$as_nl"*)
18371	expr "X$arg" : "X\\(.*\\)$as_nl";
18372	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18373      esac;
18374      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18375    '
18376    export as_echo_n_body
18377    as_echo_n='sh -c $as_echo_n_body as_echo'
18378  fi
18379  export as_echo_body
18380  as_echo='sh -c $as_echo_body as_echo'
18381fi
18382
18383# The user is always right.
18384if test "${PATH_SEPARATOR+set}" != set; then
18385  PATH_SEPARATOR=:
18386  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18387    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18388      PATH_SEPARATOR=';'
18389  }
18390fi
18391
18392
18393# IFS
18394# We need space, tab and new line, in precisely that order.  Quoting is
18395# there to prevent editors from complaining about space-tab.
18396# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18397# splitting by setting IFS to empty value.)
18398IFS=" ""	$as_nl"
18399
18400# Find who we are.  Look in the path if we contain no directory separator.
18401as_myself=
18402case $0 in #((
18403  *[\\/]* ) as_myself=$0 ;;
18404  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18405for as_dir in $PATH
18406do
18407  IFS=$as_save_IFS
18408  test -z "$as_dir" && as_dir=.
18409    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18410  done
18411IFS=$as_save_IFS
18412
18413     ;;
18414esac
18415# We did not find ourselves, most probably we were run as `sh COMMAND'
18416# in which case we are not to be found in the path.
18417if test "x$as_myself" = x; then
18418  as_myself=$0
18419fi
18420if test ! -f "$as_myself"; then
18421  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18422  exit 1
18423fi
18424
18425# Unset variables that we do not need and which cause bugs (e.g. in
18426# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18427# suppresses any "Segmentation fault" message there.  '((' could
18428# trigger a bug in pdksh 5.2.14.
18429for as_var in BASH_ENV ENV MAIL MAILPATH
18430do eval test x\${$as_var+set} = xset \
18431  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18432done
18433PS1='$ '
18434PS2='> '
18435PS4='+ '
18436
18437# NLS nuisances.
18438LC_ALL=C
18439export LC_ALL
18440LANGUAGE=C
18441export LANGUAGE
18442
18443# CDPATH.
18444(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18445
18446
18447# as_fn_error STATUS ERROR [LINENO LOG_FD]
18448# ----------------------------------------
18449# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18450# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18451# script with STATUS, using 1 if that was 0.
18452as_fn_error ()
18453{
18454  as_status=$1; test $as_status -eq 0 && as_status=1
18455  if test "$4"; then
18456    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18457    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18458  fi
18459  $as_echo "$as_me: error: $2" >&2
18460  as_fn_exit $as_status
18461} # as_fn_error
18462
18463
18464# as_fn_set_status STATUS
18465# -----------------------
18466# Set $? to STATUS, without forking.
18467as_fn_set_status ()
18468{
18469  return $1
18470} # as_fn_set_status
18471
18472# as_fn_exit STATUS
18473# -----------------
18474# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18475as_fn_exit ()
18476{
18477  set +e
18478  as_fn_set_status $1
18479  exit $1
18480} # as_fn_exit
18481
18482# as_fn_unset VAR
18483# ---------------
18484# Portably unset VAR.
18485as_fn_unset ()
18486{
18487  { eval $1=; unset $1;}
18488}
18489as_unset=as_fn_unset
18490# as_fn_append VAR VALUE
18491# ----------------------
18492# Append the text in VALUE to the end of the definition contained in VAR. Take
18493# advantage of any shell optimizations that allow amortized linear growth over
18494# repeated appends, instead of the typical quadratic growth present in naive
18495# implementations.
18496if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18497  eval 'as_fn_append ()
18498  {
18499    eval $1+=\$2
18500  }'
18501else
18502  as_fn_append ()
18503  {
18504    eval $1=\$$1\$2
18505  }
18506fi # as_fn_append
18507
18508# as_fn_arith ARG...
18509# ------------------
18510# Perform arithmetic evaluation on the ARGs, and store the result in the
18511# global $as_val. Take advantage of shells that can avoid forks. The arguments
18512# must be portable across $(()) and expr.
18513if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18514  eval 'as_fn_arith ()
18515  {
18516    as_val=$(( $* ))
18517  }'
18518else
18519  as_fn_arith ()
18520  {
18521    as_val=`expr "$@" || test $? -eq 1`
18522  }
18523fi # as_fn_arith
18524
18525
18526if expr a : '\(a\)' >/dev/null 2>&1 &&
18527   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18528  as_expr=expr
18529else
18530  as_expr=false
18531fi
18532
18533if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18534  as_basename=basename
18535else
18536  as_basename=false
18537fi
18538
18539if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18540  as_dirname=dirname
18541else
18542  as_dirname=false
18543fi
18544
18545as_me=`$as_basename -- "$0" ||
18546$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18547	 X"$0" : 'X\(//\)$' \| \
18548	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18549$as_echo X/"$0" |
18550    sed '/^.*\/\([^/][^/]*\)\/*$/{
18551	    s//\1/
18552	    q
18553	  }
18554	  /^X\/\(\/\/\)$/{
18555	    s//\1/
18556	    q
18557	  }
18558	  /^X\/\(\/\).*/{
18559	    s//\1/
18560	    q
18561	  }
18562	  s/.*/./; q'`
18563
18564# Avoid depending upon Character Ranges.
18565as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18566as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18567as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18568as_cr_digits='0123456789'
18569as_cr_alnum=$as_cr_Letters$as_cr_digits
18570
18571ECHO_C= ECHO_N= ECHO_T=
18572case `echo -n x` in #(((((
18573-n*)
18574  case `echo 'xy\c'` in
18575  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18576  xy)  ECHO_C='\c';;
18577  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18578       ECHO_T='	';;
18579  esac;;
18580*)
18581  ECHO_N='-n';;
18582esac
18583
18584rm -f conf$$ conf$$.exe conf$$.file
18585if test -d conf$$.dir; then
18586  rm -f conf$$.dir/conf$$.file
18587else
18588  rm -f conf$$.dir
18589  mkdir conf$$.dir 2>/dev/null
18590fi
18591if (echo >conf$$.file) 2>/dev/null; then
18592  if ln -s conf$$.file conf$$ 2>/dev/null; then
18593    as_ln_s='ln -s'
18594    # ... but there are two gotchas:
18595    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18596    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18597    # In both cases, we have to default to `cp -pR'.
18598    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18599      as_ln_s='cp -pR'
18600  elif ln conf$$.file conf$$ 2>/dev/null; then
18601    as_ln_s=ln
18602  else
18603    as_ln_s='cp -pR'
18604  fi
18605else
18606  as_ln_s='cp -pR'
18607fi
18608rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18609rmdir conf$$.dir 2>/dev/null
18610
18611
18612# as_fn_mkdir_p
18613# -------------
18614# Create "$as_dir" as a directory, including parents if necessary.
18615as_fn_mkdir_p ()
18616{
18617
18618  case $as_dir in #(
18619  -*) as_dir=./$as_dir;;
18620  esac
18621  test -d "$as_dir" || eval $as_mkdir_p || {
18622    as_dirs=
18623    while :; do
18624      case $as_dir in #(
18625      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18626      *) as_qdir=$as_dir;;
18627      esac
18628      as_dirs="'$as_qdir' $as_dirs"
18629      as_dir=`$as_dirname -- "$as_dir" ||
18630$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18631	 X"$as_dir" : 'X\(//\)[^/]' \| \
18632	 X"$as_dir" : 'X\(//\)$' \| \
18633	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18634$as_echo X"$as_dir" |
18635    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18636	    s//\1/
18637	    q
18638	  }
18639	  /^X\(\/\/\)[^/].*/{
18640	    s//\1/
18641	    q
18642	  }
18643	  /^X\(\/\/\)$/{
18644	    s//\1/
18645	    q
18646	  }
18647	  /^X\(\/\).*/{
18648	    s//\1/
18649	    q
18650	  }
18651	  s/.*/./; q'`
18652      test -d "$as_dir" && break
18653    done
18654    test -z "$as_dirs" || eval "mkdir $as_dirs"
18655  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18656
18657
18658} # as_fn_mkdir_p
18659if mkdir -p . 2>/dev/null; then
18660  as_mkdir_p='mkdir -p "$as_dir"'
18661else
18662  test -d ./-p && rmdir ./-p
18663  as_mkdir_p=false
18664fi
18665
18666
18667# as_fn_executable_p FILE
18668# -----------------------
18669# Test if FILE is an executable regular file.
18670as_fn_executable_p ()
18671{
18672  test -f "$1" && test -x "$1"
18673} # as_fn_executable_p
18674as_test_x='test -x'
18675as_executable_p=as_fn_executable_p
18676
18677# Sed expression to map a string onto a valid CPP name.
18678as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18679
18680# Sed expression to map a string onto a valid variable name.
18681as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18682
18683
18684exec 6>&1
18685## ----------------------------------- ##
18686## Main body of $CONFIG_STATUS script. ##
18687## ----------------------------------- ##
18688_ASEOF
18689test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18690
18691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18692# Save the log message, to keep $0 and so on meaningful, and to
18693# report actual input values of CONFIG_FILES etc. instead of their
18694# values after options handling.
18695ac_log="
18696This file was extended by unixcw $as_me 3.5.1, which was
18697generated by GNU Autoconf 2.69.  Invocation command line was
18698
18699  CONFIG_FILES    = $CONFIG_FILES
18700  CONFIG_HEADERS  = $CONFIG_HEADERS
18701  CONFIG_LINKS    = $CONFIG_LINKS
18702  CONFIG_COMMANDS = $CONFIG_COMMANDS
18703  $ $0 $@
18704
18705on `(hostname || uname -n) 2>/dev/null | sed 1q`
18706"
18707
18708_ACEOF
18709
18710case $ac_config_files in *"
18711"*) set x $ac_config_files; shift; ac_config_files=$*;;
18712esac
18713
18714case $ac_config_headers in *"
18715"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18716esac
18717
18718
18719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18720# Files that config.status was made for.
18721config_files="$ac_config_files"
18722config_headers="$ac_config_headers"
18723config_commands="$ac_config_commands"
18724
18725_ACEOF
18726
18727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18728ac_cs_usage="\
18729\`$as_me' instantiates files and other configuration actions
18730from templates according to the current configuration.  Unless the files
18731and actions are specified as TAGs, all are instantiated by default.
18732
18733Usage: $0 [OPTION]... [TAG]...
18734
18735  -h, --help       print this help, then exit
18736  -V, --version    print version number and configuration settings, then exit
18737      --config     print configuration, then exit
18738  -q, --quiet, --silent
18739                   do not print progress messages
18740  -d, --debug      don't remove temporary files
18741      --recheck    update $as_me by reconfiguring in the same conditions
18742      --file=FILE[:TEMPLATE]
18743                   instantiate the configuration file FILE
18744      --header=FILE[:TEMPLATE]
18745                   instantiate the configuration header FILE
18746
18747Configuration files:
18748$config_files
18749
18750Configuration headers:
18751$config_headers
18752
18753Configuration commands:
18754$config_commands
18755
18756Report bugs to the package provider."
18757
18758_ACEOF
18759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18760ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18761ac_cs_version="\\
18762unixcw config.status 3.5.1
18763configured by $0, generated by GNU Autoconf 2.69,
18764  with options \\"\$ac_cs_config\\"
18765
18766Copyright (C) 2012 Free Software Foundation, Inc.
18767This config.status script is free software; the Free Software Foundation
18768gives unlimited permission to copy, distribute and modify it."
18769
18770ac_pwd='$ac_pwd'
18771srcdir='$srcdir'
18772INSTALL='$INSTALL'
18773MKDIR_P='$MKDIR_P'
18774AWK='$AWK'
18775test -n "\$AWK" || AWK=awk
18776_ACEOF
18777
18778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18779# The default lists apply if the user does not specify any file.
18780ac_need_defaults=:
18781while test $# != 0
18782do
18783  case $1 in
18784  --*=?*)
18785    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18786    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18787    ac_shift=:
18788    ;;
18789  --*=)
18790    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18791    ac_optarg=
18792    ac_shift=:
18793    ;;
18794  *)
18795    ac_option=$1
18796    ac_optarg=$2
18797    ac_shift=shift
18798    ;;
18799  esac
18800
18801  case $ac_option in
18802  # Handling of the options.
18803  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18804    ac_cs_recheck=: ;;
18805  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18806    $as_echo "$ac_cs_version"; exit ;;
18807  --config | --confi | --conf | --con | --co | --c )
18808    $as_echo "$ac_cs_config"; exit ;;
18809  --debug | --debu | --deb | --de | --d | -d )
18810    debug=: ;;
18811  --file | --fil | --fi | --f )
18812    $ac_shift
18813    case $ac_optarg in
18814    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18815    '') as_fn_error $? "missing file argument" ;;
18816    esac
18817    as_fn_append CONFIG_FILES " '$ac_optarg'"
18818    ac_need_defaults=false;;
18819  --header | --heade | --head | --hea )
18820    $ac_shift
18821    case $ac_optarg in
18822    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18823    esac
18824    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18825    ac_need_defaults=false;;
18826  --he | --h)
18827    # Conflict between --help and --header
18828    as_fn_error $? "ambiguous option: \`$1'
18829Try \`$0 --help' for more information.";;
18830  --help | --hel | -h )
18831    $as_echo "$ac_cs_usage"; exit ;;
18832  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18833  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18834    ac_cs_silent=: ;;
18835
18836  # This is an error.
18837  -*) as_fn_error $? "unrecognized option: \`$1'
18838Try \`$0 --help' for more information." ;;
18839
18840  *) as_fn_append ac_config_targets " $1"
18841     ac_need_defaults=false ;;
18842
18843  esac
18844  shift
18845done
18846
18847ac_configure_extra_args=
18848
18849if $ac_cs_silent; then
18850  exec 6>/dev/null
18851  ac_configure_extra_args="$ac_configure_extra_args --silent"
18852fi
18853
18854_ACEOF
18855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18856if \$ac_cs_recheck; then
18857  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18858  shift
18859  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18860  CONFIG_SHELL='$SHELL'
18861  export CONFIG_SHELL
18862  exec "\$@"
18863fi
18864
18865_ACEOF
18866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18867exec 5>>config.log
18868{
18869  echo
18870  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18871## Running $as_me. ##
18872_ASBOX
18873  $as_echo "$ac_log"
18874} >&5
18875
18876_ACEOF
18877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18878#
18879# INIT-COMMANDS
18880#
18881AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18882
18883
18884# The HP-UX ksh and POSIX shell print the target directory to stdout
18885# if CDPATH is set.
18886(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18887
18888sed_quote_subst='$sed_quote_subst'
18889double_quote_subst='$double_quote_subst'
18890delay_variable_subst='$delay_variable_subst'
18891macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18892macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18893enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18894enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18895pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18896enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18897SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18898ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18899PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18900host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18901host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18902host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18903build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18904build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18905build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18906SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18907Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18908GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18909EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18910FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18911LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18912NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18913LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18914max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18915ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18916exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18917lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18918lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18919lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18920lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18921lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18922reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18923reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18924OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18925deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18926file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18927file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18928want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18929DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18930sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18931AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18932AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18933archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18934STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18935RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18936old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18937old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18938old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18939lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18940CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18941CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18942compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18943GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18944lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18945lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18946lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18947lt_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"`'
18948nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18949lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18950objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18951MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18952lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18953lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18954lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18955lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18956lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18957need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18958MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18959DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18960NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18961LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18962OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18963OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18964libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18965shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18966extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18967archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18968enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18969export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18970whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18971compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18972old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18973old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18974archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18975archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18976module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18977module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18978with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18979allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18980no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18981hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18982hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18983hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18984hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18985hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18986hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18987hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18988inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18989link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18990always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18991export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18992exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18993include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18994prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18995postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18996file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18997variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18998need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18999need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19000version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19001runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19002shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19003shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19004libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19005library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19006soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19007install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19008postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19009postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19010finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19011finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19012hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19013sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19014sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19015hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19016enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19017enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19018enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19019old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19020striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19021compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19022predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19023postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19024predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19025postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19026compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19027LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19028reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19029reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19030old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19031compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19032GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19033lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19034lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19035lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19036lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19037lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19038archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19039enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19040export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19041whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19042compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19043old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19044old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19045archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19046archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19047module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19048module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19049with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19050allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19051no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19052hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19053hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19054hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19055hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19056hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19057hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19058hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19059inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19060link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19061always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19062export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19063exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19064include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19065prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19066postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19067file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19068hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19069compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19070predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19071postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19072predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19073postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19074compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19075
19076LTCC='$LTCC'
19077LTCFLAGS='$LTCFLAGS'
19078compiler='$compiler_DEFAULT'
19079
19080# A function that is used when there is no print builtin or printf.
19081func_fallback_echo ()
19082{
19083  eval 'cat <<_LTECHO_EOF
19084\$1
19085_LTECHO_EOF'
19086}
19087
19088# Quote evaled strings.
19089for var in SHELL \
19090ECHO \
19091PATH_SEPARATOR \
19092SED \
19093GREP \
19094EGREP \
19095FGREP \
19096LD \
19097NM \
19098LN_S \
19099lt_SP2NL \
19100lt_NL2SP \
19101reload_flag \
19102OBJDUMP \
19103deplibs_check_method \
19104file_magic_cmd \
19105file_magic_glob \
19106want_nocaseglob \
19107DLLTOOL \
19108sharedlib_from_linklib_cmd \
19109AR \
19110AR_FLAGS \
19111archiver_list_spec \
19112STRIP \
19113RANLIB \
19114CC \
19115CFLAGS \
19116compiler \
19117lt_cv_sys_global_symbol_pipe \
19118lt_cv_sys_global_symbol_to_cdecl \
19119lt_cv_sys_global_symbol_to_c_name_address \
19120lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19121nm_file_list_spec \
19122lt_prog_compiler_no_builtin_flag \
19123lt_prog_compiler_pic \
19124lt_prog_compiler_wl \
19125lt_prog_compiler_static \
19126lt_cv_prog_compiler_c_o \
19127need_locks \
19128MANIFEST_TOOL \
19129DSYMUTIL \
19130NMEDIT \
19131LIPO \
19132OTOOL \
19133OTOOL64 \
19134shrext_cmds \
19135export_dynamic_flag_spec \
19136whole_archive_flag_spec \
19137compiler_needs_object \
19138with_gnu_ld \
19139allow_undefined_flag \
19140no_undefined_flag \
19141hardcode_libdir_flag_spec \
19142hardcode_libdir_separator \
19143exclude_expsyms \
19144include_expsyms \
19145file_list_spec \
19146variables_saved_for_relink \
19147libname_spec \
19148library_names_spec \
19149soname_spec \
19150install_override_mode \
19151finish_eval \
19152old_striplib \
19153striplib \
19154compiler_lib_search_dirs \
19155predep_objects \
19156postdep_objects \
19157predeps \
19158postdeps \
19159compiler_lib_search_path \
19160LD_CXX \
19161reload_flag_CXX \
19162compiler_CXX \
19163lt_prog_compiler_no_builtin_flag_CXX \
19164lt_prog_compiler_pic_CXX \
19165lt_prog_compiler_wl_CXX \
19166lt_prog_compiler_static_CXX \
19167lt_cv_prog_compiler_c_o_CXX \
19168export_dynamic_flag_spec_CXX \
19169whole_archive_flag_spec_CXX \
19170compiler_needs_object_CXX \
19171with_gnu_ld_CXX \
19172allow_undefined_flag_CXX \
19173no_undefined_flag_CXX \
19174hardcode_libdir_flag_spec_CXX \
19175hardcode_libdir_separator_CXX \
19176exclude_expsyms_CXX \
19177include_expsyms_CXX \
19178file_list_spec_CXX \
19179compiler_lib_search_dirs_CXX \
19180predep_objects_CXX \
19181postdep_objects_CXX \
19182predeps_CXX \
19183postdeps_CXX \
19184compiler_lib_search_path_CXX; do
19185    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19186    *[\\\\\\\`\\"\\\$]*)
19187      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19188      ;;
19189    *)
19190      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19191      ;;
19192    esac
19193done
19194
19195# Double-quote double-evaled strings.
19196for var in reload_cmds \
19197old_postinstall_cmds \
19198old_postuninstall_cmds \
19199old_archive_cmds \
19200extract_expsyms_cmds \
19201old_archive_from_new_cmds \
19202old_archive_from_expsyms_cmds \
19203archive_cmds \
19204archive_expsym_cmds \
19205module_cmds \
19206module_expsym_cmds \
19207export_symbols_cmds \
19208prelink_cmds \
19209postlink_cmds \
19210postinstall_cmds \
19211postuninstall_cmds \
19212finish_cmds \
19213sys_lib_search_path_spec \
19214sys_lib_dlsearch_path_spec \
19215reload_cmds_CXX \
19216old_archive_cmds_CXX \
19217old_archive_from_new_cmds_CXX \
19218old_archive_from_expsyms_cmds_CXX \
19219archive_cmds_CXX \
19220archive_expsym_cmds_CXX \
19221module_cmds_CXX \
19222module_expsym_cmds_CXX \
19223export_symbols_cmds_CXX \
19224prelink_cmds_CXX \
19225postlink_cmds_CXX; do
19226    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19227    *[\\\\\\\`\\"\\\$]*)
19228      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19229      ;;
19230    *)
19231      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19232      ;;
19233    esac
19234done
19235
19236ac_aux_dir='$ac_aux_dir'
19237xsi_shell='$xsi_shell'
19238lt_shell_append='$lt_shell_append'
19239
19240# See if we are running on zsh, and set the options which allow our
19241# commands through without removal of \ escapes INIT.
19242if test -n "\${ZSH_VERSION+set}" ; then
19243   setopt NO_GLOB_SUBST
19244fi
19245
19246
19247    PACKAGE='$PACKAGE'
19248    VERSION='$VERSION'
19249    TIMESTAMP='$TIMESTAMP'
19250    RM='$RM'
19251    ofile='$ofile'
19252
19253
19254
19255
19256
19257
19258_ACEOF
19259
19260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19261
19262# Handling of arguments.
19263for ac_config_target in $ac_config_targets
19264do
19265  case $ac_config_target in
19266    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19267    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19268    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19269    "src/libcw/libcw.pc") CONFIG_FILES="$CONFIG_FILES src/libcw/libcw.pc" ;;
19270    "Makefile.inc") CONFIG_FILES="$CONFIG_FILES Makefile.inc" ;;
19271    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19272    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19273    "src/libcw/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcw/Makefile" ;;
19274    "src/libcw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcw/tests/Makefile" ;;
19275    "src/cwutils/Makefile") CONFIG_FILES="$CONFIG_FILES src/cwutils/Makefile" ;;
19276    "src/cw/Makefile") CONFIG_FILES="$CONFIG_FILES src/cw/Makefile" ;;
19277    "src/cwgen/Makefile") CONFIG_FILES="$CONFIG_FILES src/cwgen/Makefile" ;;
19278    "src/cwcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/cwcp/Makefile" ;;
19279    "src/xcwcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcwcp/Makefile" ;;
19280
19281  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19282  esac
19283done
19284
19285
19286# If the user did not use the arguments to specify the items to instantiate,
19287# then the envvar interface is used.  Set only those that are not.
19288# We use the long form for the default assignment because of an extremely
19289# bizarre bug on SunOS 4.1.3.
19290if $ac_need_defaults; then
19291  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19292  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19293  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19294fi
19295
19296# Have a temporary directory for convenience.  Make it in the build tree
19297# simply because there is no reason against having it here, and in addition,
19298# creating and moving files from /tmp can sometimes cause problems.
19299# Hook for its removal unless debugging.
19300# Note that there is a small window in which the directory will not be cleaned:
19301# after its creation but before its name has been assigned to `$tmp'.
19302$debug ||
19303{
19304  tmp= ac_tmp=
19305  trap 'exit_status=$?
19306  : "${ac_tmp:=$tmp}"
19307  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19308' 0
19309  trap 'as_fn_exit 1' 1 2 13 15
19310}
19311# Create a (secure) tmp directory for tmp files.
19312
19313{
19314  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19315  test -d "$tmp"
19316}  ||
19317{
19318  tmp=./conf$$-$RANDOM
19319  (umask 077 && mkdir "$tmp")
19320} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19321ac_tmp=$tmp
19322
19323# Set up the scripts for CONFIG_FILES section.
19324# No need to generate them if there are no CONFIG_FILES.
19325# This happens for instance with `./config.status config.h'.
19326if test -n "$CONFIG_FILES"; then
19327
19328
19329ac_cr=`echo X | tr X '\015'`
19330# On cygwin, bash can eat \r inside `` if the user requested igncr.
19331# But we know of no other shell where ac_cr would be empty at this
19332# point, so we can use a bashism as a fallback.
19333if test "x$ac_cr" = x; then
19334  eval ac_cr=\$\'\\r\'
19335fi
19336ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19337if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19338  ac_cs_awk_cr='\\r'
19339else
19340  ac_cs_awk_cr=$ac_cr
19341fi
19342
19343echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19344_ACEOF
19345
19346
19347{
19348  echo "cat >conf$$subs.awk <<_ACEOF" &&
19349  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19350  echo "_ACEOF"
19351} >conf$$subs.sh ||
19352  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19353ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19354ac_delim='%!_!# '
19355for ac_last_try in false false false false false :; do
19356  . ./conf$$subs.sh ||
19357    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19358
19359  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19360  if test $ac_delim_n = $ac_delim_num; then
19361    break
19362  elif $ac_last_try; then
19363    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19364  else
19365    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19366  fi
19367done
19368rm -f conf$$subs.sh
19369
19370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19371cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19372_ACEOF
19373sed -n '
19374h
19375s/^/S["/; s/!.*/"]=/
19376p
19377g
19378s/^[^!]*!//
19379:repl
19380t repl
19381s/'"$ac_delim"'$//
19382t delim
19383:nl
19384h
19385s/\(.\{148\}\)..*/\1/
19386t more1
19387s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19388p
19389n
19390b repl
19391:more1
19392s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19393p
19394g
19395s/.\{148\}//
19396t nl
19397:delim
19398h
19399s/\(.\{148\}\)..*/\1/
19400t more2
19401s/["\\]/\\&/g; s/^/"/; s/$/"/
19402p
19403b
19404:more2
19405s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19406p
19407g
19408s/.\{148\}//
19409t delim
19410' <conf$$subs.awk | sed '
19411/^[^""]/{
19412  N
19413  s/\n//
19414}
19415' >>$CONFIG_STATUS || ac_write_fail=1
19416rm -f conf$$subs.awk
19417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19418_ACAWK
19419cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19420  for (key in S) S_is_set[key] = 1
19421  FS = ""
19422
19423}
19424{
19425  line = $ 0
19426  nfields = split(line, field, "@")
19427  substed = 0
19428  len = length(field[1])
19429  for (i = 2; i < nfields; i++) {
19430    key = field[i]
19431    keylen = length(key)
19432    if (S_is_set[key]) {
19433      value = S[key]
19434      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19435      len += length(value) + length(field[++i])
19436      substed = 1
19437    } else
19438      len += 1 + keylen
19439  }
19440
19441  print line
19442}
19443
19444_ACAWK
19445_ACEOF
19446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19447if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19448  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19449else
19450  cat
19451fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19452  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19453_ACEOF
19454
19455# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19456# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19457# trailing colons and then remove the whole line if VPATH becomes empty
19458# (actually we leave an empty line to preserve line numbers).
19459if test "x$srcdir" = x.; then
19460  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19461h
19462s///
19463s/^/:/
19464s/[	 ]*$/:/
19465s/:\$(srcdir):/:/g
19466s/:\${srcdir}:/:/g
19467s/:@srcdir@:/:/g
19468s/^:*//
19469s/:*$//
19470x
19471s/\(=[	 ]*\).*/\1/
19472G
19473s/\n//
19474s/^[^=]*=[	 ]*$//
19475}'
19476fi
19477
19478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19479fi # test -n "$CONFIG_FILES"
19480
19481# Set up the scripts for CONFIG_HEADERS section.
19482# No need to generate them if there are no CONFIG_HEADERS.
19483# This happens for instance with `./config.status Makefile'.
19484if test -n "$CONFIG_HEADERS"; then
19485cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19486BEGIN {
19487_ACEOF
19488
19489# Transform confdefs.h into an awk script `defines.awk', embedded as
19490# here-document in config.status, that substitutes the proper values into
19491# config.h.in to produce config.h.
19492
19493# Create a delimiter string that does not exist in confdefs.h, to ease
19494# handling of long lines.
19495ac_delim='%!_!# '
19496for ac_last_try in false false :; do
19497  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19498  if test -z "$ac_tt"; then
19499    break
19500  elif $ac_last_try; then
19501    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19502  else
19503    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19504  fi
19505done
19506
19507# For the awk script, D is an array of macro values keyed by name,
19508# likewise P contains macro parameters if any.  Preserve backslash
19509# newline sequences.
19510
19511ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19512sed -n '
19513s/.\{148\}/&'"$ac_delim"'/g
19514t rset
19515:rset
19516s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19517t def
19518d
19519:def
19520s/\\$//
19521t bsnl
19522s/["\\]/\\&/g
19523s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19524D["\1"]=" \3"/p
19525s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19526d
19527:bsnl
19528s/["\\]/\\&/g
19529s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19530D["\1"]=" \3\\\\\\n"\\/p
19531t cont
19532s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19533t cont
19534d
19535:cont
19536n
19537s/.\{148\}/&'"$ac_delim"'/g
19538t clear
19539:clear
19540s/\\$//
19541t bsnlc
19542s/["\\]/\\&/g; s/^/"/; s/$/"/p
19543d
19544:bsnlc
19545s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19546b cont
19547' <confdefs.h | sed '
19548s/'"$ac_delim"'/"\\\
19549"/g' >>$CONFIG_STATUS || ac_write_fail=1
19550
19551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19552  for (key in D) D_is_set[key] = 1
19553  FS = ""
19554}
19555/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19556  line = \$ 0
19557  split(line, arg, " ")
19558  if (arg[1] == "#") {
19559    defundef = arg[2]
19560    mac1 = arg[3]
19561  } else {
19562    defundef = substr(arg[1], 2)
19563    mac1 = arg[2]
19564  }
19565  split(mac1, mac2, "(") #)
19566  macro = mac2[1]
19567  prefix = substr(line, 1, index(line, defundef) - 1)
19568  if (D_is_set[macro]) {
19569    # Preserve the white space surrounding the "#".
19570    print prefix "define", macro P[macro] D[macro]
19571    next
19572  } else {
19573    # Replace #undef with comments.  This is necessary, for example,
19574    # in the case of _POSIX_SOURCE, which is predefined and required
19575    # on some systems where configure will not decide to define it.
19576    if (defundef == "undef") {
19577      print "/*", prefix defundef, macro, "*/"
19578      next
19579    }
19580  }
19581}
19582{ print }
19583_ACAWK
19584_ACEOF
19585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19586  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19587fi # test -n "$CONFIG_HEADERS"
19588
19589
19590eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19591shift
19592for ac_tag
19593do
19594  case $ac_tag in
19595  :[FHLC]) ac_mode=$ac_tag; continue;;
19596  esac
19597  case $ac_mode$ac_tag in
19598  :[FHL]*:*);;
19599  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19600  :[FH]-) ac_tag=-:-;;
19601  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19602  esac
19603  ac_save_IFS=$IFS
19604  IFS=:
19605  set x $ac_tag
19606  IFS=$ac_save_IFS
19607  shift
19608  ac_file=$1
19609  shift
19610
19611  case $ac_mode in
19612  :L) ac_source=$1;;
19613  :[FH])
19614    ac_file_inputs=
19615    for ac_f
19616    do
19617      case $ac_f in
19618      -) ac_f="$ac_tmp/stdin";;
19619      *) # Look for the file first in the build tree, then in the source tree
19620	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19621	 # because $ac_f cannot contain `:'.
19622	 test -f "$ac_f" ||
19623	   case $ac_f in
19624	   [\\/$]*) false;;
19625	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19626	   esac ||
19627	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19628      esac
19629      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19630      as_fn_append ac_file_inputs " '$ac_f'"
19631    done
19632
19633    # Let's still pretend it is `configure' which instantiates (i.e., don't
19634    # use $as_me), people would be surprised to read:
19635    #    /* config.h.  Generated by config.status.  */
19636    configure_input='Generated from '`
19637	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19638	`' by configure.'
19639    if test x"$ac_file" != x-; then
19640      configure_input="$ac_file.  $configure_input"
19641      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19642$as_echo "$as_me: creating $ac_file" >&6;}
19643    fi
19644    # Neutralize special characters interpreted by sed in replacement strings.
19645    case $configure_input in #(
19646    *\&* | *\|* | *\\* )
19647       ac_sed_conf_input=`$as_echo "$configure_input" |
19648       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19649    *) ac_sed_conf_input=$configure_input;;
19650    esac
19651
19652    case $ac_tag in
19653    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19654      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19655    esac
19656    ;;
19657  esac
19658
19659  ac_dir=`$as_dirname -- "$ac_file" ||
19660$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19661	 X"$ac_file" : 'X\(//\)[^/]' \| \
19662	 X"$ac_file" : 'X\(//\)$' \| \
19663	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19664$as_echo X"$ac_file" |
19665    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19666	    s//\1/
19667	    q
19668	  }
19669	  /^X\(\/\/\)[^/].*/{
19670	    s//\1/
19671	    q
19672	  }
19673	  /^X\(\/\/\)$/{
19674	    s//\1/
19675	    q
19676	  }
19677	  /^X\(\/\).*/{
19678	    s//\1/
19679	    q
19680	  }
19681	  s/.*/./; q'`
19682  as_dir="$ac_dir"; as_fn_mkdir_p
19683  ac_builddir=.
19684
19685case "$ac_dir" in
19686.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19687*)
19688  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19689  # A ".." for each directory in $ac_dir_suffix.
19690  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19691  case $ac_top_builddir_sub in
19692  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19693  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19694  esac ;;
19695esac
19696ac_abs_top_builddir=$ac_pwd
19697ac_abs_builddir=$ac_pwd$ac_dir_suffix
19698# for backward compatibility:
19699ac_top_builddir=$ac_top_build_prefix
19700
19701case $srcdir in
19702  .)  # We are building in place.
19703    ac_srcdir=.
19704    ac_top_srcdir=$ac_top_builddir_sub
19705    ac_abs_top_srcdir=$ac_pwd ;;
19706  [\\/]* | ?:[\\/]* )  # Absolute name.
19707    ac_srcdir=$srcdir$ac_dir_suffix;
19708    ac_top_srcdir=$srcdir
19709    ac_abs_top_srcdir=$srcdir ;;
19710  *) # Relative name.
19711    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19712    ac_top_srcdir=$ac_top_build_prefix$srcdir
19713    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19714esac
19715ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19716
19717
19718  case $ac_mode in
19719  :F)
19720  #
19721  # CONFIG_FILE
19722  #
19723
19724  case $INSTALL in
19725  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19726  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19727  esac
19728  ac_MKDIR_P=$MKDIR_P
19729  case $MKDIR_P in
19730  [\\/$]* | ?:[\\/]* ) ;;
19731  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19732  esac
19733_ACEOF
19734
19735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19736# If the template does not know about datarootdir, expand it.
19737# FIXME: This hack should be removed a few years after 2.60.
19738ac_datarootdir_hack=; ac_datarootdir_seen=
19739ac_sed_dataroot='
19740/datarootdir/ {
19741  p
19742  q
19743}
19744/@datadir@/p
19745/@docdir@/p
19746/@infodir@/p
19747/@localedir@/p
19748/@mandir@/p'
19749case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19750*datarootdir*) ac_datarootdir_seen=yes;;
19751*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19752  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19753$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19754_ACEOF
19755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19756  ac_datarootdir_hack='
19757  s&@datadir@&$datadir&g
19758  s&@docdir@&$docdir&g
19759  s&@infodir@&$infodir&g
19760  s&@localedir@&$localedir&g
19761  s&@mandir@&$mandir&g
19762  s&\\\${datarootdir}&$datarootdir&g' ;;
19763esac
19764_ACEOF
19765
19766# Neutralize VPATH when `$srcdir' = `.'.
19767# Shell code in configure.ac might set extrasub.
19768# FIXME: do we really want to maintain this feature?
19769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19770ac_sed_extra="$ac_vpsub
19771$extrasub
19772_ACEOF
19773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19774:t
19775/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19776s|@configure_input@|$ac_sed_conf_input|;t t
19777s&@top_builddir@&$ac_top_builddir_sub&;t t
19778s&@top_build_prefix@&$ac_top_build_prefix&;t t
19779s&@srcdir@&$ac_srcdir&;t t
19780s&@abs_srcdir@&$ac_abs_srcdir&;t t
19781s&@top_srcdir@&$ac_top_srcdir&;t t
19782s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19783s&@builddir@&$ac_builddir&;t t
19784s&@abs_builddir@&$ac_abs_builddir&;t t
19785s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19786s&@INSTALL@&$ac_INSTALL&;t t
19787s&@MKDIR_P@&$ac_MKDIR_P&;t t
19788$ac_datarootdir_hack
19789"
19790eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19791  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19792
19793test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19794  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19795  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19796      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19797  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19798which seems to be undefined.  Please make sure it is defined" >&5
19799$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19800which seems to be undefined.  Please make sure it is defined" >&2;}
19801
19802  rm -f "$ac_tmp/stdin"
19803  case $ac_file in
19804  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19805  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19806  esac \
19807  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19808 ;;
19809  :H)
19810  #
19811  # CONFIG_HEADER
19812  #
19813  if test x"$ac_file" != x-; then
19814    {
19815      $as_echo "/* $configure_input  */" \
19816      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19817    } >"$ac_tmp/config.h" \
19818      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19819    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19820      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19821$as_echo "$as_me: $ac_file is unchanged" >&6;}
19822    else
19823      rm -f "$ac_file"
19824      mv "$ac_tmp/config.h" "$ac_file" \
19825	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19826    fi
19827  else
19828    $as_echo "/* $configure_input  */" \
19829      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19830      || as_fn_error $? "could not create -" "$LINENO" 5
19831  fi
19832# Compute "$ac_file"'s index in $config_headers.
19833_am_arg="$ac_file"
19834_am_stamp_count=1
19835for _am_header in $config_headers :; do
19836  case $_am_header in
19837    $_am_arg | $_am_arg:* )
19838      break ;;
19839    * )
19840      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19841  esac
19842done
19843echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19844$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19845	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19846	 X"$_am_arg" : 'X\(//\)$' \| \
19847	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19848$as_echo X"$_am_arg" |
19849    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19850	    s//\1/
19851	    q
19852	  }
19853	  /^X\(\/\/\)[^/].*/{
19854	    s//\1/
19855	    q
19856	  }
19857	  /^X\(\/\/\)$/{
19858	    s//\1/
19859	    q
19860	  }
19861	  /^X\(\/\).*/{
19862	    s//\1/
19863	    q
19864	  }
19865	  s/.*/./; q'`/stamp-h$_am_stamp_count
19866 ;;
19867
19868  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19869$as_echo "$as_me: executing $ac_file commands" >&6;}
19870 ;;
19871  esac
19872
19873
19874  case $ac_file$ac_mode in
19875    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19876  # Older Autoconf quotes --file arguments for eval, but not when files
19877  # are listed without --file.  Let's play safe and only enable the eval
19878  # if we detect the quoting.
19879  case $CONFIG_FILES in
19880  *\'*) eval set x "$CONFIG_FILES" ;;
19881  *)   set x $CONFIG_FILES ;;
19882  esac
19883  shift
19884  for mf
19885  do
19886    # Strip MF so we end up with the name of the file.
19887    mf=`echo "$mf" | sed -e 's/:.*$//'`
19888    # Check whether this is an Automake generated Makefile or not.
19889    # We used to match only the files named 'Makefile.in', but
19890    # some people rename them; so instead we look at the file content.
19891    # Grep'ing the first line is not enough: some people post-process
19892    # each Makefile.in and add a new line on top of each file to say so.
19893    # Grep'ing the whole file is not good either: AIX grep has a line
19894    # limit of 2048, but all sed's we know have understand at least 4000.
19895    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19896      dirpart=`$as_dirname -- "$mf" ||
19897$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19898	 X"$mf" : 'X\(//\)[^/]' \| \
19899	 X"$mf" : 'X\(//\)$' \| \
19900	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19901$as_echo X"$mf" |
19902    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19903	    s//\1/
19904	    q
19905	  }
19906	  /^X\(\/\/\)[^/].*/{
19907	    s//\1/
19908	    q
19909	  }
19910	  /^X\(\/\/\)$/{
19911	    s//\1/
19912	    q
19913	  }
19914	  /^X\(\/\).*/{
19915	    s//\1/
19916	    q
19917	  }
19918	  s/.*/./; q'`
19919    else
19920      continue
19921    fi
19922    # Extract the definition of DEPDIR, am__include, and am__quote
19923    # from the Makefile without running 'make'.
19924    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19925    test -z "$DEPDIR" && continue
19926    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19927    test -z "$am__include" && continue
19928    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19929    # Find all dependency output files, they are included files with
19930    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19931    # simplest approach to changing $(DEPDIR) to its actual value in the
19932    # expansion.
19933    for file in `sed -n "
19934      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19935	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19936      # Make sure the directory exists.
19937      test -f "$dirpart/$file" && continue
19938      fdir=`$as_dirname -- "$file" ||
19939$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19940	 X"$file" : 'X\(//\)[^/]' \| \
19941	 X"$file" : 'X\(//\)$' \| \
19942	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19943$as_echo X"$file" |
19944    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19945	    s//\1/
19946	    q
19947	  }
19948	  /^X\(\/\/\)[^/].*/{
19949	    s//\1/
19950	    q
19951	  }
19952	  /^X\(\/\/\)$/{
19953	    s//\1/
19954	    q
19955	  }
19956	  /^X\(\/\).*/{
19957	    s//\1/
19958	    q
19959	  }
19960	  s/.*/./; q'`
19961      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19962      # echo "creating $dirpart/$file"
19963      echo '# dummy' > "$dirpart/$file"
19964    done
19965  done
19966}
19967 ;;
19968    "libtool":C)
19969
19970    # See if we are running on zsh, and set the options which allow our
19971    # commands through without removal of \ escapes.
19972    if test -n "${ZSH_VERSION+set}" ; then
19973      setopt NO_GLOB_SUBST
19974    fi
19975
19976    cfgfile="${ofile}T"
19977    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19978    $RM "$cfgfile"
19979
19980    cat <<_LT_EOF >> "$cfgfile"
19981#! $SHELL
19982
19983# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19984# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19985# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19986# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19987#
19988#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19989#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19990#                 Foundation, Inc.
19991#   Written by Gordon Matzigkeit, 1996
19992#
19993#   This file is part of GNU Libtool.
19994#
19995# GNU Libtool is free software; you can redistribute it and/or
19996# modify it under the terms of the GNU General Public License as
19997# published by the Free Software Foundation; either version 2 of
19998# the License, or (at your option) any later version.
19999#
20000# As a special exception to the GNU General Public License,
20001# if you distribute this file as part of a program or library that
20002# is built using GNU Libtool, you may include this file under the
20003# same distribution terms that you use for the rest of that program.
20004#
20005# GNU Libtool is distributed in the hope that it will be useful,
20006# but WITHOUT ANY WARRANTY; without even the implied warranty of
20007# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20008# GNU General Public License for more details.
20009#
20010# You should have received a copy of the GNU General Public License
20011# along with GNU Libtool; see the file COPYING.  If not, a copy
20012# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20013# obtained by writing to the Free Software Foundation, Inc.,
20014# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20015
20016
20017# The names of the tagged configurations supported by this script.
20018available_tags="CXX "
20019
20020# ### BEGIN LIBTOOL CONFIG
20021
20022# Which release of libtool.m4 was used?
20023macro_version=$macro_version
20024macro_revision=$macro_revision
20025
20026# Whether or not to build shared libraries.
20027build_libtool_libs=$enable_shared
20028
20029# Whether or not to build static libraries.
20030build_old_libs=$enable_static
20031
20032# What type of objects to build.
20033pic_mode=$pic_mode
20034
20035# Whether or not to optimize for fast installation.
20036fast_install=$enable_fast_install
20037
20038# Shell to use when invoking shell scripts.
20039SHELL=$lt_SHELL
20040
20041# An echo program that protects backslashes.
20042ECHO=$lt_ECHO
20043
20044# The PATH separator for the build system.
20045PATH_SEPARATOR=$lt_PATH_SEPARATOR
20046
20047# The host system.
20048host_alias=$host_alias
20049host=$host
20050host_os=$host_os
20051
20052# The build system.
20053build_alias=$build_alias
20054build=$build
20055build_os=$build_os
20056
20057# A sed program that does not truncate output.
20058SED=$lt_SED
20059
20060# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20061Xsed="\$SED -e 1s/^X//"
20062
20063# A grep program that handles long lines.
20064GREP=$lt_GREP
20065
20066# An ERE matcher.
20067EGREP=$lt_EGREP
20068
20069# A literal string matcher.
20070FGREP=$lt_FGREP
20071
20072# A BSD- or MS-compatible name lister.
20073NM=$lt_NM
20074
20075# Whether we need soft or hard links.
20076LN_S=$lt_LN_S
20077
20078# What is the maximum length of a command?
20079max_cmd_len=$max_cmd_len
20080
20081# Object file suffix (normally "o").
20082objext=$ac_objext
20083
20084# Executable file suffix (normally "").
20085exeext=$exeext
20086
20087# whether the shell understands "unset".
20088lt_unset=$lt_unset
20089
20090# turn spaces into newlines.
20091SP2NL=$lt_lt_SP2NL
20092
20093# turn newlines into spaces.
20094NL2SP=$lt_lt_NL2SP
20095
20096# convert \$build file names to \$host format.
20097to_host_file_cmd=$lt_cv_to_host_file_cmd
20098
20099# convert \$build files to toolchain format.
20100to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20101
20102# An object symbol dumper.
20103OBJDUMP=$lt_OBJDUMP
20104
20105# Method to check whether dependent libraries are shared objects.
20106deplibs_check_method=$lt_deplibs_check_method
20107
20108# Command to use when deplibs_check_method = "file_magic".
20109file_magic_cmd=$lt_file_magic_cmd
20110
20111# How to find potential files when deplibs_check_method = "file_magic".
20112file_magic_glob=$lt_file_magic_glob
20113
20114# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20115want_nocaseglob=$lt_want_nocaseglob
20116
20117# DLL creation program.
20118DLLTOOL=$lt_DLLTOOL
20119
20120# Command to associate shared and link libraries.
20121sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20122
20123# The archiver.
20124AR=$lt_AR
20125
20126# Flags to create an archive.
20127AR_FLAGS=$lt_AR_FLAGS
20128
20129# How to feed a file listing to the archiver.
20130archiver_list_spec=$lt_archiver_list_spec
20131
20132# A symbol stripping program.
20133STRIP=$lt_STRIP
20134
20135# Commands used to install an old-style archive.
20136RANLIB=$lt_RANLIB
20137old_postinstall_cmds=$lt_old_postinstall_cmds
20138old_postuninstall_cmds=$lt_old_postuninstall_cmds
20139
20140# Whether to use a lock for old archive extraction.
20141lock_old_archive_extraction=$lock_old_archive_extraction
20142
20143# A C compiler.
20144LTCC=$lt_CC
20145
20146# LTCC compiler flags.
20147LTCFLAGS=$lt_CFLAGS
20148
20149# Take the output of nm and produce a listing of raw symbols and C names.
20150global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20151
20152# Transform the output of nm in a proper C declaration.
20153global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20154
20155# Transform the output of nm in a C name address pair.
20156global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20157
20158# Transform the output of nm in a C name address pair when lib prefix is needed.
20159global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20160
20161# Specify filename containing input files for \$NM.
20162nm_file_list_spec=$lt_nm_file_list_spec
20163
20164# The root where to search for dependent libraries,and in which our libraries should be installed.
20165lt_sysroot=$lt_sysroot
20166
20167# The name of the directory that contains temporary libtool files.
20168objdir=$objdir
20169
20170# Used to examine libraries when file_magic_cmd begins with "file".
20171MAGIC_CMD=$MAGIC_CMD
20172
20173# Must we lock files when doing compilation?
20174need_locks=$lt_need_locks
20175
20176# Manifest tool.
20177MANIFEST_TOOL=$lt_MANIFEST_TOOL
20178
20179# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20180DSYMUTIL=$lt_DSYMUTIL
20181
20182# Tool to change global to local symbols on Mac OS X.
20183NMEDIT=$lt_NMEDIT
20184
20185# Tool to manipulate fat objects and archives on Mac OS X.
20186LIPO=$lt_LIPO
20187
20188# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20189OTOOL=$lt_OTOOL
20190
20191# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20192OTOOL64=$lt_OTOOL64
20193
20194# Old archive suffix (normally "a").
20195libext=$libext
20196
20197# Shared library suffix (normally ".so").
20198shrext_cmds=$lt_shrext_cmds
20199
20200# The commands to extract the exported symbol list from a shared archive.
20201extract_expsyms_cmds=$lt_extract_expsyms_cmds
20202
20203# Variables whose values should be saved in libtool wrapper scripts and
20204# restored at link time.
20205variables_saved_for_relink=$lt_variables_saved_for_relink
20206
20207# Do we need the "lib" prefix for modules?
20208need_lib_prefix=$need_lib_prefix
20209
20210# Do we need a version for libraries?
20211need_version=$need_version
20212
20213# Library versioning type.
20214version_type=$version_type
20215
20216# Shared library runtime path variable.
20217runpath_var=$runpath_var
20218
20219# Shared library path variable.
20220shlibpath_var=$shlibpath_var
20221
20222# Is shlibpath searched before the hard-coded library search path?
20223shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20224
20225# Format of library name prefix.
20226libname_spec=$lt_libname_spec
20227
20228# List of archive names.  First name is the real one, the rest are links.
20229# The last name is the one that the linker finds with -lNAME
20230library_names_spec=$lt_library_names_spec
20231
20232# The coded name of the library, if different from the real name.
20233soname_spec=$lt_soname_spec
20234
20235# Permission mode override for installation of shared libraries.
20236install_override_mode=$lt_install_override_mode
20237
20238# Command to use after installation of a shared archive.
20239postinstall_cmds=$lt_postinstall_cmds
20240
20241# Command to use after uninstallation of a shared archive.
20242postuninstall_cmds=$lt_postuninstall_cmds
20243
20244# Commands used to finish a libtool library installation in a directory.
20245finish_cmds=$lt_finish_cmds
20246
20247# As "finish_cmds", except a single script fragment to be evaled but
20248# not shown.
20249finish_eval=$lt_finish_eval
20250
20251# Whether we should hardcode library paths into libraries.
20252hardcode_into_libs=$hardcode_into_libs
20253
20254# Compile-time system search path for libraries.
20255sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20256
20257# Run-time system search path for libraries.
20258sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20259
20260# Whether dlopen is supported.
20261dlopen_support=$enable_dlopen
20262
20263# Whether dlopen of programs is supported.
20264dlopen_self=$enable_dlopen_self
20265
20266# Whether dlopen of statically linked programs is supported.
20267dlopen_self_static=$enable_dlopen_self_static
20268
20269# Commands to strip libraries.
20270old_striplib=$lt_old_striplib
20271striplib=$lt_striplib
20272
20273
20274# The linker used to build libraries.
20275LD=$lt_LD
20276
20277# How to create reloadable object files.
20278reload_flag=$lt_reload_flag
20279reload_cmds=$lt_reload_cmds
20280
20281# Commands used to build an old-style archive.
20282old_archive_cmds=$lt_old_archive_cmds
20283
20284# A language specific compiler.
20285CC=$lt_compiler
20286
20287# Is the compiler the GNU compiler?
20288with_gcc=$GCC
20289
20290# Compiler flag to turn off builtin functions.
20291no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20292
20293# Additional compiler flags for building library objects.
20294pic_flag=$lt_lt_prog_compiler_pic
20295
20296# How to pass a linker flag through the compiler.
20297wl=$lt_lt_prog_compiler_wl
20298
20299# Compiler flag to prevent dynamic linking.
20300link_static_flag=$lt_lt_prog_compiler_static
20301
20302# Does compiler simultaneously support -c and -o options?
20303compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20304
20305# Whether or not to add -lc for building shared libraries.
20306build_libtool_need_lc=$archive_cmds_need_lc
20307
20308# Whether or not to disallow shared libs when runtime libs are static.
20309allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20310
20311# Compiler flag to allow reflexive dlopens.
20312export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20313
20314# Compiler flag to generate shared objects directly from archives.
20315whole_archive_flag_spec=$lt_whole_archive_flag_spec
20316
20317# Whether the compiler copes with passing no objects directly.
20318compiler_needs_object=$lt_compiler_needs_object
20319
20320# Create an old-style archive from a shared archive.
20321old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20322
20323# Create a temporary old-style archive to link instead of a shared archive.
20324old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20325
20326# Commands used to build a shared archive.
20327archive_cmds=$lt_archive_cmds
20328archive_expsym_cmds=$lt_archive_expsym_cmds
20329
20330# Commands used to build a loadable module if different from building
20331# a shared archive.
20332module_cmds=$lt_module_cmds
20333module_expsym_cmds=$lt_module_expsym_cmds
20334
20335# Whether we are building with GNU ld or not.
20336with_gnu_ld=$lt_with_gnu_ld
20337
20338# Flag that allows shared libraries with undefined symbols to be built.
20339allow_undefined_flag=$lt_allow_undefined_flag
20340
20341# Flag that enforces no undefined symbols.
20342no_undefined_flag=$lt_no_undefined_flag
20343
20344# Flag to hardcode \$libdir into a binary during linking.
20345# This must work even if \$libdir does not exist
20346hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20347
20348# Whether we need a single "-rpath" flag with a separated argument.
20349hardcode_libdir_separator=$lt_hardcode_libdir_separator
20350
20351# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20352# DIR into the resulting binary.
20353hardcode_direct=$hardcode_direct
20354
20355# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20356# DIR into the resulting binary and the resulting library dependency is
20357# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20358# library is relocated.
20359hardcode_direct_absolute=$hardcode_direct_absolute
20360
20361# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20362# into the resulting binary.
20363hardcode_minus_L=$hardcode_minus_L
20364
20365# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20366# into the resulting binary.
20367hardcode_shlibpath_var=$hardcode_shlibpath_var
20368
20369# Set to "yes" if building a shared library automatically hardcodes DIR
20370# into the library and all subsequent libraries and executables linked
20371# against it.
20372hardcode_automatic=$hardcode_automatic
20373
20374# Set to yes if linker adds runtime paths of dependent libraries
20375# to runtime path list.
20376inherit_rpath=$inherit_rpath
20377
20378# Whether libtool must link a program against all its dependency libraries.
20379link_all_deplibs=$link_all_deplibs
20380
20381# Set to "yes" if exported symbols are required.
20382always_export_symbols=$always_export_symbols
20383
20384# The commands to list exported symbols.
20385export_symbols_cmds=$lt_export_symbols_cmds
20386
20387# Symbols that should not be listed in the preloaded symbols.
20388exclude_expsyms=$lt_exclude_expsyms
20389
20390# Symbols that must always be exported.
20391include_expsyms=$lt_include_expsyms
20392
20393# Commands necessary for linking programs (against libraries) with templates.
20394prelink_cmds=$lt_prelink_cmds
20395
20396# Commands necessary for finishing linking programs.
20397postlink_cmds=$lt_postlink_cmds
20398
20399# Specify filename containing input files.
20400file_list_spec=$lt_file_list_spec
20401
20402# How to hardcode a shared library path into an executable.
20403hardcode_action=$hardcode_action
20404
20405# The directories searched by this compiler when creating a shared library.
20406compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20407
20408# Dependencies to place before and after the objects being linked to
20409# create a shared library.
20410predep_objects=$lt_predep_objects
20411postdep_objects=$lt_postdep_objects
20412predeps=$lt_predeps
20413postdeps=$lt_postdeps
20414
20415# The library search path used internally by the compiler when linking
20416# a shared library.
20417compiler_lib_search_path=$lt_compiler_lib_search_path
20418
20419# ### END LIBTOOL CONFIG
20420
20421_LT_EOF
20422
20423  case $host_os in
20424  aix3*)
20425    cat <<\_LT_EOF >> "$cfgfile"
20426# AIX sometimes has problems with the GCC collect2 program.  For some
20427# reason, if we set the COLLECT_NAMES environment variable, the problems
20428# vanish in a puff of smoke.
20429if test "X${COLLECT_NAMES+set}" != Xset; then
20430  COLLECT_NAMES=
20431  export COLLECT_NAMES
20432fi
20433_LT_EOF
20434    ;;
20435  esac
20436
20437
20438ltmain="$ac_aux_dir/ltmain.sh"
20439
20440
20441  # We use sed instead of cat because bash on DJGPP gets confused if
20442  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20443  # text mode, it properly converts lines to CR/LF.  This bash problem
20444  # is reportedly fixed, but why not run on old versions too?
20445  sed '$q' "$ltmain" >> "$cfgfile" \
20446     || (rm -f "$cfgfile"; exit 1)
20447
20448  if test x"$xsi_shell" = xyes; then
20449  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20450func_dirname ()\
20451{\
20452\    case ${1} in\
20453\      */*) func_dirname_result="${1%/*}${2}" ;;\
20454\      *  ) func_dirname_result="${3}" ;;\
20455\    esac\
20456} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20457  && mv -f "$cfgfile.tmp" "$cfgfile" \
20458    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20459test 0 -eq $? || _lt_function_replace_fail=:
20460
20461
20462  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20463func_basename ()\
20464{\
20465\    func_basename_result="${1##*/}"\
20466} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20467  && mv -f "$cfgfile.tmp" "$cfgfile" \
20468    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20469test 0 -eq $? || _lt_function_replace_fail=:
20470
20471
20472  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20473func_dirname_and_basename ()\
20474{\
20475\    case ${1} in\
20476\      */*) func_dirname_result="${1%/*}${2}" ;;\
20477\      *  ) func_dirname_result="${3}" ;;\
20478\    esac\
20479\    func_basename_result="${1##*/}"\
20480} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20481  && mv -f "$cfgfile.tmp" "$cfgfile" \
20482    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20483test 0 -eq $? || _lt_function_replace_fail=:
20484
20485
20486  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20487func_stripname ()\
20488{\
20489\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20490\    # positional parameters, so assign one to ordinary parameter first.\
20491\    func_stripname_result=${3}\
20492\    func_stripname_result=${func_stripname_result#"${1}"}\
20493\    func_stripname_result=${func_stripname_result%"${2}"}\
20494} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20495  && mv -f "$cfgfile.tmp" "$cfgfile" \
20496    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20497test 0 -eq $? || _lt_function_replace_fail=:
20498
20499
20500  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20501func_split_long_opt ()\
20502{\
20503\    func_split_long_opt_name=${1%%=*}\
20504\    func_split_long_opt_arg=${1#*=}\
20505} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20506  && mv -f "$cfgfile.tmp" "$cfgfile" \
20507    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20508test 0 -eq $? || _lt_function_replace_fail=:
20509
20510
20511  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20512func_split_short_opt ()\
20513{\
20514\    func_split_short_opt_arg=${1#??}\
20515\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20516} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20517  && mv -f "$cfgfile.tmp" "$cfgfile" \
20518    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20519test 0 -eq $? || _lt_function_replace_fail=:
20520
20521
20522  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20523func_lo2o ()\
20524{\
20525\    case ${1} in\
20526\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20527\      *)    func_lo2o_result=${1} ;;\
20528\    esac\
20529} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20530  && mv -f "$cfgfile.tmp" "$cfgfile" \
20531    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20532test 0 -eq $? || _lt_function_replace_fail=:
20533
20534
20535  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20536func_xform ()\
20537{\
20538    func_xform_result=${1%.*}.lo\
20539} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20540  && mv -f "$cfgfile.tmp" "$cfgfile" \
20541    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20542test 0 -eq $? || _lt_function_replace_fail=:
20543
20544
20545  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20546func_arith ()\
20547{\
20548    func_arith_result=$(( $* ))\
20549} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20550  && mv -f "$cfgfile.tmp" "$cfgfile" \
20551    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20552test 0 -eq $? || _lt_function_replace_fail=:
20553
20554
20555  sed -e '/^func_len ()$/,/^} # func_len /c\
20556func_len ()\
20557{\
20558    func_len_result=${#1}\
20559} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20560  && mv -f "$cfgfile.tmp" "$cfgfile" \
20561    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20562test 0 -eq $? || _lt_function_replace_fail=:
20563
20564fi
20565
20566if test x"$lt_shell_append" = xyes; then
20567  sed -e '/^func_append ()$/,/^} # func_append /c\
20568func_append ()\
20569{\
20570    eval "${1}+=\\${2}"\
20571} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20572  && mv -f "$cfgfile.tmp" "$cfgfile" \
20573    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20574test 0 -eq $? || _lt_function_replace_fail=:
20575
20576
20577  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20578func_append_quoted ()\
20579{\
20580\    func_quote_for_eval "${2}"\
20581\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20582} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20583  && mv -f "$cfgfile.tmp" "$cfgfile" \
20584    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20585test 0 -eq $? || _lt_function_replace_fail=:
20586
20587
20588  # Save a `func_append' function call where possible by direct use of '+='
20589  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20590    && mv -f "$cfgfile.tmp" "$cfgfile" \
20591      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20592  test 0 -eq $? || _lt_function_replace_fail=:
20593else
20594  # Save a `func_append' function call even when '+=' is not available
20595  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20596    && mv -f "$cfgfile.tmp" "$cfgfile" \
20597      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20598  test 0 -eq $? || _lt_function_replace_fail=:
20599fi
20600
20601if test x"$_lt_function_replace_fail" = x":"; then
20602  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20603$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20604fi
20605
20606
20607   mv -f "$cfgfile" "$ofile" ||
20608    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20609  chmod +x "$ofile"
20610
20611
20612    cat <<_LT_EOF >> "$ofile"
20613
20614# ### BEGIN LIBTOOL TAG CONFIG: CXX
20615
20616# The linker used to build libraries.
20617LD=$lt_LD_CXX
20618
20619# How to create reloadable object files.
20620reload_flag=$lt_reload_flag_CXX
20621reload_cmds=$lt_reload_cmds_CXX
20622
20623# Commands used to build an old-style archive.
20624old_archive_cmds=$lt_old_archive_cmds_CXX
20625
20626# A language specific compiler.
20627CC=$lt_compiler_CXX
20628
20629# Is the compiler the GNU compiler?
20630with_gcc=$GCC_CXX
20631
20632# Compiler flag to turn off builtin functions.
20633no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20634
20635# Additional compiler flags for building library objects.
20636pic_flag=$lt_lt_prog_compiler_pic_CXX
20637
20638# How to pass a linker flag through the compiler.
20639wl=$lt_lt_prog_compiler_wl_CXX
20640
20641# Compiler flag to prevent dynamic linking.
20642link_static_flag=$lt_lt_prog_compiler_static_CXX
20643
20644# Does compiler simultaneously support -c and -o options?
20645compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20646
20647# Whether or not to add -lc for building shared libraries.
20648build_libtool_need_lc=$archive_cmds_need_lc_CXX
20649
20650# Whether or not to disallow shared libs when runtime libs are static.
20651allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20652
20653# Compiler flag to allow reflexive dlopens.
20654export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20655
20656# Compiler flag to generate shared objects directly from archives.
20657whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20658
20659# Whether the compiler copes with passing no objects directly.
20660compiler_needs_object=$lt_compiler_needs_object_CXX
20661
20662# Create an old-style archive from a shared archive.
20663old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20664
20665# Create a temporary old-style archive to link instead of a shared archive.
20666old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20667
20668# Commands used to build a shared archive.
20669archive_cmds=$lt_archive_cmds_CXX
20670archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20671
20672# Commands used to build a loadable module if different from building
20673# a shared archive.
20674module_cmds=$lt_module_cmds_CXX
20675module_expsym_cmds=$lt_module_expsym_cmds_CXX
20676
20677# Whether we are building with GNU ld or not.
20678with_gnu_ld=$lt_with_gnu_ld_CXX
20679
20680# Flag that allows shared libraries with undefined symbols to be built.
20681allow_undefined_flag=$lt_allow_undefined_flag_CXX
20682
20683# Flag that enforces no undefined symbols.
20684no_undefined_flag=$lt_no_undefined_flag_CXX
20685
20686# Flag to hardcode \$libdir into a binary during linking.
20687# This must work even if \$libdir does not exist
20688hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20689
20690# Whether we need a single "-rpath" flag with a separated argument.
20691hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20692
20693# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20694# DIR into the resulting binary.
20695hardcode_direct=$hardcode_direct_CXX
20696
20697# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20698# DIR into the resulting binary and the resulting library dependency is
20699# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20700# library is relocated.
20701hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20702
20703# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20704# into the resulting binary.
20705hardcode_minus_L=$hardcode_minus_L_CXX
20706
20707# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20708# into the resulting binary.
20709hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20710
20711# Set to "yes" if building a shared library automatically hardcodes DIR
20712# into the library and all subsequent libraries and executables linked
20713# against it.
20714hardcode_automatic=$hardcode_automatic_CXX
20715
20716# Set to yes if linker adds runtime paths of dependent libraries
20717# to runtime path list.
20718inherit_rpath=$inherit_rpath_CXX
20719
20720# Whether libtool must link a program against all its dependency libraries.
20721link_all_deplibs=$link_all_deplibs_CXX
20722
20723# Set to "yes" if exported symbols are required.
20724always_export_symbols=$always_export_symbols_CXX
20725
20726# The commands to list exported symbols.
20727export_symbols_cmds=$lt_export_symbols_cmds_CXX
20728
20729# Symbols that should not be listed in the preloaded symbols.
20730exclude_expsyms=$lt_exclude_expsyms_CXX
20731
20732# Symbols that must always be exported.
20733include_expsyms=$lt_include_expsyms_CXX
20734
20735# Commands necessary for linking programs (against libraries) with templates.
20736prelink_cmds=$lt_prelink_cmds_CXX
20737
20738# Commands necessary for finishing linking programs.
20739postlink_cmds=$lt_postlink_cmds_CXX
20740
20741# Specify filename containing input files.
20742file_list_spec=$lt_file_list_spec_CXX
20743
20744# How to hardcode a shared library path into an executable.
20745hardcode_action=$hardcode_action_CXX
20746
20747# The directories searched by this compiler when creating a shared library.
20748compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20749
20750# Dependencies to place before and after the objects being linked to
20751# create a shared library.
20752predep_objects=$lt_predep_objects_CXX
20753postdep_objects=$lt_postdep_objects_CXX
20754predeps=$lt_predeps_CXX
20755postdeps=$lt_postdeps_CXX
20756
20757# The library search path used internally by the compiler when linking
20758# a shared library.
20759compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20760
20761# ### END LIBTOOL TAG CONFIG: CXX
20762_LT_EOF
20763
20764 ;;
20765
20766  esac
20767done # for ac_tag
20768
20769
20770as_fn_exit 0
20771_ACEOF
20772ac_clean_files=$ac_clean_files_save
20773
20774test $ac_write_fail = 0 ||
20775  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20776
20777
20778# configure is writing to config.log, and then calls config.status.
20779# config.status does its own redirection, appending to config.log.
20780# Unfortunately, on DOS this fails, as config.log is still kept open
20781# by configure, so config.status won't be able to write to it; its
20782# output is simply discarded.  So we exec the FD to /dev/null,
20783# effectively closing config.log, so it can be properly (re)opened and
20784# appended to by config.status.  When coming back to configure, we
20785# need to make the FD available again.
20786if test "$no_create" != yes; then
20787  ac_cs_success=:
20788  ac_config_status_args=
20789  test "$silent" = yes &&
20790    ac_config_status_args="$ac_config_status_args --quiet"
20791  exec 5>/dev/null
20792  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20793  exec 5>>config.log
20794  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20795  # would make configure fail if this is the last instruction.
20796  $ac_cs_success || as_fn_exit 1
20797fi
20798if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20799  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20800$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20801fi
20802
20803
20804
20805
20806
20807
20808# Put this at the very end, so that these are the last lines seen by
20809# user on console with low number of rows.
20810{ $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------------" >&5
20811$as_echo "$as_me: ----------------------------------------------" >&6;}
20812{ $as_echo "$as_me:${as_lineno-$LINENO}: ------ $PACKAGE_NAME $PACKAGE_VERSION build configuration ------" >&5
20813$as_echo "$as_me: ------ $PACKAGE_NAME $PACKAGE_VERSION build configuration ------" >&6;}
20814{ $as_echo "$as_me:${as_lineno-$LINENO}: operating system:  ......................  $host_os" >&5
20815$as_echo "$as_me: operating system:  ......................  $host_os" >&6;}
20816{ $as_echo "$as_me:${as_lineno-$LINENO}: build libcw:  ...........................  yes" >&5
20817$as_echo "$as_me: build libcw:  ...........................  yes" >&6;}
20818{ $as_echo "$as_me:${as_lineno-$LINENO}:     libcw soname version:  ..............  $LIBCW_VERSION" >&5
20819$as_echo "$as_me:     libcw soname version:  ..............  $LIBCW_VERSION" >&6;}
20820{ $as_echo "$as_me:${as_lineno-$LINENO}:     include console buzzer support:  ....  $WITH_CONSOLE" >&5
20821$as_echo "$as_me:     include console buzzer support:  ....  $WITH_CONSOLE" >&6;}
20822{ $as_echo "$as_me:${as_lineno-$LINENO}:     include OSS support:  ...............  $WITH_OSS" >&5
20823$as_echo "$as_me:     include OSS support:  ...............  $WITH_OSS" >&6;}
20824{ $as_echo "$as_me:${as_lineno-$LINENO}:     include ALSA support:  ..............  $WITH_ALSA" >&5
20825$as_echo "$as_me:     include ALSA support:  ..............  $WITH_ALSA" >&6;}
20826{ $as_echo "$as_me:${as_lineno-$LINENO}:     include PulseAudio support:  ........  $WITH_PULSEAUDIO" >&5
20827$as_echo "$as_me:     include PulseAudio support:  ........  $WITH_PULSEAUDIO" >&6;}
20828{ $as_echo "$as_me:${as_lineno-$LINENO}: build cw:  ..............................  yes" >&5
20829$as_echo "$as_me: build cw:  ..............................  yes" >&6;}
20830{ $as_echo "$as_me:${as_lineno-$LINENO}: build cwgen:  ...........................  yes" >&5
20831$as_echo "$as_me: build cwgen:  ...........................  yes" >&6;}
20832{ $as_echo "$as_me:${as_lineno-$LINENO}: build cwcp:  ............................  $WITH_CWCP" >&5
20833$as_echo "$as_me: build cwcp:  ............................  $WITH_CWCP" >&6;}
20834{ $as_echo "$as_me:${as_lineno-$LINENO}: build xcwcp:  ...........................  $WITH_XCWCP" >&5
20835$as_echo "$as_me: build xcwcp:  ...........................  $WITH_XCWCP" >&6;}
20836if test "$WITH_XCWCP" = 'yes' ; then
20837    { $as_echo "$as_me:${as_lineno-$LINENO}:     Qt5 CFLAGS:  $QT5_CFLAGS" >&5
20838$as_echo "$as_me:     Qt5 CFLAGS:  $QT5_CFLAGS" >&6;}
20839    { $as_echo "$as_me:${as_lineno-$LINENO}:     Qt5 LIBS:    $QT5_LIBS" >&5
20840$as_echo "$as_me:     Qt5 LIBS:    $QT5_LIBS" >&6;}
20841    { $as_echo "$as_me:${as_lineno-$LINENO}:     Qt5 MOC:     $MOC" >&5
20842$as_echo "$as_me:     Qt5 MOC:     $MOC" >&6;}
20843fi
20844if test "$WITH_DEV" = 'yes' ; then
20845   { $as_echo "$as_me:${as_lineno-$LINENO}: enable dev support: .....................  yes" >&5
20846$as_echo "$as_me: enable dev support: .....................  yes" >&6;}
20847fi
20848{ $as_echo "$as_me:${as_lineno-$LINENO}: ----------------------------------------------" >&5
20849$as_echo "$as_me: ----------------------------------------------" >&6;}
20850