1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for digraphs 1.1.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='digraphs'
589PACKAGE_TARNAME='digraphs'
590PACKAGE_VERSION='1.1.1'
591PACKAGE_STRING='digraphs 1.1.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/digraphs.c"
596ac_default_prefix='${abs_top_builddir}/../../bin/'
597# Factoring default headers for most tests.
598ac_includes_default="\
599#include <stdio.h>
600#ifdef HAVE_SYS_TYPES_H
601# include <sys/types.h>
602#endif
603#ifdef HAVE_SYS_STAT_H
604# include <sys/stat.h>
605#endif
606#ifdef STDC_HEADERS
607# include <stdlib.h>
608# include <stddef.h>
609#else
610# ifdef HAVE_STDLIB_H
611#  include <stdlib.h>
612# endif
613#endif
614#ifdef HAVE_STRING_H
615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616#  include <memory.h>
617# endif
618# include <string.h>
619#endif
620#ifdef HAVE_STRINGS_H
621# include <strings.h>
622#endif
623#ifdef HAVE_INTTYPES_H
624# include <inttypes.h>
625#endif
626#ifdef HAVE_STDINT_H
627# include <stdint.h>
628#endif
629#ifdef HAVE_UNISTD_H
630# include <unistd.h>
631#endif"
632
633enable_option_checking=no
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638WITH_INCLUDED_BLISS_FALSE
639WITH_INCLUDED_BLISS_TRUE
640PLANARITY_SUITE_DIR
641subdirs
642WITH_INCLUDED_PLANARITY_FALSE
643WITH_INCLUDED_PLANARITY_TRUE
644WARNING_CFLAGS
645WARNING_CXXFLAGS
646CODE_COVERAGE_RULES
647CODE_COVERAGE_LDFLAGS
648CODE_COVERAGE_LIBS
649CODE_COVERAGE_CXXFLAGS
650CODE_COVERAGE_CFLAGS
651CODE_COVERAGE_CPPFLAGS
652GENHTML
653LCOV
654GCOV
655CODE_COVERAGE_ENABLED
656CODE_COVERAGE_ENABLED_FALSE
657CODE_COVERAGE_ENABLED_TRUE
658ENABLE_STATS_FALSE
659ENABLE_STATS_TRUE
660KERNEL_DEBUG_FALSE
661KERNEL_DEBUG_TRUE
662SYS_IS_CYGWIN_FALSE
663SYS_IS_CYGWIN_TRUE
664GAP_LIBS
665GAP_LDFLAGS
666GAP_CFLAGS
667GAP_CPPFLAGS
668GAPROOT
669GAPARCH
670CXXCPP
671CPP
672LT_SYS_LIBRARY_PATH
673OTOOL64
674OTOOL
675LIPO
676NMEDIT
677DSYMUTIL
678MANIFEST_TOOL
679RANLIB
680LN_S
681NM
682ac_ct_DUMPBIN
683DUMPBIN
684LD
685FGREP
686EGREP
687GREP
688SED
689LIBTOOL
690OBJDUMP
691DLLTOOL
692AS
693am__fastdepCXX_FALSE
694am__fastdepCXX_TRUE
695CXXDEPMODE
696ac_ct_CXX
697CXXFLAGS
698CXX
699am__fastdepCC_FALSE
700am__fastdepCC_TRUE
701CCDEPMODE
702am__nodep
703AMDEPBACKSLASH
704AMDEP_FALSE
705AMDEP_TRUE
706am__include
707DEPDIR
708OBJEXT
709EXEEXT
710ac_ct_CC
711CPPFLAGS
712LDFLAGS
713CFLAGS
714CC
715ac_ct_AR
716AR
717AM_BACKSLASH
718AM_DEFAULT_VERBOSITY
719AM_DEFAULT_V
720AM_V
721am__untar
722am__tar
723AMTAR
724am__leading_dot
725SET_MAKE
726AWK
727mkdir_p
728MKDIR_P
729INSTALL_STRIP_PROGRAM
730STRIP
731install_sh
732MAKEINFO
733AUTOHEADER
734AUTOMAKE
735AUTOCONF
736ACLOCAL
737VERSION
738PACKAGE
739CYGPATH_W
740am__isrc
741INSTALL_DATA
742INSTALL_SCRIPT
743INSTALL_PROGRAM
744host_os
745host_vendor
746host_cpu
747host
748build_os
749build_vendor
750build_cpu
751build
752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL
790am__quote'
791ac_subst_files=''
792ac_user_opts='
793enable_option_checking
794enable_silent_rules
795enable_dependency_tracking
796enable_static
797enable_shared
798with_pic
799enable_fast_install
800with_aix_soname
801with_gnu_ld
802with_sysroot
803enable_libtool_lock
804with_gaproot
805enable_debug
806enable_stats
807with_gcov
808enable_code_coverage
809enable_compile_warnings
810with_external_planarity
811with_external_bliss
812'
813      ac_precious_vars='build_alias
814host_alias
815target_alias
816CC
817CFLAGS
818LDFLAGS
819LIBS
820CPPFLAGS
821CXX
822CXXFLAGS
823CCC
824LT_SYS_LIBRARY_PATH
825CPP
826CXXCPP'
827ac_subdirs_all='extern/edge-addition-planarity-suite-Version_3.0.0.5'
828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832ac_unrecognized_opts=
833ac_unrecognized_sep=
834# The variables have the same names as the options, with
835# dashes changed to underlines.
836cache_file=/dev/null
837exec_prefix=NONE
838no_create=
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
847verbose=
848x_includes=NONE
849x_libraries=NONE
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
856# (The list follows the same order as the GNU Coding Standards.)
857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
865includedir='${prefix}/include'
866oldincludedir='/usr/include'
867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
876
877ac_prev=
878ac_dashdash=
879for ac_option
880do
881  # If the previous option needs an argument, assign it.
882  if test -n "$ac_prev"; then
883    eval $ac_prev=\$ac_option
884    ac_prev=
885    continue
886  fi
887
888  case $ac_option in
889  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890  *=)   ac_optarg= ;;
891  *)    ac_optarg=yes ;;
892  esac
893
894  # Accept the important Cygnus configure options, so we can diagnose typos.
895
896  case $ac_dashdash$ac_option in
897  --)
898    ac_dashdash=yes ;;
899
900  -bindir | --bindir | --bindi | --bind | --bin | --bi)
901    ac_prev=bindir ;;
902  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903    bindir=$ac_optarg ;;
904
905  -build | --build | --buil | --bui | --bu)
906    ac_prev=build_alias ;;
907  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908    build_alias=$ac_optarg ;;
909
910  -cache-file | --cache-file | --cache-fil | --cache-fi \
911  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912    ac_prev=cache_file ;;
913  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915    cache_file=$ac_optarg ;;
916
917  --config-cache | -C)
918    cache_file=config.cache ;;
919
920  -datadir | --datadir | --datadi | --datad)
921    ac_prev=datadir ;;
922  -datadir=* | --datadir=* | --datadi=* | --datad=*)
923    datadir=$ac_optarg ;;
924
925  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926  | --dataroo | --dataro | --datar)
927    ac_prev=datarootdir ;;
928  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930    datarootdir=$ac_optarg ;;
931
932  -disable-* | --disable-*)
933    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934    # Reject names that are not valid shell variable names.
935    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936      as_fn_error $? "invalid feature name: $ac_useropt"
937    ac_useropt_orig=$ac_useropt
938    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939    case $ac_user_opts in
940      *"
941"enable_$ac_useropt"
942"*) ;;
943      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944	 ac_unrecognized_sep=', ';;
945    esac
946    eval enable_$ac_useropt=no ;;
947
948  -docdir | --docdir | --docdi | --doc | --do)
949    ac_prev=docdir ;;
950  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951    docdir=$ac_optarg ;;
952
953  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954    ac_prev=dvidir ;;
955  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956    dvidir=$ac_optarg ;;
957
958  -enable-* | --enable-*)
959    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960    # Reject names that are not valid shell variable names.
961    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962      as_fn_error $? "invalid feature name: $ac_useropt"
963    ac_useropt_orig=$ac_useropt
964    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965    case $ac_user_opts in
966      *"
967"enable_$ac_useropt"
968"*) ;;
969      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970	 ac_unrecognized_sep=', ';;
971    esac
972    eval enable_$ac_useropt=\$ac_optarg ;;
973
974  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976  | --exec | --exe | --ex)
977    ac_prev=exec_prefix ;;
978  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980  | --exec=* | --exe=* | --ex=*)
981    exec_prefix=$ac_optarg ;;
982
983  -gas | --gas | --ga | --g)
984    # Obsolete; use --with-gas.
985    with_gas=yes ;;
986
987  -help | --help | --hel | --he | -h)
988    ac_init_help=long ;;
989  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990    ac_init_help=recursive ;;
991  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992    ac_init_help=short ;;
993
994  -host | --host | --hos | --ho)
995    ac_prev=host_alias ;;
996  -host=* | --host=* | --hos=* | --ho=*)
997    host_alias=$ac_optarg ;;
998
999  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000    ac_prev=htmldir ;;
1001  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002  | --ht=*)
1003    htmldir=$ac_optarg ;;
1004
1005  -includedir | --includedir | --includedi | --included | --include \
1006  | --includ | --inclu | --incl | --inc)
1007    ac_prev=includedir ;;
1008  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009  | --includ=* | --inclu=* | --incl=* | --inc=*)
1010    includedir=$ac_optarg ;;
1011
1012  -infodir | --infodir | --infodi | --infod | --info | --inf)
1013    ac_prev=infodir ;;
1014  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015    infodir=$ac_optarg ;;
1016
1017  -libdir | --libdir | --libdi | --libd)
1018    ac_prev=libdir ;;
1019  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020    libdir=$ac_optarg ;;
1021
1022  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023  | --libexe | --libex | --libe)
1024    ac_prev=libexecdir ;;
1025  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026  | --libexe=* | --libex=* | --libe=*)
1027    libexecdir=$ac_optarg ;;
1028
1029  -localedir | --localedir | --localedi | --localed | --locale)
1030    ac_prev=localedir ;;
1031  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032    localedir=$ac_optarg ;;
1033
1034  -localstatedir | --localstatedir | --localstatedi | --localstated \
1035  | --localstate | --localstat | --localsta | --localst | --locals)
1036    ac_prev=localstatedir ;;
1037  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039    localstatedir=$ac_optarg ;;
1040
1041  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042    ac_prev=mandir ;;
1043  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044    mandir=$ac_optarg ;;
1045
1046  -nfp | --nfp | --nf)
1047    # Obsolete; use --without-fp.
1048    with_fp=no ;;
1049
1050  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051  | --no-cr | --no-c | -n)
1052    no_create=yes ;;
1053
1054  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056    no_recursion=yes ;;
1057
1058  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060  | --oldin | --oldi | --old | --ol | --o)
1061    ac_prev=oldincludedir ;;
1062  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065    oldincludedir=$ac_optarg ;;
1066
1067  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068    ac_prev=prefix ;;
1069  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070    prefix=$ac_optarg ;;
1071
1072  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073  | --program-pre | --program-pr | --program-p)
1074    ac_prev=program_prefix ;;
1075  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077    program_prefix=$ac_optarg ;;
1078
1079  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080  | --program-suf | --program-su | --program-s)
1081    ac_prev=program_suffix ;;
1082  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084    program_suffix=$ac_optarg ;;
1085
1086  -program-transform-name | --program-transform-name \
1087  | --program-transform-nam | --program-transform-na \
1088  | --program-transform-n | --program-transform- \
1089  | --program-transform | --program-transfor \
1090  | --program-transfo | --program-transf \
1091  | --program-trans | --program-tran \
1092  | --progr-tra | --program-tr | --program-t)
1093    ac_prev=program_transform_name ;;
1094  -program-transform-name=* | --program-transform-name=* \
1095  | --program-transform-nam=* | --program-transform-na=* \
1096  | --program-transform-n=* | --program-transform-=* \
1097  | --program-transform=* | --program-transfor=* \
1098  | --program-transfo=* | --program-transf=* \
1099  | --program-trans=* | --program-tran=* \
1100  | --progr-tra=* | --program-tr=* | --program-t=*)
1101    program_transform_name=$ac_optarg ;;
1102
1103  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104    ac_prev=pdfdir ;;
1105  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106    pdfdir=$ac_optarg ;;
1107
1108  -psdir | --psdir | --psdi | --psd | --ps)
1109    ac_prev=psdir ;;
1110  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111    psdir=$ac_optarg ;;
1112
1113  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114  | -silent | --silent | --silen | --sile | --sil)
1115    silent=yes ;;
1116
1117  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118    ac_prev=sbindir ;;
1119  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120  | --sbi=* | --sb=*)
1121    sbindir=$ac_optarg ;;
1122
1123  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125  | --sharedst | --shareds | --shared | --share | --shar \
1126  | --sha | --sh)
1127    ac_prev=sharedstatedir ;;
1128  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131  | --sha=* | --sh=*)
1132    sharedstatedir=$ac_optarg ;;
1133
1134  -site | --site | --sit)
1135    ac_prev=site ;;
1136  -site=* | --site=* | --sit=*)
1137    site=$ac_optarg ;;
1138
1139  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140    ac_prev=srcdir ;;
1141  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142    srcdir=$ac_optarg ;;
1143
1144  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145  | --syscon | --sysco | --sysc | --sys | --sy)
1146    ac_prev=sysconfdir ;;
1147  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149    sysconfdir=$ac_optarg ;;
1150
1151  -target | --target | --targe | --targ | --tar | --ta | --t)
1152    ac_prev=target_alias ;;
1153  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154    target_alias=$ac_optarg ;;
1155
1156  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157    verbose=yes ;;
1158
1159  -version | --version | --versio | --versi | --vers | -V)
1160    ac_init_version=: ;;
1161
1162  -with-* | --with-*)
1163    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166      as_fn_error $? "invalid package name: $ac_useropt"
1167    ac_useropt_orig=$ac_useropt
1168    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169    case $ac_user_opts in
1170      *"
1171"with_$ac_useropt"
1172"*) ;;
1173      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174	 ac_unrecognized_sep=', ';;
1175    esac
1176    eval with_$ac_useropt=\$ac_optarg ;;
1177
1178  -without-* | --without-*)
1179    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180    # Reject names that are not valid shell variable names.
1181    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182      as_fn_error $? "invalid package name: $ac_useropt"
1183    ac_useropt_orig=$ac_useropt
1184    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185    case $ac_user_opts in
1186      *"
1187"with_$ac_useropt"
1188"*) ;;
1189      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190	 ac_unrecognized_sep=', ';;
1191    esac
1192    eval with_$ac_useropt=no ;;
1193
1194  --x)
1195    # Obsolete; use --with-x.
1196    with_x=yes ;;
1197
1198  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199  | --x-incl | --x-inc | --x-in | --x-i)
1200    ac_prev=x_includes ;;
1201  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203    x_includes=$ac_optarg ;;
1204
1205  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207    ac_prev=x_libraries ;;
1208  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210    x_libraries=$ac_optarg ;;
1211
1212  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213Try \`$0 --help' for more information"
1214    ;;
1215
1216  *=*)
1217    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218    # Reject names that are not valid shell variable names.
1219    case $ac_envvar in #(
1220      '' | [0-9]* | *[!_$as_cr_alnum]* )
1221      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222    esac
1223    eval $ac_envvar=\$ac_optarg
1224    export $ac_envvar ;;
1225
1226  *)
1227    # FIXME: should be removed in autoconf 3.0.
1228    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232    ;;
1233
1234  esac
1235done
1236
1237if test -n "$ac_prev"; then
1238  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239  as_fn_error $? "missing argument to $ac_option"
1240fi
1241
1242if test -n "$ac_unrecognized_opts"; then
1243  case $enable_option_checking in
1244    no) ;;
1245    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247  esac
1248fi
1249
1250# Check all directory arguments for consistency.
1251for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252		datadir sysconfdir sharedstatedir localstatedir includedir \
1253		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254		libdir localedir mandir
1255do
1256  eval ac_val=\$$ac_var
1257  # Remove trailing slashes.
1258  case $ac_val in
1259    */ )
1260      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261      eval $ac_var=\$ac_val;;
1262  esac
1263  # Be sure to have absolute directory names.
1264  case $ac_val in
1265    [\\/$]* | ?:[\\/]* )  continue;;
1266    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267  esac
1268  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269done
1270
1271# There might be people who depend on the old broken behavior: `$host'
1272# used to hold the argument of --host etc.
1273# FIXME: To remove some day.
1274build=$build_alias
1275host=$host_alias
1276target=$target_alias
1277
1278# FIXME: To remove some day.
1279if test "x$host_alias" != x; then
1280  if test "x$build_alias" = x; then
1281    cross_compiling=maybe
1282  elif test "x$build_alias" != "x$host_alias"; then
1283    cross_compiling=yes
1284  fi
1285fi
1286
1287ac_tool_prefix=
1288test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290test "$silent" = yes && exec 6>/dev/null
1291
1292
1293ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294ac_ls_di=`ls -di .` &&
1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296  as_fn_error $? "working directory cannot be determined"
1297test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298  as_fn_error $? "pwd does not report name of working directory"
1299
1300
1301# Find the source files, if location was not specified.
1302if test -z "$srcdir"; then
1303  ac_srcdir_defaulted=yes
1304  # Try the directory containing this script, then the parent directory.
1305  ac_confdir=`$as_dirname -- "$as_myself" ||
1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307	 X"$as_myself" : 'X\(//\)[^/]' \| \
1308	 X"$as_myself" : 'X\(//\)$' \| \
1309	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310$as_echo X"$as_myself" |
1311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\/\)[^/].*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  /^X\(\/\/\)$/{
1320	    s//\1/
1321	    q
1322	  }
1323	  /^X\(\/\).*/{
1324	    s//\1/
1325	    q
1326	  }
1327	  s/.*/./; q'`
1328  srcdir=$ac_confdir
1329  if test ! -r "$srcdir/$ac_unique_file"; then
1330    srcdir=..
1331  fi
1332else
1333  ac_srcdir_defaulted=no
1334fi
1335if test ! -r "$srcdir/$ac_unique_file"; then
1336  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338fi
1339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`(
1341	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342	pwd)`
1343# When building in place, set srcdir=.
1344if test "$ac_abs_confdir" = "$ac_pwd"; then
1345  srcdir=.
1346fi
1347# Remove unnecessary trailing slashes from srcdir.
1348# Double slashes in file names in object file debugging info
1349# mess up M-x gdb in Emacs.
1350case $srcdir in
1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352esac
1353for ac_var in $ac_precious_vars; do
1354  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355  eval ac_env_${ac_var}_value=\$${ac_var}
1356  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358done
1359
1360#
1361# Report the --help message.
1362#
1363if test "$ac_init_help" = "long"; then
1364  # Omit some internal or obsolete options to make the list less imposing.
1365  # This message is too long to be a string in the A/UX 3.1 sh.
1366  cat <<_ACEOF
1367\`configure' configures digraphs 1.1.1 to adapt to many kinds of systems.
1368
1369Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372VAR=VALUE.  See below for descriptions of some of the useful variables.
1373
1374Defaults for the options are specified in brackets.
1375
1376Configuration:
1377  -h, --help              display this help and exit
1378      --help=short        display options specific to this package
1379      --help=recursive    display the short help of all the included packages
1380  -V, --version           display version information and exit
1381  -q, --quiet, --silent   do not print \`checking ...' messages
1382      --cache-file=FILE   cache test results in FILE [disabled]
1383  -C, --config-cache      alias for \`--cache-file=config.cache'
1384  -n, --no-create         do not create output files
1385      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1386
1387Installation directories:
1388  --prefix=PREFIX         install architecture-independent files in PREFIX
1389                          [$ac_default_prefix]
1390  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1391                          [PREFIX]
1392
1393By default, \`make install' will install all the files in
1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1395an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396for instance \`--prefix=\$HOME'.
1397
1398For better control, use the options below.
1399
1400Fine tuning of the installation directories:
1401  --bindir=DIR            user executables [EPREFIX/bin]
1402  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1403  --libexecdir=DIR        program executables [EPREFIX/libexec]
1404  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1405  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1406  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1407  --libdir=DIR            object code libraries [EPREFIX/lib]
1408  --includedir=DIR        C header files [PREFIX/include]
1409  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1410  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1411  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1412  --infodir=DIR           info documentation [DATAROOTDIR/info]
1413  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1414  --mandir=DIR            man documentation [DATAROOTDIR/man]
1415  --docdir=DIR            documentation root [DATAROOTDIR/doc/digraphs]
1416  --htmldir=DIR           html documentation [DOCDIR]
1417  --dvidir=DIR            dvi documentation [DOCDIR]
1418  --pdfdir=DIR            pdf documentation [DOCDIR]
1419  --psdir=DIR             ps documentation [DOCDIR]
1420_ACEOF
1421
1422  cat <<\_ACEOF
1423
1424Program names:
1425  --program-prefix=PREFIX            prepend PREFIX to installed program names
1426  --program-suffix=SUFFIX            append SUFFIX to installed program names
1427  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1428
1429System types:
1430  --build=BUILD     configure for building on BUILD [guessed]
1431  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1432_ACEOF
1433fi
1434
1435if test -n "$ac_init_help"; then
1436  case $ac_init_help in
1437     short | recursive ) echo "Configuration of digraphs 1.1.1:";;
1438   esac
1439  cat <<\_ACEOF
1440
1441Optional Features:
1442  --disable-option-checking  ignore unrecognized --enable/--with options
1443  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1444  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1445  --enable-silent-rules   less verbose build output (undo: "make V=1")
1446  --disable-silent-rules  verbose build output (undo: "make V=0")
1447  --enable-dependency-tracking
1448                          do not reject slow dependency extractors
1449  --disable-dependency-tracking
1450                          speeds up one-time build
1451  --enable-static[=PKGS]  build static libraries [default=no]
1452  --enable-shared[=PKGS]  build shared libraries [default=yes]
1453  --enable-fast-install[=PKGS]
1454                          optimize for fast installation [default=yes]
1455  --disable-libtool-lock  avoid locking (might break parallel builds)
1456  --enable-debug          enable debug mode
1457  --enable-stats          enable stats mode
1458  --enable-code-coverage  Whether to enable code coverage support
1459  --enable-compile-warnings
1460                          enable compiler warnings
1461
1462Optional Packages:
1463  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1464  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1465  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1466                          both]
1467  --with-aix-soname=aix|svr4|both
1468                          shared library versioning (aka "SONAME") variant to
1469                          provide on AIX, [default=aix].
1470  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1471  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1472                          compiler's sysroot if not specified).
1473  --with-gaproot=<path>   specify root of GAP installation
1474  --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1475  --with-external-planarity
1476                          use external planarity
1477  --with-external-bliss   use external bliss
1478
1479Some influential environment variables:
1480  CC          C compiler command
1481  CFLAGS      C compiler flags
1482  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1483              nonstandard directory <lib dir>
1484  LIBS        libraries to pass to the linker, e.g. -l<library>
1485  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486              you have headers in a nonstandard directory <include dir>
1487  CXX         C++ compiler command
1488  CXXFLAGS    C++ compiler flags
1489  LT_SYS_LIBRARY_PATH
1490              User-defined run-time library search path.
1491  CPP         C preprocessor
1492  CXXCPP      C++ preprocessor
1493
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
1497Report bugs to the package provider.
1498_ACEOF
1499ac_status=$?
1500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503  # If there are subdirs, report their specific --help.
1504  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505    test -d "$ac_dir" ||
1506      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507      continue
1508    ac_builddir=.
1509
1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1513  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514  # A ".." for each directory in $ac_dir_suffix.
1515  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516  case $ac_top_builddir_sub in
1517  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519  esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
1525
1526case $srcdir in
1527  .)  # We are building in place.
1528    ac_srcdir=.
1529    ac_top_srcdir=$ac_top_builddir_sub
1530    ac_abs_top_srcdir=$ac_pwd ;;
1531  [\\/]* | ?:[\\/]* )  # Absolute name.
1532    ac_srcdir=$srcdir$ac_dir_suffix;
1533    ac_top_srcdir=$srcdir
1534    ac_abs_top_srcdir=$srcdir ;;
1535  *) # Relative name.
1536    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537    ac_top_srcdir=$ac_top_build_prefix$srcdir
1538    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539esac
1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542    cd "$ac_dir" || { ac_status=$?; continue; }
1543    # Check for guested configure.
1544    if test -f "$ac_srcdir/configure.gnu"; then
1545      echo &&
1546      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547    elif test -f "$ac_srcdir/configure"; then
1548      echo &&
1549      $SHELL "$ac_srcdir/configure" --help=recursive
1550    else
1551      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552    fi || ac_status=$?
1553    cd "$ac_pwd" || { ac_status=$?; break; }
1554  done
1555fi
1556
1557test -n "$ac_init_help" && exit $ac_status
1558if $ac_init_version; then
1559  cat <<\_ACEOF
1560digraphs configure 1.1.1
1561generated by GNU Autoconf 2.69
1562
1563Copyright (C) 2012 Free Software Foundation, Inc.
1564This configure script is free software; the Free Software Foundation
1565gives unlimited permission to copy, distribute and modify it.
1566_ACEOF
1567  exit
1568fi
1569
1570## ------------------------ ##
1571## Autoconf initialization. ##
1572## ------------------------ ##
1573
1574# ac_fn_c_try_compile LINENO
1575# --------------------------
1576# Try to compile conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_compile ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  rm -f conftest.$ac_objext
1581  if { { ac_try="$ac_compile"
1582case "(($ac_try" in
1583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584  *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588  (eval "$ac_compile") 2>conftest.err
1589  ac_status=$?
1590  if test -s conftest.err; then
1591    grep -v '^ *+' conftest.err >conftest.er1
1592    cat conftest.er1 >&5
1593    mv -f conftest.er1 conftest.err
1594  fi
1595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596  test $ac_status = 0; } && {
1597	 test -z "$ac_c_werror_flag" ||
1598	 test ! -s conftest.err
1599       } && test -s conftest.$ac_objext; then :
1600  ac_retval=0
1601else
1602  $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605	ac_retval=1
1606fi
1607  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608  as_fn_set_status $ac_retval
1609
1610} # ac_fn_c_try_compile
1611
1612# ac_fn_cxx_try_compile LINENO
1613# ----------------------------
1614# Try to compile conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_cxx_try_compile ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  rm -f conftest.$ac_objext
1619  if { { ac_try="$ac_compile"
1620case "(($ac_try" in
1621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622  *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626  (eval "$ac_compile") 2>conftest.err
1627  ac_status=$?
1628  if test -s conftest.err; then
1629    grep -v '^ *+' conftest.err >conftest.er1
1630    cat conftest.er1 >&5
1631    mv -f conftest.er1 conftest.err
1632  fi
1633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634  test $ac_status = 0; } && {
1635	 test -z "$ac_cxx_werror_flag" ||
1636	 test ! -s conftest.err
1637       } && test -s conftest.$ac_objext; then :
1638  ac_retval=0
1639else
1640  $as_echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643	ac_retval=1
1644fi
1645  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646  as_fn_set_status $ac_retval
1647
1648} # ac_fn_cxx_try_compile
1649
1650# ac_fn_c_try_link LINENO
1651# -----------------------
1652# Try to link conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_link ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  rm -f conftest.$ac_objext conftest$ac_exeext
1657  if { { ac_try="$ac_link"
1658case "(($ac_try" in
1659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660  *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664  (eval "$ac_link") 2>conftest.err
1665  ac_status=$?
1666  if test -s conftest.err; then
1667    grep -v '^ *+' conftest.err >conftest.er1
1668    cat conftest.er1 >&5
1669    mv -f conftest.er1 conftest.err
1670  fi
1671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672  test $ac_status = 0; } && {
1673	 test -z "$ac_c_werror_flag" ||
1674	 test ! -s conftest.err
1675       } && test -s conftest$ac_exeext && {
1676	 test "$cross_compiling" = yes ||
1677	 test -x conftest$ac_exeext
1678       }; then :
1679  ac_retval=0
1680else
1681  $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684	ac_retval=1
1685fi
1686  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688  # interfere with the next link command; also delete a directory that is
1689  # left behind by Apple's compiler.  We do this before executing the actions.
1690  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692  as_fn_set_status $ac_retval
1693
1694} # ac_fn_c_try_link
1695
1696# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697# -------------------------------------------------------
1698# Tests whether HEADER exists and can be compiled using the include files in
1699# INCLUDES, setting the cache variable VAR accordingly.
1700ac_fn_c_check_header_compile ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704$as_echo_n "checking for $2... " >&6; }
1705if eval \${$3+:} false; then :
1706  $as_echo_n "(cached) " >&6
1707else
1708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709/* end confdefs.h.  */
1710$4
1711#include <$2>
1712_ACEOF
1713if ac_fn_c_try_compile "$LINENO"; then :
1714  eval "$3=yes"
1715else
1716  eval "$3=no"
1717fi
1718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719fi
1720eval ac_res=\$$3
1721	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722$as_echo "$ac_res" >&6; }
1723  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724
1725} # ac_fn_c_check_header_compile
1726
1727# ac_fn_c_try_cpp LINENO
1728# ----------------------
1729# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_cpp ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  if { { ac_try="$ac_cpp conftest.$ac_ext"
1734case "(($ac_try" in
1735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736  *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741  ac_status=$?
1742  if test -s conftest.err; then
1743    grep -v '^ *+' conftest.err >conftest.er1
1744    cat conftest.er1 >&5
1745    mv -f conftest.er1 conftest.err
1746  fi
1747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748  test $ac_status = 0; } > conftest.i && {
1749	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750	 test ! -s conftest.err
1751       }; then :
1752  ac_retval=0
1753else
1754  $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757    ac_retval=1
1758fi
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760  as_fn_set_status $ac_retval
1761
1762} # ac_fn_c_try_cpp
1763
1764# ac_fn_c_try_run LINENO
1765# ----------------------
1766# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767# that executables *can* be run.
1768ac_fn_c_try_run ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  if { { ac_try="$ac_link"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_link") 2>&5
1779  ac_status=$?
1780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782  { { case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_try") 2>&5
1789  ac_status=$?
1790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; }; }; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: program exited with status $ac_status" >&5
1795       $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798       ac_retval=$ac_status
1799fi
1800  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802  as_fn_set_status $ac_retval
1803
1804} # ac_fn_c_try_run
1805
1806# ac_fn_c_check_func LINENO FUNC VAR
1807# ----------------------------------
1808# Tests whether FUNC exists, setting the cache variable VAR accordingly
1809ac_fn_c_check_func ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813$as_echo_n "checking for $2... " >&6; }
1814if eval \${$3+:} false; then :
1815  $as_echo_n "(cached) " >&6
1816else
1817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h.  */
1819/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1820   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1821#define $2 innocuous_$2
1822
1823/* System header to define __stub macros and hopefully few prototypes,
1824    which can conflict with char $2 (); below.
1825    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1826    <limits.h> exists even on freestanding compilers.  */
1827
1828#ifdef __STDC__
1829# include <limits.h>
1830#else
1831# include <assert.h>
1832#endif
1833
1834#undef $2
1835
1836/* Override any GCC internal prototype to avoid an error.
1837   Use char because int might match the return type of a GCC
1838   builtin and then its argument prototype would still apply.  */
1839#ifdef __cplusplus
1840extern "C"
1841#endif
1842char $2 ();
1843/* The GNU C library defines this for functions which it implements
1844    to always fail with ENOSYS.  Some functions are actually named
1845    something starting with __ and the normal name is an alias.  */
1846#if defined __stub_$2 || defined __stub___$2
1847choke me
1848#endif
1849
1850int
1851main ()
1852{
1853return $2 ();
1854  ;
1855  return 0;
1856}
1857_ACEOF
1858if ac_fn_c_try_link "$LINENO"; then :
1859  eval "$3=yes"
1860else
1861  eval "$3=no"
1862fi
1863rm -f core conftest.err conftest.$ac_objext \
1864    conftest$ac_exeext conftest.$ac_ext
1865fi
1866eval ac_res=\$$3
1867	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868$as_echo "$ac_res" >&6; }
1869  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871} # ac_fn_c_check_func
1872
1873# ac_fn_cxx_try_cpp LINENO
1874# ------------------------
1875# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1876ac_fn_cxx_try_cpp ()
1877{
1878  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879  if { { ac_try="$ac_cpp conftest.$ac_ext"
1880case "(($ac_try" in
1881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882  *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887  ac_status=$?
1888  if test -s conftest.err; then
1889    grep -v '^ *+' conftest.err >conftest.er1
1890    cat conftest.er1 >&5
1891    mv -f conftest.er1 conftest.err
1892  fi
1893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894  test $ac_status = 0; } > conftest.i && {
1895	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1896	 test ! -s conftest.err
1897       }; then :
1898  ac_retval=0
1899else
1900  $as_echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903    ac_retval=1
1904fi
1905  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906  as_fn_set_status $ac_retval
1907
1908} # ac_fn_cxx_try_cpp
1909
1910# ac_fn_cxx_try_link LINENO
1911# -------------------------
1912# Try to link conftest.$ac_ext, and return whether this succeeded.
1913ac_fn_cxx_try_link ()
1914{
1915  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916  rm -f conftest.$ac_objext conftest$ac_exeext
1917  if { { ac_try="$ac_link"
1918case "(($ac_try" in
1919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920  *) ac_try_echo=$ac_try;;
1921esac
1922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923$as_echo "$ac_try_echo"; } >&5
1924  (eval "$ac_link") 2>conftest.err
1925  ac_status=$?
1926  if test -s conftest.err; then
1927    grep -v '^ *+' conftest.err >conftest.er1
1928    cat conftest.er1 >&5
1929    mv -f conftest.er1 conftest.err
1930  fi
1931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932  test $ac_status = 0; } && {
1933	 test -z "$ac_cxx_werror_flag" ||
1934	 test ! -s conftest.err
1935       } && test -s conftest$ac_exeext && {
1936	 test "$cross_compiling" = yes ||
1937	 test -x conftest$ac_exeext
1938       }; then :
1939  ac_retval=0
1940else
1941  $as_echo "$as_me: failed program was:" >&5
1942sed 's/^/| /' conftest.$ac_ext >&5
1943
1944	ac_retval=1
1945fi
1946  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948  # interfere with the next link command; also delete a directory that is
1949  # left behind by Apple's compiler.  We do this before executing the actions.
1950  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952  as_fn_set_status $ac_retval
1953
1954} # ac_fn_cxx_try_link
1955
1956# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1957# -------------------------------------------------------
1958# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1959# the include files in INCLUDES and setting the cache variable VAR
1960# accordingly.
1961ac_fn_c_check_header_mongrel ()
1962{
1963  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964  if eval \${$3+:} false; then :
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966$as_echo_n "checking for $2... " >&6; }
1967if eval \${$3+:} false; then :
1968  $as_echo_n "(cached) " >&6
1969fi
1970eval ac_res=\$$3
1971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973else
1974  # Is the header compilable?
1975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1976$as_echo_n "checking $2 usability... " >&6; }
1977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979$4
1980#include <$2>
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983  ac_header_compiler=yes
1984else
1985  ac_header_compiler=no
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1989$as_echo "$ac_header_compiler" >&6; }
1990
1991# Is the header present?
1992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1993$as_echo_n "checking $2 presence... " >&6; }
1994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996#include <$2>
1997_ACEOF
1998if ac_fn_c_try_cpp "$LINENO"; then :
1999  ac_header_preproc=yes
2000else
2001  ac_header_preproc=no
2002fi
2003rm -f conftest.err conftest.i conftest.$ac_ext
2004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2005$as_echo "$ac_header_preproc" >&6; }
2006
2007# So?  What about this header?
2008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2009  yes:no: )
2010    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2011$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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    ;;
2015  no:yes:* )
2016    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2017$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2018    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2019$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2020    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2021$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2022    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2023$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2024    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2025$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026    ;;
2027esac
2028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029$as_echo_n "checking for $2... " >&6; }
2030if eval \${$3+:} false; then :
2031  $as_echo_n "(cached) " >&6
2032else
2033  eval "$3=\$ac_header_compiler"
2034fi
2035eval ac_res=\$$3
2036	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037$as_echo "$ac_res" >&6; }
2038fi
2039  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040
2041} # ac_fn_c_check_header_mongrel
2042cat >config.log <<_ACEOF
2043This file contains any messages produced by compilers while
2044running configure, to aid debugging if configure makes a mistake.
2045
2046It was created by digraphs $as_me 1.1.1, which was
2047generated by GNU Autoconf 2.69.  Invocation command line was
2048
2049  $ $0 $@
2050
2051_ACEOF
2052exec 5>>config.log
2053{
2054cat <<_ASUNAME
2055## --------- ##
2056## Platform. ##
2057## --------- ##
2058
2059hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2060uname -m = `(uname -m) 2>/dev/null || echo unknown`
2061uname -r = `(uname -r) 2>/dev/null || echo unknown`
2062uname -s = `(uname -s) 2>/dev/null || echo unknown`
2063uname -v = `(uname -v) 2>/dev/null || echo unknown`
2064
2065/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2066/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2067
2068/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2069/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2070/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2071/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2072/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2073/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2074/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2075
2076_ASUNAME
2077
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081  IFS=$as_save_IFS
2082  test -z "$as_dir" && as_dir=.
2083    $as_echo "PATH: $as_dir"
2084  done
2085IFS=$as_save_IFS
2086
2087} >&5
2088
2089cat >&5 <<_ACEOF
2090
2091
2092## ----------- ##
2093## Core tests. ##
2094## ----------- ##
2095
2096_ACEOF
2097
2098
2099# Keep a trace of the command line.
2100# Strip out --no-create and --no-recursion so they do not pile up.
2101# Strip out --silent because we don't want to record it for future runs.
2102# Also quote any args containing shell meta-characters.
2103# Make two passes to allow for proper duplicate-argument suppression.
2104ac_configure_args=
2105ac_configure_args0=
2106ac_configure_args1=
2107ac_must_keep_next=false
2108for ac_pass in 1 2
2109do
2110  for ac_arg
2111  do
2112    case $ac_arg in
2113    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2114    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2115    | -silent | --silent | --silen | --sile | --sil)
2116      continue ;;
2117    *\'*)
2118      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2119    esac
2120    case $ac_pass in
2121    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2122    2)
2123      as_fn_append ac_configure_args1 " '$ac_arg'"
2124      if test $ac_must_keep_next = true; then
2125	ac_must_keep_next=false # Got value, back to normal.
2126      else
2127	case $ac_arg in
2128	  *=* | --config-cache | -C | -disable-* | --disable-* \
2129	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2130	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2131	  | -with-* | --with-* | -without-* | --without-* | --x)
2132	    case "$ac_configure_args0 " in
2133	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2134	    esac
2135	    ;;
2136	  -* ) ac_must_keep_next=true ;;
2137	esac
2138      fi
2139      as_fn_append ac_configure_args " '$ac_arg'"
2140      ;;
2141    esac
2142  done
2143done
2144{ ac_configure_args0=; unset ac_configure_args0;}
2145{ ac_configure_args1=; unset ac_configure_args1;}
2146
2147# When interrupted or exit'd, cleanup temporary files, and complete
2148# config.log.  We remove comments because anyway the quotes in there
2149# would cause problems or look ugly.
2150# WARNING: Use '\'' to represent an apostrophe within the trap.
2151# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2152trap 'exit_status=$?
2153  # Save into config.log some information that might help in debugging.
2154  {
2155    echo
2156
2157    $as_echo "## ---------------- ##
2158## Cache variables. ##
2159## ---------------- ##"
2160    echo
2161    # The following way of writing the cache mishandles newlines in values,
2162(
2163  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2164    eval ac_val=\$$ac_var
2165    case $ac_val in #(
2166    *${as_nl}*)
2167      case $ac_var in #(
2168      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2169$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2170      esac
2171      case $ac_var in #(
2172      _ | IFS | as_nl) ;; #(
2173      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2174      *) { eval $ac_var=; unset $ac_var;} ;;
2175      esac ;;
2176    esac
2177  done
2178  (set) 2>&1 |
2179    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2180    *${as_nl}ac_space=\ *)
2181      sed -n \
2182	"s/'\''/'\''\\\\'\'''\''/g;
2183	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2184      ;; #(
2185    *)
2186      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2187      ;;
2188    esac |
2189    sort
2190)
2191    echo
2192
2193    $as_echo "## ----------------- ##
2194## Output variables. ##
2195## ----------------- ##"
2196    echo
2197    for ac_var in $ac_subst_vars
2198    do
2199      eval ac_val=\$$ac_var
2200      case $ac_val in
2201      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202      esac
2203      $as_echo "$ac_var='\''$ac_val'\''"
2204    done | sort
2205    echo
2206
2207    if test -n "$ac_subst_files"; then
2208      $as_echo "## ------------------- ##
2209## File substitutions. ##
2210## ------------------- ##"
2211      echo
2212      for ac_var in $ac_subst_files
2213      do
2214	eval ac_val=\$$ac_var
2215	case $ac_val in
2216	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217	esac
2218	$as_echo "$ac_var='\''$ac_val'\''"
2219      done | sort
2220      echo
2221    fi
2222
2223    if test -s confdefs.h; then
2224      $as_echo "## ----------- ##
2225## confdefs.h. ##
2226## ----------- ##"
2227      echo
2228      cat confdefs.h
2229      echo
2230    fi
2231    test "$ac_signal" != 0 &&
2232      $as_echo "$as_me: caught signal $ac_signal"
2233    $as_echo "$as_me: exit $exit_status"
2234  } >&5
2235  rm -f core *.core core.conftest.* &&
2236    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2237    exit $exit_status
2238' 0
2239for ac_signal in 1 2 13 15; do
2240  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2241done
2242ac_signal=0
2243
2244# confdefs.h avoids OS command line length limits that DEFS can exceed.
2245rm -f -r conftest* confdefs.h
2246
2247$as_echo "/* confdefs.h */" > confdefs.h
2248
2249# Predefined preprocessor variables.
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_NAME "$PACKAGE_NAME"
2253_ACEOF
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2257_ACEOF
2258
2259cat >>confdefs.h <<_ACEOF
2260#define PACKAGE_VERSION "$PACKAGE_VERSION"
2261_ACEOF
2262
2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE_STRING "$PACKAGE_STRING"
2265_ACEOF
2266
2267cat >>confdefs.h <<_ACEOF
2268#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2269_ACEOF
2270
2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_URL "$PACKAGE_URL"
2273_ACEOF
2274
2275
2276# Let the site file select an alternate cache file if it wants to.
2277# Prefer an explicitly selected file to automatically selected ones.
2278ac_site_file1=NONE
2279ac_site_file2=NONE
2280if test -n "$CONFIG_SITE"; then
2281  # We do not want a PATH search for config.site.
2282  case $CONFIG_SITE in #((
2283    -*)  ac_site_file1=./$CONFIG_SITE;;
2284    */*) ac_site_file1=$CONFIG_SITE;;
2285    *)   ac_site_file1=./$CONFIG_SITE;;
2286  esac
2287elif test "x$prefix" != xNONE; then
2288  ac_site_file1=$prefix/share/config.site
2289  ac_site_file2=$prefix/etc/config.site
2290else
2291  ac_site_file1=$ac_default_prefix/share/config.site
2292  ac_site_file2=$ac_default_prefix/etc/config.site
2293fi
2294for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2295do
2296  test "x$ac_site_file" = xNONE && continue
2297  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2298    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2299$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2300    sed 's/^/| /' "$ac_site_file" >&5
2301    . "$ac_site_file" \
2302      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304as_fn_error $? "failed to load site script $ac_site_file
2305See \`config.log' for more details" "$LINENO" 5; }
2306  fi
2307done
2308
2309if test -r "$cache_file"; then
2310  # Some versions of bash will fail to source /dev/null (special files
2311  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2312  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2313    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2314$as_echo "$as_me: loading cache $cache_file" >&6;}
2315    case $cache_file in
2316      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2317      *)                      . "./$cache_file";;
2318    esac
2319  fi
2320else
2321  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2322$as_echo "$as_me: creating cache $cache_file" >&6;}
2323  >$cache_file
2324fi
2325
2326# Check that the precious variables saved in the cache have kept the same
2327# value.
2328ac_cache_corrupted=false
2329for ac_var in $ac_precious_vars; do
2330  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2331  eval ac_new_set=\$ac_env_${ac_var}_set
2332  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2333  eval ac_new_val=\$ac_env_${ac_var}_value
2334  case $ac_old_set,$ac_new_set in
2335    set,)
2336      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2337$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2338      ac_cache_corrupted=: ;;
2339    ,set)
2340      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2341$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2342      ac_cache_corrupted=: ;;
2343    ,);;
2344    *)
2345      if test "x$ac_old_val" != "x$ac_new_val"; then
2346	# differences in whitespace do not lead to failure.
2347	ac_old_val_w=`echo x $ac_old_val`
2348	ac_new_val_w=`echo x $ac_new_val`
2349	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2350	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2351$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2352	  ac_cache_corrupted=:
2353	else
2354	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2355$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2356	  eval $ac_var=\$ac_old_val
2357	fi
2358	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2359$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2360	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2361$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2362      fi;;
2363  esac
2364  # Pass precious variables to config.status.
2365  if test "$ac_new_set" = set; then
2366    case $ac_new_val in
2367    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2368    *) ac_arg=$ac_var=$ac_new_val ;;
2369    esac
2370    case " $ac_configure_args " in
2371      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2372      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2373    esac
2374  fi
2375done
2376if $ac_cache_corrupted; then
2377  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2380$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2381  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2382fi
2383## -------------------- ##
2384## Main body of script. ##
2385## -------------------- ##
2386
2387ac_ext=c
2388ac_cpp='$CPP $CPPFLAGS'
2389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392
2393
2394
2395ac_config_headers="$ac_config_headers src/_pkgconfig.h:cnf/pkgconfig.h.in"
2396
2397
2398ac_aux_dir=
2399for ac_dir in cnf "$srcdir"/cnf; do
2400  if test -f "$ac_dir/install-sh"; then
2401    ac_aux_dir=$ac_dir
2402    ac_install_sh="$ac_aux_dir/install-sh -c"
2403    break
2404  elif test -f "$ac_dir/install.sh"; then
2405    ac_aux_dir=$ac_dir
2406    ac_install_sh="$ac_aux_dir/install.sh -c"
2407    break
2408  elif test -f "$ac_dir/shtool"; then
2409    ac_aux_dir=$ac_dir
2410    ac_install_sh="$ac_aux_dir/shtool install -c"
2411    break
2412  fi
2413done
2414if test -z "$ac_aux_dir"; then
2415  as_fn_error $? "cannot find install-sh, install.sh, or shtool in cnf \"$srcdir\"/cnf" "$LINENO" 5
2416fi
2417
2418# These three variables are undocumented and unsupported,
2419# and are intended to be withdrawn in a future Autoconf release.
2420# They can cause serious problems if a builder's source tree is in a directory
2421# whose full name contains unusual characters.
2422ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2423ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2424ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2425
2426
2427
2428# Make sure we can run config.sub.
2429$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2430  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2431
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2433$as_echo_n "checking build system type... " >&6; }
2434if ${ac_cv_build+:} false; then :
2435  $as_echo_n "(cached) " >&6
2436else
2437  ac_build_alias=$build_alias
2438test "x$ac_build_alias" = x &&
2439  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2440test "x$ac_build_alias" = x &&
2441  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2442ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2443  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2444
2445fi
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2447$as_echo "$ac_cv_build" >&6; }
2448case $ac_cv_build in
2449*-*-*) ;;
2450*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2451esac
2452build=$ac_cv_build
2453ac_save_IFS=$IFS; IFS='-'
2454set x $ac_cv_build
2455shift
2456build_cpu=$1
2457build_vendor=$2
2458shift; shift
2459# Remember, the first character of IFS is used to create $*,
2460# except with old shells:
2461build_os=$*
2462IFS=$ac_save_IFS
2463case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2464
2465
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2467$as_echo_n "checking host system type... " >&6; }
2468if ${ac_cv_host+:} false; then :
2469  $as_echo_n "(cached) " >&6
2470else
2471  if test "x$host_alias" = x; then
2472  ac_cv_host=$ac_cv_build
2473else
2474  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2475    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2476fi
2477
2478fi
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2480$as_echo "$ac_cv_host" >&6; }
2481case $ac_cv_host in
2482*-*-*) ;;
2483*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2484esac
2485host=$ac_cv_host
2486ac_save_IFS=$IFS; IFS='-'
2487set x $ac_cv_host
2488shift
2489host_cpu=$1
2490host_vendor=$2
2491shift; shift
2492# Remember, the first character of IFS is used to create $*,
2493# except with old shells:
2494host_os=$*
2495IFS=$ac_save_IFS
2496case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2497
2498
2499
2500am__api_version='1.16'
2501
2502# Find a good install program.  We prefer a C program (faster),
2503# so one script is as good as another.  But avoid the broken or
2504# incompatible versions:
2505# SysV /etc/install, /usr/sbin/install
2506# SunOS /usr/etc/install
2507# IRIX /sbin/install
2508# AIX /bin/install
2509# AmigaOS /C/install, which installs bootblocks on floppy discs
2510# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2511# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2512# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2513# OS/2's system install, which has a completely different semantic
2514# ./install, which can be erroneously created by make from ./install.sh.
2515# Reject install programs that cannot install multiple files.
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2517$as_echo_n "checking for a BSD-compatible install... " >&6; }
2518if test -z "$INSTALL"; then
2519if ${ac_cv_path_install+:} false; then :
2520  $as_echo_n "(cached) " >&6
2521else
2522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525  IFS=$as_save_IFS
2526  test -z "$as_dir" && as_dir=.
2527    # Account for people who put trailing slashes in PATH elements.
2528case $as_dir/ in #((
2529  ./ | .// | /[cC]/* | \
2530  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2531  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2532  /usr/ucb/* ) ;;
2533  *)
2534    # OSF1 and SCO ODT 3.0 have their own names for install.
2535    # Don't use installbsd from OSF since it installs stuff as root
2536    # by default.
2537    for ac_prog in ginstall scoinst install; do
2538      for ac_exec_ext in '' $ac_executable_extensions; do
2539	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2540	  if test $ac_prog = install &&
2541	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2542	    # AIX install.  It has an incompatible calling convention.
2543	    :
2544	  elif test $ac_prog = install &&
2545	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2546	    # program-specific install script used by HP pwplus--don't use.
2547	    :
2548	  else
2549	    rm -rf conftest.one conftest.two conftest.dir
2550	    echo one > conftest.one
2551	    echo two > conftest.two
2552	    mkdir conftest.dir
2553	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2554	      test -s conftest.one && test -s conftest.two &&
2555	      test -s conftest.dir/conftest.one &&
2556	      test -s conftest.dir/conftest.two
2557	    then
2558	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2559	      break 3
2560	    fi
2561	  fi
2562	fi
2563      done
2564    done
2565    ;;
2566esac
2567
2568  done
2569IFS=$as_save_IFS
2570
2571rm -rf conftest.one conftest.two conftest.dir
2572
2573fi
2574  if test "${ac_cv_path_install+set}" = set; then
2575    INSTALL=$ac_cv_path_install
2576  else
2577    # As a last resort, use the slow shell script.  Don't cache a
2578    # value for INSTALL within a source directory, because that will
2579    # break other packages using the cache if that directory is
2580    # removed, or if the value is a relative name.
2581    INSTALL=$ac_install_sh
2582  fi
2583fi
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2585$as_echo "$INSTALL" >&6; }
2586
2587# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2588# It thinks the first close brace ends the variable substitution.
2589test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2590
2591test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2592
2593test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2594
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2596$as_echo_n "checking whether build environment is sane... " >&6; }
2597# Reject unsafe characters in $srcdir or the absolute working directory
2598# name.  Accept space and tab only in the latter.
2599am_lf='
2600'
2601case `pwd` in
2602  *[\\\"\#\$\&\'\`$am_lf]*)
2603    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2604esac
2605case $srcdir in
2606  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2607    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2608esac
2609
2610# Do 'set' in a subshell so we don't clobber the current shell's
2611# arguments.  Must try -L first in case configure is actually a
2612# symlink; some systems play weird games with the mod time of symlinks
2613# (eg FreeBSD returns the mod time of the symlink's containing
2614# directory).
2615if (
2616   am_has_slept=no
2617   for am_try in 1 2; do
2618     echo "timestamp, slept: $am_has_slept" > conftest.file
2619     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2620     if test "$*" = "X"; then
2621	# -L didn't work.
2622	set X `ls -t "$srcdir/configure" conftest.file`
2623     fi
2624     if test "$*" != "X $srcdir/configure conftest.file" \
2625	&& test "$*" != "X conftest.file $srcdir/configure"; then
2626
2627	# If neither matched, then we have a broken ls.  This can happen
2628	# if, for instance, CONFIG_SHELL is bash and it inherits a
2629	# broken ls alias from the environment.  This has actually
2630	# happened.  Such a system could not be considered "sane".
2631	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2632  alias in your environment" "$LINENO" 5
2633     fi
2634     if test "$2" = conftest.file || test $am_try -eq 2; then
2635       break
2636     fi
2637     # Just in case.
2638     sleep 1
2639     am_has_slept=yes
2640   done
2641   test "$2" = conftest.file
2642   )
2643then
2644   # Ok.
2645   :
2646else
2647   as_fn_error $? "newly created file is older than distributed files!
2648Check your system clock" "$LINENO" 5
2649fi
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651$as_echo "yes" >&6; }
2652# If we didn't sleep, we still need to ensure time stamps of config.status and
2653# generated files are strictly newer.
2654am_sleep_pid=
2655if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2656  ( sleep 1 ) &
2657  am_sleep_pid=$!
2658fi
2659
2660rm -f conftest.file
2661
2662test "$program_prefix" != NONE &&
2663  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2664# Use a double $ so make ignores it.
2665test "$program_suffix" != NONE &&
2666  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2667# Double any \ or $.
2668# By default was `s,x,x', remove it if useless.
2669ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2670program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2671
2672# Expand $ac_aux_dir to an absolute path.
2673am_aux_dir=`cd "$ac_aux_dir" && pwd`
2674
2675if test x"${MISSING+set}" != xset; then
2676  case $am_aux_dir in
2677  *\ * | *\	*)
2678    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2679  *)
2680    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2681  esac
2682fi
2683# Use eval to expand $SHELL
2684if eval "$MISSING --is-lightweight"; then
2685  am_missing_run="$MISSING "
2686else
2687  am_missing_run=
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2689$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2690fi
2691
2692if test x"${install_sh+set}" != xset; then
2693  case $am_aux_dir in
2694  *\ * | *\	*)
2695    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2696  *)
2697    install_sh="\${SHELL} $am_aux_dir/install-sh"
2698  esac
2699fi
2700
2701# Installed binaries are usually stripped using 'strip' when the user
2702# run "make install-strip".  However 'strip' might not be the right
2703# tool to use in cross-compilation environments, therefore Automake
2704# will honor the 'STRIP' environment variable to overrule this program.
2705if test "$cross_compiling" != no; then
2706  if test -n "$ac_tool_prefix"; then
2707  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2708set dummy ${ac_tool_prefix}strip; ac_word=$2
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if ${ac_cv_prog_STRIP+:} false; then :
2712  $as_echo_n "(cached) " >&6
2713else
2714  if test -n "$STRIP"; then
2715  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720  IFS=$as_save_IFS
2721  test -z "$as_dir" && as_dir=.
2722    for ac_exec_ext in '' $ac_executable_extensions; do
2723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726    break 2
2727  fi
2728done
2729  done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734STRIP=$ac_cv_prog_STRIP
2735if test -n "$STRIP"; then
2736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2737$as_echo "$STRIP" >&6; }
2738else
2739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743
2744fi
2745if test -z "$ac_cv_prog_STRIP"; then
2746  ac_ct_STRIP=$STRIP
2747  # Extract the first word of "strip", so it can be a program name with args.
2748set dummy strip; ac_word=$2
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750$as_echo_n "checking for $ac_word... " >&6; }
2751if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2752  $as_echo_n "(cached) " >&6
2753else
2754  if test -n "$ac_ct_STRIP"; then
2755  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2756else
2757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH
2759do
2760  IFS=$as_save_IFS
2761  test -z "$as_dir" && as_dir=.
2762    for ac_exec_ext in '' $ac_executable_extensions; do
2763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764    ac_cv_prog_ac_ct_STRIP="strip"
2765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766    break 2
2767  fi
2768done
2769  done
2770IFS=$as_save_IFS
2771
2772fi
2773fi
2774ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2775if test -n "$ac_ct_STRIP"; then
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2777$as_echo "$ac_ct_STRIP" >&6; }
2778else
2779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780$as_echo "no" >&6; }
2781fi
2782
2783  if test "x$ac_ct_STRIP" = x; then
2784    STRIP=":"
2785  else
2786    case $cross_compiling:$ac_tool_warned in
2787yes:)
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2790ac_tool_warned=yes ;;
2791esac
2792    STRIP=$ac_ct_STRIP
2793  fi
2794else
2795  STRIP="$ac_cv_prog_STRIP"
2796fi
2797
2798fi
2799INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2800
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2802$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2803if test -z "$MKDIR_P"; then
2804  if ${ac_cv_path_mkdir+:} false; then :
2805  $as_echo_n "(cached) " >&6
2806else
2807  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812    for ac_prog in mkdir gmkdir; do
2813	 for ac_exec_ext in '' $ac_executable_extensions; do
2814	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2815	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2816	     'mkdir (GNU coreutils) '* | \
2817	     'mkdir (coreutils) '* | \
2818	     'mkdir (fileutils) '4.1*)
2819	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2820	       break 3;;
2821	   esac
2822	 done
2823       done
2824  done
2825IFS=$as_save_IFS
2826
2827fi
2828
2829  test -d ./--version && rmdir ./--version
2830  if test "${ac_cv_path_mkdir+set}" = set; then
2831    MKDIR_P="$ac_cv_path_mkdir -p"
2832  else
2833    # As a last resort, use the slow shell script.  Don't cache a
2834    # value for MKDIR_P within a source directory, because that will
2835    # break other packages using the cache if that directory is
2836    # removed, or if the value is a relative name.
2837    MKDIR_P="$ac_install_sh -d"
2838  fi
2839fi
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2841$as_echo "$MKDIR_P" >&6; }
2842
2843for ac_prog in gawk mawk nawk awk
2844do
2845  # Extract the first word of "$ac_prog", so it can be a program name with args.
2846set dummy $ac_prog; ac_word=$2
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848$as_echo_n "checking for $ac_word... " >&6; }
2849if ${ac_cv_prog_AWK+:} false; then :
2850  $as_echo_n "(cached) " >&6
2851else
2852  if test -n "$AWK"; then
2853  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858  IFS=$as_save_IFS
2859  test -z "$as_dir" && as_dir=.
2860    for ac_exec_ext in '' $ac_executable_extensions; do
2861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862    ac_cv_prog_AWK="$ac_prog"
2863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864    break 2
2865  fi
2866done
2867  done
2868IFS=$as_save_IFS
2869
2870fi
2871fi
2872AWK=$ac_cv_prog_AWK
2873if test -n "$AWK"; then
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2875$as_echo "$AWK" >&6; }
2876else
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878$as_echo "no" >&6; }
2879fi
2880
2881
2882  test -n "$AWK" && break
2883done
2884
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2886$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2887set x ${MAKE-make}
2888ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2889if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2890  $as_echo_n "(cached) " >&6
2891else
2892  cat >conftest.make <<\_ACEOF
2893SHELL = /bin/sh
2894all:
2895	@echo '@@@%%%=$(MAKE)=@@@%%%'
2896_ACEOF
2897# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2898case `${MAKE-make} -f conftest.make 2>/dev/null` in
2899  *@@@%%%=?*=@@@%%%*)
2900    eval ac_cv_prog_make_${ac_make}_set=yes;;
2901  *)
2902    eval ac_cv_prog_make_${ac_make}_set=no;;
2903esac
2904rm -f conftest.make
2905fi
2906if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2908$as_echo "yes" >&6; }
2909  SET_MAKE=
2910else
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913  SET_MAKE="MAKE=${MAKE-make}"
2914fi
2915
2916rm -rf .tst 2>/dev/null
2917mkdir .tst 2>/dev/null
2918if test -d .tst; then
2919  am__leading_dot=.
2920else
2921  am__leading_dot=_
2922fi
2923rmdir .tst 2>/dev/null
2924
2925# Check whether --enable-silent-rules was given.
2926if test "${enable_silent_rules+set}" = set; then :
2927  enableval=$enable_silent_rules;
2928fi
2929
2930case $enable_silent_rules in # (((
2931  yes) AM_DEFAULT_VERBOSITY=0;;
2932   no) AM_DEFAULT_VERBOSITY=1;;
2933    *) AM_DEFAULT_VERBOSITY=1;;
2934esac
2935am_make=${MAKE-make}
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2937$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2938if ${am_cv_make_support_nested_variables+:} false; then :
2939  $as_echo_n "(cached) " >&6
2940else
2941  if $as_echo 'TRUE=$(BAR$(V))
2942BAR0=false
2943BAR1=true
2944V=1
2945am__doit:
2946	@$(TRUE)
2947.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2948  am_cv_make_support_nested_variables=yes
2949else
2950  am_cv_make_support_nested_variables=no
2951fi
2952fi
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2954$as_echo "$am_cv_make_support_nested_variables" >&6; }
2955if test $am_cv_make_support_nested_variables = yes; then
2956    AM_V='$(V)'
2957  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2958else
2959  AM_V=$AM_DEFAULT_VERBOSITY
2960  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2961fi
2962AM_BACKSLASH='\'
2963
2964if test "`cd $srcdir && pwd`" != "`pwd`"; then
2965  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2966  # is not polluted with repeated "-I."
2967  am__isrc=' -I$(srcdir)'
2968  # test to see if srcdir already configured
2969  if test -f $srcdir/config.status; then
2970    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2971  fi
2972fi
2973
2974# test whether we have cygpath
2975if test -z "$CYGPATH_W"; then
2976  if (cygpath --version) >/dev/null 2>/dev/null; then
2977    CYGPATH_W='cygpath -w'
2978  else
2979    CYGPATH_W=echo
2980  fi
2981fi
2982
2983
2984# Define the identity of the package.
2985 PACKAGE='digraphs'
2986 VERSION='1.1.1'
2987
2988
2989cat >>confdefs.h <<_ACEOF
2990#define PACKAGE "$PACKAGE"
2991_ACEOF
2992
2993
2994cat >>confdefs.h <<_ACEOF
2995#define VERSION "$VERSION"
2996_ACEOF
2997
2998# Some tools Automake needs.
2999
3000ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3001
3002
3003AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3004
3005
3006AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3007
3008
3009AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3010
3011
3012MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3013
3014# For better backward compatibility.  To be removed once Automake 1.9.x
3015# dies out for good.  For more background, see:
3016# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3017# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3018mkdir_p='$(MKDIR_P)'
3019
3020# We need awk for the "check" target (and possibly the TAP driver).  The
3021# system "awk" is bad on some platforms.
3022# Always define AMTAR for backward compatibility.  Yes, it's still used
3023# in the wild :-(  We should find a proper way to deprecate it ...
3024AMTAR='$${TAR-tar}'
3025
3026
3027# We'll loop over all known methods to create a tar archive until one works.
3028_am_tools='gnutar  pax cpio none'
3029
3030am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3031
3032
3033
3034
3035
3036
3037# POSIX will say in a future version that running "rm -f" with no argument
3038# is OK; and we want to be able to make that assumption in our Makefile
3039# recipes.  So use an aggressive probe to check that the usage we want is
3040# actually supported "in the wild" to an acceptable degree.
3041# See automake bug#10828.
3042# To make any issue more visible, cause the running configure to be aborted
3043# by default if the 'rm' program in use doesn't match our expectations; the
3044# user can still override this though.
3045if rm -f && rm -fr && rm -rf; then : OK; else
3046  cat >&2 <<'END'
3047Oops!
3048
3049Your 'rm' program seems unable to run without file operands specified
3050on the command line, even when the '-f' option is present.  This is contrary
3051to the behaviour of most rm programs out there, and not conforming with
3052the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3053
3054Please tell bug-automake@gnu.org about your system, including the value
3055of your $PATH and any error possibly output before this message.  This
3056can help us improve future automake versions.
3057
3058END
3059  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3060    echo 'Configuration will proceed anyway, since you have set the' >&2
3061    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3062    echo >&2
3063  else
3064    cat >&2 <<'END'
3065Aborting the configuration process, to ensure you take notice of the issue.
3066
3067You can download and install GNU coreutils to get an 'rm' implementation
3068that behaves properly: <https://www.gnu.org/software/coreutils/>.
3069
3070If you want to complete the configuration process using your problematic
3071'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3072to "yes", and re-run configure.
3073
3074END
3075    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3076  fi
3077fi
3078
3079# Check whether --enable-silent-rules was given.
3080if test "${enable_silent_rules+set}" = set; then :
3081  enableval=$enable_silent_rules;
3082fi
3083
3084case $enable_silent_rules in # (((
3085  yes) AM_DEFAULT_VERBOSITY=0;;
3086   no) AM_DEFAULT_VERBOSITY=1;;
3087    *) AM_DEFAULT_VERBOSITY=0;;
3088esac
3089am_make=${MAKE-make}
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3091$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3092if ${am_cv_make_support_nested_variables+:} false; then :
3093  $as_echo_n "(cached) " >&6
3094else
3095  if $as_echo 'TRUE=$(BAR$(V))
3096BAR0=false
3097BAR1=true
3098V=1
3099am__doit:
3100	@$(TRUE)
3101.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3102  am_cv_make_support_nested_variables=yes
3103else
3104  am_cv_make_support_nested_variables=no
3105fi
3106fi
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3108$as_echo "$am_cv_make_support_nested_variables" >&6; }
3109if test $am_cv_make_support_nested_variables = yes; then
3110    AM_V='$(V)'
3111  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3112else
3113  AM_V=$AM_DEFAULT_VERBOSITY
3114  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3115fi
3116AM_BACKSLASH='\'
3117
3118DEPDIR="${am__leading_dot}deps"
3119
3120ac_config_commands="$ac_config_commands depfiles"
3121
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3123$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3124cat > confinc.mk << 'END'
3125am__doit:
3126	@echo this is the am__doit target >confinc.out
3127.PHONY: am__doit
3128END
3129am__include="#"
3130am__quote=
3131# BSD make does it like this.
3132echo '.include "confinc.mk" # ignored' > confmf.BSD
3133# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3134echo 'include confinc.mk # ignored' > confmf.GNU
3135_am_result=no
3136for s in GNU BSD; do
3137  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3138   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }
3142  case $?:`cat confinc.out 2>/dev/null` in #(
3143  '0:this is the am__doit target') :
3144    case $s in #(
3145  BSD) :
3146    am__include='.include' am__quote='"' ;; #(
3147  *) :
3148    am__include='include' am__quote='' ;;
3149esac ;; #(
3150  *) :
3151     ;;
3152esac
3153  if test "$am__include" != "#"; then
3154    _am_result="yes ($s style)"
3155    break
3156  fi
3157done
3158rm -f confinc.* confmf.*
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3160$as_echo "${_am_result}" >&6; }
3161
3162# Check whether --enable-dependency-tracking was given.
3163if test "${enable_dependency_tracking+set}" = set; then :
3164  enableval=$enable_dependency_tracking;
3165fi
3166
3167if test "x$enable_dependency_tracking" != xno; then
3168  am_depcomp="$ac_aux_dir/depcomp"
3169  AMDEPBACKSLASH='\'
3170  am__nodep='_no'
3171fi
3172 if test "x$enable_dependency_tracking" != xno; then
3173  AMDEP_TRUE=
3174  AMDEP_FALSE='#'
3175else
3176  AMDEP_TRUE='#'
3177  AMDEP_FALSE=
3178fi
3179
3180
3181ac_ext=c
3182ac_cpp='$CPP $CPPFLAGS'
3183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186if test -n "$ac_tool_prefix"; then
3187  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3188set dummy ${ac_tool_prefix}gcc; ac_word=$2
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190$as_echo_n "checking for $ac_word... " >&6; }
3191if ${ac_cv_prog_CC+:} false; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194  if test -n "$CC"; then
3195  ac_cv_prog_CC="$CC" # Let the user override the test.
3196else
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200  IFS=$as_save_IFS
3201  test -z "$as_dir" && as_dir=.
3202    for ac_exec_ext in '' $ac_executable_extensions; do
3203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206    break 2
3207  fi
3208done
3209  done
3210IFS=$as_save_IFS
3211
3212fi
3213fi
3214CC=$ac_cv_prog_CC
3215if test -n "$CC"; then
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217$as_echo "$CC" >&6; }
3218else
3219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220$as_echo "no" >&6; }
3221fi
3222
3223
3224fi
3225if test -z "$ac_cv_prog_CC"; then
3226  ac_ct_CC=$CC
3227  # Extract the first word of "gcc", so it can be a program name with args.
3228set dummy gcc; ac_word=$2
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230$as_echo_n "checking for $ac_word... " >&6; }
3231if ${ac_cv_prog_ac_ct_CC+:} false; then :
3232  $as_echo_n "(cached) " >&6
3233else
3234  if test -n "$ac_ct_CC"; then
3235  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3236else
3237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238for as_dir in $PATH
3239do
3240  IFS=$as_save_IFS
3241  test -z "$as_dir" && as_dir=.
3242    for ac_exec_ext in '' $ac_executable_extensions; do
3243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244    ac_cv_prog_ac_ct_CC="gcc"
3245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246    break 2
3247  fi
3248done
3249  done
3250IFS=$as_save_IFS
3251
3252fi
3253fi
3254ac_ct_CC=$ac_cv_prog_ac_ct_CC
3255if test -n "$ac_ct_CC"; then
3256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3257$as_echo "$ac_ct_CC" >&6; }
3258else
3259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260$as_echo "no" >&6; }
3261fi
3262
3263  if test "x$ac_ct_CC" = x; then
3264    CC=""
3265  else
3266    case $cross_compiling:$ac_tool_warned in
3267yes:)
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3270ac_tool_warned=yes ;;
3271esac
3272    CC=$ac_ct_CC
3273  fi
3274else
3275  CC="$ac_cv_prog_CC"
3276fi
3277
3278if test -z "$CC"; then
3279          if test -n "$ac_tool_prefix"; then
3280    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3281set dummy ${ac_tool_prefix}cc; ac_word=$2
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283$as_echo_n "checking for $ac_word... " >&6; }
3284if ${ac_cv_prog_CC+:} false; then :
3285  $as_echo_n "(cached) " >&6
3286else
3287  if test -n "$CC"; then
3288  ac_cv_prog_CC="$CC" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293  IFS=$as_save_IFS
3294  test -z "$as_dir" && as_dir=.
3295    for ac_exec_ext in '' $ac_executable_extensions; do
3296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297    ac_cv_prog_CC="${ac_tool_prefix}cc"
3298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299    break 2
3300  fi
3301done
3302  done
3303IFS=$as_save_IFS
3304
3305fi
3306fi
3307CC=$ac_cv_prog_CC
3308if test -n "$CC"; then
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3310$as_echo "$CC" >&6; }
3311else
3312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
3314fi
3315
3316
3317  fi
3318fi
3319if test -z "$CC"; then
3320  # Extract the first word of "cc", so it can be a program name with args.
3321set dummy cc; ac_word=$2
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323$as_echo_n "checking for $ac_word... " >&6; }
3324if ${ac_cv_prog_CC+:} false; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  if test -n "$CC"; then
3328  ac_cv_prog_CC="$CC" # Let the user override the test.
3329else
3330  ac_prog_rejected=no
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    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3339       ac_prog_rejected=yes
3340       continue
3341     fi
3342    ac_cv_prog_CC="cc"
3343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344    break 2
3345  fi
3346done
3347  done
3348IFS=$as_save_IFS
3349
3350if test $ac_prog_rejected = yes; then
3351  # We found a bogon in the path, so make sure we never use it.
3352  set dummy $ac_cv_prog_CC
3353  shift
3354  if test $# != 0; then
3355    # We chose a different compiler from the bogus one.
3356    # However, it has the same basename, so the bogon will be chosen
3357    # first if we set CC to just the basename; use the full file name.
3358    shift
3359    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3360  fi
3361fi
3362fi
3363fi
3364CC=$ac_cv_prog_CC
3365if test -n "$CC"; then
3366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3367$as_echo "$CC" >&6; }
3368else
3369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370$as_echo "no" >&6; }
3371fi
3372
3373
3374fi
3375if test -z "$CC"; then
3376  if test -n "$ac_tool_prefix"; then
3377  for ac_prog in cl.exe
3378  do
3379    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3380set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382$as_echo_n "checking for $ac_word... " >&6; }
3383if ${ac_cv_prog_CC+:} false; then :
3384  $as_echo_n "(cached) " >&6
3385else
3386  if test -n "$CC"; then
3387  ac_cv_prog_CC="$CC" # Let the user override the test.
3388else
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392  IFS=$as_save_IFS
3393  test -z "$as_dir" && as_dir=.
3394    for ac_exec_ext in '' $ac_executable_extensions; do
3395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398    break 2
3399  fi
3400done
3401  done
3402IFS=$as_save_IFS
3403
3404fi
3405fi
3406CC=$ac_cv_prog_CC
3407if test -n "$CC"; then
3408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3409$as_echo "$CC" >&6; }
3410else
3411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412$as_echo "no" >&6; }
3413fi
3414
3415
3416    test -n "$CC" && break
3417  done
3418fi
3419if test -z "$CC"; then
3420  ac_ct_CC=$CC
3421  for ac_prog in cl.exe
3422do
3423  # Extract the first word of "$ac_prog", so it can be a program name with args.
3424set dummy $ac_prog; ac_word=$2
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426$as_echo_n "checking for $ac_word... " >&6; }
3427if ${ac_cv_prog_ac_ct_CC+:} false; then :
3428  $as_echo_n "(cached) " >&6
3429else
3430  if test -n "$ac_ct_CC"; then
3431  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3432else
3433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434for as_dir in $PATH
3435do
3436  IFS=$as_save_IFS
3437  test -z "$as_dir" && as_dir=.
3438    for ac_exec_ext in '' $ac_executable_extensions; do
3439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440    ac_cv_prog_ac_ct_CC="$ac_prog"
3441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442    break 2
3443  fi
3444done
3445  done
3446IFS=$as_save_IFS
3447
3448fi
3449fi
3450ac_ct_CC=$ac_cv_prog_ac_ct_CC
3451if test -n "$ac_ct_CC"; then
3452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3453$as_echo "$ac_ct_CC" >&6; }
3454else
3455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456$as_echo "no" >&6; }
3457fi
3458
3459
3460  test -n "$ac_ct_CC" && break
3461done
3462
3463  if test "x$ac_ct_CC" = x; then
3464    CC=""
3465  else
3466    case $cross_compiling:$ac_tool_warned in
3467yes:)
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470ac_tool_warned=yes ;;
3471esac
3472    CC=$ac_ct_CC
3473  fi
3474fi
3475
3476fi
3477
3478
3479test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481as_fn_error $? "no acceptable C compiler found in \$PATH
3482See \`config.log' for more details" "$LINENO" 5; }
3483
3484# Provide some information about the compiler.
3485$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3486set X $ac_compile
3487ac_compiler=$2
3488for ac_option in --version -v -V -qversion; do
3489  { { ac_try="$ac_compiler $ac_option >&5"
3490case "(($ac_try" in
3491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492  *) ac_try_echo=$ac_try;;
3493esac
3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495$as_echo "$ac_try_echo"; } >&5
3496  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3497  ac_status=$?
3498  if test -s conftest.err; then
3499    sed '10a\
3500... rest of stderr output deleted ...
3501         10q' conftest.err >conftest.er1
3502    cat conftest.er1 >&5
3503  fi
3504  rm -f conftest.er1 conftest.err
3505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506  test $ac_status = 0; }
3507done
3508
3509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h.  */
3511
3512int
3513main ()
3514{
3515
3516  ;
3517  return 0;
3518}
3519_ACEOF
3520ac_clean_files_save=$ac_clean_files
3521ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3522# Try to create an executable without -o first, disregard a.out.
3523# It will help us diagnose broken compilers, and finding out an intuition
3524# of exeext.
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3526$as_echo_n "checking whether the C compiler works... " >&6; }
3527ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3528
3529# The possible output files:
3530ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3531
3532ac_rmfiles=
3533for ac_file in $ac_files
3534do
3535  case $ac_file in
3536    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3538  esac
3539done
3540rm -f $ac_rmfiles
3541
3542if { { ac_try="$ac_link_default"
3543case "(($ac_try" in
3544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545  *) ac_try_echo=$ac_try;;
3546esac
3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548$as_echo "$ac_try_echo"; } >&5
3549  (eval "$ac_link_default") 2>&5
3550  ac_status=$?
3551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552  test $ac_status = 0; }; then :
3553  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3554# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3555# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3556# so that the user can short-circuit this test for compilers unknown to
3557# Autoconf.
3558for ac_file in $ac_files ''
3559do
3560  test -f "$ac_file" || continue
3561  case $ac_file in
3562    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3563	;;
3564    [ab].out )
3565	# We found the default executable, but exeext='' is most
3566	# certainly right.
3567	break;;
3568    *.* )
3569	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3570	then :; else
3571	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3572	fi
3573	# We set ac_cv_exeext here because the later test for it is not
3574	# safe: cross compilers may not add the suffix if given an `-o'
3575	# argument, so we may need to know it at that point already.
3576	# Even if this section looks crufty: it has the advantage of
3577	# actually working.
3578	break;;
3579    * )
3580	break;;
3581  esac
3582done
3583test "$ac_cv_exeext" = no && ac_cv_exeext=
3584
3585else
3586  ac_file=''
3587fi
3588if test -z "$ac_file"; then :
3589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590$as_echo "no" >&6; }
3591$as_echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596as_fn_error 77 "C compiler cannot create executables
3597See \`config.log' for more details" "$LINENO" 5; }
3598else
3599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600$as_echo "yes" >&6; }
3601fi
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3603$as_echo_n "checking for C compiler default output file name... " >&6; }
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3605$as_echo "$ac_file" >&6; }
3606ac_exeext=$ac_cv_exeext
3607
3608rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3609ac_clean_files=$ac_clean_files_save
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3611$as_echo_n "checking for suffix of executables... " >&6; }
3612if { { ac_try="$ac_link"
3613case "(($ac_try" in
3614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615  *) ac_try_echo=$ac_try;;
3616esac
3617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618$as_echo "$ac_try_echo"; } >&5
3619  (eval "$ac_link") 2>&5
3620  ac_status=$?
3621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622  test $ac_status = 0; }; then :
3623  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3624# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3625# work properly (i.e., refer to `conftest.exe'), while it won't with
3626# `rm'.
3627for ac_file in conftest.exe conftest conftest.*; do
3628  test -f "$ac_file" || continue
3629  case $ac_file in
3630    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3631    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3632	  break;;
3633    * ) break;;
3634  esac
3635done
3636else
3637  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3640See \`config.log' for more details" "$LINENO" 5; }
3641fi
3642rm -f conftest conftest$ac_cv_exeext
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3644$as_echo "$ac_cv_exeext" >&6; }
3645
3646rm -f conftest.$ac_ext
3647EXEEXT=$ac_cv_exeext
3648ac_exeext=$EXEEXT
3649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h.  */
3651#include <stdio.h>
3652int
3653main ()
3654{
3655FILE *f = fopen ("conftest.out", "w");
3656 return ferror (f) || fclose (f) != 0;
3657
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662ac_clean_files="$ac_clean_files conftest.out"
3663# Check that the compiler produces executables we can run.  If not, either
3664# the compiler is broken, or we cross compile.
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3666$as_echo_n "checking whether we are cross compiling... " >&6; }
3667if test "$cross_compiling" != yes; then
3668  { { ac_try="$ac_link"
3669case "(($ac_try" in
3670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671  *) ac_try_echo=$ac_try;;
3672esac
3673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674$as_echo "$ac_try_echo"; } >&5
3675  (eval "$ac_link") 2>&5
3676  ac_status=$?
3677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678  test $ac_status = 0; }
3679  if { ac_try='./conftest$ac_cv_exeext'
3680  { { case "(($ac_try" in
3681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682  *) ac_try_echo=$ac_try;;
3683esac
3684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685$as_echo "$ac_try_echo"; } >&5
3686  (eval "$ac_try") 2>&5
3687  ac_status=$?
3688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689  test $ac_status = 0; }; }; then
3690    cross_compiling=no
3691  else
3692    if test "$cross_compiling" = maybe; then
3693	cross_compiling=yes
3694    else
3695	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697as_fn_error $? "cannot run C compiled programs.
3698If you meant to cross compile, use \`--host'.
3699See \`config.log' for more details" "$LINENO" 5; }
3700    fi
3701  fi
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3704$as_echo "$cross_compiling" >&6; }
3705
3706rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3707ac_clean_files=$ac_clean_files_save
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3709$as_echo_n "checking for suffix of object files... " >&6; }
3710if ${ac_cv_objext+:} false; then :
3711  $as_echo_n "(cached) " >&6
3712else
3713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h.  */
3715
3716int
3717main ()
3718{
3719
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724rm -f conftest.o conftest.obj
3725if { { ac_try="$ac_compile"
3726case "(($ac_try" in
3727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728  *) ac_try_echo=$ac_try;;
3729esac
3730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731$as_echo "$ac_try_echo"; } >&5
3732  (eval "$ac_compile") 2>&5
3733  ac_status=$?
3734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735  test $ac_status = 0; }; then :
3736  for ac_file in conftest.o conftest.obj conftest.*; do
3737  test -f "$ac_file" || continue;
3738  case $ac_file in
3739    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3740    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3741       break;;
3742  esac
3743done
3744else
3745  $as_echo "$as_me: failed program was:" >&5
3746sed 's/^/| /' conftest.$ac_ext >&5
3747
3748{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750as_fn_error $? "cannot compute suffix of object files: cannot compile
3751See \`config.log' for more details" "$LINENO" 5; }
3752fi
3753rm -f conftest.$ac_cv_objext conftest.$ac_ext
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3756$as_echo "$ac_cv_objext" >&6; }
3757OBJEXT=$ac_cv_objext
3758ac_objext=$OBJEXT
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3760$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3761if ${ac_cv_c_compiler_gnu+:} false; then :
3762  $as_echo_n "(cached) " >&6
3763else
3764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h.  */
3766
3767int
3768main ()
3769{
3770#ifndef __GNUC__
3771       choke me
3772#endif
3773
3774  ;
3775  return 0;
3776}
3777_ACEOF
3778if ac_fn_c_try_compile "$LINENO"; then :
3779  ac_compiler_gnu=yes
3780else
3781  ac_compiler_gnu=no
3782fi
3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784ac_cv_c_compiler_gnu=$ac_compiler_gnu
3785
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3788$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3789if test $ac_compiler_gnu = yes; then
3790  GCC=yes
3791else
3792  GCC=
3793fi
3794ac_test_CFLAGS=${CFLAGS+set}
3795ac_save_CFLAGS=$CFLAGS
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3797$as_echo_n "checking whether $CC accepts -g... " >&6; }
3798if ${ac_cv_prog_cc_g+:} false; then :
3799  $as_echo_n "(cached) " >&6
3800else
3801  ac_save_c_werror_flag=$ac_c_werror_flag
3802   ac_c_werror_flag=yes
3803   ac_cv_prog_cc_g=no
3804   CFLAGS="-g"
3805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806/* end confdefs.h.  */
3807
3808int
3809main ()
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816if ac_fn_c_try_compile "$LINENO"; then :
3817  ac_cv_prog_cc_g=yes
3818else
3819  CFLAGS=""
3820      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h.  */
3822
3823int
3824main ()
3825{
3826
3827  ;
3828  return 0;
3829}
3830_ACEOF
3831if ac_fn_c_try_compile "$LINENO"; then :
3832
3833else
3834  ac_c_werror_flag=$ac_save_c_werror_flag
3835	 CFLAGS="-g"
3836	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h.  */
3838
3839int
3840main ()
3841{
3842
3843  ;
3844  return 0;
3845}
3846_ACEOF
3847if ac_fn_c_try_compile "$LINENO"; then :
3848  ac_cv_prog_cc_g=yes
3849fi
3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851fi
3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853fi
3854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855   ac_c_werror_flag=$ac_save_c_werror_flag
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3858$as_echo "$ac_cv_prog_cc_g" >&6; }
3859if test "$ac_test_CFLAGS" = set; then
3860  CFLAGS=$ac_save_CFLAGS
3861elif test $ac_cv_prog_cc_g = yes; then
3862  if test "$GCC" = yes; then
3863    CFLAGS="-g -O2"
3864  else
3865    CFLAGS="-g"
3866  fi
3867else
3868  if test "$GCC" = yes; then
3869    CFLAGS="-O2"
3870  else
3871    CFLAGS=
3872  fi
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3875$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3876if ${ac_cv_prog_cc_c89+:} false; then :
3877  $as_echo_n "(cached) " >&6
3878else
3879  ac_cv_prog_cc_c89=no
3880ac_save_CC=$CC
3881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h.  */
3883#include <stdarg.h>
3884#include <stdio.h>
3885struct stat;
3886/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3887struct buf { int x; };
3888FILE * (*rcsopen) (struct buf *, struct stat *, int);
3889static char *e (p, i)
3890     char **p;
3891     int i;
3892{
3893  return p[i];
3894}
3895static char *f (char * (*g) (char **, int), char **p, ...)
3896{
3897  char *s;
3898  va_list v;
3899  va_start (v,p);
3900  s = g (p, va_arg (v,int));
3901  va_end (v);
3902  return s;
3903}
3904
3905/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3906   function prototypes and stuff, but not '\xHH' hex character constants.
3907   These don't provoke an error unfortunately, instead are silently treated
3908   as 'x'.  The following induces an error, until -std is added to get
3909   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3910   array size at least.  It's necessary to write '\x00'==0 to get something
3911   that's true only with -std.  */
3912int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3913
3914/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3915   inside strings and character constants.  */
3916#define FOO(x) 'x'
3917int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3918
3919int test (int i, double x);
3920struct s1 {int (*f) (int a);};
3921struct s2 {int (*f) (double a);};
3922int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3923int argc;
3924char **argv;
3925int
3926main ()
3927{
3928return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3929  ;
3930  return 0;
3931}
3932_ACEOF
3933for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3934	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3935do
3936  CC="$ac_save_CC $ac_arg"
3937  if ac_fn_c_try_compile "$LINENO"; then :
3938  ac_cv_prog_cc_c89=$ac_arg
3939fi
3940rm -f core conftest.err conftest.$ac_objext
3941  test "x$ac_cv_prog_cc_c89" != "xno" && break
3942done
3943rm -f conftest.$ac_ext
3944CC=$ac_save_CC
3945
3946fi
3947# AC_CACHE_VAL
3948case "x$ac_cv_prog_cc_c89" in
3949  x)
3950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3951$as_echo "none needed" >&6; } ;;
3952  xno)
3953    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3954$as_echo "unsupported" >&6; } ;;
3955  *)
3956    CC="$CC $ac_cv_prog_cc_c89"
3957    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3958$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3959esac
3960if test "x$ac_cv_prog_cc_c89" != xno; then :
3961
3962fi
3963
3964ac_ext=c
3965ac_cpp='$CPP $CPPFLAGS'
3966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969
3970ac_ext=c
3971ac_cpp='$CPP $CPPFLAGS'
3972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3976$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3977if ${am_cv_prog_cc_c_o+:} false; then :
3978  $as_echo_n "(cached) " >&6
3979else
3980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h.  */
3982
3983int
3984main ()
3985{
3986
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991  # Make sure it works both with $CC and with simple cc.
3992  # Following AC_PROG_CC_C_O, we do the test twice because some
3993  # compilers refuse to overwrite an existing .o file with -o,
3994  # though they will create one.
3995  am_cv_prog_cc_c_o=yes
3996  for am_i in 1 2; do
3997    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3998   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3999   ac_status=$?
4000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001   (exit $ac_status); } \
4002         && test -f conftest2.$ac_objext; then
4003      : OK
4004    else
4005      am_cv_prog_cc_c_o=no
4006      break
4007    fi
4008  done
4009  rm -f core conftest*
4010  unset am_i
4011fi
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4013$as_echo "$am_cv_prog_cc_c_o" >&6; }
4014if test "$am_cv_prog_cc_c_o" != yes; then
4015   # Losing compiler, so override with the script.
4016   # FIXME: It is wrong to rewrite CC.
4017   # But if we don't then we get into trouble of one sort or another.
4018   # A longer-term fix would be to have automake use am__CC in this case,
4019   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4020   CC="$am_aux_dir/compile $CC"
4021fi
4022ac_ext=c
4023ac_cpp='$CPP $CPPFLAGS'
4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027
4028
4029depcc="$CC"   am_compiler_list=
4030
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4032$as_echo_n "checking dependency style of $depcc... " >&6; }
4033if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4034  $as_echo_n "(cached) " >&6
4035else
4036  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4037  # We make a subdir and do the tests there.  Otherwise we can end up
4038  # making bogus files that we don't know about and never remove.  For
4039  # instance it was reported that on HP-UX the gcc test will end up
4040  # making a dummy file named 'D' -- because '-MD' means "put the output
4041  # in D".
4042  rm -rf conftest.dir
4043  mkdir conftest.dir
4044  # Copy depcomp to subdir because otherwise we won't find it if we're
4045  # using a relative directory.
4046  cp "$am_depcomp" conftest.dir
4047  cd conftest.dir
4048  # We will build objects and dependencies in a subdirectory because
4049  # it helps to detect inapplicable dependency modes.  For instance
4050  # both Tru64's cc and ICC support -MD to output dependencies as a
4051  # side effect of compilation, but ICC will put the dependencies in
4052  # the current directory while Tru64 will put them in the object
4053  # directory.
4054  mkdir sub
4055
4056  am_cv_CC_dependencies_compiler_type=none
4057  if test "$am_compiler_list" = ""; then
4058     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4059  fi
4060  am__universal=false
4061  case " $depcc " in #(
4062     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4063     esac
4064
4065  for depmode in $am_compiler_list; do
4066    # Setup a source with many dependencies, because some compilers
4067    # like to wrap large dependency lists on column 80 (with \), and
4068    # we should not choose a depcomp mode which is confused by this.
4069    #
4070    # We need to recreate these files for each test, as the compiler may
4071    # overwrite some of them when testing with obscure command lines.
4072    # This happens at least with the AIX C compiler.
4073    : > sub/conftest.c
4074    for i in 1 2 3 4 5 6; do
4075      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4076      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4077      # Solaris 10 /bin/sh.
4078      echo '/* dummy */' > sub/conftst$i.h
4079    done
4080    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4081
4082    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4083    # mode.  It turns out that the SunPro C++ compiler does not properly
4084    # handle '-M -o', and we need to detect this.  Also, some Intel
4085    # versions had trouble with output in subdirs.
4086    am__obj=sub/conftest.${OBJEXT-o}
4087    am__minus_obj="-o $am__obj"
4088    case $depmode in
4089    gcc)
4090      # This depmode causes a compiler race in universal mode.
4091      test "$am__universal" = false || continue
4092      ;;
4093    nosideeffect)
4094      # After this tag, mechanisms are not by side-effect, so they'll
4095      # only be used when explicitly requested.
4096      if test "x$enable_dependency_tracking" = xyes; then
4097	continue
4098      else
4099	break
4100      fi
4101      ;;
4102    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4103      # This compiler won't grok '-c -o', but also, the minuso test has
4104      # not run yet.  These depmodes are late enough in the game, and
4105      # so weak that their functioning should not be impacted.
4106      am__obj=conftest.${OBJEXT-o}
4107      am__minus_obj=
4108      ;;
4109    none) break ;;
4110    esac
4111    if depmode=$depmode \
4112       source=sub/conftest.c object=$am__obj \
4113       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4114       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4115         >/dev/null 2>conftest.err &&
4116       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4117       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4118       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4119       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4120      # icc doesn't choke on unknown options, it will just issue warnings
4121      # or remarks (even with -Werror).  So we grep stderr for any message
4122      # that says an option was ignored or not supported.
4123      # When given -MP, icc 7.0 and 7.1 complain thusly:
4124      #   icc: Command line warning: ignoring option '-M'; no argument required
4125      # The diagnosis changed in icc 8.0:
4126      #   icc: Command line remark: option '-MP' not supported
4127      if (grep 'ignoring option' conftest.err ||
4128          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4129        am_cv_CC_dependencies_compiler_type=$depmode
4130        break
4131      fi
4132    fi
4133  done
4134
4135  cd ..
4136  rm -rf conftest.dir
4137else
4138  am_cv_CC_dependencies_compiler_type=none
4139fi
4140
4141fi
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4143$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4144CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4145
4146 if
4147  test "x$enable_dependency_tracking" != xno \
4148  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4149  am__fastdepCC_TRUE=
4150  am__fastdepCC_FALSE='#'
4151else
4152  am__fastdepCC_TRUE='#'
4153  am__fastdepCC_FALSE=
4154fi
4155
4156
4157
4158if test -n "$ac_tool_prefix"; then
4159  for ac_prog in ar lib "link -lib"
4160  do
4161    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164$as_echo_n "checking for $ac_word... " >&6; }
4165if ${ac_cv_prog_AR+:} false; then :
4166  $as_echo_n "(cached) " >&6
4167else
4168  if test -n "$AR"; then
4169  ac_cv_prog_AR="$AR" # Let the user override the test.
4170else
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174  IFS=$as_save_IFS
4175  test -z "$as_dir" && as_dir=.
4176    for ac_exec_ext in '' $ac_executable_extensions; do
4177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180    break 2
4181  fi
4182done
4183  done
4184IFS=$as_save_IFS
4185
4186fi
4187fi
4188AR=$ac_cv_prog_AR
4189if test -n "$AR"; then
4190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4191$as_echo "$AR" >&6; }
4192else
4193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194$as_echo "no" >&6; }
4195fi
4196
4197
4198    test -n "$AR" && break
4199  done
4200fi
4201if test -z "$AR"; then
4202  ac_ct_AR=$AR
4203  for ac_prog in ar lib "link -lib"
4204do
4205  # Extract the first word of "$ac_prog", so it can be a program name with args.
4206set dummy $ac_prog; ac_word=$2
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208$as_echo_n "checking for $ac_word... " >&6; }
4209if ${ac_cv_prog_ac_ct_AR+:} false; then :
4210  $as_echo_n "(cached) " >&6
4211else
4212  if test -n "$ac_ct_AR"; then
4213  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218  IFS=$as_save_IFS
4219  test -z "$as_dir" && as_dir=.
4220    for ac_exec_ext in '' $ac_executable_extensions; do
4221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222    ac_cv_prog_ac_ct_AR="$ac_prog"
4223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224    break 2
4225  fi
4226done
4227  done
4228IFS=$as_save_IFS
4229
4230fi
4231fi
4232ac_ct_AR=$ac_cv_prog_ac_ct_AR
4233if test -n "$ac_ct_AR"; then
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4235$as_echo "$ac_ct_AR" >&6; }
4236else
4237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238$as_echo "no" >&6; }
4239fi
4240
4241
4242  test -n "$ac_ct_AR" && break
4243done
4244
4245  if test "x$ac_ct_AR" = x; then
4246    AR="false"
4247  else
4248    case $cross_compiling:$ac_tool_warned in
4249yes:)
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252ac_tool_warned=yes ;;
4253esac
4254    AR=$ac_ct_AR
4255  fi
4256fi
4257
4258: ${AR=ar}
4259
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4261$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4262if ${am_cv_ar_interface+:} false; then :
4263  $as_echo_n "(cached) " >&6
4264else
4265  ac_ext=c
4266ac_cpp='$CPP $CPPFLAGS'
4267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271   am_cv_ar_interface=ar
4272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273/* end confdefs.h.  */
4274int some_variable = 0;
4275_ACEOF
4276if ac_fn_c_try_compile "$LINENO"; then :
4277  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4278      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4279  (eval $am_ar_try) 2>&5
4280  ac_status=$?
4281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282  test $ac_status = 0; }
4283      if test "$ac_status" -eq 0; then
4284        am_cv_ar_interface=ar
4285      else
4286        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4287        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4288  (eval $am_ar_try) 2>&5
4289  ac_status=$?
4290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291  test $ac_status = 0; }
4292        if test "$ac_status" -eq 0; then
4293          am_cv_ar_interface=lib
4294        else
4295          am_cv_ar_interface=unknown
4296        fi
4297      fi
4298      rm -f conftest.lib libconftest.a
4299
4300fi
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302   ac_ext=c
4303ac_cpp='$CPP $CPPFLAGS'
4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307
4308fi
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4310$as_echo "$am_cv_ar_interface" >&6; }
4311
4312case $am_cv_ar_interface in
4313ar)
4314  ;;
4315lib)
4316  # Microsoft lib, so override with the ar-lib wrapper script.
4317  # FIXME: It is wrong to rewrite AR.
4318  # But if we don't then we get into trouble of one sort or another.
4319  # A longer-term fix would be to have automake use am__AR in this case,
4320  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4321  # similar.
4322  AR="$am_aux_dir/ar-lib $AR"
4323  ;;
4324unknown)
4325  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4326  ;;
4327esac
4328
4329
4330
4331ac_config_commands="$ac_config_commands src/digraphs-config.h"
4332
4333
4334
4335
4336ac_ext=cpp
4337ac_cpp='$CXXCPP $CPPFLAGS'
4338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4341if test -z "$CXX"; then
4342  if test -n "$CCC"; then
4343    CXX=$CCC
4344  else
4345    if test -n "$ac_tool_prefix"; then
4346  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4347  do
4348    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351$as_echo_n "checking for $ac_word... " >&6; }
4352if ${ac_cv_prog_CXX+:} false; then :
4353  $as_echo_n "(cached) " >&6
4354else
4355  if test -n "$CXX"; then
4356  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4357else
4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361  IFS=$as_save_IFS
4362  test -z "$as_dir" && as_dir=.
4363    for ac_exec_ext in '' $ac_executable_extensions; do
4364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367    break 2
4368  fi
4369done
4370  done
4371IFS=$as_save_IFS
4372
4373fi
4374fi
4375CXX=$ac_cv_prog_CXX
4376if test -n "$CXX"; then
4377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4378$as_echo "$CXX" >&6; }
4379else
4380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381$as_echo "no" >&6; }
4382fi
4383
4384
4385    test -n "$CXX" && break
4386  done
4387fi
4388if test -z "$CXX"; then
4389  ac_ct_CXX=$CXX
4390  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4391do
4392  # Extract the first word of "$ac_prog", so it can be a program name with args.
4393set dummy $ac_prog; ac_word=$2
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395$as_echo_n "checking for $ac_word... " >&6; }
4396if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4397  $as_echo_n "(cached) " >&6
4398else
4399  if test -n "$ac_ct_CXX"; then
4400  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4401else
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405  IFS=$as_save_IFS
4406  test -z "$as_dir" && as_dir=.
4407    for ac_exec_ext in '' $ac_executable_extensions; do
4408  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409    ac_cv_prog_ac_ct_CXX="$ac_prog"
4410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411    break 2
4412  fi
4413done
4414  done
4415IFS=$as_save_IFS
4416
4417fi
4418fi
4419ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4420if test -n "$ac_ct_CXX"; then
4421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4422$as_echo "$ac_ct_CXX" >&6; }
4423else
4424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425$as_echo "no" >&6; }
4426fi
4427
4428
4429  test -n "$ac_ct_CXX" && break
4430done
4431
4432  if test "x$ac_ct_CXX" = x; then
4433    CXX="g++"
4434  else
4435    case $cross_compiling:$ac_tool_warned in
4436yes:)
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4439ac_tool_warned=yes ;;
4440esac
4441    CXX=$ac_ct_CXX
4442  fi
4443fi
4444
4445  fi
4446fi
4447# Provide some information about the compiler.
4448$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4449set X $ac_compile
4450ac_compiler=$2
4451for ac_option in --version -v -V -qversion; do
4452  { { ac_try="$ac_compiler $ac_option >&5"
4453case "(($ac_try" in
4454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455  *) ac_try_echo=$ac_try;;
4456esac
4457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458$as_echo "$ac_try_echo"; } >&5
4459  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4460  ac_status=$?
4461  if test -s conftest.err; then
4462    sed '10a\
4463... rest of stderr output deleted ...
4464         10q' conftest.err >conftest.er1
4465    cat conftest.er1 >&5
4466  fi
4467  rm -f conftest.er1 conftest.err
4468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4469  test $ac_status = 0; }
4470done
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4473$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4474if ${ac_cv_cxx_compiler_gnu+:} false; then :
4475  $as_echo_n "(cached) " >&6
4476else
4477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478/* end confdefs.h.  */
4479
4480int
4481main ()
4482{
4483#ifndef __GNUC__
4484       choke me
4485#endif
4486
4487  ;
4488  return 0;
4489}
4490_ACEOF
4491if ac_fn_cxx_try_compile "$LINENO"; then :
4492  ac_compiler_gnu=yes
4493else
4494  ac_compiler_gnu=no
4495fi
4496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4498
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4501$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4502if test $ac_compiler_gnu = yes; then
4503  GXX=yes
4504else
4505  GXX=
4506fi
4507ac_test_CXXFLAGS=${CXXFLAGS+set}
4508ac_save_CXXFLAGS=$CXXFLAGS
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4510$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4511if ${ac_cv_prog_cxx_g+:} false; then :
4512  $as_echo_n "(cached) " >&6
4513else
4514  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4515   ac_cxx_werror_flag=yes
4516   ac_cv_prog_cxx_g=no
4517   CXXFLAGS="-g"
4518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519/* end confdefs.h.  */
4520
4521int
4522main ()
4523{
4524
4525  ;
4526  return 0;
4527}
4528_ACEOF
4529if ac_fn_cxx_try_compile "$LINENO"; then :
4530  ac_cv_prog_cxx_g=yes
4531else
4532  CXXFLAGS=""
4533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h.  */
4535
4536int
4537main ()
4538{
4539
4540  ;
4541  return 0;
4542}
4543_ACEOF
4544if ac_fn_cxx_try_compile "$LINENO"; then :
4545
4546else
4547  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4548	 CXXFLAGS="-g"
4549	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h.  */
4551
4552int
4553main ()
4554{
4555
4556  ;
4557  return 0;
4558}
4559_ACEOF
4560if ac_fn_cxx_try_compile "$LINENO"; then :
4561  ac_cv_prog_cxx_g=yes
4562fi
4563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564fi
4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566fi
4567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4571$as_echo "$ac_cv_prog_cxx_g" >&6; }
4572if test "$ac_test_CXXFLAGS" = set; then
4573  CXXFLAGS=$ac_save_CXXFLAGS
4574elif test $ac_cv_prog_cxx_g = yes; then
4575  if test "$GXX" = yes; then
4576    CXXFLAGS="-g -O2"
4577  else
4578    CXXFLAGS="-g"
4579  fi
4580else
4581  if test "$GXX" = yes; then
4582    CXXFLAGS="-O2"
4583  else
4584    CXXFLAGS=
4585  fi
4586fi
4587ac_ext=c
4588ac_cpp='$CPP $CPPFLAGS'
4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592
4593depcc="$CXX"  am_compiler_list=
4594
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4596$as_echo_n "checking dependency style of $depcc... " >&6; }
4597if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4598  $as_echo_n "(cached) " >&6
4599else
4600  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4601  # We make a subdir and do the tests there.  Otherwise we can end up
4602  # making bogus files that we don't know about and never remove.  For
4603  # instance it was reported that on HP-UX the gcc test will end up
4604  # making a dummy file named 'D' -- because '-MD' means "put the output
4605  # in D".
4606  rm -rf conftest.dir
4607  mkdir conftest.dir
4608  # Copy depcomp to subdir because otherwise we won't find it if we're
4609  # using a relative directory.
4610  cp "$am_depcomp" conftest.dir
4611  cd conftest.dir
4612  # We will build objects and dependencies in a subdirectory because
4613  # it helps to detect inapplicable dependency modes.  For instance
4614  # both Tru64's cc and ICC support -MD to output dependencies as a
4615  # side effect of compilation, but ICC will put the dependencies in
4616  # the current directory while Tru64 will put them in the object
4617  # directory.
4618  mkdir sub
4619
4620  am_cv_CXX_dependencies_compiler_type=none
4621  if test "$am_compiler_list" = ""; then
4622     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4623  fi
4624  am__universal=false
4625  case " $depcc " in #(
4626     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4627     esac
4628
4629  for depmode in $am_compiler_list; do
4630    # Setup a source with many dependencies, because some compilers
4631    # like to wrap large dependency lists on column 80 (with \), and
4632    # we should not choose a depcomp mode which is confused by this.
4633    #
4634    # We need to recreate these files for each test, as the compiler may
4635    # overwrite some of them when testing with obscure command lines.
4636    # This happens at least with the AIX C compiler.
4637    : > sub/conftest.c
4638    for i in 1 2 3 4 5 6; do
4639      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4640      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4641      # Solaris 10 /bin/sh.
4642      echo '/* dummy */' > sub/conftst$i.h
4643    done
4644    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4645
4646    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4647    # mode.  It turns out that the SunPro C++ compiler does not properly
4648    # handle '-M -o', and we need to detect this.  Also, some Intel
4649    # versions had trouble with output in subdirs.
4650    am__obj=sub/conftest.${OBJEXT-o}
4651    am__minus_obj="-o $am__obj"
4652    case $depmode in
4653    gcc)
4654      # This depmode causes a compiler race in universal mode.
4655      test "$am__universal" = false || continue
4656      ;;
4657    nosideeffect)
4658      # After this tag, mechanisms are not by side-effect, so they'll
4659      # only be used when explicitly requested.
4660      if test "x$enable_dependency_tracking" = xyes; then
4661	continue
4662      else
4663	break
4664      fi
4665      ;;
4666    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4667      # This compiler won't grok '-c -o', but also, the minuso test has
4668      # not run yet.  These depmodes are late enough in the game, and
4669      # so weak that their functioning should not be impacted.
4670      am__obj=conftest.${OBJEXT-o}
4671      am__minus_obj=
4672      ;;
4673    none) break ;;
4674    esac
4675    if depmode=$depmode \
4676       source=sub/conftest.c object=$am__obj \
4677       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4678       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4679         >/dev/null 2>conftest.err &&
4680       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4681       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4682       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4683       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4684      # icc doesn't choke on unknown options, it will just issue warnings
4685      # or remarks (even with -Werror).  So we grep stderr for any message
4686      # that says an option was ignored or not supported.
4687      # When given -MP, icc 7.0 and 7.1 complain thusly:
4688      #   icc: Command line warning: ignoring option '-M'; no argument required
4689      # The diagnosis changed in icc 8.0:
4690      #   icc: Command line remark: option '-MP' not supported
4691      if (grep 'ignoring option' conftest.err ||
4692          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4693        am_cv_CXX_dependencies_compiler_type=$depmode
4694        break
4695      fi
4696    fi
4697  done
4698
4699  cd ..
4700  rm -rf conftest.dir
4701else
4702  am_cv_CXX_dependencies_compiler_type=none
4703fi
4704
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4707$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4708CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4709
4710 if
4711  test "x$enable_dependency_tracking" != xno \
4712  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4713  am__fastdepCXX_TRUE=
4714  am__fastdepCXX_FALSE='#'
4715else
4716  am__fastdepCXX_TRUE='#'
4717  am__fastdepCXX_FALSE=
4718fi
4719
4720
4721ac_ext=cpp
4722ac_cpp='$CXXCPP $CPPFLAGS'
4723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4726
4727
4728
4729case `pwd` in
4730  *\ * | *\	*)
4731    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4732$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4733esac
4734
4735
4736
4737macro_version='2.4.6'
4738macro_revision='2.4.6'
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752ltmain=$ac_aux_dir/ltmain.sh
4753
4754# Backslashify metacharacters that are still active within
4755# double-quoted strings.
4756sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4757
4758# Same as above, but do not quote variable references.
4759double_quote_subst='s/\(["`\\]\)/\\\1/g'
4760
4761# Sed substitution to delay expansion of an escaped shell variable in a
4762# double_quote_subst'ed string.
4763delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4764
4765# Sed substitution to delay expansion of an escaped single quote.
4766delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4767
4768# Sed substitution to avoid accidental globbing in evaled expressions
4769no_glob_subst='s/\*/\\\*/g'
4770
4771ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4772ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4773ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4774
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4776$as_echo_n "checking how to print strings... " >&6; }
4777# Test print first, because it will be a builtin if present.
4778if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4779   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4780  ECHO='print -r --'
4781elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4782  ECHO='printf %s\n'
4783else
4784  # Use this function as a fallback that always works.
4785  func_fallback_echo ()
4786  {
4787    eval 'cat <<_LTECHO_EOF
4788$1
4789_LTECHO_EOF'
4790  }
4791  ECHO='func_fallback_echo'
4792fi
4793
4794# func_echo_all arg...
4795# Invoke $ECHO with all args, space-separated.
4796func_echo_all ()
4797{
4798    $ECHO ""
4799}
4800
4801case $ECHO in
4802  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4803$as_echo "printf" >&6; } ;;
4804  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4805$as_echo "print -r" >&6; } ;;
4806  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4807$as_echo "cat" >&6; } ;;
4808esac
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4824$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4825if ${ac_cv_path_SED+:} false; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4829     for ac_i in 1 2 3 4 5 6 7; do
4830       ac_script="$ac_script$as_nl$ac_script"
4831     done
4832     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4833     { ac_script=; unset ac_script;}
4834     if test -z "$SED"; then
4835  ac_path_SED_found=false
4836  # Loop through the user's path and test for each of PROGNAME-LIST
4837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838for as_dir in $PATH
4839do
4840  IFS=$as_save_IFS
4841  test -z "$as_dir" && as_dir=.
4842    for ac_prog in sed gsed; do
4843    for ac_exec_ext in '' $ac_executable_extensions; do
4844      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4845      as_fn_executable_p "$ac_path_SED" || continue
4846# Check for GNU ac_path_SED and select it if it is found.
4847  # Check for GNU $ac_path_SED
4848case `"$ac_path_SED" --version 2>&1` in
4849*GNU*)
4850  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4851*)
4852  ac_count=0
4853  $as_echo_n 0123456789 >"conftest.in"
4854  while :
4855  do
4856    cat "conftest.in" "conftest.in" >"conftest.tmp"
4857    mv "conftest.tmp" "conftest.in"
4858    cp "conftest.in" "conftest.nl"
4859    $as_echo '' >> "conftest.nl"
4860    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4861    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4862    as_fn_arith $ac_count + 1 && ac_count=$as_val
4863    if test $ac_count -gt ${ac_path_SED_max-0}; then
4864      # Best one so far, save it but keep looking for a better one
4865      ac_cv_path_SED="$ac_path_SED"
4866      ac_path_SED_max=$ac_count
4867    fi
4868    # 10*(2^10) chars as input seems more than enough
4869    test $ac_count -gt 10 && break
4870  done
4871  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4872esac
4873
4874      $ac_path_SED_found && break 3
4875    done
4876  done
4877  done
4878IFS=$as_save_IFS
4879  if test -z "$ac_cv_path_SED"; then
4880    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4881  fi
4882else
4883  ac_cv_path_SED=$SED
4884fi
4885
4886fi
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4888$as_echo "$ac_cv_path_SED" >&6; }
4889 SED="$ac_cv_path_SED"
4890  rm -f conftest.sed
4891
4892test -z "$SED" && SED=sed
4893Xsed="$SED -e 1s/^X//"
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4906$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4907if ${ac_cv_path_GREP+:} false; then :
4908  $as_echo_n "(cached) " >&6
4909else
4910  if test -z "$GREP"; then
4911  ac_path_GREP_found=false
4912  # Loop through the user's path and test for each of PROGNAME-LIST
4913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4915do
4916  IFS=$as_save_IFS
4917  test -z "$as_dir" && as_dir=.
4918    for ac_prog in grep ggrep; do
4919    for ac_exec_ext in '' $ac_executable_extensions; do
4920      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4921      as_fn_executable_p "$ac_path_GREP" || continue
4922# Check for GNU ac_path_GREP and select it if it is found.
4923  # Check for GNU $ac_path_GREP
4924case `"$ac_path_GREP" --version 2>&1` in
4925*GNU*)
4926  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4927*)
4928  ac_count=0
4929  $as_echo_n 0123456789 >"conftest.in"
4930  while :
4931  do
4932    cat "conftest.in" "conftest.in" >"conftest.tmp"
4933    mv "conftest.tmp" "conftest.in"
4934    cp "conftest.in" "conftest.nl"
4935    $as_echo 'GREP' >> "conftest.nl"
4936    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4937    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4938    as_fn_arith $ac_count + 1 && ac_count=$as_val
4939    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4940      # Best one so far, save it but keep looking for a better one
4941      ac_cv_path_GREP="$ac_path_GREP"
4942      ac_path_GREP_max=$ac_count
4943    fi
4944    # 10*(2^10) chars as input seems more than enough
4945    test $ac_count -gt 10 && break
4946  done
4947  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4948esac
4949
4950      $ac_path_GREP_found && break 3
4951    done
4952  done
4953  done
4954IFS=$as_save_IFS
4955  if test -z "$ac_cv_path_GREP"; then
4956    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4957  fi
4958else
4959  ac_cv_path_GREP=$GREP
4960fi
4961
4962fi
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4964$as_echo "$ac_cv_path_GREP" >&6; }
4965 GREP="$ac_cv_path_GREP"
4966
4967
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4969$as_echo_n "checking for egrep... " >&6; }
4970if ${ac_cv_path_EGREP+:} false; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4974   then ac_cv_path_EGREP="$GREP -E"
4975   else
4976     if test -z "$EGREP"; then
4977  ac_path_EGREP_found=false
4978  # Loop through the user's path and test for each of PROGNAME-LIST
4979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4981do
4982  IFS=$as_save_IFS
4983  test -z "$as_dir" && as_dir=.
4984    for ac_prog in egrep; do
4985    for ac_exec_ext in '' $ac_executable_extensions; do
4986      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4987      as_fn_executable_p "$ac_path_EGREP" || continue
4988# Check for GNU ac_path_EGREP and select it if it is found.
4989  # Check for GNU $ac_path_EGREP
4990case `"$ac_path_EGREP" --version 2>&1` in
4991*GNU*)
4992  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4993*)
4994  ac_count=0
4995  $as_echo_n 0123456789 >"conftest.in"
4996  while :
4997  do
4998    cat "conftest.in" "conftest.in" >"conftest.tmp"
4999    mv "conftest.tmp" "conftest.in"
5000    cp "conftest.in" "conftest.nl"
5001    $as_echo 'EGREP' >> "conftest.nl"
5002    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5003    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5004    as_fn_arith $ac_count + 1 && ac_count=$as_val
5005    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5006      # Best one so far, save it but keep looking for a better one
5007      ac_cv_path_EGREP="$ac_path_EGREP"
5008      ac_path_EGREP_max=$ac_count
5009    fi
5010    # 10*(2^10) chars as input seems more than enough
5011    test $ac_count -gt 10 && break
5012  done
5013  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5014esac
5015
5016      $ac_path_EGREP_found && break 3
5017    done
5018  done
5019  done
5020IFS=$as_save_IFS
5021  if test -z "$ac_cv_path_EGREP"; then
5022    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5023  fi
5024else
5025  ac_cv_path_EGREP=$EGREP
5026fi
5027
5028   fi
5029fi
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5031$as_echo "$ac_cv_path_EGREP" >&6; }
5032 EGREP="$ac_cv_path_EGREP"
5033
5034
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5036$as_echo_n "checking for fgrep... " >&6; }
5037if ${ac_cv_path_FGREP+:} false; then :
5038  $as_echo_n "(cached) " >&6
5039else
5040  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5041   then ac_cv_path_FGREP="$GREP -F"
5042   else
5043     if test -z "$FGREP"; then
5044  ac_path_FGREP_found=false
5045  # Loop through the user's path and test for each of PROGNAME-LIST
5046  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5048do
5049  IFS=$as_save_IFS
5050  test -z "$as_dir" && as_dir=.
5051    for ac_prog in fgrep; do
5052    for ac_exec_ext in '' $ac_executable_extensions; do
5053      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5054      as_fn_executable_p "$ac_path_FGREP" || continue
5055# Check for GNU ac_path_FGREP and select it if it is found.
5056  # Check for GNU $ac_path_FGREP
5057case `"$ac_path_FGREP" --version 2>&1` in
5058*GNU*)
5059  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5060*)
5061  ac_count=0
5062  $as_echo_n 0123456789 >"conftest.in"
5063  while :
5064  do
5065    cat "conftest.in" "conftest.in" >"conftest.tmp"
5066    mv "conftest.tmp" "conftest.in"
5067    cp "conftest.in" "conftest.nl"
5068    $as_echo 'FGREP' >> "conftest.nl"
5069    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5070    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5071    as_fn_arith $ac_count + 1 && ac_count=$as_val
5072    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5073      # Best one so far, save it but keep looking for a better one
5074      ac_cv_path_FGREP="$ac_path_FGREP"
5075      ac_path_FGREP_max=$ac_count
5076    fi
5077    # 10*(2^10) chars as input seems more than enough
5078    test $ac_count -gt 10 && break
5079  done
5080  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5081esac
5082
5083      $ac_path_FGREP_found && break 3
5084    done
5085  done
5086  done
5087IFS=$as_save_IFS
5088  if test -z "$ac_cv_path_FGREP"; then
5089    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5090  fi
5091else
5092  ac_cv_path_FGREP=$FGREP
5093fi
5094
5095   fi
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5098$as_echo "$ac_cv_path_FGREP" >&6; }
5099 FGREP="$ac_cv_path_FGREP"
5100
5101
5102test -z "$GREP" && GREP=grep
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122# Check whether --with-gnu-ld was given.
5123if test "${with_gnu_ld+set}" = set; then :
5124  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5125else
5126  with_gnu_ld=no
5127fi
5128
5129ac_prog=ld
5130if test yes = "$GCC"; then
5131  # Check if gcc -print-prog-name=ld gives a path.
5132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5133$as_echo_n "checking for ld used by $CC... " >&6; }
5134  case $host in
5135  *-*-mingw*)
5136    # gcc leaves a trailing carriage return, which upsets mingw
5137    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5138  *)
5139    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5140  esac
5141  case $ac_prog in
5142    # Accept absolute paths.
5143    [\\/]* | ?:[\\/]*)
5144      re_direlt='/[^/][^/]*/\.\./'
5145      # Canonicalize the pathname of ld
5146      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5147      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5148	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5149      done
5150      test -z "$LD" && LD=$ac_prog
5151      ;;
5152  "")
5153    # If it fails, then pretend we aren't using GCC.
5154    ac_prog=ld
5155    ;;
5156  *)
5157    # If it is relative, then search for the first ld in PATH.
5158    with_gnu_ld=unknown
5159    ;;
5160  esac
5161elif test yes = "$with_gnu_ld"; then
5162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5163$as_echo_n "checking for GNU ld... " >&6; }
5164else
5165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5166$as_echo_n "checking for non-GNU ld... " >&6; }
5167fi
5168if ${lt_cv_path_LD+:} false; then :
5169  $as_echo_n "(cached) " >&6
5170else
5171  if test -z "$LD"; then
5172  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5173  for ac_dir in $PATH; do
5174    IFS=$lt_save_ifs
5175    test -z "$ac_dir" && ac_dir=.
5176    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5177      lt_cv_path_LD=$ac_dir/$ac_prog
5178      # Check to see if the program is GNU ld.  I'd rather use --version,
5179      # but apparently some variants of GNU ld only accept -v.
5180      # Break only if it was the GNU/non-GNU ld that we prefer.
5181      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5182      *GNU* | *'with BFD'*)
5183	test no != "$with_gnu_ld" && break
5184	;;
5185      *)
5186	test yes != "$with_gnu_ld" && break
5187	;;
5188      esac
5189    fi
5190  done
5191  IFS=$lt_save_ifs
5192else
5193  lt_cv_path_LD=$LD # Let the user override the test with a path.
5194fi
5195fi
5196
5197LD=$lt_cv_path_LD
5198if test -n "$LD"; then
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5200$as_echo "$LD" >&6; }
5201else
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
5204fi
5205test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5207$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5208if ${lt_cv_prog_gnu_ld+:} false; then :
5209  $as_echo_n "(cached) " >&6
5210else
5211  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5212case `$LD -v 2>&1 </dev/null` in
5213*GNU* | *'with BFD'*)
5214  lt_cv_prog_gnu_ld=yes
5215  ;;
5216*)
5217  lt_cv_prog_gnu_ld=no
5218  ;;
5219esac
5220fi
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5222$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5223with_gnu_ld=$lt_cv_prog_gnu_ld
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5234$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5235if ${lt_cv_path_NM+:} false; then :
5236  $as_echo_n "(cached) " >&6
5237else
5238  if test -n "$NM"; then
5239  # Let the user override the test.
5240  lt_cv_path_NM=$NM
5241else
5242  lt_nm_to_check=${ac_tool_prefix}nm
5243  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5244    lt_nm_to_check="$lt_nm_to_check nm"
5245  fi
5246  for lt_tmp_nm in $lt_nm_to_check; do
5247    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5248    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5249      IFS=$lt_save_ifs
5250      test -z "$ac_dir" && ac_dir=.
5251      tmp_nm=$ac_dir/$lt_tmp_nm
5252      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5253	# Check to see if the nm accepts a BSD-compat flag.
5254	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5255	#   nm: unknown option "B" ignored
5256	# Tru64's nm complains that /dev/null is an invalid object file
5257	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5258	case $build_os in
5259	mingw*) lt_bad_file=conftest.nm/nofile ;;
5260	*) lt_bad_file=/dev/null ;;
5261	esac
5262	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5263	*$lt_bad_file* | *'Invalid file or object type'*)
5264	  lt_cv_path_NM="$tmp_nm -B"
5265	  break 2
5266	  ;;
5267	*)
5268	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5269	  */dev/null*)
5270	    lt_cv_path_NM="$tmp_nm -p"
5271	    break 2
5272	    ;;
5273	  *)
5274	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5275	    continue # so that we can try to find one that supports BSD flags
5276	    ;;
5277	  esac
5278	  ;;
5279	esac
5280      fi
5281    done
5282    IFS=$lt_save_ifs
5283  done
5284  : ${lt_cv_path_NM=no}
5285fi
5286fi
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5288$as_echo "$lt_cv_path_NM" >&6; }
5289if test no != "$lt_cv_path_NM"; then
5290  NM=$lt_cv_path_NM
5291else
5292  # Didn't find any BSD compatible name lister, look for dumpbin.
5293  if test -n "$DUMPBIN"; then :
5294    # Let the user override the test.
5295  else
5296    if test -n "$ac_tool_prefix"; then
5297  for ac_prog in dumpbin "link -dump"
5298  do
5299    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5300set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302$as_echo_n "checking for $ac_word... " >&6; }
5303if ${ac_cv_prog_DUMPBIN+:} false; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306  if test -n "$DUMPBIN"; then
5307  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5308else
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312  IFS=$as_save_IFS
5313  test -z "$as_dir" && as_dir=.
5314    for ac_exec_ext in '' $ac_executable_extensions; do
5315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318    break 2
5319  fi
5320done
5321  done
5322IFS=$as_save_IFS
5323
5324fi
5325fi
5326DUMPBIN=$ac_cv_prog_DUMPBIN
5327if test -n "$DUMPBIN"; then
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5329$as_echo "$DUMPBIN" >&6; }
5330else
5331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332$as_echo "no" >&6; }
5333fi
5334
5335
5336    test -n "$DUMPBIN" && break
5337  done
5338fi
5339if test -z "$DUMPBIN"; then
5340  ac_ct_DUMPBIN=$DUMPBIN
5341  for ac_prog in dumpbin "link -dump"
5342do
5343  # Extract the first word of "$ac_prog", so it can be a program name with args.
5344set dummy $ac_prog; ac_word=$2
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346$as_echo_n "checking for $ac_word... " >&6; }
5347if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  if test -n "$ac_ct_DUMPBIN"; then
5351  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5352else
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356  IFS=$as_save_IFS
5357  test -z "$as_dir" && as_dir=.
5358    for ac_exec_ext in '' $ac_executable_extensions; do
5359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362    break 2
5363  fi
5364done
5365  done
5366IFS=$as_save_IFS
5367
5368fi
5369fi
5370ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5371if test -n "$ac_ct_DUMPBIN"; then
5372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5373$as_echo "$ac_ct_DUMPBIN" >&6; }
5374else
5375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376$as_echo "no" >&6; }
5377fi
5378
5379
5380  test -n "$ac_ct_DUMPBIN" && break
5381done
5382
5383  if test "x$ac_ct_DUMPBIN" = x; then
5384    DUMPBIN=":"
5385  else
5386    case $cross_compiling:$ac_tool_warned in
5387yes:)
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5390ac_tool_warned=yes ;;
5391esac
5392    DUMPBIN=$ac_ct_DUMPBIN
5393  fi
5394fi
5395
5396    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5397    *COFF*)
5398      DUMPBIN="$DUMPBIN -symbols -headers"
5399      ;;
5400    *)
5401      DUMPBIN=:
5402      ;;
5403    esac
5404  fi
5405
5406  if test : != "$DUMPBIN"; then
5407    NM=$DUMPBIN
5408  fi
5409fi
5410test -z "$NM" && NM=nm
5411
5412
5413
5414
5415
5416
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5418$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5419if ${lt_cv_nm_interface+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  lt_cv_nm_interface="BSD nm"
5423  echo "int some_variable = 0;" > conftest.$ac_ext
5424  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5425  (eval "$ac_compile" 2>conftest.err)
5426  cat conftest.err >&5
5427  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5428  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5429  cat conftest.err >&5
5430  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5431  cat conftest.out >&5
5432  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5433    lt_cv_nm_interface="MS dumpbin"
5434  fi
5435  rm -f conftest*
5436fi
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5438$as_echo "$lt_cv_nm_interface" >&6; }
5439
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5441$as_echo_n "checking whether ln -s works... " >&6; }
5442LN_S=$as_ln_s
5443if test "$LN_S" = "ln -s"; then
5444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5445$as_echo "yes" >&6; }
5446else
5447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5448$as_echo "no, using $LN_S" >&6; }
5449fi
5450
5451# find the maximum length of command line arguments
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5453$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5454if ${lt_cv_sys_max_cmd_len+:} false; then :
5455  $as_echo_n "(cached) " >&6
5456else
5457    i=0
5458  teststring=ABCD
5459
5460  case $build_os in
5461  msdosdjgpp*)
5462    # On DJGPP, this test can blow up pretty badly due to problems in libc
5463    # (any single argument exceeding 2000 bytes causes a buffer overrun
5464    # during glob expansion).  Even if it were fixed, the result of this
5465    # check would be larger than it should be.
5466    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5467    ;;
5468
5469  gnu*)
5470    # Under GNU Hurd, this test is not required because there is
5471    # no limit to the length of command line arguments.
5472    # Libtool will interpret -1 as no limit whatsoever
5473    lt_cv_sys_max_cmd_len=-1;
5474    ;;
5475
5476  cygwin* | mingw* | cegcc*)
5477    # On Win9x/ME, this test blows up -- it succeeds, but takes
5478    # about 5 minutes as the teststring grows exponentially.
5479    # Worse, since 9x/ME are not pre-emptively multitasking,
5480    # you end up with a "frozen" computer, even though with patience
5481    # the test eventually succeeds (with a max line length of 256k).
5482    # Instead, let's just punt: use the minimum linelength reported by
5483    # all of the supported platforms: 8192 (on NT/2K/XP).
5484    lt_cv_sys_max_cmd_len=8192;
5485    ;;
5486
5487  mint*)
5488    # On MiNT this can take a long time and run out of memory.
5489    lt_cv_sys_max_cmd_len=8192;
5490    ;;
5491
5492  amigaos*)
5493    # On AmigaOS with pdksh, this test takes hours, literally.
5494    # So we just punt and use a minimum line length of 8192.
5495    lt_cv_sys_max_cmd_len=8192;
5496    ;;
5497
5498  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5499    # This has been around since 386BSD, at least.  Likely further.
5500    if test -x /sbin/sysctl; then
5501      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5502    elif test -x /usr/sbin/sysctl; then
5503      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5504    else
5505      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5506    fi
5507    # And add a safety zone
5508    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5509    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5510    ;;
5511
5512  interix*)
5513    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5514    lt_cv_sys_max_cmd_len=196608
5515    ;;
5516
5517  os2*)
5518    # The test takes a long time on OS/2.
5519    lt_cv_sys_max_cmd_len=8192
5520    ;;
5521
5522  osf*)
5523    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5524    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5525    # nice to cause kernel panics so lets avoid the loop below.
5526    # First set a reasonable default.
5527    lt_cv_sys_max_cmd_len=16384
5528    #
5529    if test -x /sbin/sysconfig; then
5530      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5531        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5532      esac
5533    fi
5534    ;;
5535  sco3.2v5*)
5536    lt_cv_sys_max_cmd_len=102400
5537    ;;
5538  sysv5* | sco5v6* | sysv4.2uw2*)
5539    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5540    if test -n "$kargmax"; then
5541      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5542    else
5543      lt_cv_sys_max_cmd_len=32768
5544    fi
5545    ;;
5546  *)
5547    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5548    if test -n "$lt_cv_sys_max_cmd_len" && \
5549       test undefined != "$lt_cv_sys_max_cmd_len"; then
5550      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5551      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5552    else
5553      # Make teststring a little bigger before we do anything with it.
5554      # a 1K string should be a reasonable start.
5555      for i in 1 2 3 4 5 6 7 8; do
5556        teststring=$teststring$teststring
5557      done
5558      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5559      # If test is not a shell built-in, we'll probably end up computing a
5560      # maximum length that is only half of the actual maximum length, but
5561      # we can't tell.
5562      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5563	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5564	      test 17 != "$i" # 1/2 MB should be enough
5565      do
5566        i=`expr $i + 1`
5567        teststring=$teststring$teststring
5568      done
5569      # Only check the string length outside the loop.
5570      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5571      teststring=
5572      # Add a significant safety factor because C++ compilers can tack on
5573      # massive amounts of additional arguments before passing them to the
5574      # linker.  It appears as though 1/2 is a usable value.
5575      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5576    fi
5577    ;;
5578  esac
5579
5580fi
5581
5582if test -n "$lt_cv_sys_max_cmd_len"; then
5583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5584$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5585else
5586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5587$as_echo "none" >&6; }
5588fi
5589max_cmd_len=$lt_cv_sys_max_cmd_len
5590
5591
5592
5593
5594
5595
5596: ${CP="cp -f"}
5597: ${MV="mv -f"}
5598: ${RM="rm -f"}
5599
5600if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5601  lt_unset=unset
5602else
5603  lt_unset=false
5604fi
5605
5606
5607
5608
5609
5610# test EBCDIC or ASCII
5611case `echo X|tr X '\101'` in
5612 A) # ASCII based system
5613    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5614  lt_SP2NL='tr \040 \012'
5615  lt_NL2SP='tr \015\012 \040\040'
5616  ;;
5617 *) # EBCDIC based system
5618  lt_SP2NL='tr \100 \n'
5619  lt_NL2SP='tr \r\n \100\100'
5620  ;;
5621esac
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5632$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5633if ${lt_cv_to_host_file_cmd+:} false; then :
5634  $as_echo_n "(cached) " >&6
5635else
5636  case $host in
5637  *-*-mingw* )
5638    case $build in
5639      *-*-mingw* ) # actually msys
5640        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5641        ;;
5642      *-*-cygwin* )
5643        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5644        ;;
5645      * ) # otherwise, assume *nix
5646        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5647        ;;
5648    esac
5649    ;;
5650  *-*-cygwin* )
5651    case $build in
5652      *-*-mingw* ) # actually msys
5653        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5654        ;;
5655      *-*-cygwin* )
5656        lt_cv_to_host_file_cmd=func_convert_file_noop
5657        ;;
5658      * ) # otherwise, assume *nix
5659        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5660        ;;
5661    esac
5662    ;;
5663  * ) # unhandled hosts (and "normal" native builds)
5664    lt_cv_to_host_file_cmd=func_convert_file_noop
5665    ;;
5666esac
5667
5668fi
5669
5670to_host_file_cmd=$lt_cv_to_host_file_cmd
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5672$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5673
5674
5675
5676
5677
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5679$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5680if ${lt_cv_to_tool_file_cmd+:} false; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  #assume ordinary cross tools, or native build.
5684lt_cv_to_tool_file_cmd=func_convert_file_noop
5685case $host in
5686  *-*-mingw* )
5687    case $build in
5688      *-*-mingw* ) # actually msys
5689        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5690        ;;
5691    esac
5692    ;;
5693esac
5694
5695fi
5696
5697to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5699$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5700
5701
5702
5703
5704
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5706$as_echo_n "checking for $LD option to reload object files... " >&6; }
5707if ${lt_cv_ld_reload_flag+:} false; then :
5708  $as_echo_n "(cached) " >&6
5709else
5710  lt_cv_ld_reload_flag='-r'
5711fi
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5713$as_echo "$lt_cv_ld_reload_flag" >&6; }
5714reload_flag=$lt_cv_ld_reload_flag
5715case $reload_flag in
5716"" | " "*) ;;
5717*) reload_flag=" $reload_flag" ;;
5718esac
5719reload_cmds='$LD$reload_flag -o $output$reload_objs'
5720case $host_os in
5721  cygwin* | mingw* | pw32* | cegcc*)
5722    if test yes != "$GCC"; then
5723      reload_cmds=false
5724    fi
5725    ;;
5726  darwin*)
5727    if test yes = "$GCC"; then
5728      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5729    else
5730      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5731    fi
5732    ;;
5733esac
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743if test -n "$ac_tool_prefix"; then
5744  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5745set dummy ${ac_tool_prefix}objdump; ac_word=$2
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747$as_echo_n "checking for $ac_word... " >&6; }
5748if ${ac_cv_prog_OBJDUMP+:} false; then :
5749  $as_echo_n "(cached) " >&6
5750else
5751  if test -n "$OBJDUMP"; then
5752  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5753else
5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755for as_dir in $PATH
5756do
5757  IFS=$as_save_IFS
5758  test -z "$as_dir" && as_dir=.
5759    for ac_exec_ext in '' $ac_executable_extensions; do
5760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5761    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763    break 2
5764  fi
5765done
5766  done
5767IFS=$as_save_IFS
5768
5769fi
5770fi
5771OBJDUMP=$ac_cv_prog_OBJDUMP
5772if test -n "$OBJDUMP"; then
5773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5774$as_echo "$OBJDUMP" >&6; }
5775else
5776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777$as_echo "no" >&6; }
5778fi
5779
5780
5781fi
5782if test -z "$ac_cv_prog_OBJDUMP"; then
5783  ac_ct_OBJDUMP=$OBJDUMP
5784  # Extract the first word of "objdump", so it can be a program name with args.
5785set dummy objdump; ac_word=$2
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787$as_echo_n "checking for $ac_word... " >&6; }
5788if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5789  $as_echo_n "(cached) " >&6
5790else
5791  if test -n "$ac_ct_OBJDUMP"; then
5792  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797  IFS=$as_save_IFS
5798  test -z "$as_dir" && as_dir=.
5799    for ac_exec_ext in '' $ac_executable_extensions; do
5800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803    break 2
5804  fi
5805done
5806  done
5807IFS=$as_save_IFS
5808
5809fi
5810fi
5811ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5812if test -n "$ac_ct_OBJDUMP"; then
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5814$as_echo "$ac_ct_OBJDUMP" >&6; }
5815else
5816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817$as_echo "no" >&6; }
5818fi
5819
5820  if test "x$ac_ct_OBJDUMP" = x; then
5821    OBJDUMP="false"
5822  else
5823    case $cross_compiling:$ac_tool_warned in
5824yes:)
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5827ac_tool_warned=yes ;;
5828esac
5829    OBJDUMP=$ac_ct_OBJDUMP
5830  fi
5831else
5832  OBJDUMP="$ac_cv_prog_OBJDUMP"
5833fi
5834
5835test -z "$OBJDUMP" && OBJDUMP=objdump
5836
5837
5838
5839
5840
5841
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5843$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5844if ${lt_cv_deplibs_check_method+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  lt_cv_file_magic_cmd='$MAGIC_CMD'
5848lt_cv_file_magic_test_file=
5849lt_cv_deplibs_check_method='unknown'
5850# Need to set the preceding variable on all platforms that support
5851# interlibrary dependencies.
5852# 'none' -- dependencies not supported.
5853# 'unknown' -- same as none, but documents that we really don't know.
5854# 'pass_all' -- all dependencies passed with no checks.
5855# 'test_compile' -- check by making test program.
5856# 'file_magic [[regex]]' -- check by looking for files in library path
5857# that responds to the $file_magic_cmd with a given extended regex.
5858# If you have 'file' or equivalent on your system and you're not sure
5859# whether 'pass_all' will *always* work, you probably want this one.
5860
5861case $host_os in
5862aix[4-9]*)
5863  lt_cv_deplibs_check_method=pass_all
5864  ;;
5865
5866beos*)
5867  lt_cv_deplibs_check_method=pass_all
5868  ;;
5869
5870bsdi[45]*)
5871  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5872  lt_cv_file_magic_cmd='/usr/bin/file -L'
5873  lt_cv_file_magic_test_file=/shlib/libc.so
5874  ;;
5875
5876cygwin*)
5877  # func_win32_libid is a shell function defined in ltmain.sh
5878  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5879  lt_cv_file_magic_cmd='func_win32_libid'
5880  ;;
5881
5882mingw* | pw32*)
5883  # Base MSYS/MinGW do not provide the 'file' command needed by
5884  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5885  # unless we find 'file', for example because we are cross-compiling.
5886  if ( file / ) >/dev/null 2>&1; then
5887    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5888    lt_cv_file_magic_cmd='func_win32_libid'
5889  else
5890    # Keep this pattern in sync with the one in func_win32_libid.
5891    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5892    lt_cv_file_magic_cmd='$OBJDUMP -f'
5893  fi
5894  ;;
5895
5896cegcc*)
5897  # use the weaker test based on 'objdump'. See mingw*.
5898  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5899  lt_cv_file_magic_cmd='$OBJDUMP -f'
5900  ;;
5901
5902darwin* | rhapsody*)
5903  lt_cv_deplibs_check_method=pass_all
5904  ;;
5905
5906freebsd* | dragonfly*)
5907  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5908    case $host_cpu in
5909    i*86 )
5910      # Not sure whether the presence of OpenBSD here was a mistake.
5911      # Let's accept both of them until this is cleared up.
5912      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5913      lt_cv_file_magic_cmd=/usr/bin/file
5914      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5915      ;;
5916    esac
5917  else
5918    lt_cv_deplibs_check_method=pass_all
5919  fi
5920  ;;
5921
5922haiku*)
5923  lt_cv_deplibs_check_method=pass_all
5924  ;;
5925
5926hpux10.20* | hpux11*)
5927  lt_cv_file_magic_cmd=/usr/bin/file
5928  case $host_cpu in
5929  ia64*)
5930    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5931    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5932    ;;
5933  hppa*64*)
5934    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]'
5935    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5936    ;;
5937  *)
5938    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5939    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5940    ;;
5941  esac
5942  ;;
5943
5944interix[3-9]*)
5945  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5946  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5947  ;;
5948
5949irix5* | irix6* | nonstopux*)
5950  case $LD in
5951  *-32|*"-32 ") libmagic=32-bit;;
5952  *-n32|*"-n32 ") libmagic=N32;;
5953  *-64|*"-64 ") libmagic=64-bit;;
5954  *) libmagic=never-match;;
5955  esac
5956  lt_cv_deplibs_check_method=pass_all
5957  ;;
5958
5959# This must be glibc/ELF.
5960linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5961  lt_cv_deplibs_check_method=pass_all
5962  ;;
5963
5964netbsd*)
5965  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5966    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5967  else
5968    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5969  fi
5970  ;;
5971
5972newos6*)
5973  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5974  lt_cv_file_magic_cmd=/usr/bin/file
5975  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5976  ;;
5977
5978*nto* | *qnx*)
5979  lt_cv_deplibs_check_method=pass_all
5980  ;;
5981
5982openbsd* | bitrig*)
5983  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5984    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5985  else
5986    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5987  fi
5988  ;;
5989
5990osf3* | osf4* | osf5*)
5991  lt_cv_deplibs_check_method=pass_all
5992  ;;
5993
5994rdos*)
5995  lt_cv_deplibs_check_method=pass_all
5996  ;;
5997
5998solaris*)
5999  lt_cv_deplibs_check_method=pass_all
6000  ;;
6001
6002sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6003  lt_cv_deplibs_check_method=pass_all
6004  ;;
6005
6006sysv4 | sysv4.3*)
6007  case $host_vendor in
6008  motorola)
6009    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]'
6010    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6011    ;;
6012  ncr)
6013    lt_cv_deplibs_check_method=pass_all
6014    ;;
6015  sequent)
6016    lt_cv_file_magic_cmd='/bin/file'
6017    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6018    ;;
6019  sni)
6020    lt_cv_file_magic_cmd='/bin/file'
6021    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6022    lt_cv_file_magic_test_file=/lib/libc.so
6023    ;;
6024  siemens)
6025    lt_cv_deplibs_check_method=pass_all
6026    ;;
6027  pc)
6028    lt_cv_deplibs_check_method=pass_all
6029    ;;
6030  esac
6031  ;;
6032
6033tpf*)
6034  lt_cv_deplibs_check_method=pass_all
6035  ;;
6036os2*)
6037  lt_cv_deplibs_check_method=pass_all
6038  ;;
6039esac
6040
6041fi
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6043$as_echo "$lt_cv_deplibs_check_method" >&6; }
6044
6045file_magic_glob=
6046want_nocaseglob=no
6047if test "$build" = "$host"; then
6048  case $host_os in
6049  mingw* | pw32*)
6050    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6051      want_nocaseglob=yes
6052    else
6053      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6054    fi
6055    ;;
6056  esac
6057fi
6058
6059file_magic_cmd=$lt_cv_file_magic_cmd
6060deplibs_check_method=$lt_cv_deplibs_check_method
6061test -z "$deplibs_check_method" && deplibs_check_method=unknown
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084if test -n "$ac_tool_prefix"; then
6085  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6086set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088$as_echo_n "checking for $ac_word... " >&6; }
6089if ${ac_cv_prog_DLLTOOL+:} false; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092  if test -n "$DLLTOOL"; then
6093  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6094else
6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098  IFS=$as_save_IFS
6099  test -z "$as_dir" && as_dir=.
6100    for ac_exec_ext in '' $ac_executable_extensions; do
6101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104    break 2
6105  fi
6106done
6107  done
6108IFS=$as_save_IFS
6109
6110fi
6111fi
6112DLLTOOL=$ac_cv_prog_DLLTOOL
6113if test -n "$DLLTOOL"; then
6114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6115$as_echo "$DLLTOOL" >&6; }
6116else
6117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118$as_echo "no" >&6; }
6119fi
6120
6121
6122fi
6123if test -z "$ac_cv_prog_DLLTOOL"; then
6124  ac_ct_DLLTOOL=$DLLTOOL
6125  # Extract the first word of "dlltool", so it can be a program name with args.
6126set dummy dlltool; ac_word=$2
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128$as_echo_n "checking for $ac_word... " >&6; }
6129if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  if test -n "$ac_ct_DLLTOOL"; then
6133  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138  IFS=$as_save_IFS
6139  test -z "$as_dir" && as_dir=.
6140    for ac_exec_ext in '' $ac_executable_extensions; do
6141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144    break 2
6145  fi
6146done
6147  done
6148IFS=$as_save_IFS
6149
6150fi
6151fi
6152ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6153if test -n "$ac_ct_DLLTOOL"; then
6154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6155$as_echo "$ac_ct_DLLTOOL" >&6; }
6156else
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158$as_echo "no" >&6; }
6159fi
6160
6161  if test "x$ac_ct_DLLTOOL" = x; then
6162    DLLTOOL="false"
6163  else
6164    case $cross_compiling:$ac_tool_warned in
6165yes:)
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6168ac_tool_warned=yes ;;
6169esac
6170    DLLTOOL=$ac_ct_DLLTOOL
6171  fi
6172else
6173  DLLTOOL="$ac_cv_prog_DLLTOOL"
6174fi
6175
6176test -z "$DLLTOOL" && DLLTOOL=dlltool
6177
6178
6179
6180
6181
6182
6183
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6185$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6186if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6187  $as_echo_n "(cached) " >&6
6188else
6189  lt_cv_sharedlib_from_linklib_cmd='unknown'
6190
6191case $host_os in
6192cygwin* | mingw* | pw32* | cegcc*)
6193  # two different shell functions defined in ltmain.sh;
6194  # decide which one to use based on capabilities of $DLLTOOL
6195  case `$DLLTOOL --help 2>&1` in
6196  *--identify-strict*)
6197    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6198    ;;
6199  *)
6200    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6201    ;;
6202  esac
6203  ;;
6204*)
6205  # fallback: assume linklib IS sharedlib
6206  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6207  ;;
6208esac
6209
6210fi
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6212$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6213sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6214test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6215
6216
6217
6218
6219
6220
6221
6222
6223if test -n "$ac_tool_prefix"; then
6224  for ac_prog in ar
6225  do
6226    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229$as_echo_n "checking for $ac_word... " >&6; }
6230if ${ac_cv_prog_AR+:} false; then :
6231  $as_echo_n "(cached) " >&6
6232else
6233  if test -n "$AR"; then
6234  ac_cv_prog_AR="$AR" # Let the user override the test.
6235else
6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239  IFS=$as_save_IFS
6240  test -z "$as_dir" && as_dir=.
6241    for ac_exec_ext in '' $ac_executable_extensions; do
6242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245    break 2
6246  fi
6247done
6248  done
6249IFS=$as_save_IFS
6250
6251fi
6252fi
6253AR=$ac_cv_prog_AR
6254if test -n "$AR"; then
6255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6256$as_echo "$AR" >&6; }
6257else
6258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259$as_echo "no" >&6; }
6260fi
6261
6262
6263    test -n "$AR" && break
6264  done
6265fi
6266if test -z "$AR"; then
6267  ac_ct_AR=$AR
6268  for ac_prog in ar
6269do
6270  # Extract the first word of "$ac_prog", so it can be a program name with args.
6271set dummy $ac_prog; ac_word=$2
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273$as_echo_n "checking for $ac_word... " >&6; }
6274if ${ac_cv_prog_ac_ct_AR+:} false; then :
6275  $as_echo_n "(cached) " >&6
6276else
6277  if test -n "$ac_ct_AR"; then
6278  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6279else
6280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281for as_dir in $PATH
6282do
6283  IFS=$as_save_IFS
6284  test -z "$as_dir" && as_dir=.
6285    for ac_exec_ext in '' $ac_executable_extensions; do
6286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287    ac_cv_prog_ac_ct_AR="$ac_prog"
6288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289    break 2
6290  fi
6291done
6292  done
6293IFS=$as_save_IFS
6294
6295fi
6296fi
6297ac_ct_AR=$ac_cv_prog_ac_ct_AR
6298if test -n "$ac_ct_AR"; then
6299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6300$as_echo "$ac_ct_AR" >&6; }
6301else
6302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303$as_echo "no" >&6; }
6304fi
6305
6306
6307  test -n "$ac_ct_AR" && break
6308done
6309
6310  if test "x$ac_ct_AR" = x; then
6311    AR="false"
6312  else
6313    case $cross_compiling:$ac_tool_warned in
6314yes:)
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6317ac_tool_warned=yes ;;
6318esac
6319    AR=$ac_ct_AR
6320  fi
6321fi
6322
6323: ${AR=ar}
6324: ${AR_FLAGS=cru}
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6337$as_echo_n "checking for archiver @FILE support... " >&6; }
6338if ${lt_cv_ar_at_file+:} false; then :
6339  $as_echo_n "(cached) " >&6
6340else
6341  lt_cv_ar_at_file=no
6342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343/* end confdefs.h.  */
6344
6345int
6346main ()
6347{
6348
6349  ;
6350  return 0;
6351}
6352_ACEOF
6353if ac_fn_cxx_try_compile "$LINENO"; then :
6354  echo conftest.$ac_objext > conftest.lst
6355      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6356      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6357  (eval $lt_ar_try) 2>&5
6358  ac_status=$?
6359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6360  test $ac_status = 0; }
6361      if test 0 -eq "$ac_status"; then
6362	# Ensure the archiver fails upon bogus file names.
6363	rm -f conftest.$ac_objext libconftest.a
6364	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6365  (eval $lt_ar_try) 2>&5
6366  ac_status=$?
6367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6368  test $ac_status = 0; }
6369	if test 0 -ne "$ac_status"; then
6370          lt_cv_ar_at_file=@
6371        fi
6372      fi
6373      rm -f conftest.* libconftest.a
6374
6375fi
6376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377
6378fi
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6380$as_echo "$lt_cv_ar_at_file" >&6; }
6381
6382if test no = "$lt_cv_ar_at_file"; then
6383  archiver_list_spec=
6384else
6385  archiver_list_spec=$lt_cv_ar_at_file
6386fi
6387
6388
6389
6390
6391
6392
6393
6394if test -n "$ac_tool_prefix"; then
6395  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6396set dummy ${ac_tool_prefix}strip; ac_word=$2
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398$as_echo_n "checking for $ac_word... " >&6; }
6399if ${ac_cv_prog_STRIP+:} false; then :
6400  $as_echo_n "(cached) " >&6
6401else
6402  if test -n "$STRIP"; then
6403  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6404else
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408  IFS=$as_save_IFS
6409  test -z "$as_dir" && as_dir=.
6410    for ac_exec_ext in '' $ac_executable_extensions; do
6411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414    break 2
6415  fi
6416done
6417  done
6418IFS=$as_save_IFS
6419
6420fi
6421fi
6422STRIP=$ac_cv_prog_STRIP
6423if test -n "$STRIP"; then
6424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6425$as_echo "$STRIP" >&6; }
6426else
6427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428$as_echo "no" >&6; }
6429fi
6430
6431
6432fi
6433if test -z "$ac_cv_prog_STRIP"; then
6434  ac_ct_STRIP=$STRIP
6435  # Extract the first word of "strip", so it can be a program name with args.
6436set dummy strip; ac_word=$2
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438$as_echo_n "checking for $ac_word... " >&6; }
6439if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6440  $as_echo_n "(cached) " >&6
6441else
6442  if test -n "$ac_ct_STRIP"; then
6443  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6444else
6445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446for as_dir in $PATH
6447do
6448  IFS=$as_save_IFS
6449  test -z "$as_dir" && as_dir=.
6450    for ac_exec_ext in '' $ac_executable_extensions; do
6451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6452    ac_cv_prog_ac_ct_STRIP="strip"
6453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454    break 2
6455  fi
6456done
6457  done
6458IFS=$as_save_IFS
6459
6460fi
6461fi
6462ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6463if test -n "$ac_ct_STRIP"; then
6464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6465$as_echo "$ac_ct_STRIP" >&6; }
6466else
6467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468$as_echo "no" >&6; }
6469fi
6470
6471  if test "x$ac_ct_STRIP" = x; then
6472    STRIP=":"
6473  else
6474    case $cross_compiling:$ac_tool_warned in
6475yes:)
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6478ac_tool_warned=yes ;;
6479esac
6480    STRIP=$ac_ct_STRIP
6481  fi
6482else
6483  STRIP="$ac_cv_prog_STRIP"
6484fi
6485
6486test -z "$STRIP" && STRIP=:
6487
6488
6489
6490
6491
6492
6493if test -n "$ac_tool_prefix"; then
6494  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6495set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497$as_echo_n "checking for $ac_word... " >&6; }
6498if ${ac_cv_prog_RANLIB+:} false; then :
6499  $as_echo_n "(cached) " >&6
6500else
6501  if test -n "$RANLIB"; then
6502  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6503else
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507  IFS=$as_save_IFS
6508  test -z "$as_dir" && as_dir=.
6509    for ac_exec_ext in '' $ac_executable_extensions; do
6510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513    break 2
6514  fi
6515done
6516  done
6517IFS=$as_save_IFS
6518
6519fi
6520fi
6521RANLIB=$ac_cv_prog_RANLIB
6522if test -n "$RANLIB"; then
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6524$as_echo "$RANLIB" >&6; }
6525else
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }
6528fi
6529
6530
6531fi
6532if test -z "$ac_cv_prog_RANLIB"; then
6533  ac_ct_RANLIB=$RANLIB
6534  # Extract the first word of "ranlib", so it can be a program name with args.
6535set dummy ranlib; ac_word=$2
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537$as_echo_n "checking for $ac_word... " >&6; }
6538if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  if test -n "$ac_ct_RANLIB"; then
6542  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6543else
6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545for as_dir in $PATH
6546do
6547  IFS=$as_save_IFS
6548  test -z "$as_dir" && as_dir=.
6549    for ac_exec_ext in '' $ac_executable_extensions; do
6550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551    ac_cv_prog_ac_ct_RANLIB="ranlib"
6552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553    break 2
6554  fi
6555done
6556  done
6557IFS=$as_save_IFS
6558
6559fi
6560fi
6561ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6562if test -n "$ac_ct_RANLIB"; then
6563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6564$as_echo "$ac_ct_RANLIB" >&6; }
6565else
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567$as_echo "no" >&6; }
6568fi
6569
6570  if test "x$ac_ct_RANLIB" = x; then
6571    RANLIB=":"
6572  else
6573    case $cross_compiling:$ac_tool_warned in
6574yes:)
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577ac_tool_warned=yes ;;
6578esac
6579    RANLIB=$ac_ct_RANLIB
6580  fi
6581else
6582  RANLIB="$ac_cv_prog_RANLIB"
6583fi
6584
6585test -z "$RANLIB" && RANLIB=:
6586
6587
6588
6589
6590
6591
6592# Determine commands to create old-style static archives.
6593old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6594old_postinstall_cmds='chmod 644 $oldlib'
6595old_postuninstall_cmds=
6596
6597if test -n "$RANLIB"; then
6598  case $host_os in
6599  bitrig* | openbsd*)
6600    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6601    ;;
6602  *)
6603    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6604    ;;
6605  esac
6606  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6607fi
6608
6609case $host_os in
6610  darwin*)
6611    lock_old_archive_extraction=yes ;;
6612  *)
6613    lock_old_archive_extraction=no ;;
6614esac
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654# If no C compiler was specified, use CC.
6655LTCC=${LTCC-"$CC"}
6656
6657# If no C compiler flags were specified, use CFLAGS.
6658LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6659
6660# Allow CC to be a program name with arguments.
6661compiler=$CC
6662
6663
6664# Check for command to grab the raw symbol name followed by C symbol from nm.
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6666$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6667if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6668  $as_echo_n "(cached) " >&6
6669else
6670
6671# These are sane defaults that work on at least a few old systems.
6672# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6673
6674# Character class describing NM global symbol codes.
6675symcode='[BCDEGRST]'
6676
6677# Regexp to match symbols that can be accessed directly from C.
6678sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6679
6680# Define system-specific variables.
6681case $host_os in
6682aix*)
6683  symcode='[BCDT]'
6684  ;;
6685cygwin* | mingw* | pw32* | cegcc*)
6686  symcode='[ABCDGISTW]'
6687  ;;
6688hpux*)
6689  if test ia64 = "$host_cpu"; then
6690    symcode='[ABCDEGRST]'
6691  fi
6692  ;;
6693irix* | nonstopux*)
6694  symcode='[BCDEGRST]'
6695  ;;
6696osf*)
6697  symcode='[BCDEGQRST]'
6698  ;;
6699solaris*)
6700  symcode='[BDRT]'
6701  ;;
6702sco3.2v5*)
6703  symcode='[DT]'
6704  ;;
6705sysv4.2uw2*)
6706  symcode='[DT]'
6707  ;;
6708sysv5* | sco5v6* | unixware* | OpenUNIX*)
6709  symcode='[ABDT]'
6710  ;;
6711sysv4)
6712  symcode='[DFNSTU]'
6713  ;;
6714esac
6715
6716# If we're using GNU nm, then use its standard symbol codes.
6717case `$NM -V 2>&1` in
6718*GNU* | *'with BFD'*)
6719  symcode='[ABCDGIRSTW]' ;;
6720esac
6721
6722if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6723  # Gets list of data symbols to import.
6724  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6725  # Adjust the below global symbol transforms to fixup imported variables.
6726  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6727  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6728  lt_c_name_lib_hook="\
6729  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6730  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6731else
6732  # Disable hooks by default.
6733  lt_cv_sys_global_symbol_to_import=
6734  lt_cdecl_hook=
6735  lt_c_name_hook=
6736  lt_c_name_lib_hook=
6737fi
6738
6739# Transform an extracted symbol line into a proper C declaration.
6740# Some systems (esp. on ia64) link data and code symbols differently,
6741# so use this general approach.
6742lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6743$lt_cdecl_hook\
6744" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6745" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6746
6747# Transform an extracted symbol line into symbol name and symbol address
6748lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6749$lt_c_name_hook\
6750" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6751" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6752
6753# Transform an extracted symbol line into symbol name with lib prefix and
6754# symbol address.
6755lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6756$lt_c_name_lib_hook\
6757" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6758" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6759" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6760
6761# Handle CRLF in mingw tool chain
6762opt_cr=
6763case $build_os in
6764mingw*)
6765  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6766  ;;
6767esac
6768
6769# Try without a prefix underscore, then with it.
6770for ac_symprfx in "" "_"; do
6771
6772  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6773  symxfrm="\\1 $ac_symprfx\\2 \\2"
6774
6775  # Write the raw and C identifiers.
6776  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6777    # Fake it for dumpbin and say T for any non-static function,
6778    # D for any global variable and I for any imported variable.
6779    # Also find C++ and __fastcall symbols from MSVC++,
6780    # which start with @ or ?.
6781    lt_cv_sys_global_symbol_pipe="$AWK '"\
6782"     {last_section=section; section=\$ 3};"\
6783"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6784"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6785"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6786"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6787"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6788"     \$ 0!~/External *\|/{next};"\
6789"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6790"     {if(hide[section]) next};"\
6791"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6792"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6793"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6794"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6795"     ' prfx=^$ac_symprfx"
6796  else
6797    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6798  fi
6799  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6800
6801  # Check to see that the pipe works correctly.
6802  pipe_works=no
6803
6804  rm -f conftest*
6805  cat > conftest.$ac_ext <<_LT_EOF
6806#ifdef __cplusplus
6807extern "C" {
6808#endif
6809char nm_test_var;
6810void nm_test_func(void);
6811void nm_test_func(void){}
6812#ifdef __cplusplus
6813}
6814#endif
6815int main(){nm_test_var='a';nm_test_func();return(0);}
6816_LT_EOF
6817
6818  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6819  (eval $ac_compile) 2>&5
6820  ac_status=$?
6821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822  test $ac_status = 0; }; then
6823    # Now try to grab the symbols.
6824    nlist=conftest.nm
6825    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6826  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6827  ac_status=$?
6828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829  test $ac_status = 0; } && test -s "$nlist"; then
6830      # Try sorting and uniquifying the output.
6831      if sort "$nlist" | uniq > "$nlist"T; then
6832	mv -f "$nlist"T "$nlist"
6833      else
6834	rm -f "$nlist"T
6835      fi
6836
6837      # Make sure that we snagged all the symbols we need.
6838      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6839	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6840	  cat <<_LT_EOF > conftest.$ac_ext
6841/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6842#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6843/* DATA imports from DLLs on WIN32 can't be const, because runtime
6844   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6845# define LT_DLSYM_CONST
6846#elif defined __osf__
6847/* This system does not cope well with relocations in const data.  */
6848# define LT_DLSYM_CONST
6849#else
6850# define LT_DLSYM_CONST const
6851#endif
6852
6853#ifdef __cplusplus
6854extern "C" {
6855#endif
6856
6857_LT_EOF
6858	  # Now generate the symbol file.
6859	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6860
6861	  cat <<_LT_EOF >> conftest.$ac_ext
6862
6863/* The mapping between symbol names and symbols.  */
6864LT_DLSYM_CONST struct {
6865  const char *name;
6866  void       *address;
6867}
6868lt__PROGRAM__LTX_preloaded_symbols[] =
6869{
6870  { "@PROGRAM@", (void *) 0 },
6871_LT_EOF
6872	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6873	  cat <<\_LT_EOF >> conftest.$ac_ext
6874  {0, (void *) 0}
6875};
6876
6877/* This works around a problem in FreeBSD linker */
6878#ifdef FREEBSD_WORKAROUND
6879static const void *lt_preloaded_setup() {
6880  return lt__PROGRAM__LTX_preloaded_symbols;
6881}
6882#endif
6883
6884#ifdef __cplusplus
6885}
6886#endif
6887_LT_EOF
6888	  # Now try linking the two files.
6889	  mv conftest.$ac_objext conftstm.$ac_objext
6890	  lt_globsym_save_LIBS=$LIBS
6891	  lt_globsym_save_CFLAGS=$CFLAGS
6892	  LIBS=conftstm.$ac_objext
6893	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6894	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6895  (eval $ac_link) 2>&5
6896  ac_status=$?
6897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6899	    pipe_works=yes
6900	  fi
6901	  LIBS=$lt_globsym_save_LIBS
6902	  CFLAGS=$lt_globsym_save_CFLAGS
6903	else
6904	  echo "cannot find nm_test_func in $nlist" >&5
6905	fi
6906      else
6907	echo "cannot find nm_test_var in $nlist" >&5
6908      fi
6909    else
6910      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6911    fi
6912  else
6913    echo "$progname: failed program was:" >&5
6914    cat conftest.$ac_ext >&5
6915  fi
6916  rm -rf conftest* conftst*
6917
6918  # Do not use the global_symbol_pipe unless it works.
6919  if test yes = "$pipe_works"; then
6920    break
6921  else
6922    lt_cv_sys_global_symbol_pipe=
6923  fi
6924done
6925
6926fi
6927
6928if test -z "$lt_cv_sys_global_symbol_pipe"; then
6929  lt_cv_sys_global_symbol_to_cdecl=
6930fi
6931if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6933$as_echo "failed" >&6; }
6934else
6935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6936$as_echo "ok" >&6; }
6937fi
6938
6939# Response file support.
6940if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6941  nm_file_list_spec='@'
6942elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6943  nm_file_list_spec='@'
6944fi
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6983$as_echo_n "checking for sysroot... " >&6; }
6984
6985# Check whether --with-sysroot was given.
6986if test "${with_sysroot+set}" = set; then :
6987  withval=$with_sysroot;
6988else
6989  with_sysroot=no
6990fi
6991
6992
6993lt_sysroot=
6994case $with_sysroot in #(
6995 yes)
6996   if test yes = "$GCC"; then
6997     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6998   fi
6999   ;; #(
7000 /*)
7001   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7002   ;; #(
7003 no|'')
7004   ;; #(
7005 *)
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7007$as_echo "$with_sysroot" >&6; }
7008   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7009   ;;
7010esac
7011
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7013$as_echo "${lt_sysroot:-no}" >&6; }
7014
7015
7016
7017
7018
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7020$as_echo_n "checking for a working dd... " >&6; }
7021if ${ac_cv_path_lt_DD+:} false; then :
7022  $as_echo_n "(cached) " >&6
7023else
7024  printf 0123456789abcdef0123456789abcdef >conftest.i
7025cat conftest.i conftest.i >conftest2.i
7026: ${lt_DD:=$DD}
7027if test -z "$lt_DD"; then
7028  ac_path_lt_DD_found=false
7029  # Loop through the user's path and test for each of PROGNAME-LIST
7030  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033  IFS=$as_save_IFS
7034  test -z "$as_dir" && as_dir=.
7035    for ac_prog in dd; do
7036    for ac_exec_ext in '' $ac_executable_extensions; do
7037      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7038      as_fn_executable_p "$ac_path_lt_DD" || continue
7039if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7040  cmp -s conftest.i conftest.out \
7041  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7042fi
7043      $ac_path_lt_DD_found && break 3
7044    done
7045  done
7046  done
7047IFS=$as_save_IFS
7048  if test -z "$ac_cv_path_lt_DD"; then
7049    :
7050  fi
7051else
7052  ac_cv_path_lt_DD=$lt_DD
7053fi
7054
7055rm -f conftest.i conftest2.i conftest.out
7056fi
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7058$as_echo "$ac_cv_path_lt_DD" >&6; }
7059
7060
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7062$as_echo_n "checking how to truncate binary pipes... " >&6; }
7063if ${lt_cv_truncate_bin+:} false; then :
7064  $as_echo_n "(cached) " >&6
7065else
7066  printf 0123456789abcdef0123456789abcdef >conftest.i
7067cat conftest.i conftest.i >conftest2.i
7068lt_cv_truncate_bin=
7069if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7070  cmp -s conftest.i conftest.out \
7071  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7072fi
7073rm -f conftest.i conftest2.i conftest.out
7074test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7075fi
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7077$as_echo "$lt_cv_truncate_bin" >&6; }
7078
7079
7080
7081
7082
7083
7084
7085# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7086func_cc_basename ()
7087{
7088    for cc_temp in $*""; do
7089      case $cc_temp in
7090        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7091        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7092        \-*) ;;
7093        *) break;;
7094      esac
7095    done
7096    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7097}
7098
7099# Check whether --enable-libtool-lock was given.
7100if test "${enable_libtool_lock+set}" = set; then :
7101  enableval=$enable_libtool_lock;
7102fi
7103
7104test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7105
7106# Some flags need to be propagated to the compiler or linker for good
7107# libtool support.
7108case $host in
7109ia64-*-hpux*)
7110  # Find out what ABI is being produced by ac_compile, and set mode
7111  # options accordingly.
7112  echo 'int i;' > conftest.$ac_ext
7113  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7114  (eval $ac_compile) 2>&5
7115  ac_status=$?
7116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7117  test $ac_status = 0; }; then
7118    case `/usr/bin/file conftest.$ac_objext` in
7119      *ELF-32*)
7120	HPUX_IA64_MODE=32
7121	;;
7122      *ELF-64*)
7123	HPUX_IA64_MODE=64
7124	;;
7125    esac
7126  fi
7127  rm -rf conftest*
7128  ;;
7129*-*-irix6*)
7130  # Find out what ABI is being produced by ac_compile, and set linker
7131  # options accordingly.
7132  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7133  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7134  (eval $ac_compile) 2>&5
7135  ac_status=$?
7136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137  test $ac_status = 0; }; then
7138    if test yes = "$lt_cv_prog_gnu_ld"; then
7139      case `/usr/bin/file conftest.$ac_objext` in
7140	*32-bit*)
7141	  LD="${LD-ld} -melf32bsmip"
7142	  ;;
7143	*N32*)
7144	  LD="${LD-ld} -melf32bmipn32"
7145	  ;;
7146	*64-bit*)
7147	  LD="${LD-ld} -melf64bmip"
7148	;;
7149      esac
7150    else
7151      case `/usr/bin/file conftest.$ac_objext` in
7152	*32-bit*)
7153	  LD="${LD-ld} -32"
7154	  ;;
7155	*N32*)
7156	  LD="${LD-ld} -n32"
7157	  ;;
7158	*64-bit*)
7159	  LD="${LD-ld} -64"
7160	  ;;
7161      esac
7162    fi
7163  fi
7164  rm -rf conftest*
7165  ;;
7166
7167mips64*-*linux*)
7168  # Find out what ABI is being produced by ac_compile, and set linker
7169  # options accordingly.
7170  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7171  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7172  (eval $ac_compile) 2>&5
7173  ac_status=$?
7174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7175  test $ac_status = 0; }; then
7176    emul=elf
7177    case `/usr/bin/file conftest.$ac_objext` in
7178      *32-bit*)
7179	emul="${emul}32"
7180	;;
7181      *64-bit*)
7182	emul="${emul}64"
7183	;;
7184    esac
7185    case `/usr/bin/file conftest.$ac_objext` in
7186      *MSB*)
7187	emul="${emul}btsmip"
7188	;;
7189      *LSB*)
7190	emul="${emul}ltsmip"
7191	;;
7192    esac
7193    case `/usr/bin/file conftest.$ac_objext` in
7194      *N32*)
7195	emul="${emul}n32"
7196	;;
7197    esac
7198    LD="${LD-ld} -m $emul"
7199  fi
7200  rm -rf conftest*
7201  ;;
7202
7203x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7204s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7205  # Find out what ABI is being produced by ac_compile, and set linker
7206  # options accordingly.  Note that the listed cases only cover the
7207  # situations where additional linker options are needed (such as when
7208  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7209  # vice versa); the common cases where no linker options are needed do
7210  # not appear in the list.
7211  echo 'int i;' > conftest.$ac_ext
7212  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7213  (eval $ac_compile) 2>&5
7214  ac_status=$?
7215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7216  test $ac_status = 0; }; then
7217    case `/usr/bin/file conftest.o` in
7218      *32-bit*)
7219	case $host in
7220	  x86_64-*kfreebsd*-gnu)
7221	    LD="${LD-ld} -m elf_i386_fbsd"
7222	    ;;
7223	  x86_64-*linux*)
7224	    case `/usr/bin/file conftest.o` in
7225	      *x86-64*)
7226		LD="${LD-ld} -m elf32_x86_64"
7227		;;
7228	      *)
7229		LD="${LD-ld} -m elf_i386"
7230		;;
7231	    esac
7232	    ;;
7233	  powerpc64le-*linux*)
7234	    LD="${LD-ld} -m elf32lppclinux"
7235	    ;;
7236	  powerpc64-*linux*)
7237	    LD="${LD-ld} -m elf32ppclinux"
7238	    ;;
7239	  s390x-*linux*)
7240	    LD="${LD-ld} -m elf_s390"
7241	    ;;
7242	  sparc64-*linux*)
7243	    LD="${LD-ld} -m elf32_sparc"
7244	    ;;
7245	esac
7246	;;
7247      *64-bit*)
7248	case $host in
7249	  x86_64-*kfreebsd*-gnu)
7250	    LD="${LD-ld} -m elf_x86_64_fbsd"
7251	    ;;
7252	  x86_64-*linux*)
7253	    LD="${LD-ld} -m elf_x86_64"
7254	    ;;
7255	  powerpcle-*linux*)
7256	    LD="${LD-ld} -m elf64lppc"
7257	    ;;
7258	  powerpc-*linux*)
7259	    LD="${LD-ld} -m elf64ppc"
7260	    ;;
7261	  s390*-*linux*|s390*-*tpf*)
7262	    LD="${LD-ld} -m elf64_s390"
7263	    ;;
7264	  sparc*-*linux*)
7265	    LD="${LD-ld} -m elf64_sparc"
7266	    ;;
7267	esac
7268	;;
7269    esac
7270  fi
7271  rm -rf conftest*
7272  ;;
7273
7274*-*-sco3.2v5*)
7275  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7276  SAVE_CFLAGS=$CFLAGS
7277  CFLAGS="$CFLAGS -belf"
7278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7279$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7280if ${lt_cv_cc_needs_belf+:} false; then :
7281  $as_echo_n "(cached) " >&6
7282else
7283  ac_ext=c
7284ac_cpp='$CPP $CPPFLAGS'
7285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288
7289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h.  */
7291
7292int
7293main ()
7294{
7295
7296  ;
7297  return 0;
7298}
7299_ACEOF
7300if ac_fn_c_try_link "$LINENO"; then :
7301  lt_cv_cc_needs_belf=yes
7302else
7303  lt_cv_cc_needs_belf=no
7304fi
7305rm -f core conftest.err conftest.$ac_objext \
7306    conftest$ac_exeext conftest.$ac_ext
7307     ac_ext=c
7308ac_cpp='$CPP $CPPFLAGS'
7309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311ac_compiler_gnu=$ac_cv_c_compiler_gnu
7312
7313fi
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7315$as_echo "$lt_cv_cc_needs_belf" >&6; }
7316  if test yes != "$lt_cv_cc_needs_belf"; then
7317    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7318    CFLAGS=$SAVE_CFLAGS
7319  fi
7320  ;;
7321*-*solaris*)
7322  # Find out what ABI is being produced by ac_compile, and set linker
7323  # options accordingly.
7324  echo 'int i;' > conftest.$ac_ext
7325  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7326  (eval $ac_compile) 2>&5
7327  ac_status=$?
7328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7329  test $ac_status = 0; }; then
7330    case `/usr/bin/file conftest.o` in
7331    *64-bit*)
7332      case $lt_cv_prog_gnu_ld in
7333      yes*)
7334        case $host in
7335        i?86-*-solaris*|x86_64-*-solaris*)
7336          LD="${LD-ld} -m elf_x86_64"
7337          ;;
7338        sparc*-*-solaris*)
7339          LD="${LD-ld} -m elf64_sparc"
7340          ;;
7341        esac
7342        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7343        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7344          LD=${LD-ld}_sol2
7345        fi
7346        ;;
7347      *)
7348	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7349	  LD="${LD-ld} -64"
7350	fi
7351	;;
7352      esac
7353      ;;
7354    esac
7355  fi
7356  rm -rf conftest*
7357  ;;
7358esac
7359
7360need_locks=$enable_libtool_lock
7361
7362if test -n "$ac_tool_prefix"; then
7363  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7364set dummy ${ac_tool_prefix}mt; ac_word=$2
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366$as_echo_n "checking for $ac_word... " >&6; }
7367if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370  if test -n "$MANIFEST_TOOL"; then
7371  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7372else
7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376  IFS=$as_save_IFS
7377  test -z "$as_dir" && as_dir=.
7378    for ac_exec_ext in '' $ac_executable_extensions; do
7379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382    break 2
7383  fi
7384done
7385  done
7386IFS=$as_save_IFS
7387
7388fi
7389fi
7390MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7391if test -n "$MANIFEST_TOOL"; then
7392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7393$as_echo "$MANIFEST_TOOL" >&6; }
7394else
7395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396$as_echo "no" >&6; }
7397fi
7398
7399
7400fi
7401if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7402  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7403  # Extract the first word of "mt", so it can be a program name with args.
7404set dummy mt; ac_word=$2
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406$as_echo_n "checking for $ac_word... " >&6; }
7407if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7408  $as_echo_n "(cached) " >&6
7409else
7410  if test -n "$ac_ct_MANIFEST_TOOL"; then
7411  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7412else
7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416  IFS=$as_save_IFS
7417  test -z "$as_dir" && as_dir=.
7418    for ac_exec_ext in '' $ac_executable_extensions; do
7419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422    break 2
7423  fi
7424done
7425  done
7426IFS=$as_save_IFS
7427
7428fi
7429fi
7430ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7431if test -n "$ac_ct_MANIFEST_TOOL"; then
7432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7433$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7434else
7435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
7437fi
7438
7439  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7440    MANIFEST_TOOL=":"
7441  else
7442    case $cross_compiling:$ac_tool_warned in
7443yes:)
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7446ac_tool_warned=yes ;;
7447esac
7448    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7449  fi
7450else
7451  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7452fi
7453
7454test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7456$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7457if ${lt_cv_path_mainfest_tool+:} false; then :
7458  $as_echo_n "(cached) " >&6
7459else
7460  lt_cv_path_mainfest_tool=no
7461  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7462  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7463  cat conftest.err >&5
7464  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7465    lt_cv_path_mainfest_tool=yes
7466  fi
7467  rm -f conftest*
7468fi
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7470$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7471if test yes != "$lt_cv_path_mainfest_tool"; then
7472  MANIFEST_TOOL=:
7473fi
7474
7475
7476
7477
7478
7479
7480  case $host_os in
7481    rhapsody* | darwin*)
7482    if test -n "$ac_tool_prefix"; then
7483  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7484set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486$as_echo_n "checking for $ac_word... " >&6; }
7487if ${ac_cv_prog_DSYMUTIL+:} false; then :
7488  $as_echo_n "(cached) " >&6
7489else
7490  if test -n "$DSYMUTIL"; then
7491  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7492else
7493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494for as_dir in $PATH
7495do
7496  IFS=$as_save_IFS
7497  test -z "$as_dir" && as_dir=.
7498    for ac_exec_ext in '' $ac_executable_extensions; do
7499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502    break 2
7503  fi
7504done
7505  done
7506IFS=$as_save_IFS
7507
7508fi
7509fi
7510DSYMUTIL=$ac_cv_prog_DSYMUTIL
7511if test -n "$DSYMUTIL"; then
7512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7513$as_echo "$DSYMUTIL" >&6; }
7514else
7515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516$as_echo "no" >&6; }
7517fi
7518
7519
7520fi
7521if test -z "$ac_cv_prog_DSYMUTIL"; then
7522  ac_ct_DSYMUTIL=$DSYMUTIL
7523  # Extract the first word of "dsymutil", so it can be a program name with args.
7524set dummy dsymutil; ac_word=$2
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526$as_echo_n "checking for $ac_word... " >&6; }
7527if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7528  $as_echo_n "(cached) " >&6
7529else
7530  if test -n "$ac_ct_DSYMUTIL"; then
7531  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7532else
7533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534for as_dir in $PATH
7535do
7536  IFS=$as_save_IFS
7537  test -z "$as_dir" && as_dir=.
7538    for ac_exec_ext in '' $ac_executable_extensions; do
7539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542    break 2
7543  fi
7544done
7545  done
7546IFS=$as_save_IFS
7547
7548fi
7549fi
7550ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7551if test -n "$ac_ct_DSYMUTIL"; then
7552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7553$as_echo "$ac_ct_DSYMUTIL" >&6; }
7554else
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556$as_echo "no" >&6; }
7557fi
7558
7559  if test "x$ac_ct_DSYMUTIL" = x; then
7560    DSYMUTIL=":"
7561  else
7562    case $cross_compiling:$ac_tool_warned in
7563yes:)
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566ac_tool_warned=yes ;;
7567esac
7568    DSYMUTIL=$ac_ct_DSYMUTIL
7569  fi
7570else
7571  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7572fi
7573
7574    if test -n "$ac_tool_prefix"; then
7575  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7576set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578$as_echo_n "checking for $ac_word... " >&6; }
7579if ${ac_cv_prog_NMEDIT+:} false; then :
7580  $as_echo_n "(cached) " >&6
7581else
7582  if test -n "$NMEDIT"; then
7583  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7584else
7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588  IFS=$as_save_IFS
7589  test -z "$as_dir" && as_dir=.
7590    for ac_exec_ext in '' $ac_executable_extensions; do
7591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594    break 2
7595  fi
7596done
7597  done
7598IFS=$as_save_IFS
7599
7600fi
7601fi
7602NMEDIT=$ac_cv_prog_NMEDIT
7603if test -n "$NMEDIT"; then
7604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7605$as_echo "$NMEDIT" >&6; }
7606else
7607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608$as_echo "no" >&6; }
7609fi
7610
7611
7612fi
7613if test -z "$ac_cv_prog_NMEDIT"; then
7614  ac_ct_NMEDIT=$NMEDIT
7615  # Extract the first word of "nmedit", so it can be a program name with args.
7616set dummy nmedit; ac_word=$2
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618$as_echo_n "checking for $ac_word... " >&6; }
7619if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7620  $as_echo_n "(cached) " >&6
7621else
7622  if test -n "$ac_ct_NMEDIT"; then
7623  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7624else
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628  IFS=$as_save_IFS
7629  test -z "$as_dir" && as_dir=.
7630    for ac_exec_ext in '' $ac_executable_extensions; do
7631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634    break 2
7635  fi
7636done
7637  done
7638IFS=$as_save_IFS
7639
7640fi
7641fi
7642ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7643if test -n "$ac_ct_NMEDIT"; then
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7645$as_echo "$ac_ct_NMEDIT" >&6; }
7646else
7647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648$as_echo "no" >&6; }
7649fi
7650
7651  if test "x$ac_ct_NMEDIT" = x; then
7652    NMEDIT=":"
7653  else
7654    case $cross_compiling:$ac_tool_warned in
7655yes:)
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658ac_tool_warned=yes ;;
7659esac
7660    NMEDIT=$ac_ct_NMEDIT
7661  fi
7662else
7663  NMEDIT="$ac_cv_prog_NMEDIT"
7664fi
7665
7666    if test -n "$ac_tool_prefix"; then
7667  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7668set dummy ${ac_tool_prefix}lipo; ac_word=$2
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670$as_echo_n "checking for $ac_word... " >&6; }
7671if ${ac_cv_prog_LIPO+:} false; then :
7672  $as_echo_n "(cached) " >&6
7673else
7674  if test -n "$LIPO"; then
7675  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7676else
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680  IFS=$as_save_IFS
7681  test -z "$as_dir" && as_dir=.
7682    for ac_exec_ext in '' $ac_executable_extensions; do
7683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686    break 2
7687  fi
7688done
7689  done
7690IFS=$as_save_IFS
7691
7692fi
7693fi
7694LIPO=$ac_cv_prog_LIPO
7695if test -n "$LIPO"; then
7696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7697$as_echo "$LIPO" >&6; }
7698else
7699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
7701fi
7702
7703
7704fi
7705if test -z "$ac_cv_prog_LIPO"; then
7706  ac_ct_LIPO=$LIPO
7707  # Extract the first word of "lipo", so it can be a program name with args.
7708set dummy lipo; ac_word=$2
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710$as_echo_n "checking for $ac_word... " >&6; }
7711if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  if test -n "$ac_ct_LIPO"; then
7715  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7716else
7717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720  IFS=$as_save_IFS
7721  test -z "$as_dir" && as_dir=.
7722    for ac_exec_ext in '' $ac_executable_extensions; do
7723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724    ac_cv_prog_ac_ct_LIPO="lipo"
7725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726    break 2
7727  fi
7728done
7729  done
7730IFS=$as_save_IFS
7731
7732fi
7733fi
7734ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7735if test -n "$ac_ct_LIPO"; then
7736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7737$as_echo "$ac_ct_LIPO" >&6; }
7738else
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
7741fi
7742
7743  if test "x$ac_ct_LIPO" = x; then
7744    LIPO=":"
7745  else
7746    case $cross_compiling:$ac_tool_warned in
7747yes:)
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750ac_tool_warned=yes ;;
7751esac
7752    LIPO=$ac_ct_LIPO
7753  fi
7754else
7755  LIPO="$ac_cv_prog_LIPO"
7756fi
7757
7758    if test -n "$ac_tool_prefix"; then
7759  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7760set dummy ${ac_tool_prefix}otool; ac_word=$2
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762$as_echo_n "checking for $ac_word... " >&6; }
7763if ${ac_cv_prog_OTOOL+:} false; then :
7764  $as_echo_n "(cached) " >&6
7765else
7766  if test -n "$OTOOL"; then
7767  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772  IFS=$as_save_IFS
7773  test -z "$as_dir" && as_dir=.
7774    for ac_exec_ext in '' $ac_executable_extensions; do
7775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778    break 2
7779  fi
7780done
7781  done
7782IFS=$as_save_IFS
7783
7784fi
7785fi
7786OTOOL=$ac_cv_prog_OTOOL
7787if test -n "$OTOOL"; then
7788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7789$as_echo "$OTOOL" >&6; }
7790else
7791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792$as_echo "no" >&6; }
7793fi
7794
7795
7796fi
7797if test -z "$ac_cv_prog_OTOOL"; then
7798  ac_ct_OTOOL=$OTOOL
7799  # Extract the first word of "otool", so it can be a program name with args.
7800set dummy otool; ac_word=$2
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802$as_echo_n "checking for $ac_word... " >&6; }
7803if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7804  $as_echo_n "(cached) " >&6
7805else
7806  if test -n "$ac_ct_OTOOL"; then
7807  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7808else
7809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812  IFS=$as_save_IFS
7813  test -z "$as_dir" && as_dir=.
7814    for ac_exec_ext in '' $ac_executable_extensions; do
7815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816    ac_cv_prog_ac_ct_OTOOL="otool"
7817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818    break 2
7819  fi
7820done
7821  done
7822IFS=$as_save_IFS
7823
7824fi
7825fi
7826ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7827if test -n "$ac_ct_OTOOL"; then
7828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7829$as_echo "$ac_ct_OTOOL" >&6; }
7830else
7831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
7833fi
7834
7835  if test "x$ac_ct_OTOOL" = x; then
7836    OTOOL=":"
7837  else
7838    case $cross_compiling:$ac_tool_warned in
7839yes:)
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842ac_tool_warned=yes ;;
7843esac
7844    OTOOL=$ac_ct_OTOOL
7845  fi
7846else
7847  OTOOL="$ac_cv_prog_OTOOL"
7848fi
7849
7850    if test -n "$ac_tool_prefix"; then
7851  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7852set dummy ${ac_tool_prefix}otool64; ac_word=$2
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854$as_echo_n "checking for $ac_word... " >&6; }
7855if ${ac_cv_prog_OTOOL64+:} false; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  if test -n "$OTOOL64"; then
7859  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7860else
7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864  IFS=$as_save_IFS
7865  test -z "$as_dir" && as_dir=.
7866    for ac_exec_ext in '' $ac_executable_extensions; do
7867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870    break 2
7871  fi
7872done
7873  done
7874IFS=$as_save_IFS
7875
7876fi
7877fi
7878OTOOL64=$ac_cv_prog_OTOOL64
7879if test -n "$OTOOL64"; then
7880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7881$as_echo "$OTOOL64" >&6; }
7882else
7883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
7885fi
7886
7887
7888fi
7889if test -z "$ac_cv_prog_OTOOL64"; then
7890  ac_ct_OTOOL64=$OTOOL64
7891  # Extract the first word of "otool64", so it can be a program name with args.
7892set dummy otool64; ac_word=$2
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
7895if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  if test -n "$ac_ct_OTOOL64"; then
7899  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904  IFS=$as_save_IFS
7905  test -z "$as_dir" && as_dir=.
7906    for ac_exec_ext in '' $ac_executable_extensions; do
7907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908    ac_cv_prog_ac_ct_OTOOL64="otool64"
7909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910    break 2
7911  fi
7912done
7913  done
7914IFS=$as_save_IFS
7915
7916fi
7917fi
7918ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7919if test -n "$ac_ct_OTOOL64"; then
7920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7921$as_echo "$ac_ct_OTOOL64" >&6; }
7922else
7923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
7925fi
7926
7927  if test "x$ac_ct_OTOOL64" = x; then
7928    OTOOL64=":"
7929  else
7930    case $cross_compiling:$ac_tool_warned in
7931yes:)
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7934ac_tool_warned=yes ;;
7935esac
7936    OTOOL64=$ac_ct_OTOOL64
7937  fi
7938else
7939  OTOOL64="$ac_cv_prog_OTOOL64"
7940fi
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7969$as_echo_n "checking for -single_module linker flag... " >&6; }
7970if ${lt_cv_apple_cc_single_mod+:} false; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  lt_cv_apple_cc_single_mod=no
7974      if test -z "$LT_MULTI_MODULE"; then
7975	# By default we will add the -single_module flag. You can override
7976	# by either setting the environment variable LT_MULTI_MODULE
7977	# non-empty at configure time, or by adding -multi_module to the
7978	# link flags.
7979	rm -rf libconftest.dylib*
7980	echo "int foo(void){return 1;}" > conftest.c
7981	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7982-dynamiclib -Wl,-single_module conftest.c" >&5
7983	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7984	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7985        _lt_result=$?
7986	# If there is a non-empty error log, and "single_module"
7987	# appears in it, assume the flag caused a linker warning
7988        if test -s conftest.err && $GREP single_module conftest.err; then
7989	  cat conftest.err >&5
7990	# Otherwise, if the output was created with a 0 exit code from
7991	# the compiler, it worked.
7992	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7993	  lt_cv_apple_cc_single_mod=yes
7994	else
7995	  cat conftest.err >&5
7996	fi
7997	rm -rf libconftest.dylib*
7998	rm -f conftest.*
7999      fi
8000fi
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8002$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8003
8004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8005$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8006if ${lt_cv_ld_exported_symbols_list+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  lt_cv_ld_exported_symbols_list=no
8010      save_LDFLAGS=$LDFLAGS
8011      echo "_main" > conftest.sym
8012      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8013      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h.  */
8015
8016int
8017main ()
8018{
8019
8020  ;
8021  return 0;
8022}
8023_ACEOF
8024if ac_fn_c_try_link "$LINENO"; then :
8025  lt_cv_ld_exported_symbols_list=yes
8026else
8027  lt_cv_ld_exported_symbols_list=no
8028fi
8029rm -f core conftest.err conftest.$ac_objext \
8030    conftest$ac_exeext conftest.$ac_ext
8031	LDFLAGS=$save_LDFLAGS
8032
8033fi
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8035$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8036
8037    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8038$as_echo_n "checking for -force_load linker flag... " >&6; }
8039if ${lt_cv_ld_force_load+:} false; then :
8040  $as_echo_n "(cached) " >&6
8041else
8042  lt_cv_ld_force_load=no
8043      cat > conftest.c << _LT_EOF
8044int forced_loaded() { return 2;}
8045_LT_EOF
8046      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8047      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8048      echo "$AR cru libconftest.a conftest.o" >&5
8049      $AR cru libconftest.a conftest.o 2>&5
8050      echo "$RANLIB libconftest.a" >&5
8051      $RANLIB libconftest.a 2>&5
8052      cat > conftest.c << _LT_EOF
8053int main() { return 0;}
8054_LT_EOF
8055      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8056      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8057      _lt_result=$?
8058      if test -s conftest.err && $GREP force_load conftest.err; then
8059	cat conftest.err >&5
8060      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8061	lt_cv_ld_force_load=yes
8062      else
8063	cat conftest.err >&5
8064      fi
8065        rm -f conftest.err libconftest.a conftest conftest.c
8066        rm -rf conftest.dSYM
8067
8068fi
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8070$as_echo "$lt_cv_ld_force_load" >&6; }
8071    case $host_os in
8072    rhapsody* | darwin1.[012])
8073      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8074    darwin1.*)
8075      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8076    darwin*) # darwin 5.x on
8077      # if running on 10.5 or later, the deployment target defaults
8078      # to the OS version, if on x86, and 10.4, the deployment
8079      # target defaults to 10.4. Don't you love it?
8080      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8081	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8082	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8083	10.[012][,.]*)
8084	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8085	10.*)
8086	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8087      esac
8088    ;;
8089  esac
8090    if test yes = "$lt_cv_apple_cc_single_mod"; then
8091      _lt_dar_single_mod='$single_module'
8092    fi
8093    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8094      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8095    else
8096      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8097    fi
8098    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8099      _lt_dsymutil='~$DSYMUTIL $lib || :'
8100    else
8101      _lt_dsymutil=
8102    fi
8103    ;;
8104  esac
8105
8106# func_munge_path_list VARIABLE PATH
8107# -----------------------------------
8108# VARIABLE is name of variable containing _space_ separated list of
8109# directories to be munged by the contents of PATH, which is string
8110# having a format:
8111# "DIR[:DIR]:"
8112#       string "DIR[ DIR]" will be prepended to VARIABLE
8113# ":DIR[:DIR]"
8114#       string "DIR[ DIR]" will be appended to VARIABLE
8115# "DIRP[:DIRP]::[DIRA:]DIRA"
8116#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8117#       "DIRA[ DIRA]" will be appended to VARIABLE
8118# "DIR[:DIR]"
8119#       VARIABLE will be replaced by "DIR[ DIR]"
8120func_munge_path_list ()
8121{
8122    case x$2 in
8123    x)
8124        ;;
8125    *:)
8126        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8127        ;;
8128    x:*)
8129        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8130        ;;
8131    *::*)
8132        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8133        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8134        ;;
8135    *)
8136        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8137        ;;
8138    esac
8139}
8140
8141ac_ext=c
8142ac_cpp='$CPP $CPPFLAGS'
8143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8145ac_compiler_gnu=$ac_cv_c_compiler_gnu
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8147$as_echo_n "checking how to run the C preprocessor... " >&6; }
8148# On Suns, sometimes $CPP names a directory.
8149if test -n "$CPP" && test -d "$CPP"; then
8150  CPP=
8151fi
8152if test -z "$CPP"; then
8153  if ${ac_cv_prog_CPP+:} false; then :
8154  $as_echo_n "(cached) " >&6
8155else
8156      # Double quotes because CPP needs to be expanded
8157    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8158    do
8159      ac_preproc_ok=false
8160for ac_c_preproc_warn_flag in '' yes
8161do
8162  # Use a header file that comes with gcc, so configuring glibc
8163  # with a fresh cross-compiler works.
8164  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8165  # <limits.h> exists even on freestanding compilers.
8166  # On the NeXT, cc -E runs the code through the compiler's parser,
8167  # not just through cpp. "Syntax error" is here to catch this case.
8168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169/* end confdefs.h.  */
8170#ifdef __STDC__
8171# include <limits.h>
8172#else
8173# include <assert.h>
8174#endif
8175		     Syntax error
8176_ACEOF
8177if ac_fn_c_try_cpp "$LINENO"; then :
8178
8179else
8180  # Broken: fails on valid input.
8181continue
8182fi
8183rm -f conftest.err conftest.i conftest.$ac_ext
8184
8185  # OK, works on sane cases.  Now check whether nonexistent headers
8186  # can be detected and how.
8187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188/* end confdefs.h.  */
8189#include <ac_nonexistent.h>
8190_ACEOF
8191if ac_fn_c_try_cpp "$LINENO"; then :
8192  # Broken: success on invalid input.
8193continue
8194else
8195  # Passes both tests.
8196ac_preproc_ok=:
8197break
8198fi
8199rm -f conftest.err conftest.i conftest.$ac_ext
8200
8201done
8202# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8203rm -f conftest.i conftest.err conftest.$ac_ext
8204if $ac_preproc_ok; then :
8205  break
8206fi
8207
8208    done
8209    ac_cv_prog_CPP=$CPP
8210
8211fi
8212  CPP=$ac_cv_prog_CPP
8213else
8214  ac_cv_prog_CPP=$CPP
8215fi
8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8217$as_echo "$CPP" >&6; }
8218ac_preproc_ok=false
8219for ac_c_preproc_warn_flag in '' yes
8220do
8221  # Use a header file that comes with gcc, so configuring glibc
8222  # with a fresh cross-compiler works.
8223  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8224  # <limits.h> exists even on freestanding compilers.
8225  # On the NeXT, cc -E runs the code through the compiler's parser,
8226  # not just through cpp. "Syntax error" is here to catch this case.
8227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h.  */
8229#ifdef __STDC__
8230# include <limits.h>
8231#else
8232# include <assert.h>
8233#endif
8234		     Syntax error
8235_ACEOF
8236if ac_fn_c_try_cpp "$LINENO"; then :
8237
8238else
8239  # Broken: fails on valid input.
8240continue
8241fi
8242rm -f conftest.err conftest.i conftest.$ac_ext
8243
8244  # OK, works on sane cases.  Now check whether nonexistent headers
8245  # can be detected and how.
8246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h.  */
8248#include <ac_nonexistent.h>
8249_ACEOF
8250if ac_fn_c_try_cpp "$LINENO"; then :
8251  # Broken: success on invalid input.
8252continue
8253else
8254  # Passes both tests.
8255ac_preproc_ok=:
8256break
8257fi
8258rm -f conftest.err conftest.i conftest.$ac_ext
8259
8260done
8261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8262rm -f conftest.i conftest.err conftest.$ac_ext
8263if $ac_preproc_ok; then :
8264
8265else
8266  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8268as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8269See \`config.log' for more details" "$LINENO" 5; }
8270fi
8271
8272ac_ext=c
8273ac_cpp='$CPP $CPPFLAGS'
8274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8276ac_compiler_gnu=$ac_cv_c_compiler_gnu
8277
8278
8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8280$as_echo_n "checking for ANSI C header files... " >&6; }
8281if ${ac_cv_header_stdc+:} false; then :
8282  $as_echo_n "(cached) " >&6
8283else
8284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285/* end confdefs.h.  */
8286#include <stdlib.h>
8287#include <stdarg.h>
8288#include <string.h>
8289#include <float.h>
8290
8291int
8292main ()
8293{
8294
8295  ;
8296  return 0;
8297}
8298_ACEOF
8299if ac_fn_c_try_compile "$LINENO"; then :
8300  ac_cv_header_stdc=yes
8301else
8302  ac_cv_header_stdc=no
8303fi
8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305
8306if test $ac_cv_header_stdc = yes; then
8307  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309/* end confdefs.h.  */
8310#include <string.h>
8311
8312_ACEOF
8313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8314  $EGREP "memchr" >/dev/null 2>&1; then :
8315
8316else
8317  ac_cv_header_stdc=no
8318fi
8319rm -f conftest*
8320
8321fi
8322
8323if test $ac_cv_header_stdc = yes; then
8324  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326/* end confdefs.h.  */
8327#include <stdlib.h>
8328
8329_ACEOF
8330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8331  $EGREP "free" >/dev/null 2>&1; then :
8332
8333else
8334  ac_cv_header_stdc=no
8335fi
8336rm -f conftest*
8337
8338fi
8339
8340if test $ac_cv_header_stdc = yes; then
8341  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8342  if test "$cross_compiling" = yes; then :
8343  :
8344else
8345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h.  */
8347#include <ctype.h>
8348#include <stdlib.h>
8349#if ((' ' & 0x0FF) == 0x020)
8350# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8351# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8352#else
8353# define ISLOWER(c) \
8354		   (('a' <= (c) && (c) <= 'i') \
8355		     || ('j' <= (c) && (c) <= 'r') \
8356		     || ('s' <= (c) && (c) <= 'z'))
8357# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8358#endif
8359
8360#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8361int
8362main ()
8363{
8364  int i;
8365  for (i = 0; i < 256; i++)
8366    if (XOR (islower (i), ISLOWER (i))
8367	|| toupper (i) != TOUPPER (i))
8368      return 2;
8369  return 0;
8370}
8371_ACEOF
8372if ac_fn_c_try_run "$LINENO"; then :
8373
8374else
8375  ac_cv_header_stdc=no
8376fi
8377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8378  conftest.$ac_objext conftest.beam conftest.$ac_ext
8379fi
8380
8381fi
8382fi
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8384$as_echo "$ac_cv_header_stdc" >&6; }
8385if test $ac_cv_header_stdc = yes; then
8386
8387$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8388
8389fi
8390
8391# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8392for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8393		  inttypes.h stdint.h unistd.h
8394do :
8395  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8396ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8397"
8398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8399  cat >>confdefs.h <<_ACEOF
8400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8401_ACEOF
8402
8403fi
8404
8405done
8406
8407
8408for ac_header in dlfcn.h
8409do :
8410  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8411"
8412if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8413  cat >>confdefs.h <<_ACEOF
8414#define HAVE_DLFCN_H 1
8415_ACEOF
8416
8417fi
8418
8419done
8420
8421
8422
8423func_stripname_cnf ()
8424{
8425  case $2 in
8426  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8427  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8428  esac
8429} # func_stripname_cnf
8430
8431
8432
8433
8434
8435# Set options
8436# Check whether --enable-static was given.
8437if test "${enable_static+set}" = set; then :
8438  enableval=$enable_static; p=${PACKAGE-default}
8439    case $enableval in
8440    yes) enable_static=yes ;;
8441    no) enable_static=no ;;
8442    *)
8443     enable_static=no
8444      # Look at the argument we got.  We use all the common list separators.
8445      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8446      for pkg in $enableval; do
8447	IFS=$lt_save_ifs
8448	if test "X$pkg" = "X$p"; then
8449	  enable_static=yes
8450	fi
8451      done
8452      IFS=$lt_save_ifs
8453      ;;
8454    esac
8455else
8456  enable_static=no
8457fi
8458
8459
8460
8461
8462
8463
8464
8465enable_dlopen=yes
8466enable_win32_dll=yes
8467
8468case $host in
8469*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8470  if test -n "$ac_tool_prefix"; then
8471  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8472set dummy ${ac_tool_prefix}as; ac_word=$2
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474$as_echo_n "checking for $ac_word... " >&6; }
8475if ${ac_cv_prog_AS+:} false; then :
8476  $as_echo_n "(cached) " >&6
8477else
8478  if test -n "$AS"; then
8479  ac_cv_prog_AS="$AS" # Let the user override the test.
8480else
8481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482for as_dir in $PATH
8483do
8484  IFS=$as_save_IFS
8485  test -z "$as_dir" && as_dir=.
8486    for ac_exec_ext in '' $ac_executable_extensions; do
8487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488    ac_cv_prog_AS="${ac_tool_prefix}as"
8489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490    break 2
8491  fi
8492done
8493  done
8494IFS=$as_save_IFS
8495
8496fi
8497fi
8498AS=$ac_cv_prog_AS
8499if test -n "$AS"; then
8500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8501$as_echo "$AS" >&6; }
8502else
8503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504$as_echo "no" >&6; }
8505fi
8506
8507
8508fi
8509if test -z "$ac_cv_prog_AS"; then
8510  ac_ct_AS=$AS
8511  # Extract the first word of "as", so it can be a program name with args.
8512set dummy as; ac_word=$2
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514$as_echo_n "checking for $ac_word... " >&6; }
8515if ${ac_cv_prog_ac_ct_AS+:} false; then :
8516  $as_echo_n "(cached) " >&6
8517else
8518  if test -n "$ac_ct_AS"; then
8519  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8520else
8521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522for as_dir in $PATH
8523do
8524  IFS=$as_save_IFS
8525  test -z "$as_dir" && as_dir=.
8526    for ac_exec_ext in '' $ac_executable_extensions; do
8527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528    ac_cv_prog_ac_ct_AS="as"
8529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530    break 2
8531  fi
8532done
8533  done
8534IFS=$as_save_IFS
8535
8536fi
8537fi
8538ac_ct_AS=$ac_cv_prog_ac_ct_AS
8539if test -n "$ac_ct_AS"; then
8540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8541$as_echo "$ac_ct_AS" >&6; }
8542else
8543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
8545fi
8546
8547  if test "x$ac_ct_AS" = x; then
8548    AS="false"
8549  else
8550    case $cross_compiling:$ac_tool_warned in
8551yes:)
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8554ac_tool_warned=yes ;;
8555esac
8556    AS=$ac_ct_AS
8557  fi
8558else
8559  AS="$ac_cv_prog_AS"
8560fi
8561
8562  if test -n "$ac_tool_prefix"; then
8563  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8564set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566$as_echo_n "checking for $ac_word... " >&6; }
8567if ${ac_cv_prog_DLLTOOL+:} false; then :
8568  $as_echo_n "(cached) " >&6
8569else
8570  if test -n "$DLLTOOL"; then
8571  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8572else
8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576  IFS=$as_save_IFS
8577  test -z "$as_dir" && as_dir=.
8578    for ac_exec_ext in '' $ac_executable_extensions; do
8579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8580    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582    break 2
8583  fi
8584done
8585  done
8586IFS=$as_save_IFS
8587
8588fi
8589fi
8590DLLTOOL=$ac_cv_prog_DLLTOOL
8591if test -n "$DLLTOOL"; then
8592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8593$as_echo "$DLLTOOL" >&6; }
8594else
8595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596$as_echo "no" >&6; }
8597fi
8598
8599
8600fi
8601if test -z "$ac_cv_prog_DLLTOOL"; then
8602  ac_ct_DLLTOOL=$DLLTOOL
8603  # Extract the first word of "dlltool", so it can be a program name with args.
8604set dummy dlltool; ac_word=$2
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606$as_echo_n "checking for $ac_word... " >&6; }
8607if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  if test -n "$ac_ct_DLLTOOL"; then
8611  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8612else
8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616  IFS=$as_save_IFS
8617  test -z "$as_dir" && as_dir=.
8618    for ac_exec_ext in '' $ac_executable_extensions; do
8619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622    break 2
8623  fi
8624done
8625  done
8626IFS=$as_save_IFS
8627
8628fi
8629fi
8630ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8631if test -n "$ac_ct_DLLTOOL"; then
8632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8633$as_echo "$ac_ct_DLLTOOL" >&6; }
8634else
8635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
8637fi
8638
8639  if test "x$ac_ct_DLLTOOL" = x; then
8640    DLLTOOL="false"
8641  else
8642    case $cross_compiling:$ac_tool_warned in
8643yes:)
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8646ac_tool_warned=yes ;;
8647esac
8648    DLLTOOL=$ac_ct_DLLTOOL
8649  fi
8650else
8651  DLLTOOL="$ac_cv_prog_DLLTOOL"
8652fi
8653
8654  if test -n "$ac_tool_prefix"; then
8655  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8656set dummy ${ac_tool_prefix}objdump; ac_word=$2
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658$as_echo_n "checking for $ac_word... " >&6; }
8659if ${ac_cv_prog_OBJDUMP+:} false; then :
8660  $as_echo_n "(cached) " >&6
8661else
8662  if test -n "$OBJDUMP"; then
8663  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8664else
8665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666for as_dir in $PATH
8667do
8668  IFS=$as_save_IFS
8669  test -z "$as_dir" && as_dir=.
8670    for ac_exec_ext in '' $ac_executable_extensions; do
8671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674    break 2
8675  fi
8676done
8677  done
8678IFS=$as_save_IFS
8679
8680fi
8681fi
8682OBJDUMP=$ac_cv_prog_OBJDUMP
8683if test -n "$OBJDUMP"; then
8684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8685$as_echo "$OBJDUMP" >&6; }
8686else
8687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688$as_echo "no" >&6; }
8689fi
8690
8691
8692fi
8693if test -z "$ac_cv_prog_OBJDUMP"; then
8694  ac_ct_OBJDUMP=$OBJDUMP
8695  # Extract the first word of "objdump", so it can be a program name with args.
8696set dummy objdump; ac_word=$2
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698$as_echo_n "checking for $ac_word... " >&6; }
8699if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8700  $as_echo_n "(cached) " >&6
8701else
8702  if test -n "$ac_ct_OBJDUMP"; then
8703  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8704else
8705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706for as_dir in $PATH
8707do
8708  IFS=$as_save_IFS
8709  test -z "$as_dir" && as_dir=.
8710    for ac_exec_ext in '' $ac_executable_extensions; do
8711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8712    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8714    break 2
8715  fi
8716done
8717  done
8718IFS=$as_save_IFS
8719
8720fi
8721fi
8722ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8723if test -n "$ac_ct_OBJDUMP"; then
8724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8725$as_echo "$ac_ct_OBJDUMP" >&6; }
8726else
8727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728$as_echo "no" >&6; }
8729fi
8730
8731  if test "x$ac_ct_OBJDUMP" = x; then
8732    OBJDUMP="false"
8733  else
8734    case $cross_compiling:$ac_tool_warned in
8735yes:)
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8738ac_tool_warned=yes ;;
8739esac
8740    OBJDUMP=$ac_ct_OBJDUMP
8741  fi
8742else
8743  OBJDUMP="$ac_cv_prog_OBJDUMP"
8744fi
8745
8746  ;;
8747esac
8748
8749test -z "$AS" && AS=as
8750
8751
8752
8753
8754
8755test -z "$DLLTOOL" && DLLTOOL=dlltool
8756
8757
8758
8759
8760
8761test -z "$OBJDUMP" && OBJDUMP=objdump
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771            # Check whether --enable-shared was given.
8772if test "${enable_shared+set}" = set; then :
8773  enableval=$enable_shared; p=${PACKAGE-default}
8774    case $enableval in
8775    yes) enable_shared=yes ;;
8776    no) enable_shared=no ;;
8777    *)
8778      enable_shared=no
8779      # Look at the argument we got.  We use all the common list separators.
8780      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8781      for pkg in $enableval; do
8782	IFS=$lt_save_ifs
8783	if test "X$pkg" = "X$p"; then
8784	  enable_shared=yes
8785	fi
8786      done
8787      IFS=$lt_save_ifs
8788      ;;
8789    esac
8790else
8791  enable_shared=yes
8792fi
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804# Check whether --with-pic was given.
8805if test "${with_pic+set}" = set; then :
8806  withval=$with_pic; lt_p=${PACKAGE-default}
8807    case $withval in
8808    yes|no) pic_mode=$withval ;;
8809    *)
8810      pic_mode=default
8811      # Look at the argument we got.  We use all the common list separators.
8812      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8813      for lt_pkg in $withval; do
8814	IFS=$lt_save_ifs
8815	if test "X$lt_pkg" = "X$lt_p"; then
8816	  pic_mode=yes
8817	fi
8818      done
8819      IFS=$lt_save_ifs
8820      ;;
8821    esac
8822else
8823  pic_mode=default
8824fi
8825
8826
8827
8828
8829
8830
8831
8832
8833  # Check whether --enable-fast-install was given.
8834if test "${enable_fast_install+set}" = set; then :
8835  enableval=$enable_fast_install; p=${PACKAGE-default}
8836    case $enableval in
8837    yes) enable_fast_install=yes ;;
8838    no) enable_fast_install=no ;;
8839    *)
8840      enable_fast_install=no
8841      # Look at the argument we got.  We use all the common list separators.
8842      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8843      for pkg in $enableval; do
8844	IFS=$lt_save_ifs
8845	if test "X$pkg" = "X$p"; then
8846	  enable_fast_install=yes
8847	fi
8848      done
8849      IFS=$lt_save_ifs
8850      ;;
8851    esac
8852else
8853  enable_fast_install=yes
8854fi
8855
8856
8857
8858
8859
8860
8861
8862
8863  shared_archive_member_spec=
8864case $host,$enable_shared in
8865power*-*-aix[5-9]*,yes)
8866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8867$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8868
8869# Check whether --with-aix-soname was given.
8870if test "${with_aix_soname+set}" = set; then :
8871  withval=$with_aix_soname; case $withval in
8872    aix|svr4|both)
8873      ;;
8874    *)
8875      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8876      ;;
8877    esac
8878    lt_cv_with_aix_soname=$with_aix_soname
8879else
8880  if ${lt_cv_with_aix_soname+:} false; then :
8881  $as_echo_n "(cached) " >&6
8882else
8883  lt_cv_with_aix_soname=aix
8884fi
8885
8886    with_aix_soname=$lt_cv_with_aix_soname
8887fi
8888
8889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8890$as_echo "$with_aix_soname" >&6; }
8891  if test aix != "$with_aix_soname"; then
8892    # For the AIX way of multilib, we name the shared archive member
8893    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8894    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8895    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8896    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8897    if test 64 = "${OBJECT_MODE-32}"; then
8898      shared_archive_member_spec=shr_64
8899    else
8900      shared_archive_member_spec=shr
8901    fi
8902  fi
8903  ;;
8904*)
8905  with_aix_soname=aix
8906  ;;
8907esac
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918# This can be used to rebuild libtool when needed
8919LIBTOOL_DEPS=$ltmain
8920
8921# Always use our own libtool.
8922LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953test -z "$LN_S" && LN_S="ln -s"
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968if test -n "${ZSH_VERSION+set}"; then
8969   setopt NO_GLOB_SUBST
8970fi
8971
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8973$as_echo_n "checking for objdir... " >&6; }
8974if ${lt_cv_objdir+:} false; then :
8975  $as_echo_n "(cached) " >&6
8976else
8977  rm -f .libs 2>/dev/null
8978mkdir .libs 2>/dev/null
8979if test -d .libs; then
8980  lt_cv_objdir=.libs
8981else
8982  # MS-DOS does not allow filenames that begin with a dot.
8983  lt_cv_objdir=_libs
8984fi
8985rmdir .libs 2>/dev/null
8986fi
8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8988$as_echo "$lt_cv_objdir" >&6; }
8989objdir=$lt_cv_objdir
8990
8991
8992
8993
8994
8995cat >>confdefs.h <<_ACEOF
8996#define LT_OBJDIR "$lt_cv_objdir/"
8997_ACEOF
8998
8999
9000
9001
9002case $host_os in
9003aix3*)
9004  # AIX sometimes has problems with the GCC collect2 program.  For some
9005  # reason, if we set the COLLECT_NAMES environment variable, the problems
9006  # vanish in a puff of smoke.
9007  if test set != "${COLLECT_NAMES+set}"; then
9008    COLLECT_NAMES=
9009    export COLLECT_NAMES
9010  fi
9011  ;;
9012esac
9013
9014# Global variables:
9015ofile=libtool
9016can_build_shared=yes
9017
9018# All known linkers require a '.a' archive for static linking (except MSVC,
9019# which needs '.lib').
9020libext=a
9021
9022with_gnu_ld=$lt_cv_prog_gnu_ld
9023
9024old_CC=$CC
9025old_CFLAGS=$CFLAGS
9026
9027# Set sane defaults for various variables
9028test -z "$CC" && CC=cc
9029test -z "$LTCC" && LTCC=$CC
9030test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9031test -z "$LD" && LD=ld
9032test -z "$ac_objext" && ac_objext=o
9033
9034func_cc_basename $compiler
9035cc_basename=$func_cc_basename_result
9036
9037
9038# Only perform the check for file, if the check method requires it
9039test -z "$MAGIC_CMD" && MAGIC_CMD=file
9040case $deplibs_check_method in
9041file_magic*)
9042  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9043    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9044$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9045if ${lt_cv_path_MAGIC_CMD+:} false; then :
9046  $as_echo_n "(cached) " >&6
9047else
9048  case $MAGIC_CMD in
9049[\\/*] |  ?:[\\/]*)
9050  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9051  ;;
9052*)
9053  lt_save_MAGIC_CMD=$MAGIC_CMD
9054  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9055  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9056  for ac_dir in $ac_dummy; do
9057    IFS=$lt_save_ifs
9058    test -z "$ac_dir" && ac_dir=.
9059    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9060      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9061      if test -n "$file_magic_test_file"; then
9062	case $deplibs_check_method in
9063	"file_magic "*)
9064	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9065	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9066	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9067	    $EGREP "$file_magic_regex" > /dev/null; then
9068	    :
9069	  else
9070	    cat <<_LT_EOF 1>&2
9071
9072*** Warning: the command libtool uses to detect shared libraries,
9073*** $file_magic_cmd, produces output that libtool cannot recognize.
9074*** The result is that libtool may fail to recognize shared libraries
9075*** as such.  This will affect the creation of libtool libraries that
9076*** depend on shared libraries, but programs linked with such libtool
9077*** libraries will work regardless of this problem.  Nevertheless, you
9078*** may want to report the problem to your system manager and/or to
9079*** bug-libtool@gnu.org
9080
9081_LT_EOF
9082	  fi ;;
9083	esac
9084      fi
9085      break
9086    fi
9087  done
9088  IFS=$lt_save_ifs
9089  MAGIC_CMD=$lt_save_MAGIC_CMD
9090  ;;
9091esac
9092fi
9093
9094MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9095if test -n "$MAGIC_CMD"; then
9096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9097$as_echo "$MAGIC_CMD" >&6; }
9098else
9099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100$as_echo "no" >&6; }
9101fi
9102
9103
9104
9105
9106
9107if test -z "$lt_cv_path_MAGIC_CMD"; then
9108  if test -n "$ac_tool_prefix"; then
9109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9110$as_echo_n "checking for file... " >&6; }
9111if ${lt_cv_path_MAGIC_CMD+:} false; then :
9112  $as_echo_n "(cached) " >&6
9113else
9114  case $MAGIC_CMD in
9115[\\/*] |  ?:[\\/]*)
9116  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9117  ;;
9118*)
9119  lt_save_MAGIC_CMD=$MAGIC_CMD
9120  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9121  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9122  for ac_dir in $ac_dummy; do
9123    IFS=$lt_save_ifs
9124    test -z "$ac_dir" && ac_dir=.
9125    if test -f "$ac_dir/file"; then
9126      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9127      if test -n "$file_magic_test_file"; then
9128	case $deplibs_check_method in
9129	"file_magic "*)
9130	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9131	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9132	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9133	    $EGREP "$file_magic_regex" > /dev/null; then
9134	    :
9135	  else
9136	    cat <<_LT_EOF 1>&2
9137
9138*** Warning: the command libtool uses to detect shared libraries,
9139*** $file_magic_cmd, produces output that libtool cannot recognize.
9140*** The result is that libtool may fail to recognize shared libraries
9141*** as such.  This will affect the creation of libtool libraries that
9142*** depend on shared libraries, but programs linked with such libtool
9143*** libraries will work regardless of this problem.  Nevertheless, you
9144*** may want to report the problem to your system manager and/or to
9145*** bug-libtool@gnu.org
9146
9147_LT_EOF
9148	  fi ;;
9149	esac
9150      fi
9151      break
9152    fi
9153  done
9154  IFS=$lt_save_ifs
9155  MAGIC_CMD=$lt_save_MAGIC_CMD
9156  ;;
9157esac
9158fi
9159
9160MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9161if test -n "$MAGIC_CMD"; then
9162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9163$as_echo "$MAGIC_CMD" >&6; }
9164else
9165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166$as_echo "no" >&6; }
9167fi
9168
9169
9170  else
9171    MAGIC_CMD=:
9172  fi
9173fi
9174
9175  fi
9176  ;;
9177esac
9178
9179# Use C for the default configuration in the libtool script
9180
9181lt_save_CC=$CC
9182ac_ext=c
9183ac_cpp='$CPP $CPPFLAGS'
9184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9186ac_compiler_gnu=$ac_cv_c_compiler_gnu
9187
9188
9189# Source file extension for C test sources.
9190ac_ext=c
9191
9192# Object file extension for compiled C test sources.
9193objext=o
9194objext=$objext
9195
9196# Code to be used in simple compile tests
9197lt_simple_compile_test_code="int some_variable = 0;"
9198
9199# Code to be used in simple link tests
9200lt_simple_link_test_code='int main(){return(0);}'
9201
9202
9203
9204
9205
9206
9207
9208# If no C compiler was specified, use CC.
9209LTCC=${LTCC-"$CC"}
9210
9211# If no C compiler flags were specified, use CFLAGS.
9212LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9213
9214# Allow CC to be a program name with arguments.
9215compiler=$CC
9216
9217# Save the default compiler, since it gets overwritten when the other
9218# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9219compiler_DEFAULT=$CC
9220
9221# save warnings/boilerplate of simple test code
9222ac_outfile=conftest.$ac_objext
9223echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9224eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9225_lt_compiler_boilerplate=`cat conftest.err`
9226$RM conftest*
9227
9228ac_outfile=conftest.$ac_objext
9229echo "$lt_simple_link_test_code" >conftest.$ac_ext
9230eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9231_lt_linker_boilerplate=`cat conftest.err`
9232$RM -r conftest*
9233
9234
9235## CAVEAT EMPTOR:
9236## There is no encapsulation within the following macros, do not change
9237## the running order or otherwise move them around unless you know exactly
9238## what you are doing...
9239if test -n "$compiler"; then
9240
9241lt_prog_compiler_no_builtin_flag=
9242
9243if test yes = "$GCC"; then
9244  case $cc_basename in
9245  nvcc*)
9246    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9247  *)
9248    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9249  esac
9250
9251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9252$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9253if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9254  $as_echo_n "(cached) " >&6
9255else
9256  lt_cv_prog_compiler_rtti_exceptions=no
9257   ac_outfile=conftest.$ac_objext
9258   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9259   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9260   # Insert the option either (1) after the last *FLAGS variable, or
9261   # (2) before a word containing "conftest.", or (3) at the end.
9262   # Note that $ac_compile itself does not contain backslashes and begins
9263   # with a dollar sign (not a hyphen), so the echo should work correctly.
9264   # The option is referenced via a variable to avoid confusing sed.
9265   lt_compile=`echo "$ac_compile" | $SED \
9266   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9267   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9268   -e 's:$: $lt_compiler_flag:'`
9269   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9270   (eval "$lt_compile" 2>conftest.err)
9271   ac_status=$?
9272   cat conftest.err >&5
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   if (exit $ac_status) && test -s "$ac_outfile"; then
9275     # The compiler can only warn and ignore the option if not recognized
9276     # So say no if there are warnings other than the usual output.
9277     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9278     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9279     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9280       lt_cv_prog_compiler_rtti_exceptions=yes
9281     fi
9282   fi
9283   $RM conftest*
9284
9285fi
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9287$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9288
9289if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9290    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9291else
9292    :
9293fi
9294
9295fi
9296
9297
9298
9299
9300
9301
9302  lt_prog_compiler_wl=
9303lt_prog_compiler_pic=
9304lt_prog_compiler_static=
9305
9306
9307  if test yes = "$GCC"; then
9308    lt_prog_compiler_wl='-Wl,'
9309    lt_prog_compiler_static='-static'
9310
9311    case $host_os in
9312      aix*)
9313      # All AIX code is PIC.
9314      if test ia64 = "$host_cpu"; then
9315	# AIX 5 now supports IA64 processor
9316	lt_prog_compiler_static='-Bstatic'
9317      fi
9318      lt_prog_compiler_pic='-fPIC'
9319      ;;
9320
9321    amigaos*)
9322      case $host_cpu in
9323      powerpc)
9324            # see comment about AmigaOS4 .so support
9325            lt_prog_compiler_pic='-fPIC'
9326        ;;
9327      m68k)
9328            # FIXME: we need at least 68020 code to build shared libraries, but
9329            # adding the '-m68020' flag to GCC prevents building anything better,
9330            # like '-m68040'.
9331            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9332        ;;
9333      esac
9334      ;;
9335
9336    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9337      # PIC is the default for these OSes.
9338      ;;
9339
9340    mingw* | cygwin* | pw32* | os2* | cegcc*)
9341      # This hack is so that the source file can tell whether it is being
9342      # built for inclusion in a dll (and should export symbols for example).
9343      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9344      # (--disable-auto-import) libraries
9345      lt_prog_compiler_pic='-DDLL_EXPORT'
9346      case $host_os in
9347      os2*)
9348	lt_prog_compiler_static='$wl-static'
9349	;;
9350      esac
9351      ;;
9352
9353    darwin* | rhapsody*)
9354      # PIC is the default on this platform
9355      # Common symbols not allowed in MH_DYLIB files
9356      lt_prog_compiler_pic='-fno-common'
9357      ;;
9358
9359    haiku*)
9360      # PIC is the default for Haiku.
9361      # The "-static" flag exists, but is broken.
9362      lt_prog_compiler_static=
9363      ;;
9364
9365    hpux*)
9366      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9367      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9368      # sets the default TLS model and affects inlining.
9369      case $host_cpu in
9370      hppa*64*)
9371	# +Z the default
9372	;;
9373      *)
9374	lt_prog_compiler_pic='-fPIC'
9375	;;
9376      esac
9377      ;;
9378
9379    interix[3-9]*)
9380      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9381      # Instead, we relocate shared libraries at runtime.
9382      ;;
9383
9384    msdosdjgpp*)
9385      # Just because we use GCC doesn't mean we suddenly get shared libraries
9386      # on systems that don't support them.
9387      lt_prog_compiler_can_build_shared=no
9388      enable_shared=no
9389      ;;
9390
9391    *nto* | *qnx*)
9392      # QNX uses GNU C++, but need to define -shared option too, otherwise
9393      # it will coredump.
9394      lt_prog_compiler_pic='-fPIC -shared'
9395      ;;
9396
9397    sysv4*MP*)
9398      if test -d /usr/nec; then
9399	lt_prog_compiler_pic=-Kconform_pic
9400      fi
9401      ;;
9402
9403    *)
9404      lt_prog_compiler_pic='-fPIC'
9405      ;;
9406    esac
9407
9408    case $cc_basename in
9409    nvcc*) # Cuda Compiler Driver 2.2
9410      lt_prog_compiler_wl='-Xlinker '
9411      if test -n "$lt_prog_compiler_pic"; then
9412        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9413      fi
9414      ;;
9415    esac
9416  else
9417    # PORTME Check for flag to pass linker flags through the system compiler.
9418    case $host_os in
9419    aix*)
9420      lt_prog_compiler_wl='-Wl,'
9421      if test ia64 = "$host_cpu"; then
9422	# AIX 5 now supports IA64 processor
9423	lt_prog_compiler_static='-Bstatic'
9424      else
9425	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9426      fi
9427      ;;
9428
9429    darwin* | rhapsody*)
9430      # PIC is the default on this platform
9431      # Common symbols not allowed in MH_DYLIB files
9432      lt_prog_compiler_pic='-fno-common'
9433      case $cc_basename in
9434      nagfor*)
9435        # NAG Fortran compiler
9436        lt_prog_compiler_wl='-Wl,-Wl,,'
9437        lt_prog_compiler_pic='-PIC'
9438        lt_prog_compiler_static='-Bstatic'
9439        ;;
9440      esac
9441      ;;
9442
9443    mingw* | cygwin* | pw32* | os2* | cegcc*)
9444      # This hack is so that the source file can tell whether it is being
9445      # built for inclusion in a dll (and should export symbols for example).
9446      lt_prog_compiler_pic='-DDLL_EXPORT'
9447      case $host_os in
9448      os2*)
9449	lt_prog_compiler_static='$wl-static'
9450	;;
9451      esac
9452      ;;
9453
9454    hpux9* | hpux10* | hpux11*)
9455      lt_prog_compiler_wl='-Wl,'
9456      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9457      # not for PA HP-UX.
9458      case $host_cpu in
9459      hppa*64*|ia64*)
9460	# +Z the default
9461	;;
9462      *)
9463	lt_prog_compiler_pic='+Z'
9464	;;
9465      esac
9466      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9467      lt_prog_compiler_static='$wl-a ${wl}archive'
9468      ;;
9469
9470    irix5* | irix6* | nonstopux*)
9471      lt_prog_compiler_wl='-Wl,'
9472      # PIC (with -KPIC) is the default.
9473      lt_prog_compiler_static='-non_shared'
9474      ;;
9475
9476    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9477      case $cc_basename in
9478      # old Intel for x86_64, which still supported -KPIC.
9479      ecc*)
9480	lt_prog_compiler_wl='-Wl,'
9481	lt_prog_compiler_pic='-KPIC'
9482	lt_prog_compiler_static='-static'
9483        ;;
9484      # icc used to be incompatible with GCC.
9485      # ICC 10 doesn't accept -KPIC any more.
9486      icc* | ifort*)
9487	lt_prog_compiler_wl='-Wl,'
9488	lt_prog_compiler_pic='-fPIC'
9489	lt_prog_compiler_static='-static'
9490        ;;
9491      # Lahey Fortran 8.1.
9492      lf95*)
9493	lt_prog_compiler_wl='-Wl,'
9494	lt_prog_compiler_pic='--shared'
9495	lt_prog_compiler_static='--static'
9496	;;
9497      nagfor*)
9498	# NAG Fortran compiler
9499	lt_prog_compiler_wl='-Wl,-Wl,,'
9500	lt_prog_compiler_pic='-PIC'
9501	lt_prog_compiler_static='-Bstatic'
9502	;;
9503      tcc*)
9504	# Fabrice Bellard et al's Tiny C Compiler
9505	lt_prog_compiler_wl='-Wl,'
9506	lt_prog_compiler_pic='-fPIC'
9507	lt_prog_compiler_static='-static'
9508	;;
9509      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9510        # Portland Group compilers (*not* the Pentium gcc compiler,
9511	# which looks to be a dead project)
9512	lt_prog_compiler_wl='-Wl,'
9513	lt_prog_compiler_pic='-fpic'
9514	lt_prog_compiler_static='-Bstatic'
9515        ;;
9516      ccc*)
9517        lt_prog_compiler_wl='-Wl,'
9518        # All Alpha code is PIC.
9519        lt_prog_compiler_static='-non_shared'
9520        ;;
9521      xl* | bgxl* | bgf* | mpixl*)
9522	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9523	lt_prog_compiler_wl='-Wl,'
9524	lt_prog_compiler_pic='-qpic'
9525	lt_prog_compiler_static='-qstaticlink'
9526	;;
9527      *)
9528	case `$CC -V 2>&1 | sed 5q` in
9529	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9530	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9531	  lt_prog_compiler_pic='-KPIC'
9532	  lt_prog_compiler_static='-Bstatic'
9533	  lt_prog_compiler_wl=''
9534	  ;;
9535	*Sun\ F* | *Sun*Fortran*)
9536	  lt_prog_compiler_pic='-KPIC'
9537	  lt_prog_compiler_static='-Bstatic'
9538	  lt_prog_compiler_wl='-Qoption ld '
9539	  ;;
9540	*Sun\ C*)
9541	  # Sun C 5.9
9542	  lt_prog_compiler_pic='-KPIC'
9543	  lt_prog_compiler_static='-Bstatic'
9544	  lt_prog_compiler_wl='-Wl,'
9545	  ;;
9546        *Intel*\ [CF]*Compiler*)
9547	  lt_prog_compiler_wl='-Wl,'
9548	  lt_prog_compiler_pic='-fPIC'
9549	  lt_prog_compiler_static='-static'
9550	  ;;
9551	*Portland\ Group*)
9552	  lt_prog_compiler_wl='-Wl,'
9553	  lt_prog_compiler_pic='-fpic'
9554	  lt_prog_compiler_static='-Bstatic'
9555	  ;;
9556	esac
9557	;;
9558      esac
9559      ;;
9560
9561    newsos6)
9562      lt_prog_compiler_pic='-KPIC'
9563      lt_prog_compiler_static='-Bstatic'
9564      ;;
9565
9566    *nto* | *qnx*)
9567      # QNX uses GNU C++, but need to define -shared option too, otherwise
9568      # it will coredump.
9569      lt_prog_compiler_pic='-fPIC -shared'
9570      ;;
9571
9572    osf3* | osf4* | osf5*)
9573      lt_prog_compiler_wl='-Wl,'
9574      # All OSF/1 code is PIC.
9575      lt_prog_compiler_static='-non_shared'
9576      ;;
9577
9578    rdos*)
9579      lt_prog_compiler_static='-non_shared'
9580      ;;
9581
9582    solaris*)
9583      lt_prog_compiler_pic='-KPIC'
9584      lt_prog_compiler_static='-Bstatic'
9585      case $cc_basename in
9586      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9587	lt_prog_compiler_wl='-Qoption ld ';;
9588      *)
9589	lt_prog_compiler_wl='-Wl,';;
9590      esac
9591      ;;
9592
9593    sunos4*)
9594      lt_prog_compiler_wl='-Qoption ld '
9595      lt_prog_compiler_pic='-PIC'
9596      lt_prog_compiler_static='-Bstatic'
9597      ;;
9598
9599    sysv4 | sysv4.2uw2* | sysv4.3*)
9600      lt_prog_compiler_wl='-Wl,'
9601      lt_prog_compiler_pic='-KPIC'
9602      lt_prog_compiler_static='-Bstatic'
9603      ;;
9604
9605    sysv4*MP*)
9606      if test -d /usr/nec; then
9607	lt_prog_compiler_pic='-Kconform_pic'
9608	lt_prog_compiler_static='-Bstatic'
9609      fi
9610      ;;
9611
9612    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9613      lt_prog_compiler_wl='-Wl,'
9614      lt_prog_compiler_pic='-KPIC'
9615      lt_prog_compiler_static='-Bstatic'
9616      ;;
9617
9618    unicos*)
9619      lt_prog_compiler_wl='-Wl,'
9620      lt_prog_compiler_can_build_shared=no
9621      ;;
9622
9623    uts4*)
9624      lt_prog_compiler_pic='-pic'
9625      lt_prog_compiler_static='-Bstatic'
9626      ;;
9627
9628    *)
9629      lt_prog_compiler_can_build_shared=no
9630      ;;
9631    esac
9632  fi
9633
9634case $host_os in
9635  # For platforms that do not support PIC, -DPIC is meaningless:
9636  *djgpp*)
9637    lt_prog_compiler_pic=
9638    ;;
9639  *)
9640    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9641    ;;
9642esac
9643
9644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9645$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9646if ${lt_cv_prog_compiler_pic+:} false; then :
9647  $as_echo_n "(cached) " >&6
9648else
9649  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9650fi
9651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9652$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9653lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9654
9655#
9656# Check to make sure the PIC flag actually works.
9657#
9658if test -n "$lt_prog_compiler_pic"; then
9659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9660$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9661if ${lt_cv_prog_compiler_pic_works+:} false; then :
9662  $as_echo_n "(cached) " >&6
9663else
9664  lt_cv_prog_compiler_pic_works=no
9665   ac_outfile=conftest.$ac_objext
9666   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9667   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9668   # Insert the option either (1) after the last *FLAGS variable, or
9669   # (2) before a word containing "conftest.", or (3) at the end.
9670   # Note that $ac_compile itself does not contain backslashes and begins
9671   # with a dollar sign (not a hyphen), so the echo should work correctly.
9672   # The option is referenced via a variable to avoid confusing sed.
9673   lt_compile=`echo "$ac_compile" | $SED \
9674   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9675   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9676   -e 's:$: $lt_compiler_flag:'`
9677   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9678   (eval "$lt_compile" 2>conftest.err)
9679   ac_status=$?
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   if (exit $ac_status) && test -s "$ac_outfile"; then
9683     # The compiler can only warn and ignore the option if not recognized
9684     # So say no if there are warnings other than the usual output.
9685     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9686     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9687     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9688       lt_cv_prog_compiler_pic_works=yes
9689     fi
9690   fi
9691   $RM conftest*
9692
9693fi
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9695$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9696
9697if test yes = "$lt_cv_prog_compiler_pic_works"; then
9698    case $lt_prog_compiler_pic in
9699     "" | " "*) ;;
9700     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9701     esac
9702else
9703    lt_prog_compiler_pic=
9704     lt_prog_compiler_can_build_shared=no
9705fi
9706
9707fi
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719#
9720# Check to make sure the static flag actually works.
9721#
9722wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9724$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9725if ${lt_cv_prog_compiler_static_works+:} false; then :
9726  $as_echo_n "(cached) " >&6
9727else
9728  lt_cv_prog_compiler_static_works=no
9729   save_LDFLAGS=$LDFLAGS
9730   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9731   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9732   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9733     # The linker can only warn and ignore the option if not recognized
9734     # So say no if there are warnings
9735     if test -s conftest.err; then
9736       # Append any errors to the config.log.
9737       cat conftest.err 1>&5
9738       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9739       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9740       if diff conftest.exp conftest.er2 >/dev/null; then
9741         lt_cv_prog_compiler_static_works=yes
9742       fi
9743     else
9744       lt_cv_prog_compiler_static_works=yes
9745     fi
9746   fi
9747   $RM -r conftest*
9748   LDFLAGS=$save_LDFLAGS
9749
9750fi
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9752$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9753
9754if test yes = "$lt_cv_prog_compiler_static_works"; then
9755    :
9756else
9757    lt_prog_compiler_static=
9758fi
9759
9760
9761
9762
9763
9764
9765
9766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9767$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9768if ${lt_cv_prog_compiler_c_o+:} false; then :
9769  $as_echo_n "(cached) " >&6
9770else
9771  lt_cv_prog_compiler_c_o=no
9772   $RM -r conftest 2>/dev/null
9773   mkdir conftest
9774   cd conftest
9775   mkdir out
9776   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9777
9778   lt_compiler_flag="-o out/conftest2.$ac_objext"
9779   # Insert the option either (1) after the last *FLAGS variable, or
9780   # (2) before a word containing "conftest.", or (3) at the end.
9781   # Note that $ac_compile itself does not contain backslashes and begins
9782   # with a dollar sign (not a hyphen), so the echo should work correctly.
9783   lt_compile=`echo "$ac_compile" | $SED \
9784   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9785   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9786   -e 's:$: $lt_compiler_flag:'`
9787   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9788   (eval "$lt_compile" 2>out/conftest.err)
9789   ac_status=$?
9790   cat out/conftest.err >&5
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9793   then
9794     # The compiler can only warn and ignore the option if not recognized
9795     # So say no if there are warnings
9796     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9797     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9798     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9799       lt_cv_prog_compiler_c_o=yes
9800     fi
9801   fi
9802   chmod u+w . 2>&5
9803   $RM conftest*
9804   # SGI C++ compiler will create directory out/ii_files/ for
9805   # template instantiation
9806   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9807   $RM out/* && rmdir out
9808   cd ..
9809   $RM -r conftest
9810   $RM conftest*
9811
9812fi
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9814$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9815
9816
9817
9818
9819
9820
9821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9822$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9823if ${lt_cv_prog_compiler_c_o+:} false; then :
9824  $as_echo_n "(cached) " >&6
9825else
9826  lt_cv_prog_compiler_c_o=no
9827   $RM -r conftest 2>/dev/null
9828   mkdir conftest
9829   cd conftest
9830   mkdir out
9831   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9832
9833   lt_compiler_flag="-o out/conftest2.$ac_objext"
9834   # Insert the option either (1) after the last *FLAGS variable, or
9835   # (2) before a word containing "conftest.", or (3) at the end.
9836   # Note that $ac_compile itself does not contain backslashes and begins
9837   # with a dollar sign (not a hyphen), so the echo should work correctly.
9838   lt_compile=`echo "$ac_compile" | $SED \
9839   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9840   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9841   -e 's:$: $lt_compiler_flag:'`
9842   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9843   (eval "$lt_compile" 2>out/conftest.err)
9844   ac_status=$?
9845   cat out/conftest.err >&5
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9848   then
9849     # The compiler can only warn and ignore the option if not recognized
9850     # So say no if there are warnings
9851     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9852     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9853     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9854       lt_cv_prog_compiler_c_o=yes
9855     fi
9856   fi
9857   chmod u+w . 2>&5
9858   $RM conftest*
9859   # SGI C++ compiler will create directory out/ii_files/ for
9860   # template instantiation
9861   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9862   $RM out/* && rmdir out
9863   cd ..
9864   $RM -r conftest
9865   $RM conftest*
9866
9867fi
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9869$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9870
9871
9872
9873
9874hard_links=nottested
9875if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9876  # do not overwrite the value of need_locks provided by the user
9877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9878$as_echo_n "checking if we can lock with hard links... " >&6; }
9879  hard_links=yes
9880  $RM conftest*
9881  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9882  touch conftest.a
9883  ln conftest.a conftest.b 2>&5 || hard_links=no
9884  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9886$as_echo "$hard_links" >&6; }
9887  if test no = "$hard_links"; then
9888    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9889$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9890    need_locks=warn
9891  fi
9892else
9893  need_locks=no
9894fi
9895
9896
9897
9898
9899
9900
9901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9902$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9903
9904  runpath_var=
9905  allow_undefined_flag=
9906  always_export_symbols=no
9907  archive_cmds=
9908  archive_expsym_cmds=
9909  compiler_needs_object=no
9910  enable_shared_with_static_runtimes=no
9911  export_dynamic_flag_spec=
9912  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9913  hardcode_automatic=no
9914  hardcode_direct=no
9915  hardcode_direct_absolute=no
9916  hardcode_libdir_flag_spec=
9917  hardcode_libdir_separator=
9918  hardcode_minus_L=no
9919  hardcode_shlibpath_var=unsupported
9920  inherit_rpath=no
9921  link_all_deplibs=unknown
9922  module_cmds=
9923  module_expsym_cmds=
9924  old_archive_from_new_cmds=
9925  old_archive_from_expsyms_cmds=
9926  thread_safe_flag_spec=
9927  whole_archive_flag_spec=
9928  # include_expsyms should be a list of space-separated symbols to be *always*
9929  # included in the symbol list
9930  include_expsyms=
9931  # exclude_expsyms can be an extended regexp of symbols to exclude
9932  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9933  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9934  # as well as any symbol that contains 'd'.
9935  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9936  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9937  # platforms (ab)use it in PIC code, but their linkers get confused if
9938  # the symbol is explicitly referenced.  Since portable code cannot
9939  # rely on this symbol name, it's probably fine to never include it in
9940  # preloaded symbol tables.
9941  # Exclude shared library initialization/finalization symbols.
9942  extract_expsyms_cmds=
9943
9944  case $host_os in
9945  cygwin* | mingw* | pw32* | cegcc*)
9946    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9947    # When not using gcc, we currently assume that we are using
9948    # Microsoft Visual C++.
9949    if test yes != "$GCC"; then
9950      with_gnu_ld=no
9951    fi
9952    ;;
9953  interix*)
9954    # we just hope/assume this is gcc and not c89 (= MSVC++)
9955    with_gnu_ld=yes
9956    ;;
9957  openbsd* | bitrig*)
9958    with_gnu_ld=no
9959    ;;
9960  esac
9961
9962  ld_shlibs=yes
9963
9964  # On some targets, GNU ld is compatible enough with the native linker
9965  # that we're better off using the native interface for both.
9966  lt_use_gnu_ld_interface=no
9967  if test yes = "$with_gnu_ld"; then
9968    case $host_os in
9969      aix*)
9970	# The AIX port of GNU ld has always aspired to compatibility
9971	# with the native linker.  However, as the warning in the GNU ld
9972	# block says, versions before 2.19.5* couldn't really create working
9973	# shared libraries, regardless of the interface used.
9974	case `$LD -v 2>&1` in
9975	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9976	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9977	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9978	  *)
9979	    lt_use_gnu_ld_interface=yes
9980	    ;;
9981	esac
9982	;;
9983      *)
9984	lt_use_gnu_ld_interface=yes
9985	;;
9986    esac
9987  fi
9988
9989  if test yes = "$lt_use_gnu_ld_interface"; then
9990    # If archive_cmds runs LD, not CC, wlarc should be empty
9991    wlarc='$wl'
9992
9993    # Set some defaults for GNU ld with shared library support. These
9994    # are reset later if shared libraries are not supported. Putting them
9995    # here allows them to be overridden if necessary.
9996    runpath_var=LD_RUN_PATH
9997    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9998    export_dynamic_flag_spec='$wl--export-dynamic'
9999    # ancient GNU ld didn't support --whole-archive et. al.
10000    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10001      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10002    else
10003      whole_archive_flag_spec=
10004    fi
10005    supports_anon_versioning=no
10006    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10007      *GNU\ gold*) supports_anon_versioning=yes ;;
10008      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10009      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10010      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10011      *\ 2.11.*) ;; # other 2.11 versions
10012      *) supports_anon_versioning=yes ;;
10013    esac
10014
10015    # See if GNU ld supports shared libraries.
10016    case $host_os in
10017    aix[3-9]*)
10018      # On AIX/PPC, the GNU linker is very broken
10019      if test ia64 != "$host_cpu"; then
10020	ld_shlibs=no
10021	cat <<_LT_EOF 1>&2
10022
10023*** Warning: the GNU linker, at least up to release 2.19, is reported
10024*** to be unable to reliably create shared libraries on AIX.
10025*** Therefore, libtool is disabling shared libraries support.  If you
10026*** really care for shared libraries, you may want to install binutils
10027*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10028*** You will then need to restart the configuration process.
10029
10030_LT_EOF
10031      fi
10032      ;;
10033
10034    amigaos*)
10035      case $host_cpu in
10036      powerpc)
10037            # see comment about AmigaOS4 .so support
10038            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10039            archive_expsym_cmds=''
10040        ;;
10041      m68k)
10042            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)'
10043            hardcode_libdir_flag_spec='-L$libdir'
10044            hardcode_minus_L=yes
10045        ;;
10046      esac
10047      ;;
10048
10049    beos*)
10050      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10051	allow_undefined_flag=unsupported
10052	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10053	# support --undefined.  This deserves some investigation.  FIXME
10054	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10055      else
10056	ld_shlibs=no
10057      fi
10058      ;;
10059
10060    cygwin* | mingw* | pw32* | cegcc*)
10061      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10062      # as there is no search path for DLLs.
10063      hardcode_libdir_flag_spec='-L$libdir'
10064      export_dynamic_flag_spec='$wl--export-all-symbols'
10065      allow_undefined_flag=unsupported
10066      always_export_symbols=no
10067      enable_shared_with_static_runtimes=yes
10068      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'
10069      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10070
10071      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10072        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10073	# If the export-symbols file already is a .def file, use it as
10074	# is; otherwise, prepend EXPORTS...
10075	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10076          cp $export_symbols $output_objdir/$soname.def;
10077        else
10078          echo EXPORTS > $output_objdir/$soname.def;
10079          cat $export_symbols >> $output_objdir/$soname.def;
10080        fi~
10081        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10082      else
10083	ld_shlibs=no
10084      fi
10085      ;;
10086
10087    haiku*)
10088      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10089      link_all_deplibs=yes
10090      ;;
10091
10092    os2*)
10093      hardcode_libdir_flag_spec='-L$libdir'
10094      hardcode_minus_L=yes
10095      allow_undefined_flag=unsupported
10096      shrext_cmds=.dll
10097      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10098	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10099	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10100	$ECHO EXPORTS >> $output_objdir/$libname.def~
10101	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10102	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10103	emximp -o $lib $output_objdir/$libname.def'
10104      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10105	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10106	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10107	$ECHO EXPORTS >> $output_objdir/$libname.def~
10108	prefix_cmds="$SED"~
10109	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10110	  prefix_cmds="$prefix_cmds -e 1d";
10111	fi~
10112	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10113	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10114	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10115	emximp -o $lib $output_objdir/$libname.def'
10116      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10117      enable_shared_with_static_runtimes=yes
10118      ;;
10119
10120    interix[3-9]*)
10121      hardcode_direct=no
10122      hardcode_shlibpath_var=no
10123      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10124      export_dynamic_flag_spec='$wl-E'
10125      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10126      # Instead, shared libraries are loaded at an image base (0x10000000 by
10127      # default) and relocated if they conflict, which is a slow very memory
10128      # consuming and fragmenting process.  To avoid this, we pick a random,
10129      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10130      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10131      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10132      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'
10133      ;;
10134
10135    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10136      tmp_diet=no
10137      if test linux-dietlibc = "$host_os"; then
10138	case $cc_basename in
10139	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10140	esac
10141      fi
10142      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10143	 && test no = "$tmp_diet"
10144      then
10145	tmp_addflag=' $pic_flag'
10146	tmp_sharedflag='-shared'
10147	case $cc_basename,$host_cpu in
10148        pgcc*)				# Portland Group C compiler
10149	  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'
10150	  tmp_addflag=' $pic_flag'
10151	  ;;
10152	pgf77* | pgf90* | pgf95* | pgfortran*)
10153					# Portland Group f77 and f90 compilers
10154	  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'
10155	  tmp_addflag=' $pic_flag -Mnomain' ;;
10156	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10157	  tmp_addflag=' -i_dynamic' ;;
10158	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10159	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10160	ifc* | ifort*)			# Intel Fortran compiler
10161	  tmp_addflag=' -nofor_main' ;;
10162	lf95*)				# Lahey Fortran 8.1
10163	  whole_archive_flag_spec=
10164	  tmp_sharedflag='--shared' ;;
10165        nagfor*)                        # NAGFOR 5.3
10166          tmp_sharedflag='-Wl,-shared' ;;
10167	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10168	  tmp_sharedflag='-qmkshrobj'
10169	  tmp_addflag= ;;
10170	nvcc*)	# Cuda Compiler Driver 2.2
10171	  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'
10172	  compiler_needs_object=yes
10173	  ;;
10174	esac
10175	case `$CC -V 2>&1 | sed 5q` in
10176	*Sun\ C*)			# Sun C 5.9
10177	  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'
10178	  compiler_needs_object=yes
10179	  tmp_sharedflag='-G' ;;
10180	*Sun\ F*)			# Sun Fortran 8.3
10181	  tmp_sharedflag='-G' ;;
10182	esac
10183	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10184
10185        if test yes = "$supports_anon_versioning"; then
10186          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10187            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10188            echo "local: *; };" >> $output_objdir/$libname.ver~
10189            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10190        fi
10191
10192	case $cc_basename in
10193	tcc*)
10194	  export_dynamic_flag_spec='-rdynamic'
10195	  ;;
10196	xlf* | bgf* | bgxlf* | mpixlf*)
10197	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10198	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10199	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10200	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10201	  if test yes = "$supports_anon_versioning"; then
10202	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10203              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10204              echo "local: *; };" >> $output_objdir/$libname.ver~
10205              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10206	  fi
10207	  ;;
10208	esac
10209      else
10210        ld_shlibs=no
10211      fi
10212      ;;
10213
10214    netbsd*)
10215      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10216	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10217	wlarc=
10218      else
10219	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10220	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10221      fi
10222      ;;
10223
10224    solaris*)
10225      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10226	ld_shlibs=no
10227	cat <<_LT_EOF 1>&2
10228
10229*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10230*** create shared libraries on Solaris systems.  Therefore, libtool
10231*** is disabling shared libraries support.  We urge you to upgrade GNU
10232*** binutils to release 2.9.1 or newer.  Another option is to modify
10233*** your PATH or compiler configuration so that the native linker is
10234*** used, and then restart.
10235
10236_LT_EOF
10237      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10238	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10239	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10240      else
10241	ld_shlibs=no
10242      fi
10243      ;;
10244
10245    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10246      case `$LD -v 2>&1` in
10247        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10248	ld_shlibs=no
10249	cat <<_LT_EOF 1>&2
10250
10251*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10252*** reliably create shared libraries on SCO systems.  Therefore, libtool
10253*** is disabling shared libraries support.  We urge you to upgrade GNU
10254*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10255*** your PATH or compiler configuration so that the native linker is
10256*** used, and then restart.
10257
10258_LT_EOF
10259	;;
10260	*)
10261	  # For security reasons, it is highly recommended that you always
10262	  # use absolute paths for naming shared libraries, and exclude the
10263	  # DT_RUNPATH tag from executables and libraries.  But doing so
10264	  # requires that you compile everything twice, which is a pain.
10265	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10266	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10267	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10268	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10269	  else
10270	    ld_shlibs=no
10271	  fi
10272	;;
10273      esac
10274      ;;
10275
10276    sunos4*)
10277      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10278      wlarc=
10279      hardcode_direct=yes
10280      hardcode_shlibpath_var=no
10281      ;;
10282
10283    *)
10284      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10286	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10287      else
10288	ld_shlibs=no
10289      fi
10290      ;;
10291    esac
10292
10293    if test no = "$ld_shlibs"; then
10294      runpath_var=
10295      hardcode_libdir_flag_spec=
10296      export_dynamic_flag_spec=
10297      whole_archive_flag_spec=
10298    fi
10299  else
10300    # PORTME fill in a description of your system's linker (not GNU ld)
10301    case $host_os in
10302    aix3*)
10303      allow_undefined_flag=unsupported
10304      always_export_symbols=yes
10305      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'
10306      # Note: this linker hardcodes the directories in LIBPATH if there
10307      # are no directories specified by -L.
10308      hardcode_minus_L=yes
10309      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10310	# Neither direct hardcoding nor static linking is supported with a
10311	# broken collect2.
10312	hardcode_direct=unsupported
10313      fi
10314      ;;
10315
10316    aix[4-9]*)
10317      if test ia64 = "$host_cpu"; then
10318	# On IA64, the linker does run time linking by default, so we don't
10319	# have to do anything special.
10320	aix_use_runtimelinking=no
10321	exp_sym_flag='-Bexport'
10322	no_entry_flag=
10323      else
10324	# If we're using GNU nm, then we don't want the "-C" option.
10325	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10326	# Without the "-l" option, or with the "-B" option, AIX nm treats
10327	# weak defined symbols like other global defined symbols, whereas
10328	# GNU nm marks them as "W".
10329	# While the 'weak' keyword is ignored in the Export File, we need
10330	# it in the Import File for the 'aix-soname' feature, so we have
10331	# to replace the "-B" option with "-P" for AIX nm.
10332	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10333	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10334	else
10335	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10336	fi
10337	aix_use_runtimelinking=no
10338
10339	# Test if we are trying to use run time linking or normal
10340	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10341	# have runtime linking enabled, and use it for executables.
10342	# For shared libraries, we enable/disable runtime linking
10343	# depending on the kind of the shared library created -
10344	# when "with_aix_soname,aix_use_runtimelinking" is:
10345	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10346	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10347	#            lib.a           static archive
10348	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10349	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10350	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10351	#            lib.a(lib.so.V) shared, rtl:no
10352	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10353	#            lib.a           static archive
10354	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10355	  for ld_flag in $LDFLAGS; do
10356	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10357	    aix_use_runtimelinking=yes
10358	    break
10359	  fi
10360	  done
10361	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10362	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10363	    # so we don't have lib.a shared libs to link our executables.
10364	    # We have to force runtime linking in this case.
10365	    aix_use_runtimelinking=yes
10366	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10367	  fi
10368	  ;;
10369	esac
10370
10371	exp_sym_flag='-bexport'
10372	no_entry_flag='-bnoentry'
10373      fi
10374
10375      # When large executables or shared objects are built, AIX ld can
10376      # have problems creating the table of contents.  If linking a library
10377      # or program results in "error TOC overflow" add -mminimal-toc to
10378      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10379      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10380
10381      archive_cmds=''
10382      hardcode_direct=yes
10383      hardcode_direct_absolute=yes
10384      hardcode_libdir_separator=':'
10385      link_all_deplibs=yes
10386      file_list_spec='$wl-f,'
10387      case $with_aix_soname,$aix_use_runtimelinking in
10388      aix,*) ;; # traditional, no import file
10389      svr4,* | *,yes) # use import file
10390	# The Import File defines what to hardcode.
10391	hardcode_direct=no
10392	hardcode_direct_absolute=no
10393	;;
10394      esac
10395
10396      if test yes = "$GCC"; then
10397	case $host_os in aix4.[012]|aix4.[012].*)
10398	# We only want to do this on AIX 4.2 and lower, the check
10399	# below for broken collect2 doesn't work under 4.3+
10400	  collect2name=`$CC -print-prog-name=collect2`
10401	  if test -f "$collect2name" &&
10402	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10403	  then
10404	  # We have reworked collect2
10405	  :
10406	  else
10407	  # We have old collect2
10408	  hardcode_direct=unsupported
10409	  # It fails to find uninstalled libraries when the uninstalled
10410	  # path is not listed in the libpath.  Setting hardcode_minus_L
10411	  # to unsupported forces relinking
10412	  hardcode_minus_L=yes
10413	  hardcode_libdir_flag_spec='-L$libdir'
10414	  hardcode_libdir_separator=
10415	  fi
10416	  ;;
10417	esac
10418	shared_flag='-shared'
10419	if test yes = "$aix_use_runtimelinking"; then
10420	  shared_flag="$shared_flag "'$wl-G'
10421	fi
10422	# Need to ensure runtime linking is disabled for the traditional
10423	# shared library, or the linker may eventually find shared libraries
10424	# /with/ Import File - we do not want to mix them.
10425	shared_flag_aix='-shared'
10426	shared_flag_svr4='-shared $wl-G'
10427      else
10428	# not using gcc
10429	if test ia64 = "$host_cpu"; then
10430	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10431	# chokes on -Wl,-G. The following line is correct:
10432	  shared_flag='-G'
10433	else
10434	  if test yes = "$aix_use_runtimelinking"; then
10435	    shared_flag='$wl-G'
10436	  else
10437	    shared_flag='$wl-bM:SRE'
10438	  fi
10439	  shared_flag_aix='$wl-bM:SRE'
10440	  shared_flag_svr4='$wl-G'
10441	fi
10442      fi
10443
10444      export_dynamic_flag_spec='$wl-bexpall'
10445      # It seems that -bexpall does not export symbols beginning with
10446      # underscore (_), so it is better to generate a list of symbols to export.
10447      always_export_symbols=yes
10448      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10449	# Warning - without using the other runtime loading flags (-brtl),
10450	# -berok will link without error, but may produce a broken library.
10451	allow_undefined_flag='-berok'
10452        # Determine the default libpath from the value encoded in an
10453        # empty executable.
10454        if test set = "${lt_cv_aix_libpath+set}"; then
10455  aix_libpath=$lt_cv_aix_libpath
10456else
10457  if ${lt_cv_aix_libpath_+:} false; then :
10458  $as_echo_n "(cached) " >&6
10459else
10460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461/* end confdefs.h.  */
10462
10463int
10464main ()
10465{
10466
10467  ;
10468  return 0;
10469}
10470_ACEOF
10471if ac_fn_c_try_link "$LINENO"; then :
10472
10473  lt_aix_libpath_sed='
10474      /Import File Strings/,/^$/ {
10475	  /^0/ {
10476	      s/^0  *\([^ ]*\) *$/\1/
10477	      p
10478	  }
10479      }'
10480  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481  # Check for a 64-bit object if we didn't find anything.
10482  if test -z "$lt_cv_aix_libpath_"; then
10483    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10484  fi
10485fi
10486rm -f core conftest.err conftest.$ac_objext \
10487    conftest$ac_exeext conftest.$ac_ext
10488  if test -z "$lt_cv_aix_libpath_"; then
10489    lt_cv_aix_libpath_=/usr/lib:/lib
10490  fi
10491
10492fi
10493
10494  aix_libpath=$lt_cv_aix_libpath_
10495fi
10496
10497        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10498        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10499      else
10500	if test ia64 = "$host_cpu"; then
10501	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10502	  allow_undefined_flag="-z nodefs"
10503	  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"
10504	else
10505	 # Determine the default libpath from the value encoded in an
10506	 # empty executable.
10507	 if test set = "${lt_cv_aix_libpath+set}"; then
10508  aix_libpath=$lt_cv_aix_libpath
10509else
10510  if ${lt_cv_aix_libpath_+:} false; then :
10511  $as_echo_n "(cached) " >&6
10512else
10513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h.  */
10515
10516int
10517main ()
10518{
10519
10520  ;
10521  return 0;
10522}
10523_ACEOF
10524if ac_fn_c_try_link "$LINENO"; then :
10525
10526  lt_aix_libpath_sed='
10527      /Import File Strings/,/^$/ {
10528	  /^0/ {
10529	      s/^0  *\([^ ]*\) *$/\1/
10530	      p
10531	  }
10532      }'
10533  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10534  # Check for a 64-bit object if we didn't find anything.
10535  if test -z "$lt_cv_aix_libpath_"; then
10536    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10537  fi
10538fi
10539rm -f core conftest.err conftest.$ac_objext \
10540    conftest$ac_exeext conftest.$ac_ext
10541  if test -z "$lt_cv_aix_libpath_"; then
10542    lt_cv_aix_libpath_=/usr/lib:/lib
10543  fi
10544
10545fi
10546
10547  aix_libpath=$lt_cv_aix_libpath_
10548fi
10549
10550	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10551	  # Warning - without using the other run time loading flags,
10552	  # -berok will link without error, but may produce a broken library.
10553	  no_undefined_flag=' $wl-bernotok'
10554	  allow_undefined_flag=' $wl-berok'
10555	  if test yes = "$with_gnu_ld"; then
10556	    # We only use this code for GNU lds that support --whole-archive.
10557	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10558	  else
10559	    # Exported symbols can be pulled into shared objects from archives
10560	    whole_archive_flag_spec='$convenience'
10561	  fi
10562	  archive_cmds_need_lc=yes
10563	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10564	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10565	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10566	  if test svr4 != "$with_aix_soname"; then
10567	    # This is similar to how AIX traditionally builds its shared libraries.
10568	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10569	  fi
10570	  if test aix != "$with_aix_soname"; then
10571	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10572	  else
10573	    # used by -dlpreopen to get the symbols
10574	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10575	  fi
10576	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10577	fi
10578      fi
10579      ;;
10580
10581    amigaos*)
10582      case $host_cpu in
10583      powerpc)
10584            # see comment about AmigaOS4 .so support
10585            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10586            archive_expsym_cmds=''
10587        ;;
10588      m68k)
10589            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)'
10590            hardcode_libdir_flag_spec='-L$libdir'
10591            hardcode_minus_L=yes
10592        ;;
10593      esac
10594      ;;
10595
10596    bsdi[45]*)
10597      export_dynamic_flag_spec=-rdynamic
10598      ;;
10599
10600    cygwin* | mingw* | pw32* | cegcc*)
10601      # When not using gcc, we currently assume that we are using
10602      # Microsoft Visual C++.
10603      # hardcode_libdir_flag_spec is actually meaningless, as there is
10604      # no search path for DLLs.
10605      case $cc_basename in
10606      cl*)
10607	# Native MSVC
10608	hardcode_libdir_flag_spec=' '
10609	allow_undefined_flag=unsupported
10610	always_export_symbols=yes
10611	file_list_spec='@'
10612	# Tell ltmain to make .lib files, not .a files.
10613	libext=lib
10614	# Tell ltmain to make .dll files, not .so files.
10615	shrext_cmds=.dll
10616	# FIXME: Setting linknames here is a bad hack.
10617	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10618	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10619            cp "$export_symbols" "$output_objdir/$soname.def";
10620            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10621          else
10622            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10623          fi~
10624          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10625          linknames='
10626	# The linker will not automatically build a static lib if we build a DLL.
10627	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10628	enable_shared_with_static_runtimes=yes
10629	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10630	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10631	# Don't use ranlib
10632	old_postinstall_cmds='chmod 644 $oldlib'
10633	postlink_cmds='lt_outputfile="@OUTPUT@"~
10634          lt_tool_outputfile="@TOOL_OUTPUT@"~
10635          case $lt_outputfile in
10636            *.exe|*.EXE) ;;
10637            *)
10638              lt_outputfile=$lt_outputfile.exe
10639              lt_tool_outputfile=$lt_tool_outputfile.exe
10640              ;;
10641          esac~
10642          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10643            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10644            $RM "$lt_outputfile.manifest";
10645          fi'
10646	;;
10647      *)
10648	# Assume MSVC wrapper
10649	hardcode_libdir_flag_spec=' '
10650	allow_undefined_flag=unsupported
10651	# Tell ltmain to make .lib files, not .a files.
10652	libext=lib
10653	# Tell ltmain to make .dll files, not .so files.
10654	shrext_cmds=.dll
10655	# FIXME: Setting linknames here is a bad hack.
10656	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10657	# The linker will automatically build a .lib file if we build a DLL.
10658	old_archive_from_new_cmds='true'
10659	# FIXME: Should let the user specify the lib program.
10660	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10661	enable_shared_with_static_runtimes=yes
10662	;;
10663      esac
10664      ;;
10665
10666    darwin* | rhapsody*)
10667
10668
10669  archive_cmds_need_lc=no
10670  hardcode_direct=no
10671  hardcode_automatic=yes
10672  hardcode_shlibpath_var=unsupported
10673  if test yes = "$lt_cv_ld_force_load"; then
10674    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\"`'
10675
10676  else
10677    whole_archive_flag_spec=''
10678  fi
10679  link_all_deplibs=yes
10680  allow_undefined_flag=$_lt_dar_allow_undefined
10681  case $cc_basename in
10682     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10683     *) _lt_dar_can_shared=$GCC ;;
10684  esac
10685  if test yes = "$_lt_dar_can_shared"; then
10686    output_verbose_link_cmd=func_echo_all
10687    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10688    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10689    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"
10690    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"
10691
10692  else
10693  ld_shlibs=no
10694  fi
10695
10696      ;;
10697
10698    dgux*)
10699      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700      hardcode_libdir_flag_spec='-L$libdir'
10701      hardcode_shlibpath_var=no
10702      ;;
10703
10704    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10705    # support.  Future versions do this automatically, but an explicit c++rt0.o
10706    # does not break anything, and helps significantly (at the cost of a little
10707    # extra space).
10708    freebsd2.2*)
10709      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10710      hardcode_libdir_flag_spec='-R$libdir'
10711      hardcode_direct=yes
10712      hardcode_shlibpath_var=no
10713      ;;
10714
10715    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10716    freebsd2.*)
10717      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10718      hardcode_direct=yes
10719      hardcode_minus_L=yes
10720      hardcode_shlibpath_var=no
10721      ;;
10722
10723    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10724    freebsd* | dragonfly*)
10725      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10726      hardcode_libdir_flag_spec='-R$libdir'
10727      hardcode_direct=yes
10728      hardcode_shlibpath_var=no
10729      ;;
10730
10731    hpux9*)
10732      if test yes = "$GCC"; then
10733	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10734      else
10735	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10736      fi
10737      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10738      hardcode_libdir_separator=:
10739      hardcode_direct=yes
10740
10741      # hardcode_minus_L: Not really in the search PATH,
10742      # but as the default location of the library.
10743      hardcode_minus_L=yes
10744      export_dynamic_flag_spec='$wl-E'
10745      ;;
10746
10747    hpux10*)
10748      if test yes,no = "$GCC,$with_gnu_ld"; then
10749	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10750      else
10751	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10752      fi
10753      if test no = "$with_gnu_ld"; then
10754	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10755	hardcode_libdir_separator=:
10756	hardcode_direct=yes
10757	hardcode_direct_absolute=yes
10758	export_dynamic_flag_spec='$wl-E'
10759	# hardcode_minus_L: Not really in the search PATH,
10760	# but as the default location of the library.
10761	hardcode_minus_L=yes
10762      fi
10763      ;;
10764
10765    hpux11*)
10766      if test yes,no = "$GCC,$with_gnu_ld"; then
10767	case $host_cpu in
10768	hppa*64*)
10769	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10770	  ;;
10771	ia64*)
10772	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10773	  ;;
10774	*)
10775	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10776	  ;;
10777	esac
10778      else
10779	case $host_cpu in
10780	hppa*64*)
10781	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10782	  ;;
10783	ia64*)
10784	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10785	  ;;
10786	*)
10787
10788	  # Older versions of the 11.00 compiler do not understand -b yet
10789	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10790	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10791$as_echo_n "checking if $CC understands -b... " >&6; }
10792if ${lt_cv_prog_compiler__b+:} false; then :
10793  $as_echo_n "(cached) " >&6
10794else
10795  lt_cv_prog_compiler__b=no
10796   save_LDFLAGS=$LDFLAGS
10797   LDFLAGS="$LDFLAGS -b"
10798   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10799   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10800     # The linker can only warn and ignore the option if not recognized
10801     # So say no if there are warnings
10802     if test -s conftest.err; then
10803       # Append any errors to the config.log.
10804       cat conftest.err 1>&5
10805       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10806       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10807       if diff conftest.exp conftest.er2 >/dev/null; then
10808         lt_cv_prog_compiler__b=yes
10809       fi
10810     else
10811       lt_cv_prog_compiler__b=yes
10812     fi
10813   fi
10814   $RM -r conftest*
10815   LDFLAGS=$save_LDFLAGS
10816
10817fi
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10819$as_echo "$lt_cv_prog_compiler__b" >&6; }
10820
10821if test yes = "$lt_cv_prog_compiler__b"; then
10822    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10823else
10824    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10825fi
10826
10827	  ;;
10828	esac
10829      fi
10830      if test no = "$with_gnu_ld"; then
10831	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10832	hardcode_libdir_separator=:
10833
10834	case $host_cpu in
10835	hppa*64*|ia64*)
10836	  hardcode_direct=no
10837	  hardcode_shlibpath_var=no
10838	  ;;
10839	*)
10840	  hardcode_direct=yes
10841	  hardcode_direct_absolute=yes
10842	  export_dynamic_flag_spec='$wl-E'
10843
10844	  # hardcode_minus_L: Not really in the search PATH,
10845	  # but as the default location of the library.
10846	  hardcode_minus_L=yes
10847	  ;;
10848	esac
10849      fi
10850      ;;
10851
10852    irix5* | irix6* | nonstopux*)
10853      if test yes = "$GCC"; then
10854	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'
10855	# Try to use the -exported_symbol ld option, if it does not
10856	# work, assume that -exports_file does not work either and
10857	# implicitly export all symbols.
10858	# This should be the same for all languages, so no per-tag cache variable.
10859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10860$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10861if ${lt_cv_irix_exported_symbol+:} false; then :
10862  $as_echo_n "(cached) " >&6
10863else
10864  save_LDFLAGS=$LDFLAGS
10865	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10866	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867/* end confdefs.h.  */
10868int foo (void) { return 0; }
10869_ACEOF
10870if ac_fn_c_try_link "$LINENO"; then :
10871  lt_cv_irix_exported_symbol=yes
10872else
10873  lt_cv_irix_exported_symbol=no
10874fi
10875rm -f core conftest.err conftest.$ac_objext \
10876    conftest$ac_exeext conftest.$ac_ext
10877           LDFLAGS=$save_LDFLAGS
10878fi
10879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10880$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10881	if test yes = "$lt_cv_irix_exported_symbol"; then
10882          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'
10883	fi
10884      else
10885	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'
10886	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'
10887      fi
10888      archive_cmds_need_lc='no'
10889      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10890      hardcode_libdir_separator=:
10891      inherit_rpath=yes
10892      link_all_deplibs=yes
10893      ;;
10894
10895    linux*)
10896      case $cc_basename in
10897      tcc*)
10898	# Fabrice Bellard et al's Tiny C Compiler
10899	ld_shlibs=yes
10900	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10901	;;
10902      esac
10903      ;;
10904
10905    netbsd*)
10906      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10907	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10908      else
10909	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10910      fi
10911      hardcode_libdir_flag_spec='-R$libdir'
10912      hardcode_direct=yes
10913      hardcode_shlibpath_var=no
10914      ;;
10915
10916    newsos6)
10917      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918      hardcode_direct=yes
10919      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10920      hardcode_libdir_separator=:
10921      hardcode_shlibpath_var=no
10922      ;;
10923
10924    *nto* | *qnx*)
10925      ;;
10926
10927    openbsd* | bitrig*)
10928      if test -f /usr/libexec/ld.so; then
10929	hardcode_direct=yes
10930	hardcode_shlibpath_var=no
10931	hardcode_direct_absolute=yes
10932	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10933	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10934	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10935	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10936	  export_dynamic_flag_spec='$wl-E'
10937	else
10938	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10939	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10940	fi
10941      else
10942	ld_shlibs=no
10943      fi
10944      ;;
10945
10946    os2*)
10947      hardcode_libdir_flag_spec='-L$libdir'
10948      hardcode_minus_L=yes
10949      allow_undefined_flag=unsupported
10950      shrext_cmds=.dll
10951      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10952	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10953	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10954	$ECHO EXPORTS >> $output_objdir/$libname.def~
10955	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10956	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10957	emximp -o $lib $output_objdir/$libname.def'
10958      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10959	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10960	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10961	$ECHO EXPORTS >> $output_objdir/$libname.def~
10962	prefix_cmds="$SED"~
10963	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10964	  prefix_cmds="$prefix_cmds -e 1d";
10965	fi~
10966	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10967	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10968	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10969	emximp -o $lib $output_objdir/$libname.def'
10970      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10971      enable_shared_with_static_runtimes=yes
10972      ;;
10973
10974    osf3*)
10975      if test yes = "$GCC"; then
10976	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10977	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'
10978      else
10979	allow_undefined_flag=' -expect_unresolved \*'
10980	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'
10981      fi
10982      archive_cmds_need_lc='no'
10983      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10984      hardcode_libdir_separator=:
10985      ;;
10986
10987    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10988      if test yes = "$GCC"; then
10989	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10990	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'
10991	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10992      else
10993	allow_undefined_flag=' -expect_unresolved \*'
10994	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'
10995	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~
10996          $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'
10997
10998	# Both c and cxx compiler support -rpath directly
10999	hardcode_libdir_flag_spec='-rpath $libdir'
11000      fi
11001      archive_cmds_need_lc='no'
11002      hardcode_libdir_separator=:
11003      ;;
11004
11005    solaris*)
11006      no_undefined_flag=' -z defs'
11007      if test yes = "$GCC"; then
11008	wlarc='$wl'
11009	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11010	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11011          $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'
11012      else
11013	case `$CC -V 2>&1` in
11014	*"Compilers 5.0"*)
11015	  wlarc=''
11016	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11017	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11018            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11019	  ;;
11020	*)
11021	  wlarc='$wl'
11022	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11023	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11024            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11025	  ;;
11026	esac
11027      fi
11028      hardcode_libdir_flag_spec='-R$libdir'
11029      hardcode_shlibpath_var=no
11030      case $host_os in
11031      solaris2.[0-5] | solaris2.[0-5].*) ;;
11032      *)
11033	# The compiler driver will combine and reorder linker options,
11034	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11035	# but is careful enough not to reorder.
11036	# Supported since Solaris 2.6 (maybe 2.5.1?)
11037	if test yes = "$GCC"; then
11038	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11039	else
11040	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11041	fi
11042	;;
11043      esac
11044      link_all_deplibs=yes
11045      ;;
11046
11047    sunos4*)
11048      if test sequent = "$host_vendor"; then
11049	# Use $CC to link under sequent, because it throws in some extra .o
11050	# files that make .init and .fini sections work.
11051	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11052      else
11053	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11054      fi
11055      hardcode_libdir_flag_spec='-L$libdir'
11056      hardcode_direct=yes
11057      hardcode_minus_L=yes
11058      hardcode_shlibpath_var=no
11059      ;;
11060
11061    sysv4)
11062      case $host_vendor in
11063	sni)
11064	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11065	  hardcode_direct=yes # is this really true???
11066	;;
11067	siemens)
11068	  ## LD is ld it makes a PLAMLIB
11069	  ## CC just makes a GrossModule.
11070	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11071	  reload_cmds='$CC -r -o $output$reload_objs'
11072	  hardcode_direct=no
11073        ;;
11074	motorola)
11075	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11076	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11077	;;
11078      esac
11079      runpath_var='LD_RUN_PATH'
11080      hardcode_shlibpath_var=no
11081      ;;
11082
11083    sysv4.3*)
11084      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11085      hardcode_shlibpath_var=no
11086      export_dynamic_flag_spec='-Bexport'
11087      ;;
11088
11089    sysv4*MP*)
11090      if test -d /usr/nec; then
11091	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11092	hardcode_shlibpath_var=no
11093	runpath_var=LD_RUN_PATH
11094	hardcode_runpath_var=yes
11095	ld_shlibs=yes
11096      fi
11097      ;;
11098
11099    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11100      no_undefined_flag='$wl-z,text'
11101      archive_cmds_need_lc=no
11102      hardcode_shlibpath_var=no
11103      runpath_var='LD_RUN_PATH'
11104
11105      if test yes = "$GCC"; then
11106	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11107	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11108      else
11109	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11110	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11111      fi
11112      ;;
11113
11114    sysv5* | sco3.2v5* | sco5v6*)
11115      # Note: We CANNOT use -z defs as we might desire, because we do not
11116      # link with -lc, and that would cause any symbols used from libc to
11117      # always be unresolved, which means just about no library would
11118      # ever link correctly.  If we're not using GNU ld we use -z text
11119      # though, which does catch some bad symbols but isn't as heavy-handed
11120      # as -z defs.
11121      no_undefined_flag='$wl-z,text'
11122      allow_undefined_flag='$wl-z,nodefs'
11123      archive_cmds_need_lc=no
11124      hardcode_shlibpath_var=no
11125      hardcode_libdir_flag_spec='$wl-R,$libdir'
11126      hardcode_libdir_separator=':'
11127      link_all_deplibs=yes
11128      export_dynamic_flag_spec='$wl-Bexport'
11129      runpath_var='LD_RUN_PATH'
11130
11131      if test yes = "$GCC"; then
11132	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11133	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11134      else
11135	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11136	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11137      fi
11138      ;;
11139
11140    uts4*)
11141      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11142      hardcode_libdir_flag_spec='-L$libdir'
11143      hardcode_shlibpath_var=no
11144      ;;
11145
11146    *)
11147      ld_shlibs=no
11148      ;;
11149    esac
11150
11151    if test sni = "$host_vendor"; then
11152      case $host in
11153      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11154	export_dynamic_flag_spec='$wl-Blargedynsym'
11155	;;
11156      esac
11157    fi
11158  fi
11159
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11161$as_echo "$ld_shlibs" >&6; }
11162test no = "$ld_shlibs" && can_build_shared=no
11163
11164with_gnu_ld=$with_gnu_ld
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180#
11181# Do we need to explicitly link libc?
11182#
11183case "x$archive_cmds_need_lc" in
11184x|xyes)
11185  # Assume -lc should be added
11186  archive_cmds_need_lc=yes
11187
11188  if test yes,yes = "$GCC,$enable_shared"; then
11189    case $archive_cmds in
11190    *'~'*)
11191      # FIXME: we may have to deal with multi-command sequences.
11192      ;;
11193    '$CC '*)
11194      # Test whether the compiler implicitly links with -lc since on some
11195      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11196      # to ld, don't add -lc before -lgcc.
11197      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11198$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11199if ${lt_cv_archive_cmds_need_lc+:} false; then :
11200  $as_echo_n "(cached) " >&6
11201else
11202  $RM conftest*
11203	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11204
11205	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11206  (eval $ac_compile) 2>&5
11207  ac_status=$?
11208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11209  test $ac_status = 0; } 2>conftest.err; then
11210	  soname=conftest
11211	  lib=conftest
11212	  libobjs=conftest.$ac_objext
11213	  deplibs=
11214	  wl=$lt_prog_compiler_wl
11215	  pic_flag=$lt_prog_compiler_pic
11216	  compiler_flags=-v
11217	  linker_flags=-v
11218	  verstring=
11219	  output_objdir=.
11220	  libname=conftest
11221	  lt_save_allow_undefined_flag=$allow_undefined_flag
11222	  allow_undefined_flag=
11223	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11224  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11225  ac_status=$?
11226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11227  test $ac_status = 0; }
11228	  then
11229	    lt_cv_archive_cmds_need_lc=no
11230	  else
11231	    lt_cv_archive_cmds_need_lc=yes
11232	  fi
11233	  allow_undefined_flag=$lt_save_allow_undefined_flag
11234	else
11235	  cat conftest.err 1>&5
11236	fi
11237	$RM conftest*
11238
11239fi
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11241$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11242      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11243      ;;
11244    esac
11245  fi
11246  ;;
11247esac
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11401$as_echo_n "checking dynamic linker characteristics... " >&6; }
11402
11403if test yes = "$GCC"; then
11404  case $host_os in
11405    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11406    *) lt_awk_arg='/^libraries:/' ;;
11407  esac
11408  case $host_os in
11409    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11410    *) lt_sed_strip_eq='s|=/|/|g' ;;
11411  esac
11412  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11413  case $lt_search_path_spec in
11414  *\;*)
11415    # if the path contains ";" then we assume it to be the separator
11416    # otherwise default to the standard path separator (i.e. ":") - it is
11417    # assumed that no part of a normal pathname contains ";" but that should
11418    # okay in the real world where ";" in dirpaths is itself problematic.
11419    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11420    ;;
11421  *)
11422    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11423    ;;
11424  esac
11425  # Ok, now we have the path, separated by spaces, we can step through it
11426  # and add multilib dir if necessary...
11427  lt_tmp_lt_search_path_spec=
11428  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11429  # ...but if some path component already ends with the multilib dir we assume
11430  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11431  case "$lt_multi_os_dir; $lt_search_path_spec " in
11432  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11433    lt_multi_os_dir=
11434    ;;
11435  esac
11436  for lt_sys_path in $lt_search_path_spec; do
11437    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11438      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11439    elif test -n "$lt_multi_os_dir"; then
11440      test -d "$lt_sys_path" && \
11441	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11442    fi
11443  done
11444  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11445BEGIN {RS = " "; FS = "/|\n";} {
11446  lt_foo = "";
11447  lt_count = 0;
11448  for (lt_i = NF; lt_i > 0; lt_i--) {
11449    if ($lt_i != "" && $lt_i != ".") {
11450      if ($lt_i == "..") {
11451        lt_count++;
11452      } else {
11453        if (lt_count == 0) {
11454          lt_foo = "/" $lt_i lt_foo;
11455        } else {
11456          lt_count--;
11457        }
11458      }
11459    }
11460  }
11461  if (lt_foo != "") { lt_freq[lt_foo]++; }
11462  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11463}'`
11464  # AWK program above erroneously prepends '/' to C:/dos/paths
11465  # for these hosts.
11466  case $host_os in
11467    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11468      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11469  esac
11470  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11471else
11472  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11473fi
11474library_names_spec=
11475libname_spec='lib$name'
11476soname_spec=
11477shrext_cmds=.so
11478postinstall_cmds=
11479postuninstall_cmds=
11480finish_cmds=
11481finish_eval=
11482shlibpath_var=
11483shlibpath_overrides_runpath=unknown
11484version_type=none
11485dynamic_linker="$host_os ld.so"
11486sys_lib_dlsearch_path_spec="/lib /usr/lib"
11487need_lib_prefix=unknown
11488hardcode_into_libs=no
11489
11490# when you set need_version to no, make sure it does not cause -set_version
11491# flags to be left without arguments
11492need_version=unknown
11493
11494
11495
11496case $host_os in
11497aix3*)
11498  version_type=linux # correct to gnu/linux during the next big refactor
11499  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11500  shlibpath_var=LIBPATH
11501
11502  # AIX 3 has no versioning support, so we append a major version to the name.
11503  soname_spec='$libname$release$shared_ext$major'
11504  ;;
11505
11506aix[4-9]*)
11507  version_type=linux # correct to gnu/linux during the next big refactor
11508  need_lib_prefix=no
11509  need_version=no
11510  hardcode_into_libs=yes
11511  if test ia64 = "$host_cpu"; then
11512    # AIX 5 supports IA64
11513    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11514    shlibpath_var=LD_LIBRARY_PATH
11515  else
11516    # With GCC up to 2.95.x, collect2 would create an import file
11517    # for dependence libraries.  The import file would start with
11518    # the line '#! .'.  This would cause the generated library to
11519    # depend on '.', always an invalid library.  This was fixed in
11520    # development snapshots of GCC prior to 3.0.
11521    case $host_os in
11522      aix4 | aix4.[01] | aix4.[01].*)
11523      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11524	   echo ' yes '
11525	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11526	:
11527      else
11528	can_build_shared=no
11529      fi
11530      ;;
11531    esac
11532    # Using Import Files as archive members, it is possible to support
11533    # filename-based versioning of shared library archives on AIX. While
11534    # this would work for both with and without runtime linking, it will
11535    # prevent static linking of such archives. So we do filename-based
11536    # shared library versioning with .so extension only, which is used
11537    # when both runtime linking and shared linking is enabled.
11538    # Unfortunately, runtime linking may impact performance, so we do
11539    # not want this to be the default eventually. Also, we use the
11540    # versioned .so libs for executables only if there is the -brtl
11541    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11542    # To allow for filename-based versioning support, we need to create
11543    # libNAME.so.V as an archive file, containing:
11544    # *) an Import File, referring to the versioned filename of the
11545    #    archive as well as the shared archive member, telling the
11546    #    bitwidth (32 or 64) of that shared object, and providing the
11547    #    list of exported symbols of that shared object, eventually
11548    #    decorated with the 'weak' keyword
11549    # *) the shared object with the F_LOADONLY flag set, to really avoid
11550    #    it being seen by the linker.
11551    # At run time we better use the real file rather than another symlink,
11552    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11553
11554    case $with_aix_soname,$aix_use_runtimelinking in
11555    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11556    # soname into executable. Probably we can add versioning support to
11557    # collect2, so additional links can be useful in future.
11558    aix,yes) # traditional libtool
11559      dynamic_linker='AIX unversionable lib.so'
11560      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11561      # instead of lib<name>.a to let people know that these are not
11562      # typical AIX shared libraries.
11563      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11564      ;;
11565    aix,no) # traditional AIX only
11566      dynamic_linker='AIX lib.a(lib.so.V)'
11567      # We preserve .a as extension for shared libraries through AIX4.2
11568      # and later when we are not doing run time linking.
11569      library_names_spec='$libname$release.a $libname.a'
11570      soname_spec='$libname$release$shared_ext$major'
11571      ;;
11572    svr4,*) # full svr4 only
11573      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11574      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11575      # We do not specify a path in Import Files, so LIBPATH fires.
11576      shlibpath_overrides_runpath=yes
11577      ;;
11578    *,yes) # both, prefer svr4
11579      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11580      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11581      # unpreferred sharedlib libNAME.a needs extra handling
11582      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11583      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11584      # We do not specify a path in Import Files, so LIBPATH fires.
11585      shlibpath_overrides_runpath=yes
11586      ;;
11587    *,no) # both, prefer aix
11588      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11589      library_names_spec='$libname$release.a $libname.a'
11590      soname_spec='$libname$release$shared_ext$major'
11591      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11592      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11593      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11594      ;;
11595    esac
11596    shlibpath_var=LIBPATH
11597  fi
11598  ;;
11599
11600amigaos*)
11601  case $host_cpu in
11602  powerpc)
11603    # Since July 2007 AmigaOS4 officially supports .so libraries.
11604    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11605    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11606    ;;
11607  m68k)
11608    library_names_spec='$libname.ixlibrary $libname.a'
11609    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11610    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11611    ;;
11612  esac
11613  ;;
11614
11615beos*)
11616  library_names_spec='$libname$shared_ext'
11617  dynamic_linker="$host_os ld.so"
11618  shlibpath_var=LIBRARY_PATH
11619  ;;
11620
11621bsdi[45]*)
11622  version_type=linux # correct to gnu/linux during the next big refactor
11623  need_version=no
11624  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11625  soname_spec='$libname$release$shared_ext$major'
11626  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11627  shlibpath_var=LD_LIBRARY_PATH
11628  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11629  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11630  # the default ld.so.conf also contains /usr/contrib/lib and
11631  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11632  # libtool to hard-code these into programs
11633  ;;
11634
11635cygwin* | mingw* | pw32* | cegcc*)
11636  version_type=windows
11637  shrext_cmds=.dll
11638  need_version=no
11639  need_lib_prefix=no
11640
11641  case $GCC,$cc_basename in
11642  yes,*)
11643    # gcc
11644    library_names_spec='$libname.dll.a'
11645    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11646    postinstall_cmds='base_file=`basename \$file`~
11647      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11648      dldir=$destdir/`dirname \$dlpath`~
11649      test -d \$dldir || mkdir -p \$dldir~
11650      $install_prog $dir/$dlname \$dldir/$dlname~
11651      chmod a+x \$dldir/$dlname~
11652      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11653        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11654      fi'
11655    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11656      dlpath=$dir/\$dldll~
11657       $RM \$dlpath'
11658    shlibpath_overrides_runpath=yes
11659
11660    case $host_os in
11661    cygwin*)
11662      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11663      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11664
11665      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11666      ;;
11667    mingw* | cegcc*)
11668      # MinGW DLLs use traditional 'lib' prefix
11669      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11670      ;;
11671    pw32*)
11672      # pw32 DLLs use 'pw' prefix rather than 'lib'
11673      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11674      ;;
11675    esac
11676    dynamic_linker='Win32 ld.exe'
11677    ;;
11678
11679  *,cl*)
11680    # Native MSVC
11681    libname_spec='$name'
11682    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11683    library_names_spec='$libname.dll.lib'
11684
11685    case $build_os in
11686    mingw*)
11687      sys_lib_search_path_spec=
11688      lt_save_ifs=$IFS
11689      IFS=';'
11690      for lt_path in $LIB
11691      do
11692        IFS=$lt_save_ifs
11693        # Let DOS variable expansion print the short 8.3 style file name.
11694        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11695        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11696      done
11697      IFS=$lt_save_ifs
11698      # Convert to MSYS style.
11699      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11700      ;;
11701    cygwin*)
11702      # Convert to unix form, then to dos form, then back to unix form
11703      # but this time dos style (no spaces!) so that the unix form looks
11704      # like /cygdrive/c/PROGRA~1:/cygdr...
11705      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11706      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11707      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11708      ;;
11709    *)
11710      sys_lib_search_path_spec=$LIB
11711      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11712        # It is most probably a Windows format PATH.
11713        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11714      else
11715        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11716      fi
11717      # FIXME: find the short name or the path components, as spaces are
11718      # common. (e.g. "Program Files" -> "PROGRA~1")
11719      ;;
11720    esac
11721
11722    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11723    postinstall_cmds='base_file=`basename \$file`~
11724      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11725      dldir=$destdir/`dirname \$dlpath`~
11726      test -d \$dldir || mkdir -p \$dldir~
11727      $install_prog $dir/$dlname \$dldir/$dlname'
11728    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11729      dlpath=$dir/\$dldll~
11730       $RM \$dlpath'
11731    shlibpath_overrides_runpath=yes
11732    dynamic_linker='Win32 link.exe'
11733    ;;
11734
11735  *)
11736    # Assume MSVC wrapper
11737    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11738    dynamic_linker='Win32 ld.exe'
11739    ;;
11740  esac
11741  # FIXME: first we should search . and the directory the executable is in
11742  shlibpath_var=PATH
11743  ;;
11744
11745darwin* | rhapsody*)
11746  dynamic_linker="$host_os dyld"
11747  version_type=darwin
11748  need_lib_prefix=no
11749  need_version=no
11750  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11751  soname_spec='$libname$release$major$shared_ext'
11752  shlibpath_overrides_runpath=yes
11753  shlibpath_var=DYLD_LIBRARY_PATH
11754  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11755
11756  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11757  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11758  ;;
11759
11760dgux*)
11761  version_type=linux # correct to gnu/linux during the next big refactor
11762  need_lib_prefix=no
11763  need_version=no
11764  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11765  soname_spec='$libname$release$shared_ext$major'
11766  shlibpath_var=LD_LIBRARY_PATH
11767  ;;
11768
11769freebsd* | dragonfly*)
11770  # DragonFly does not have aout.  When/if they implement a new
11771  # versioning mechanism, adjust this.
11772  if test -x /usr/bin/objformat; then
11773    objformat=`/usr/bin/objformat`
11774  else
11775    case $host_os in
11776    freebsd[23].*) objformat=aout ;;
11777    *) objformat=elf ;;
11778    esac
11779  fi
11780  version_type=freebsd-$objformat
11781  case $version_type in
11782    freebsd-elf*)
11783      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11784      soname_spec='$libname$release$shared_ext$major'
11785      need_version=no
11786      need_lib_prefix=no
11787      ;;
11788    freebsd-*)
11789      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11790      need_version=yes
11791      ;;
11792  esac
11793  shlibpath_var=LD_LIBRARY_PATH
11794  case $host_os in
11795  freebsd2.*)
11796    shlibpath_overrides_runpath=yes
11797    ;;
11798  freebsd3.[01]* | freebsdelf3.[01]*)
11799    shlibpath_overrides_runpath=yes
11800    hardcode_into_libs=yes
11801    ;;
11802  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11803  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11804    shlibpath_overrides_runpath=no
11805    hardcode_into_libs=yes
11806    ;;
11807  *) # from 4.6 on, and DragonFly
11808    shlibpath_overrides_runpath=yes
11809    hardcode_into_libs=yes
11810    ;;
11811  esac
11812  ;;
11813
11814haiku*)
11815  version_type=linux # correct to gnu/linux during the next big refactor
11816  need_lib_prefix=no
11817  need_version=no
11818  dynamic_linker="$host_os runtime_loader"
11819  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11820  soname_spec='$libname$release$shared_ext$major'
11821  shlibpath_var=LIBRARY_PATH
11822  shlibpath_overrides_runpath=no
11823  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11824  hardcode_into_libs=yes
11825  ;;
11826
11827hpux9* | hpux10* | hpux11*)
11828  # Give a soname corresponding to the major version so that dld.sl refuses to
11829  # link against other versions.
11830  version_type=sunos
11831  need_lib_prefix=no
11832  need_version=no
11833  case $host_cpu in
11834  ia64*)
11835    shrext_cmds='.so'
11836    hardcode_into_libs=yes
11837    dynamic_linker="$host_os dld.so"
11838    shlibpath_var=LD_LIBRARY_PATH
11839    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11840    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11841    soname_spec='$libname$release$shared_ext$major'
11842    if test 32 = "$HPUX_IA64_MODE"; then
11843      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11844      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11845    else
11846      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11847      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11848    fi
11849    ;;
11850  hppa*64*)
11851    shrext_cmds='.sl'
11852    hardcode_into_libs=yes
11853    dynamic_linker="$host_os dld.sl"
11854    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11855    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11856    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11857    soname_spec='$libname$release$shared_ext$major'
11858    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11859    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11860    ;;
11861  *)
11862    shrext_cmds='.sl'
11863    dynamic_linker="$host_os dld.sl"
11864    shlibpath_var=SHLIB_PATH
11865    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11866    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11867    soname_spec='$libname$release$shared_ext$major'
11868    ;;
11869  esac
11870  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11871  postinstall_cmds='chmod 555 $lib'
11872  # or fails outright, so override atomically:
11873  install_override_mode=555
11874  ;;
11875
11876interix[3-9]*)
11877  version_type=linux # correct to gnu/linux during the next big refactor
11878  need_lib_prefix=no
11879  need_version=no
11880  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11881  soname_spec='$libname$release$shared_ext$major'
11882  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11883  shlibpath_var=LD_LIBRARY_PATH
11884  shlibpath_overrides_runpath=no
11885  hardcode_into_libs=yes
11886  ;;
11887
11888irix5* | irix6* | nonstopux*)
11889  case $host_os in
11890    nonstopux*) version_type=nonstopux ;;
11891    *)
11892	if test yes = "$lt_cv_prog_gnu_ld"; then
11893		version_type=linux # correct to gnu/linux during the next big refactor
11894	else
11895		version_type=irix
11896	fi ;;
11897  esac
11898  need_lib_prefix=no
11899  need_version=no
11900  soname_spec='$libname$release$shared_ext$major'
11901  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11902  case $host_os in
11903  irix5* | nonstopux*)
11904    libsuff= shlibsuff=
11905    ;;
11906  *)
11907    case $LD in # libtool.m4 will add one of these switches to LD
11908    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11909      libsuff= shlibsuff= libmagic=32-bit;;
11910    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11911      libsuff=32 shlibsuff=N32 libmagic=N32;;
11912    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11913      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11914    *) libsuff= shlibsuff= libmagic=never-match;;
11915    esac
11916    ;;
11917  esac
11918  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11919  shlibpath_overrides_runpath=no
11920  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11921  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11922  hardcode_into_libs=yes
11923  ;;
11924
11925# No shared lib support for Linux oldld, aout, or coff.
11926linux*oldld* | linux*aout* | linux*coff*)
11927  dynamic_linker=no
11928  ;;
11929
11930linux*android*)
11931  version_type=none # Android doesn't support versioned libraries.
11932  need_lib_prefix=no
11933  need_version=no
11934  library_names_spec='$libname$release$shared_ext'
11935  soname_spec='$libname$release$shared_ext'
11936  finish_cmds=
11937  shlibpath_var=LD_LIBRARY_PATH
11938  shlibpath_overrides_runpath=yes
11939
11940  # This implies no fast_install, which is unacceptable.
11941  # Some rework will be needed to allow for fast_install
11942  # before this can be enabled.
11943  hardcode_into_libs=yes
11944
11945  dynamic_linker='Android linker'
11946  # Don't embed -rpath directories since the linker doesn't support them.
11947  hardcode_libdir_flag_spec='-L$libdir'
11948  ;;
11949
11950# This must be glibc/ELF.
11951linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11952  version_type=linux # correct to gnu/linux during the next big refactor
11953  need_lib_prefix=no
11954  need_version=no
11955  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11956  soname_spec='$libname$release$shared_ext$major'
11957  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11958  shlibpath_var=LD_LIBRARY_PATH
11959  shlibpath_overrides_runpath=no
11960
11961  # Some binutils ld are patched to set DT_RUNPATH
11962  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11963  $as_echo_n "(cached) " >&6
11964else
11965  lt_cv_shlibpath_overrides_runpath=no
11966    save_LDFLAGS=$LDFLAGS
11967    save_libdir=$libdir
11968    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11969	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11970    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971/* end confdefs.h.  */
11972
11973int
11974main ()
11975{
11976
11977  ;
11978  return 0;
11979}
11980_ACEOF
11981if ac_fn_c_try_link "$LINENO"; then :
11982  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11983  lt_cv_shlibpath_overrides_runpath=yes
11984fi
11985fi
11986rm -f core conftest.err conftest.$ac_objext \
11987    conftest$ac_exeext conftest.$ac_ext
11988    LDFLAGS=$save_LDFLAGS
11989    libdir=$save_libdir
11990
11991fi
11992
11993  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11994
11995  # This implies no fast_install, which is unacceptable.
11996  # Some rework will be needed to allow for fast_install
11997  # before this can be enabled.
11998  hardcode_into_libs=yes
11999
12000  # Ideally, we could use ldconfig to report *all* directores which are
12001  # searched for libraries, however this is still not possible.  Aside from not
12002  # being certain /sbin/ldconfig is available, command
12003  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12004  # even though it is searched at run-time.  Try to do the best guess by
12005  # appending ld.so.conf contents (and includes) to the search path.
12006  if test -f /etc/ld.so.conf; then
12007    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' ' '`
12008    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12009  fi
12010
12011  # We used to test for /lib/ld.so.1 and disable shared libraries on
12012  # powerpc, because MkLinux only supported shared libraries with the
12013  # GNU dynamic linker.  Since this was broken with cross compilers,
12014  # most powerpc-linux boxes support dynamic linking these days and
12015  # people can always --disable-shared, the test was removed, and we
12016  # assume the GNU/Linux dynamic linker is in use.
12017  dynamic_linker='GNU/Linux ld.so'
12018  ;;
12019
12020netbsd*)
12021  version_type=sunos
12022  need_lib_prefix=no
12023  need_version=no
12024  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12025    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12026    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12027    dynamic_linker='NetBSD (a.out) ld.so'
12028  else
12029    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12030    soname_spec='$libname$release$shared_ext$major'
12031    dynamic_linker='NetBSD ld.elf_so'
12032  fi
12033  shlibpath_var=LD_LIBRARY_PATH
12034  shlibpath_overrides_runpath=yes
12035  hardcode_into_libs=yes
12036  ;;
12037
12038newsos6)
12039  version_type=linux # correct to gnu/linux during the next big refactor
12040  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12041  shlibpath_var=LD_LIBRARY_PATH
12042  shlibpath_overrides_runpath=yes
12043  ;;
12044
12045*nto* | *qnx*)
12046  version_type=qnx
12047  need_lib_prefix=no
12048  need_version=no
12049  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12050  soname_spec='$libname$release$shared_ext$major'
12051  shlibpath_var=LD_LIBRARY_PATH
12052  shlibpath_overrides_runpath=no
12053  hardcode_into_libs=yes
12054  dynamic_linker='ldqnx.so'
12055  ;;
12056
12057openbsd* | bitrig*)
12058  version_type=sunos
12059  sys_lib_dlsearch_path_spec=/usr/lib
12060  need_lib_prefix=no
12061  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12062    need_version=no
12063  else
12064    need_version=yes
12065  fi
12066  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12067  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12068  shlibpath_var=LD_LIBRARY_PATH
12069  shlibpath_overrides_runpath=yes
12070  ;;
12071
12072os2*)
12073  libname_spec='$name'
12074  version_type=windows
12075  shrext_cmds=.dll
12076  need_version=no
12077  need_lib_prefix=no
12078  # OS/2 can only load a DLL with a base name of 8 characters or less.
12079  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12080    v=$($ECHO $release$versuffix | tr -d .-);
12081    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12082    $ECHO $n$v`$shared_ext'
12083  library_names_spec='${libname}_dll.$libext'
12084  dynamic_linker='OS/2 ld.exe'
12085  shlibpath_var=BEGINLIBPATH
12086  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12087  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12088  postinstall_cmds='base_file=`basename \$file`~
12089    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12090    dldir=$destdir/`dirname \$dlpath`~
12091    test -d \$dldir || mkdir -p \$dldir~
12092    $install_prog $dir/$dlname \$dldir/$dlname~
12093    chmod a+x \$dldir/$dlname~
12094    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12095      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12096    fi'
12097  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12098    dlpath=$dir/\$dldll~
12099    $RM \$dlpath'
12100  ;;
12101
12102osf3* | osf4* | osf5*)
12103  version_type=osf
12104  need_lib_prefix=no
12105  need_version=no
12106  soname_spec='$libname$release$shared_ext$major'
12107  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12108  shlibpath_var=LD_LIBRARY_PATH
12109  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12110  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12111  ;;
12112
12113rdos*)
12114  dynamic_linker=no
12115  ;;
12116
12117solaris*)
12118  version_type=linux # correct to gnu/linux during the next big refactor
12119  need_lib_prefix=no
12120  need_version=no
12121  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12122  soname_spec='$libname$release$shared_ext$major'
12123  shlibpath_var=LD_LIBRARY_PATH
12124  shlibpath_overrides_runpath=yes
12125  hardcode_into_libs=yes
12126  # ldd complains unless libraries are executable
12127  postinstall_cmds='chmod +x $lib'
12128  ;;
12129
12130sunos4*)
12131  version_type=sunos
12132  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12133  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12134  shlibpath_var=LD_LIBRARY_PATH
12135  shlibpath_overrides_runpath=yes
12136  if test yes = "$with_gnu_ld"; then
12137    need_lib_prefix=no
12138  fi
12139  need_version=yes
12140  ;;
12141
12142sysv4 | sysv4.3*)
12143  version_type=linux # correct to gnu/linux during the next big refactor
12144  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12145  soname_spec='$libname$release$shared_ext$major'
12146  shlibpath_var=LD_LIBRARY_PATH
12147  case $host_vendor in
12148    sni)
12149      shlibpath_overrides_runpath=no
12150      need_lib_prefix=no
12151      runpath_var=LD_RUN_PATH
12152      ;;
12153    siemens)
12154      need_lib_prefix=no
12155      ;;
12156    motorola)
12157      need_lib_prefix=no
12158      need_version=no
12159      shlibpath_overrides_runpath=no
12160      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12161      ;;
12162  esac
12163  ;;
12164
12165sysv4*MP*)
12166  if test -d /usr/nec; then
12167    version_type=linux # correct to gnu/linux during the next big refactor
12168    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12169    soname_spec='$libname$shared_ext.$major'
12170    shlibpath_var=LD_LIBRARY_PATH
12171  fi
12172  ;;
12173
12174sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12175  version_type=sco
12176  need_lib_prefix=no
12177  need_version=no
12178  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12179  soname_spec='$libname$release$shared_ext$major'
12180  shlibpath_var=LD_LIBRARY_PATH
12181  shlibpath_overrides_runpath=yes
12182  hardcode_into_libs=yes
12183  if test yes = "$with_gnu_ld"; then
12184    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12185  else
12186    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12187    case $host_os in
12188      sco3.2v5*)
12189        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12190	;;
12191    esac
12192  fi
12193  sys_lib_dlsearch_path_spec='/usr/lib'
12194  ;;
12195
12196tpf*)
12197  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12198  version_type=linux # correct to gnu/linux during the next big refactor
12199  need_lib_prefix=no
12200  need_version=no
12201  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12202  shlibpath_var=LD_LIBRARY_PATH
12203  shlibpath_overrides_runpath=no
12204  hardcode_into_libs=yes
12205  ;;
12206
12207uts4*)
12208  version_type=linux # correct to gnu/linux during the next big refactor
12209  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12210  soname_spec='$libname$release$shared_ext$major'
12211  shlibpath_var=LD_LIBRARY_PATH
12212  ;;
12213
12214*)
12215  dynamic_linker=no
12216  ;;
12217esac
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12219$as_echo "$dynamic_linker" >&6; }
12220test no = "$dynamic_linker" && can_build_shared=no
12221
12222variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12223if test yes = "$GCC"; then
12224  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12225fi
12226
12227if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12228  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12229fi
12230
12231if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12232  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12233fi
12234
12235# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12236configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12237
12238# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12239func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12240
12241# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12242configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12341$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12342hardcode_action=
12343if test -n "$hardcode_libdir_flag_spec" ||
12344   test -n "$runpath_var" ||
12345   test yes = "$hardcode_automatic"; then
12346
12347  # We can hardcode non-existent directories.
12348  if test no != "$hardcode_direct" &&
12349     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12350     # have to relink, otherwise we might link with an installed library
12351     # when we should be linking with a yet-to-be-installed one
12352     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12353     test no != "$hardcode_minus_L"; then
12354    # Linking always hardcodes the temporary library directory.
12355    hardcode_action=relink
12356  else
12357    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12358    hardcode_action=immediate
12359  fi
12360else
12361  # We cannot hardcode anything, or else we can only hardcode existing
12362  # directories.
12363  hardcode_action=unsupported
12364fi
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12366$as_echo "$hardcode_action" >&6; }
12367
12368if test relink = "$hardcode_action" ||
12369   test yes = "$inherit_rpath"; then
12370  # Fast installation is not supported
12371  enable_fast_install=no
12372elif test yes = "$shlibpath_overrides_runpath" ||
12373     test no = "$enable_shared"; then
12374  # Fast installation is not necessary
12375  enable_fast_install=needless
12376fi
12377
12378
12379
12380
12381
12382
12383  if test yes != "$enable_dlopen"; then
12384  enable_dlopen=unknown
12385  enable_dlopen_self=unknown
12386  enable_dlopen_self_static=unknown
12387else
12388  lt_cv_dlopen=no
12389  lt_cv_dlopen_libs=
12390
12391  case $host_os in
12392  beos*)
12393    lt_cv_dlopen=load_add_on
12394    lt_cv_dlopen_libs=
12395    lt_cv_dlopen_self=yes
12396    ;;
12397
12398  mingw* | pw32* | cegcc*)
12399    lt_cv_dlopen=LoadLibrary
12400    lt_cv_dlopen_libs=
12401    ;;
12402
12403  cygwin*)
12404    lt_cv_dlopen=dlopen
12405    lt_cv_dlopen_libs=
12406    ;;
12407
12408  darwin*)
12409    # if libdl is installed we need to link against it
12410    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12411$as_echo_n "checking for dlopen in -ldl... " >&6; }
12412if ${ac_cv_lib_dl_dlopen+:} false; then :
12413  $as_echo_n "(cached) " >&6
12414else
12415  ac_check_lib_save_LIBS=$LIBS
12416LIBS="-ldl  $LIBS"
12417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418/* end confdefs.h.  */
12419
12420/* Override any GCC internal prototype to avoid an error.
12421   Use char because int might match the return type of a GCC
12422   builtin and then its argument prototype would still apply.  */
12423#ifdef __cplusplus
12424extern "C"
12425#endif
12426char dlopen ();
12427int
12428main ()
12429{
12430return dlopen ();
12431  ;
12432  return 0;
12433}
12434_ACEOF
12435if ac_fn_c_try_link "$LINENO"; then :
12436  ac_cv_lib_dl_dlopen=yes
12437else
12438  ac_cv_lib_dl_dlopen=no
12439fi
12440rm -f core conftest.err conftest.$ac_objext \
12441    conftest$ac_exeext conftest.$ac_ext
12442LIBS=$ac_check_lib_save_LIBS
12443fi
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12445$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12446if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12447  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12448else
12449
12450    lt_cv_dlopen=dyld
12451    lt_cv_dlopen_libs=
12452    lt_cv_dlopen_self=yes
12453
12454fi
12455
12456    ;;
12457
12458  tpf*)
12459    # Don't try to run any link tests for TPF.  We know it's impossible
12460    # because TPF is a cross-compiler, and we know how we open DSOs.
12461    lt_cv_dlopen=dlopen
12462    lt_cv_dlopen_libs=
12463    lt_cv_dlopen_self=no
12464    ;;
12465
12466  *)
12467    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12468if test "x$ac_cv_func_shl_load" = xyes; then :
12469  lt_cv_dlopen=shl_load
12470else
12471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12472$as_echo_n "checking for shl_load in -ldld... " >&6; }
12473if ${ac_cv_lib_dld_shl_load+:} false; then :
12474  $as_echo_n "(cached) " >&6
12475else
12476  ac_check_lib_save_LIBS=$LIBS
12477LIBS="-ldld  $LIBS"
12478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479/* end confdefs.h.  */
12480
12481/* Override any GCC internal prototype to avoid an error.
12482   Use char because int might match the return type of a GCC
12483   builtin and then its argument prototype would still apply.  */
12484#ifdef __cplusplus
12485extern "C"
12486#endif
12487char shl_load ();
12488int
12489main ()
12490{
12491return shl_load ();
12492  ;
12493  return 0;
12494}
12495_ACEOF
12496if ac_fn_c_try_link "$LINENO"; then :
12497  ac_cv_lib_dld_shl_load=yes
12498else
12499  ac_cv_lib_dld_shl_load=no
12500fi
12501rm -f core conftest.err conftest.$ac_objext \
12502    conftest$ac_exeext conftest.$ac_ext
12503LIBS=$ac_check_lib_save_LIBS
12504fi
12505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12506$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12507if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12508  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12509else
12510  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12511if test "x$ac_cv_func_dlopen" = xyes; then :
12512  lt_cv_dlopen=dlopen
12513else
12514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12515$as_echo_n "checking for dlopen in -ldl... " >&6; }
12516if ${ac_cv_lib_dl_dlopen+:} false; then :
12517  $as_echo_n "(cached) " >&6
12518else
12519  ac_check_lib_save_LIBS=$LIBS
12520LIBS="-ldl  $LIBS"
12521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522/* end confdefs.h.  */
12523
12524/* Override any GCC internal prototype to avoid an error.
12525   Use char because int might match the return type of a GCC
12526   builtin and then its argument prototype would still apply.  */
12527#ifdef __cplusplus
12528extern "C"
12529#endif
12530char dlopen ();
12531int
12532main ()
12533{
12534return dlopen ();
12535  ;
12536  return 0;
12537}
12538_ACEOF
12539if ac_fn_c_try_link "$LINENO"; then :
12540  ac_cv_lib_dl_dlopen=yes
12541else
12542  ac_cv_lib_dl_dlopen=no
12543fi
12544rm -f core conftest.err conftest.$ac_objext \
12545    conftest$ac_exeext conftest.$ac_ext
12546LIBS=$ac_check_lib_save_LIBS
12547fi
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12549$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12550if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12551  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12552else
12553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12554$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12555if ${ac_cv_lib_svld_dlopen+:} false; then :
12556  $as_echo_n "(cached) " >&6
12557else
12558  ac_check_lib_save_LIBS=$LIBS
12559LIBS="-lsvld  $LIBS"
12560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561/* end confdefs.h.  */
12562
12563/* Override any GCC internal prototype to avoid an error.
12564   Use char because int might match the return type of a GCC
12565   builtin and then its argument prototype would still apply.  */
12566#ifdef __cplusplus
12567extern "C"
12568#endif
12569char dlopen ();
12570int
12571main ()
12572{
12573return dlopen ();
12574  ;
12575  return 0;
12576}
12577_ACEOF
12578if ac_fn_c_try_link "$LINENO"; then :
12579  ac_cv_lib_svld_dlopen=yes
12580else
12581  ac_cv_lib_svld_dlopen=no
12582fi
12583rm -f core conftest.err conftest.$ac_objext \
12584    conftest$ac_exeext conftest.$ac_ext
12585LIBS=$ac_check_lib_save_LIBS
12586fi
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12588$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12589if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12590  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12591else
12592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12593$as_echo_n "checking for dld_link in -ldld... " >&6; }
12594if ${ac_cv_lib_dld_dld_link+:} false; then :
12595  $as_echo_n "(cached) " >&6
12596else
12597  ac_check_lib_save_LIBS=$LIBS
12598LIBS="-ldld  $LIBS"
12599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600/* end confdefs.h.  */
12601
12602/* Override any GCC internal prototype to avoid an error.
12603   Use char because int might match the return type of a GCC
12604   builtin and then its argument prototype would still apply.  */
12605#ifdef __cplusplus
12606extern "C"
12607#endif
12608char dld_link ();
12609int
12610main ()
12611{
12612return dld_link ();
12613  ;
12614  return 0;
12615}
12616_ACEOF
12617if ac_fn_c_try_link "$LINENO"; then :
12618  ac_cv_lib_dld_dld_link=yes
12619else
12620  ac_cv_lib_dld_dld_link=no
12621fi
12622rm -f core conftest.err conftest.$ac_objext \
12623    conftest$ac_exeext conftest.$ac_ext
12624LIBS=$ac_check_lib_save_LIBS
12625fi
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12627$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12628if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12629  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12630fi
12631
12632
12633fi
12634
12635
12636fi
12637
12638
12639fi
12640
12641
12642fi
12643
12644
12645fi
12646
12647    ;;
12648  esac
12649
12650  if test no = "$lt_cv_dlopen"; then
12651    enable_dlopen=no
12652  else
12653    enable_dlopen=yes
12654  fi
12655
12656  case $lt_cv_dlopen in
12657  dlopen)
12658    save_CPPFLAGS=$CPPFLAGS
12659    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12660
12661    save_LDFLAGS=$LDFLAGS
12662    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12663
12664    save_LIBS=$LIBS
12665    LIBS="$lt_cv_dlopen_libs $LIBS"
12666
12667    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12668$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12669if ${lt_cv_dlopen_self+:} false; then :
12670  $as_echo_n "(cached) " >&6
12671else
12672  	  if test yes = "$cross_compiling"; then :
12673  lt_cv_dlopen_self=cross
12674else
12675  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12676  lt_status=$lt_dlunknown
12677  cat > conftest.$ac_ext <<_LT_EOF
12678#line $LINENO "configure"
12679#include "confdefs.h"
12680
12681#if HAVE_DLFCN_H
12682#include <dlfcn.h>
12683#endif
12684
12685#include <stdio.h>
12686
12687#ifdef RTLD_GLOBAL
12688#  define LT_DLGLOBAL		RTLD_GLOBAL
12689#else
12690#  ifdef DL_GLOBAL
12691#    define LT_DLGLOBAL		DL_GLOBAL
12692#  else
12693#    define LT_DLGLOBAL		0
12694#  endif
12695#endif
12696
12697/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12698   find out it does not work in some platform. */
12699#ifndef LT_DLLAZY_OR_NOW
12700#  ifdef RTLD_LAZY
12701#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12702#  else
12703#    ifdef DL_LAZY
12704#      define LT_DLLAZY_OR_NOW		DL_LAZY
12705#    else
12706#      ifdef RTLD_NOW
12707#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12708#      else
12709#        ifdef DL_NOW
12710#          define LT_DLLAZY_OR_NOW	DL_NOW
12711#        else
12712#          define LT_DLLAZY_OR_NOW	0
12713#        endif
12714#      endif
12715#    endif
12716#  endif
12717#endif
12718
12719/* When -fvisibility=hidden is used, assume the code has been annotated
12720   correspondingly for the symbols needed.  */
12721#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12722int fnord () __attribute__((visibility("default")));
12723#endif
12724
12725int fnord () { return 42; }
12726int main ()
12727{
12728  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12729  int status = $lt_dlunknown;
12730
12731  if (self)
12732    {
12733      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12734      else
12735        {
12736	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12737          else puts (dlerror ());
12738	}
12739      /* dlclose (self); */
12740    }
12741  else
12742    puts (dlerror ());
12743
12744  return status;
12745}
12746_LT_EOF
12747  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12748  (eval $ac_link) 2>&5
12749  ac_status=$?
12750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12751  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12752    (./conftest; exit; ) >&5 2>/dev/null
12753    lt_status=$?
12754    case x$lt_status in
12755      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12756      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12757      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12758    esac
12759  else :
12760    # compilation failed
12761    lt_cv_dlopen_self=no
12762  fi
12763fi
12764rm -fr conftest*
12765
12766
12767fi
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12769$as_echo "$lt_cv_dlopen_self" >&6; }
12770
12771    if test yes = "$lt_cv_dlopen_self"; then
12772      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12773      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12774$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12775if ${lt_cv_dlopen_self_static+:} false; then :
12776  $as_echo_n "(cached) " >&6
12777else
12778  	  if test yes = "$cross_compiling"; then :
12779  lt_cv_dlopen_self_static=cross
12780else
12781  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12782  lt_status=$lt_dlunknown
12783  cat > conftest.$ac_ext <<_LT_EOF
12784#line $LINENO "configure"
12785#include "confdefs.h"
12786
12787#if HAVE_DLFCN_H
12788#include <dlfcn.h>
12789#endif
12790
12791#include <stdio.h>
12792
12793#ifdef RTLD_GLOBAL
12794#  define LT_DLGLOBAL		RTLD_GLOBAL
12795#else
12796#  ifdef DL_GLOBAL
12797#    define LT_DLGLOBAL		DL_GLOBAL
12798#  else
12799#    define LT_DLGLOBAL		0
12800#  endif
12801#endif
12802
12803/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12804   find out it does not work in some platform. */
12805#ifndef LT_DLLAZY_OR_NOW
12806#  ifdef RTLD_LAZY
12807#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12808#  else
12809#    ifdef DL_LAZY
12810#      define LT_DLLAZY_OR_NOW		DL_LAZY
12811#    else
12812#      ifdef RTLD_NOW
12813#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12814#      else
12815#        ifdef DL_NOW
12816#          define LT_DLLAZY_OR_NOW	DL_NOW
12817#        else
12818#          define LT_DLLAZY_OR_NOW	0
12819#        endif
12820#      endif
12821#    endif
12822#  endif
12823#endif
12824
12825/* When -fvisibility=hidden is used, assume the code has been annotated
12826   correspondingly for the symbols needed.  */
12827#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12828int fnord () __attribute__((visibility("default")));
12829#endif
12830
12831int fnord () { return 42; }
12832int main ()
12833{
12834  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12835  int status = $lt_dlunknown;
12836
12837  if (self)
12838    {
12839      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12840      else
12841        {
12842	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12843          else puts (dlerror ());
12844	}
12845      /* dlclose (self); */
12846    }
12847  else
12848    puts (dlerror ());
12849
12850  return status;
12851}
12852_LT_EOF
12853  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12854  (eval $ac_link) 2>&5
12855  ac_status=$?
12856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12857  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12858    (./conftest; exit; ) >&5 2>/dev/null
12859    lt_status=$?
12860    case x$lt_status in
12861      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12862      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12863      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12864    esac
12865  else :
12866    # compilation failed
12867    lt_cv_dlopen_self_static=no
12868  fi
12869fi
12870rm -fr conftest*
12871
12872
12873fi
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12875$as_echo "$lt_cv_dlopen_self_static" >&6; }
12876    fi
12877
12878    CPPFLAGS=$save_CPPFLAGS
12879    LDFLAGS=$save_LDFLAGS
12880    LIBS=$save_LIBS
12881    ;;
12882  esac
12883
12884  case $lt_cv_dlopen_self in
12885  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12886  *) enable_dlopen_self=unknown ;;
12887  esac
12888
12889  case $lt_cv_dlopen_self_static in
12890  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12891  *) enable_dlopen_self_static=unknown ;;
12892  esac
12893fi
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911striplib=
12912old_striplib=
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12914$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12915if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12916  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12917  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12919$as_echo "yes" >&6; }
12920else
12921# FIXME - insert some real tests, host_os isn't really good enough
12922  case $host_os in
12923  darwin*)
12924    if test -n "$STRIP"; then
12925      striplib="$STRIP -x"
12926      old_striplib="$STRIP -S"
12927      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12928$as_echo "yes" >&6; }
12929    else
12930      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931$as_echo "no" >&6; }
12932    fi
12933    ;;
12934  *)
12935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936$as_echo "no" >&6; }
12937    ;;
12938  esac
12939fi
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952  # Report what library types will actually be built
12953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12954$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12956$as_echo "$can_build_shared" >&6; }
12957
12958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12959$as_echo_n "checking whether to build shared libraries... " >&6; }
12960  test no = "$can_build_shared" && enable_shared=no
12961
12962  # On AIX, shared libraries and static libraries use the same namespace, and
12963  # are all built from PIC.
12964  case $host_os in
12965  aix3*)
12966    test yes = "$enable_shared" && enable_static=no
12967    if test -n "$RANLIB"; then
12968      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12969      postinstall_cmds='$RANLIB $lib'
12970    fi
12971    ;;
12972
12973  aix[4-9]*)
12974    if test ia64 != "$host_cpu"; then
12975      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12976      yes,aix,yes) ;;			# shared object as lib.so file only
12977      yes,svr4,*) ;;			# shared object as lib.so archive member only
12978      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12979      esac
12980    fi
12981    ;;
12982  esac
12983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12984$as_echo "$enable_shared" >&6; }
12985
12986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12987$as_echo_n "checking whether to build static libraries... " >&6; }
12988  # Make sure either enable_shared or enable_static is yes.
12989  test yes = "$enable_shared" || enable_static=yes
12990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12991$as_echo "$enable_static" >&6; }
12992
12993
12994
12995
12996fi
12997ac_ext=cpp
12998ac_cpp='$CXXCPP $CPPFLAGS'
12999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13002
13003CC=$lt_save_CC
13004
13005      if test -n "$CXX" && ( test no != "$CXX" &&
13006    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13007    (test g++ != "$CXX"))); then
13008  ac_ext=cpp
13009ac_cpp='$CXXCPP $CPPFLAGS'
13010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13014$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13015if test -z "$CXXCPP"; then
13016  if ${ac_cv_prog_CXXCPP+:} false; then :
13017  $as_echo_n "(cached) " >&6
13018else
13019      # Double quotes because CXXCPP needs to be expanded
13020    for CXXCPP in "$CXX -E" "/lib/cpp"
13021    do
13022      ac_preproc_ok=false
13023for ac_cxx_preproc_warn_flag in '' yes
13024do
13025  # Use a header file that comes with gcc, so configuring glibc
13026  # with a fresh cross-compiler works.
13027  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13028  # <limits.h> exists even on freestanding compilers.
13029  # On the NeXT, cc -E runs the code through the compiler's parser,
13030  # not just through cpp. "Syntax error" is here to catch this case.
13031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032/* end confdefs.h.  */
13033#ifdef __STDC__
13034# include <limits.h>
13035#else
13036# include <assert.h>
13037#endif
13038		     Syntax error
13039_ACEOF
13040if ac_fn_cxx_try_cpp "$LINENO"; then :
13041
13042else
13043  # Broken: fails on valid input.
13044continue
13045fi
13046rm -f conftest.err conftest.i conftest.$ac_ext
13047
13048  # OK, works on sane cases.  Now check whether nonexistent headers
13049  # can be detected and how.
13050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051/* end confdefs.h.  */
13052#include <ac_nonexistent.h>
13053_ACEOF
13054if ac_fn_cxx_try_cpp "$LINENO"; then :
13055  # Broken: success on invalid input.
13056continue
13057else
13058  # Passes both tests.
13059ac_preproc_ok=:
13060break
13061fi
13062rm -f conftest.err conftest.i conftest.$ac_ext
13063
13064done
13065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13066rm -f conftest.i conftest.err conftest.$ac_ext
13067if $ac_preproc_ok; then :
13068  break
13069fi
13070
13071    done
13072    ac_cv_prog_CXXCPP=$CXXCPP
13073
13074fi
13075  CXXCPP=$ac_cv_prog_CXXCPP
13076else
13077  ac_cv_prog_CXXCPP=$CXXCPP
13078fi
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13080$as_echo "$CXXCPP" >&6; }
13081ac_preproc_ok=false
13082for ac_cxx_preproc_warn_flag in '' yes
13083do
13084  # Use a header file that comes with gcc, so configuring glibc
13085  # with a fresh cross-compiler works.
13086  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13087  # <limits.h> exists even on freestanding compilers.
13088  # On the NeXT, cc -E runs the code through the compiler's parser,
13089  # not just through cpp. "Syntax error" is here to catch this case.
13090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091/* end confdefs.h.  */
13092#ifdef __STDC__
13093# include <limits.h>
13094#else
13095# include <assert.h>
13096#endif
13097		     Syntax error
13098_ACEOF
13099if ac_fn_cxx_try_cpp "$LINENO"; then :
13100
13101else
13102  # Broken: fails on valid input.
13103continue
13104fi
13105rm -f conftest.err conftest.i conftest.$ac_ext
13106
13107  # OK, works on sane cases.  Now check whether nonexistent headers
13108  # can be detected and how.
13109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110/* end confdefs.h.  */
13111#include <ac_nonexistent.h>
13112_ACEOF
13113if ac_fn_cxx_try_cpp "$LINENO"; then :
13114  # Broken: success on invalid input.
13115continue
13116else
13117  # Passes both tests.
13118ac_preproc_ok=:
13119break
13120fi
13121rm -f conftest.err conftest.i conftest.$ac_ext
13122
13123done
13124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13125rm -f conftest.i conftest.err conftest.$ac_ext
13126if $ac_preproc_ok; then :
13127
13128else
13129  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13131as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13132See \`config.log' for more details" "$LINENO" 5; }
13133fi
13134
13135ac_ext=cpp
13136ac_cpp='$CXXCPP $CPPFLAGS'
13137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13140
13141else
13142  _lt_caught_CXX_error=yes
13143fi
13144
13145ac_ext=cpp
13146ac_cpp='$CXXCPP $CPPFLAGS'
13147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13150
13151archive_cmds_need_lc_CXX=no
13152allow_undefined_flag_CXX=
13153always_export_symbols_CXX=no
13154archive_expsym_cmds_CXX=
13155compiler_needs_object_CXX=no
13156export_dynamic_flag_spec_CXX=
13157hardcode_direct_CXX=no
13158hardcode_direct_absolute_CXX=no
13159hardcode_libdir_flag_spec_CXX=
13160hardcode_libdir_separator_CXX=
13161hardcode_minus_L_CXX=no
13162hardcode_shlibpath_var_CXX=unsupported
13163hardcode_automatic_CXX=no
13164inherit_rpath_CXX=no
13165module_cmds_CXX=
13166module_expsym_cmds_CXX=
13167link_all_deplibs_CXX=unknown
13168old_archive_cmds_CXX=$old_archive_cmds
13169reload_flag_CXX=$reload_flag
13170reload_cmds_CXX=$reload_cmds
13171no_undefined_flag_CXX=
13172whole_archive_flag_spec_CXX=
13173enable_shared_with_static_runtimes_CXX=no
13174
13175# Source file extension for C++ test sources.
13176ac_ext=cpp
13177
13178# Object file extension for compiled C++ test sources.
13179objext=o
13180objext_CXX=$objext
13181
13182# No sense in running all these tests if we already determined that
13183# the CXX compiler isn't working.  Some variables (like enable_shared)
13184# are currently assumed to apply to all compilers on this platform,
13185# and will be corrupted by setting them based on a non-working compiler.
13186if test yes != "$_lt_caught_CXX_error"; then
13187  # Code to be used in simple compile tests
13188  lt_simple_compile_test_code="int some_variable = 0;"
13189
13190  # Code to be used in simple link tests
13191  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13192
13193  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13194
13195
13196
13197
13198
13199
13200# If no C compiler was specified, use CC.
13201LTCC=${LTCC-"$CC"}
13202
13203# If no C compiler flags were specified, use CFLAGS.
13204LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13205
13206# Allow CC to be a program name with arguments.
13207compiler=$CC
13208
13209
13210  # save warnings/boilerplate of simple test code
13211  ac_outfile=conftest.$ac_objext
13212echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13213eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13214_lt_compiler_boilerplate=`cat conftest.err`
13215$RM conftest*
13216
13217  ac_outfile=conftest.$ac_objext
13218echo "$lt_simple_link_test_code" >conftest.$ac_ext
13219eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13220_lt_linker_boilerplate=`cat conftest.err`
13221$RM -r conftest*
13222
13223
13224  # Allow CC to be a program name with arguments.
13225  lt_save_CC=$CC
13226  lt_save_CFLAGS=$CFLAGS
13227  lt_save_LD=$LD
13228  lt_save_GCC=$GCC
13229  GCC=$GXX
13230  lt_save_with_gnu_ld=$with_gnu_ld
13231  lt_save_path_LD=$lt_cv_path_LD
13232  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13233    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13234  else
13235    $as_unset lt_cv_prog_gnu_ld
13236  fi
13237  if test -n "${lt_cv_path_LDCXX+set}"; then
13238    lt_cv_path_LD=$lt_cv_path_LDCXX
13239  else
13240    $as_unset lt_cv_path_LD
13241  fi
13242  test -z "${LDCXX+set}" || LD=$LDCXX
13243  CC=${CXX-"c++"}
13244  CFLAGS=$CXXFLAGS
13245  compiler=$CC
13246  compiler_CXX=$CC
13247  func_cc_basename $compiler
13248cc_basename=$func_cc_basename_result
13249
13250
13251  if test -n "$compiler"; then
13252    # We don't want -fno-exception when compiling C++ code, so set the
13253    # no_builtin_flag separately
13254    if test yes = "$GXX"; then
13255      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13256    else
13257      lt_prog_compiler_no_builtin_flag_CXX=
13258    fi
13259
13260    if test yes = "$GXX"; then
13261      # Set up default GNU C++ configuration
13262
13263
13264
13265# Check whether --with-gnu-ld was given.
13266if test "${with_gnu_ld+set}" = set; then :
13267  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13268else
13269  with_gnu_ld=no
13270fi
13271
13272ac_prog=ld
13273if test yes = "$GCC"; then
13274  # Check if gcc -print-prog-name=ld gives a path.
13275  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13276$as_echo_n "checking for ld used by $CC... " >&6; }
13277  case $host in
13278  *-*-mingw*)
13279    # gcc leaves a trailing carriage return, which upsets mingw
13280    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13281  *)
13282    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13283  esac
13284  case $ac_prog in
13285    # Accept absolute paths.
13286    [\\/]* | ?:[\\/]*)
13287      re_direlt='/[^/][^/]*/\.\./'
13288      # Canonicalize the pathname of ld
13289      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13290      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13291	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13292      done
13293      test -z "$LD" && LD=$ac_prog
13294      ;;
13295  "")
13296    # If it fails, then pretend we aren't using GCC.
13297    ac_prog=ld
13298    ;;
13299  *)
13300    # If it is relative, then search for the first ld in PATH.
13301    with_gnu_ld=unknown
13302    ;;
13303  esac
13304elif test yes = "$with_gnu_ld"; then
13305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13306$as_echo_n "checking for GNU ld... " >&6; }
13307else
13308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13309$as_echo_n "checking for non-GNU ld... " >&6; }
13310fi
13311if ${lt_cv_path_LD+:} false; then :
13312  $as_echo_n "(cached) " >&6
13313else
13314  if test -z "$LD"; then
13315  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13316  for ac_dir in $PATH; do
13317    IFS=$lt_save_ifs
13318    test -z "$ac_dir" && ac_dir=.
13319    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13320      lt_cv_path_LD=$ac_dir/$ac_prog
13321      # Check to see if the program is GNU ld.  I'd rather use --version,
13322      # but apparently some variants of GNU ld only accept -v.
13323      # Break only if it was the GNU/non-GNU ld that we prefer.
13324      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13325      *GNU* | *'with BFD'*)
13326	test no != "$with_gnu_ld" && break
13327	;;
13328      *)
13329	test yes != "$with_gnu_ld" && break
13330	;;
13331      esac
13332    fi
13333  done
13334  IFS=$lt_save_ifs
13335else
13336  lt_cv_path_LD=$LD # Let the user override the test with a path.
13337fi
13338fi
13339
13340LD=$lt_cv_path_LD
13341if test -n "$LD"; then
13342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13343$as_echo "$LD" >&6; }
13344else
13345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346$as_echo "no" >&6; }
13347fi
13348test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13350$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13351if ${lt_cv_prog_gnu_ld+:} false; then :
13352  $as_echo_n "(cached) " >&6
13353else
13354  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13355case `$LD -v 2>&1 </dev/null` in
13356*GNU* | *'with BFD'*)
13357  lt_cv_prog_gnu_ld=yes
13358  ;;
13359*)
13360  lt_cv_prog_gnu_ld=no
13361  ;;
13362esac
13363fi
13364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13365$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13366with_gnu_ld=$lt_cv_prog_gnu_ld
13367
13368
13369
13370
13371
13372
13373
13374      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13375      # archiving commands below assume that GNU ld is being used.
13376      if test yes = "$with_gnu_ld"; then
13377        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13378        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'
13379
13380        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13381        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13382
13383        # If archive_cmds runs LD, not CC, wlarc should be empty
13384        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13385        #     investigate it a little bit more. (MM)
13386        wlarc='$wl'
13387
13388        # ancient GNU ld didn't support --whole-archive et. al.
13389        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13390	  $GREP 'no-whole-archive' > /dev/null; then
13391          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13392        else
13393          whole_archive_flag_spec_CXX=
13394        fi
13395      else
13396        with_gnu_ld=no
13397        wlarc=
13398
13399        # A generic and very simple default shared library creation
13400        # command for GNU C++ for the case where it uses the native
13401        # linker, instead of GNU ld.  If possible, this setting should
13402        # overridden to take advantage of the native linker features on
13403        # the platform it is being used on.
13404        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13405      fi
13406
13407      # Commands to make compiler produce verbose output that lists
13408      # what "hidden" libraries, object files and flags are used when
13409      # linking a shared library.
13410      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13411
13412    else
13413      GXX=no
13414      with_gnu_ld=no
13415      wlarc=
13416    fi
13417
13418    # PORTME: fill in a description of your system's C++ link characteristics
13419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13420$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13421    ld_shlibs_CXX=yes
13422    case $host_os in
13423      aix3*)
13424        # FIXME: insert proper C++ library support
13425        ld_shlibs_CXX=no
13426        ;;
13427      aix[4-9]*)
13428        if test ia64 = "$host_cpu"; then
13429          # On IA64, the linker does run time linking by default, so we don't
13430          # have to do anything special.
13431          aix_use_runtimelinking=no
13432          exp_sym_flag='-Bexport'
13433          no_entry_flag=
13434        else
13435          aix_use_runtimelinking=no
13436
13437          # Test if we are trying to use run time linking or normal
13438          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13439          # have runtime linking enabled, and use it for executables.
13440          # For shared libraries, we enable/disable runtime linking
13441          # depending on the kind of the shared library created -
13442          # when "with_aix_soname,aix_use_runtimelinking" is:
13443          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13444          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13445          #            lib.a           static archive
13446          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13447          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13448          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13449          #            lib.a(lib.so.V) shared, rtl:no
13450          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13451          #            lib.a           static archive
13452          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13453	    for ld_flag in $LDFLAGS; do
13454	      case $ld_flag in
13455	      *-brtl*)
13456	        aix_use_runtimelinking=yes
13457	        break
13458	        ;;
13459	      esac
13460	    done
13461	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13462	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13463	      # so we don't have lib.a shared libs to link our executables.
13464	      # We have to force runtime linking in this case.
13465	      aix_use_runtimelinking=yes
13466	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13467	    fi
13468	    ;;
13469          esac
13470
13471          exp_sym_flag='-bexport'
13472          no_entry_flag='-bnoentry'
13473        fi
13474
13475        # When large executables or shared objects are built, AIX ld can
13476        # have problems creating the table of contents.  If linking a library
13477        # or program results in "error TOC overflow" add -mminimal-toc to
13478        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13479        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13480
13481        archive_cmds_CXX=''
13482        hardcode_direct_CXX=yes
13483        hardcode_direct_absolute_CXX=yes
13484        hardcode_libdir_separator_CXX=':'
13485        link_all_deplibs_CXX=yes
13486        file_list_spec_CXX='$wl-f,'
13487        case $with_aix_soname,$aix_use_runtimelinking in
13488        aix,*) ;;	# no import file
13489        svr4,* | *,yes) # use import file
13490          # The Import File defines what to hardcode.
13491          hardcode_direct_CXX=no
13492          hardcode_direct_absolute_CXX=no
13493          ;;
13494        esac
13495
13496        if test yes = "$GXX"; then
13497          case $host_os in aix4.[012]|aix4.[012].*)
13498          # We only want to do this on AIX 4.2 and lower, the check
13499          # below for broken collect2 doesn't work under 4.3+
13500	  collect2name=`$CC -print-prog-name=collect2`
13501	  if test -f "$collect2name" &&
13502	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13503	  then
13504	    # We have reworked collect2
13505	    :
13506	  else
13507	    # We have old collect2
13508	    hardcode_direct_CXX=unsupported
13509	    # It fails to find uninstalled libraries when the uninstalled
13510	    # path is not listed in the libpath.  Setting hardcode_minus_L
13511	    # to unsupported forces relinking
13512	    hardcode_minus_L_CXX=yes
13513	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13514	    hardcode_libdir_separator_CXX=
13515	  fi
13516          esac
13517          shared_flag='-shared'
13518	  if test yes = "$aix_use_runtimelinking"; then
13519	    shared_flag=$shared_flag' $wl-G'
13520	  fi
13521	  # Need to ensure runtime linking is disabled for the traditional
13522	  # shared library, or the linker may eventually find shared libraries
13523	  # /with/ Import File - we do not want to mix them.
13524	  shared_flag_aix='-shared'
13525	  shared_flag_svr4='-shared $wl-G'
13526        else
13527          # not using gcc
13528          if test ia64 = "$host_cpu"; then
13529	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13530	  # chokes on -Wl,-G. The following line is correct:
13531	  shared_flag='-G'
13532          else
13533	    if test yes = "$aix_use_runtimelinking"; then
13534	      shared_flag='$wl-G'
13535	    else
13536	      shared_flag='$wl-bM:SRE'
13537	    fi
13538	    shared_flag_aix='$wl-bM:SRE'
13539	    shared_flag_svr4='$wl-G'
13540          fi
13541        fi
13542
13543        export_dynamic_flag_spec_CXX='$wl-bexpall'
13544        # It seems that -bexpall does not export symbols beginning with
13545        # underscore (_), so it is better to generate a list of symbols to
13546	# export.
13547        always_export_symbols_CXX=yes
13548	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13549          # Warning - without using the other runtime loading flags (-brtl),
13550          # -berok will link without error, but may produce a broken library.
13551          # The "-G" linker flag allows undefined symbols.
13552          no_undefined_flag_CXX='-bernotok'
13553          # Determine the default libpath from the value encoded in an empty
13554          # executable.
13555          if test set = "${lt_cv_aix_libpath+set}"; then
13556  aix_libpath=$lt_cv_aix_libpath
13557else
13558  if ${lt_cv_aix_libpath__CXX+:} false; then :
13559  $as_echo_n "(cached) " >&6
13560else
13561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562/* end confdefs.h.  */
13563
13564int
13565main ()
13566{
13567
13568  ;
13569  return 0;
13570}
13571_ACEOF
13572if ac_fn_cxx_try_link "$LINENO"; then :
13573
13574  lt_aix_libpath_sed='
13575      /Import File Strings/,/^$/ {
13576	  /^0/ {
13577	      s/^0  *\([^ ]*\) *$/\1/
13578	      p
13579	  }
13580      }'
13581  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13582  # Check for a 64-bit object if we didn't find anything.
13583  if test -z "$lt_cv_aix_libpath__CXX"; then
13584    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13585  fi
13586fi
13587rm -f core conftest.err conftest.$ac_objext \
13588    conftest$ac_exeext conftest.$ac_ext
13589  if test -z "$lt_cv_aix_libpath__CXX"; then
13590    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13591  fi
13592
13593fi
13594
13595  aix_libpath=$lt_cv_aix_libpath__CXX
13596fi
13597
13598          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13599
13600          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13601        else
13602          if test ia64 = "$host_cpu"; then
13603	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13604	    allow_undefined_flag_CXX="-z nodefs"
13605	    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"
13606          else
13607	    # Determine the default libpath from the value encoded in an
13608	    # empty executable.
13609	    if test set = "${lt_cv_aix_libpath+set}"; then
13610  aix_libpath=$lt_cv_aix_libpath
13611else
13612  if ${lt_cv_aix_libpath__CXX+:} false; then :
13613  $as_echo_n "(cached) " >&6
13614else
13615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616/* end confdefs.h.  */
13617
13618int
13619main ()
13620{
13621
13622  ;
13623  return 0;
13624}
13625_ACEOF
13626if ac_fn_cxx_try_link "$LINENO"; then :
13627
13628  lt_aix_libpath_sed='
13629      /Import File Strings/,/^$/ {
13630	  /^0/ {
13631	      s/^0  *\([^ ]*\) *$/\1/
13632	      p
13633	  }
13634      }'
13635  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13636  # Check for a 64-bit object if we didn't find anything.
13637  if test -z "$lt_cv_aix_libpath__CXX"; then
13638    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13639  fi
13640fi
13641rm -f core conftest.err conftest.$ac_objext \
13642    conftest$ac_exeext conftest.$ac_ext
13643  if test -z "$lt_cv_aix_libpath__CXX"; then
13644    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13645  fi
13646
13647fi
13648
13649  aix_libpath=$lt_cv_aix_libpath__CXX
13650fi
13651
13652	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13653	    # Warning - without using the other run time loading flags,
13654	    # -berok will link without error, but may produce a broken library.
13655	    no_undefined_flag_CXX=' $wl-bernotok'
13656	    allow_undefined_flag_CXX=' $wl-berok'
13657	    if test yes = "$with_gnu_ld"; then
13658	      # We only use this code for GNU lds that support --whole-archive.
13659	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13660	    else
13661	      # Exported symbols can be pulled into shared objects from archives
13662	      whole_archive_flag_spec_CXX='$convenience'
13663	    fi
13664	    archive_cmds_need_lc_CXX=yes
13665	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13666	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13667	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13668	    if test svr4 != "$with_aix_soname"; then
13669	      # This is similar to how AIX traditionally builds its shared
13670	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13671	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13672	    fi
13673	    if test aix != "$with_aix_soname"; then
13674	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13675	    else
13676	      # used by -dlpreopen to get the symbols
13677	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13678	    fi
13679	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13680          fi
13681        fi
13682        ;;
13683
13684      beos*)
13685	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13686	  allow_undefined_flag_CXX=unsupported
13687	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13688	  # support --undefined.  This deserves some investigation.  FIXME
13689	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13690	else
13691	  ld_shlibs_CXX=no
13692	fi
13693	;;
13694
13695      chorus*)
13696        case $cc_basename in
13697          *)
13698	  # FIXME: insert proper C++ library support
13699	  ld_shlibs_CXX=no
13700	  ;;
13701        esac
13702        ;;
13703
13704      cygwin* | mingw* | pw32* | cegcc*)
13705	case $GXX,$cc_basename in
13706	,cl* | no,cl*)
13707	  # Native MSVC
13708	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13709	  # no search path for DLLs.
13710	  hardcode_libdir_flag_spec_CXX=' '
13711	  allow_undefined_flag_CXX=unsupported
13712	  always_export_symbols_CXX=yes
13713	  file_list_spec_CXX='@'
13714	  # Tell ltmain to make .lib files, not .a files.
13715	  libext=lib
13716	  # Tell ltmain to make .dll files, not .so files.
13717	  shrext_cmds=.dll
13718	  # FIXME: Setting linknames here is a bad hack.
13719	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13720	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13721              cp "$export_symbols" "$output_objdir/$soname.def";
13722              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13723            else
13724              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13725            fi~
13726            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13727            linknames='
13728	  # The linker will not automatically build a static lib if we build a DLL.
13729	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13730	  enable_shared_with_static_runtimes_CXX=yes
13731	  # Don't use ranlib
13732	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13733	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13734            lt_tool_outputfile="@TOOL_OUTPUT@"~
13735            case $lt_outputfile in
13736              *.exe|*.EXE) ;;
13737              *)
13738                lt_outputfile=$lt_outputfile.exe
13739                lt_tool_outputfile=$lt_tool_outputfile.exe
13740                ;;
13741            esac~
13742            func_to_tool_file "$lt_outputfile"~
13743            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13744              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13745              $RM "$lt_outputfile.manifest";
13746            fi'
13747	  ;;
13748	*)
13749	  # g++
13750	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13751	  # as there is no search path for DLLs.
13752	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13753	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13754	  allow_undefined_flag_CXX=unsupported
13755	  always_export_symbols_CXX=no
13756	  enable_shared_with_static_runtimes_CXX=yes
13757
13758	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13759	    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'
13760	    # If the export-symbols file already is a .def file, use it as
13761	    # is; otherwise, prepend EXPORTS...
13762	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13763              cp $export_symbols $output_objdir/$soname.def;
13764            else
13765              echo EXPORTS > $output_objdir/$soname.def;
13766              cat $export_symbols >> $output_objdir/$soname.def;
13767            fi~
13768            $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'
13769	  else
13770	    ld_shlibs_CXX=no
13771	  fi
13772	  ;;
13773	esac
13774	;;
13775      darwin* | rhapsody*)
13776
13777
13778  archive_cmds_need_lc_CXX=no
13779  hardcode_direct_CXX=no
13780  hardcode_automatic_CXX=yes
13781  hardcode_shlibpath_var_CXX=unsupported
13782  if test yes = "$lt_cv_ld_force_load"; then
13783    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\"`'
13784
13785  else
13786    whole_archive_flag_spec_CXX=''
13787  fi
13788  link_all_deplibs_CXX=yes
13789  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13790  case $cc_basename in
13791     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13792     *) _lt_dar_can_shared=$GCC ;;
13793  esac
13794  if test yes = "$_lt_dar_can_shared"; then
13795    output_verbose_link_cmd=func_echo_all
13796    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"
13797    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13798    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"
13799    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"
13800       if test yes != "$lt_cv_apple_cc_single_mod"; then
13801      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"
13802      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"
13803    fi
13804
13805  else
13806  ld_shlibs_CXX=no
13807  fi
13808
13809	;;
13810
13811      os2*)
13812	hardcode_libdir_flag_spec_CXX='-L$libdir'
13813	hardcode_minus_L_CXX=yes
13814	allow_undefined_flag_CXX=unsupported
13815	shrext_cmds=.dll
13816	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13817	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13818	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13819	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13820	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13821	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13822	  emximp -o $lib $output_objdir/$libname.def'
13823	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13824	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13825	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13826	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13827	  prefix_cmds="$SED"~
13828	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
13829	    prefix_cmds="$prefix_cmds -e 1d";
13830	  fi~
13831	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13832	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13833	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13834	  emximp -o $lib $output_objdir/$libname.def'
13835	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13836	enable_shared_with_static_runtimes_CXX=yes
13837	;;
13838
13839      dgux*)
13840        case $cc_basename in
13841          ec++*)
13842	    # FIXME: insert proper C++ library support
13843	    ld_shlibs_CXX=no
13844	    ;;
13845          ghcx*)
13846	    # Green Hills C++ Compiler
13847	    # FIXME: insert proper C++ library support
13848	    ld_shlibs_CXX=no
13849	    ;;
13850          *)
13851	    # FIXME: insert proper C++ library support
13852	    ld_shlibs_CXX=no
13853	    ;;
13854        esac
13855        ;;
13856
13857      freebsd2.*)
13858        # C++ shared libraries reported to be fairly broken before
13859	# switch to ELF
13860        ld_shlibs_CXX=no
13861        ;;
13862
13863      freebsd-elf*)
13864        archive_cmds_need_lc_CXX=no
13865        ;;
13866
13867      freebsd* | dragonfly*)
13868        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13869        # conventions
13870        ld_shlibs_CXX=yes
13871        ;;
13872
13873      haiku*)
13874        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13875        link_all_deplibs_CXX=yes
13876        ;;
13877
13878      hpux9*)
13879        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13880        hardcode_libdir_separator_CXX=:
13881        export_dynamic_flag_spec_CXX='$wl-E'
13882        hardcode_direct_CXX=yes
13883        hardcode_minus_L_CXX=yes # Not in the search PATH,
13884				             # but as the default
13885				             # location of the library.
13886
13887        case $cc_basename in
13888          CC*)
13889            # FIXME: insert proper C++ library support
13890            ld_shlibs_CXX=no
13891            ;;
13892          aCC*)
13893            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13894            # Commands to make compiler produce verbose output that lists
13895            # what "hidden" libraries, object files and flags are used when
13896            # linking a shared library.
13897            #
13898            # There doesn't appear to be a way to prevent this compiler from
13899            # explicitly linking system object files so we need to strip them
13900            # from the output so that they don't get included in the library
13901            # dependencies.
13902            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"'
13903            ;;
13904          *)
13905            if test yes = "$GXX"; then
13906              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13907            else
13908              # FIXME: insert proper C++ library support
13909              ld_shlibs_CXX=no
13910            fi
13911            ;;
13912        esac
13913        ;;
13914
13915      hpux10*|hpux11*)
13916        if test no = "$with_gnu_ld"; then
13917	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13918	  hardcode_libdir_separator_CXX=:
13919
13920          case $host_cpu in
13921            hppa*64*|ia64*)
13922              ;;
13923            *)
13924	      export_dynamic_flag_spec_CXX='$wl-E'
13925              ;;
13926          esac
13927        fi
13928        case $host_cpu in
13929          hppa*64*|ia64*)
13930            hardcode_direct_CXX=no
13931            hardcode_shlibpath_var_CXX=no
13932            ;;
13933          *)
13934            hardcode_direct_CXX=yes
13935            hardcode_direct_absolute_CXX=yes
13936            hardcode_minus_L_CXX=yes # Not in the search PATH,
13937					         # but as the default
13938					         # location of the library.
13939            ;;
13940        esac
13941
13942        case $cc_basename in
13943          CC*)
13944	    # FIXME: insert proper C++ library support
13945	    ld_shlibs_CXX=no
13946	    ;;
13947          aCC*)
13948	    case $host_cpu in
13949	      hppa*64*)
13950	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13951	        ;;
13952	      ia64*)
13953	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13954	        ;;
13955	      *)
13956	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13957	        ;;
13958	    esac
13959	    # Commands to make compiler produce verbose output that lists
13960	    # what "hidden" libraries, object files and flags are used when
13961	    # linking a shared library.
13962	    #
13963	    # There doesn't appear to be a way to prevent this compiler from
13964	    # explicitly linking system object files so we need to strip them
13965	    # from the output so that they don't get included in the library
13966	    # dependencies.
13967	    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"'
13968	    ;;
13969          *)
13970	    if test yes = "$GXX"; then
13971	      if test no = "$with_gnu_ld"; then
13972	        case $host_cpu in
13973	          hppa*64*)
13974	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13975	            ;;
13976	          ia64*)
13977	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13978	            ;;
13979	          *)
13980	            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'
13981	            ;;
13982	        esac
13983	      fi
13984	    else
13985	      # FIXME: insert proper C++ library support
13986	      ld_shlibs_CXX=no
13987	    fi
13988	    ;;
13989        esac
13990        ;;
13991
13992      interix[3-9]*)
13993	hardcode_direct_CXX=no
13994	hardcode_shlibpath_var_CXX=no
13995	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13996	export_dynamic_flag_spec_CXX='$wl-E'
13997	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13998	# Instead, shared libraries are loaded at an image base (0x10000000 by
13999	# default) and relocated if they conflict, which is a slow very memory
14000	# consuming and fragmenting process.  To avoid this, we pick a random,
14001	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14002	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14003	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'
14004	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'
14005	;;
14006      irix5* | irix6*)
14007        case $cc_basename in
14008          CC*)
14009	    # SGI C++
14010	    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'
14011
14012	    # Archives containing C++ object files must be created using
14013	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14014	    # necessary to make sure instantiated templates are included
14015	    # in the archive.
14016	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14017	    ;;
14018          *)
14019	    if test yes = "$GXX"; then
14020	      if test no = "$with_gnu_ld"; then
14021	        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'
14022	      else
14023	        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'
14024	      fi
14025	    fi
14026	    link_all_deplibs_CXX=yes
14027	    ;;
14028        esac
14029        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14030        hardcode_libdir_separator_CXX=:
14031        inherit_rpath_CXX=yes
14032        ;;
14033
14034      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14035        case $cc_basename in
14036          KCC*)
14037	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14038
14039	    # KCC will only create a shared library if the output file
14040	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14041	    # to its proper name (with version) after linking.
14042	    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'
14043	    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'
14044	    # Commands to make compiler produce verbose output that lists
14045	    # what "hidden" libraries, object files and flags are used when
14046	    # linking a shared library.
14047	    #
14048	    # There doesn't appear to be a way to prevent this compiler from
14049	    # explicitly linking system object files so we need to strip them
14050	    # from the output so that they don't get included in the library
14051	    # dependencies.
14052	    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"'
14053
14054	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14055	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14056
14057	    # Archives containing C++ object files must be created using
14058	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14059	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14060	    ;;
14061	  icpc* | ecpc* )
14062	    # Intel C++
14063	    with_gnu_ld=yes
14064	    # version 8.0 and above of icpc choke on multiply defined symbols
14065	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14066	    # earlier do not add the objects themselves.
14067	    case `$CC -V 2>&1` in
14068	      *"Version 7."*)
14069	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14070		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'
14071		;;
14072	      *)  # Version 8.0 or newer
14073	        tmp_idyn=
14074	        case $host_cpu in
14075		  ia64*) tmp_idyn=' -i_dynamic';;
14076		esac
14077	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14078		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'
14079		;;
14080	    esac
14081	    archive_cmds_need_lc_CXX=no
14082	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14083	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14084	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14085	    ;;
14086          pgCC* | pgcpp*)
14087            # Portland Group C++ compiler
14088	    case `$CC -V` in
14089	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14090	      prelink_cmds_CXX='tpldir=Template.dir~
14091               rm -rf $tpldir~
14092               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14093               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14094	      old_archive_cmds_CXX='tpldir=Template.dir~
14095                rm -rf $tpldir~
14096                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14097                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14098                $RANLIB $oldlib'
14099	      archive_cmds_CXX='tpldir=Template.dir~
14100                rm -rf $tpldir~
14101                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14102                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14103	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14104                rm -rf $tpldir~
14105                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14106                $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'
14107	      ;;
14108	    *) # Version 6 and above use weak symbols
14109	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14110	      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'
14111	      ;;
14112	    esac
14113
14114	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14115	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14116	    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'
14117            ;;
14118	  cxx*)
14119	    # Compaq C++
14120	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14121	    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'
14122
14123	    runpath_var=LD_RUN_PATH
14124	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14125	    hardcode_libdir_separator_CXX=:
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	    #
14131	    # There doesn't appear to be a way to prevent this compiler from
14132	    # explicitly linking system object files so we need to strip them
14133	    # from the output so that they don't get included in the library
14134	    # dependencies.
14135	    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'
14136	    ;;
14137	  xl* | mpixl* | bgxl*)
14138	    # IBM XL 8.0 on PPC, with GNU ld
14139	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14140	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14141	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14142	    if test yes = "$supports_anon_versioning"; then
14143	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14144                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14145                echo "local: *; };" >> $output_objdir/$libname.ver~
14146                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14147	    fi
14148	    ;;
14149	  *)
14150	    case `$CC -V 2>&1 | sed 5q` in
14151	    *Sun\ C*)
14152	      # Sun C++ 5.9
14153	      no_undefined_flag_CXX=' -zdefs'
14154	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14155	      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'
14156	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14157	      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'
14158	      compiler_needs_object_CXX=yes
14159
14160	      # Not sure whether something based on
14161	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14162	      # would be better.
14163	      output_verbose_link_cmd='func_echo_all'
14164
14165	      # Archives containing C++ object files must be created using
14166	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14167	      # necessary to make sure instantiated templates are included
14168	      # in the archive.
14169	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14170	      ;;
14171	    esac
14172	    ;;
14173	esac
14174	;;
14175
14176      lynxos*)
14177        # FIXME: insert proper C++ library support
14178	ld_shlibs_CXX=no
14179	;;
14180
14181      m88k*)
14182        # FIXME: insert proper C++ library support
14183        ld_shlibs_CXX=no
14184	;;
14185
14186      mvs*)
14187        case $cc_basename in
14188          cxx*)
14189	    # FIXME: insert proper C++ library support
14190	    ld_shlibs_CXX=no
14191	    ;;
14192	  *)
14193	    # FIXME: insert proper C++ library support
14194	    ld_shlibs_CXX=no
14195	    ;;
14196	esac
14197	;;
14198
14199      netbsd*)
14200        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14201	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14202	  wlarc=
14203	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14204	  hardcode_direct_CXX=yes
14205	  hardcode_shlibpath_var_CXX=no
14206	fi
14207	# Workaround some broken pre-1.5 toolchains
14208	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14209	;;
14210
14211      *nto* | *qnx*)
14212        ld_shlibs_CXX=yes
14213	;;
14214
14215      openbsd* | bitrig*)
14216	if test -f /usr/libexec/ld.so; then
14217	  hardcode_direct_CXX=yes
14218	  hardcode_shlibpath_var_CXX=no
14219	  hardcode_direct_absolute_CXX=yes
14220	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14221	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14222	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14223	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14224	    export_dynamic_flag_spec_CXX='$wl-E'
14225	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14226	  fi
14227	  output_verbose_link_cmd=func_echo_all
14228	else
14229	  ld_shlibs_CXX=no
14230	fi
14231	;;
14232
14233      osf3* | osf4* | osf5*)
14234        case $cc_basename in
14235          KCC*)
14236	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14237
14238	    # KCC will only create a shared library if the output file
14239	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14240	    # to its proper name (with version) after linking.
14241	    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'
14242
14243	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14244	    hardcode_libdir_separator_CXX=:
14245
14246	    # Archives containing C++ object files must be created using
14247	    # the KAI C++ compiler.
14248	    case $host in
14249	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14250	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14251	    esac
14252	    ;;
14253          RCC*)
14254	    # Rational C++ 2.4.1
14255	    # FIXME: insert proper C++ library support
14256	    ld_shlibs_CXX=no
14257	    ;;
14258          cxx*)
14259	    case $host in
14260	      osf3*)
14261	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14262	        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'
14263	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14264		;;
14265	      *)
14266	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14267	        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'
14268	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14269                  echo "-hidden">> $lib.exp~
14270                  $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~
14271                  $RM $lib.exp'
14272	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14273		;;
14274	    esac
14275
14276	    hardcode_libdir_separator_CXX=:
14277
14278	    # Commands to make compiler produce verbose output that lists
14279	    # what "hidden" libraries, object files and flags are used when
14280	    # linking a shared library.
14281	    #
14282	    # There doesn't appear to be a way to prevent this compiler from
14283	    # explicitly linking system object files so we need to strip them
14284	    # from the output so that they don't get included in the library
14285	    # dependencies.
14286	    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"'
14287	    ;;
14288	  *)
14289	    if test yes,no = "$GXX,$with_gnu_ld"; then
14290	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14291	      case $host in
14292	        osf3*)
14293	          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'
14294		  ;;
14295	        *)
14296	          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'
14297		  ;;
14298	      esac
14299
14300	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14301	      hardcode_libdir_separator_CXX=:
14302
14303	      # Commands to make compiler produce verbose output that lists
14304	      # what "hidden" libraries, object files and flags are used when
14305	      # linking a shared library.
14306	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14307
14308	    else
14309	      # FIXME: insert proper C++ library support
14310	      ld_shlibs_CXX=no
14311	    fi
14312	    ;;
14313        esac
14314        ;;
14315
14316      psos*)
14317        # FIXME: insert proper C++ library support
14318        ld_shlibs_CXX=no
14319        ;;
14320
14321      sunos4*)
14322        case $cc_basename in
14323          CC*)
14324	    # Sun C++ 4.x
14325	    # FIXME: insert proper C++ library support
14326	    ld_shlibs_CXX=no
14327	    ;;
14328          lcc*)
14329	    # Lucid
14330	    # FIXME: insert proper C++ library support
14331	    ld_shlibs_CXX=no
14332	    ;;
14333          *)
14334	    # FIXME: insert proper C++ library support
14335	    ld_shlibs_CXX=no
14336	    ;;
14337        esac
14338        ;;
14339
14340      solaris*)
14341        case $cc_basename in
14342          CC* | sunCC*)
14343	    # Sun C++ 4.2, 5.x and Centerline C++
14344            archive_cmds_need_lc_CXX=yes
14345	    no_undefined_flag_CXX=' -zdefs'
14346	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14347	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14348              $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'
14349
14350	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14351	    hardcode_shlibpath_var_CXX=no
14352	    case $host_os in
14353	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14354	      *)
14355		# The compiler driver will combine and reorder linker options,
14356		# but understands '-z linker_flag'.
14357	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14358		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14359	        ;;
14360	    esac
14361	    link_all_deplibs_CXX=yes
14362
14363	    output_verbose_link_cmd='func_echo_all'
14364
14365	    # Archives containing C++ object files must be created using
14366	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14367	    # necessary to make sure instantiated templates are included
14368	    # in the archive.
14369	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14370	    ;;
14371          gcx*)
14372	    # Green Hills C++ Compiler
14373	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14374
14375	    # The C++ compiler must be used to create the archive.
14376	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14377	    ;;
14378          *)
14379	    # GNU C++ compiler with Solaris linker
14380	    if test yes,no = "$GXX,$with_gnu_ld"; then
14381	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14382	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14383	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14384	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14385                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14386
14387	        # Commands to make compiler produce verbose output that lists
14388	        # what "hidden" libraries, object files and flags are used when
14389	        # linking a shared library.
14390	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14391	      else
14392	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14393	        # platform.
14394	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14395	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14396                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14397
14398	        # Commands to make compiler produce verbose output that lists
14399	        # what "hidden" libraries, object files and flags are used when
14400	        # linking a shared library.
14401	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14402	      fi
14403
14404	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14405	      case $host_os in
14406		solaris2.[0-5] | solaris2.[0-5].*) ;;
14407		*)
14408		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14409		  ;;
14410	      esac
14411	    fi
14412	    ;;
14413        esac
14414        ;;
14415
14416    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14417      no_undefined_flag_CXX='$wl-z,text'
14418      archive_cmds_need_lc_CXX=no
14419      hardcode_shlibpath_var_CXX=no
14420      runpath_var='LD_RUN_PATH'
14421
14422      case $cc_basename in
14423        CC*)
14424	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14425	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14426	  ;;
14427	*)
14428	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14429	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14430	  ;;
14431      esac
14432      ;;
14433
14434      sysv5* | sco3.2v5* | sco5v6*)
14435	# Note: We CANNOT use -z defs as we might desire, because we do not
14436	# link with -lc, and that would cause any symbols used from libc to
14437	# always be unresolved, which means just about no library would
14438	# ever link correctly.  If we're not using GNU ld we use -z text
14439	# though, which does catch some bad symbols but isn't as heavy-handed
14440	# as -z defs.
14441	no_undefined_flag_CXX='$wl-z,text'
14442	allow_undefined_flag_CXX='$wl-z,nodefs'
14443	archive_cmds_need_lc_CXX=no
14444	hardcode_shlibpath_var_CXX=no
14445	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14446	hardcode_libdir_separator_CXX=':'
14447	link_all_deplibs_CXX=yes
14448	export_dynamic_flag_spec_CXX='$wl-Bexport'
14449	runpath_var='LD_RUN_PATH'
14450
14451	case $cc_basename in
14452          CC*)
14453	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14454	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14455	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14456              '"$old_archive_cmds_CXX"
14457	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14458              '"$reload_cmds_CXX"
14459	    ;;
14460	  *)
14461	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14462	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14463	    ;;
14464	esac
14465      ;;
14466
14467      tandem*)
14468        case $cc_basename in
14469          NCC*)
14470	    # NonStop-UX NCC 3.20
14471	    # FIXME: insert proper C++ library support
14472	    ld_shlibs_CXX=no
14473	    ;;
14474          *)
14475	    # FIXME: insert proper C++ library support
14476	    ld_shlibs_CXX=no
14477	    ;;
14478        esac
14479        ;;
14480
14481      vxworks*)
14482        # FIXME: insert proper C++ library support
14483        ld_shlibs_CXX=no
14484        ;;
14485
14486      *)
14487        # FIXME: insert proper C++ library support
14488        ld_shlibs_CXX=no
14489        ;;
14490    esac
14491
14492    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14493$as_echo "$ld_shlibs_CXX" >&6; }
14494    test no = "$ld_shlibs_CXX" && can_build_shared=no
14495
14496    GCC_CXX=$GXX
14497    LD_CXX=$LD
14498
14499    ## CAVEAT EMPTOR:
14500    ## There is no encapsulation within the following macros, do not change
14501    ## the running order or otherwise move them around unless you know exactly
14502    ## what you are doing...
14503    # Dependencies to place before and after the object being linked:
14504predep_objects_CXX=
14505postdep_objects_CXX=
14506predeps_CXX=
14507postdeps_CXX=
14508compiler_lib_search_path_CXX=
14509
14510cat > conftest.$ac_ext <<_LT_EOF
14511class Foo
14512{
14513public:
14514  Foo (void) { a = 0; }
14515private:
14516  int a;
14517};
14518_LT_EOF
14519
14520
14521_lt_libdeps_save_CFLAGS=$CFLAGS
14522case "$CC $CFLAGS " in #(
14523*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14524*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14525*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14526esac
14527
14528if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14529  (eval $ac_compile) 2>&5
14530  ac_status=$?
14531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14532  test $ac_status = 0; }; then
14533  # Parse the compiler output and extract the necessary
14534  # objects, libraries and library flags.
14535
14536  # Sentinel used to keep track of whether or not we are before
14537  # the conftest object file.
14538  pre_test_object_deps_done=no
14539
14540  for p in `eval "$output_verbose_link_cmd"`; do
14541    case $prev$p in
14542
14543    -L* | -R* | -l*)
14544       # Some compilers place space between "-{L,R}" and the path.
14545       # Remove the space.
14546       if test x-L = "$p" ||
14547          test x-R = "$p"; then
14548	 prev=$p
14549	 continue
14550       fi
14551
14552       # Expand the sysroot to ease extracting the directories later.
14553       if test -z "$prev"; then
14554         case $p in
14555         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14556         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14557         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14558         esac
14559       fi
14560       case $p in
14561       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14562       esac
14563       if test no = "$pre_test_object_deps_done"; then
14564	 case $prev in
14565	 -L | -R)
14566	   # Internal compiler library paths should come after those
14567	   # provided the user.  The postdeps already come after the
14568	   # user supplied libs so there is no need to process them.
14569	   if test -z "$compiler_lib_search_path_CXX"; then
14570	     compiler_lib_search_path_CXX=$prev$p
14571	   else
14572	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14573	   fi
14574	   ;;
14575	 # The "-l" case would never come before the object being
14576	 # linked, so don't bother handling this case.
14577	 esac
14578       else
14579	 if test -z "$postdeps_CXX"; then
14580	   postdeps_CXX=$prev$p
14581	 else
14582	   postdeps_CXX="${postdeps_CXX} $prev$p"
14583	 fi
14584       fi
14585       prev=
14586       ;;
14587
14588    *.lto.$objext) ;; # Ignore GCC LTO objects
14589    *.$objext)
14590       # This assumes that the test object file only shows up
14591       # once in the compiler output.
14592       if test "$p" = "conftest.$objext"; then
14593	 pre_test_object_deps_done=yes
14594	 continue
14595       fi
14596
14597       if test no = "$pre_test_object_deps_done"; then
14598	 if test -z "$predep_objects_CXX"; then
14599	   predep_objects_CXX=$p
14600	 else
14601	   predep_objects_CXX="$predep_objects_CXX $p"
14602	 fi
14603       else
14604	 if test -z "$postdep_objects_CXX"; then
14605	   postdep_objects_CXX=$p
14606	 else
14607	   postdep_objects_CXX="$postdep_objects_CXX $p"
14608	 fi
14609       fi
14610       ;;
14611
14612    *) ;; # Ignore the rest.
14613
14614    esac
14615  done
14616
14617  # Clean up.
14618  rm -f a.out a.exe
14619else
14620  echo "libtool.m4: error: problem compiling CXX test program"
14621fi
14622
14623$RM -f confest.$objext
14624CFLAGS=$_lt_libdeps_save_CFLAGS
14625
14626# PORTME: override above test on systems where it is broken
14627case $host_os in
14628interix[3-9]*)
14629  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14630  # hack all around it, let's just trust "g++" to DTRT.
14631  predep_objects_CXX=
14632  postdep_objects_CXX=
14633  postdeps_CXX=
14634  ;;
14635esac
14636
14637
14638case " $postdeps_CXX " in
14639*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14640esac
14641 compiler_lib_search_dirs_CXX=
14642if test -n "${compiler_lib_search_path_CXX}"; then
14643 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14644fi
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676    lt_prog_compiler_wl_CXX=
14677lt_prog_compiler_pic_CXX=
14678lt_prog_compiler_static_CXX=
14679
14680
14681  # C++ specific cases for pic, static, wl, etc.
14682  if test yes = "$GXX"; then
14683    lt_prog_compiler_wl_CXX='-Wl,'
14684    lt_prog_compiler_static_CXX='-static'
14685
14686    case $host_os in
14687    aix*)
14688      # All AIX code is PIC.
14689      if test ia64 = "$host_cpu"; then
14690	# AIX 5 now supports IA64 processor
14691	lt_prog_compiler_static_CXX='-Bstatic'
14692      fi
14693      lt_prog_compiler_pic_CXX='-fPIC'
14694      ;;
14695
14696    amigaos*)
14697      case $host_cpu in
14698      powerpc)
14699            # see comment about AmigaOS4 .so support
14700            lt_prog_compiler_pic_CXX='-fPIC'
14701        ;;
14702      m68k)
14703            # FIXME: we need at least 68020 code to build shared libraries, but
14704            # adding the '-m68020' flag to GCC prevents building anything better,
14705            # like '-m68040'.
14706            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14707        ;;
14708      esac
14709      ;;
14710
14711    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14712      # PIC is the default for these OSes.
14713      ;;
14714    mingw* | cygwin* | os2* | pw32* | cegcc*)
14715      # This hack is so that the source file can tell whether it is being
14716      # built for inclusion in a dll (and should export symbols for example).
14717      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14718      # (--disable-auto-import) libraries
14719      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14720      case $host_os in
14721      os2*)
14722	lt_prog_compiler_static_CXX='$wl-static'
14723	;;
14724      esac
14725      ;;
14726    darwin* | rhapsody*)
14727      # PIC is the default on this platform
14728      # Common symbols not allowed in MH_DYLIB files
14729      lt_prog_compiler_pic_CXX='-fno-common'
14730      ;;
14731    *djgpp*)
14732      # DJGPP does not support shared libraries at all
14733      lt_prog_compiler_pic_CXX=
14734      ;;
14735    haiku*)
14736      # PIC is the default for Haiku.
14737      # The "-static" flag exists, but is broken.
14738      lt_prog_compiler_static_CXX=
14739      ;;
14740    interix[3-9]*)
14741      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14742      # Instead, we relocate shared libraries at runtime.
14743      ;;
14744    sysv4*MP*)
14745      if test -d /usr/nec; then
14746	lt_prog_compiler_pic_CXX=-Kconform_pic
14747      fi
14748      ;;
14749    hpux*)
14750      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14751      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14752      # sets the default TLS model and affects inlining.
14753      case $host_cpu in
14754      hppa*64*)
14755	;;
14756      *)
14757	lt_prog_compiler_pic_CXX='-fPIC'
14758	;;
14759      esac
14760      ;;
14761    *qnx* | *nto*)
14762      # QNX uses GNU C++, but need to define -shared option too, otherwise
14763      # it will coredump.
14764      lt_prog_compiler_pic_CXX='-fPIC -shared'
14765      ;;
14766    *)
14767      lt_prog_compiler_pic_CXX='-fPIC'
14768      ;;
14769    esac
14770  else
14771    case $host_os in
14772      aix[4-9]*)
14773	# All AIX code is PIC.
14774	if test ia64 = "$host_cpu"; then
14775	  # AIX 5 now supports IA64 processor
14776	  lt_prog_compiler_static_CXX='-Bstatic'
14777	else
14778	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14779	fi
14780	;;
14781      chorus*)
14782	case $cc_basename in
14783	cxch68*)
14784	  # Green Hills C++ Compiler
14785	  # _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"
14786	  ;;
14787	esac
14788	;;
14789      mingw* | cygwin* | os2* | pw32* | cegcc*)
14790	# This hack is so that the source file can tell whether it is being
14791	# built for inclusion in a dll (and should export symbols for example).
14792	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14793	;;
14794      dgux*)
14795	case $cc_basename in
14796	  ec++*)
14797	    lt_prog_compiler_pic_CXX='-KPIC'
14798	    ;;
14799	  ghcx*)
14800	    # Green Hills C++ Compiler
14801	    lt_prog_compiler_pic_CXX='-pic'
14802	    ;;
14803	  *)
14804	    ;;
14805	esac
14806	;;
14807      freebsd* | dragonfly*)
14808	# FreeBSD uses GNU C++
14809	;;
14810      hpux9* | hpux10* | hpux11*)
14811	case $cc_basename in
14812	  CC*)
14813	    lt_prog_compiler_wl_CXX='-Wl,'
14814	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14815	    if test ia64 != "$host_cpu"; then
14816	      lt_prog_compiler_pic_CXX='+Z'
14817	    fi
14818	    ;;
14819	  aCC*)
14820	    lt_prog_compiler_wl_CXX='-Wl,'
14821	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14822	    case $host_cpu in
14823	    hppa*64*|ia64*)
14824	      # +Z the default
14825	      ;;
14826	    *)
14827	      lt_prog_compiler_pic_CXX='+Z'
14828	      ;;
14829	    esac
14830	    ;;
14831	  *)
14832	    ;;
14833	esac
14834	;;
14835      interix*)
14836	# This is c89, which is MS Visual C++ (no shared libs)
14837	# Anyone wants to do a port?
14838	;;
14839      irix5* | irix6* | nonstopux*)
14840	case $cc_basename in
14841	  CC*)
14842	    lt_prog_compiler_wl_CXX='-Wl,'
14843	    lt_prog_compiler_static_CXX='-non_shared'
14844	    # CC pic flag -KPIC is the default.
14845	    ;;
14846	  *)
14847	    ;;
14848	esac
14849	;;
14850      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14851	case $cc_basename in
14852	  KCC*)
14853	    # KAI C++ Compiler
14854	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14855	    lt_prog_compiler_pic_CXX='-fPIC'
14856	    ;;
14857	  ecpc* )
14858	    # old Intel C++ for x86_64, which still supported -KPIC.
14859	    lt_prog_compiler_wl_CXX='-Wl,'
14860	    lt_prog_compiler_pic_CXX='-KPIC'
14861	    lt_prog_compiler_static_CXX='-static'
14862	    ;;
14863	  icpc* )
14864	    # Intel C++, used to be incompatible with GCC.
14865	    # ICC 10 doesn't accept -KPIC any more.
14866	    lt_prog_compiler_wl_CXX='-Wl,'
14867	    lt_prog_compiler_pic_CXX='-fPIC'
14868	    lt_prog_compiler_static_CXX='-static'
14869	    ;;
14870	  pgCC* | pgcpp*)
14871	    # Portland Group C++ compiler
14872	    lt_prog_compiler_wl_CXX='-Wl,'
14873	    lt_prog_compiler_pic_CXX='-fpic'
14874	    lt_prog_compiler_static_CXX='-Bstatic'
14875	    ;;
14876	  cxx*)
14877	    # Compaq C++
14878	    # Make sure the PIC flag is empty.  It appears that all Alpha
14879	    # Linux and Compaq Tru64 Unix objects are PIC.
14880	    lt_prog_compiler_pic_CXX=
14881	    lt_prog_compiler_static_CXX='-non_shared'
14882	    ;;
14883	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14884	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14885	    lt_prog_compiler_wl_CXX='-Wl,'
14886	    lt_prog_compiler_pic_CXX='-qpic'
14887	    lt_prog_compiler_static_CXX='-qstaticlink'
14888	    ;;
14889	  *)
14890	    case `$CC -V 2>&1 | sed 5q` in
14891	    *Sun\ C*)
14892	      # Sun C++ 5.9
14893	      lt_prog_compiler_pic_CXX='-KPIC'
14894	      lt_prog_compiler_static_CXX='-Bstatic'
14895	      lt_prog_compiler_wl_CXX='-Qoption ld '
14896	      ;;
14897	    esac
14898	    ;;
14899	esac
14900	;;
14901      lynxos*)
14902	;;
14903      m88k*)
14904	;;
14905      mvs*)
14906	case $cc_basename in
14907	  cxx*)
14908	    lt_prog_compiler_pic_CXX='-W c,exportall'
14909	    ;;
14910	  *)
14911	    ;;
14912	esac
14913	;;
14914      netbsd*)
14915	;;
14916      *qnx* | *nto*)
14917        # QNX uses GNU C++, but need to define -shared option too, otherwise
14918        # it will coredump.
14919        lt_prog_compiler_pic_CXX='-fPIC -shared'
14920        ;;
14921      osf3* | osf4* | osf5*)
14922	case $cc_basename in
14923	  KCC*)
14924	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14925	    ;;
14926	  RCC*)
14927	    # Rational C++ 2.4.1
14928	    lt_prog_compiler_pic_CXX='-pic'
14929	    ;;
14930	  cxx*)
14931	    # Digital/Compaq C++
14932	    lt_prog_compiler_wl_CXX='-Wl,'
14933	    # Make sure the PIC flag is empty.  It appears that all Alpha
14934	    # Linux and Compaq Tru64 Unix objects are PIC.
14935	    lt_prog_compiler_pic_CXX=
14936	    lt_prog_compiler_static_CXX='-non_shared'
14937	    ;;
14938	  *)
14939	    ;;
14940	esac
14941	;;
14942      psos*)
14943	;;
14944      solaris*)
14945	case $cc_basename in
14946	  CC* | sunCC*)
14947	    # Sun C++ 4.2, 5.x and Centerline C++
14948	    lt_prog_compiler_pic_CXX='-KPIC'
14949	    lt_prog_compiler_static_CXX='-Bstatic'
14950	    lt_prog_compiler_wl_CXX='-Qoption ld '
14951	    ;;
14952	  gcx*)
14953	    # Green Hills C++ Compiler
14954	    lt_prog_compiler_pic_CXX='-PIC'
14955	    ;;
14956	  *)
14957	    ;;
14958	esac
14959	;;
14960      sunos4*)
14961	case $cc_basename in
14962	  CC*)
14963	    # Sun C++ 4.x
14964	    lt_prog_compiler_pic_CXX='-pic'
14965	    lt_prog_compiler_static_CXX='-Bstatic'
14966	    ;;
14967	  lcc*)
14968	    # Lucid
14969	    lt_prog_compiler_pic_CXX='-pic'
14970	    ;;
14971	  *)
14972	    ;;
14973	esac
14974	;;
14975      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14976	case $cc_basename in
14977	  CC*)
14978	    lt_prog_compiler_wl_CXX='-Wl,'
14979	    lt_prog_compiler_pic_CXX='-KPIC'
14980	    lt_prog_compiler_static_CXX='-Bstatic'
14981	    ;;
14982	esac
14983	;;
14984      tandem*)
14985	case $cc_basename in
14986	  NCC*)
14987	    # NonStop-UX NCC 3.20
14988	    lt_prog_compiler_pic_CXX='-KPIC'
14989	    ;;
14990	  *)
14991	    ;;
14992	esac
14993	;;
14994      vxworks*)
14995	;;
14996      *)
14997	lt_prog_compiler_can_build_shared_CXX=no
14998	;;
14999    esac
15000  fi
15001
15002case $host_os in
15003  # For platforms that do not support PIC, -DPIC is meaningless:
15004  *djgpp*)
15005    lt_prog_compiler_pic_CXX=
15006    ;;
15007  *)
15008    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15009    ;;
15010esac
15011
15012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15013$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15014if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15015  $as_echo_n "(cached) " >&6
15016else
15017  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15018fi
15019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15020$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15021lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15022
15023#
15024# Check to make sure the PIC flag actually works.
15025#
15026if test -n "$lt_prog_compiler_pic_CXX"; then
15027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15028$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15029if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15030  $as_echo_n "(cached) " >&6
15031else
15032  lt_cv_prog_compiler_pic_works_CXX=no
15033   ac_outfile=conftest.$ac_objext
15034   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15035   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15036   # Insert the option either (1) after the last *FLAGS variable, or
15037   # (2) before a word containing "conftest.", or (3) at the end.
15038   # Note that $ac_compile itself does not contain backslashes and begins
15039   # with a dollar sign (not a hyphen), so the echo should work correctly.
15040   # The option is referenced via a variable to avoid confusing sed.
15041   lt_compile=`echo "$ac_compile" | $SED \
15042   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15043   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15044   -e 's:$: $lt_compiler_flag:'`
15045   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15046   (eval "$lt_compile" 2>conftest.err)
15047   ac_status=$?
15048   cat conftest.err >&5
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   if (exit $ac_status) && test -s "$ac_outfile"; then
15051     # The compiler can only warn and ignore the option if not recognized
15052     # So say no if there are warnings other than the usual output.
15053     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15054     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15055     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15056       lt_cv_prog_compiler_pic_works_CXX=yes
15057     fi
15058   fi
15059   $RM conftest*
15060
15061fi
15062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15063$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15064
15065if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15066    case $lt_prog_compiler_pic_CXX in
15067     "" | " "*) ;;
15068     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15069     esac
15070else
15071    lt_prog_compiler_pic_CXX=
15072     lt_prog_compiler_can_build_shared_CXX=no
15073fi
15074
15075fi
15076
15077
15078
15079
15080
15081#
15082# Check to make sure the static flag actually works.
15083#
15084wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15086$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15087if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15088  $as_echo_n "(cached) " >&6
15089else
15090  lt_cv_prog_compiler_static_works_CXX=no
15091   save_LDFLAGS=$LDFLAGS
15092   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15093   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15094   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15095     # The linker can only warn and ignore the option if not recognized
15096     # So say no if there are warnings
15097     if test -s conftest.err; then
15098       # Append any errors to the config.log.
15099       cat conftest.err 1>&5
15100       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15101       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15102       if diff conftest.exp conftest.er2 >/dev/null; then
15103         lt_cv_prog_compiler_static_works_CXX=yes
15104       fi
15105     else
15106       lt_cv_prog_compiler_static_works_CXX=yes
15107     fi
15108   fi
15109   $RM -r conftest*
15110   LDFLAGS=$save_LDFLAGS
15111
15112fi
15113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15114$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15115
15116if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15117    :
15118else
15119    lt_prog_compiler_static_CXX=
15120fi
15121
15122
15123
15124
15125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15126$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15127if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15128  $as_echo_n "(cached) " >&6
15129else
15130  lt_cv_prog_compiler_c_o_CXX=no
15131   $RM -r conftest 2>/dev/null
15132   mkdir conftest
15133   cd conftest
15134   mkdir out
15135   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15136
15137   lt_compiler_flag="-o out/conftest2.$ac_objext"
15138   # Insert the option either (1) after the last *FLAGS variable, or
15139   # (2) before a word containing "conftest.", or (3) at the end.
15140   # Note that $ac_compile itself does not contain backslashes and begins
15141   # with a dollar sign (not a hyphen), so the echo should work correctly.
15142   lt_compile=`echo "$ac_compile" | $SED \
15143   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15144   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15145   -e 's:$: $lt_compiler_flag:'`
15146   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15147   (eval "$lt_compile" 2>out/conftest.err)
15148   ac_status=$?
15149   cat out/conftest.err >&5
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15152   then
15153     # The compiler can only warn and ignore the option if not recognized
15154     # So say no if there are warnings
15155     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15156     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15157     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15158       lt_cv_prog_compiler_c_o_CXX=yes
15159     fi
15160   fi
15161   chmod u+w . 2>&5
15162   $RM conftest*
15163   # SGI C++ compiler will create directory out/ii_files/ for
15164   # template instantiation
15165   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15166   $RM out/* && rmdir out
15167   cd ..
15168   $RM -r conftest
15169   $RM conftest*
15170
15171fi
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15173$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15174
15175
15176
15177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15178$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15179if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15180  $as_echo_n "(cached) " >&6
15181else
15182  lt_cv_prog_compiler_c_o_CXX=no
15183   $RM -r conftest 2>/dev/null
15184   mkdir conftest
15185   cd conftest
15186   mkdir out
15187   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15188
15189   lt_compiler_flag="-o out/conftest2.$ac_objext"
15190   # Insert the option either (1) after the last *FLAGS variable, or
15191   # (2) before a word containing "conftest.", or (3) at the end.
15192   # Note that $ac_compile itself does not contain backslashes and begins
15193   # with a dollar sign (not a hyphen), so the echo should work correctly.
15194   lt_compile=`echo "$ac_compile" | $SED \
15195   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15196   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15197   -e 's:$: $lt_compiler_flag:'`
15198   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15199   (eval "$lt_compile" 2>out/conftest.err)
15200   ac_status=$?
15201   cat out/conftest.err >&5
15202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15204   then
15205     # The compiler can only warn and ignore the option if not recognized
15206     # So say no if there are warnings
15207     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15208     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15209     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15210       lt_cv_prog_compiler_c_o_CXX=yes
15211     fi
15212   fi
15213   chmod u+w . 2>&5
15214   $RM conftest*
15215   # SGI C++ compiler will create directory out/ii_files/ for
15216   # template instantiation
15217   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15218   $RM out/* && rmdir out
15219   cd ..
15220   $RM -r conftest
15221   $RM conftest*
15222
15223fi
15224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15225$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15226
15227
15228
15229
15230hard_links=nottested
15231if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15232  # do not overwrite the value of need_locks provided by the user
15233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15234$as_echo_n "checking if we can lock with hard links... " >&6; }
15235  hard_links=yes
15236  $RM conftest*
15237  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15238  touch conftest.a
15239  ln conftest.a conftest.b 2>&5 || hard_links=no
15240  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15242$as_echo "$hard_links" >&6; }
15243  if test no = "$hard_links"; then
15244    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15245$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15246    need_locks=warn
15247  fi
15248else
15249  need_locks=no
15250fi
15251
15252
15253
15254    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15255$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15256
15257  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15258  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15259  case $host_os in
15260  aix[4-9]*)
15261    # If we're using GNU nm, then we don't want the "-C" option.
15262    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15263    # Without the "-l" option, or with the "-B" option, AIX nm treats
15264    # weak defined symbols like other global defined symbols, whereas
15265    # GNU nm marks them as "W".
15266    # While the 'weak' keyword is ignored in the Export File, we need
15267    # it in the Import File for the 'aix-soname' feature, so we have
15268    # to replace the "-B" option with "-P" for AIX nm.
15269    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15270      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15271    else
15272      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15273    fi
15274    ;;
15275  pw32*)
15276    export_symbols_cmds_CXX=$ltdll_cmds
15277    ;;
15278  cygwin* | mingw* | cegcc*)
15279    case $cc_basename in
15280    cl*)
15281      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15282      ;;
15283    *)
15284      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'
15285      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15286      ;;
15287    esac
15288    ;;
15289  *)
15290    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15291    ;;
15292  esac
15293
15294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15295$as_echo "$ld_shlibs_CXX" >&6; }
15296test no = "$ld_shlibs_CXX" && can_build_shared=no
15297
15298with_gnu_ld_CXX=$with_gnu_ld
15299
15300
15301
15302
15303
15304
15305#
15306# Do we need to explicitly link libc?
15307#
15308case "x$archive_cmds_need_lc_CXX" in
15309x|xyes)
15310  # Assume -lc should be added
15311  archive_cmds_need_lc_CXX=yes
15312
15313  if test yes,yes = "$GCC,$enable_shared"; then
15314    case $archive_cmds_CXX in
15315    *'~'*)
15316      # FIXME: we may have to deal with multi-command sequences.
15317      ;;
15318    '$CC '*)
15319      # Test whether the compiler implicitly links with -lc since on some
15320      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15321      # to ld, don't add -lc before -lgcc.
15322      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15323$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15324if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15325  $as_echo_n "(cached) " >&6
15326else
15327  $RM conftest*
15328	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15329
15330	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15331  (eval $ac_compile) 2>&5
15332  ac_status=$?
15333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15334  test $ac_status = 0; } 2>conftest.err; then
15335	  soname=conftest
15336	  lib=conftest
15337	  libobjs=conftest.$ac_objext
15338	  deplibs=
15339	  wl=$lt_prog_compiler_wl_CXX
15340	  pic_flag=$lt_prog_compiler_pic_CXX
15341	  compiler_flags=-v
15342	  linker_flags=-v
15343	  verstring=
15344	  output_objdir=.
15345	  libname=conftest
15346	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15347	  allow_undefined_flag_CXX=
15348	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15349  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15350  ac_status=$?
15351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15352  test $ac_status = 0; }
15353	  then
15354	    lt_cv_archive_cmds_need_lc_CXX=no
15355	  else
15356	    lt_cv_archive_cmds_need_lc_CXX=yes
15357	  fi
15358	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15359	else
15360	  cat conftest.err 1>&5
15361	fi
15362	$RM conftest*
15363
15364fi
15365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15366$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15367      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15368      ;;
15369    esac
15370  fi
15371  ;;
15372esac
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15436$as_echo_n "checking dynamic linker characteristics... " >&6; }
15437
15438library_names_spec=
15439libname_spec='lib$name'
15440soname_spec=
15441shrext_cmds=.so
15442postinstall_cmds=
15443postuninstall_cmds=
15444finish_cmds=
15445finish_eval=
15446shlibpath_var=
15447shlibpath_overrides_runpath=unknown
15448version_type=none
15449dynamic_linker="$host_os ld.so"
15450sys_lib_dlsearch_path_spec="/lib /usr/lib"
15451need_lib_prefix=unknown
15452hardcode_into_libs=no
15453
15454# when you set need_version to no, make sure it does not cause -set_version
15455# flags to be left without arguments
15456need_version=unknown
15457
15458
15459
15460case $host_os in
15461aix3*)
15462  version_type=linux # correct to gnu/linux during the next big refactor
15463  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15464  shlibpath_var=LIBPATH
15465
15466  # AIX 3 has no versioning support, so we append a major version to the name.
15467  soname_spec='$libname$release$shared_ext$major'
15468  ;;
15469
15470aix[4-9]*)
15471  version_type=linux # correct to gnu/linux during the next big refactor
15472  need_lib_prefix=no
15473  need_version=no
15474  hardcode_into_libs=yes
15475  if test ia64 = "$host_cpu"; then
15476    # AIX 5 supports IA64
15477    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15478    shlibpath_var=LD_LIBRARY_PATH
15479  else
15480    # With GCC up to 2.95.x, collect2 would create an import file
15481    # for dependence libraries.  The import file would start with
15482    # the line '#! .'.  This would cause the generated library to
15483    # depend on '.', always an invalid library.  This was fixed in
15484    # development snapshots of GCC prior to 3.0.
15485    case $host_os in
15486      aix4 | aix4.[01] | aix4.[01].*)
15487      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15488	   echo ' yes '
15489	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15490	:
15491      else
15492	can_build_shared=no
15493      fi
15494      ;;
15495    esac
15496    # Using Import Files as archive members, it is possible to support
15497    # filename-based versioning of shared library archives on AIX. While
15498    # this would work for both with and without runtime linking, it will
15499    # prevent static linking of such archives. So we do filename-based
15500    # shared library versioning with .so extension only, which is used
15501    # when both runtime linking and shared linking is enabled.
15502    # Unfortunately, runtime linking may impact performance, so we do
15503    # not want this to be the default eventually. Also, we use the
15504    # versioned .so libs for executables only if there is the -brtl
15505    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15506    # To allow for filename-based versioning support, we need to create
15507    # libNAME.so.V as an archive file, containing:
15508    # *) an Import File, referring to the versioned filename of the
15509    #    archive as well as the shared archive member, telling the
15510    #    bitwidth (32 or 64) of that shared object, and providing the
15511    #    list of exported symbols of that shared object, eventually
15512    #    decorated with the 'weak' keyword
15513    # *) the shared object with the F_LOADONLY flag set, to really avoid
15514    #    it being seen by the linker.
15515    # At run time we better use the real file rather than another symlink,
15516    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15517
15518    case $with_aix_soname,$aix_use_runtimelinking in
15519    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15520    # soname into executable. Probably we can add versioning support to
15521    # collect2, so additional links can be useful in future.
15522    aix,yes) # traditional libtool
15523      dynamic_linker='AIX unversionable lib.so'
15524      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15525      # instead of lib<name>.a to let people know that these are not
15526      # typical AIX shared libraries.
15527      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15528      ;;
15529    aix,no) # traditional AIX only
15530      dynamic_linker='AIX lib.a(lib.so.V)'
15531      # We preserve .a as extension for shared libraries through AIX4.2
15532      # and later when we are not doing run time linking.
15533      library_names_spec='$libname$release.a $libname.a'
15534      soname_spec='$libname$release$shared_ext$major'
15535      ;;
15536    svr4,*) # full svr4 only
15537      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15538      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15539      # We do not specify a path in Import Files, so LIBPATH fires.
15540      shlibpath_overrides_runpath=yes
15541      ;;
15542    *,yes) # both, prefer svr4
15543      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15544      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15545      # unpreferred sharedlib libNAME.a needs extra handling
15546      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15547      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15548      # We do not specify a path in Import Files, so LIBPATH fires.
15549      shlibpath_overrides_runpath=yes
15550      ;;
15551    *,no) # both, prefer aix
15552      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15553      library_names_spec='$libname$release.a $libname.a'
15554      soname_spec='$libname$release$shared_ext$major'
15555      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15556      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15557      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15558      ;;
15559    esac
15560    shlibpath_var=LIBPATH
15561  fi
15562  ;;
15563
15564amigaos*)
15565  case $host_cpu in
15566  powerpc)
15567    # Since July 2007 AmigaOS4 officially supports .so libraries.
15568    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15569    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15570    ;;
15571  m68k)
15572    library_names_spec='$libname.ixlibrary $libname.a'
15573    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15574    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15575    ;;
15576  esac
15577  ;;
15578
15579beos*)
15580  library_names_spec='$libname$shared_ext'
15581  dynamic_linker="$host_os ld.so"
15582  shlibpath_var=LIBRARY_PATH
15583  ;;
15584
15585bsdi[45]*)
15586  version_type=linux # correct to gnu/linux during the next big refactor
15587  need_version=no
15588  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15589  soname_spec='$libname$release$shared_ext$major'
15590  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15591  shlibpath_var=LD_LIBRARY_PATH
15592  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15593  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15594  # the default ld.so.conf also contains /usr/contrib/lib and
15595  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15596  # libtool to hard-code these into programs
15597  ;;
15598
15599cygwin* | mingw* | pw32* | cegcc*)
15600  version_type=windows
15601  shrext_cmds=.dll
15602  need_version=no
15603  need_lib_prefix=no
15604
15605  case $GCC,$cc_basename in
15606  yes,*)
15607    # gcc
15608    library_names_spec='$libname.dll.a'
15609    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15610    postinstall_cmds='base_file=`basename \$file`~
15611      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15612      dldir=$destdir/`dirname \$dlpath`~
15613      test -d \$dldir || mkdir -p \$dldir~
15614      $install_prog $dir/$dlname \$dldir/$dlname~
15615      chmod a+x \$dldir/$dlname~
15616      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15617        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15618      fi'
15619    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15620      dlpath=$dir/\$dldll~
15621       $RM \$dlpath'
15622    shlibpath_overrides_runpath=yes
15623
15624    case $host_os in
15625    cygwin*)
15626      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15627      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15628
15629      ;;
15630    mingw* | cegcc*)
15631      # MinGW DLLs use traditional 'lib' prefix
15632      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15633      ;;
15634    pw32*)
15635      # pw32 DLLs use 'pw' prefix rather than 'lib'
15636      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15637      ;;
15638    esac
15639    dynamic_linker='Win32 ld.exe'
15640    ;;
15641
15642  *,cl*)
15643    # Native MSVC
15644    libname_spec='$name'
15645    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15646    library_names_spec='$libname.dll.lib'
15647
15648    case $build_os in
15649    mingw*)
15650      sys_lib_search_path_spec=
15651      lt_save_ifs=$IFS
15652      IFS=';'
15653      for lt_path in $LIB
15654      do
15655        IFS=$lt_save_ifs
15656        # Let DOS variable expansion print the short 8.3 style file name.
15657        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15658        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15659      done
15660      IFS=$lt_save_ifs
15661      # Convert to MSYS style.
15662      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15663      ;;
15664    cygwin*)
15665      # Convert to unix form, then to dos form, then back to unix form
15666      # but this time dos style (no spaces!) so that the unix form looks
15667      # like /cygdrive/c/PROGRA~1:/cygdr...
15668      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15669      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15670      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15671      ;;
15672    *)
15673      sys_lib_search_path_spec=$LIB
15674      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15675        # It is most probably a Windows format PATH.
15676        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15677      else
15678        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15679      fi
15680      # FIXME: find the short name or the path components, as spaces are
15681      # common. (e.g. "Program Files" -> "PROGRA~1")
15682      ;;
15683    esac
15684
15685    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15686    postinstall_cmds='base_file=`basename \$file`~
15687      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15688      dldir=$destdir/`dirname \$dlpath`~
15689      test -d \$dldir || mkdir -p \$dldir~
15690      $install_prog $dir/$dlname \$dldir/$dlname'
15691    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15692      dlpath=$dir/\$dldll~
15693       $RM \$dlpath'
15694    shlibpath_overrides_runpath=yes
15695    dynamic_linker='Win32 link.exe'
15696    ;;
15697
15698  *)
15699    # Assume MSVC wrapper
15700    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15701    dynamic_linker='Win32 ld.exe'
15702    ;;
15703  esac
15704  # FIXME: first we should search . and the directory the executable is in
15705  shlibpath_var=PATH
15706  ;;
15707
15708darwin* | rhapsody*)
15709  dynamic_linker="$host_os dyld"
15710  version_type=darwin
15711  need_lib_prefix=no
15712  need_version=no
15713  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15714  soname_spec='$libname$release$major$shared_ext'
15715  shlibpath_overrides_runpath=yes
15716  shlibpath_var=DYLD_LIBRARY_PATH
15717  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15718
15719  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15720  ;;
15721
15722dgux*)
15723  version_type=linux # correct to gnu/linux during the next big refactor
15724  need_lib_prefix=no
15725  need_version=no
15726  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15727  soname_spec='$libname$release$shared_ext$major'
15728  shlibpath_var=LD_LIBRARY_PATH
15729  ;;
15730
15731freebsd* | dragonfly*)
15732  # DragonFly does not have aout.  When/if they implement a new
15733  # versioning mechanism, adjust this.
15734  if test -x /usr/bin/objformat; then
15735    objformat=`/usr/bin/objformat`
15736  else
15737    case $host_os in
15738    freebsd[23].*) objformat=aout ;;
15739    *) objformat=elf ;;
15740    esac
15741  fi
15742  version_type=freebsd-$objformat
15743  case $version_type in
15744    freebsd-elf*)
15745      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15746      soname_spec='$libname$release$shared_ext$major'
15747      need_version=no
15748      need_lib_prefix=no
15749      ;;
15750    freebsd-*)
15751      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15752      need_version=yes
15753      ;;
15754  esac
15755  shlibpath_var=LD_LIBRARY_PATH
15756  case $host_os in
15757  freebsd2.*)
15758    shlibpath_overrides_runpath=yes
15759    ;;
15760  freebsd3.[01]* | freebsdelf3.[01]*)
15761    shlibpath_overrides_runpath=yes
15762    hardcode_into_libs=yes
15763    ;;
15764  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15765  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15766    shlibpath_overrides_runpath=no
15767    hardcode_into_libs=yes
15768    ;;
15769  *) # from 4.6 on, and DragonFly
15770    shlibpath_overrides_runpath=yes
15771    hardcode_into_libs=yes
15772    ;;
15773  esac
15774  ;;
15775
15776haiku*)
15777  version_type=linux # correct to gnu/linux during the next big refactor
15778  need_lib_prefix=no
15779  need_version=no
15780  dynamic_linker="$host_os runtime_loader"
15781  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15782  soname_spec='$libname$release$shared_ext$major'
15783  shlibpath_var=LIBRARY_PATH
15784  shlibpath_overrides_runpath=no
15785  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15786  hardcode_into_libs=yes
15787  ;;
15788
15789hpux9* | hpux10* | hpux11*)
15790  # Give a soname corresponding to the major version so that dld.sl refuses to
15791  # link against other versions.
15792  version_type=sunos
15793  need_lib_prefix=no
15794  need_version=no
15795  case $host_cpu in
15796  ia64*)
15797    shrext_cmds='.so'
15798    hardcode_into_libs=yes
15799    dynamic_linker="$host_os dld.so"
15800    shlibpath_var=LD_LIBRARY_PATH
15801    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15802    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15803    soname_spec='$libname$release$shared_ext$major'
15804    if test 32 = "$HPUX_IA64_MODE"; then
15805      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15806      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15807    else
15808      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15809      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15810    fi
15811    ;;
15812  hppa*64*)
15813    shrext_cmds='.sl'
15814    hardcode_into_libs=yes
15815    dynamic_linker="$host_os dld.sl"
15816    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15817    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15818    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15819    soname_spec='$libname$release$shared_ext$major'
15820    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15821    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15822    ;;
15823  *)
15824    shrext_cmds='.sl'
15825    dynamic_linker="$host_os dld.sl"
15826    shlibpath_var=SHLIB_PATH
15827    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15828    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15829    soname_spec='$libname$release$shared_ext$major'
15830    ;;
15831  esac
15832  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15833  postinstall_cmds='chmod 555 $lib'
15834  # or fails outright, so override atomically:
15835  install_override_mode=555
15836  ;;
15837
15838interix[3-9]*)
15839  version_type=linux # correct to gnu/linux during the next big refactor
15840  need_lib_prefix=no
15841  need_version=no
15842  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15843  soname_spec='$libname$release$shared_ext$major'
15844  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15845  shlibpath_var=LD_LIBRARY_PATH
15846  shlibpath_overrides_runpath=no
15847  hardcode_into_libs=yes
15848  ;;
15849
15850irix5* | irix6* | nonstopux*)
15851  case $host_os in
15852    nonstopux*) version_type=nonstopux ;;
15853    *)
15854	if test yes = "$lt_cv_prog_gnu_ld"; then
15855		version_type=linux # correct to gnu/linux during the next big refactor
15856	else
15857		version_type=irix
15858	fi ;;
15859  esac
15860  need_lib_prefix=no
15861  need_version=no
15862  soname_spec='$libname$release$shared_ext$major'
15863  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15864  case $host_os in
15865  irix5* | nonstopux*)
15866    libsuff= shlibsuff=
15867    ;;
15868  *)
15869    case $LD in # libtool.m4 will add one of these switches to LD
15870    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15871      libsuff= shlibsuff= libmagic=32-bit;;
15872    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15873      libsuff=32 shlibsuff=N32 libmagic=N32;;
15874    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15875      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15876    *) libsuff= shlibsuff= libmagic=never-match;;
15877    esac
15878    ;;
15879  esac
15880  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15881  shlibpath_overrides_runpath=no
15882  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15883  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15884  hardcode_into_libs=yes
15885  ;;
15886
15887# No shared lib support for Linux oldld, aout, or coff.
15888linux*oldld* | linux*aout* | linux*coff*)
15889  dynamic_linker=no
15890  ;;
15891
15892linux*android*)
15893  version_type=none # Android doesn't support versioned libraries.
15894  need_lib_prefix=no
15895  need_version=no
15896  library_names_spec='$libname$release$shared_ext'
15897  soname_spec='$libname$release$shared_ext'
15898  finish_cmds=
15899  shlibpath_var=LD_LIBRARY_PATH
15900  shlibpath_overrides_runpath=yes
15901
15902  # This implies no fast_install, which is unacceptable.
15903  # Some rework will be needed to allow for fast_install
15904  # before this can be enabled.
15905  hardcode_into_libs=yes
15906
15907  dynamic_linker='Android linker'
15908  # Don't embed -rpath directories since the linker doesn't support them.
15909  hardcode_libdir_flag_spec_CXX='-L$libdir'
15910  ;;
15911
15912# This must be glibc/ELF.
15913linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15914  version_type=linux # correct to gnu/linux during the next big refactor
15915  need_lib_prefix=no
15916  need_version=no
15917  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15918  soname_spec='$libname$release$shared_ext$major'
15919  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15920  shlibpath_var=LD_LIBRARY_PATH
15921  shlibpath_overrides_runpath=no
15922
15923  # Some binutils ld are patched to set DT_RUNPATH
15924  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15925  $as_echo_n "(cached) " >&6
15926else
15927  lt_cv_shlibpath_overrides_runpath=no
15928    save_LDFLAGS=$LDFLAGS
15929    save_libdir=$libdir
15930    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15931	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15932    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933/* end confdefs.h.  */
15934
15935int
15936main ()
15937{
15938
15939  ;
15940  return 0;
15941}
15942_ACEOF
15943if ac_fn_cxx_try_link "$LINENO"; then :
15944  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15945  lt_cv_shlibpath_overrides_runpath=yes
15946fi
15947fi
15948rm -f core conftest.err conftest.$ac_objext \
15949    conftest$ac_exeext conftest.$ac_ext
15950    LDFLAGS=$save_LDFLAGS
15951    libdir=$save_libdir
15952
15953fi
15954
15955  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15956
15957  # This implies no fast_install, which is unacceptable.
15958  # Some rework will be needed to allow for fast_install
15959  # before this can be enabled.
15960  hardcode_into_libs=yes
15961
15962  # Ideally, we could use ldconfig to report *all* directores which are
15963  # searched for libraries, however this is still not possible.  Aside from not
15964  # being certain /sbin/ldconfig is available, command
15965  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15966  # even though it is searched at run-time.  Try to do the best guess by
15967  # appending ld.so.conf contents (and includes) to the search path.
15968  if test -f /etc/ld.so.conf; then
15969    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' ' '`
15970    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15971  fi
15972
15973  # We used to test for /lib/ld.so.1 and disable shared libraries on
15974  # powerpc, because MkLinux only supported shared libraries with the
15975  # GNU dynamic linker.  Since this was broken with cross compilers,
15976  # most powerpc-linux boxes support dynamic linking these days and
15977  # people can always --disable-shared, the test was removed, and we
15978  # assume the GNU/Linux dynamic linker is in use.
15979  dynamic_linker='GNU/Linux ld.so'
15980  ;;
15981
15982netbsd*)
15983  version_type=sunos
15984  need_lib_prefix=no
15985  need_version=no
15986  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15987    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15988    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15989    dynamic_linker='NetBSD (a.out) ld.so'
15990  else
15991    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15992    soname_spec='$libname$release$shared_ext$major'
15993    dynamic_linker='NetBSD ld.elf_so'
15994  fi
15995  shlibpath_var=LD_LIBRARY_PATH
15996  shlibpath_overrides_runpath=yes
15997  hardcode_into_libs=yes
15998  ;;
15999
16000newsos6)
16001  version_type=linux # correct to gnu/linux during the next big refactor
16002  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16003  shlibpath_var=LD_LIBRARY_PATH
16004  shlibpath_overrides_runpath=yes
16005  ;;
16006
16007*nto* | *qnx*)
16008  version_type=qnx
16009  need_lib_prefix=no
16010  need_version=no
16011  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16012  soname_spec='$libname$release$shared_ext$major'
16013  shlibpath_var=LD_LIBRARY_PATH
16014  shlibpath_overrides_runpath=no
16015  hardcode_into_libs=yes
16016  dynamic_linker='ldqnx.so'
16017  ;;
16018
16019openbsd* | bitrig*)
16020  version_type=sunos
16021  sys_lib_dlsearch_path_spec=/usr/lib
16022  need_lib_prefix=no
16023  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16024    need_version=no
16025  else
16026    need_version=yes
16027  fi
16028  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16029  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16030  shlibpath_var=LD_LIBRARY_PATH
16031  shlibpath_overrides_runpath=yes
16032  ;;
16033
16034os2*)
16035  libname_spec='$name'
16036  version_type=windows
16037  shrext_cmds=.dll
16038  need_version=no
16039  need_lib_prefix=no
16040  # OS/2 can only load a DLL with a base name of 8 characters or less.
16041  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16042    v=$($ECHO $release$versuffix | tr -d .-);
16043    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16044    $ECHO $n$v`$shared_ext'
16045  library_names_spec='${libname}_dll.$libext'
16046  dynamic_linker='OS/2 ld.exe'
16047  shlibpath_var=BEGINLIBPATH
16048  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16049  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16050  postinstall_cmds='base_file=`basename \$file`~
16051    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16052    dldir=$destdir/`dirname \$dlpath`~
16053    test -d \$dldir || mkdir -p \$dldir~
16054    $install_prog $dir/$dlname \$dldir/$dlname~
16055    chmod a+x \$dldir/$dlname~
16056    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16057      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16058    fi'
16059  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16060    dlpath=$dir/\$dldll~
16061    $RM \$dlpath'
16062  ;;
16063
16064osf3* | osf4* | osf5*)
16065  version_type=osf
16066  need_lib_prefix=no
16067  need_version=no
16068  soname_spec='$libname$release$shared_ext$major'
16069  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16070  shlibpath_var=LD_LIBRARY_PATH
16071  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16072  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16073  ;;
16074
16075rdos*)
16076  dynamic_linker=no
16077  ;;
16078
16079solaris*)
16080  version_type=linux # correct to gnu/linux during the next big refactor
16081  need_lib_prefix=no
16082  need_version=no
16083  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16084  soname_spec='$libname$release$shared_ext$major'
16085  shlibpath_var=LD_LIBRARY_PATH
16086  shlibpath_overrides_runpath=yes
16087  hardcode_into_libs=yes
16088  # ldd complains unless libraries are executable
16089  postinstall_cmds='chmod +x $lib'
16090  ;;
16091
16092sunos4*)
16093  version_type=sunos
16094  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16095  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16096  shlibpath_var=LD_LIBRARY_PATH
16097  shlibpath_overrides_runpath=yes
16098  if test yes = "$with_gnu_ld"; then
16099    need_lib_prefix=no
16100  fi
16101  need_version=yes
16102  ;;
16103
16104sysv4 | sysv4.3*)
16105  version_type=linux # correct to gnu/linux during the next big refactor
16106  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16107  soname_spec='$libname$release$shared_ext$major'
16108  shlibpath_var=LD_LIBRARY_PATH
16109  case $host_vendor in
16110    sni)
16111      shlibpath_overrides_runpath=no
16112      need_lib_prefix=no
16113      runpath_var=LD_RUN_PATH
16114      ;;
16115    siemens)
16116      need_lib_prefix=no
16117      ;;
16118    motorola)
16119      need_lib_prefix=no
16120      need_version=no
16121      shlibpath_overrides_runpath=no
16122      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16123      ;;
16124  esac
16125  ;;
16126
16127sysv4*MP*)
16128  if test -d /usr/nec; then
16129    version_type=linux # correct to gnu/linux during the next big refactor
16130    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16131    soname_spec='$libname$shared_ext.$major'
16132    shlibpath_var=LD_LIBRARY_PATH
16133  fi
16134  ;;
16135
16136sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16137  version_type=sco
16138  need_lib_prefix=no
16139  need_version=no
16140  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16141  soname_spec='$libname$release$shared_ext$major'
16142  shlibpath_var=LD_LIBRARY_PATH
16143  shlibpath_overrides_runpath=yes
16144  hardcode_into_libs=yes
16145  if test yes = "$with_gnu_ld"; then
16146    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16147  else
16148    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16149    case $host_os in
16150      sco3.2v5*)
16151        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16152	;;
16153    esac
16154  fi
16155  sys_lib_dlsearch_path_spec='/usr/lib'
16156  ;;
16157
16158tpf*)
16159  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16160  version_type=linux # correct to gnu/linux during the next big refactor
16161  need_lib_prefix=no
16162  need_version=no
16163  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16164  shlibpath_var=LD_LIBRARY_PATH
16165  shlibpath_overrides_runpath=no
16166  hardcode_into_libs=yes
16167  ;;
16168
16169uts4*)
16170  version_type=linux # correct to gnu/linux during the next big refactor
16171  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16172  soname_spec='$libname$release$shared_ext$major'
16173  shlibpath_var=LD_LIBRARY_PATH
16174  ;;
16175
16176*)
16177  dynamic_linker=no
16178  ;;
16179esac
16180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16181$as_echo "$dynamic_linker" >&6; }
16182test no = "$dynamic_linker" && can_build_shared=no
16183
16184variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16185if test yes = "$GCC"; then
16186  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16187fi
16188
16189if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16190  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16191fi
16192
16193if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16194  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16195fi
16196
16197# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16198configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16199
16200# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16201func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16202
16203# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16204configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16246$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16247hardcode_action_CXX=
16248if test -n "$hardcode_libdir_flag_spec_CXX" ||
16249   test -n "$runpath_var_CXX" ||
16250   test yes = "$hardcode_automatic_CXX"; then
16251
16252  # We can hardcode non-existent directories.
16253  if test no != "$hardcode_direct_CXX" &&
16254     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16255     # have to relink, otherwise we might link with an installed library
16256     # when we should be linking with a yet-to-be-installed one
16257     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16258     test no != "$hardcode_minus_L_CXX"; then
16259    # Linking always hardcodes the temporary library directory.
16260    hardcode_action_CXX=relink
16261  else
16262    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16263    hardcode_action_CXX=immediate
16264  fi
16265else
16266  # We cannot hardcode anything, or else we can only hardcode existing
16267  # directories.
16268  hardcode_action_CXX=unsupported
16269fi
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16271$as_echo "$hardcode_action_CXX" >&6; }
16272
16273if test relink = "$hardcode_action_CXX" ||
16274   test yes = "$inherit_rpath_CXX"; then
16275  # Fast installation is not supported
16276  enable_fast_install=no
16277elif test yes = "$shlibpath_overrides_runpath" ||
16278     test no = "$enable_shared"; then
16279  # Fast installation is not necessary
16280  enable_fast_install=needless
16281fi
16282
16283
16284
16285
16286
16287
16288
16289  fi # test -n "$compiler"
16290
16291  CC=$lt_save_CC
16292  CFLAGS=$lt_save_CFLAGS
16293  LDCXX=$LD
16294  LD=$lt_save_LD
16295  GCC=$lt_save_GCC
16296  with_gnu_ld=$lt_save_with_gnu_ld
16297  lt_cv_path_LDCXX=$lt_cv_path_LD
16298  lt_cv_path_LD=$lt_save_path_LD
16299  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16300  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16301fi # test yes != "$_lt_caught_CXX_error"
16302
16303ac_ext=cpp
16304ac_cpp='$CXXCPP $CPPFLAGS'
16305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323        ac_config_commands="$ac_config_commands libtool"
16324
16325
16326
16327
16328# Only expand once:
16329
16330
16331
16332
16333  ac_ext=c
16334ac_cpp='$CPP $CPPFLAGS'
16335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16337ac_compiler_gnu=$ac_cv_c_compiler_gnu
16338
16339
16340  # Make sure CDPATH is portably set to a sensible value
16341  CDPATH=${ZSH_VERSION+.}:
16342
16343  GAP_CPPFLAGS=""
16344
16345  ######################################
16346  # Find the GAP root directory by
16347  # checking for the sysinfo.gap file
16348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP root directory" >&5
16349$as_echo_n "checking for GAP root directory... " >&6; }
16350  GAPROOT="../.."
16351
16352  #Allow the user to specify the location of GAP
16353  #
16354
16355# Check whether --with-gaproot was given.
16356if test "${with_gaproot+set}" = set; then :
16357  withval=$with_gaproot; GAPROOT="$withval"
16358fi
16359
16360
16361  # Convert the path to absolute
16362  GAPROOT=`cd $GAPROOT > /dev/null 2>&1 && pwd`
16363
16364  if test -e ${GAPROOT}/sysinfo.gap; then
16365    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GAPROOT}" >&5
16366$as_echo "${GAPROOT}" >&6; }
16367  else
16368    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
16369$as_echo "Not found" >&6; }
16370
16371    echo ""
16372    echo "********************************************************************"
16373    echo "  ERROR"
16374    echo ""
16375    echo "  Cannot find your GAP installation. Please specify the location of"
16376    echo "  GAP's root directory using --with-gaproot=<path>"
16377    echo ""
16378    echo "  The GAP root directory (as far as this package is concerned) is"
16379    echo "  the one containing the file sysinfo.gap"
16380    echo "********************************************************************"
16381    echo ""
16382
16383    as_fn_error $? "Unable to find GAP root directory" "$LINENO" 5
16384  fi
16385
16386  #####################################
16387  # Now find the architecture
16388
16389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP architecture" >&5
16390$as_echo_n "checking for GAP architecture... " >&6; }
16391  GAPARCH="Unknown"
16392  . $GAPROOT/sysinfo.gap
16393  if test "x$GAParch" != "x"; then
16394    GAPARCH=$GAParch
16395  fi
16396
16397  if test "x$GAPARCH" = "xUnknown" ; then
16398    echo ""
16399    echo "********************************************************************"
16400    echo "  ERROR"
16401    echo ""
16402    echo "  Found a GAP installation at $GAPROOT but could not find"
16403    echo "  information about GAP's architecture in the file"
16404    echo "    ${GAPROOT}/sysinfo.gap ."
16405    echo "  This file should be present: please check your GAP installation."
16406    echo "********************************************************************"
16407    echo ""
16408
16409    as_fn_error $? "Unable to find plausible GAParch information." "$LINENO" 5
16410  fi
16411
16412
16413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP >= 4.9" >&5
16414$as_echo_n "checking for GAP >= 4.9... " >&6; }
16415  # test if this GAP >= 4.9
16416  if test "x$GAP_CPPFLAGS" != x; then
16417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16418$as_echo "yes" >&6; }
16419  else
16420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16421$as_echo "no" >&6; }
16422    #####################################
16423    # Now check for the GAP header files
16424
16425    bad=0
16426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP include files" >&5
16427$as_echo_n "checking for GAP include files... " >&6; }
16428    if test -r $GAPROOT/src/compiled.h; then
16429      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/src/compiled.h" >&5
16430$as_echo "$GAPROOT/src/compiled.h" >&6; }
16431    else
16432      { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
16433$as_echo "Not found" >&6; }
16434      bad=1
16435    fi
16436    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP config.h" >&5
16437$as_echo_n "checking for GAP config.h... " >&6; }
16438    if test -r $GAPROOT/bin/$GAPARCH/config.h; then
16439      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/bin/$GAPARCH/config.h" >&5
16440$as_echo "$GAPROOT/bin/$GAPARCH/config.h" >&6; }
16441    else
16442      { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
16443$as_echo "Not found" >&6; }
16444      bad=1
16445    fi
16446
16447    if test "x$bad" = "x1"; then
16448      echo ""
16449      echo "********************************************************************"
16450      echo "  ERROR"
16451      echo ""
16452      echo "  Failed to find the GAP source header files in src/ and"
16453      echo "  GAP's config.h in the architecture dependend directory"
16454      echo ""
16455      echo "  The kernel build process expects to find the normal GAP "
16456      echo "  root directory structure as it is after building GAP itself, and"
16457      echo "  in particular the files"
16458      echo "      <gaproot>/sysinfo.gap"
16459      echo "      <gaproot>/src/<includes>"
16460      echo "  and <gaproot>/bin/<architecture>/bin/config.h."
16461      echo "  Please make sure that your GAP root directory structure"
16462      echo "  conforms to this layout, or give the correct GAP root using"
16463      echo "  --with-gaproot=<path>"
16464      echo "********************************************************************"
16465      echo ""
16466      as_fn_error $? "Unable to find GAP include files in /src subdirectory" "$LINENO" 5
16467    fi
16468
16469    ARCHPATH=$GAPROOT/bin/$GAPARCH
16470    GAP_CPPFLAGS="-I$GAPROOT -iquote $GAPROOT/src -I$ARCHPATH"
16471
16472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP's gmp.h location" >&5
16473$as_echo_n "checking for GAP's gmp.h location... " >&6; }
16474    if test -r "$ARCHPATH/extern/gmp/include/gmp.h"; then
16475      GAP_CPPFLAGS="$GAP_CPPFLAGS -I$ARCHPATH/extern/gmp/include"
16476      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCHPATH/extern/gmp/include/gmp.h" >&5
16477$as_echo "$ARCHPATH/extern/gmp/include/gmp.h" >&6; }
16478    else
16479      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, GAP was compiled without its own GMP" >&5
16480$as_echo "not found, GAP was compiled without its own GMP" >&6; }
16481    fi
16482  fi
16483
16484
16485
16486
16487
16488
16489
16490
16491  ac_ext=cpp
16492ac_cpp='$CXXCPP $CPPFLAGS'
16493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16496
16497
16498
16499case $host_os in
16500  *cygwin* ) CYGWIN=yes;;
16501         * ) CYGWIN=no;;
16502esac
16503 if test "$CYGWIN" = "yes"; then
16504  SYS_IS_CYGWIN_TRUE=
16505  SYS_IS_CYGWIN_FALSE='#'
16506else
16507  SYS_IS_CYGWIN_TRUE='#'
16508  SYS_IS_CYGWIN_FALSE=
16509fi
16510
16511if test "$CYGWIN" = "yes"; then
16512
16513$as_echo "#define SYS_IS_CYGWIN32 1" >>confdefs.h
16514
16515else
16516
16517$as_echo "#define SYS_IS_CYGWIN32 0" >>confdefs.h
16518
16519fi
16520
16521# Check whether --enable-debug was given.
16522if test "${enable_debug+set}" = set; then :
16523  enableval=$enable_debug;
16524$as_echo "#define KERNEL_DEBUG 1" >>confdefs.h
16525
16526else
16527  enable_debug=no
16528
16529fi
16530
16531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug mode" >&5
16532$as_echo_n "checking whether to enable debug mode... " >&6; }
16533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
16534$as_echo "$enable_debug" >&6; }
16535
16536 if test "x$enable_debug" = xyes; then
16537  KERNEL_DEBUG_TRUE=
16538  KERNEL_DEBUG_FALSE='#'
16539else
16540  KERNEL_DEBUG_TRUE='#'
16541  KERNEL_DEBUG_FALSE=
16542fi
16543
16544
16545# Check whether --enable-stats was given.
16546if test "${enable_stats+set}" = set; then :
16547  enableval=$enable_stats;
16548$as_echo "#define ENABLE_STATS 1" >>confdefs.h
16549
16550else
16551  enable_stats=no
16552
16553fi
16554
16555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable stats mode" >&5
16556$as_echo_n "checking whether to enable stats mode... " >&6; }
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stats" >&5
16558$as_echo "$enable_stats" >&6; }
16559
16560 if test "x$enable_stats" = xyes; then
16561  ENABLE_STATS_TRUE=
16562  ENABLE_STATS_FALSE='#'
16563else
16564  ENABLE_STATS_TRUE='#'
16565  ENABLE_STATS_FALSE=
16566fi
16567
16568
16569
16570
16571
16572	# allow to override gcov location
16573
16574# Check whether --with-gcov was given.
16575if test "${with_gcov+set}" = set; then :
16576  withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
16577else
16578  _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
16579fi
16580
16581
16582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
16583$as_echo_n "checking whether to build with code coverage support... " >&6; }
16584	# Check whether --enable-code-coverage was given.
16585if test "${enable_code_coverage+set}" = set; then :
16586  enableval=$enable_code_coverage;
16587else
16588  enable_code_coverage=no
16589fi
16590
16591
16592	 if test x$enable_code_coverage = xyes; then
16593  CODE_COVERAGE_ENABLED_TRUE=
16594  CODE_COVERAGE_ENABLED_FALSE='#'
16595else
16596  CODE_COVERAGE_ENABLED_TRUE='#'
16597  CODE_COVERAGE_ENABLED_FALSE=
16598fi
16599
16600	CODE_COVERAGE_ENABLED=$enable_code_coverage
16601
16602	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
16603$as_echo "$enable_code_coverage" >&6; }
16604
16605	if  test "$enable_code_coverage" = "yes" ; then :
16606
16607		# check for gcov
16608		if test -n "$ac_tool_prefix"; then
16609  # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16610set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16612$as_echo_n "checking for $ac_word... " >&6; }
16613if ${ac_cv_prog_GCOV+:} false; then :
16614  $as_echo_n "(cached) " >&6
16615else
16616  if test -n "$GCOV"; then
16617  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
16618else
16619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16620for as_dir in $PATH
16621do
16622  IFS=$as_save_IFS
16623  test -z "$as_dir" && as_dir=.
16624    for ac_exec_ext in '' $ac_executable_extensions; do
16625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16626    ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16628    break 2
16629  fi
16630done
16631  done
16632IFS=$as_save_IFS
16633
16634fi
16635fi
16636GCOV=$ac_cv_prog_GCOV
16637if test -n "$GCOV"; then
16638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
16639$as_echo "$GCOV" >&6; }
16640else
16641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16642$as_echo "no" >&6; }
16643fi
16644
16645
16646fi
16647if test -z "$ac_cv_prog_GCOV"; then
16648  ac_ct_GCOV=$GCOV
16649  # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16650set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16652$as_echo_n "checking for $ac_word... " >&6; }
16653if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
16654  $as_echo_n "(cached) " >&6
16655else
16656  if test -n "$ac_ct_GCOV"; then
16657  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
16658else
16659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16660for as_dir in $PATH
16661do
16662  IFS=$as_save_IFS
16663  test -z "$as_dir" && as_dir=.
16664    for ac_exec_ext in '' $ac_executable_extensions; do
16665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16666    ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16668    break 2
16669  fi
16670done
16671  done
16672IFS=$as_save_IFS
16673
16674fi
16675fi
16676ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
16677if test -n "$ac_ct_GCOV"; then
16678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
16679$as_echo "$ac_ct_GCOV" >&6; }
16680else
16681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682$as_echo "no" >&6; }
16683fi
16684
16685  if test "x$ac_ct_GCOV" = x; then
16686    GCOV=":"
16687  else
16688    case $cross_compiling:$ac_tool_warned in
16689yes:)
16690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16692ac_tool_warned=yes ;;
16693esac
16694    GCOV=$ac_ct_GCOV
16695  fi
16696else
16697  GCOV="$ac_cv_prog_GCOV"
16698fi
16699
16700		if test "X$GCOV" = "X:"; then :
16701  as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
16702fi
16703
16704
16705				if  test "$GCC" = "no" ; then :
16706
16707			as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
16708
16709fi
16710
16711		# Extract the first word of "lcov", so it can be a program name with args.
16712set dummy lcov; ac_word=$2
16713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16714$as_echo_n "checking for $ac_word... " >&6; }
16715if ${ac_cv_prog_LCOV+:} false; then :
16716  $as_echo_n "(cached) " >&6
16717else
16718  if test -n "$LCOV"; then
16719  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
16720else
16721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16722for as_dir in $PATH
16723do
16724  IFS=$as_save_IFS
16725  test -z "$as_dir" && as_dir=.
16726    for ac_exec_ext in '' $ac_executable_extensions; do
16727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16728    ac_cv_prog_LCOV="lcov"
16729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16730    break 2
16731  fi
16732done
16733  done
16734IFS=$as_save_IFS
16735
16736fi
16737fi
16738LCOV=$ac_cv_prog_LCOV
16739if test -n "$LCOV"; then
16740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
16741$as_echo "$LCOV" >&6; }
16742else
16743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16744$as_echo "no" >&6; }
16745fi
16746
16747
16748		# Extract the first word of "genhtml", so it can be a program name with args.
16749set dummy genhtml; ac_word=$2
16750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16751$as_echo_n "checking for $ac_word... " >&6; }
16752if ${ac_cv_prog_GENHTML+:} false; then :
16753  $as_echo_n "(cached) " >&6
16754else
16755  if test -n "$GENHTML"; then
16756  ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
16757else
16758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16759for as_dir in $PATH
16760do
16761  IFS=$as_save_IFS
16762  test -z "$as_dir" && as_dir=.
16763    for ac_exec_ext in '' $ac_executable_extensions; do
16764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16765    ac_cv_prog_GENHTML="genhtml"
16766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16767    break 2
16768  fi
16769done
16770  done
16771IFS=$as_save_IFS
16772
16773fi
16774fi
16775GENHTML=$ac_cv_prog_GENHTML
16776if test -n "$GENHTML"; then
16777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
16778$as_echo "$GENHTML" >&6; }
16779else
16780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16781$as_echo "no" >&6; }
16782fi
16783
16784
16785
16786		if  test -z "$LCOV" ; then :
16787
16788			as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
16789
16790fi
16791
16792		if  test -z "$GENHTML" ; then :
16793
16794			as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
16795
16796fi
16797
16798						CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
16799		CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
16800		CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
16801		CODE_COVERAGE_LIBS="-lgcov"
16802		CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
16803
16804
16805
16806
16807
16808
16809
16810		CODE_COVERAGE_RULES_CHECK='
16811	-$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
16812	$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
16813'
16814		CODE_COVERAGE_RULES_CAPTURE='
16815	$(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
16816	$(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
16817	-@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
16818	$(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
16819	@echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
16820'
16821		CODE_COVERAGE_RULES_CLEAN='
16822clean: code-coverage-clean
16823distclean: code-coverage-clean
16824code-coverage-clean:
16825	-$(LCOV) --directory $(top_builddir) -z
16826	-rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16827	-find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
16828'
16829
16830else
16831
16832		CODE_COVERAGE_RULES_CHECK='
16833	@echo "Need to reconfigure with --enable-code-coverage"
16834'
16835		CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
16836		CODE_COVERAGE_RULES_CLEAN=''
16837
16838fi
16839
16840CODE_COVERAGE_RULES='
16841# Code coverage
16842#
16843# Optional:
16844#  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
16845#    Multiple directories may be specified, separated by whitespace.
16846#    (Default: $(top_builddir))
16847#  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
16848#    by lcov for code coverage. (Default:
16849#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
16850#  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
16851#    reports to be created. (Default:
16852#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
16853#  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
16854#    set to 0 to disable it and leave empty to stay with the default.
16855#    (Default: empty)
16856#  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
16857#    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
16858#  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
16859#    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
16860#  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
16861#  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
16862#    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16863#  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
16864#    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16865#  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
16866#    lcov instance. (Default: empty)
16867#  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
16868#    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
16869#  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
16870#    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
16871#  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
16872#    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
16873#  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
16874#
16875# The generated report will be titled using the $(PACKAGE_NAME) and
16876# $(PACKAGE_VERSION). In order to add the current git hash to the title,
16877# use the git-version-gen script, available online.
16878
16879# Optional variables
16880CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
16881CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
16882CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
16883CODE_COVERAGE_BRANCH_COVERAGE ?=
16884CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
16885--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
16886CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
16887CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
16888CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16889CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16890CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
16891CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
16892CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
16893$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
16894--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
16895CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
16896CODE_COVERAGE_IGNORE_PATTERN ?=
16897
16898GITIGNOREFILES ?=
16899GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16900
16901code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
16902code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
16903code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
16904 $(CODE_COVERAGE_OUTPUT_FILE);
16905code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
16906code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
16907code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
16908 $(CODE_COVERAGE_IGNORE_PATTERN);
16909code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
16910code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
16911code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
16912code_coverage_quiet = $(code_coverage_quiet_$(V))
16913code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
16914code_coverage_quiet_0 = --quiet
16915
16916# sanitizes the test-name: replaces with underscores: dashes and dots
16917code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
16918
16919# Use recursive makes in order to ignore errors during check
16920check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
16921
16922# Capture code coverage data
16923code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
16924
16925# Hook rule executed before code-coverage-capture, overridable by the user
16926code-coverage-capture-hook:
16927
16928'"$CODE_COVERAGE_RULES_CLEAN"'
16929
16930A''M_DISTCHECK_CONFIGURE_FLAGS ?=
16931A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
16932
16933.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
16934'
16935
16936
16937
16938
16939
16940# Enable compiler warnings
16941
16942# Check whether --enable-compile-warnings was given.
16943if test "${enable_compile_warnings+set}" = set; then :
16944  enableval=$enable_compile_warnings; enable_compile_warnings=yes
16945else
16946  enable_compile_warnings=no
16947fi
16948
16949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether enable compiler warnings" >&5
16950$as_echo_n "checking whether enable compiler warnings... " >&6; }
16951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_compile_warnings" >&5
16952$as_echo "$enable_compile_warnings" >&6; }
16953
16954if test "x$enable_compile_warnings" != "xno"; then :
16955  ax_enable_compile_warnings=yes
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965    # Variable names
16966
16967
16968    ac_ext=cpp
16969ac_cpp='$CXXCPP $CPPFLAGS'
16970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16973
16974
16975    # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
16976    # flags, otherwise they are always appended to the warn_cxxflags variable,
16977    # and Clang warns on them for every compilation unit.
16978    # If this is passed to GCC, it will explode, so the flag must be enabled
16979    # conditionally.
16980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5
16981$as_echo_n "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; }
16982if ${ax_cv_check_cxxflags___Werror_unknown_warning_option+:} false; then :
16983  $as_echo_n "(cached) " >&6
16984else
16985
16986  ax_check_save_flags=$CXXFLAGS
16987  CXXFLAGS="$CXXFLAGS  -Werror=unknown-warning-option"
16988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989/* end confdefs.h.  */
16990
16991int
16992main ()
16993{
16994
16995  ;
16996  return 0;
16997}
16998_ACEOF
16999if ac_fn_cxx_try_compile "$LINENO"; then :
17000  ax_cv_check_cxxflags___Werror_unknown_warning_option=yes
17001else
17002  ax_cv_check_cxxflags___Werror_unknown_warning_option=no
17003fi
17004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005  CXXFLAGS=$ax_check_save_flags
17006fi
17007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5
17008$as_echo "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; }
17009if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes; then :
17010
17011        ax_compiler_flags_test="-Werror=unknown-warning-option"
17012
17013else
17014
17015        ax_compiler_flags_test=""
17016
17017fi
17018
17019
17020    # Check that -Wno-suggest-attribute=format is supported
17021    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wno-suggest-attribute=format" >&5
17022$as_echo_n "checking whether C++ compiler accepts -Wno-suggest-attribute=format... " >&6; }
17023if ${ax_cv_check_cxxflags___Wno_suggest_attribute_format+:} false; then :
17024  $as_echo_n "(cached) " >&6
17025else
17026
17027  ax_check_save_flags=$CXXFLAGS
17028  CXXFLAGS="$CXXFLAGS  -Wno-suggest-attribute=format"
17029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030/* end confdefs.h.  */
17031
17032int
17033main ()
17034{
17035
17036  ;
17037  return 0;
17038}
17039_ACEOF
17040if ac_fn_cxx_try_compile "$LINENO"; then :
17041  ax_cv_check_cxxflags___Wno_suggest_attribute_format=yes
17042else
17043  ax_cv_check_cxxflags___Wno_suggest_attribute_format=no
17044fi
17045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046  CXXFLAGS=$ax_check_save_flags
17047fi
17048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wno_suggest_attribute_format" >&5
17049$as_echo "$ax_cv_check_cxxflags___Wno_suggest_attribute_format" >&6; }
17050if test "x$ax_cv_check_cxxflags___Wno_suggest_attribute_format" = xyes; then :
17051
17052        ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format"
17053
17054else
17055
17056        ax_compiler_no_suggest_attribute_flags=""
17057
17058fi
17059
17060
17061    # Base flags
17062
17063
17064
17065
17066for flag in          -fno-strict-aliasing                 -pedantic        -Wold-style-cast     ; do
17067  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
17068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17069$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
17070if eval \${$as_CACHEVAR+:} false; then :
17071  $as_echo_n "(cached) " >&6
17072else
17073
17074  ax_check_save_flags=$CXXFLAGS
17075  CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
17076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077/* end confdefs.h.  */
17078
17079int
17080main ()
17081{
17082
17083  ;
17084  return 0;
17085}
17086_ACEOF
17087if ac_fn_cxx_try_compile "$LINENO"; then :
17088  eval "$as_CACHEVAR=yes"
17089else
17090  eval "$as_CACHEVAR=no"
17091fi
17092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093  CXXFLAGS=$ax_check_save_flags
17094fi
17095eval ac_res=\$$as_CACHEVAR
17096	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17097$as_echo "$ac_res" >&6; }
17098if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17099
17100if ${WARNING_CXXFLAGS+:} false; then :
17101
17102  case " $WARNING_CXXFLAGS " in #(
17103  *" $flag "*) :
17104    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS already contains \$flag"; } >&5
17105  (: WARNING_CXXFLAGS already contains $flag) 2>&5
17106  ac_status=$?
17107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17108  test $ac_status = 0; } ;; #(
17109  *) :
17110
17111     as_fn_append WARNING_CXXFLAGS " $flag"
17112     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5
17113  (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5
17114  ac_status=$?
17115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17116  test $ac_status = 0; }
17117     ;;
17118esac
17119
17120else
17121
17122  WARNING_CXXFLAGS=$flag
17123  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5
17124  (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5
17125  ac_status=$?
17126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17127  test $ac_status = 0; }
17128
17129fi
17130
17131else
17132  :
17133fi
17134
17135done
17136
17137
17138    if test "$ax_enable_compile_warnings" != "no"; then :
17139
17140        # "yes" flags
17141
17142
17143
17144
17145for flag in              -Wall             -Wextra             -Wundef             -Wwrite-strings             -Wpointer-arith             -Wmissing-declarations             -Wredundant-decls             -Wno-unused-parameter             -Wno-missing-field-initializers             -Wformat=2             -Wcast-align             -Wformat-nonliteral             -Wformat-security             -Wsign-compare             -Wstrict-aliasing             -Wshadow             -Winline             -Wpacked             -Wmissing-format-attribute             -Wmissing-noreturn             -Winit-self             -Wredundant-decls             -Wmissing-include-dirs             -Wunused-but-set-variable             -Warray-bounds             -Wreturn-type             -Wno-overloaded-virtual             -Wswitch-enum             -Wswitch-default                                                             ; do
17146  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
17147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17148$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
17149if eval \${$as_CACHEVAR+:} false; then :
17150  $as_echo_n "(cached) " >&6
17151else
17152
17153  ax_check_save_flags=$CXXFLAGS
17154  CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
17155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156/* end confdefs.h.  */
17157
17158int
17159main ()
17160{
17161
17162  ;
17163  return 0;
17164}
17165_ACEOF
17166if ac_fn_cxx_try_compile "$LINENO"; then :
17167  eval "$as_CACHEVAR=yes"
17168else
17169  eval "$as_CACHEVAR=no"
17170fi
17171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17172  CXXFLAGS=$ax_check_save_flags
17173fi
17174eval ac_res=\$$as_CACHEVAR
17175	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17176$as_echo "$ac_res" >&6; }
17177if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17178
17179if ${WARNING_CXXFLAGS+:} false; then :
17180
17181  case " $WARNING_CXXFLAGS " in #(
17182  *" $flag "*) :
17183    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS already contains \$flag"; } >&5
17184  (: WARNING_CXXFLAGS already contains $flag) 2>&5
17185  ac_status=$?
17186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17187  test $ac_status = 0; } ;; #(
17188  *) :
17189
17190     as_fn_append WARNING_CXXFLAGS " $flag"
17191     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5
17192  (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5
17193  ac_status=$?
17194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17195  test $ac_status = 0; }
17196     ;;
17197esac
17198
17199else
17200
17201  WARNING_CXXFLAGS=$flag
17202  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5
17203  (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5
17204  ac_status=$?
17205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17206  test $ac_status = 0; }
17207
17208fi
17209
17210else
17211  :
17212fi
17213
17214done
17215
17216
17217fi
17218    if test "$ax_enable_compile_warnings" = "error"; then :
17219
17220        # "error" flags; -Werror has to be appended unconditionally because
17221        # it's not possible to test for
17222        #
17223        # suggest-attribute=format is disabled because it gives too many false
17224        # positives
17225
17226if ${WARNING_CXXFLAGS+:} false; then :
17227
17228  case " $WARNING_CXXFLAGS " in #(
17229  *" -Werror "*) :
17230    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS already contains -Werror"; } >&5
17231  (: WARNING_CXXFLAGS already contains -Werror) 2>&5
17232  ac_status=$?
17233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17234  test $ac_status = 0; } ;; #(
17235  *) :
17236
17237     as_fn_append WARNING_CXXFLAGS " -Werror"
17238     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5
17239  (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5
17240  ac_status=$?
17241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17242  test $ac_status = 0; }
17243     ;;
17244esac
17245
17246else
17247
17248  WARNING_CXXFLAGS=-Werror
17249  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5
17250  (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5
17251  ac_status=$?
17252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17253  test $ac_status = 0; }
17254
17255fi
17256
17257
17258
17259
17260
17261
17262for flag in              $ax_compiler_no_suggest_attribute_flags         ; do
17263  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
17264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17265$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
17266if eval \${$as_CACHEVAR+:} false; then :
17267  $as_echo_n "(cached) " >&6
17268else
17269
17270  ax_check_save_flags=$CXXFLAGS
17271  CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
17272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273/* end confdefs.h.  */
17274
17275int
17276main ()
17277{
17278
17279  ;
17280  return 0;
17281}
17282_ACEOF
17283if ac_fn_cxx_try_compile "$LINENO"; then :
17284  eval "$as_CACHEVAR=yes"
17285else
17286  eval "$as_CACHEVAR=no"
17287fi
17288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17289  CXXFLAGS=$ax_check_save_flags
17290fi
17291eval ac_res=\$$as_CACHEVAR
17292	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17293$as_echo "$ac_res" >&6; }
17294if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17295
17296if ${WARNING_CXXFLAGS+:} false; then :
17297
17298  case " $WARNING_CXXFLAGS " in #(
17299  *" $flag "*) :
17300    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS already contains \$flag"; } >&5
17301  (: WARNING_CXXFLAGS already contains $flag) 2>&5
17302  ac_status=$?
17303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17304  test $ac_status = 0; } ;; #(
17305  *) :
17306
17307     as_fn_append WARNING_CXXFLAGS " $flag"
17308     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5
17309  (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5
17310  ac_status=$?
17311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17312  test $ac_status = 0; }
17313     ;;
17314esac
17315
17316else
17317
17318  WARNING_CXXFLAGS=$flag
17319  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5
17320  (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5
17321  ac_status=$?
17322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17323  test $ac_status = 0; }
17324
17325fi
17326
17327else
17328  :
17329fi
17330
17331done
17332
17333
17334fi
17335
17336    # In the flags below, when disabling specific flags, always add *both*
17337    # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
17338    # we enable -Werror, disable a flag, and a build bot passes CXXFLAGS=-Wall,
17339    # which effectively turns that flag back on again as an error.
17340    for flag in $WARNING_CXXFLAGS; do
17341        case $flag in #(
17342  -Wno-*=*) :
17343     ;; #(
17344  -Wno-*) :
17345
17346
17347
17348
17349
17350for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
17351  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
17352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17353$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
17354if eval \${$as_CACHEVAR+:} false; then :
17355  $as_echo_n "(cached) " >&6
17356else
17357
17358  ax_check_save_flags=$CXXFLAGS
17359  CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
17360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361/* end confdefs.h.  */
17362
17363int
17364main ()
17365{
17366
17367  ;
17368  return 0;
17369}
17370_ACEOF
17371if ac_fn_cxx_try_compile "$LINENO"; then :
17372  eval "$as_CACHEVAR=yes"
17373else
17374  eval "$as_CACHEVAR=no"
17375fi
17376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17377  CXXFLAGS=$ax_check_save_flags
17378fi
17379eval ac_res=\$$as_CACHEVAR
17380	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17381$as_echo "$ac_res" >&6; }
17382if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17383
17384if ${WARNING_CXXFLAGS+:} false; then :
17385
17386  case " $WARNING_CXXFLAGS " in #(
17387  *" $flag "*) :
17388    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS already contains \$flag"; } >&5
17389  (: WARNING_CXXFLAGS already contains $flag) 2>&5
17390  ac_status=$?
17391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17392  test $ac_status = 0; } ;; #(
17393  *) :
17394
17395     as_fn_append WARNING_CXXFLAGS " $flag"
17396     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5
17397  (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5
17398  ac_status=$?
17399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17400  test $ac_status = 0; }
17401     ;;
17402esac
17403
17404else
17405
17406  WARNING_CXXFLAGS=$flag
17407  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5
17408  (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5
17409  ac_status=$?
17410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17411  test $ac_status = 0; }
17412
17413fi
17414
17415else
17416  :
17417fi
17418
17419done
17420
17421                 ;; #(
17422  *) :
17423     ;;
17424esac
17425    done
17426
17427    ac_ext=cpp
17428ac_cpp='$CXXCPP $CPPFLAGS'
17429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17432
17433
17434    # Substitute the variables
17435
17436
17437
17438fi
17439
17440if test "x$enable_compile_warnings" != "xno"; then :
17441  ax_enable_compile_warnings=yes
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451    # Variable names
17452
17453
17454    ac_ext=c
17455ac_cpp='$CPP $CPPFLAGS'
17456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17458ac_compiler_gnu=$ac_cv_c_compiler_gnu
17459
17460
17461    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462/* end confdefs.h.  */
17463
17464      #ifndef __cplusplus
17465       #error "no C++"
17466       #endif
17467int
17468main ()
17469{
17470
17471  ;
17472  return 0;
17473}
17474_ACEOF
17475if ac_fn_c_try_compile "$LINENO"; then :
17476  ax_compiler_cxx=yes;
17477else
17478  ax_compiler_cxx=no;
17479fi
17480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17481
17482    # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
17483    # flags, otherwise they are always appended to the warn_cflags variable, and
17484    # Clang warns on them for every compilation unit.
17485    # If this is passed to GCC, it will explode, so the flag must be enabled
17486    # conditionally.
17487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
17488$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
17489if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
17490  $as_echo_n "(cached) " >&6
17491else
17492
17493  ax_check_save_flags=$CFLAGS
17494  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
17495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496/* end confdefs.h.  */
17497
17498int
17499main ()
17500{
17501
17502  ;
17503  return 0;
17504}
17505_ACEOF
17506if ac_fn_c_try_compile "$LINENO"; then :
17507  ax_cv_check_cflags___Werror_unknown_warning_option=yes
17508else
17509  ax_cv_check_cflags___Werror_unknown_warning_option=no
17510fi
17511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512  CFLAGS=$ax_check_save_flags
17513fi
17514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
17515$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
17516if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
17517
17518        ax_compiler_flags_test="-Werror=unknown-warning-option"
17519
17520else
17521
17522        ax_compiler_flags_test=""
17523
17524fi
17525
17526
17527    # Check that -Wno-suggest-attribute=format is supported
17528    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-suggest-attribute=format" >&5
17529$as_echo_n "checking whether C compiler accepts -Wno-suggest-attribute=format... " >&6; }
17530if ${ax_cv_check_cflags___Wno_suggest_attribute_format+:} false; then :
17531  $as_echo_n "(cached) " >&6
17532else
17533
17534  ax_check_save_flags=$CFLAGS
17535  CFLAGS="$CFLAGS  -Wno-suggest-attribute=format"
17536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537/* end confdefs.h.  */
17538
17539int
17540main ()
17541{
17542
17543  ;
17544  return 0;
17545}
17546_ACEOF
17547if ac_fn_c_try_compile "$LINENO"; then :
17548  ax_cv_check_cflags___Wno_suggest_attribute_format=yes
17549else
17550  ax_cv_check_cflags___Wno_suggest_attribute_format=no
17551fi
17552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17553  CFLAGS=$ax_check_save_flags
17554fi
17555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_suggest_attribute_format" >&5
17556$as_echo "$ax_cv_check_cflags___Wno_suggest_attribute_format" >&6; }
17557if test "x$ax_cv_check_cflags___Wno_suggest_attribute_format" = xyes; then :
17558
17559        ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format"
17560
17561else
17562
17563        ax_compiler_no_suggest_attribute_flags=""
17564
17565fi
17566
17567
17568    # Base flags
17569
17570
17571
17572
17573for flag in          -fno-strict-aliasing                 -pedantic        -Wold-style-cast     ; do
17574  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
17575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17576$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17577if eval \${$as_CACHEVAR+:} false; then :
17578  $as_echo_n "(cached) " >&6
17579else
17580
17581  ax_check_save_flags=$CFLAGS
17582  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
17583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584/* end confdefs.h.  */
17585
17586int
17587main ()
17588{
17589
17590  ;
17591  return 0;
17592}
17593_ACEOF
17594if ac_fn_c_try_compile "$LINENO"; then :
17595  eval "$as_CACHEVAR=yes"
17596else
17597  eval "$as_CACHEVAR=no"
17598fi
17599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17600  CFLAGS=$ax_check_save_flags
17601fi
17602eval ac_res=\$$as_CACHEVAR
17603	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17604$as_echo "$ac_res" >&6; }
17605if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17606
17607if ${WARNING_CFLAGS+:} false; then :
17608
17609  case " $WARNING_CFLAGS " in #(
17610  *" $flag "*) :
17611    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS already contains \$flag"; } >&5
17612  (: WARNING_CFLAGS already contains $flag) 2>&5
17613  ac_status=$?
17614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17615  test $ac_status = 0; } ;; #(
17616  *) :
17617
17618     as_fn_append WARNING_CFLAGS " $flag"
17619     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17620  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17621  ac_status=$?
17622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17623  test $ac_status = 0; }
17624     ;;
17625esac
17626
17627else
17628
17629  WARNING_CFLAGS=$flag
17630  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17631  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17632  ac_status=$?
17633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17634  test $ac_status = 0; }
17635
17636fi
17637
17638else
17639  :
17640fi
17641
17642done
17643
17644
17645    if test "$ax_enable_compile_warnings" != "no"; then :
17646
17647        if test "$ax_compiler_cxx" = "no" ; then
17648            # C-only flags. Warn in C++
17649
17650
17651
17652
17653for flag in                  -Wnested-externs                 -Wmissing-prototypes                 -Wstrict-prototypes                 -Wdeclaration-after-statement                 -Wimplicit-function-declaration                 -Wold-style-definition                 -Wjump-misses-init             ; do
17654  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
17655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17656$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17657if eval \${$as_CACHEVAR+:} false; then :
17658  $as_echo_n "(cached) " >&6
17659else
17660
17661  ax_check_save_flags=$CFLAGS
17662  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
17663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664/* end confdefs.h.  */
17665
17666int
17667main ()
17668{
17669
17670  ;
17671  return 0;
17672}
17673_ACEOF
17674if ac_fn_c_try_compile "$LINENO"; then :
17675  eval "$as_CACHEVAR=yes"
17676else
17677  eval "$as_CACHEVAR=no"
17678fi
17679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17680  CFLAGS=$ax_check_save_flags
17681fi
17682eval ac_res=\$$as_CACHEVAR
17683	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17684$as_echo "$ac_res" >&6; }
17685if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17686
17687if ${WARNING_CFLAGS+:} false; then :
17688
17689  case " $WARNING_CFLAGS " in #(
17690  *" $flag "*) :
17691    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS already contains \$flag"; } >&5
17692  (: WARNING_CFLAGS already contains $flag) 2>&5
17693  ac_status=$?
17694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17695  test $ac_status = 0; } ;; #(
17696  *) :
17697
17698     as_fn_append WARNING_CFLAGS " $flag"
17699     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17700  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17701  ac_status=$?
17702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17703  test $ac_status = 0; }
17704     ;;
17705esac
17706
17707else
17708
17709  WARNING_CFLAGS=$flag
17710  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17711  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17712  ac_status=$?
17713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17714  test $ac_status = 0; }
17715
17716fi
17717
17718else
17719  :
17720fi
17721
17722done
17723
17724        fi
17725
17726        # "yes" flags
17727
17728
17729
17730
17731for flag in              -Wall             -Wextra             -Wundef             -Wwrite-strings             -Wpointer-arith             -Wmissing-declarations             -Wredundant-decls             -Wno-unused-parameter             -Wno-missing-field-initializers             -Wformat=2             -Wcast-align             -Wformat-nonliteral             -Wformat-security             -Wsign-compare             -Wstrict-aliasing             -Wshadow             -Winline             -Wpacked             -Wmissing-format-attribute             -Wmissing-noreturn             -Winit-self             -Wredundant-decls             -Wmissing-include-dirs             -Wunused-but-set-variable             -Warray-bounds             -Wreturn-type             -Wswitch-enum             -Wswitch-default             -Wduplicated-cond             -Wduplicated-branches             -Wlogical-op             -Wrestrict             -Wnull-dereference             -Wdouble-promotion                                                             ; do
17732  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
17733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17734$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17735if eval \${$as_CACHEVAR+:} false; then :
17736  $as_echo_n "(cached) " >&6
17737else
17738
17739  ax_check_save_flags=$CFLAGS
17740  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
17741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742/* end confdefs.h.  */
17743
17744int
17745main ()
17746{
17747
17748  ;
17749  return 0;
17750}
17751_ACEOF
17752if ac_fn_c_try_compile "$LINENO"; then :
17753  eval "$as_CACHEVAR=yes"
17754else
17755  eval "$as_CACHEVAR=no"
17756fi
17757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17758  CFLAGS=$ax_check_save_flags
17759fi
17760eval ac_res=\$$as_CACHEVAR
17761	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17762$as_echo "$ac_res" >&6; }
17763if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17764
17765if ${WARNING_CFLAGS+:} false; then :
17766
17767  case " $WARNING_CFLAGS " in #(
17768  *" $flag "*) :
17769    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS already contains \$flag"; } >&5
17770  (: WARNING_CFLAGS already contains $flag) 2>&5
17771  ac_status=$?
17772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17773  test $ac_status = 0; } ;; #(
17774  *) :
17775
17776     as_fn_append WARNING_CFLAGS " $flag"
17777     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17778  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17779  ac_status=$?
17780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17781  test $ac_status = 0; }
17782     ;;
17783esac
17784
17785else
17786
17787  WARNING_CFLAGS=$flag
17788  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17789  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17790  ac_status=$?
17791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17792  test $ac_status = 0; }
17793
17794fi
17795
17796else
17797  :
17798fi
17799
17800done
17801
17802
17803fi
17804    if test "$ax_enable_compile_warnings" = "error"; then :
17805
17806        # "error" flags; -Werror has to be appended unconditionally because
17807        # it's not possible to test for
17808        #
17809        # suggest-attribute=format is disabled because it gives too many false
17810        # positives
17811
17812if ${WARNING_CFLAGS+:} false; then :
17813
17814  case " $WARNING_CFLAGS " in #(
17815  *" -Werror "*) :
17816    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS already contains -Werror"; } >&5
17817  (: WARNING_CFLAGS already contains -Werror) 2>&5
17818  ac_status=$?
17819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17820  test $ac_status = 0; } ;; #(
17821  *) :
17822
17823     as_fn_append WARNING_CFLAGS " -Werror"
17824     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17825  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17826  ac_status=$?
17827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17828  test $ac_status = 0; }
17829     ;;
17830esac
17831
17832else
17833
17834  WARNING_CFLAGS=-Werror
17835  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17836  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17837  ac_status=$?
17838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17839  test $ac_status = 0; }
17840
17841fi
17842
17843
17844
17845
17846
17847
17848for flag in              $ax_compiler_no_suggest_attribute_flags         ; do
17849  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
17850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17851$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17852if eval \${$as_CACHEVAR+:} false; then :
17853  $as_echo_n "(cached) " >&6
17854else
17855
17856  ax_check_save_flags=$CFLAGS
17857  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
17858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859/* end confdefs.h.  */
17860
17861int
17862main ()
17863{
17864
17865  ;
17866  return 0;
17867}
17868_ACEOF
17869if ac_fn_c_try_compile "$LINENO"; then :
17870  eval "$as_CACHEVAR=yes"
17871else
17872  eval "$as_CACHEVAR=no"
17873fi
17874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875  CFLAGS=$ax_check_save_flags
17876fi
17877eval ac_res=\$$as_CACHEVAR
17878	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17879$as_echo "$ac_res" >&6; }
17880if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17881
17882if ${WARNING_CFLAGS+:} false; then :
17883
17884  case " $WARNING_CFLAGS " in #(
17885  *" $flag "*) :
17886    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS already contains \$flag"; } >&5
17887  (: WARNING_CFLAGS already contains $flag) 2>&5
17888  ac_status=$?
17889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17890  test $ac_status = 0; } ;; #(
17891  *) :
17892
17893     as_fn_append WARNING_CFLAGS " $flag"
17894     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17895  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17896  ac_status=$?
17897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17898  test $ac_status = 0; }
17899     ;;
17900esac
17901
17902else
17903
17904  WARNING_CFLAGS=$flag
17905  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17906  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17907  ac_status=$?
17908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17909  test $ac_status = 0; }
17910
17911fi
17912
17913else
17914  :
17915fi
17916
17917done
17918
17919
17920fi
17921
17922    # In the flags below, when disabling specific flags, always add *both*
17923    # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
17924    # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall,
17925    # which effectively turns that flag back on again as an error.
17926    for flag in $WARNING_CFLAGS; do
17927        case $flag in #(
17928  -Wno-*=*) :
17929     ;; #(
17930  -Wno-*) :
17931
17932
17933
17934
17935
17936for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
17937  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
17938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17939$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17940if eval \${$as_CACHEVAR+:} false; then :
17941  $as_echo_n "(cached) " >&6
17942else
17943
17944  ax_check_save_flags=$CFLAGS
17945  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
17946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947/* end confdefs.h.  */
17948
17949int
17950main ()
17951{
17952
17953  ;
17954  return 0;
17955}
17956_ACEOF
17957if ac_fn_c_try_compile "$LINENO"; then :
17958  eval "$as_CACHEVAR=yes"
17959else
17960  eval "$as_CACHEVAR=no"
17961fi
17962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17963  CFLAGS=$ax_check_save_flags
17964fi
17965eval ac_res=\$$as_CACHEVAR
17966	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17967$as_echo "$ac_res" >&6; }
17968if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17969
17970if ${WARNING_CFLAGS+:} false; then :
17971
17972  case " $WARNING_CFLAGS " in #(
17973  *" $flag "*) :
17974    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS already contains \$flag"; } >&5
17975  (: WARNING_CFLAGS already contains $flag) 2>&5
17976  ac_status=$?
17977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17978  test $ac_status = 0; } ;; #(
17979  *) :
17980
17981     as_fn_append WARNING_CFLAGS " $flag"
17982     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17983  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17984  ac_status=$?
17985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17986  test $ac_status = 0; }
17987     ;;
17988esac
17989
17990else
17991
17992  WARNING_CFLAGS=$flag
17993  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CFLAGS=\"\$WARNING_CFLAGS\""; } >&5
17994  (: WARNING_CFLAGS="$WARNING_CFLAGS") 2>&5
17995  ac_status=$?
17996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17997  test $ac_status = 0; }
17998
17999fi
18000
18001else
18002  :
18003fi
18004
18005done
18006
18007                 ;; #(
18008  *) :
18009     ;;
18010esac
18011    done
18012
18013    ac_ext=cpp
18014ac_cpp='$CXXCPP $CPPFLAGS'
18015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18018
18019
18020    # Substitute the variables
18021
18022
18023
18024fi
18025
18026# Check for system planarity suite
18027
18028
18029
18030# Check whether --with-external-planarity was given.
18031if test "${with_external_planarity+set}" = set; then :
18032  withval=$with_external_planarity;
18033else
18034  with_external_planarity=no
18035fi
18036
18037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use external planarity" >&5
18038$as_echo_n "checking whether to use external planarity... " >&6; }
18039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_external_planarity" >&5
18040$as_echo "$with_external_planarity" >&6; }
18041  if test "x$with_external_planarity" = xyes ; then
18042        ac_ext=c
18043ac_cpp='$CPP $CPPFLAGS'
18044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046ac_compiler_gnu=$ac_cv_c_compiler_gnu
18047
18048        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_InitGraph in -lplanarity" >&5
18049$as_echo_n "checking for gp_InitGraph in -lplanarity... " >&6; }
18050if ${ac_cv_lib_planarity_gp_InitGraph+:} false; then :
18051  $as_echo_n "(cached) " >&6
18052else
18053  ac_check_lib_save_LIBS=$LIBS
18054LIBS="-lplanarity  $LIBS"
18055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18056/* end confdefs.h.  */
18057
18058/* Override any GCC internal prototype to avoid an error.
18059   Use char because int might match the return type of a GCC
18060   builtin and then its argument prototype would still apply.  */
18061#ifdef __cplusplus
18062extern "C"
18063#endif
18064char gp_InitGraph ();
18065int
18066main ()
18067{
18068return gp_InitGraph ();
18069  ;
18070  return 0;
18071}
18072_ACEOF
18073if ac_fn_c_try_link "$LINENO"; then :
18074  ac_cv_lib_planarity_gp_InitGraph=yes
18075else
18076  ac_cv_lib_planarity_gp_InitGraph=no
18077fi
18078rm -f core conftest.err conftest.$ac_objext \
18079    conftest$ac_exeext conftest.$ac_ext
18080LIBS=$ac_check_lib_save_LIBS
18081fi
18082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_planarity_gp_InitGraph" >&5
18083$as_echo "$ac_cv_lib_planarity_gp_InitGraph" >&6; }
18084if test "x$ac_cv_lib_planarity_gp_InitGraph" = xyes; then :
18085  cat >>confdefs.h <<_ACEOF
18086#define HAVE_LIBPLANARITY 1
18087_ACEOF
18088
18089  LIBS="-lplanarity $LIBS"
18090
18091else
18092  as_fn_error $? "no external libplanarity found" "$LINENO" 5
18093fi
18094
18095
18096        ac_fn_c_check_header_mongrel "$LINENO" "planarity/graph.h" "ac_cv_header_planarity_graph_h" "$ac_includes_default"
18097if test "x$ac_cv_header_planarity_graph_h" = xyes; then :
18098
18099else
18100  as_fn_error $? "no external planarity headers found" "$LINENO" 5
18101fi
18102
18103
18104        ac_ext=cpp
18105ac_cpp='$CXXCPP $CPPFLAGS'
18106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18109
18110  fi
18111   if test "x$with_external_planarity" = xno; then
18112  WITH_INCLUDED_PLANARITY_TRUE=
18113  WITH_INCLUDED_PLANARITY_FALSE='#'
18114else
18115  WITH_INCLUDED_PLANARITY_TRUE='#'
18116  WITH_INCLUDED_PLANARITY_FALSE=
18117fi
18118
18119  if test "x$with_external_planarity" = xno ; then
18120
18121$as_echo "#define WITH_INCLUDED_PLANARITY 1" >>confdefs.h
18122
18123  fi
18124
18125
18126if test "x$with_external_planarity" = xno ; then
18127
18128
18129subdirs="$subdirs extern/edge-addition-planarity-suite-Version_3.0.0.5"
18130
18131  PLANARITY_SUITE_DIR=extern/edge-addition-planarity-suite-Version_3.0.0.5
18132
18133fi
18134
18135# Check for system bliss suite
18136
18137
18138
18139# Check whether --with-external-bliss was given.
18140if test "${with_external_bliss+set}" = set; then :
18141  withval=$with_external_bliss;
18142else
18143  with_external_bliss=no
18144fi
18145
18146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use external bliss" >&5
18147$as_echo_n "checking whether to use external bliss... " >&6; }
18148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_external_bliss" >&5
18149$as_echo "$with_external_bliss" >&6; }
18150  if test "x$with_external_bliss" = xyes ; then
18151        ac_ext=c
18152ac_cpp='$CPP $CPPFLAGS'
18153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155ac_compiler_gnu=$ac_cv_c_compiler_gnu
18156
18157        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bliss_add_edge in -lbliss" >&5
18158$as_echo_n "checking for bliss_add_edge in -lbliss... " >&6; }
18159if ${ac_cv_lib_bliss_bliss_add_edge+:} false; then :
18160  $as_echo_n "(cached) " >&6
18161else
18162  ac_check_lib_save_LIBS=$LIBS
18163LIBS="-lbliss  $LIBS"
18164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165/* end confdefs.h.  */
18166
18167/* Override any GCC internal prototype to avoid an error.
18168   Use char because int might match the return type of a GCC
18169   builtin and then its argument prototype would still apply.  */
18170#ifdef __cplusplus
18171extern "C"
18172#endif
18173char bliss_add_edge ();
18174int
18175main ()
18176{
18177return bliss_add_edge ();
18178  ;
18179  return 0;
18180}
18181_ACEOF
18182if ac_fn_c_try_link "$LINENO"; then :
18183  ac_cv_lib_bliss_bliss_add_edge=yes
18184else
18185  ac_cv_lib_bliss_bliss_add_edge=no
18186fi
18187rm -f core conftest.err conftest.$ac_objext \
18188    conftest$ac_exeext conftest.$ac_ext
18189LIBS=$ac_check_lib_save_LIBS
18190fi
18191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bliss_bliss_add_edge" >&5
18192$as_echo "$ac_cv_lib_bliss_bliss_add_edge" >&6; }
18193if test "x$ac_cv_lib_bliss_bliss_add_edge" = xyes; then :
18194  cat >>confdefs.h <<_ACEOF
18195#define HAVE_LIBBLISS 1
18196_ACEOF
18197
18198  LIBS="-lbliss $LIBS"
18199
18200else
18201  as_fn_error $? "no external libbliss found" "$LINENO" 5
18202fi
18203
18204
18205        ac_fn_c_check_header_mongrel "$LINENO" "bliss/bliss_C.h" "ac_cv_header_bliss_bliss_C_h" "$ac_includes_default"
18206if test "x$ac_cv_header_bliss_bliss_C_h" = xyes; then :
18207
18208else
18209  as_fn_error $? "no external bliss headers found" "$LINENO" 5
18210fi
18211
18212
18213        ac_ext=cpp
18214ac_cpp='$CXXCPP $CPPFLAGS'
18215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18218
18219  fi
18220   if test "x$with_external_bliss" = xno; then
18221  WITH_INCLUDED_BLISS_TRUE=
18222  WITH_INCLUDED_BLISS_FALSE='#'
18223else
18224  WITH_INCLUDED_BLISS_TRUE='#'
18225  WITH_INCLUDED_BLISS_FALSE=
18226fi
18227
18228  if test "x$with_external_bliss" = xno ; then
18229
18230$as_echo "#define WITH_INCLUDED_BLISS 1" >>confdefs.h
18231
18232  fi
18233
18234
18235
18236
18237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzll" >&5
18238$as_echo_n "checking for __builtin_ctzll... " >&6; }
18239    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240/* end confdefs.h.  */
18241
18242int
18243main ()
18244{
18245__builtin_ctzll(0);
18246
18247
18248  ;
18249  return 0;
18250}
18251_ACEOF
18252if ac_fn_cxx_try_link "$LINENO"; then :
18253  have___builtin_ctzll=yes
18254else
18255  have___builtin_ctzll=no
18256
18257fi
18258rm -f core conftest.err conftest.$ac_objext \
18259    conftest$ac_exeext conftest.$ac_ext
18260    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___builtin_ctzll" >&5
18261$as_echo "$have___builtin_ctzll" >&6; }
18262    if test yes = $have___builtin_ctzll; then :
18263
18264cat >>confdefs.h <<_ACEOF
18265#define HAVE___BUILTIN_CTZLL 1
18266_ACEOF
18267
18268fi;
18269
18270ac_config_files="$ac_config_files Makefile"
18271
18272cat >confcache <<\_ACEOF
18273# This file is a shell script that caches the results of configure
18274# tests run on this system so they can be shared between configure
18275# scripts and configure runs, see configure's option --config-cache.
18276# It is not useful on other systems.  If it contains results you don't
18277# want to keep, you may remove or edit it.
18278#
18279# config.status only pays attention to the cache file if you give it
18280# the --recheck option to rerun configure.
18281#
18282# `ac_cv_env_foo' variables (set or unset) will be overridden when
18283# loading this file, other *unset* `ac_cv_foo' will be assigned the
18284# following values.
18285
18286_ACEOF
18287
18288# The following way of writing the cache mishandles newlines in values,
18289# but we know of no workaround that is simple, portable, and efficient.
18290# So, we kill variables containing newlines.
18291# Ultrix sh set writes to stderr and can't be redirected directly,
18292# and sets the high bit in the cache file unless we assign to the vars.
18293(
18294  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18295    eval ac_val=\$$ac_var
18296    case $ac_val in #(
18297    *${as_nl}*)
18298      case $ac_var in #(
18299      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18300$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18301      esac
18302      case $ac_var in #(
18303      _ | IFS | as_nl) ;; #(
18304      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18305      *) { eval $ac_var=; unset $ac_var;} ;;
18306      esac ;;
18307    esac
18308  done
18309
18310  (set) 2>&1 |
18311    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18312    *${as_nl}ac_space=\ *)
18313      # `set' does not quote correctly, so add quotes: double-quote
18314      # substitution turns \\\\ into \\, and sed turns \\ into \.
18315      sed -n \
18316	"s/'/'\\\\''/g;
18317	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18318      ;; #(
18319    *)
18320      # `set' quotes correctly as required by POSIX, so do not add quotes.
18321      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18322      ;;
18323    esac |
18324    sort
18325) |
18326  sed '
18327     /^ac_cv_env_/b end
18328     t clear
18329     :clear
18330     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18331     t end
18332     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18333     :end' >>confcache
18334if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18335  if test -w "$cache_file"; then
18336    if test "x$cache_file" != "x/dev/null"; then
18337      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18338$as_echo "$as_me: updating cache $cache_file" >&6;}
18339      if test ! -f "$cache_file" || test -h "$cache_file"; then
18340	cat confcache >"$cache_file"
18341      else
18342        case $cache_file in #(
18343        */* | ?:*)
18344	  mv -f confcache "$cache_file"$$ &&
18345	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18346        *)
18347	  mv -f confcache "$cache_file" ;;
18348	esac
18349      fi
18350    fi
18351  else
18352    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18353$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18354  fi
18355fi
18356rm -f confcache
18357
18358test "x$prefix" = xNONE && prefix=$ac_default_prefix
18359# Let make expand exec_prefix.
18360test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18361
18362DEFS=-DHAVE_CONFIG_H
18363
18364ac_libobjs=
18365ac_ltlibobjs=
18366U=
18367for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18368  # 1. Remove the extension, and $U if already installed.
18369  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18370  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18371  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18372  #    will be set to the directory where LIBOBJS objects are built.
18373  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18374  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18375done
18376LIBOBJS=$ac_libobjs
18377
18378LTLIBOBJS=$ac_ltlibobjs
18379
18380
18381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18382$as_echo_n "checking that generated files are newer than configure... " >&6; }
18383   if test -n "$am_sleep_pid"; then
18384     # Hide warnings about reused PIDs.
18385     wait $am_sleep_pid 2>/dev/null
18386   fi
18387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18388$as_echo "done" >&6; }
18389 if test -n "$EXEEXT"; then
18390  am__EXEEXT_TRUE=
18391  am__EXEEXT_FALSE='#'
18392else
18393  am__EXEEXT_TRUE='#'
18394  am__EXEEXT_FALSE=
18395fi
18396
18397if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18398  as_fn_error $? "conditional \"AMDEP\" was never defined.
18399Usually this means the macro was only invoked conditionally." "$LINENO" 5
18400fi
18401if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18402  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18403Usually this means the macro was only invoked conditionally." "$LINENO" 5
18404fi
18405if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18406  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18407Usually this means the macro was only invoked conditionally." "$LINENO" 5
18408fi
18409if test -z "${SYS_IS_CYGWIN_TRUE}" && test -z "${SYS_IS_CYGWIN_FALSE}"; then
18410  as_fn_error $? "conditional \"SYS_IS_CYGWIN\" was never defined.
18411Usually this means the macro was only invoked conditionally." "$LINENO" 5
18412fi
18413if test -z "${KERNEL_DEBUG_TRUE}" && test -z "${KERNEL_DEBUG_FALSE}"; then
18414  as_fn_error $? "conditional \"KERNEL_DEBUG\" was never defined.
18415Usually this means the macro was only invoked conditionally." "$LINENO" 5
18416fi
18417if test -z "${ENABLE_STATS_TRUE}" && test -z "${ENABLE_STATS_FALSE}"; then
18418  as_fn_error $? "conditional \"ENABLE_STATS\" was never defined.
18419Usually this means the macro was only invoked conditionally." "$LINENO" 5
18420fi
18421if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
18422  as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
18423Usually this means the macro was only invoked conditionally." "$LINENO" 5
18424fi
18425if test -z "${WITH_INCLUDED_PLANARITY_TRUE}" && test -z "${WITH_INCLUDED_PLANARITY_FALSE}"; then
18426  as_fn_error $? "conditional \"WITH_INCLUDED_PLANARITY\" was never defined.
18427Usually this means the macro was only invoked conditionally." "$LINENO" 5
18428fi
18429if test -z "${WITH_INCLUDED_BLISS_TRUE}" && test -z "${WITH_INCLUDED_BLISS_FALSE}"; then
18430  as_fn_error $? "conditional \"WITH_INCLUDED_BLISS\" was never defined.
18431Usually this means the macro was only invoked conditionally." "$LINENO" 5
18432fi
18433
18434: "${CONFIG_STATUS=./config.status}"
18435ac_write_fail=0
18436ac_clean_files_save=$ac_clean_files
18437ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18438{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18439$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18440as_write_fail=0
18441cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18442#! $SHELL
18443# Generated by $as_me.
18444# Run this file to recreate the current configuration.
18445# Compiler output produced by configure, useful for debugging
18446# configure, is in config.log if it exists.
18447
18448debug=false
18449ac_cs_recheck=false
18450ac_cs_silent=false
18451
18452SHELL=\${CONFIG_SHELL-$SHELL}
18453export SHELL
18454_ASEOF
18455cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18456## -------------------- ##
18457## M4sh Initialization. ##
18458## -------------------- ##
18459
18460# Be more Bourne compatible
18461DUALCASE=1; export DUALCASE # for MKS sh
18462if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18463  emulate sh
18464  NULLCMD=:
18465  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18466  # is contrary to our usage.  Disable this feature.
18467  alias -g '${1+"$@"}'='"$@"'
18468  setopt NO_GLOB_SUBST
18469else
18470  case `(set -o) 2>/dev/null` in #(
18471  *posix*) :
18472    set -o posix ;; #(
18473  *) :
18474     ;;
18475esac
18476fi
18477
18478
18479as_nl='
18480'
18481export as_nl
18482# Printing a long string crashes Solaris 7 /usr/bin/printf.
18483as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18484as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18485as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18486# Prefer a ksh shell builtin over an external printf program on Solaris,
18487# but without wasting forks for bash or zsh.
18488if test -z "$BASH_VERSION$ZSH_VERSION" \
18489    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18490  as_echo='print -r --'
18491  as_echo_n='print -rn --'
18492elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18493  as_echo='printf %s\n'
18494  as_echo_n='printf %s'
18495else
18496  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18497    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18498    as_echo_n='/usr/ucb/echo -n'
18499  else
18500    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18501    as_echo_n_body='eval
18502      arg=$1;
18503      case $arg in #(
18504      *"$as_nl"*)
18505	expr "X$arg" : "X\\(.*\\)$as_nl";
18506	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18507      esac;
18508      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18509    '
18510    export as_echo_n_body
18511    as_echo_n='sh -c $as_echo_n_body as_echo'
18512  fi
18513  export as_echo_body
18514  as_echo='sh -c $as_echo_body as_echo'
18515fi
18516
18517# The user is always right.
18518if test "${PATH_SEPARATOR+set}" != set; then
18519  PATH_SEPARATOR=:
18520  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18521    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18522      PATH_SEPARATOR=';'
18523  }
18524fi
18525
18526
18527# IFS
18528# We need space, tab and new line, in precisely that order.  Quoting is
18529# there to prevent editors from complaining about space-tab.
18530# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18531# splitting by setting IFS to empty value.)
18532IFS=" ""	$as_nl"
18533
18534# Find who we are.  Look in the path if we contain no directory separator.
18535as_myself=
18536case $0 in #((
18537  *[\\/]* ) as_myself=$0 ;;
18538  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18539for as_dir in $PATH
18540do
18541  IFS=$as_save_IFS
18542  test -z "$as_dir" && as_dir=.
18543    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18544  done
18545IFS=$as_save_IFS
18546
18547     ;;
18548esac
18549# We did not find ourselves, most probably we were run as `sh COMMAND'
18550# in which case we are not to be found in the path.
18551if test "x$as_myself" = x; then
18552  as_myself=$0
18553fi
18554if test ! -f "$as_myself"; then
18555  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18556  exit 1
18557fi
18558
18559# Unset variables that we do not need and which cause bugs (e.g. in
18560# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18561# suppresses any "Segmentation fault" message there.  '((' could
18562# trigger a bug in pdksh 5.2.14.
18563for as_var in BASH_ENV ENV MAIL MAILPATH
18564do eval test x\${$as_var+set} = xset \
18565  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18566done
18567PS1='$ '
18568PS2='> '
18569PS4='+ '
18570
18571# NLS nuisances.
18572LC_ALL=C
18573export LC_ALL
18574LANGUAGE=C
18575export LANGUAGE
18576
18577# CDPATH.
18578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18579
18580
18581# as_fn_error STATUS ERROR [LINENO LOG_FD]
18582# ----------------------------------------
18583# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18584# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18585# script with STATUS, using 1 if that was 0.
18586as_fn_error ()
18587{
18588  as_status=$1; test $as_status -eq 0 && as_status=1
18589  if test "$4"; then
18590    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18591    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18592  fi
18593  $as_echo "$as_me: error: $2" >&2
18594  as_fn_exit $as_status
18595} # as_fn_error
18596
18597
18598# as_fn_set_status STATUS
18599# -----------------------
18600# Set $? to STATUS, without forking.
18601as_fn_set_status ()
18602{
18603  return $1
18604} # as_fn_set_status
18605
18606# as_fn_exit STATUS
18607# -----------------
18608# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18609as_fn_exit ()
18610{
18611  set +e
18612  as_fn_set_status $1
18613  exit $1
18614} # as_fn_exit
18615
18616# as_fn_unset VAR
18617# ---------------
18618# Portably unset VAR.
18619as_fn_unset ()
18620{
18621  { eval $1=; unset $1;}
18622}
18623as_unset=as_fn_unset
18624# as_fn_append VAR VALUE
18625# ----------------------
18626# Append the text in VALUE to the end of the definition contained in VAR. Take
18627# advantage of any shell optimizations that allow amortized linear growth over
18628# repeated appends, instead of the typical quadratic growth present in naive
18629# implementations.
18630if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18631  eval 'as_fn_append ()
18632  {
18633    eval $1+=\$2
18634  }'
18635else
18636  as_fn_append ()
18637  {
18638    eval $1=\$$1\$2
18639  }
18640fi # as_fn_append
18641
18642# as_fn_arith ARG...
18643# ------------------
18644# Perform arithmetic evaluation on the ARGs, and store the result in the
18645# global $as_val. Take advantage of shells that can avoid forks. The arguments
18646# must be portable across $(()) and expr.
18647if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18648  eval 'as_fn_arith ()
18649  {
18650    as_val=$(( $* ))
18651  }'
18652else
18653  as_fn_arith ()
18654  {
18655    as_val=`expr "$@" || test $? -eq 1`
18656  }
18657fi # as_fn_arith
18658
18659
18660if expr a : '\(a\)' >/dev/null 2>&1 &&
18661   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18662  as_expr=expr
18663else
18664  as_expr=false
18665fi
18666
18667if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18668  as_basename=basename
18669else
18670  as_basename=false
18671fi
18672
18673if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18674  as_dirname=dirname
18675else
18676  as_dirname=false
18677fi
18678
18679as_me=`$as_basename -- "$0" ||
18680$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18681	 X"$0" : 'X\(//\)$' \| \
18682	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18683$as_echo X/"$0" |
18684    sed '/^.*\/\([^/][^/]*\)\/*$/{
18685	    s//\1/
18686	    q
18687	  }
18688	  /^X\/\(\/\/\)$/{
18689	    s//\1/
18690	    q
18691	  }
18692	  /^X\/\(\/\).*/{
18693	    s//\1/
18694	    q
18695	  }
18696	  s/.*/./; q'`
18697
18698# Avoid depending upon Character Ranges.
18699as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18700as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18701as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18702as_cr_digits='0123456789'
18703as_cr_alnum=$as_cr_Letters$as_cr_digits
18704
18705ECHO_C= ECHO_N= ECHO_T=
18706case `echo -n x` in #(((((
18707-n*)
18708  case `echo 'xy\c'` in
18709  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18710  xy)  ECHO_C='\c';;
18711  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18712       ECHO_T='	';;
18713  esac;;
18714*)
18715  ECHO_N='-n';;
18716esac
18717
18718rm -f conf$$ conf$$.exe conf$$.file
18719if test -d conf$$.dir; then
18720  rm -f conf$$.dir/conf$$.file
18721else
18722  rm -f conf$$.dir
18723  mkdir conf$$.dir 2>/dev/null
18724fi
18725if (echo >conf$$.file) 2>/dev/null; then
18726  if ln -s conf$$.file conf$$ 2>/dev/null; then
18727    as_ln_s='ln -s'
18728    # ... but there are two gotchas:
18729    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18730    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18731    # In both cases, we have to default to `cp -pR'.
18732    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18733      as_ln_s='cp -pR'
18734  elif ln conf$$.file conf$$ 2>/dev/null; then
18735    as_ln_s=ln
18736  else
18737    as_ln_s='cp -pR'
18738  fi
18739else
18740  as_ln_s='cp -pR'
18741fi
18742rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18743rmdir conf$$.dir 2>/dev/null
18744
18745
18746# as_fn_mkdir_p
18747# -------------
18748# Create "$as_dir" as a directory, including parents if necessary.
18749as_fn_mkdir_p ()
18750{
18751
18752  case $as_dir in #(
18753  -*) as_dir=./$as_dir;;
18754  esac
18755  test -d "$as_dir" || eval $as_mkdir_p || {
18756    as_dirs=
18757    while :; do
18758      case $as_dir in #(
18759      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18760      *) as_qdir=$as_dir;;
18761      esac
18762      as_dirs="'$as_qdir' $as_dirs"
18763      as_dir=`$as_dirname -- "$as_dir" ||
18764$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18765	 X"$as_dir" : 'X\(//\)[^/]' \| \
18766	 X"$as_dir" : 'X\(//\)$' \| \
18767	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18768$as_echo X"$as_dir" |
18769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18770	    s//\1/
18771	    q
18772	  }
18773	  /^X\(\/\/\)[^/].*/{
18774	    s//\1/
18775	    q
18776	  }
18777	  /^X\(\/\/\)$/{
18778	    s//\1/
18779	    q
18780	  }
18781	  /^X\(\/\).*/{
18782	    s//\1/
18783	    q
18784	  }
18785	  s/.*/./; q'`
18786      test -d "$as_dir" && break
18787    done
18788    test -z "$as_dirs" || eval "mkdir $as_dirs"
18789  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18790
18791
18792} # as_fn_mkdir_p
18793if mkdir -p . 2>/dev/null; then
18794  as_mkdir_p='mkdir -p "$as_dir"'
18795else
18796  test -d ./-p && rmdir ./-p
18797  as_mkdir_p=false
18798fi
18799
18800
18801# as_fn_executable_p FILE
18802# -----------------------
18803# Test if FILE is an executable regular file.
18804as_fn_executable_p ()
18805{
18806  test -f "$1" && test -x "$1"
18807} # as_fn_executable_p
18808as_test_x='test -x'
18809as_executable_p=as_fn_executable_p
18810
18811# Sed expression to map a string onto a valid CPP name.
18812as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18813
18814# Sed expression to map a string onto a valid variable name.
18815as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18816
18817
18818exec 6>&1
18819## ----------------------------------- ##
18820## Main body of $CONFIG_STATUS script. ##
18821## ----------------------------------- ##
18822_ASEOF
18823test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18824
18825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18826# Save the log message, to keep $0 and so on meaningful, and to
18827# report actual input values of CONFIG_FILES etc. instead of their
18828# values after options handling.
18829ac_log="
18830This file was extended by digraphs $as_me 1.1.1, which was
18831generated by GNU Autoconf 2.69.  Invocation command line was
18832
18833  CONFIG_FILES    = $CONFIG_FILES
18834  CONFIG_HEADERS  = $CONFIG_HEADERS
18835  CONFIG_LINKS    = $CONFIG_LINKS
18836  CONFIG_COMMANDS = $CONFIG_COMMANDS
18837  $ $0 $@
18838
18839on `(hostname || uname -n) 2>/dev/null | sed 1q`
18840"
18841
18842_ACEOF
18843
18844case $ac_config_files in *"
18845"*) set x $ac_config_files; shift; ac_config_files=$*;;
18846esac
18847
18848case $ac_config_headers in *"
18849"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18850esac
18851
18852
18853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18854# Files that config.status was made for.
18855config_files="$ac_config_files"
18856config_headers="$ac_config_headers"
18857config_commands="$ac_config_commands"
18858
18859_ACEOF
18860
18861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18862ac_cs_usage="\
18863\`$as_me' instantiates files and other configuration actions
18864from templates according to the current configuration.  Unless the files
18865and actions are specified as TAGs, all are instantiated by default.
18866
18867Usage: $0 [OPTION]... [TAG]...
18868
18869  -h, --help       print this help, then exit
18870  -V, --version    print version number and configuration settings, then exit
18871      --config     print configuration, then exit
18872  -q, --quiet, --silent
18873                   do not print progress messages
18874  -d, --debug      don't remove temporary files
18875      --recheck    update $as_me by reconfiguring in the same conditions
18876      --file=FILE[:TEMPLATE]
18877                   instantiate the configuration file FILE
18878      --header=FILE[:TEMPLATE]
18879                   instantiate the configuration header FILE
18880
18881Configuration files:
18882$config_files
18883
18884Configuration headers:
18885$config_headers
18886
18887Configuration commands:
18888$config_commands
18889
18890Report bugs to the package provider."
18891
18892_ACEOF
18893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18894ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18895ac_cs_version="\\
18896digraphs config.status 1.1.1
18897configured by $0, generated by GNU Autoconf 2.69,
18898  with options \\"\$ac_cs_config\\"
18899
18900Copyright (C) 2012 Free Software Foundation, Inc.
18901This config.status script is free software; the Free Software Foundation
18902gives unlimited permission to copy, distribute and modify it."
18903
18904ac_pwd='$ac_pwd'
18905srcdir='$srcdir'
18906INSTALL='$INSTALL'
18907MKDIR_P='$MKDIR_P'
18908AWK='$AWK'
18909test -n "\$AWK" || AWK=awk
18910_ACEOF
18911
18912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18913# The default lists apply if the user does not specify any file.
18914ac_need_defaults=:
18915while test $# != 0
18916do
18917  case $1 in
18918  --*=?*)
18919    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18920    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18921    ac_shift=:
18922    ;;
18923  --*=)
18924    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18925    ac_optarg=
18926    ac_shift=:
18927    ;;
18928  *)
18929    ac_option=$1
18930    ac_optarg=$2
18931    ac_shift=shift
18932    ;;
18933  esac
18934
18935  case $ac_option in
18936  # Handling of the options.
18937  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18938    ac_cs_recheck=: ;;
18939  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18940    $as_echo "$ac_cs_version"; exit ;;
18941  --config | --confi | --conf | --con | --co | --c )
18942    $as_echo "$ac_cs_config"; exit ;;
18943  --debug | --debu | --deb | --de | --d | -d )
18944    debug=: ;;
18945  --file | --fil | --fi | --f )
18946    $ac_shift
18947    case $ac_optarg in
18948    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18949    '') as_fn_error $? "missing file argument" ;;
18950    esac
18951    as_fn_append CONFIG_FILES " '$ac_optarg'"
18952    ac_need_defaults=false;;
18953  --header | --heade | --head | --hea )
18954    $ac_shift
18955    case $ac_optarg in
18956    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18957    esac
18958    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18959    ac_need_defaults=false;;
18960  --he | --h)
18961    # Conflict between --help and --header
18962    as_fn_error $? "ambiguous option: \`$1'
18963Try \`$0 --help' for more information.";;
18964  --help | --hel | -h )
18965    $as_echo "$ac_cs_usage"; exit ;;
18966  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18967  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18968    ac_cs_silent=: ;;
18969
18970  # This is an error.
18971  -*) as_fn_error $? "unrecognized option: \`$1'
18972Try \`$0 --help' for more information." ;;
18973
18974  *) as_fn_append ac_config_targets " $1"
18975     ac_need_defaults=false ;;
18976
18977  esac
18978  shift
18979done
18980
18981ac_configure_extra_args=
18982
18983if $ac_cs_silent; then
18984  exec 6>/dev/null
18985  ac_configure_extra_args="$ac_configure_extra_args --silent"
18986fi
18987
18988_ACEOF
18989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18990if \$ac_cs_recheck; then
18991  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18992  shift
18993  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18994  CONFIG_SHELL='$SHELL'
18995  export CONFIG_SHELL
18996  exec "\$@"
18997fi
18998
18999_ACEOF
19000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19001exec 5>>config.log
19002{
19003  echo
19004  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19005## Running $as_me. ##
19006_ASBOX
19007  $as_echo "$ac_log"
19008} >&5
19009
19010_ACEOF
19011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19012#
19013# INIT-COMMANDS
19014#
19015AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19016PACKAGE="$PACKAGE"
19017
19018
19019# The HP-UX ksh and POSIX shell print the target directory to stdout
19020# if CDPATH is set.
19021(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19022
19023sed_quote_subst='$sed_quote_subst'
19024double_quote_subst='$double_quote_subst'
19025delay_variable_subst='$delay_variable_subst'
19026macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19027macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19028enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19029AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19030DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19031OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19032enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19033pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19034enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19035shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19036SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19037ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19038PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19039host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19040host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19041host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19042build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19043build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19044build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19045SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19046Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19047GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19048EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19049FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19050LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19051NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19052LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19053max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19054ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19055exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19056lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19057lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19058lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19059lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19060lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19061reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19062reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19063deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19064file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19065file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19066want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19067sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19068AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19069AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19070archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19071STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19072RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19073old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19074old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19075old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19076lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19077CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19078CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19079compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19080GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19081lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19082lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19083lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19084lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19085lt_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"`'
19086lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19087nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19088lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19089lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19090objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19091MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19092lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19093lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19094lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19095lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19096lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19097need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19098MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19099DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19100NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19101LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19102OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19103OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19104libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19105shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19106extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19107archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19108enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19109export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19110whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19111compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19112old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19113old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19114archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19115archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19116module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19117module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19118with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19119allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19120no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19121hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19122hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19123hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19124hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19125hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19126hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19127hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19128inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19129link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19130always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19131export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19132exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19133include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19134prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19135postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19136file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19137variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19138need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19139need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19140version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19141runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19142shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19143shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19144libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19145library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19146soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19147install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19148postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19149postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19150finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19151finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19152hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19153sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19154configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19155configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19156hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19157enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19158enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19159enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19160old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19161striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19162compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19163predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19164postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19165predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19166postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19167compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19168LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19169reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19170reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19171old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19172compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19173GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19174lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19175lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19176lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19177lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19178lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19179archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19180enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19181export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19182whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19183compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19184old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19185old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19186archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19187archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19188module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19189module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19190with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19191allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19192no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19193hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19194hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19195hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19196hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19197hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19198hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19199hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19200inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19201link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19202always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19203export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19204exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19205include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19206prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19207postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19208file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19209hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19210compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19211predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19212postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19213predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19214postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19215compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19216
19217LTCC='$LTCC'
19218LTCFLAGS='$LTCFLAGS'
19219compiler='$compiler_DEFAULT'
19220
19221# A function that is used when there is no print builtin or printf.
19222func_fallback_echo ()
19223{
19224  eval 'cat <<_LTECHO_EOF
19225\$1
19226_LTECHO_EOF'
19227}
19228
19229# Quote evaled strings.
19230for var in AS \
19231DLLTOOL \
19232OBJDUMP \
19233SHELL \
19234ECHO \
19235PATH_SEPARATOR \
19236SED \
19237GREP \
19238EGREP \
19239FGREP \
19240LD \
19241NM \
19242LN_S \
19243lt_SP2NL \
19244lt_NL2SP \
19245reload_flag \
19246deplibs_check_method \
19247file_magic_cmd \
19248file_magic_glob \
19249want_nocaseglob \
19250sharedlib_from_linklib_cmd \
19251AR \
19252AR_FLAGS \
19253archiver_list_spec \
19254STRIP \
19255RANLIB \
19256CC \
19257CFLAGS \
19258compiler \
19259lt_cv_sys_global_symbol_pipe \
19260lt_cv_sys_global_symbol_to_cdecl \
19261lt_cv_sys_global_symbol_to_import \
19262lt_cv_sys_global_symbol_to_c_name_address \
19263lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19264lt_cv_nm_interface \
19265nm_file_list_spec \
19266lt_cv_truncate_bin \
19267lt_prog_compiler_no_builtin_flag \
19268lt_prog_compiler_pic \
19269lt_prog_compiler_wl \
19270lt_prog_compiler_static \
19271lt_cv_prog_compiler_c_o \
19272need_locks \
19273MANIFEST_TOOL \
19274DSYMUTIL \
19275NMEDIT \
19276LIPO \
19277OTOOL \
19278OTOOL64 \
19279shrext_cmds \
19280export_dynamic_flag_spec \
19281whole_archive_flag_spec \
19282compiler_needs_object \
19283with_gnu_ld \
19284allow_undefined_flag \
19285no_undefined_flag \
19286hardcode_libdir_flag_spec \
19287hardcode_libdir_separator \
19288exclude_expsyms \
19289include_expsyms \
19290file_list_spec \
19291variables_saved_for_relink \
19292libname_spec \
19293library_names_spec \
19294soname_spec \
19295install_override_mode \
19296finish_eval \
19297old_striplib \
19298striplib \
19299compiler_lib_search_dirs \
19300predep_objects \
19301postdep_objects \
19302predeps \
19303postdeps \
19304compiler_lib_search_path \
19305LD_CXX \
19306reload_flag_CXX \
19307compiler_CXX \
19308lt_prog_compiler_no_builtin_flag_CXX \
19309lt_prog_compiler_pic_CXX \
19310lt_prog_compiler_wl_CXX \
19311lt_prog_compiler_static_CXX \
19312lt_cv_prog_compiler_c_o_CXX \
19313export_dynamic_flag_spec_CXX \
19314whole_archive_flag_spec_CXX \
19315compiler_needs_object_CXX \
19316with_gnu_ld_CXX \
19317allow_undefined_flag_CXX \
19318no_undefined_flag_CXX \
19319hardcode_libdir_flag_spec_CXX \
19320hardcode_libdir_separator_CXX \
19321exclude_expsyms_CXX \
19322include_expsyms_CXX \
19323file_list_spec_CXX \
19324compiler_lib_search_dirs_CXX \
19325predep_objects_CXX \
19326postdep_objects_CXX \
19327predeps_CXX \
19328postdeps_CXX \
19329compiler_lib_search_path_CXX; do
19330    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19331    *[\\\\\\\`\\"\\\$]*)
19332      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19333      ;;
19334    *)
19335      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19336      ;;
19337    esac
19338done
19339
19340# Double-quote double-evaled strings.
19341for var in reload_cmds \
19342old_postinstall_cmds \
19343old_postuninstall_cmds \
19344old_archive_cmds \
19345extract_expsyms_cmds \
19346old_archive_from_new_cmds \
19347old_archive_from_expsyms_cmds \
19348archive_cmds \
19349archive_expsym_cmds \
19350module_cmds \
19351module_expsym_cmds \
19352export_symbols_cmds \
19353prelink_cmds \
19354postlink_cmds \
19355postinstall_cmds \
19356postuninstall_cmds \
19357finish_cmds \
19358sys_lib_search_path_spec \
19359configure_time_dlsearch_path \
19360configure_time_lt_sys_library_path \
19361reload_cmds_CXX \
19362old_archive_cmds_CXX \
19363old_archive_from_new_cmds_CXX \
19364old_archive_from_expsyms_cmds_CXX \
19365archive_cmds_CXX \
19366archive_expsym_cmds_CXX \
19367module_cmds_CXX \
19368module_expsym_cmds_CXX \
19369export_symbols_cmds_CXX \
19370prelink_cmds_CXX \
19371postlink_cmds_CXX; do
19372    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19373    *[\\\\\\\`\\"\\\$]*)
19374      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19375      ;;
19376    *)
19377      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19378      ;;
19379    esac
19380done
19381
19382ac_aux_dir='$ac_aux_dir'
19383
19384# See if we are running on zsh, and set the options that allow our
19385# commands through without removal of \ escapes INIT.
19386if test -n "\${ZSH_VERSION+set}"; then
19387   setopt NO_GLOB_SUBST
19388fi
19389
19390
19391    PACKAGE='$PACKAGE'
19392    VERSION='$VERSION'
19393    RM='$RM'
19394    ofile='$ofile'
19395
19396
19397
19398
19399
19400
19401_ACEOF
19402
19403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19404
19405# Handling of arguments.
19406for ac_config_target in $ac_config_targets
19407do
19408  case $ac_config_target in
19409    "src/_pkgconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/_pkgconfig.h:cnf/pkgconfig.h.in" ;;
19410    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19411    "src/digraphs-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/digraphs-config.h" ;;
19412    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19413    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19414
19415  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19416  esac
19417done
19418
19419
19420# If the user did not use the arguments to specify the items to instantiate,
19421# then the envvar interface is used.  Set only those that are not.
19422# We use the long form for the default assignment because of an extremely
19423# bizarre bug on SunOS 4.1.3.
19424if $ac_need_defaults; then
19425  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19426  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19427  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19428fi
19429
19430# Have a temporary directory for convenience.  Make it in the build tree
19431# simply because there is no reason against having it here, and in addition,
19432# creating and moving files from /tmp can sometimes cause problems.
19433# Hook for its removal unless debugging.
19434# Note that there is a small window in which the directory will not be cleaned:
19435# after its creation but before its name has been assigned to `$tmp'.
19436$debug ||
19437{
19438  tmp= ac_tmp=
19439  trap 'exit_status=$?
19440  : "${ac_tmp:=$tmp}"
19441  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19442' 0
19443  trap 'as_fn_exit 1' 1 2 13 15
19444}
19445# Create a (secure) tmp directory for tmp files.
19446
19447{
19448  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19449  test -d "$tmp"
19450}  ||
19451{
19452  tmp=./conf$$-$RANDOM
19453  (umask 077 && mkdir "$tmp")
19454} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19455ac_tmp=$tmp
19456
19457# Set up the scripts for CONFIG_FILES section.
19458# No need to generate them if there are no CONFIG_FILES.
19459# This happens for instance with `./config.status config.h'.
19460if test -n "$CONFIG_FILES"; then
19461
19462
19463ac_cr=`echo X | tr X '\015'`
19464# On cygwin, bash can eat \r inside `` if the user requested igncr.
19465# But we know of no other shell where ac_cr would be empty at this
19466# point, so we can use a bashism as a fallback.
19467if test "x$ac_cr" = x; then
19468  eval ac_cr=\$\'\\r\'
19469fi
19470ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19471if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19472  ac_cs_awk_cr='\\r'
19473else
19474  ac_cs_awk_cr=$ac_cr
19475fi
19476
19477echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19478_ACEOF
19479
19480
19481{
19482  echo "cat >conf$$subs.awk <<_ACEOF" &&
19483  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19484  echo "_ACEOF"
19485} >conf$$subs.sh ||
19486  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19487ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19488ac_delim='%!_!# '
19489for ac_last_try in false false false false false :; do
19490  . ./conf$$subs.sh ||
19491    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19492
19493  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19494  if test $ac_delim_n = $ac_delim_num; then
19495    break
19496  elif $ac_last_try; then
19497    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19498  else
19499    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19500  fi
19501done
19502rm -f conf$$subs.sh
19503
19504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19505cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19506_ACEOF
19507sed -n '
19508h
19509s/^/S["/; s/!.*/"]=/
19510p
19511g
19512s/^[^!]*!//
19513:repl
19514t repl
19515s/'"$ac_delim"'$//
19516t delim
19517:nl
19518h
19519s/\(.\{148\}\)..*/\1/
19520t more1
19521s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19522p
19523n
19524b repl
19525:more1
19526s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19527p
19528g
19529s/.\{148\}//
19530t nl
19531:delim
19532h
19533s/\(.\{148\}\)..*/\1/
19534t more2
19535s/["\\]/\\&/g; s/^/"/; s/$/"/
19536p
19537b
19538:more2
19539s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19540p
19541g
19542s/.\{148\}//
19543t delim
19544' <conf$$subs.awk | sed '
19545/^[^""]/{
19546  N
19547  s/\n//
19548}
19549' >>$CONFIG_STATUS || ac_write_fail=1
19550rm -f conf$$subs.awk
19551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19552_ACAWK
19553cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19554  for (key in S) S_is_set[key] = 1
19555  FS = ""
19556
19557}
19558{
19559  line = $ 0
19560  nfields = split(line, field, "@")
19561  substed = 0
19562  len = length(field[1])
19563  for (i = 2; i < nfields; i++) {
19564    key = field[i]
19565    keylen = length(key)
19566    if (S_is_set[key]) {
19567      value = S[key]
19568      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19569      len += length(value) + length(field[++i])
19570      substed = 1
19571    } else
19572      len += 1 + keylen
19573  }
19574
19575  print line
19576}
19577
19578_ACAWK
19579_ACEOF
19580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19581if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19582  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19583else
19584  cat
19585fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19586  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19587_ACEOF
19588
19589# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19590# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19591# trailing colons and then remove the whole line if VPATH becomes empty
19592# (actually we leave an empty line to preserve line numbers).
19593if test "x$srcdir" = x.; then
19594  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19595h
19596s///
19597s/^/:/
19598s/[	 ]*$/:/
19599s/:\$(srcdir):/:/g
19600s/:\${srcdir}:/:/g
19601s/:@srcdir@:/:/g
19602s/^:*//
19603s/:*$//
19604x
19605s/\(=[	 ]*\).*/\1/
19606G
19607s/\n//
19608s/^[^=]*=[	 ]*$//
19609}'
19610fi
19611
19612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19613fi # test -n "$CONFIG_FILES"
19614
19615# Set up the scripts for CONFIG_HEADERS section.
19616# No need to generate them if there are no CONFIG_HEADERS.
19617# This happens for instance with `./config.status Makefile'.
19618if test -n "$CONFIG_HEADERS"; then
19619cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19620BEGIN {
19621_ACEOF
19622
19623# Transform confdefs.h into an awk script `defines.awk', embedded as
19624# here-document in config.status, that substitutes the proper values into
19625# config.h.in to produce config.h.
19626
19627# Create a delimiter string that does not exist in confdefs.h, to ease
19628# handling of long lines.
19629ac_delim='%!_!# '
19630for ac_last_try in false false :; do
19631  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19632  if test -z "$ac_tt"; then
19633    break
19634  elif $ac_last_try; then
19635    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19636  else
19637    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19638  fi
19639done
19640
19641# For the awk script, D is an array of macro values keyed by name,
19642# likewise P contains macro parameters if any.  Preserve backslash
19643# newline sequences.
19644
19645ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19646sed -n '
19647s/.\{148\}/&'"$ac_delim"'/g
19648t rset
19649:rset
19650s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19651t def
19652d
19653:def
19654s/\\$//
19655t bsnl
19656s/["\\]/\\&/g
19657s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19658D["\1"]=" \3"/p
19659s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19660d
19661:bsnl
19662s/["\\]/\\&/g
19663s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19664D["\1"]=" \3\\\\\\n"\\/p
19665t cont
19666s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19667t cont
19668d
19669:cont
19670n
19671s/.\{148\}/&'"$ac_delim"'/g
19672t clear
19673:clear
19674s/\\$//
19675t bsnlc
19676s/["\\]/\\&/g; s/^/"/; s/$/"/p
19677d
19678:bsnlc
19679s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19680b cont
19681' <confdefs.h | sed '
19682s/'"$ac_delim"'/"\\\
19683"/g' >>$CONFIG_STATUS || ac_write_fail=1
19684
19685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19686  for (key in D) D_is_set[key] = 1
19687  FS = ""
19688}
19689/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19690  line = \$ 0
19691  split(line, arg, " ")
19692  if (arg[1] == "#") {
19693    defundef = arg[2]
19694    mac1 = arg[3]
19695  } else {
19696    defundef = substr(arg[1], 2)
19697    mac1 = arg[2]
19698  }
19699  split(mac1, mac2, "(") #)
19700  macro = mac2[1]
19701  prefix = substr(line, 1, index(line, defundef) - 1)
19702  if (D_is_set[macro]) {
19703    # Preserve the white space surrounding the "#".
19704    print prefix "define", macro P[macro] D[macro]
19705    next
19706  } else {
19707    # Replace #undef with comments.  This is necessary, for example,
19708    # in the case of _POSIX_SOURCE, which is predefined and required
19709    # on some systems where configure will not decide to define it.
19710    if (defundef == "undef") {
19711      print "/*", prefix defundef, macro, "*/"
19712      next
19713    }
19714  }
19715}
19716{ print }
19717_ACAWK
19718_ACEOF
19719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19720  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19721fi # test -n "$CONFIG_HEADERS"
19722
19723
19724eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19725shift
19726for ac_tag
19727do
19728  case $ac_tag in
19729  :[FHLC]) ac_mode=$ac_tag; continue;;
19730  esac
19731  case $ac_mode$ac_tag in
19732  :[FHL]*:*);;
19733  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19734  :[FH]-) ac_tag=-:-;;
19735  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19736  esac
19737  ac_save_IFS=$IFS
19738  IFS=:
19739  set x $ac_tag
19740  IFS=$ac_save_IFS
19741  shift
19742  ac_file=$1
19743  shift
19744
19745  case $ac_mode in
19746  :L) ac_source=$1;;
19747  :[FH])
19748    ac_file_inputs=
19749    for ac_f
19750    do
19751      case $ac_f in
19752      -) ac_f="$ac_tmp/stdin";;
19753      *) # Look for the file first in the build tree, then in the source tree
19754	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19755	 # because $ac_f cannot contain `:'.
19756	 test -f "$ac_f" ||
19757	   case $ac_f in
19758	   [\\/$]*) false;;
19759	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19760	   esac ||
19761	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19762      esac
19763      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19764      as_fn_append ac_file_inputs " '$ac_f'"
19765    done
19766
19767    # Let's still pretend it is `configure' which instantiates (i.e., don't
19768    # use $as_me), people would be surprised to read:
19769    #    /* config.h.  Generated by config.status.  */
19770    configure_input='Generated from '`
19771	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19772	`' by configure.'
19773    if test x"$ac_file" != x-; then
19774      configure_input="$ac_file.  $configure_input"
19775      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19776$as_echo "$as_me: creating $ac_file" >&6;}
19777    fi
19778    # Neutralize special characters interpreted by sed in replacement strings.
19779    case $configure_input in #(
19780    *\&* | *\|* | *\\* )
19781       ac_sed_conf_input=`$as_echo "$configure_input" |
19782       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19783    *) ac_sed_conf_input=$configure_input;;
19784    esac
19785
19786    case $ac_tag in
19787    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19788      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19789    esac
19790    ;;
19791  esac
19792
19793  ac_dir=`$as_dirname -- "$ac_file" ||
19794$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19795	 X"$ac_file" : 'X\(//\)[^/]' \| \
19796	 X"$ac_file" : 'X\(//\)$' \| \
19797	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19798$as_echo X"$ac_file" |
19799    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19800	    s//\1/
19801	    q
19802	  }
19803	  /^X\(\/\/\)[^/].*/{
19804	    s//\1/
19805	    q
19806	  }
19807	  /^X\(\/\/\)$/{
19808	    s//\1/
19809	    q
19810	  }
19811	  /^X\(\/\).*/{
19812	    s//\1/
19813	    q
19814	  }
19815	  s/.*/./; q'`
19816  as_dir="$ac_dir"; as_fn_mkdir_p
19817  ac_builddir=.
19818
19819case "$ac_dir" in
19820.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19821*)
19822  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19823  # A ".." for each directory in $ac_dir_suffix.
19824  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19825  case $ac_top_builddir_sub in
19826  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19827  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19828  esac ;;
19829esac
19830ac_abs_top_builddir=$ac_pwd
19831ac_abs_builddir=$ac_pwd$ac_dir_suffix
19832# for backward compatibility:
19833ac_top_builddir=$ac_top_build_prefix
19834
19835case $srcdir in
19836  .)  # We are building in place.
19837    ac_srcdir=.
19838    ac_top_srcdir=$ac_top_builddir_sub
19839    ac_abs_top_srcdir=$ac_pwd ;;
19840  [\\/]* | ?:[\\/]* )  # Absolute name.
19841    ac_srcdir=$srcdir$ac_dir_suffix;
19842    ac_top_srcdir=$srcdir
19843    ac_abs_top_srcdir=$srcdir ;;
19844  *) # Relative name.
19845    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19846    ac_top_srcdir=$ac_top_build_prefix$srcdir
19847    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19848esac
19849ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19850
19851
19852  case $ac_mode in
19853  :F)
19854  #
19855  # CONFIG_FILE
19856  #
19857
19858  case $INSTALL in
19859  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19860  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19861  esac
19862  ac_MKDIR_P=$MKDIR_P
19863  case $MKDIR_P in
19864  [\\/$]* | ?:[\\/]* ) ;;
19865  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19866  esac
19867_ACEOF
19868
19869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19870# If the template does not know about datarootdir, expand it.
19871# FIXME: This hack should be removed a few years after 2.60.
19872ac_datarootdir_hack=; ac_datarootdir_seen=
19873ac_sed_dataroot='
19874/datarootdir/ {
19875  p
19876  q
19877}
19878/@datadir@/p
19879/@docdir@/p
19880/@infodir@/p
19881/@localedir@/p
19882/@mandir@/p'
19883case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19884*datarootdir*) ac_datarootdir_seen=yes;;
19885*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19886  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19887$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19888_ACEOF
19889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19890  ac_datarootdir_hack='
19891  s&@datadir@&$datadir&g
19892  s&@docdir@&$docdir&g
19893  s&@infodir@&$infodir&g
19894  s&@localedir@&$localedir&g
19895  s&@mandir@&$mandir&g
19896  s&\\\${datarootdir}&$datarootdir&g' ;;
19897esac
19898_ACEOF
19899
19900# Neutralize VPATH when `$srcdir' = `.'.
19901# Shell code in configure.ac might set extrasub.
19902# FIXME: do we really want to maintain this feature?
19903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19904ac_sed_extra="$ac_vpsub
19905$extrasub
19906_ACEOF
19907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19908:t
19909/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19910s|@configure_input@|$ac_sed_conf_input|;t t
19911s&@top_builddir@&$ac_top_builddir_sub&;t t
19912s&@top_build_prefix@&$ac_top_build_prefix&;t t
19913s&@srcdir@&$ac_srcdir&;t t
19914s&@abs_srcdir@&$ac_abs_srcdir&;t t
19915s&@top_srcdir@&$ac_top_srcdir&;t t
19916s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19917s&@builddir@&$ac_builddir&;t t
19918s&@abs_builddir@&$ac_abs_builddir&;t t
19919s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19920s&@INSTALL@&$ac_INSTALL&;t t
19921s&@MKDIR_P@&$ac_MKDIR_P&;t t
19922$ac_datarootdir_hack
19923"
19924eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19925  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19926
19927test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19928  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19929  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19930      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19931  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19932which seems to be undefined.  Please make sure it is defined" >&5
19933$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19934which seems to be undefined.  Please make sure it is defined" >&2;}
19935
19936  rm -f "$ac_tmp/stdin"
19937  case $ac_file in
19938  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19939  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19940  esac \
19941  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19942 ;;
19943  :H)
19944  #
19945  # CONFIG_HEADER
19946  #
19947  if test x"$ac_file" != x-; then
19948    {
19949      $as_echo "/* $configure_input  */" \
19950      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19951    } >"$ac_tmp/config.h" \
19952      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19953    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19954      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19955$as_echo "$as_me: $ac_file is unchanged" >&6;}
19956    else
19957      rm -f "$ac_file"
19958      mv "$ac_tmp/config.h" "$ac_file" \
19959	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19960    fi
19961  else
19962    $as_echo "/* $configure_input  */" \
19963      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19964      || as_fn_error $? "could not create -" "$LINENO" 5
19965  fi
19966# Compute "$ac_file"'s index in $config_headers.
19967_am_arg="$ac_file"
19968_am_stamp_count=1
19969for _am_header in $config_headers :; do
19970  case $_am_header in
19971    $_am_arg | $_am_arg:* )
19972      break ;;
19973    * )
19974      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19975  esac
19976done
19977echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19978$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19979	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19980	 X"$_am_arg" : 'X\(//\)$' \| \
19981	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19982$as_echo X"$_am_arg" |
19983    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19984	    s//\1/
19985	    q
19986	  }
19987	  /^X\(\/\/\)[^/].*/{
19988	    s//\1/
19989	    q
19990	  }
19991	  /^X\(\/\/\)$/{
19992	    s//\1/
19993	    q
19994	  }
19995	  /^X\(\/\).*/{
19996	    s//\1/
19997	    q
19998	  }
19999	  s/.*/./; q'`/stamp-h$_am_stamp_count
20000 ;;
20001
20002  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20003$as_echo "$as_me: executing $ac_file commands" >&6;}
20004 ;;
20005  esac
20006
20007
20008  case $ac_file$ac_mode in
20009    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20010  # Older Autoconf quotes --file arguments for eval, but not when files
20011  # are listed without --file.  Let's play safe and only enable the eval
20012  # if we detect the quoting.
20013  # TODO: see whether this extra hack can be removed once we start
20014  # requiring Autoconf 2.70 or later.
20015  case $CONFIG_FILES in #(
20016  *\'*) :
20017    eval set x "$CONFIG_FILES" ;; #(
20018  *) :
20019    set x $CONFIG_FILES ;; #(
20020  *) :
20021     ;;
20022esac
20023  shift
20024  # Used to flag and report bootstrapping failures.
20025  am_rc=0
20026  for am_mf
20027  do
20028    # Strip MF so we end up with the name of the file.
20029    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20030    # Check whether this is an Automake generated Makefile which includes
20031    # dependency-tracking related rules and includes.
20032    # Grep'ing the whole file directly is not great: AIX grep has a line
20033    # limit of 2048, but all sed's we know have understand at least 4000.
20034    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20035      || continue
20036    am_dirpart=`$as_dirname -- "$am_mf" ||
20037$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20038	 X"$am_mf" : 'X\(//\)[^/]' \| \
20039	 X"$am_mf" : 'X\(//\)$' \| \
20040	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20041$as_echo X"$am_mf" |
20042    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20043	    s//\1/
20044	    q
20045	  }
20046	  /^X\(\/\/\)[^/].*/{
20047	    s//\1/
20048	    q
20049	  }
20050	  /^X\(\/\/\)$/{
20051	    s//\1/
20052	    q
20053	  }
20054	  /^X\(\/\).*/{
20055	    s//\1/
20056	    q
20057	  }
20058	  s/.*/./; q'`
20059    am_filepart=`$as_basename -- "$am_mf" ||
20060$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20061	 X"$am_mf" : 'X\(//\)$' \| \
20062	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20063$as_echo X/"$am_mf" |
20064    sed '/^.*\/\([^/][^/]*\)\/*$/{
20065	    s//\1/
20066	    q
20067	  }
20068	  /^X\/\(\/\/\)$/{
20069	    s//\1/
20070	    q
20071	  }
20072	  /^X\/\(\/\).*/{
20073	    s//\1/
20074	    q
20075	  }
20076	  s/.*/./; q'`
20077    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20078      && sed -e '/# am--include-marker/d' "$am_filepart" \
20079        | $MAKE -f - am--depfiles" >&5
20080   (cd "$am_dirpart" \
20081      && sed -e '/# am--include-marker/d' "$am_filepart" \
20082        | $MAKE -f - am--depfiles) >&5 2>&5
20083   ac_status=$?
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); } || am_rc=$?
20086  done
20087  if test $am_rc -ne 0; then
20088    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20090as_fn_error $? "Something went wrong bootstrapping makefile fragments
20091    for automatic dependency tracking.  Try re-running configure with the
20092    '--disable-dependency-tracking' option to at least be able to build
20093    the package (albeit without support for automatic dependency tracking).
20094See \`config.log' for more details" "$LINENO" 5; }
20095  fi
20096  { am_dirpart=; unset am_dirpart;}
20097  { am_filepart=; unset am_filepart;}
20098  { am_mf=; unset am_mf;}
20099  { am_rc=; unset am_rc;}
20100  rm -f conftest-deps.mk
20101}
20102 ;;
20103    "src/digraphs-config.h":C) ac_prefix_conf_OUT=`echo src/digraphs-config.h`
20104ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
20105ac_prefix_conf_PKG=`echo $PACKAGE`
20106ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
20107ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
20108ac_prefix_conf_INP=`echo "src/_pkgconfig.h" | sed -e 's/ *//'`
20109if test ".$ac_prefix_conf_INP" = "."; then
20110   for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
20111     case "$ac_file" in
20112        *.h) ac_prefix_conf_INP=$ac_file ;;
20113        *)
20114     esac
20115     test ".$ac_prefix_conf_INP" != "." && break
20116   done
20117fi
20118if test ".$ac_prefix_conf_INP" = "."; then
20119   case "$ac_prefix_conf_OUT" in
20120      */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
20121      ;;
20122      *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
20123      ;;
20124      *) ac_prefix_conf_INP=config.h
20125      ;;
20126   esac
20127fi
20128if test -z "$ac_prefix_conf_PKG" ; then
20129   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
20130else
20131  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
20132     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
20133  fi fi
20134  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
20135$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
20136  if test -f $ac_prefix_conf_INP ; then
20137    $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
20138    $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
20139    $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
20140    $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
20141    $as_echo "#endif/" >> conftest.prefix
20142    $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
20143    $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
20144    $as_echo "#endif/" >> conftest.prefix
20145    # now executing _script on _DEF input to create _OUT output file
20146    echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
20147    echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
20148    echo ' ' >>$tmp/pconfig.h
20149    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
20150
20151    sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
20152    echo ' ' >>$tmp/pconfig.h
20153    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
20154    echo "#endif" >>$tmp/pconfig.h
20155    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
20156      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
20157$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
20158    else
20159      ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
20160$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20161	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
20162	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
20163	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
20164$as_echo X"$ac_prefix_conf_OUT" |
20165    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20166	    s//\1/
20167	    q
20168	  }
20169	  /^X\(\/\/\)[^/].*/{
20170	    s//\1/
20171	    q
20172	  }
20173	  /^X\(\/\/\)$/{
20174	    s//\1/
20175	    q
20176	  }
20177	  /^X\(\/\).*/{
20178	    s//\1/
20179	    q
20180	  }
20181	  s/.*/./; q'`
20182      as_dir="$ac_dir"; as_fn_mkdir_p
20183      rm -f "$ac_prefix_conf_OUT"
20184      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
20185    fi
20186  else
20187    as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
20188  fi
20189  rm -f conftest.*
20190fi
20191 ;;
20192    "libtool":C)
20193
20194    # See if we are running on zsh, and set the options that allow our
20195    # commands through without removal of \ escapes.
20196    if test -n "${ZSH_VERSION+set}"; then
20197      setopt NO_GLOB_SUBST
20198    fi
20199
20200    cfgfile=${ofile}T
20201    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20202    $RM "$cfgfile"
20203
20204    cat <<_LT_EOF >> "$cfgfile"
20205#! $SHELL
20206# Generated automatically by $as_me ($PACKAGE) $VERSION
20207# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20208# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20209
20210# Provide generalized library-building support services.
20211# Written by Gordon Matzigkeit, 1996
20212
20213# Copyright (C) 2014 Free Software Foundation, Inc.
20214# This is free software; see the source for copying conditions.  There is NO
20215# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20216
20217# GNU Libtool is free software; you can redistribute it and/or modify
20218# it under the terms of the GNU General Public License as published by
20219# the Free Software Foundation; either version 2 of of the License, or
20220# (at your option) any later version.
20221#
20222# As a special exception to the GNU General Public License, if you
20223# distribute this file as part of a program or library that is built
20224# using GNU Libtool, you may include this file under the  same
20225# distribution terms that you use for the rest of that program.
20226#
20227# GNU Libtool is distributed in the hope that it will be useful, but
20228# WITHOUT ANY WARRANTY; without even the implied warranty of
20229# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20230# GNU General Public License for more details.
20231#
20232# You should have received a copy of the GNU General Public License
20233# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20234
20235
20236# The names of the tagged configurations supported by this script.
20237available_tags='CXX '
20238
20239# Configured defaults for sys_lib_dlsearch_path munging.
20240: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20241
20242# ### BEGIN LIBTOOL CONFIG
20243
20244# Which release of libtool.m4 was used?
20245macro_version=$macro_version
20246macro_revision=$macro_revision
20247
20248# Whether or not to build static libraries.
20249build_old_libs=$enable_static
20250
20251# Assembler program.
20252AS=$lt_AS
20253
20254# DLL creation program.
20255DLLTOOL=$lt_DLLTOOL
20256
20257# Object dumper program.
20258OBJDUMP=$lt_OBJDUMP
20259
20260# Whether or not to build shared libraries.
20261build_libtool_libs=$enable_shared
20262
20263# What type of objects to build.
20264pic_mode=$pic_mode
20265
20266# Whether or not to optimize for fast installation.
20267fast_install=$enable_fast_install
20268
20269# Shared archive member basename,for filename based shared library versioning on AIX.
20270shared_archive_member_spec=$shared_archive_member_spec
20271
20272# Shell to use when invoking shell scripts.
20273SHELL=$lt_SHELL
20274
20275# An echo program that protects backslashes.
20276ECHO=$lt_ECHO
20277
20278# The PATH separator for the build system.
20279PATH_SEPARATOR=$lt_PATH_SEPARATOR
20280
20281# The host system.
20282host_alias=$host_alias
20283host=$host
20284host_os=$host_os
20285
20286# The build system.
20287build_alias=$build_alias
20288build=$build
20289build_os=$build_os
20290
20291# A sed program that does not truncate output.
20292SED=$lt_SED
20293
20294# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20295Xsed="\$SED -e 1s/^X//"
20296
20297# A grep program that handles long lines.
20298GREP=$lt_GREP
20299
20300# An ERE matcher.
20301EGREP=$lt_EGREP
20302
20303# A literal string matcher.
20304FGREP=$lt_FGREP
20305
20306# A BSD- or MS-compatible name lister.
20307NM=$lt_NM
20308
20309# Whether we need soft or hard links.
20310LN_S=$lt_LN_S
20311
20312# What is the maximum length of a command?
20313max_cmd_len=$max_cmd_len
20314
20315# Object file suffix (normally "o").
20316objext=$ac_objext
20317
20318# Executable file suffix (normally "").
20319exeext=$exeext
20320
20321# whether the shell understands "unset".
20322lt_unset=$lt_unset
20323
20324# turn spaces into newlines.
20325SP2NL=$lt_lt_SP2NL
20326
20327# turn newlines into spaces.
20328NL2SP=$lt_lt_NL2SP
20329
20330# convert \$build file names to \$host format.
20331to_host_file_cmd=$lt_cv_to_host_file_cmd
20332
20333# convert \$build files to toolchain format.
20334to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20335
20336# Method to check whether dependent libraries are shared objects.
20337deplibs_check_method=$lt_deplibs_check_method
20338
20339# Command to use when deplibs_check_method = "file_magic".
20340file_magic_cmd=$lt_file_magic_cmd
20341
20342# How to find potential files when deplibs_check_method = "file_magic".
20343file_magic_glob=$lt_file_magic_glob
20344
20345# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20346want_nocaseglob=$lt_want_nocaseglob
20347
20348# Command to associate shared and link libraries.
20349sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20350
20351# The archiver.
20352AR=$lt_AR
20353
20354# Flags to create an archive.
20355AR_FLAGS=$lt_AR_FLAGS
20356
20357# How to feed a file listing to the archiver.
20358archiver_list_spec=$lt_archiver_list_spec
20359
20360# A symbol stripping program.
20361STRIP=$lt_STRIP
20362
20363# Commands used to install an old-style archive.
20364RANLIB=$lt_RANLIB
20365old_postinstall_cmds=$lt_old_postinstall_cmds
20366old_postuninstall_cmds=$lt_old_postuninstall_cmds
20367
20368# Whether to use a lock for old archive extraction.
20369lock_old_archive_extraction=$lock_old_archive_extraction
20370
20371# A C compiler.
20372LTCC=$lt_CC
20373
20374# LTCC compiler flags.
20375LTCFLAGS=$lt_CFLAGS
20376
20377# Take the output of nm and produce a listing of raw symbols and C names.
20378global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20379
20380# Transform the output of nm in a proper C declaration.
20381global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20382
20383# Transform the output of nm into a list of symbols to manually relocate.
20384global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20385
20386# Transform the output of nm in a C name address pair.
20387global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20388
20389# Transform the output of nm in a C name address pair when lib prefix is needed.
20390global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20391
20392# The name lister interface.
20393nm_interface=$lt_lt_cv_nm_interface
20394
20395# Specify filename containing input files for \$NM.
20396nm_file_list_spec=$lt_nm_file_list_spec
20397
20398# The root where to search for dependent libraries,and where our libraries should be installed.
20399lt_sysroot=$lt_sysroot
20400
20401# Command to truncate a binary pipe.
20402lt_truncate_bin=$lt_lt_cv_truncate_bin
20403
20404# The name of the directory that contains temporary libtool files.
20405objdir=$objdir
20406
20407# Used to examine libraries when file_magic_cmd begins with "file".
20408MAGIC_CMD=$MAGIC_CMD
20409
20410# Must we lock files when doing compilation?
20411need_locks=$lt_need_locks
20412
20413# Manifest tool.
20414MANIFEST_TOOL=$lt_MANIFEST_TOOL
20415
20416# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20417DSYMUTIL=$lt_DSYMUTIL
20418
20419# Tool to change global to local symbols on Mac OS X.
20420NMEDIT=$lt_NMEDIT
20421
20422# Tool to manipulate fat objects and archives on Mac OS X.
20423LIPO=$lt_LIPO
20424
20425# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20426OTOOL=$lt_OTOOL
20427
20428# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20429OTOOL64=$lt_OTOOL64
20430
20431# Old archive suffix (normally "a").
20432libext=$libext
20433
20434# Shared library suffix (normally ".so").
20435shrext_cmds=$lt_shrext_cmds
20436
20437# The commands to extract the exported symbol list from a shared archive.
20438extract_expsyms_cmds=$lt_extract_expsyms_cmds
20439
20440# Variables whose values should be saved in libtool wrapper scripts and
20441# restored at link time.
20442variables_saved_for_relink=$lt_variables_saved_for_relink
20443
20444# Do we need the "lib" prefix for modules?
20445need_lib_prefix=$need_lib_prefix
20446
20447# Do we need a version for libraries?
20448need_version=$need_version
20449
20450# Library versioning type.
20451version_type=$version_type
20452
20453# Shared library runtime path variable.
20454runpath_var=$runpath_var
20455
20456# Shared library path variable.
20457shlibpath_var=$shlibpath_var
20458
20459# Is shlibpath searched before the hard-coded library search path?
20460shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20461
20462# Format of library name prefix.
20463libname_spec=$lt_libname_spec
20464
20465# List of archive names.  First name is the real one, the rest are links.
20466# The last name is the one that the linker finds with -lNAME
20467library_names_spec=$lt_library_names_spec
20468
20469# The coded name of the library, if different from the real name.
20470soname_spec=$lt_soname_spec
20471
20472# Permission mode override for installation of shared libraries.
20473install_override_mode=$lt_install_override_mode
20474
20475# Command to use after installation of a shared archive.
20476postinstall_cmds=$lt_postinstall_cmds
20477
20478# Command to use after uninstallation of a shared archive.
20479postuninstall_cmds=$lt_postuninstall_cmds
20480
20481# Commands used to finish a libtool library installation in a directory.
20482finish_cmds=$lt_finish_cmds
20483
20484# As "finish_cmds", except a single script fragment to be evaled but
20485# not shown.
20486finish_eval=$lt_finish_eval
20487
20488# Whether we should hardcode library paths into libraries.
20489hardcode_into_libs=$hardcode_into_libs
20490
20491# Compile-time system search path for libraries.
20492sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20493
20494# Detected run-time system search path for libraries.
20495sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20496
20497# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20498configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20499
20500# Whether dlopen is supported.
20501dlopen_support=$enable_dlopen
20502
20503# Whether dlopen of programs is supported.
20504dlopen_self=$enable_dlopen_self
20505
20506# Whether dlopen of statically linked programs is supported.
20507dlopen_self_static=$enable_dlopen_self_static
20508
20509# Commands to strip libraries.
20510old_striplib=$lt_old_striplib
20511striplib=$lt_striplib
20512
20513
20514# The linker used to build libraries.
20515LD=$lt_LD
20516
20517# How to create reloadable object files.
20518reload_flag=$lt_reload_flag
20519reload_cmds=$lt_reload_cmds
20520
20521# Commands used to build an old-style archive.
20522old_archive_cmds=$lt_old_archive_cmds
20523
20524# A language specific compiler.
20525CC=$lt_compiler
20526
20527# Is the compiler the GNU compiler?
20528with_gcc=$GCC
20529
20530# Compiler flag to turn off builtin functions.
20531no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20532
20533# Additional compiler flags for building library objects.
20534pic_flag=$lt_lt_prog_compiler_pic
20535
20536# How to pass a linker flag through the compiler.
20537wl=$lt_lt_prog_compiler_wl
20538
20539# Compiler flag to prevent dynamic linking.
20540link_static_flag=$lt_lt_prog_compiler_static
20541
20542# Does compiler simultaneously support -c and -o options?
20543compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20544
20545# Whether or not to add -lc for building shared libraries.
20546build_libtool_need_lc=$archive_cmds_need_lc
20547
20548# Whether or not to disallow shared libs when runtime libs are static.
20549allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20550
20551# Compiler flag to allow reflexive dlopens.
20552export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20553
20554# Compiler flag to generate shared objects directly from archives.
20555whole_archive_flag_spec=$lt_whole_archive_flag_spec
20556
20557# Whether the compiler copes with passing no objects directly.
20558compiler_needs_object=$lt_compiler_needs_object
20559
20560# Create an old-style archive from a shared archive.
20561old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20562
20563# Create a temporary old-style archive to link instead of a shared archive.
20564old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20565
20566# Commands used to build a shared archive.
20567archive_cmds=$lt_archive_cmds
20568archive_expsym_cmds=$lt_archive_expsym_cmds
20569
20570# Commands used to build a loadable module if different from building
20571# a shared archive.
20572module_cmds=$lt_module_cmds
20573module_expsym_cmds=$lt_module_expsym_cmds
20574
20575# Whether we are building with GNU ld or not.
20576with_gnu_ld=$lt_with_gnu_ld
20577
20578# Flag that allows shared libraries with undefined symbols to be built.
20579allow_undefined_flag=$lt_allow_undefined_flag
20580
20581# Flag that enforces no undefined symbols.
20582no_undefined_flag=$lt_no_undefined_flag
20583
20584# Flag to hardcode \$libdir into a binary during linking.
20585# This must work even if \$libdir does not exist
20586hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20587
20588# Whether we need a single "-rpath" flag with a separated argument.
20589hardcode_libdir_separator=$lt_hardcode_libdir_separator
20590
20591# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20592# DIR into the resulting binary.
20593hardcode_direct=$hardcode_direct
20594
20595# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20596# DIR into the resulting binary and the resulting library dependency is
20597# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20598# library is relocated.
20599hardcode_direct_absolute=$hardcode_direct_absolute
20600
20601# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20602# into the resulting binary.
20603hardcode_minus_L=$hardcode_minus_L
20604
20605# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20606# into the resulting binary.
20607hardcode_shlibpath_var=$hardcode_shlibpath_var
20608
20609# Set to "yes" if building a shared library automatically hardcodes DIR
20610# into the library and all subsequent libraries and executables linked
20611# against it.
20612hardcode_automatic=$hardcode_automatic
20613
20614# Set to yes if linker adds runtime paths of dependent libraries
20615# to runtime path list.
20616inherit_rpath=$inherit_rpath
20617
20618# Whether libtool must link a program against all its dependency libraries.
20619link_all_deplibs=$link_all_deplibs
20620
20621# Set to "yes" if exported symbols are required.
20622always_export_symbols=$always_export_symbols
20623
20624# The commands to list exported symbols.
20625export_symbols_cmds=$lt_export_symbols_cmds
20626
20627# Symbols that should not be listed in the preloaded symbols.
20628exclude_expsyms=$lt_exclude_expsyms
20629
20630# Symbols that must always be exported.
20631include_expsyms=$lt_include_expsyms
20632
20633# Commands necessary for linking programs (against libraries) with templates.
20634prelink_cmds=$lt_prelink_cmds
20635
20636# Commands necessary for finishing linking programs.
20637postlink_cmds=$lt_postlink_cmds
20638
20639# Specify filename containing input files.
20640file_list_spec=$lt_file_list_spec
20641
20642# How to hardcode a shared library path into an executable.
20643hardcode_action=$hardcode_action
20644
20645# The directories searched by this compiler when creating a shared library.
20646compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20647
20648# Dependencies to place before and after the objects being linked to
20649# create a shared library.
20650predep_objects=$lt_predep_objects
20651postdep_objects=$lt_postdep_objects
20652predeps=$lt_predeps
20653postdeps=$lt_postdeps
20654
20655# The library search path used internally by the compiler when linking
20656# a shared library.
20657compiler_lib_search_path=$lt_compiler_lib_search_path
20658
20659# ### END LIBTOOL CONFIG
20660
20661_LT_EOF
20662
20663    cat <<'_LT_EOF' >> "$cfgfile"
20664
20665# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20666
20667# func_munge_path_list VARIABLE PATH
20668# -----------------------------------
20669# VARIABLE is name of variable containing _space_ separated list of
20670# directories to be munged by the contents of PATH, which is string
20671# having a format:
20672# "DIR[:DIR]:"
20673#       string "DIR[ DIR]" will be prepended to VARIABLE
20674# ":DIR[:DIR]"
20675#       string "DIR[ DIR]" will be appended to VARIABLE
20676# "DIRP[:DIRP]::[DIRA:]DIRA"
20677#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20678#       "DIRA[ DIRA]" will be appended to VARIABLE
20679# "DIR[:DIR]"
20680#       VARIABLE will be replaced by "DIR[ DIR]"
20681func_munge_path_list ()
20682{
20683    case x$2 in
20684    x)
20685        ;;
20686    *:)
20687        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20688        ;;
20689    x:*)
20690        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20691        ;;
20692    *::*)
20693        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20694        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20695        ;;
20696    *)
20697        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20698        ;;
20699    esac
20700}
20701
20702
20703# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20704func_cc_basename ()
20705{
20706    for cc_temp in $*""; do
20707      case $cc_temp in
20708        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20709        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20710        \-*) ;;
20711        *) break;;
20712      esac
20713    done
20714    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20715}
20716
20717
20718# ### END FUNCTIONS SHARED WITH CONFIGURE
20719
20720_LT_EOF
20721
20722  case $host_os in
20723  aix3*)
20724    cat <<\_LT_EOF >> "$cfgfile"
20725# AIX sometimes has problems with the GCC collect2 program.  For some
20726# reason, if we set the COLLECT_NAMES environment variable, the problems
20727# vanish in a puff of smoke.
20728if test set != "${COLLECT_NAMES+set}"; then
20729  COLLECT_NAMES=
20730  export COLLECT_NAMES
20731fi
20732_LT_EOF
20733    ;;
20734  esac
20735
20736
20737ltmain=$ac_aux_dir/ltmain.sh
20738
20739
20740  # We use sed instead of cat because bash on DJGPP gets confused if
20741  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20742  # text mode, it properly converts lines to CR/LF.  This bash problem
20743  # is reportedly fixed, but why not run on old versions too?
20744  sed '$q' "$ltmain" >> "$cfgfile" \
20745     || (rm -f "$cfgfile"; exit 1)
20746
20747   mv -f "$cfgfile" "$ofile" ||
20748    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20749  chmod +x "$ofile"
20750
20751
20752    cat <<_LT_EOF >> "$ofile"
20753
20754# ### BEGIN LIBTOOL TAG CONFIG: CXX
20755
20756# The linker used to build libraries.
20757LD=$lt_LD_CXX
20758
20759# How to create reloadable object files.
20760reload_flag=$lt_reload_flag_CXX
20761reload_cmds=$lt_reload_cmds_CXX
20762
20763# Commands used to build an old-style archive.
20764old_archive_cmds=$lt_old_archive_cmds_CXX
20765
20766# A language specific compiler.
20767CC=$lt_compiler_CXX
20768
20769# Is the compiler the GNU compiler?
20770with_gcc=$GCC_CXX
20771
20772# Compiler flag to turn off builtin functions.
20773no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20774
20775# Additional compiler flags for building library objects.
20776pic_flag=$lt_lt_prog_compiler_pic_CXX
20777
20778# How to pass a linker flag through the compiler.
20779wl=$lt_lt_prog_compiler_wl_CXX
20780
20781# Compiler flag to prevent dynamic linking.
20782link_static_flag=$lt_lt_prog_compiler_static_CXX
20783
20784# Does compiler simultaneously support -c and -o options?
20785compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20786
20787# Whether or not to add -lc for building shared libraries.
20788build_libtool_need_lc=$archive_cmds_need_lc_CXX
20789
20790# Whether or not to disallow shared libs when runtime libs are static.
20791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20792
20793# Compiler flag to allow reflexive dlopens.
20794export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20795
20796# Compiler flag to generate shared objects directly from archives.
20797whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20798
20799# Whether the compiler copes with passing no objects directly.
20800compiler_needs_object=$lt_compiler_needs_object_CXX
20801
20802# Create an old-style archive from a shared archive.
20803old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20804
20805# Create a temporary old-style archive to link instead of a shared archive.
20806old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20807
20808# Commands used to build a shared archive.
20809archive_cmds=$lt_archive_cmds_CXX
20810archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20811
20812# Commands used to build a loadable module if different from building
20813# a shared archive.
20814module_cmds=$lt_module_cmds_CXX
20815module_expsym_cmds=$lt_module_expsym_cmds_CXX
20816
20817# Whether we are building with GNU ld or not.
20818with_gnu_ld=$lt_with_gnu_ld_CXX
20819
20820# Flag that allows shared libraries with undefined symbols to be built.
20821allow_undefined_flag=$lt_allow_undefined_flag_CXX
20822
20823# Flag that enforces no undefined symbols.
20824no_undefined_flag=$lt_no_undefined_flag_CXX
20825
20826# Flag to hardcode \$libdir into a binary during linking.
20827# This must work even if \$libdir does not exist
20828hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20829
20830# Whether we need a single "-rpath" flag with a separated argument.
20831hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20832
20833# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20834# DIR into the resulting binary.
20835hardcode_direct=$hardcode_direct_CXX
20836
20837# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20838# DIR into the resulting binary and the resulting library dependency is
20839# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20840# library is relocated.
20841hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20842
20843# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20844# into the resulting binary.
20845hardcode_minus_L=$hardcode_minus_L_CXX
20846
20847# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20848# into the resulting binary.
20849hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20850
20851# Set to "yes" if building a shared library automatically hardcodes DIR
20852# into the library and all subsequent libraries and executables linked
20853# against it.
20854hardcode_automatic=$hardcode_automatic_CXX
20855
20856# Set to yes if linker adds runtime paths of dependent libraries
20857# to runtime path list.
20858inherit_rpath=$inherit_rpath_CXX
20859
20860# Whether libtool must link a program against all its dependency libraries.
20861link_all_deplibs=$link_all_deplibs_CXX
20862
20863# Set to "yes" if exported symbols are required.
20864always_export_symbols=$always_export_symbols_CXX
20865
20866# The commands to list exported symbols.
20867export_symbols_cmds=$lt_export_symbols_cmds_CXX
20868
20869# Symbols that should not be listed in the preloaded symbols.
20870exclude_expsyms=$lt_exclude_expsyms_CXX
20871
20872# Symbols that must always be exported.
20873include_expsyms=$lt_include_expsyms_CXX
20874
20875# Commands necessary for linking programs (against libraries) with templates.
20876prelink_cmds=$lt_prelink_cmds_CXX
20877
20878# Commands necessary for finishing linking programs.
20879postlink_cmds=$lt_postlink_cmds_CXX
20880
20881# Specify filename containing input files.
20882file_list_spec=$lt_file_list_spec_CXX
20883
20884# How to hardcode a shared library path into an executable.
20885hardcode_action=$hardcode_action_CXX
20886
20887# The directories searched by this compiler when creating a shared library.
20888compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20889
20890# Dependencies to place before and after the objects being linked to
20891# create a shared library.
20892predep_objects=$lt_predep_objects_CXX
20893postdep_objects=$lt_postdep_objects_CXX
20894predeps=$lt_predeps_CXX
20895postdeps=$lt_postdeps_CXX
20896
20897# The library search path used internally by the compiler when linking
20898# a shared library.
20899compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20900
20901# ### END LIBTOOL TAG CONFIG: CXX
20902_LT_EOF
20903
20904 ;;
20905
20906  esac
20907done # for ac_tag
20908
20909
20910as_fn_exit 0
20911_ACEOF
20912ac_clean_files=$ac_clean_files_save
20913
20914test $ac_write_fail = 0 ||
20915  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20916
20917
20918# configure is writing to config.log, and then calls config.status.
20919# config.status does its own redirection, appending to config.log.
20920# Unfortunately, on DOS this fails, as config.log is still kept open
20921# by configure, so config.status won't be able to write to it; its
20922# output is simply discarded.  So we exec the FD to /dev/null,
20923# effectively closing config.log, so it can be properly (re)opened and
20924# appended to by config.status.  When coming back to configure, we
20925# need to make the FD available again.
20926if test "$no_create" != yes; then
20927  ac_cs_success=:
20928  ac_config_status_args=
20929  test "$silent" = yes &&
20930    ac_config_status_args="$ac_config_status_args --quiet"
20931  exec 5>/dev/null
20932  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20933  exec 5>>config.log
20934  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20935  # would make configure fail if this is the last instruction.
20936  $ac_cs_success || as_fn_exit 1
20937fi
20938
20939#
20940# CONFIG_SUBDIRS section.
20941#
20942if test "$no_recursion" != yes; then
20943
20944  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20945  # so they do not pile up.
20946  ac_sub_configure_args=
20947  ac_prev=
20948  eval "set x $ac_configure_args"
20949  shift
20950  for ac_arg
20951  do
20952    if test -n "$ac_prev"; then
20953      ac_prev=
20954      continue
20955    fi
20956    case $ac_arg in
20957    -cache-file | --cache-file | --cache-fil | --cache-fi \
20958    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20959      ac_prev=cache_file ;;
20960    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20961    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20962    | --c=*)
20963      ;;
20964    --config-cache | -C)
20965      ;;
20966    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20967      ac_prev=srcdir ;;
20968    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20969      ;;
20970    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20971      ac_prev=prefix ;;
20972    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20973      ;;
20974    --disable-option-checking)
20975      ;;
20976    *)
20977      case $ac_arg in
20978      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20979      esac
20980      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
20981    esac
20982  done
20983
20984  # Always prepend --prefix to ensure using the same prefix
20985  # in subdir configurations.
20986  ac_arg="--prefix=$prefix"
20987  case $ac_arg in
20988  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20989  esac
20990  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20991
20992  # Pass --silent
20993  if test "$silent" = yes; then
20994    ac_sub_configure_args="--silent $ac_sub_configure_args"
20995  fi
20996
20997  # Always prepend --disable-option-checking to silence warnings, since
20998  # different subdirs can have different --enable and --with options.
20999  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21000
21001  ac_popdir=`pwd`
21002  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21003
21004    # Do not complain, so a configure script can configure whichever
21005    # parts of a large source tree are present.
21006    test -d "$srcdir/$ac_dir" || continue
21007
21008    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21009    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21010    $as_echo "$ac_msg" >&6
21011    as_dir="$ac_dir"; as_fn_mkdir_p
21012    ac_builddir=.
21013
21014case "$ac_dir" in
21015.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21016*)
21017  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21018  # A ".." for each directory in $ac_dir_suffix.
21019  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21020  case $ac_top_builddir_sub in
21021  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21022  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21023  esac ;;
21024esac
21025ac_abs_top_builddir=$ac_pwd
21026ac_abs_builddir=$ac_pwd$ac_dir_suffix
21027# for backward compatibility:
21028ac_top_builddir=$ac_top_build_prefix
21029
21030case $srcdir in
21031  .)  # We are building in place.
21032    ac_srcdir=.
21033    ac_top_srcdir=$ac_top_builddir_sub
21034    ac_abs_top_srcdir=$ac_pwd ;;
21035  [\\/]* | ?:[\\/]* )  # Absolute name.
21036    ac_srcdir=$srcdir$ac_dir_suffix;
21037    ac_top_srcdir=$srcdir
21038    ac_abs_top_srcdir=$srcdir ;;
21039  *) # Relative name.
21040    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21041    ac_top_srcdir=$ac_top_build_prefix$srcdir
21042    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21043esac
21044ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21045
21046
21047    cd "$ac_dir"
21048
21049    # Check for guested configure; otherwise get Cygnus style configure.
21050    if test -f "$ac_srcdir/configure.gnu"; then
21051      ac_sub_configure=$ac_srcdir/configure.gnu
21052    elif test -f "$ac_srcdir/configure"; then
21053      ac_sub_configure=$ac_srcdir/configure
21054    elif test -f "$ac_srcdir/configure.in"; then
21055      # This should be Cygnus configure.
21056      ac_sub_configure=$ac_aux_dir/configure
21057    else
21058      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21059$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21060      ac_sub_configure=
21061    fi
21062
21063    # The recursion is here.
21064    if test -n "$ac_sub_configure"; then
21065      # Make the cache file name correct relative to the subdirectory.
21066      case $cache_file in
21067      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21068      *) # Relative name.
21069	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21070      esac
21071
21072      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21073$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21074      # The eval makes quoting arguments work.
21075      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21076	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21077	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21078    fi
21079
21080    cd "$ac_popdir"
21081  done
21082fi
21083if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21084  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21085$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21086fi
21087
21088