1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530# Check that we are running under the correct shell.
531SHELL=${CONFIG_SHELL-/bin/sh}
532
533case X$lt_ECHO in
534X*--fallback-echo)
535  # Remove one level of quotation (which was required for Make).
536  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537  ;;
538esac
539
540ECHO=${lt_ECHO-echo}
541if test "X$1" = X--no-reexec; then
542  # Discard the --no-reexec flag, and continue.
543  shift
544elif test "X$1" = X--fallback-echo; then
545  # Avoid inline document here, it may be left over
546  :
547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548  # Yippee, $ECHO works!
549  :
550else
551  # Restart under the correct shell.
552  exec $SHELL "$0" --no-reexec ${1+"$@"}
553fi
554
555if test "X$1" = X--fallback-echo; then
556  # used as fallback echo
557  shift
558  cat <<_LT_EOF
559$*
560_LT_EOF
561  exit 0
562fi
563
564# The HP-UX ksh and POSIX shell print the target directory to stdout
565# if CDPATH is set.
566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568if test -z "$lt_ECHO"; then
569  if test "X${echo_test_string+set}" != Xset; then
570    # find a string as large as possible, as long as the shell can cope with it
571    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575      then
576        break
577      fi
578    done
579  fi
580
581  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583     test "X$echo_testing_string" = "X$echo_test_string"; then
584    :
585  else
586    # The Solaris, AIX, and Digital Unix default echo programs unquote
587    # backslashes.  This makes it impossible to quote backslashes using
588    #   echo "$something" | sed 's/\\/\\\\/g'
589    #
590    # So, first we look for a working echo in the user's PATH.
591
592    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593    for dir in $PATH /usr/ucb; do
594      IFS="$lt_save_ifs"
595      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598         test "X$echo_testing_string" = "X$echo_test_string"; then
599        ECHO="$dir/echo"
600        break
601      fi
602    done
603    IFS="$lt_save_ifs"
604
605    if test "X$ECHO" = Xecho; then
606      # We didn't find a better echo, so look for alternatives.
607      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        # This shell has a builtin print -r that does the trick.
611        ECHO='print -r'
612      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613	   test "X$CONFIG_SHELL" != X/bin/ksh; then
614        # If we have ksh, try running configure again with it.
615        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616        export ORIGINAL_CONFIG_SHELL
617        CONFIG_SHELL=/bin/ksh
618        export CONFIG_SHELL
619        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620      else
621        # Try using printf.
622        ECHO='printf %s\n'
623        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625	   test "X$echo_testing_string" = "X$echo_test_string"; then
626	  # Cool, printf works
627	  :
628        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629	     test "X$echo_testing_string" = 'X\t' &&
630	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631	     test "X$echo_testing_string" = "X$echo_test_string"; then
632	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633	  export CONFIG_SHELL
634	  SHELL="$CONFIG_SHELL"
635	  export SHELL
636	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
637        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638	     test "X$echo_testing_string" = 'X\t' &&
639	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640	     test "X$echo_testing_string" = "X$echo_test_string"; then
641	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
642        else
643	  # maybe with a smaller string...
644	  prev=:
645
646	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648	    then
649	      break
650	    fi
651	    prev="$cmd"
652	  done
653
654	  if test "$prev" != 'sed 50q "$0"'; then
655	    echo_test_string=`eval $prev`
656	    export echo_test_string
657	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658	  else
659	    # Oops.  We lost completely, so just stick with echo.
660	    ECHO=echo
661	  fi
662        fi
663      fi
664    fi
665  fi
666fi
667
668# Copy echo and quote the copy suitably for passing to libtool from
669# the Makefile, instead of quoting the original, which is used later.
670lt_ECHO=$ECHO
671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673fi
674
675
676
677
678test -n "$DJDIR" || exec 7<&0 </dev/null
679exec 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME=
700PACKAGE_TARNAME=
701PACKAGE_VERSION=
702PACKAGE_STRING=
703PACKAGE_BUGREPORT=
704PACKAGE_URL=
705
706ac_unique_file="include/vdk/vdk.h"
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
746LIBOBJS
747INCLUDES
748GNOME_VDK
749GNOME_CFLAGS
750GNOME_LIBS
751GNOMEDEFINE
752TAG_SIGC
753GENERATE_MAN
754GENERATE_LATEX
755GENERATE_HTML
756TESTVDK
757PERL
758DOXYGEN
759GTK_LIBS
760GTK_CFLAGS
761PKG_CONFIG
762CXXCPP
763am__fastdepCXX_FALSE
764am__fastdepCXX_TRUE
765CXXDEPMODE
766ac_ct_CXX
767CXXFLAGS
768CXX
769MAINT
770MAINTAINER_MODE_FALSE
771MAINTAINER_MODE_TRUE
772CPP
773OTOOL64
774OTOOL
775LIPO
776NMEDIT
777DSYMUTIL
778lt_ECHO
779RANLIB
780AR
781OBJDUMP
782LN_S
783NM
784ac_ct_DUMPBIN
785DUMPBIN
786LD
787FGREP
788EGREP
789GREP
790SED
791am__fastdepCC_FALSE
792am__fastdepCC_TRUE
793CCDEPMODE
794AMDEPBACKSLASH
795AMDEP_FALSE
796AMDEP_TRUE
797am__quote
798am__include
799DEPDIR
800OBJEXT
801EXEEXT
802ac_ct_CC
803CPPFLAGS
804LDFLAGS
805CFLAGS
806CC
807LIBTOOL
808host_os
809host_vendor
810host_cpu
811host
812build_os
813build_vendor
814build_cpu
815build
816am__untar
817am__tar
818AMTAR
819am__leading_dot
820SET_MAKE
821AWK
822mkdir_p
823MKDIR_P
824INSTALL_STRIP_PROGRAM
825STRIP
826install_sh
827MAKEINFO
828AUTOHEADER
829AUTOMAKE
830AUTOCONF
831ACLOCAL
832VERSION
833PACKAGE
834CYGPATH_W
835am__isrc
836INSTALL_DATA
837INSTALL_SCRIPT
838INSTALL_PROGRAM
839LT_VDK_AGE
840LT_VDK_REVISION
841LT_VDK_CURRENT
842LT_VDK_RELEASE
843VDK_RELEASE_DATE
844VDK_VERSION
845VDK_VERSION_MICRO
846VDK_VERSION_MINOR
847VDK_VERSION_MAJOR
848target_alias
849host_alias
850build_alias
851LIBS
852ECHO_T
853ECHO_N
854ECHO_C
855DEFS
856mandir
857localedir
858libdir
859psdir
860pdfdir
861dvidir
862htmldir
863infodir
864docdir
865oldincludedir
866includedir
867localstatedir
868sharedstatedir
869sysconfdir
870datadir
871datarootdir
872libexecdir
873sbindir
874bindir
875program_transform_name
876prefix
877exec_prefix
878PACKAGE_URL
879PACKAGE_BUGREPORT
880PACKAGE_STRING
881PACKAGE_VERSION
882PACKAGE_TARNAME
883PACKAGE_NAME
884PATH_SEPARATOR
885SHELL'
886ac_subst_files=''
887ac_user_opts='
888enable_option_checking
889enable_shared
890enable_static
891with_pic
892enable_fast_install
893enable_dependency_tracking
894with_gnu_ld
895enable_libtool_lock
896enable_maintainer_mode
897enable_debug
898enable_opt
899enable_testvdk
900enable_doc_html
901enable_doc_latex
902enable_doc_man
903'
904      ac_precious_vars='build_alias
905host_alias
906target_alias
907CC
908CFLAGS
909LDFLAGS
910LIBS
911CPPFLAGS
912CPP
913CXX
914CXXFLAGS
915CCC
916CXXCPP'
917
918
919# Initialize some variables set by options.
920ac_init_help=
921ac_init_version=false
922ac_unrecognized_opts=
923ac_unrecognized_sep=
924# The variables have the same names as the options, with
925# dashes changed to underlines.
926cache_file=/dev/null
927exec_prefix=NONE
928no_create=
929no_recursion=
930prefix=NONE
931program_prefix=NONE
932program_suffix=NONE
933program_transform_name=s,x,x,
934silent=
935site=
936srcdir=
937verbose=
938x_includes=NONE
939x_libraries=NONE
940
941# Installation directory options.
942# These are left unexpanded so users can "make install exec_prefix=/foo"
943# and all the variables that are supposed to be based on exec_prefix
944# by default will actually change.
945# Use braces instead of parens because sh, perl, etc. also accept them.
946# (The list follows the same order as the GNU Coding Standards.)
947bindir='${exec_prefix}/bin'
948sbindir='${exec_prefix}/sbin'
949libexecdir='${exec_prefix}/libexec'
950datarootdir='${prefix}/share'
951datadir='${datarootdir}'
952sysconfdir='${prefix}/etc'
953sharedstatedir='${prefix}/com'
954localstatedir='${prefix}/var'
955includedir='${prefix}/include'
956oldincludedir='/usr/include'
957docdir='${datarootdir}/doc/${PACKAGE}'
958infodir='${datarootdir}/info'
959htmldir='${docdir}'
960dvidir='${docdir}'
961pdfdir='${docdir}'
962psdir='${docdir}'
963libdir='${exec_prefix}/lib'
964localedir='${datarootdir}/locale'
965mandir='${datarootdir}/man'
966
967ac_prev=
968ac_dashdash=
969for ac_option
970do
971  # If the previous option needs an argument, assign it.
972  if test -n "$ac_prev"; then
973    eval $ac_prev=\$ac_option
974    ac_prev=
975    continue
976  fi
977
978  case $ac_option in
979  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980  *)	ac_optarg=yes ;;
981  esac
982
983  # Accept the important Cygnus configure options, so we can diagnose typos.
984
985  case $ac_dashdash$ac_option in
986  --)
987    ac_dashdash=yes ;;
988
989  -bindir | --bindir | --bindi | --bind | --bin | --bi)
990    ac_prev=bindir ;;
991  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992    bindir=$ac_optarg ;;
993
994  -build | --build | --buil | --bui | --bu)
995    ac_prev=build_alias ;;
996  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997    build_alias=$ac_optarg ;;
998
999  -cache-file | --cache-file | --cache-fil | --cache-fi \
1000  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001    ac_prev=cache_file ;;
1002  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004    cache_file=$ac_optarg ;;
1005
1006  --config-cache | -C)
1007    cache_file=config.cache ;;
1008
1009  -datadir | --datadir | --datadi | --datad)
1010    ac_prev=datadir ;;
1011  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012    datadir=$ac_optarg ;;
1013
1014  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015  | --dataroo | --dataro | --datar)
1016    ac_prev=datarootdir ;;
1017  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019    datarootdir=$ac_optarg ;;
1020
1021  -disable-* | --disable-*)
1022    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023    # Reject names that are not valid shell variable names.
1024    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025      as_fn_error "invalid feature name: $ac_useropt"
1026    ac_useropt_orig=$ac_useropt
1027    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028    case $ac_user_opts in
1029      *"
1030"enable_$ac_useropt"
1031"*) ;;
1032      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033	 ac_unrecognized_sep=', ';;
1034    esac
1035    eval enable_$ac_useropt=no ;;
1036
1037  -docdir | --docdir | --docdi | --doc | --do)
1038    ac_prev=docdir ;;
1039  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040    docdir=$ac_optarg ;;
1041
1042  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043    ac_prev=dvidir ;;
1044  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045    dvidir=$ac_optarg ;;
1046
1047  -enable-* | --enable-*)
1048    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049    # Reject names that are not valid shell variable names.
1050    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051      as_fn_error "invalid feature name: $ac_useropt"
1052    ac_useropt_orig=$ac_useropt
1053    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054    case $ac_user_opts in
1055      *"
1056"enable_$ac_useropt"
1057"*) ;;
1058      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059	 ac_unrecognized_sep=', ';;
1060    esac
1061    eval enable_$ac_useropt=\$ac_optarg ;;
1062
1063  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1064  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1065  | --exec | --exe | --ex)
1066    ac_prev=exec_prefix ;;
1067  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1068  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1069  | --exec=* | --exe=* | --ex=*)
1070    exec_prefix=$ac_optarg ;;
1071
1072  -gas | --gas | --ga | --g)
1073    # Obsolete; use --with-gas.
1074    with_gas=yes ;;
1075
1076  -help | --help | --hel | --he | -h)
1077    ac_init_help=long ;;
1078  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1079    ac_init_help=recursive ;;
1080  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1081    ac_init_help=short ;;
1082
1083  -host | --host | --hos | --ho)
1084    ac_prev=host_alias ;;
1085  -host=* | --host=* | --hos=* | --ho=*)
1086    host_alias=$ac_optarg ;;
1087
1088  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089    ac_prev=htmldir ;;
1090  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091  | --ht=*)
1092    htmldir=$ac_optarg ;;
1093
1094  -includedir | --includedir | --includedi | --included | --include \
1095  | --includ | --inclu | --incl | --inc)
1096    ac_prev=includedir ;;
1097  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1098  | --includ=* | --inclu=* | --incl=* | --inc=*)
1099    includedir=$ac_optarg ;;
1100
1101  -infodir | --infodir | --infodi | --infod | --info | --inf)
1102    ac_prev=infodir ;;
1103  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1104    infodir=$ac_optarg ;;
1105
1106  -libdir | --libdir | --libdi | --libd)
1107    ac_prev=libdir ;;
1108  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1109    libdir=$ac_optarg ;;
1110
1111  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1112  | --libexe | --libex | --libe)
1113    ac_prev=libexecdir ;;
1114  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1115  | --libexe=* | --libex=* | --libe=*)
1116    libexecdir=$ac_optarg ;;
1117
1118  -localedir | --localedir | --localedi | --localed | --locale)
1119    ac_prev=localedir ;;
1120  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1121    localedir=$ac_optarg ;;
1122
1123  -localstatedir | --localstatedir | --localstatedi | --localstated \
1124  | --localstate | --localstat | --localsta | --localst | --locals)
1125    ac_prev=localstatedir ;;
1126  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1127  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1128    localstatedir=$ac_optarg ;;
1129
1130  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131    ac_prev=mandir ;;
1132  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1133    mandir=$ac_optarg ;;
1134
1135  -nfp | --nfp | --nf)
1136    # Obsolete; use --without-fp.
1137    with_fp=no ;;
1138
1139  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1140  | --no-cr | --no-c | -n)
1141    no_create=yes ;;
1142
1143  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1144  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145    no_recursion=yes ;;
1146
1147  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1148  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1149  | --oldin | --oldi | --old | --ol | --o)
1150    ac_prev=oldincludedir ;;
1151  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1152  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1153  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1154    oldincludedir=$ac_optarg ;;
1155
1156  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157    ac_prev=prefix ;;
1158  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1159    prefix=$ac_optarg ;;
1160
1161  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1162  | --program-pre | --program-pr | --program-p)
1163    ac_prev=program_prefix ;;
1164  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1165  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1166    program_prefix=$ac_optarg ;;
1167
1168  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1169  | --program-suf | --program-su | --program-s)
1170    ac_prev=program_suffix ;;
1171  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1172  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1173    program_suffix=$ac_optarg ;;
1174
1175  -program-transform-name | --program-transform-name \
1176  | --program-transform-nam | --program-transform-na \
1177  | --program-transform-n | --program-transform- \
1178  | --program-transform | --program-transfor \
1179  | --program-transfo | --program-transf \
1180  | --program-trans | --program-tran \
1181  | --progr-tra | --program-tr | --program-t)
1182    ac_prev=program_transform_name ;;
1183  -program-transform-name=* | --program-transform-name=* \
1184  | --program-transform-nam=* | --program-transform-na=* \
1185  | --program-transform-n=* | --program-transform-=* \
1186  | --program-transform=* | --program-transfor=* \
1187  | --program-transfo=* | --program-transf=* \
1188  | --program-trans=* | --program-tran=* \
1189  | --progr-tra=* | --program-tr=* | --program-t=*)
1190    program_transform_name=$ac_optarg ;;
1191
1192  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193    ac_prev=pdfdir ;;
1194  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1195    pdfdir=$ac_optarg ;;
1196
1197  -psdir | --psdir | --psdi | --psd | --ps)
1198    ac_prev=psdir ;;
1199  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200    psdir=$ac_optarg ;;
1201
1202  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203  | -silent | --silent | --silen | --sile | --sil)
1204    silent=yes ;;
1205
1206  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207    ac_prev=sbindir ;;
1208  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209  | --sbi=* | --sb=*)
1210    sbindir=$ac_optarg ;;
1211
1212  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1213  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1214  | --sharedst | --shareds | --shared | --share | --shar \
1215  | --sha | --sh)
1216    ac_prev=sharedstatedir ;;
1217  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1218  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1219  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220  | --sha=* | --sh=*)
1221    sharedstatedir=$ac_optarg ;;
1222
1223  -site | --site | --sit)
1224    ac_prev=site ;;
1225  -site=* | --site=* | --sit=*)
1226    site=$ac_optarg ;;
1227
1228  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229    ac_prev=srcdir ;;
1230  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1231    srcdir=$ac_optarg ;;
1232
1233  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1234  | --syscon | --sysco | --sysc | --sys | --sy)
1235    ac_prev=sysconfdir ;;
1236  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1237  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1238    sysconfdir=$ac_optarg ;;
1239
1240  -target | --target | --targe | --targ | --tar | --ta | --t)
1241    ac_prev=target_alias ;;
1242  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1243    target_alias=$ac_optarg ;;
1244
1245  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246    verbose=yes ;;
1247
1248  -version | --version | --versio | --versi | --vers | -V)
1249    ac_init_version=: ;;
1250
1251  -with-* | --with-*)
1252    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253    # Reject names that are not valid shell variable names.
1254    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255      as_fn_error "invalid package name: $ac_useropt"
1256    ac_useropt_orig=$ac_useropt
1257    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258    case $ac_user_opts in
1259      *"
1260"with_$ac_useropt"
1261"*) ;;
1262      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263	 ac_unrecognized_sep=', ';;
1264    esac
1265    eval with_$ac_useropt=\$ac_optarg ;;
1266
1267  -without-* | --without-*)
1268    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269    # Reject names that are not valid shell variable names.
1270    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271      as_fn_error "invalid package name: $ac_useropt"
1272    ac_useropt_orig=$ac_useropt
1273    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274    case $ac_user_opts in
1275      *"
1276"with_$ac_useropt"
1277"*) ;;
1278      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279	 ac_unrecognized_sep=', ';;
1280    esac
1281    eval with_$ac_useropt=no ;;
1282
1283  --x)
1284    # Obsolete; use --with-x.
1285    with_x=yes ;;
1286
1287  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288  | --x-incl | --x-inc | --x-in | --x-i)
1289    ac_prev=x_includes ;;
1290  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292    x_includes=$ac_optarg ;;
1293
1294  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296    ac_prev=x_libraries ;;
1297  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299    x_libraries=$ac_optarg ;;
1300
1301  -*) as_fn_error "unrecognized option: \`$ac_option'
1302Try \`$0 --help' for more information."
1303    ;;
1304
1305  *=*)
1306    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307    # Reject names that are not valid shell variable names.
1308    case $ac_envvar in #(
1309      '' | [0-9]* | *[!_$as_cr_alnum]* )
1310      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1311    esac
1312    eval $ac_envvar=\$ac_optarg
1313    export $ac_envvar ;;
1314
1315  *)
1316    # FIXME: should be removed in autoconf 3.0.
1317    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1321    ;;
1322
1323  esac
1324done
1325
1326if test -n "$ac_prev"; then
1327  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328  as_fn_error "missing argument to $ac_option"
1329fi
1330
1331if test -n "$ac_unrecognized_opts"; then
1332  case $enable_option_checking in
1333    no) ;;
1334    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1335    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336  esac
1337fi
1338
1339# Check all directory arguments for consistency.
1340for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341		datadir sysconfdir sharedstatedir localstatedir includedir \
1342		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343		libdir localedir mandir
1344do
1345  eval ac_val=\$$ac_var
1346  # Remove trailing slashes.
1347  case $ac_val in
1348    */ )
1349      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350      eval $ac_var=\$ac_val;;
1351  esac
1352  # Be sure to have absolute directory names.
1353  case $ac_val in
1354    [\\/$]* | ?:[\\/]* )  continue;;
1355    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356  esac
1357  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1358done
1359
1360# There might be people who depend on the old broken behavior: `$host'
1361# used to hold the argument of --host etc.
1362# FIXME: To remove some day.
1363build=$build_alias
1364host=$host_alias
1365target=$target_alias
1366
1367# FIXME: To remove some day.
1368if test "x$host_alias" != x; then
1369  if test "x$build_alias" = x; then
1370    cross_compiling=maybe
1371    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372    If a cross compiler is detected then cross compile mode will be used." >&2
1373  elif test "x$build_alias" != "x$host_alias"; then
1374    cross_compiling=yes
1375  fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
1383
1384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387  as_fn_error "working directory cannot be determined"
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389  as_fn_error "pwd does not report name of working directory"
1390
1391
1392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394  ac_srcdir_defaulted=yes
1395  # Try the directory containing this script, then the parent directory.
1396  ac_confdir=`$as_dirname -- "$as_myself" ||
1397$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398	 X"$as_myself" : 'X\(//\)[^/]' \| \
1399	 X"$as_myself" : 'X\(//\)$' \| \
1400	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401$as_echo X"$as_myself" |
1402    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403	    s//\1/
1404	    q
1405	  }
1406	  /^X\(\/\/\)[^/].*/{
1407	    s//\1/
1408	    q
1409	  }
1410	  /^X\(\/\/\)$/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\).*/{
1415	    s//\1/
1416	    q
1417	  }
1418	  s/.*/./; q'`
1419  srcdir=$ac_confdir
1420  if test ! -r "$srcdir/$ac_unique_file"; then
1421    srcdir=..
1422  fi
1423else
1424  ac_srcdir_defaulted=no
1425fi
1426if test ! -r "$srcdir/$ac_unique_file"; then
1427  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1429fi
1430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431ac_abs_confdir=`(
1432	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1433	pwd)`
1434# When building in place, set srcdir=.
1435if test "$ac_abs_confdir" = "$ac_pwd"; then
1436  srcdir=.
1437fi
1438# Remove unnecessary trailing slashes from srcdir.
1439# Double slashes in file names in object file debugging info
1440# mess up M-x gdb in Emacs.
1441case $srcdir in
1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443esac
1444for ac_var in $ac_precious_vars; do
1445  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446  eval ac_env_${ac_var}_value=\$${ac_var}
1447  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449done
1450
1451#
1452# Report the --help message.
1453#
1454if test "$ac_init_help" = "long"; then
1455  # Omit some internal or obsolete options to make the list less imposing.
1456  # This message is too long to be a string in the A/UX 3.1 sh.
1457  cat <<_ACEOF
1458\`configure' configures this package to adapt to many kinds of systems.
1459
1460Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463VAR=VALUE.  See below for descriptions of some of the useful variables.
1464
1465Defaults for the options are specified in brackets.
1466
1467Configuration:
1468  -h, --help              display this help and exit
1469      --help=short        display options specific to this package
1470      --help=recursive    display the short help of all the included packages
1471  -V, --version           display version information and exit
1472  -q, --quiet, --silent   do not print \`checking...' messages
1473      --cache-file=FILE   cache test results in FILE [disabled]
1474  -C, --config-cache      alias for \`--cache-file=config.cache'
1475  -n, --no-create         do not create output files
1476      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1477
1478Installation directories:
1479  --prefix=PREFIX         install architecture-independent files in PREFIX
1480                          [$ac_default_prefix]
1481  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1482                          [PREFIX]
1483
1484By default, \`make install' will install all the files in
1485\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1486an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487for instance \`--prefix=\$HOME'.
1488
1489For better control, use the options below.
1490
1491Fine tuning of the installation directories:
1492  --bindir=DIR            user executables [EPREFIX/bin]
1493  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1494  --libexecdir=DIR        program executables [EPREFIX/libexec]
1495  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1496  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1497  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1498  --libdir=DIR            object code libraries [EPREFIX/lib]
1499  --includedir=DIR        C header files [PREFIX/include]
1500  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1501  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1502  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1503  --infodir=DIR           info documentation [DATAROOTDIR/info]
1504  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1505  --mandir=DIR            man documentation [DATAROOTDIR/man]
1506  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1507  --htmldir=DIR           html documentation [DOCDIR]
1508  --dvidir=DIR            dvi documentation [DOCDIR]
1509  --pdfdir=DIR            pdf documentation [DOCDIR]
1510  --psdir=DIR             ps documentation [DOCDIR]
1511_ACEOF
1512
1513  cat <<\_ACEOF
1514
1515Program names:
1516  --program-prefix=PREFIX            prepend PREFIX to installed program names
1517  --program-suffix=SUFFIX            append SUFFIX to installed program names
1518  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1519
1520System types:
1521  --build=BUILD     configure for building on BUILD [guessed]
1522  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1523_ACEOF
1524fi
1525
1526if test -n "$ac_init_help"; then
1527
1528  cat <<\_ACEOF
1529
1530Optional Features:
1531  --disable-option-checking  ignore unrecognized --enable/--with options
1532  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534  --enable-shared[=PKGS]  build shared libraries [default=yes]
1535  --enable-static[=PKGS]  build static libraries [default=yes]
1536  --enable-fast-install[=PKGS]
1537                          optimize for fast installation [default=yes]
1538  --disable-dependency-tracking  speeds up one-time build
1539  --enable-dependency-tracking   do not reject slow dependency extractors
1540  --disable-libtool-lock  avoid locking (might break parallel builds)
1541  --enable-maintainer-mode  enable make rules and dependencies not useful
1542			  (and sometimes confusing) to the casual installer
1543  --enable-debug=no/minimum/yes  enable debug information default=no
1544  --enable-opt=OPTIMIZATION/no  Compile with -Ox optimization default=2
1545  --enable-testvdk=yes/no Compile testvdk program example default=yes
1546 --enable-doc-html=yes/no enable generation of docs in html format default=yes
1547 --enable-doc-latex=yes/no enable generation of docs in latex format default=no
1548 --enable-doc-man=yes/no enable generation of docs in latex format default=no
1549
1550Optional Packages:
1551  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1552  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1553  --with-pic              try to use only PIC/non-PIC objects [default=use
1554                          both]
1555  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1556
1557Some influential environment variables:
1558  CC          C compiler command
1559  CFLAGS      C compiler flags
1560  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561              nonstandard directory <lib dir>
1562  LIBS        libraries to pass to the linker, e.g. -l<library>
1563  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1564              you have headers in a nonstandard directory <include dir>
1565  CPP         C preprocessor
1566  CXX         C++ compiler command
1567  CXXFLAGS    C++ compiler flags
1568  CXXCPP      C++ preprocessor
1569
1570Use these variables to override the choices made by `configure' or to help
1571it to find libraries and programs with nonstandard names/locations.
1572
1573Report bugs to the package provider.
1574_ACEOF
1575ac_status=$?
1576fi
1577
1578if test "$ac_init_help" = "recursive"; then
1579  # If there are subdirs, report their specific --help.
1580  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581    test -d "$ac_dir" ||
1582      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583      continue
1584    ac_builddir=.
1585
1586case "$ac_dir" in
1587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588*)
1589  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590  # A ".." for each directory in $ac_dir_suffix.
1591  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592  case $ac_top_builddir_sub in
1593  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595  esac ;;
1596esac
1597ac_abs_top_builddir=$ac_pwd
1598ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599# for backward compatibility:
1600ac_top_builddir=$ac_top_build_prefix
1601
1602case $srcdir in
1603  .)  # We are building in place.
1604    ac_srcdir=.
1605    ac_top_srcdir=$ac_top_builddir_sub
1606    ac_abs_top_srcdir=$ac_pwd ;;
1607  [\\/]* | ?:[\\/]* )  # Absolute name.
1608    ac_srcdir=$srcdir$ac_dir_suffix;
1609    ac_top_srcdir=$srcdir
1610    ac_abs_top_srcdir=$srcdir ;;
1611  *) # Relative name.
1612    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613    ac_top_srcdir=$ac_top_build_prefix$srcdir
1614    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615esac
1616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618    cd "$ac_dir" || { ac_status=$?; continue; }
1619    # Check for guested configure.
1620    if test -f "$ac_srcdir/configure.gnu"; then
1621      echo &&
1622      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623    elif test -f "$ac_srcdir/configure"; then
1624      echo &&
1625      $SHELL "$ac_srcdir/configure" --help=recursive
1626    else
1627      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628    fi || ac_status=$?
1629    cd "$ac_pwd" || { ac_status=$?; break; }
1630  done
1631fi
1632
1633test -n "$ac_init_help" && exit $ac_status
1634if $ac_init_version; then
1635  cat <<\_ACEOF
1636configure
1637generated by GNU Autoconf 2.65
1638
1639Copyright (C) 2009 Free Software Foundation, Inc.
1640This configure script is free software; the Free Software Foundation
1641gives unlimited permission to copy, distribute and modify it.
1642_ACEOF
1643  exit
1644fi
1645
1646## ------------------------ ##
1647## Autoconf initialization. ##
1648## ------------------------ ##
1649
1650# ac_fn_c_try_compile LINENO
1651# --------------------------
1652# Try to compile conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_compile ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  rm -f conftest.$ac_objext
1657  if { { ac_try="$ac_compile"
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_compile") 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_objext; then :
1676  ac_retval=0
1677else
1678  $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681	ac_retval=1
1682fi
1683  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684  as_fn_set_status $ac_retval
1685
1686} # ac_fn_c_try_compile
1687
1688# ac_fn_c_try_link LINENO
1689# -----------------------
1690# Try to link conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_link ()
1692{
1693  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694  rm -f conftest.$ac_objext conftest$ac_exeext
1695  if { { ac_try="$ac_link"
1696case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_link") 2>conftest.err
1703  ac_status=$?
1704  if test -s conftest.err; then
1705    grep -v '^ *+' conftest.err >conftest.er1
1706    cat conftest.er1 >&5
1707    mv -f conftest.er1 conftest.err
1708  fi
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } && {
1711	 test -z "$ac_c_werror_flag" ||
1712	 test ! -s conftest.err
1713       } && test -s conftest$ac_exeext && {
1714	 test "$cross_compiling" = yes ||
1715	 $as_test_x conftest$ac_exeext
1716       }; then :
1717  ac_retval=0
1718else
1719  $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722	ac_retval=1
1723fi
1724  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726  # interfere with the next link command; also delete a directory that is
1727  # left behind by Apple's compiler.  We do this before executing the actions.
1728  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_link
1733
1734# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1735# -------------------------------------------------------
1736# Tests whether HEADER exists and can be compiled using the include files in
1737# INCLUDES, setting the cache variable VAR accordingly.
1738ac_fn_c_check_header_compile ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
1743if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1744  $as_echo_n "(cached) " >&6
1745else
1746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752  eval "$3=yes"
1753else
1754  eval "$3=no"
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757fi
1758eval ac_res=\$$3
1759	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
1761  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762
1763} # ac_fn_c_check_header_compile
1764
1765# ac_fn_c_try_cpp LINENO
1766# ----------------------
1767# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768ac_fn_c_try_cpp ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1779  ac_status=$?
1780  if test -s conftest.err; then
1781    grep -v '^ *+' conftest.err >conftest.er1
1782    cat conftest.er1 >&5
1783    mv -f conftest.er1 conftest.err
1784  fi
1785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; } >/dev/null && {
1787	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788	 test ! -s conftest.err
1789       }; then :
1790  ac_retval=0
1791else
1792  $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795    ac_retval=1
1796fi
1797  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798  as_fn_set_status $ac_retval
1799
1800} # ac_fn_c_try_cpp
1801
1802# ac_fn_c_try_run LINENO
1803# ----------------------
1804# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1805# that executables *can* be run.
1806ac_fn_c_try_run ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  if { { ac_try="$ac_link"
1810case "(($ac_try" in
1811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812  *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816  (eval "$ac_link") 2>&5
1817  ac_status=$?
1818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1820  { { case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826  (eval "$ac_try") 2>&5
1827  ac_status=$?
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; }; }; then :
1830  ac_retval=0
1831else
1832  $as_echo "$as_me: program exited with status $ac_status" >&5
1833       $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
1836       ac_retval=$ac_status
1837fi
1838  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840  as_fn_set_status $ac_retval
1841
1842} # ac_fn_c_try_run
1843
1844# ac_fn_c_check_func LINENO FUNC VAR
1845# ----------------------------------
1846# Tests whether FUNC exists, setting the cache variable VAR accordingly
1847ac_fn_c_check_func ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
1852if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1853  $as_echo_n "(cached) " >&6
1854else
1855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h.  */
1857/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1859#define $2 innocuous_$2
1860
1861/* System header to define __stub macros and hopefully few prototypes,
1862    which can conflict with char $2 (); below.
1863    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1864    <limits.h> exists even on freestanding compilers.  */
1865
1866#ifdef __STDC__
1867# include <limits.h>
1868#else
1869# include <assert.h>
1870#endif
1871
1872#undef $2
1873
1874/* Override any GCC internal prototype to avoid an error.
1875   Use char because int might match the return type of a GCC
1876   builtin and then its argument prototype would still apply.  */
1877#ifdef __cplusplus
1878extern "C"
1879#endif
1880char $2 ();
1881/* The GNU C library defines this for functions which it implements
1882    to always fail with ENOSYS.  Some functions are actually named
1883    something starting with __ and the normal name is an alias.  */
1884#if defined __stub_$2 || defined __stub___$2
1885choke me
1886#endif
1887
1888int
1889main ()
1890{
1891return $2 ();
1892  ;
1893  return 0;
1894}
1895_ACEOF
1896if ac_fn_c_try_link "$LINENO"; then :
1897  eval "$3=yes"
1898else
1899  eval "$3=no"
1900fi
1901rm -f core conftest.err conftest.$ac_objext \
1902    conftest$ac_exeext conftest.$ac_ext
1903fi
1904eval ac_res=\$$3
1905	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
1907  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908
1909} # ac_fn_c_check_func
1910
1911# ac_fn_cxx_try_compile LINENO
1912# ----------------------------
1913# Try to compile conftest.$ac_ext, and return whether this succeeded.
1914ac_fn_cxx_try_compile ()
1915{
1916  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917  rm -f conftest.$ac_objext
1918  if { { ac_try="$ac_compile"
1919case "(($ac_try" in
1920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921  *) ac_try_echo=$ac_try;;
1922esac
1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924$as_echo "$ac_try_echo"; } >&5
1925  (eval "$ac_compile") 2>conftest.err
1926  ac_status=$?
1927  if test -s conftest.err; then
1928    grep -v '^ *+' conftest.err >conftest.er1
1929    cat conftest.er1 >&5
1930    mv -f conftest.er1 conftest.err
1931  fi
1932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933  test $ac_status = 0; } && {
1934	 test -z "$ac_cxx_werror_flag" ||
1935	 test ! -s conftest.err
1936       } && test -s conftest.$ac_objext; then :
1937  ac_retval=0
1938else
1939  $as_echo "$as_me: failed program was:" >&5
1940sed 's/^/| /' conftest.$ac_ext >&5
1941
1942	ac_retval=1
1943fi
1944  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945  as_fn_set_status $ac_retval
1946
1947} # ac_fn_cxx_try_compile
1948
1949# ac_fn_cxx_try_cpp LINENO
1950# ------------------------
1951# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952ac_fn_cxx_try_cpp ()
1953{
1954  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955  if { { ac_try="$ac_cpp conftest.$ac_ext"
1956case "(($ac_try" in
1957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958  *) ac_try_echo=$ac_try;;
1959esac
1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961$as_echo "$ac_try_echo"; } >&5
1962  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963  ac_status=$?
1964  if test -s conftest.err; then
1965    grep -v '^ *+' conftest.err >conftest.er1
1966    cat conftest.er1 >&5
1967    mv -f conftest.er1 conftest.err
1968  fi
1969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970  test $ac_status = 0; } >/dev/null && {
1971	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972	 test ! -s conftest.err
1973       }; then :
1974  ac_retval=0
1975else
1976  $as_echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979    ac_retval=1
1980fi
1981  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982  as_fn_set_status $ac_retval
1983
1984} # ac_fn_cxx_try_cpp
1985
1986# ac_fn_cxx_try_link LINENO
1987# -------------------------
1988# Try to link conftest.$ac_ext, and return whether this succeeded.
1989ac_fn_cxx_try_link ()
1990{
1991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992  rm -f conftest.$ac_objext conftest$ac_exeext
1993  if { { ac_try="$ac_link"
1994case "(($ac_try" in
1995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996  *) ac_try_echo=$ac_try;;
1997esac
1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999$as_echo "$ac_try_echo"; } >&5
2000  (eval "$ac_link") 2>conftest.err
2001  ac_status=$?
2002  if test -s conftest.err; then
2003    grep -v '^ *+' conftest.err >conftest.er1
2004    cat conftest.er1 >&5
2005    mv -f conftest.er1 conftest.err
2006  fi
2007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008  test $ac_status = 0; } && {
2009	 test -z "$ac_cxx_werror_flag" ||
2010	 test ! -s conftest.err
2011       } && test -s conftest$ac_exeext && {
2012	 test "$cross_compiling" = yes ||
2013	 $as_test_x conftest$ac_exeext
2014       }; then :
2015  ac_retval=0
2016else
2017  $as_echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020	ac_retval=1
2021fi
2022  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024  # interfere with the next link command; also delete a directory that is
2025  # left behind by Apple's compiler.  We do this before executing the actions.
2026  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028  as_fn_set_status $ac_retval
2029
2030} # ac_fn_cxx_try_link
2031cat >config.log <<_ACEOF
2032This file contains any messages produced by compilers while
2033running configure, to aid debugging if configure makes a mistake.
2034
2035It was created by $as_me, which was
2036generated by GNU Autoconf 2.65.  Invocation command line was
2037
2038  $ $0 $@
2039
2040_ACEOF
2041exec 5>>config.log
2042{
2043cat <<_ASUNAME
2044## --------- ##
2045## Platform. ##
2046## --------- ##
2047
2048hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2049uname -m = `(uname -m) 2>/dev/null || echo unknown`
2050uname -r = `(uname -r) 2>/dev/null || echo unknown`
2051uname -s = `(uname -s) 2>/dev/null || echo unknown`
2052uname -v = `(uname -v) 2>/dev/null || echo unknown`
2053
2054/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2055/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2056
2057/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2058/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2059/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2060/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2061/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2062/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2063/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2064
2065_ASUNAME
2066
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070  IFS=$as_save_IFS
2071  test -z "$as_dir" && as_dir=.
2072    $as_echo "PATH: $as_dir"
2073  done
2074IFS=$as_save_IFS
2075
2076} >&5
2077
2078cat >&5 <<_ACEOF
2079
2080
2081## ----------- ##
2082## Core tests. ##
2083## ----------- ##
2084
2085_ACEOF
2086
2087
2088# Keep a trace of the command line.
2089# Strip out --no-create and --no-recursion so they do not pile up.
2090# Strip out --silent because we don't want to record it for future runs.
2091# Also quote any args containing shell meta-characters.
2092# Make two passes to allow for proper duplicate-argument suppression.
2093ac_configure_args=
2094ac_configure_args0=
2095ac_configure_args1=
2096ac_must_keep_next=false
2097for ac_pass in 1 2
2098do
2099  for ac_arg
2100  do
2101    case $ac_arg in
2102    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2103    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2104    | -silent | --silent | --silen | --sile | --sil)
2105      continue ;;
2106    *\'*)
2107      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2108    esac
2109    case $ac_pass in
2110    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2111    2)
2112      as_fn_append ac_configure_args1 " '$ac_arg'"
2113      if test $ac_must_keep_next = true; then
2114	ac_must_keep_next=false # Got value, back to normal.
2115      else
2116	case $ac_arg in
2117	  *=* | --config-cache | -C | -disable-* | --disable-* \
2118	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2119	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2120	  | -with-* | --with-* | -without-* | --without-* | --x)
2121	    case "$ac_configure_args0 " in
2122	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2123	    esac
2124	    ;;
2125	  -* ) ac_must_keep_next=true ;;
2126	esac
2127      fi
2128      as_fn_append ac_configure_args " '$ac_arg'"
2129      ;;
2130    esac
2131  done
2132done
2133{ ac_configure_args0=; unset ac_configure_args0;}
2134{ ac_configure_args1=; unset ac_configure_args1;}
2135
2136# When interrupted or exit'd, cleanup temporary files, and complete
2137# config.log.  We remove comments because anyway the quotes in there
2138# would cause problems or look ugly.
2139# WARNING: Use '\'' to represent an apostrophe within the trap.
2140# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2141trap 'exit_status=$?
2142  # Save into config.log some information that might help in debugging.
2143  {
2144    echo
2145
2146    cat <<\_ASBOX
2147## ---------------- ##
2148## Cache variables. ##
2149## ---------------- ##
2150_ASBOX
2151    echo
2152    # The following way of writing the cache mishandles newlines in values,
2153(
2154  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2155    eval ac_val=\$$ac_var
2156    case $ac_val in #(
2157    *${as_nl}*)
2158      case $ac_var in #(
2159      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2160$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2161      esac
2162      case $ac_var in #(
2163      _ | IFS | as_nl) ;; #(
2164      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2165      *) { eval $ac_var=; unset $ac_var;} ;;
2166      esac ;;
2167    esac
2168  done
2169  (set) 2>&1 |
2170    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2171    *${as_nl}ac_space=\ *)
2172      sed -n \
2173	"s/'\''/'\''\\\\'\'''\''/g;
2174	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2175      ;; #(
2176    *)
2177      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2178      ;;
2179    esac |
2180    sort
2181)
2182    echo
2183
2184    cat <<\_ASBOX
2185## ----------------- ##
2186## Output variables. ##
2187## ----------------- ##
2188_ASBOX
2189    echo
2190    for ac_var in $ac_subst_vars
2191    do
2192      eval ac_val=\$$ac_var
2193      case $ac_val in
2194      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195      esac
2196      $as_echo "$ac_var='\''$ac_val'\''"
2197    done | sort
2198    echo
2199
2200    if test -n "$ac_subst_files"; then
2201      cat <<\_ASBOX
2202## ------------------- ##
2203## File substitutions. ##
2204## ------------------- ##
2205_ASBOX
2206      echo
2207      for ac_var in $ac_subst_files
2208      do
2209	eval ac_val=\$$ac_var
2210	case $ac_val in
2211	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212	esac
2213	$as_echo "$ac_var='\''$ac_val'\''"
2214      done | sort
2215      echo
2216    fi
2217
2218    if test -s confdefs.h; then
2219      cat <<\_ASBOX
2220## ----------- ##
2221## confdefs.h. ##
2222## ----------- ##
2223_ASBOX
2224      echo
2225      cat confdefs.h
2226      echo
2227    fi
2228    test "$ac_signal" != 0 &&
2229      $as_echo "$as_me: caught signal $ac_signal"
2230    $as_echo "$as_me: exit $exit_status"
2231  } >&5
2232  rm -f core *.core core.conftest.* &&
2233    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2234    exit $exit_status
2235' 0
2236for ac_signal in 1 2 13 15; do
2237  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2238done
2239ac_signal=0
2240
2241# confdefs.h avoids OS command line length limits that DEFS can exceed.
2242rm -f -r conftest* confdefs.h
2243
2244$as_echo "/* confdefs.h */" > confdefs.h
2245
2246# Predefined preprocessor variables.
2247
2248cat >>confdefs.h <<_ACEOF
2249#define PACKAGE_NAME "$PACKAGE_NAME"
2250_ACEOF
2251
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2254_ACEOF
2255
2256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_VERSION "$PACKAGE_VERSION"
2258_ACEOF
2259
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_STRING "$PACKAGE_STRING"
2262_ACEOF
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2266_ACEOF
2267
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_URL "$PACKAGE_URL"
2270_ACEOF
2271
2272
2273# Let the site file select an alternate cache file if it wants to.
2274# Prefer an explicitly selected file to automatically selected ones.
2275ac_site_file1=NONE
2276ac_site_file2=NONE
2277if test -n "$CONFIG_SITE"; then
2278  ac_site_file1=$CONFIG_SITE
2279elif test "x$prefix" != xNONE; then
2280  ac_site_file1=$prefix/share/config.site
2281  ac_site_file2=$prefix/etc/config.site
2282else
2283  ac_site_file1=$ac_default_prefix/share/config.site
2284  ac_site_file2=$ac_default_prefix/etc/config.site
2285fi
2286for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2287do
2288  test "x$ac_site_file" = xNONE && continue
2289  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2290    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2291$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2292    sed 's/^/| /' "$ac_site_file" >&5
2293    . "$ac_site_file"
2294  fi
2295done
2296
2297if test -r "$cache_file"; then
2298  # Some versions of bash will fail to source /dev/null (special files
2299  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2300  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2301    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2302$as_echo "$as_me: loading cache $cache_file" >&6;}
2303    case $cache_file in
2304      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2305      *)                      . "./$cache_file";;
2306    esac
2307  fi
2308else
2309  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2310$as_echo "$as_me: creating cache $cache_file" >&6;}
2311  >$cache_file
2312fi
2313
2314# Check that the precious variables saved in the cache have kept the same
2315# value.
2316ac_cache_corrupted=false
2317for ac_var in $ac_precious_vars; do
2318  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319  eval ac_new_set=\$ac_env_${ac_var}_set
2320  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321  eval ac_new_val=\$ac_env_${ac_var}_value
2322  case $ac_old_set,$ac_new_set in
2323    set,)
2324      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2325$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2326      ac_cache_corrupted=: ;;
2327    ,set)
2328      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2329$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2330      ac_cache_corrupted=: ;;
2331    ,);;
2332    *)
2333      if test "x$ac_old_val" != "x$ac_new_val"; then
2334	# differences in whitespace do not lead to failure.
2335	ac_old_val_w=`echo x $ac_old_val`
2336	ac_new_val_w=`echo x $ac_new_val`
2337	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2338	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2339$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2340	  ac_cache_corrupted=:
2341	else
2342	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2343$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2344	  eval $ac_var=\$ac_old_val
2345	fi
2346	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2347$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2348	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2349$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2350      fi;;
2351  esac
2352  # Pass precious variables to config.status.
2353  if test "$ac_new_set" = set; then
2354    case $ac_new_val in
2355    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2356    *) ac_arg=$ac_var=$ac_new_val ;;
2357    esac
2358    case " $ac_configure_args " in
2359      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2360      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2361    esac
2362  fi
2363done
2364if $ac_cache_corrupted; then
2365  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2368$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2369  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2370fi
2371## -------------------- ##
2372## Main body of script. ##
2373## -------------------- ##
2374
2375ac_ext=c
2376ac_cpp='$CPP $CPPFLAGS'
2377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380
2381
2382
2383cflags_set=${CFLAGS+set}
2384
2385VDK_VERSION_MAJOR=2
2386VDK_VERSION_MINOR=5
2387VDK_VERSION_MICRO=1
2388
2389VDK_RELEASE_DATE="2010-12-08"
2390
2391VDK_VERSION=$VDK_VERSION_MAJOR.$VDK_VERSION_MINOR.$VDK_VERSION_MICRO
2392
2393
2394
2395
2396
2397
2398
2399LT_VDK_RELEASE=$VDK_VERSION_MAJOR.$VDK_VERSION_MINOR
2400LT_VDK_CURRENT=`expr $VDK_VERSION_MAJOR + $VDK_VERSION_MINOR`
2401LT_VDK_REVISION=$VDK_VERSION_MICRO
2402LT_VDK_AGE=$VDK_VERSION_MINOR
2403
2404
2405
2406
2407
2408VERSION=$VDK_VERSION
2409PACKAGE=vdk
2410
2411am__api_version='1.11'
2412
2413ac_aux_dir=
2414for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2415  for ac_t in install-sh install.sh shtool; do
2416    if test -f "$ac_dir/$ac_t"; then
2417      ac_aux_dir=$ac_dir
2418      ac_install_sh="$ac_aux_dir/$ac_t -c"
2419      break 2
2420    fi
2421  done
2422done
2423if test -z "$ac_aux_dir"; then
2424  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2425fi
2426
2427# These three variables are undocumented and unsupported,
2428# and are intended to be withdrawn in a future Autoconf release.
2429# They can cause serious problems if a builder's source tree is in a directory
2430# whose full name contains unusual characters.
2431ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2432ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2433ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2434
2435
2436# Find a good install program.  We prefer a C program (faster),
2437# so one script is as good as another.  But avoid the broken or
2438# incompatible versions:
2439# SysV /etc/install, /usr/sbin/install
2440# SunOS /usr/etc/install
2441# IRIX /sbin/install
2442# AIX /bin/install
2443# AmigaOS /C/install, which installs bootblocks on floppy discs
2444# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2445# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2446# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2447# OS/2's system install, which has a completely different semantic
2448# ./install, which can be erroneously created by make from ./install.sh.
2449# Reject install programs that cannot install multiple files.
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2451$as_echo_n "checking for a BSD-compatible install... " >&6; }
2452if test -z "$INSTALL"; then
2453if test "${ac_cv_path_install+set}" = set; then :
2454  $as_echo_n "(cached) " >&6
2455else
2456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH
2458do
2459  IFS=$as_save_IFS
2460  test -z "$as_dir" && as_dir=.
2461    # Account for people who put trailing slashes in PATH elements.
2462case $as_dir/ in #((
2463  ./ | .// | /[cC]/* | \
2464  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2465  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2466  /usr/ucb/* ) ;;
2467  *)
2468    # OSF1 and SCO ODT 3.0 have their own names for install.
2469    # Don't use installbsd from OSF since it installs stuff as root
2470    # by default.
2471    for ac_prog in ginstall scoinst install; do
2472      for ac_exec_ext in '' $ac_executable_extensions; do
2473	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2474	  if test $ac_prog = install &&
2475	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2476	    # AIX install.  It has an incompatible calling convention.
2477	    :
2478	  elif test $ac_prog = install &&
2479	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2480	    # program-specific install script used by HP pwplus--don't use.
2481	    :
2482	  else
2483	    rm -rf conftest.one conftest.two conftest.dir
2484	    echo one > conftest.one
2485	    echo two > conftest.two
2486	    mkdir conftest.dir
2487	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2488	      test -s conftest.one && test -s conftest.two &&
2489	      test -s conftest.dir/conftest.one &&
2490	      test -s conftest.dir/conftest.two
2491	    then
2492	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2493	      break 3
2494	    fi
2495	  fi
2496	fi
2497      done
2498    done
2499    ;;
2500esac
2501
2502  done
2503IFS=$as_save_IFS
2504
2505rm -rf conftest.one conftest.two conftest.dir
2506
2507fi
2508  if test "${ac_cv_path_install+set}" = set; then
2509    INSTALL=$ac_cv_path_install
2510  else
2511    # As a last resort, use the slow shell script.  Don't cache a
2512    # value for INSTALL within a source directory, because that will
2513    # break other packages using the cache if that directory is
2514    # removed, or if the value is a relative name.
2515    INSTALL=$ac_install_sh
2516  fi
2517fi
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2519$as_echo "$INSTALL" >&6; }
2520
2521# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2522# It thinks the first close brace ends the variable substitution.
2523test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2524
2525test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2526
2527test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2528
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2530$as_echo_n "checking whether build environment is sane... " >&6; }
2531# Just in case
2532sleep 1
2533echo timestamp > conftest.file
2534# Reject unsafe characters in $srcdir or the absolute working directory
2535# name.  Accept space and tab only in the latter.
2536am_lf='
2537'
2538case `pwd` in
2539  *[\\\"\#\$\&\'\`$am_lf]*)
2540    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2541esac
2542case $srcdir in
2543  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2544    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2545esac
2546
2547# Do `set' in a subshell so we don't clobber the current shell's
2548# arguments.  Must try -L first in case configure is actually a
2549# symlink; some systems play weird games with the mod time of symlinks
2550# (eg FreeBSD returns the mod time of the symlink's containing
2551# directory).
2552if (
2553   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2554   if test "$*" = "X"; then
2555      # -L didn't work.
2556      set X `ls -t "$srcdir/configure" conftest.file`
2557   fi
2558   rm -f conftest.file
2559   if test "$*" != "X $srcdir/configure conftest.file" \
2560      && test "$*" != "X conftest.file $srcdir/configure"; then
2561
2562      # If neither matched, then we have a broken ls.  This can happen
2563      # if, for instance, CONFIG_SHELL is bash and it inherits a
2564      # broken ls alias from the environment.  This has actually
2565      # happened.  Such a system could not be considered "sane".
2566      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2567alias in your environment" "$LINENO" 5
2568   fi
2569
2570   test "$2" = conftest.file
2571   )
2572then
2573   # Ok.
2574   :
2575else
2576   as_fn_error "newly created file is older than distributed files!
2577Check your system clock" "$LINENO" 5
2578fi
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2580$as_echo "yes" >&6; }
2581test "$program_prefix" != NONE &&
2582  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2583# Use a double $ so make ignores it.
2584test "$program_suffix" != NONE &&
2585  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2586# Double any \ or $.
2587# By default was `s,x,x', remove it if useless.
2588ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2589program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2590
2591# expand $ac_aux_dir to an absolute path
2592am_aux_dir=`cd $ac_aux_dir && pwd`
2593
2594if test x"${MISSING+set}" != xset; then
2595  case $am_aux_dir in
2596  *\ * | *\	*)
2597    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2598  *)
2599    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2600  esac
2601fi
2602# Use eval to expand $SHELL
2603if eval "$MISSING --run true"; then
2604  am_missing_run="$MISSING --run "
2605else
2606  am_missing_run=
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2608$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2609fi
2610
2611if test x"${install_sh}" != xset; then
2612  case $am_aux_dir in
2613  *\ * | *\	*)
2614    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2615  *)
2616    install_sh="\${SHELL} $am_aux_dir/install-sh"
2617  esac
2618fi
2619
2620# Installed binaries are usually stripped using `strip' when the user
2621# run `make install-strip'.  However `strip' might not be the right
2622# tool to use in cross-compilation environments, therefore Automake
2623# will honor the `STRIP' environment variable to overrule this program.
2624if test "$cross_compiling" != no; then
2625  if test -n "$ac_tool_prefix"; then
2626  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2627set dummy ${ac_tool_prefix}strip; ac_word=$2
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629$as_echo_n "checking for $ac_word... " >&6; }
2630if test "${ac_cv_prog_STRIP+set}" = set; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  if test -n "$STRIP"; then
2634  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639  IFS=$as_save_IFS
2640  test -z "$as_dir" && as_dir=.
2641    for ac_exec_ext in '' $ac_executable_extensions; do
2642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645    break 2
2646  fi
2647done
2648  done
2649IFS=$as_save_IFS
2650
2651fi
2652fi
2653STRIP=$ac_cv_prog_STRIP
2654if test -n "$STRIP"; then
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2656$as_echo "$STRIP" >&6; }
2657else
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659$as_echo "no" >&6; }
2660fi
2661
2662
2663fi
2664if test -z "$ac_cv_prog_STRIP"; then
2665  ac_ct_STRIP=$STRIP
2666  # Extract the first word of "strip", so it can be a program name with args.
2667set dummy strip; ac_word=$2
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669$as_echo_n "checking for $ac_word... " >&6; }
2670if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2671  $as_echo_n "(cached) " >&6
2672else
2673  if test -n "$ac_ct_STRIP"; then
2674  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2675else
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679  IFS=$as_save_IFS
2680  test -z "$as_dir" && as_dir=.
2681    for ac_exec_ext in '' $ac_executable_extensions; do
2682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683    ac_cv_prog_ac_ct_STRIP="strip"
2684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685    break 2
2686  fi
2687done
2688  done
2689IFS=$as_save_IFS
2690
2691fi
2692fi
2693ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2694if test -n "$ac_ct_STRIP"; then
2695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2696$as_echo "$ac_ct_STRIP" >&6; }
2697else
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699$as_echo "no" >&6; }
2700fi
2701
2702  if test "x$ac_ct_STRIP" = x; then
2703    STRIP=":"
2704  else
2705    case $cross_compiling:$ac_tool_warned in
2706yes:)
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2709ac_tool_warned=yes ;;
2710esac
2711    STRIP=$ac_ct_STRIP
2712  fi
2713else
2714  STRIP="$ac_cv_prog_STRIP"
2715fi
2716
2717fi
2718INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2719
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2721$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2722if test -z "$MKDIR_P"; then
2723  if test "${ac_cv_path_mkdir+set}" = set; then :
2724  $as_echo_n "(cached) " >&6
2725else
2726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2728do
2729  IFS=$as_save_IFS
2730  test -z "$as_dir" && as_dir=.
2731    for ac_prog in mkdir gmkdir; do
2732	 for ac_exec_ext in '' $ac_executable_extensions; do
2733	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2734	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2735	     'mkdir (GNU coreutils) '* | \
2736	     'mkdir (coreutils) '* | \
2737	     'mkdir (fileutils) '4.1*)
2738	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2739	       break 3;;
2740	   esac
2741	 done
2742       done
2743  done
2744IFS=$as_save_IFS
2745
2746fi
2747
2748  test -d ./--version && rmdir ./--version
2749  if test "${ac_cv_path_mkdir+set}" = set; then
2750    MKDIR_P="$ac_cv_path_mkdir -p"
2751  else
2752    # As a last resort, use the slow shell script.  Don't cache a
2753    # value for MKDIR_P within a source directory, because that will
2754    # break other packages using the cache if that directory is
2755    # removed, or if the value is a relative name.
2756    MKDIR_P="$ac_install_sh -d"
2757  fi
2758fi
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2760$as_echo "$MKDIR_P" >&6; }
2761
2762mkdir_p="$MKDIR_P"
2763case $mkdir_p in
2764  [\\/$]* | ?:[\\/]*) ;;
2765  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2766esac
2767
2768for ac_prog in gawk mawk nawk awk
2769do
2770  # Extract the first word of "$ac_prog", so it can be a program name with args.
2771set dummy $ac_prog; ac_word=$2
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773$as_echo_n "checking for $ac_word... " >&6; }
2774if test "${ac_cv_prog_AWK+set}" = set; then :
2775  $as_echo_n "(cached) " >&6
2776else
2777  if test -n "$AWK"; then
2778  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785    for ac_exec_ext in '' $ac_executable_extensions; do
2786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787    ac_cv_prog_AWK="$ac_prog"
2788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789    break 2
2790  fi
2791done
2792  done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797AWK=$ac_cv_prog_AWK
2798if test -n "$AWK"; then
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2800$as_echo "$AWK" >&6; }
2801else
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803$as_echo "no" >&6; }
2804fi
2805
2806
2807  test -n "$AWK" && break
2808done
2809
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2811$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2812set x ${MAKE-make}
2813ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2814if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  cat >conftest.make <<\_ACEOF
2818SHELL = /bin/sh
2819all:
2820	@echo '@@@%%%=$(MAKE)=@@@%%%'
2821_ACEOF
2822# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2823case `${MAKE-make} -f conftest.make 2>/dev/null` in
2824  *@@@%%%=?*=@@@%%%*)
2825    eval ac_cv_prog_make_${ac_make}_set=yes;;
2826  *)
2827    eval ac_cv_prog_make_${ac_make}_set=no;;
2828esac
2829rm -f conftest.make
2830fi
2831if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833$as_echo "yes" >&6; }
2834  SET_MAKE=
2835else
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838  SET_MAKE="MAKE=${MAKE-make}"
2839fi
2840
2841rm -rf .tst 2>/dev/null
2842mkdir .tst 2>/dev/null
2843if test -d .tst; then
2844  am__leading_dot=.
2845else
2846  am__leading_dot=_
2847fi
2848rmdir .tst 2>/dev/null
2849
2850if test "`cd $srcdir && pwd`" != "`pwd`"; then
2851  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2852  # is not polluted with repeated "-I."
2853  am__isrc=' -I$(srcdir)'
2854  # test to see if srcdir already configured
2855  if test -f $srcdir/config.status; then
2856    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2857  fi
2858fi
2859
2860# test whether we have cygpath
2861if test -z "$CYGPATH_W"; then
2862  if (cygpath --version) >/dev/null 2>/dev/null; then
2863    CYGPATH_W='cygpath -w'
2864  else
2865    CYGPATH_W=echo
2866  fi
2867fi
2868
2869
2870# Define the identity of the package.
2871 PACKAGE=$PACKAGE
2872 VERSION=$VERSION
2873
2874
2875cat >>confdefs.h <<_ACEOF
2876#define PACKAGE "$PACKAGE"
2877_ACEOF
2878
2879
2880cat >>confdefs.h <<_ACEOF
2881#define VERSION "$VERSION"
2882_ACEOF
2883
2884# Some tools Automake needs.
2885
2886ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2887
2888
2889AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2890
2891
2892AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2893
2894
2895AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2896
2897
2898MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2899
2900# We need awk for the "check" target.  The system "awk" is bad on
2901# some platforms.
2902# Always define AMTAR for backward compatibility.
2903
2904AMTAR=${AMTAR-"${am_missing_run}tar"}
2905
2906am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2907
2908
2909
2910
2911
2912# Make sure we can run config.sub.
2913$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2914  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2915
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2917$as_echo_n "checking build system type... " >&6; }
2918if test "${ac_cv_build+set}" = set; then :
2919  $as_echo_n "(cached) " >&6
2920else
2921  ac_build_alias=$build_alias
2922test "x$ac_build_alias" = x &&
2923  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2924test "x$ac_build_alias" = x &&
2925  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2926ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2927  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2928
2929fi
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2931$as_echo "$ac_cv_build" >&6; }
2932case $ac_cv_build in
2933*-*-*) ;;
2934*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2935esac
2936build=$ac_cv_build
2937ac_save_IFS=$IFS; IFS='-'
2938set x $ac_cv_build
2939shift
2940build_cpu=$1
2941build_vendor=$2
2942shift; shift
2943# Remember, the first character of IFS is used to create $*,
2944# except with old shells:
2945build_os=$*
2946IFS=$ac_save_IFS
2947case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2948
2949
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2951$as_echo_n "checking host system type... " >&6; }
2952if test "${ac_cv_host+set}" = set; then :
2953  $as_echo_n "(cached) " >&6
2954else
2955  if test "x$host_alias" = x; then
2956  ac_cv_host=$ac_cv_build
2957else
2958  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2959    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2960fi
2961
2962fi
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2964$as_echo "$ac_cv_host" >&6; }
2965case $ac_cv_host in
2966*-*-*) ;;
2967*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2968esac
2969host=$ac_cv_host
2970ac_save_IFS=$IFS; IFS='-'
2971set x $ac_cv_host
2972shift
2973host_cpu=$1
2974host_vendor=$2
2975shift; shift
2976# Remember, the first character of IFS is used to create $*,
2977# except with old shells:
2978host_os=$*
2979IFS=$ac_save_IFS
2980case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2981
2982
2983
2984
2985case `pwd` in
2986  *\ * | *\	*)
2987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2988$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2989esac
2990
2991
2992
2993macro_version='2.2.6b'
2994macro_revision='1.3017'
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008ltmain="$ac_aux_dir/ltmain.sh"
3009
3010DEPDIR="${am__leading_dot}deps"
3011
3012ac_config_commands="$ac_config_commands depfiles"
3013
3014
3015am_make=${MAKE-make}
3016cat > confinc << 'END'
3017am__doit:
3018	@echo this is the am__doit target
3019.PHONY: am__doit
3020END
3021# If we don't find an include directive, just comment out the code.
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3023$as_echo_n "checking for style of include used by $am_make... " >&6; }
3024am__include="#"
3025am__quote=
3026_am_result=none
3027# First try GNU make style include.
3028echo "include confinc" > confmf
3029# Ignore all kinds of additional output from `make'.
3030case `$am_make -s -f confmf 2> /dev/null` in #(
3031*the\ am__doit\ target*)
3032  am__include=include
3033  am__quote=
3034  _am_result=GNU
3035  ;;
3036esac
3037# Now try BSD make style include.
3038if test "$am__include" = "#"; then
3039   echo '.include "confinc"' > confmf
3040   case `$am_make -s -f confmf 2> /dev/null` in #(
3041   *the\ am__doit\ target*)
3042     am__include=.include
3043     am__quote="\""
3044     _am_result=BSD
3045     ;;
3046   esac
3047fi
3048
3049
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3051$as_echo "$_am_result" >&6; }
3052rm -f confinc confmf
3053
3054# Check whether --enable-dependency-tracking was given.
3055if test "${enable_dependency_tracking+set}" = set; then :
3056  enableval=$enable_dependency_tracking;
3057fi
3058
3059if test "x$enable_dependency_tracking" != xno; then
3060  am_depcomp="$ac_aux_dir/depcomp"
3061  AMDEPBACKSLASH='\'
3062fi
3063 if test "x$enable_dependency_tracking" != xno; then
3064  AMDEP_TRUE=
3065  AMDEP_FALSE='#'
3066else
3067  AMDEP_TRUE='#'
3068  AMDEP_FALSE=
3069fi
3070
3071
3072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077if test -n "$ac_tool_prefix"; then
3078  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3079set dummy ${ac_tool_prefix}gcc; ac_word=$2
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081$as_echo_n "checking for $ac_word... " >&6; }
3082if test "${ac_cv_prog_CC+set}" = set; then :
3083  $as_echo_n "(cached) " >&6
3084else
3085  if test -n "$CC"; then
3086  ac_cv_prog_CC="$CC" # Let the user override the test.
3087else
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099done
3100  done
3101IFS=$as_save_IFS
3102
3103fi
3104fi
3105CC=$ac_cv_prog_CC
3106if test -n "$CC"; then
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108$as_echo "$CC" >&6; }
3109else
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112fi
3113
3114
3115fi
3116if test -z "$ac_cv_prog_CC"; then
3117  ac_ct_CC=$CC
3118  # Extract the first word of "gcc", so it can be a program name with args.
3119set dummy gcc; ac_word=$2
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
3122if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  if test -n "$ac_ct_CC"; then
3126  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  test -z "$as_dir" && as_dir=.
3133    for ac_exec_ext in '' $ac_executable_extensions; do
3134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135    ac_cv_prog_ac_ct_CC="gcc"
3136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137    break 2
3138  fi
3139done
3140  done
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146if test -n "$ac_ct_CC"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148$as_echo "$ac_ct_CC" >&6; }
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154  if test "x$ac_ct_CC" = x; then
3155    CC=""
3156  else
3157    case $cross_compiling:$ac_tool_warned in
3158yes:)
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3161ac_tool_warned=yes ;;
3162esac
3163    CC=$ac_ct_CC
3164  fi
3165else
3166  CC="$ac_cv_prog_CC"
3167fi
3168
3169if test -z "$CC"; then
3170          if test -n "$ac_tool_prefix"; then
3171    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3172set dummy ${ac_tool_prefix}cc; ac_word=$2
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174$as_echo_n "checking for $ac_word... " >&6; }
3175if test "${ac_cv_prog_CC+set}" = set; then :
3176  $as_echo_n "(cached) " >&6
3177else
3178  if test -n "$CC"; then
3179  ac_cv_prog_CC="$CC" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184  IFS=$as_save_IFS
3185  test -z "$as_dir" && as_dir=.
3186    for ac_exec_ext in '' $ac_executable_extensions; do
3187  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188    ac_cv_prog_CC="${ac_tool_prefix}cc"
3189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190    break 2
3191  fi
3192done
3193  done
3194IFS=$as_save_IFS
3195
3196fi
3197fi
3198CC=$ac_cv_prog_CC
3199if test -n "$CC"; then
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201$as_echo "$CC" >&6; }
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205fi
3206
3207
3208  fi
3209fi
3210if test -z "$CC"; then
3211  # Extract the first word of "cc", so it can be a program name with args.
3212set dummy cc; ac_word=$2
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if test "${ac_cv_prog_CC+set}" = set; then :
3216  $as_echo_n "(cached) " >&6
3217else
3218  if test -n "$CC"; then
3219  ac_cv_prog_CC="$CC" # Let the user override the test.
3220else
3221  ac_prog_rejected=no
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225  IFS=$as_save_IFS
3226  test -z "$as_dir" && as_dir=.
3227    for ac_exec_ext in '' $ac_executable_extensions; do
3228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3230       ac_prog_rejected=yes
3231       continue
3232     fi
3233    ac_cv_prog_CC="cc"
3234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235    break 2
3236  fi
3237done
3238  done
3239IFS=$as_save_IFS
3240
3241if test $ac_prog_rejected = yes; then
3242  # We found a bogon in the path, so make sure we never use it.
3243  set dummy $ac_cv_prog_CC
3244  shift
3245  if test $# != 0; then
3246    # We chose a different compiler from the bogus one.
3247    # However, it has the same basename, so the bogon will be chosen
3248    # first if we set CC to just the basename; use the full file name.
3249    shift
3250    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3251  fi
3252fi
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258$as_echo "$CC" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265fi
3266if test -z "$CC"; then
3267  if test -n "$ac_tool_prefix"; then
3268  for ac_prog in cl.exe
3269  do
3270    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3271set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273$as_echo_n "checking for $ac_word... " >&6; }
3274if test "${ac_cv_prog_CC+set}" = set; then :
3275  $as_echo_n "(cached) " >&6
3276else
3277  if test -n "$CC"; then
3278  ac_cv_prog_CC="$CC" # Let the user override the test.
3279else
3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  test -z "$as_dir" && as_dir=.
3285    for ac_exec_ext in '' $ac_executable_extensions; do
3286  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289    break 2
3290  fi
3291done
3292  done
3293IFS=$as_save_IFS
3294
3295fi
3296fi
3297CC=$ac_cv_prog_CC
3298if test -n "$CC"; then
3299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300$as_echo "$CC" >&6; }
3301else
3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303$as_echo "no" >&6; }
3304fi
3305
3306
3307    test -n "$CC" && break
3308  done
3309fi
3310if test -z "$CC"; then
3311  ac_ct_CC=$CC
3312  for ac_prog in cl.exe
3313do
3314  # Extract the first word of "$ac_prog", so it can be a program name with args.
3315set dummy $ac_prog; ac_word=$2
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317$as_echo_n "checking for $ac_word... " >&6; }
3318if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3319  $as_echo_n "(cached) " >&6
3320else
3321  if test -n "$ac_ct_CC"; then
3322  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329    for ac_exec_ext in '' $ac_executable_extensions; do
3330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331    ac_cv_prog_ac_ct_CC="$ac_prog"
3332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336  done
3337IFS=$as_save_IFS
3338
3339fi
3340fi
3341ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342if test -n "$ac_ct_CC"; then
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344$as_echo "$ac_ct_CC" >&6; }
3345else
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347$as_echo "no" >&6; }
3348fi
3349
3350
3351  test -n "$ac_ct_CC" && break
3352done
3353
3354  if test "x$ac_ct_CC" = x; then
3355    CC=""
3356  else
3357    case $cross_compiling:$ac_tool_warned in
3358yes:)
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361ac_tool_warned=yes ;;
3362esac
3363    CC=$ac_ct_CC
3364  fi
3365fi
3366
3367fi
3368
3369
3370test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372as_fn_error "no acceptable C compiler found in \$PATH
3373See \`config.log' for more details." "$LINENO" 5; }
3374
3375# Provide some information about the compiler.
3376$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3377set X $ac_compile
3378ac_compiler=$2
3379for ac_option in --version -v -V -qversion; do
3380  { { ac_try="$ac_compiler $ac_option >&5"
3381case "(($ac_try" in
3382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383  *) ac_try_echo=$ac_try;;
3384esac
3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386$as_echo "$ac_try_echo"; } >&5
3387  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3388  ac_status=$?
3389  if test -s conftest.err; then
3390    sed '10a\
3391... rest of stderr output deleted ...
3392         10q' conftest.err >conftest.er1
3393    cat conftest.er1 >&5
3394  fi
3395  rm -f conftest.er1 conftest.err
3396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397  test $ac_status = 0; }
3398done
3399
3400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401/* end confdefs.h.  */
3402
3403int
3404main ()
3405{
3406
3407  ;
3408  return 0;
3409}
3410_ACEOF
3411ac_clean_files_save=$ac_clean_files
3412ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3413# Try to create an executable without -o first, disregard a.out.
3414# It will help us diagnose broken compilers, and finding out an intuition
3415# of exeext.
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3417$as_echo_n "checking whether the C compiler works... " >&6; }
3418ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3419
3420# The possible output files:
3421ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3422
3423ac_rmfiles=
3424for ac_file in $ac_files
3425do
3426  case $ac_file in
3427    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3429  esac
3430done
3431rm -f $ac_rmfiles
3432
3433if { { ac_try="$ac_link_default"
3434case "(($ac_try" in
3435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436  *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
3440  (eval "$ac_link_default") 2>&5
3441  ac_status=$?
3442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443  test $ac_status = 0; }; then :
3444  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3445# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3446# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3447# so that the user can short-circuit this test for compilers unknown to
3448# Autoconf.
3449for ac_file in $ac_files ''
3450do
3451  test -f "$ac_file" || continue
3452  case $ac_file in
3453    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3454	;;
3455    [ab].out )
3456	# We found the default executable, but exeext='' is most
3457	# certainly right.
3458	break;;
3459    *.* )
3460	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3461	then :; else
3462	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463	fi
3464	# We set ac_cv_exeext here because the later test for it is not
3465	# safe: cross compilers may not add the suffix if given an `-o'
3466	# argument, so we may need to know it at that point already.
3467	# Even if this section looks crufty: it has the advantage of
3468	# actually working.
3469	break;;
3470    * )
3471	break;;
3472  esac
3473done
3474test "$ac_cv_exeext" = no && ac_cv_exeext=
3475
3476else
3477  ac_file=''
3478fi
3479if test -z "$ac_file"; then :
3480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481$as_echo "no" >&6; }
3482$as_echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
3485{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487{ as_fn_set_status 77
3488as_fn_error "C compiler cannot create executables
3489See \`config.log' for more details." "$LINENO" 5; }; }
3490else
3491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492$as_echo "yes" >&6; }
3493fi
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3495$as_echo_n "checking for C compiler default output file name... " >&6; }
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3497$as_echo "$ac_file" >&6; }
3498ac_exeext=$ac_cv_exeext
3499
3500rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3501ac_clean_files=$ac_clean_files_save
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3503$as_echo_n "checking for suffix of executables... " >&6; }
3504if { { ac_try="$ac_link"
3505case "(($ac_try" in
3506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507  *) ac_try_echo=$ac_try;;
3508esac
3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510$as_echo "$ac_try_echo"; } >&5
3511  (eval "$ac_link") 2>&5
3512  ac_status=$?
3513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514  test $ac_status = 0; }; then :
3515  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3516# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3517# work properly (i.e., refer to `conftest.exe'), while it won't with
3518# `rm'.
3519for ac_file in conftest.exe conftest conftest.*; do
3520  test -f "$ac_file" || continue
3521  case $ac_file in
3522    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3523    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524	  break;;
3525    * ) break;;
3526  esac
3527done
3528else
3529  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error "cannot compute suffix of executables: cannot compile and link
3532See \`config.log' for more details." "$LINENO" 5; }
3533fi
3534rm -f conftest conftest$ac_cv_exeext
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3536$as_echo "$ac_cv_exeext" >&6; }
3537
3538rm -f conftest.$ac_ext
3539EXEEXT=$ac_cv_exeext
3540ac_exeext=$EXEEXT
3541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h.  */
3543#include <stdio.h>
3544int
3545main ()
3546{
3547FILE *f = fopen ("conftest.out", "w");
3548 return ferror (f) || fclose (f) != 0;
3549
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554ac_clean_files="$ac_clean_files conftest.out"
3555# Check that the compiler produces executables we can run.  If not, either
3556# the compiler is broken, or we cross compile.
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3558$as_echo_n "checking whether we are cross compiling... " >&6; }
3559if test "$cross_compiling" != yes; then
3560  { { ac_try="$ac_link"
3561case "(($ac_try" in
3562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563  *) ac_try_echo=$ac_try;;
3564esac
3565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566$as_echo "$ac_try_echo"; } >&5
3567  (eval "$ac_link") 2>&5
3568  ac_status=$?
3569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570  test $ac_status = 0; }
3571  if { ac_try='./conftest$ac_cv_exeext'
3572  { { case "(($ac_try" in
3573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574  *) ac_try_echo=$ac_try;;
3575esac
3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577$as_echo "$ac_try_echo"; } >&5
3578  (eval "$ac_try") 2>&5
3579  ac_status=$?
3580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581  test $ac_status = 0; }; }; then
3582    cross_compiling=no
3583  else
3584    if test "$cross_compiling" = maybe; then
3585	cross_compiling=yes
3586    else
3587	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589as_fn_error "cannot run C compiled programs.
3590If you meant to cross compile, use \`--host'.
3591See \`config.log' for more details." "$LINENO" 5; }
3592    fi
3593  fi
3594fi
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3596$as_echo "$cross_compiling" >&6; }
3597
3598rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3599ac_clean_files=$ac_clean_files_save
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3601$as_echo_n "checking for suffix of object files... " >&6; }
3602if test "${ac_cv_objext+set}" = set; then :
3603  $as_echo_n "(cached) " >&6
3604else
3605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606/* end confdefs.h.  */
3607
3608int
3609main ()
3610{
3611
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616rm -f conftest.o conftest.obj
3617if { { ac_try="$ac_compile"
3618case "(($ac_try" in
3619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620  *) ac_try_echo=$ac_try;;
3621esac
3622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623$as_echo "$ac_try_echo"; } >&5
3624  (eval "$ac_compile") 2>&5
3625  ac_status=$?
3626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627  test $ac_status = 0; }; then :
3628  for ac_file in conftest.o conftest.obj conftest.*; do
3629  test -f "$ac_file" || continue;
3630  case $ac_file in
3631    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3632    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3633       break;;
3634  esac
3635done
3636else
3637  $as_echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642as_fn_error "cannot compute suffix of object files: cannot compile
3643See \`config.log' for more details." "$LINENO" 5; }
3644fi
3645rm -f conftest.$ac_cv_objext conftest.$ac_ext
3646fi
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3648$as_echo "$ac_cv_objext" >&6; }
3649OBJEXT=$ac_cv_objext
3650ac_objext=$OBJEXT
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3652$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3653if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3654  $as_echo_n "(cached) " >&6
3655else
3656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657/* end confdefs.h.  */
3658
3659int
3660main ()
3661{
3662#ifndef __GNUC__
3663       choke me
3664#endif
3665
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670if ac_fn_c_try_compile "$LINENO"; then :
3671  ac_compiler_gnu=yes
3672else
3673  ac_compiler_gnu=no
3674fi
3675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676ac_cv_c_compiler_gnu=$ac_compiler_gnu
3677
3678fi
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3680$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3681if test $ac_compiler_gnu = yes; then
3682  GCC=yes
3683else
3684  GCC=
3685fi
3686ac_test_CFLAGS=${CFLAGS+set}
3687ac_save_CFLAGS=$CFLAGS
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3689$as_echo_n "checking whether $CC accepts -g... " >&6; }
3690if test "${ac_cv_prog_cc_g+set}" = set; then :
3691  $as_echo_n "(cached) " >&6
3692else
3693  ac_save_c_werror_flag=$ac_c_werror_flag
3694   ac_c_werror_flag=yes
3695   ac_cv_prog_cc_g=no
3696   CFLAGS="-g"
3697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699
3700int
3701main ()
3702{
3703
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708if ac_fn_c_try_compile "$LINENO"; then :
3709  ac_cv_prog_cc_g=yes
3710else
3711  CFLAGS=""
3712      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713/* end confdefs.h.  */
3714
3715int
3716main ()
3717{
3718
3719  ;
3720  return 0;
3721}
3722_ACEOF
3723if ac_fn_c_try_compile "$LINENO"; then :
3724
3725else
3726  ac_c_werror_flag=$ac_save_c_werror_flag
3727	 CFLAGS="-g"
3728	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h.  */
3730
3731int
3732main ()
3733{
3734
3735  ;
3736  return 0;
3737}
3738_ACEOF
3739if ac_fn_c_try_compile "$LINENO"; then :
3740  ac_cv_prog_cc_g=yes
3741fi
3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743fi
3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745fi
3746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747   ac_c_werror_flag=$ac_save_c_werror_flag
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3750$as_echo "$ac_cv_prog_cc_g" >&6; }
3751if test "$ac_test_CFLAGS" = set; then
3752  CFLAGS=$ac_save_CFLAGS
3753elif test $ac_cv_prog_cc_g = yes; then
3754  if test "$GCC" = yes; then
3755    CFLAGS="-g -O2"
3756  else
3757    CFLAGS="-g"
3758  fi
3759else
3760  if test "$GCC" = yes; then
3761    CFLAGS="-O2"
3762  else
3763    CFLAGS=
3764  fi
3765fi
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3767$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3768if test "${ac_cv_prog_cc_c89+set}" = set; then :
3769  $as_echo_n "(cached) " >&6
3770else
3771  ac_cv_prog_cc_c89=no
3772ac_save_CC=$CC
3773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h.  */
3775#include <stdarg.h>
3776#include <stdio.h>
3777#include <sys/types.h>
3778#include <sys/stat.h>
3779/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3780struct buf { int x; };
3781FILE * (*rcsopen) (struct buf *, struct stat *, int);
3782static char *e (p, i)
3783     char **p;
3784     int i;
3785{
3786  return p[i];
3787}
3788static char *f (char * (*g) (char **, int), char **p, ...)
3789{
3790  char *s;
3791  va_list v;
3792  va_start (v,p);
3793  s = g (p, va_arg (v,int));
3794  va_end (v);
3795  return s;
3796}
3797
3798/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3799   function prototypes and stuff, but not '\xHH' hex character constants.
3800   These don't provoke an error unfortunately, instead are silently treated
3801   as 'x'.  The following induces an error, until -std is added to get
3802   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3803   array size at least.  It's necessary to write '\x00'==0 to get something
3804   that's true only with -std.  */
3805int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3806
3807/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3808   inside strings and character constants.  */
3809#define FOO(x) 'x'
3810int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3811
3812int test (int i, double x);
3813struct s1 {int (*f) (int a);};
3814struct s2 {int (*f) (double a);};
3815int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3816int argc;
3817char **argv;
3818int
3819main ()
3820{
3821return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3822  ;
3823  return 0;
3824}
3825_ACEOF
3826for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3827	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3828do
3829  CC="$ac_save_CC $ac_arg"
3830  if ac_fn_c_try_compile "$LINENO"; then :
3831  ac_cv_prog_cc_c89=$ac_arg
3832fi
3833rm -f core conftest.err conftest.$ac_objext
3834  test "x$ac_cv_prog_cc_c89" != "xno" && break
3835done
3836rm -f conftest.$ac_ext
3837CC=$ac_save_CC
3838
3839fi
3840# AC_CACHE_VAL
3841case "x$ac_cv_prog_cc_c89" in
3842  x)
3843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3844$as_echo "none needed" >&6; } ;;
3845  xno)
3846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3847$as_echo "unsupported" >&6; } ;;
3848  *)
3849    CC="$CC $ac_cv_prog_cc_c89"
3850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3851$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3852esac
3853if test "x$ac_cv_prog_cc_c89" != xno; then :
3854
3855fi
3856
3857ac_ext=c
3858ac_cpp='$CPP $CPPFLAGS'
3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863depcc="$CC"   am_compiler_list=
3864
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3866$as_echo_n "checking dependency style of $depcc... " >&6; }
3867if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3868  $as_echo_n "(cached) " >&6
3869else
3870  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3871  # We make a subdir and do the tests there.  Otherwise we can end up
3872  # making bogus files that we don't know about and never remove.  For
3873  # instance it was reported that on HP-UX the gcc test will end up
3874  # making a dummy file named `D' -- because `-MD' means `put the output
3875  # in D'.
3876  mkdir conftest.dir
3877  # Copy depcomp to subdir because otherwise we won't find it if we're
3878  # using a relative directory.
3879  cp "$am_depcomp" conftest.dir
3880  cd conftest.dir
3881  # We will build objects and dependencies in a subdirectory because
3882  # it helps to detect inapplicable dependency modes.  For instance
3883  # both Tru64's cc and ICC support -MD to output dependencies as a
3884  # side effect of compilation, but ICC will put the dependencies in
3885  # the current directory while Tru64 will put them in the object
3886  # directory.
3887  mkdir sub
3888
3889  am_cv_CC_dependencies_compiler_type=none
3890  if test "$am_compiler_list" = ""; then
3891     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3892  fi
3893  am__universal=false
3894  case " $depcc " in #(
3895     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3896     esac
3897
3898  for depmode in $am_compiler_list; do
3899    # Setup a source with many dependencies, because some compilers
3900    # like to wrap large dependency lists on column 80 (with \), and
3901    # we should not choose a depcomp mode which is confused by this.
3902    #
3903    # We need to recreate these files for each test, as the compiler may
3904    # overwrite some of them when testing with obscure command lines.
3905    # This happens at least with the AIX C compiler.
3906    : > sub/conftest.c
3907    for i in 1 2 3 4 5 6; do
3908      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3909      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3910      # Solaris 8's {/usr,}/bin/sh.
3911      touch sub/conftst$i.h
3912    done
3913    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3914
3915    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3916    # mode.  It turns out that the SunPro C++ compiler does not properly
3917    # handle `-M -o', and we need to detect this.  Also, some Intel
3918    # versions had trouble with output in subdirs
3919    am__obj=sub/conftest.${OBJEXT-o}
3920    am__minus_obj="-o $am__obj"
3921    case $depmode in
3922    gcc)
3923      # This depmode causes a compiler race in universal mode.
3924      test "$am__universal" = false || continue
3925      ;;
3926    nosideeffect)
3927      # after this tag, mechanisms are not by side-effect, so they'll
3928      # only be used when explicitly requested
3929      if test "x$enable_dependency_tracking" = xyes; then
3930	continue
3931      else
3932	break
3933      fi
3934      ;;
3935    msvisualcpp | msvcmsys)
3936      # This compiler won't grok `-c -o', but also, the minuso test has
3937      # not run yet.  These depmodes are late enough in the game, and
3938      # so weak that their functioning should not be impacted.
3939      am__obj=conftest.${OBJEXT-o}
3940      am__minus_obj=
3941      ;;
3942    none) break ;;
3943    esac
3944    if depmode=$depmode \
3945       source=sub/conftest.c object=$am__obj \
3946       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3947       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3948         >/dev/null 2>conftest.err &&
3949       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3950       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3951       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3952       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3953      # icc doesn't choke on unknown options, it will just issue warnings
3954      # or remarks (even with -Werror).  So we grep stderr for any message
3955      # that says an option was ignored or not supported.
3956      # When given -MP, icc 7.0 and 7.1 complain thusly:
3957      #   icc: Command line warning: ignoring option '-M'; no argument required
3958      # The diagnosis changed in icc 8.0:
3959      #   icc: Command line remark: option '-MP' not supported
3960      if (grep 'ignoring option' conftest.err ||
3961          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3962        am_cv_CC_dependencies_compiler_type=$depmode
3963        break
3964      fi
3965    fi
3966  done
3967
3968  cd ..
3969  rm -rf conftest.dir
3970else
3971  am_cv_CC_dependencies_compiler_type=none
3972fi
3973
3974fi
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3976$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3977CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3978
3979 if
3980  test "x$enable_dependency_tracking" != xno \
3981  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3982  am__fastdepCC_TRUE=
3983  am__fastdepCC_FALSE='#'
3984else
3985  am__fastdepCC_TRUE='#'
3986  am__fastdepCC_FALSE=
3987fi
3988
3989
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3991$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3992if test "${ac_cv_path_SED+set}" = set; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3996     for ac_i in 1 2 3 4 5 6 7; do
3997       ac_script="$ac_script$as_nl$ac_script"
3998     done
3999     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4000     { ac_script=; unset ac_script;}
4001     if test -z "$SED"; then
4002  ac_path_SED_found=false
4003  # Loop through the user's path and test for each of PROGNAME-LIST
4004  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007  IFS=$as_save_IFS
4008  test -z "$as_dir" && as_dir=.
4009    for ac_prog in sed gsed; do
4010    for ac_exec_ext in '' $ac_executable_extensions; do
4011      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4012      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4013# Check for GNU ac_path_SED and select it if it is found.
4014  # Check for GNU $ac_path_SED
4015case `"$ac_path_SED" --version 2>&1` in
4016*GNU*)
4017  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4018*)
4019  ac_count=0
4020  $as_echo_n 0123456789 >"conftest.in"
4021  while :
4022  do
4023    cat "conftest.in" "conftest.in" >"conftest.tmp"
4024    mv "conftest.tmp" "conftest.in"
4025    cp "conftest.in" "conftest.nl"
4026    $as_echo '' >> "conftest.nl"
4027    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4028    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4029    as_fn_arith $ac_count + 1 && ac_count=$as_val
4030    if test $ac_count -gt ${ac_path_SED_max-0}; then
4031      # Best one so far, save it but keep looking for a better one
4032      ac_cv_path_SED="$ac_path_SED"
4033      ac_path_SED_max=$ac_count
4034    fi
4035    # 10*(2^10) chars as input seems more than enough
4036    test $ac_count -gt 10 && break
4037  done
4038  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4039esac
4040
4041      $ac_path_SED_found && break 3
4042    done
4043  done
4044  done
4045IFS=$as_save_IFS
4046  if test -z "$ac_cv_path_SED"; then
4047    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4048  fi
4049else
4050  ac_cv_path_SED=$SED
4051fi
4052
4053fi
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4055$as_echo "$ac_cv_path_SED" >&6; }
4056 SED="$ac_cv_path_SED"
4057  rm -f conftest.sed
4058
4059test -z "$SED" && SED=sed
4060Xsed="$SED -e 1s/^X//"
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4073$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4074if test "${ac_cv_path_GREP+set}" = set; then :
4075  $as_echo_n "(cached) " >&6
4076else
4077  if test -z "$GREP"; then
4078  ac_path_GREP_found=false
4079  # Loop through the user's path and test for each of PROGNAME-LIST
4080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4082do
4083  IFS=$as_save_IFS
4084  test -z "$as_dir" && as_dir=.
4085    for ac_prog in grep ggrep; do
4086    for ac_exec_ext in '' $ac_executable_extensions; do
4087      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4088      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4089# Check for GNU ac_path_GREP and select it if it is found.
4090  # Check for GNU $ac_path_GREP
4091case `"$ac_path_GREP" --version 2>&1` in
4092*GNU*)
4093  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4094*)
4095  ac_count=0
4096  $as_echo_n 0123456789 >"conftest.in"
4097  while :
4098  do
4099    cat "conftest.in" "conftest.in" >"conftest.tmp"
4100    mv "conftest.tmp" "conftest.in"
4101    cp "conftest.in" "conftest.nl"
4102    $as_echo 'GREP' >> "conftest.nl"
4103    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4104    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4105    as_fn_arith $ac_count + 1 && ac_count=$as_val
4106    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4107      # Best one so far, save it but keep looking for a better one
4108      ac_cv_path_GREP="$ac_path_GREP"
4109      ac_path_GREP_max=$ac_count
4110    fi
4111    # 10*(2^10) chars as input seems more than enough
4112    test $ac_count -gt 10 && break
4113  done
4114  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4115esac
4116
4117      $ac_path_GREP_found && break 3
4118    done
4119  done
4120  done
4121IFS=$as_save_IFS
4122  if test -z "$ac_cv_path_GREP"; then
4123    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4124  fi
4125else
4126  ac_cv_path_GREP=$GREP
4127fi
4128
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4131$as_echo "$ac_cv_path_GREP" >&6; }
4132 GREP="$ac_cv_path_GREP"
4133
4134
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4136$as_echo_n "checking for egrep... " >&6; }
4137if test "${ac_cv_path_EGREP+set}" = set; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4141   then ac_cv_path_EGREP="$GREP -E"
4142   else
4143     if test -z "$EGREP"; then
4144  ac_path_EGREP_found=false
4145  # Loop through the user's path and test for each of PROGNAME-LIST
4146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148do
4149  IFS=$as_save_IFS
4150  test -z "$as_dir" && as_dir=.
4151    for ac_prog in egrep; do
4152    for ac_exec_ext in '' $ac_executable_extensions; do
4153      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4154      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4155# Check for GNU ac_path_EGREP and select it if it is found.
4156  # Check for GNU $ac_path_EGREP
4157case `"$ac_path_EGREP" --version 2>&1` in
4158*GNU*)
4159  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4160*)
4161  ac_count=0
4162  $as_echo_n 0123456789 >"conftest.in"
4163  while :
4164  do
4165    cat "conftest.in" "conftest.in" >"conftest.tmp"
4166    mv "conftest.tmp" "conftest.in"
4167    cp "conftest.in" "conftest.nl"
4168    $as_echo 'EGREP' >> "conftest.nl"
4169    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171    as_fn_arith $ac_count + 1 && ac_count=$as_val
4172    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4173      # Best one so far, save it but keep looking for a better one
4174      ac_cv_path_EGREP="$ac_path_EGREP"
4175      ac_path_EGREP_max=$ac_count
4176    fi
4177    # 10*(2^10) chars as input seems more than enough
4178    test $ac_count -gt 10 && break
4179  done
4180  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181esac
4182
4183      $ac_path_EGREP_found && break 3
4184    done
4185  done
4186  done
4187IFS=$as_save_IFS
4188  if test -z "$ac_cv_path_EGREP"; then
4189    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4190  fi
4191else
4192  ac_cv_path_EGREP=$EGREP
4193fi
4194
4195   fi
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4198$as_echo "$ac_cv_path_EGREP" >&6; }
4199 EGREP="$ac_cv_path_EGREP"
4200
4201
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4203$as_echo_n "checking for fgrep... " >&6; }
4204if test "${ac_cv_path_FGREP+set}" = set; then :
4205  $as_echo_n "(cached) " >&6
4206else
4207  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4208   then ac_cv_path_FGREP="$GREP -F"
4209   else
4210     if test -z "$FGREP"; then
4211  ac_path_FGREP_found=false
4212  # Loop through the user's path and test for each of PROGNAME-LIST
4213  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215do
4216  IFS=$as_save_IFS
4217  test -z "$as_dir" && as_dir=.
4218    for ac_prog in fgrep; do
4219    for ac_exec_ext in '' $ac_executable_extensions; do
4220      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4221      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4222# Check for GNU ac_path_FGREP and select it if it is found.
4223  # Check for GNU $ac_path_FGREP
4224case `"$ac_path_FGREP" --version 2>&1` in
4225*GNU*)
4226  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4227*)
4228  ac_count=0
4229  $as_echo_n 0123456789 >"conftest.in"
4230  while :
4231  do
4232    cat "conftest.in" "conftest.in" >"conftest.tmp"
4233    mv "conftest.tmp" "conftest.in"
4234    cp "conftest.in" "conftest.nl"
4235    $as_echo 'FGREP' >> "conftest.nl"
4236    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238    as_fn_arith $ac_count + 1 && ac_count=$as_val
4239    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4240      # Best one so far, save it but keep looking for a better one
4241      ac_cv_path_FGREP="$ac_path_FGREP"
4242      ac_path_FGREP_max=$ac_count
4243    fi
4244    # 10*(2^10) chars as input seems more than enough
4245    test $ac_count -gt 10 && break
4246  done
4247  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248esac
4249
4250      $ac_path_FGREP_found && break 3
4251    done
4252  done
4253  done
4254IFS=$as_save_IFS
4255  if test -z "$ac_cv_path_FGREP"; then
4256    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4257  fi
4258else
4259  ac_cv_path_FGREP=$FGREP
4260fi
4261
4262   fi
4263fi
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4265$as_echo "$ac_cv_path_FGREP" >&6; }
4266 FGREP="$ac_cv_path_FGREP"
4267
4268
4269test -z "$GREP" && GREP=grep
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289# Check whether --with-gnu-ld was given.
4290if test "${with_gnu_ld+set}" = set; then :
4291  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4292else
4293  with_gnu_ld=no
4294fi
4295
4296ac_prog=ld
4297if test "$GCC" = yes; then
4298  # Check if gcc -print-prog-name=ld gives a path.
4299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4300$as_echo_n "checking for ld used by $CC... " >&6; }
4301  case $host in
4302  *-*-mingw*)
4303    # gcc leaves a trailing carriage return which upsets mingw
4304    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4305  *)
4306    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4307  esac
4308  case $ac_prog in
4309    # Accept absolute paths.
4310    [\\/]* | ?:[\\/]*)
4311      re_direlt='/[^/][^/]*/\.\./'
4312      # Canonicalize the pathname of ld
4313      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4314      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4315	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4316      done
4317      test -z "$LD" && LD="$ac_prog"
4318      ;;
4319  "")
4320    # If it fails, then pretend we aren't using GCC.
4321    ac_prog=ld
4322    ;;
4323  *)
4324    # If it is relative, then search for the first ld in PATH.
4325    with_gnu_ld=unknown
4326    ;;
4327  esac
4328elif test "$with_gnu_ld" = yes; then
4329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4330$as_echo_n "checking for GNU ld... " >&6; }
4331else
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4333$as_echo_n "checking for non-GNU ld... " >&6; }
4334fi
4335if test "${lt_cv_path_LD+set}" = set; then :
4336  $as_echo_n "(cached) " >&6
4337else
4338  if test -z "$LD"; then
4339  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4340  for ac_dir in $PATH; do
4341    IFS="$lt_save_ifs"
4342    test -z "$ac_dir" && ac_dir=.
4343    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4344      lt_cv_path_LD="$ac_dir/$ac_prog"
4345      # Check to see if the program is GNU ld.  I'd rather use --version,
4346      # but apparently some variants of GNU ld only accept -v.
4347      # Break only if it was the GNU/non-GNU ld that we prefer.
4348      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4349      *GNU* | *'with BFD'*)
4350	test "$with_gnu_ld" != no && break
4351	;;
4352      *)
4353	test "$with_gnu_ld" != yes && break
4354	;;
4355      esac
4356    fi
4357  done
4358  IFS="$lt_save_ifs"
4359else
4360  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4361fi
4362fi
4363
4364LD="$lt_cv_path_LD"
4365if test -n "$LD"; then
4366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4367$as_echo "$LD" >&6; }
4368else
4369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370$as_echo "no" >&6; }
4371fi
4372test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4374$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4375if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4376  $as_echo_n "(cached) " >&6
4377else
4378  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4379case `$LD -v 2>&1 </dev/null` in
4380*GNU* | *'with BFD'*)
4381  lt_cv_prog_gnu_ld=yes
4382  ;;
4383*)
4384  lt_cv_prog_gnu_ld=no
4385  ;;
4386esac
4387fi
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4389$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4390with_gnu_ld=$lt_cv_prog_gnu_ld
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4401$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4402if test "${lt_cv_path_NM+set}" = set; then :
4403  $as_echo_n "(cached) " >&6
4404else
4405  if test -n "$NM"; then
4406  # Let the user override the test.
4407  lt_cv_path_NM="$NM"
4408else
4409  lt_nm_to_check="${ac_tool_prefix}nm"
4410  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4411    lt_nm_to_check="$lt_nm_to_check nm"
4412  fi
4413  for lt_tmp_nm in $lt_nm_to_check; do
4414    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4415    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4416      IFS="$lt_save_ifs"
4417      test -z "$ac_dir" && ac_dir=.
4418      tmp_nm="$ac_dir/$lt_tmp_nm"
4419      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4420	# Check to see if the nm accepts a BSD-compat flag.
4421	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4422	#   nm: unknown option "B" ignored
4423	# Tru64's nm complains that /dev/null is an invalid object file
4424	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4425	*/dev/null* | *'Invalid file or object type'*)
4426	  lt_cv_path_NM="$tmp_nm -B"
4427	  break
4428	  ;;
4429	*)
4430	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4431	  */dev/null*)
4432	    lt_cv_path_NM="$tmp_nm -p"
4433	    break
4434	    ;;
4435	  *)
4436	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4437	    continue # so that we can try to find one that supports BSD flags
4438	    ;;
4439	  esac
4440	  ;;
4441	esac
4442      fi
4443    done
4444    IFS="$lt_save_ifs"
4445  done
4446  : ${lt_cv_path_NM=no}
4447fi
4448fi
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4450$as_echo "$lt_cv_path_NM" >&6; }
4451if test "$lt_cv_path_NM" != "no"; then
4452  NM="$lt_cv_path_NM"
4453else
4454  # Didn't find any BSD compatible name lister, look for dumpbin.
4455  if test -n "$ac_tool_prefix"; then
4456  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4457  do
4458    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4459set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461$as_echo_n "checking for $ac_word... " >&6; }
4462if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4463  $as_echo_n "(cached) " >&6
4464else
4465  if test -n "$DUMPBIN"; then
4466  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471  IFS=$as_save_IFS
4472  test -z "$as_dir" && as_dir=.
4473    for ac_exec_ext in '' $ac_executable_extensions; do
4474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477    break 2
4478  fi
4479done
4480  done
4481IFS=$as_save_IFS
4482
4483fi
4484fi
4485DUMPBIN=$ac_cv_prog_DUMPBIN
4486if test -n "$DUMPBIN"; then
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4488$as_echo "$DUMPBIN" >&6; }
4489else
4490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491$as_echo "no" >&6; }
4492fi
4493
4494
4495    test -n "$DUMPBIN" && break
4496  done
4497fi
4498if test -z "$DUMPBIN"; then
4499  ac_ct_DUMPBIN=$DUMPBIN
4500  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4501do
4502  # Extract the first word of "$ac_prog", so it can be a program name with args.
4503set dummy $ac_prog; ac_word=$2
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505$as_echo_n "checking for $ac_word... " >&6; }
4506if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  if test -n "$ac_ct_DUMPBIN"; then
4510  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4511else
4512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515  IFS=$as_save_IFS
4516  test -z "$as_dir" && as_dir=.
4517    for ac_exec_ext in '' $ac_executable_extensions; do
4518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521    break 2
4522  fi
4523done
4524  done
4525IFS=$as_save_IFS
4526
4527fi
4528fi
4529ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4530if test -n "$ac_ct_DUMPBIN"; then
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4532$as_echo "$ac_ct_DUMPBIN" >&6; }
4533else
4534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535$as_echo "no" >&6; }
4536fi
4537
4538
4539  test -n "$ac_ct_DUMPBIN" && break
4540done
4541
4542  if test "x$ac_ct_DUMPBIN" = x; then
4543    DUMPBIN=":"
4544  else
4545    case $cross_compiling:$ac_tool_warned in
4546yes:)
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4549ac_tool_warned=yes ;;
4550esac
4551    DUMPBIN=$ac_ct_DUMPBIN
4552  fi
4553fi
4554
4555
4556  if test "$DUMPBIN" != ":"; then
4557    NM="$DUMPBIN"
4558  fi
4559fi
4560test -z "$NM" && NM=nm
4561
4562
4563
4564
4565
4566
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4568$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4569if test "${lt_cv_nm_interface+set}" = set; then :
4570  $as_echo_n "(cached) " >&6
4571else
4572  lt_cv_nm_interface="BSD nm"
4573  echo "int some_variable = 0;" > conftest.$ac_ext
4574  (eval echo "\"\$as_me:4574: $ac_compile\"" >&5)
4575  (eval "$ac_compile" 2>conftest.err)
4576  cat conftest.err >&5
4577  (eval echo "\"\$as_me:4577: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4578  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4579  cat conftest.err >&5
4580  (eval echo "\"\$as_me:4580: output\"" >&5)
4581  cat conftest.out >&5
4582  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4583    lt_cv_nm_interface="MS dumpbin"
4584  fi
4585  rm -f conftest*
4586fi
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4588$as_echo "$lt_cv_nm_interface" >&6; }
4589
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4591$as_echo_n "checking whether ln -s works... " >&6; }
4592LN_S=$as_ln_s
4593if test "$LN_S" = "ln -s"; then
4594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4595$as_echo "yes" >&6; }
4596else
4597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4598$as_echo "no, using $LN_S" >&6; }
4599fi
4600
4601# find the maximum length of command line arguments
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4603$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4604if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607    i=0
4608  teststring="ABCD"
4609
4610  case $build_os in
4611  msdosdjgpp*)
4612    # On DJGPP, this test can blow up pretty badly due to problems in libc
4613    # (any single argument exceeding 2000 bytes causes a buffer overrun
4614    # during glob expansion).  Even if it were fixed, the result of this
4615    # check would be larger than it should be.
4616    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4617    ;;
4618
4619  gnu*)
4620    # Under GNU Hurd, this test is not required because there is
4621    # no limit to the length of command line arguments.
4622    # Libtool will interpret -1 as no limit whatsoever
4623    lt_cv_sys_max_cmd_len=-1;
4624    ;;
4625
4626  cygwin* | mingw* | cegcc*)
4627    # On Win9x/ME, this test blows up -- it succeeds, but takes
4628    # about 5 minutes as the teststring grows exponentially.
4629    # Worse, since 9x/ME are not pre-emptively multitasking,
4630    # you end up with a "frozen" computer, even though with patience
4631    # the test eventually succeeds (with a max line length of 256k).
4632    # Instead, let's just punt: use the minimum linelength reported by
4633    # all of the supported platforms: 8192 (on NT/2K/XP).
4634    lt_cv_sys_max_cmd_len=8192;
4635    ;;
4636
4637  amigaos*)
4638    # On AmigaOS with pdksh, this test takes hours, literally.
4639    # So we just punt and use a minimum line length of 8192.
4640    lt_cv_sys_max_cmd_len=8192;
4641    ;;
4642
4643  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4644    # This has been around since 386BSD, at least.  Likely further.
4645    if test -x /sbin/sysctl; then
4646      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4647    elif test -x /usr/sbin/sysctl; then
4648      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4649    else
4650      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4651    fi
4652    # And add a safety zone
4653    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4654    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4655    ;;
4656
4657  interix*)
4658    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4659    lt_cv_sys_max_cmd_len=196608
4660    ;;
4661
4662  osf*)
4663    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4664    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4665    # nice to cause kernel panics so lets avoid the loop below.
4666    # First set a reasonable default.
4667    lt_cv_sys_max_cmd_len=16384
4668    #
4669    if test -x /sbin/sysconfig; then
4670      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4671        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4672      esac
4673    fi
4674    ;;
4675  sco3.2v5*)
4676    lt_cv_sys_max_cmd_len=102400
4677    ;;
4678  sysv5* | sco5v6* | sysv4.2uw2*)
4679    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4680    if test -n "$kargmax"; then
4681      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4682    else
4683      lt_cv_sys_max_cmd_len=32768
4684    fi
4685    ;;
4686  *)
4687    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4688    if test -n "$lt_cv_sys_max_cmd_len"; then
4689      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4690      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4691    else
4692      # Make teststring a little bigger before we do anything with it.
4693      # a 1K string should be a reasonable start.
4694      for i in 1 2 3 4 5 6 7 8 ; do
4695        teststring=$teststring$teststring
4696      done
4697      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4698      # If test is not a shell built-in, we'll probably end up computing a
4699      # maximum length that is only half of the actual maximum length, but
4700      # we can't tell.
4701      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4702	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4703	      test $i != 17 # 1/2 MB should be enough
4704      do
4705        i=`expr $i + 1`
4706        teststring=$teststring$teststring
4707      done
4708      # Only check the string length outside the loop.
4709      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4710      teststring=
4711      # Add a significant safety factor because C++ compilers can tack on
4712      # massive amounts of additional arguments before passing them to the
4713      # linker.  It appears as though 1/2 is a usable value.
4714      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4715    fi
4716    ;;
4717  esac
4718
4719fi
4720
4721if test -n $lt_cv_sys_max_cmd_len ; then
4722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4723$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4724else
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4726$as_echo "none" >&6; }
4727fi
4728max_cmd_len=$lt_cv_sys_max_cmd_len
4729
4730
4731
4732
4733
4734
4735: ${CP="cp -f"}
4736: ${MV="mv -f"}
4737: ${RM="rm -f"}
4738
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4740$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4741# Try some XSI features
4742xsi_shell=no
4743( _lt_dummy="a/b/c"
4744  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4745      = c,a/b,, \
4746    && eval 'test $(( 1 + 1 )) -eq 2 \
4747    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4748  && xsi_shell=yes
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4750$as_echo "$xsi_shell" >&6; }
4751
4752
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4754$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4755lt_shell_append=no
4756( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4757    >/dev/null 2>&1 \
4758  && lt_shell_append=yes
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4760$as_echo "$lt_shell_append" >&6; }
4761
4762
4763if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4764  lt_unset=unset
4765else
4766  lt_unset=false
4767fi
4768
4769
4770
4771
4772
4773# test EBCDIC or ASCII
4774case `echo X|tr X '\101'` in
4775 A) # ASCII based system
4776    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4777  lt_SP2NL='tr \040 \012'
4778  lt_NL2SP='tr \015\012 \040\040'
4779  ;;
4780 *) # EBCDIC based system
4781  lt_SP2NL='tr \100 \n'
4782  lt_NL2SP='tr \r\n \100\100'
4783  ;;
4784esac
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4795$as_echo_n "checking for $LD option to reload object files... " >&6; }
4796if test "${lt_cv_ld_reload_flag+set}" = set; then :
4797  $as_echo_n "(cached) " >&6
4798else
4799  lt_cv_ld_reload_flag='-r'
4800fi
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4802$as_echo "$lt_cv_ld_reload_flag" >&6; }
4803reload_flag=$lt_cv_ld_reload_flag
4804case $reload_flag in
4805"" | " "*) ;;
4806*) reload_flag=" $reload_flag" ;;
4807esac
4808reload_cmds='$LD$reload_flag -o $output$reload_objs'
4809case $host_os in
4810  darwin*)
4811    if test "$GCC" = yes; then
4812      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4813    else
4814      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4815    fi
4816    ;;
4817esac
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827if test -n "$ac_tool_prefix"; then
4828  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4829set dummy ${ac_tool_prefix}objdump; ac_word=$2
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831$as_echo_n "checking for $ac_word... " >&6; }
4832if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4833  $as_echo_n "(cached) " >&6
4834else
4835  if test -n "$OBJDUMP"; then
4836  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4837else
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841  IFS=$as_save_IFS
4842  test -z "$as_dir" && as_dir=.
4843    for ac_exec_ext in '' $ac_executable_extensions; do
4844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847    break 2
4848  fi
4849done
4850  done
4851IFS=$as_save_IFS
4852
4853fi
4854fi
4855OBJDUMP=$ac_cv_prog_OBJDUMP
4856if test -n "$OBJDUMP"; then
4857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4858$as_echo "$OBJDUMP" >&6; }
4859else
4860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861$as_echo "no" >&6; }
4862fi
4863
4864
4865fi
4866if test -z "$ac_cv_prog_OBJDUMP"; then
4867  ac_ct_OBJDUMP=$OBJDUMP
4868  # Extract the first word of "objdump", so it can be a program name with args.
4869set dummy objdump; ac_word=$2
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871$as_echo_n "checking for $ac_word... " >&6; }
4872if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4873  $as_echo_n "(cached) " >&6
4874else
4875  if test -n "$ac_ct_OBJDUMP"; then
4876  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4877else
4878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879for as_dir in $PATH
4880do
4881  IFS=$as_save_IFS
4882  test -z "$as_dir" && as_dir=.
4883    for ac_exec_ext in '' $ac_executable_extensions; do
4884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887    break 2
4888  fi
4889done
4890  done
4891IFS=$as_save_IFS
4892
4893fi
4894fi
4895ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4896if test -n "$ac_ct_OBJDUMP"; then
4897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4898$as_echo "$ac_ct_OBJDUMP" >&6; }
4899else
4900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901$as_echo "no" >&6; }
4902fi
4903
4904  if test "x$ac_ct_OBJDUMP" = x; then
4905    OBJDUMP="false"
4906  else
4907    case $cross_compiling:$ac_tool_warned in
4908yes:)
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911ac_tool_warned=yes ;;
4912esac
4913    OBJDUMP=$ac_ct_OBJDUMP
4914  fi
4915else
4916  OBJDUMP="$ac_cv_prog_OBJDUMP"
4917fi
4918
4919test -z "$OBJDUMP" && OBJDUMP=objdump
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4930$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4931if test "${lt_cv_deplibs_check_method+set}" = set; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  lt_cv_file_magic_cmd='$MAGIC_CMD'
4935lt_cv_file_magic_test_file=
4936lt_cv_deplibs_check_method='unknown'
4937# Need to set the preceding variable on all platforms that support
4938# interlibrary dependencies.
4939# 'none' -- dependencies not supported.
4940# `unknown' -- same as none, but documents that we really don't know.
4941# 'pass_all' -- all dependencies passed with no checks.
4942# 'test_compile' -- check by making test program.
4943# 'file_magic [[regex]]' -- check by looking for files in library path
4944# which responds to the $file_magic_cmd with a given extended regex.
4945# If you have `file' or equivalent on your system and you're not sure
4946# whether `pass_all' will *always* work, you probably want this one.
4947
4948case $host_os in
4949aix[4-9]*)
4950  lt_cv_deplibs_check_method=pass_all
4951  ;;
4952
4953beos*)
4954  lt_cv_deplibs_check_method=pass_all
4955  ;;
4956
4957bsdi[45]*)
4958  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4959  lt_cv_file_magic_cmd='/usr/bin/file -L'
4960  lt_cv_file_magic_test_file=/shlib/libc.so
4961  ;;
4962
4963cygwin*)
4964  # func_win32_libid is a shell function defined in ltmain.sh
4965  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4966  lt_cv_file_magic_cmd='func_win32_libid'
4967  ;;
4968
4969mingw* | pw32*)
4970  # Base MSYS/MinGW do not provide the 'file' command needed by
4971  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4972  # unless we find 'file', for example because we are cross-compiling.
4973  if ( file / ) >/dev/null 2>&1; then
4974    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4975    lt_cv_file_magic_cmd='func_win32_libid'
4976  else
4977    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4978    lt_cv_file_magic_cmd='$OBJDUMP -f'
4979  fi
4980  ;;
4981
4982cegcc)
4983  # use the weaker test based on 'objdump'. See mingw*.
4984  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4985  lt_cv_file_magic_cmd='$OBJDUMP -f'
4986  ;;
4987
4988darwin* | rhapsody*)
4989  lt_cv_deplibs_check_method=pass_all
4990  ;;
4991
4992freebsd* | dragonfly*)
4993  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4994    case $host_cpu in
4995    i*86 )
4996      # Not sure whether the presence of OpenBSD here was a mistake.
4997      # Let's accept both of them until this is cleared up.
4998      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4999      lt_cv_file_magic_cmd=/usr/bin/file
5000      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5001      ;;
5002    esac
5003  else
5004    lt_cv_deplibs_check_method=pass_all
5005  fi
5006  ;;
5007
5008gnu*)
5009  lt_cv_deplibs_check_method=pass_all
5010  ;;
5011
5012hpux10.20* | hpux11*)
5013  lt_cv_file_magic_cmd=/usr/bin/file
5014  case $host_cpu in
5015  ia64*)
5016    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5017    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5018    ;;
5019  hppa*64*)
5020    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5021    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5022    ;;
5023  *)
5024    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5025    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5026    ;;
5027  esac
5028  ;;
5029
5030interix[3-9]*)
5031  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5032  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5033  ;;
5034
5035irix5* | irix6* | nonstopux*)
5036  case $LD in
5037  *-32|*"-32 ") libmagic=32-bit;;
5038  *-n32|*"-n32 ") libmagic=N32;;
5039  *-64|*"-64 ") libmagic=64-bit;;
5040  *) libmagic=never-match;;
5041  esac
5042  lt_cv_deplibs_check_method=pass_all
5043  ;;
5044
5045# This must be Linux ELF.
5046linux* | k*bsd*-gnu | kopensolaris*-gnu)
5047  lt_cv_deplibs_check_method=pass_all
5048  ;;
5049
5050netbsd* | netbsdelf*-gnu)
5051  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5052    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5053  else
5054    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5055  fi
5056  ;;
5057
5058newos6*)
5059  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5060  lt_cv_file_magic_cmd=/usr/bin/file
5061  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5062  ;;
5063
5064*nto* | *qnx*)
5065  lt_cv_deplibs_check_method=pass_all
5066  ;;
5067
5068openbsd*)
5069  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5070    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5071  else
5072    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5073  fi
5074  ;;
5075
5076osf3* | osf4* | osf5*)
5077  lt_cv_deplibs_check_method=pass_all
5078  ;;
5079
5080rdos*)
5081  lt_cv_deplibs_check_method=pass_all
5082  ;;
5083
5084solaris*)
5085  lt_cv_deplibs_check_method=pass_all
5086  ;;
5087
5088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5089  lt_cv_deplibs_check_method=pass_all
5090  ;;
5091
5092sysv4 | sysv4.3*)
5093  case $host_vendor in
5094  motorola)
5095    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]'
5096    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5097    ;;
5098  ncr)
5099    lt_cv_deplibs_check_method=pass_all
5100    ;;
5101  sequent)
5102    lt_cv_file_magic_cmd='/bin/file'
5103    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5104    ;;
5105  sni)
5106    lt_cv_file_magic_cmd='/bin/file'
5107    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5108    lt_cv_file_magic_test_file=/lib/libc.so
5109    ;;
5110  siemens)
5111    lt_cv_deplibs_check_method=pass_all
5112    ;;
5113  pc)
5114    lt_cv_deplibs_check_method=pass_all
5115    ;;
5116  esac
5117  ;;
5118
5119tpf*)
5120  lt_cv_deplibs_check_method=pass_all
5121  ;;
5122esac
5123
5124fi
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5126$as_echo "$lt_cv_deplibs_check_method" >&6; }
5127file_magic_cmd=$lt_cv_file_magic_cmd
5128deplibs_check_method=$lt_cv_deplibs_check_method
5129test -z "$deplibs_check_method" && deplibs_check_method=unknown
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142if test -n "$ac_tool_prefix"; then
5143  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5144set dummy ${ac_tool_prefix}ar; ac_word=$2
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146$as_echo_n "checking for $ac_word... " >&6; }
5147if test "${ac_cv_prog_AR+set}" = set; then :
5148  $as_echo_n "(cached) " >&6
5149else
5150  if test -n "$AR"; then
5151  ac_cv_prog_AR="$AR" # Let the user override the test.
5152else
5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156  IFS=$as_save_IFS
5157  test -z "$as_dir" && as_dir=.
5158    for ac_exec_ext in '' $ac_executable_extensions; do
5159  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160    ac_cv_prog_AR="${ac_tool_prefix}ar"
5161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162    break 2
5163  fi
5164done
5165  done
5166IFS=$as_save_IFS
5167
5168fi
5169fi
5170AR=$ac_cv_prog_AR
5171if test -n "$AR"; then
5172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5173$as_echo "$AR" >&6; }
5174else
5175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176$as_echo "no" >&6; }
5177fi
5178
5179
5180fi
5181if test -z "$ac_cv_prog_AR"; then
5182  ac_ct_AR=$AR
5183  # Extract the first word of "ar", so it can be a program name with args.
5184set dummy ar; ac_word=$2
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186$as_echo_n "checking for $ac_word... " >&6; }
5187if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5188  $as_echo_n "(cached) " >&6
5189else
5190  if test -n "$ac_ct_AR"; then
5191  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5192else
5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196  IFS=$as_save_IFS
5197  test -z "$as_dir" && as_dir=.
5198    for ac_exec_ext in '' $ac_executable_extensions; do
5199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200    ac_cv_prog_ac_ct_AR="ar"
5201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202    break 2
5203  fi
5204done
5205  done
5206IFS=$as_save_IFS
5207
5208fi
5209fi
5210ac_ct_AR=$ac_cv_prog_ac_ct_AR
5211if test -n "$ac_ct_AR"; then
5212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5213$as_echo "$ac_ct_AR" >&6; }
5214else
5215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216$as_echo "no" >&6; }
5217fi
5218
5219  if test "x$ac_ct_AR" = x; then
5220    AR="false"
5221  else
5222    case $cross_compiling:$ac_tool_warned in
5223yes:)
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226ac_tool_warned=yes ;;
5227esac
5228    AR=$ac_ct_AR
5229  fi
5230else
5231  AR="$ac_cv_prog_AR"
5232fi
5233
5234test -z "$AR" && AR=ar
5235test -z "$AR_FLAGS" && AR_FLAGS=cru
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247if test -n "$ac_tool_prefix"; then
5248  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5249set dummy ${ac_tool_prefix}strip; ac_word=$2
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251$as_echo_n "checking for $ac_word... " >&6; }
5252if test "${ac_cv_prog_STRIP+set}" = set; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  if test -n "$STRIP"; then
5256  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5257else
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  test -z "$as_dir" && as_dir=.
5263    for ac_exec_ext in '' $ac_executable_extensions; do
5264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267    break 2
5268  fi
5269done
5270  done
5271IFS=$as_save_IFS
5272
5273fi
5274fi
5275STRIP=$ac_cv_prog_STRIP
5276if test -n "$STRIP"; then
5277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5278$as_echo "$STRIP" >&6; }
5279else
5280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281$as_echo "no" >&6; }
5282fi
5283
5284
5285fi
5286if test -z "$ac_cv_prog_STRIP"; then
5287  ac_ct_STRIP=$STRIP
5288  # Extract the first word of "strip", so it can be a program name with args.
5289set dummy strip; ac_word=$2
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291$as_echo_n "checking for $ac_word... " >&6; }
5292if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5293  $as_echo_n "(cached) " >&6
5294else
5295  if test -n "$ac_ct_STRIP"; then
5296  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5297else
5298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301  IFS=$as_save_IFS
5302  test -z "$as_dir" && as_dir=.
5303    for ac_exec_ext in '' $ac_executable_extensions; do
5304  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305    ac_cv_prog_ac_ct_STRIP="strip"
5306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307    break 2
5308  fi
5309done
5310  done
5311IFS=$as_save_IFS
5312
5313fi
5314fi
5315ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5316if test -n "$ac_ct_STRIP"; then
5317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5318$as_echo "$ac_ct_STRIP" >&6; }
5319else
5320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }
5322fi
5323
5324  if test "x$ac_ct_STRIP" = x; then
5325    STRIP=":"
5326  else
5327    case $cross_compiling:$ac_tool_warned in
5328yes:)
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5331ac_tool_warned=yes ;;
5332esac
5333    STRIP=$ac_ct_STRIP
5334  fi
5335else
5336  STRIP="$ac_cv_prog_STRIP"
5337fi
5338
5339test -z "$STRIP" && STRIP=:
5340
5341
5342
5343
5344
5345
5346if test -n "$ac_tool_prefix"; then
5347  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5348set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350$as_echo_n "checking for $ac_word... " >&6; }
5351if test "${ac_cv_prog_RANLIB+set}" = set; then :
5352  $as_echo_n "(cached) " >&6
5353else
5354  if test -n "$RANLIB"; then
5355  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360  IFS=$as_save_IFS
5361  test -z "$as_dir" && as_dir=.
5362    for ac_exec_ext in '' $ac_executable_extensions; do
5363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366    break 2
5367  fi
5368done
5369  done
5370IFS=$as_save_IFS
5371
5372fi
5373fi
5374RANLIB=$ac_cv_prog_RANLIB
5375if test -n "$RANLIB"; then
5376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5377$as_echo "$RANLIB" >&6; }
5378else
5379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380$as_echo "no" >&6; }
5381fi
5382
5383
5384fi
5385if test -z "$ac_cv_prog_RANLIB"; then
5386  ac_ct_RANLIB=$RANLIB
5387  # Extract the first word of "ranlib", so it can be a program name with args.
5388set dummy ranlib; ac_word=$2
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390$as_echo_n "checking for $ac_word... " >&6; }
5391if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  if test -n "$ac_ct_RANLIB"; then
5395  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5396else
5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400  IFS=$as_save_IFS
5401  test -z "$as_dir" && as_dir=.
5402    for ac_exec_ext in '' $ac_executable_extensions; do
5403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404    ac_cv_prog_ac_ct_RANLIB="ranlib"
5405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406    break 2
5407  fi
5408done
5409  done
5410IFS=$as_save_IFS
5411
5412fi
5413fi
5414ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5415if test -n "$ac_ct_RANLIB"; then
5416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5417$as_echo "$ac_ct_RANLIB" >&6; }
5418else
5419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420$as_echo "no" >&6; }
5421fi
5422
5423  if test "x$ac_ct_RANLIB" = x; then
5424    RANLIB=":"
5425  else
5426    case $cross_compiling:$ac_tool_warned in
5427yes:)
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5430ac_tool_warned=yes ;;
5431esac
5432    RANLIB=$ac_ct_RANLIB
5433  fi
5434else
5435  RANLIB="$ac_cv_prog_RANLIB"
5436fi
5437
5438test -z "$RANLIB" && RANLIB=:
5439
5440
5441
5442
5443
5444
5445# Determine commands to create old-style static archives.
5446old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5447old_postinstall_cmds='chmod 644 $oldlib'
5448old_postuninstall_cmds=
5449
5450if test -n "$RANLIB"; then
5451  case $host_os in
5452  openbsd*)
5453    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5454    ;;
5455  *)
5456    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5457    ;;
5458  esac
5459  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5460fi
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495# If no C compiler was specified, use CC.
5496LTCC=${LTCC-"$CC"}
5497
5498# If no C compiler flags were specified, use CFLAGS.
5499LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5500
5501# Allow CC to be a program name with arguments.
5502compiler=$CC
5503
5504
5505# Check for command to grab the raw symbol name followed by C symbol from nm.
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5507$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5508if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5509  $as_echo_n "(cached) " >&6
5510else
5511
5512# These are sane defaults that work on at least a few old systems.
5513# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5514
5515# Character class describing NM global symbol codes.
5516symcode='[BCDEGRST]'
5517
5518# Regexp to match symbols that can be accessed directly from C.
5519sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5520
5521# Define system-specific variables.
5522case $host_os in
5523aix*)
5524  symcode='[BCDT]'
5525  ;;
5526cygwin* | mingw* | pw32* | cegcc*)
5527  symcode='[ABCDGISTW]'
5528  ;;
5529hpux*)
5530  if test "$host_cpu" = ia64; then
5531    symcode='[ABCDEGRST]'
5532  fi
5533  ;;
5534irix* | nonstopux*)
5535  symcode='[BCDEGRST]'
5536  ;;
5537osf*)
5538  symcode='[BCDEGQRST]'
5539  ;;
5540solaris*)
5541  symcode='[BDRT]'
5542  ;;
5543sco3.2v5*)
5544  symcode='[DT]'
5545  ;;
5546sysv4.2uw2*)
5547  symcode='[DT]'
5548  ;;
5549sysv5* | sco5v6* | unixware* | OpenUNIX*)
5550  symcode='[ABDT]'
5551  ;;
5552sysv4)
5553  symcode='[DFNSTU]'
5554  ;;
5555esac
5556
5557# If we're using GNU nm, then use its standard symbol codes.
5558case `$NM -V 2>&1` in
5559*GNU* | *'with BFD'*)
5560  symcode='[ABCDGIRSTW]' ;;
5561esac
5562
5563# Transform an extracted symbol line into a proper C declaration.
5564# Some systems (esp. on ia64) link data and code symbols differently,
5565# so use this general approach.
5566lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5567
5568# Transform an extracted symbol line into symbol name and symbol address
5569lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5570lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5571
5572# Handle CRLF in mingw tool chain
5573opt_cr=
5574case $build_os in
5575mingw*)
5576  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5577  ;;
5578esac
5579
5580# Try without a prefix underscore, then with it.
5581for ac_symprfx in "" "_"; do
5582
5583  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5584  symxfrm="\\1 $ac_symprfx\\2 \\2"
5585
5586  # Write the raw and C identifiers.
5587  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5588    # Fake it for dumpbin and say T for any non-static function
5589    # and D for any global variable.
5590    # Also find C++ and __fastcall symbols from MSVC++,
5591    # which start with @ or ?.
5592    lt_cv_sys_global_symbol_pipe="$AWK '"\
5593"     {last_section=section; section=\$ 3};"\
5594"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5595"     \$ 0!~/External *\|/{next};"\
5596"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5597"     {if(hide[section]) next};"\
5598"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5599"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5600"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5601"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5602"     ' prfx=^$ac_symprfx"
5603  else
5604    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5605  fi
5606
5607  # Check to see that the pipe works correctly.
5608  pipe_works=no
5609
5610  rm -f conftest*
5611  cat > conftest.$ac_ext <<_LT_EOF
5612#ifdef __cplusplus
5613extern "C" {
5614#endif
5615char nm_test_var;
5616void nm_test_func(void);
5617void nm_test_func(void){}
5618#ifdef __cplusplus
5619}
5620#endif
5621int main(){nm_test_var='a';nm_test_func();return(0);}
5622_LT_EOF
5623
5624  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5625  (eval $ac_compile) 2>&5
5626  ac_status=$?
5627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5628  test $ac_status = 0; }; then
5629    # Now try to grab the symbols.
5630    nlist=conftest.nm
5631    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5632  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5633  ac_status=$?
5634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5635  test $ac_status = 0; } && test -s "$nlist"; then
5636      # Try sorting and uniquifying the output.
5637      if sort "$nlist" | uniq > "$nlist"T; then
5638	mv -f "$nlist"T "$nlist"
5639      else
5640	rm -f "$nlist"T
5641      fi
5642
5643      # Make sure that we snagged all the symbols we need.
5644      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5645	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5646	  cat <<_LT_EOF > conftest.$ac_ext
5647#ifdef __cplusplus
5648extern "C" {
5649#endif
5650
5651_LT_EOF
5652	  # Now generate the symbol file.
5653	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5654
5655	  cat <<_LT_EOF >> conftest.$ac_ext
5656
5657/* The mapping between symbol names and symbols.  */
5658const struct {
5659  const char *name;
5660  void       *address;
5661}
5662lt__PROGRAM__LTX_preloaded_symbols[] =
5663{
5664  { "@PROGRAM@", (void *) 0 },
5665_LT_EOF
5666	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5667	  cat <<\_LT_EOF >> conftest.$ac_ext
5668  {0, (void *) 0}
5669};
5670
5671/* This works around a problem in FreeBSD linker */
5672#ifdef FREEBSD_WORKAROUND
5673static const void *lt_preloaded_setup() {
5674  return lt__PROGRAM__LTX_preloaded_symbols;
5675}
5676#endif
5677
5678#ifdef __cplusplus
5679}
5680#endif
5681_LT_EOF
5682	  # Now try linking the two files.
5683	  mv conftest.$ac_objext conftstm.$ac_objext
5684	  lt_save_LIBS="$LIBS"
5685	  lt_save_CFLAGS="$CFLAGS"
5686	  LIBS="conftstm.$ac_objext"
5687	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5688	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5689  (eval $ac_link) 2>&5
5690  ac_status=$?
5691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5693	    pipe_works=yes
5694	  fi
5695	  LIBS="$lt_save_LIBS"
5696	  CFLAGS="$lt_save_CFLAGS"
5697	else
5698	  echo "cannot find nm_test_func in $nlist" >&5
5699	fi
5700      else
5701	echo "cannot find nm_test_var in $nlist" >&5
5702      fi
5703    else
5704      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5705    fi
5706  else
5707    echo "$progname: failed program was:" >&5
5708    cat conftest.$ac_ext >&5
5709  fi
5710  rm -rf conftest* conftst*
5711
5712  # Do not use the global_symbol_pipe unless it works.
5713  if test "$pipe_works" = yes; then
5714    break
5715  else
5716    lt_cv_sys_global_symbol_pipe=
5717  fi
5718done
5719
5720fi
5721
5722if test -z "$lt_cv_sys_global_symbol_pipe"; then
5723  lt_cv_sys_global_symbol_to_cdecl=
5724fi
5725if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5727$as_echo "failed" >&6; }
5728else
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5730$as_echo "ok" >&6; }
5731fi
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755# Check whether --enable-libtool-lock was given.
5756if test "${enable_libtool_lock+set}" = set; then :
5757  enableval=$enable_libtool_lock;
5758fi
5759
5760test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5761
5762# Some flags need to be propagated to the compiler or linker for good
5763# libtool support.
5764case $host in
5765ia64-*-hpux*)
5766  # Find out which ABI we are using.
5767  echo 'int i;' > conftest.$ac_ext
5768  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5769  (eval $ac_compile) 2>&5
5770  ac_status=$?
5771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5772  test $ac_status = 0; }; then
5773    case `/usr/bin/file conftest.$ac_objext` in
5774      *ELF-32*)
5775	HPUX_IA64_MODE="32"
5776	;;
5777      *ELF-64*)
5778	HPUX_IA64_MODE="64"
5779	;;
5780    esac
5781  fi
5782  rm -rf conftest*
5783  ;;
5784*-*-irix6*)
5785  # Find out which ABI we are using.
5786  echo '#line 5786 "configure"' > conftest.$ac_ext
5787  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5788  (eval $ac_compile) 2>&5
5789  ac_status=$?
5790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791  test $ac_status = 0; }; then
5792    if test "$lt_cv_prog_gnu_ld" = yes; then
5793      case `/usr/bin/file conftest.$ac_objext` in
5794	*32-bit*)
5795	  LD="${LD-ld} -melf32bsmip"
5796	  ;;
5797	*N32*)
5798	  LD="${LD-ld} -melf32bmipn32"
5799	  ;;
5800	*64-bit*)
5801	  LD="${LD-ld} -melf64bmip"
5802	;;
5803      esac
5804    else
5805      case `/usr/bin/file conftest.$ac_objext` in
5806	*32-bit*)
5807	  LD="${LD-ld} -32"
5808	  ;;
5809	*N32*)
5810	  LD="${LD-ld} -n32"
5811	  ;;
5812	*64-bit*)
5813	  LD="${LD-ld} -64"
5814	  ;;
5815      esac
5816    fi
5817  fi
5818  rm -rf conftest*
5819  ;;
5820
5821x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5822s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5823  # Find out which ABI we are using.
5824  echo 'int i;' > conftest.$ac_ext
5825  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5826  (eval $ac_compile) 2>&5
5827  ac_status=$?
5828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829  test $ac_status = 0; }; then
5830    case `/usr/bin/file conftest.o` in
5831      *32-bit*)
5832	case $host in
5833	  x86_64-*kfreebsd*-gnu)
5834	    LD="${LD-ld} -m elf_i386_fbsd"
5835	    ;;
5836	  x86_64-*linux*)
5837	    LD="${LD-ld} -m elf_i386"
5838	    ;;
5839	  ppc64-*linux*|powerpc64-*linux*)
5840	    LD="${LD-ld} -m elf32ppclinux"
5841	    ;;
5842	  s390x-*linux*)
5843	    LD="${LD-ld} -m elf_s390"
5844	    ;;
5845	  sparc64-*linux*)
5846	    LD="${LD-ld} -m elf32_sparc"
5847	    ;;
5848	esac
5849	;;
5850      *64-bit*)
5851	case $host in
5852	  x86_64-*kfreebsd*-gnu)
5853	    LD="${LD-ld} -m elf_x86_64_fbsd"
5854	    ;;
5855	  x86_64-*linux*)
5856	    LD="${LD-ld} -m elf_x86_64"
5857	    ;;
5858	  ppc*-*linux*|powerpc*-*linux*)
5859	    LD="${LD-ld} -m elf64ppc"
5860	    ;;
5861	  s390*-*linux*|s390*-*tpf*)
5862	    LD="${LD-ld} -m elf64_s390"
5863	    ;;
5864	  sparc*-*linux*)
5865	    LD="${LD-ld} -m elf64_sparc"
5866	    ;;
5867	esac
5868	;;
5869    esac
5870  fi
5871  rm -rf conftest*
5872  ;;
5873
5874*-*-sco3.2v5*)
5875  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5876  SAVE_CFLAGS="$CFLAGS"
5877  CFLAGS="$CFLAGS -belf"
5878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5879$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5880if test "${lt_cv_cc_needs_belf+set}" = set; then :
5881  $as_echo_n "(cached) " >&6
5882else
5883  ac_ext=c
5884ac_cpp='$CPP $CPPFLAGS'
5885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887ac_compiler_gnu=$ac_cv_c_compiler_gnu
5888
5889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h.  */
5891
5892int
5893main ()
5894{
5895
5896  ;
5897  return 0;
5898}
5899_ACEOF
5900if ac_fn_c_try_link "$LINENO"; then :
5901  lt_cv_cc_needs_belf=yes
5902else
5903  lt_cv_cc_needs_belf=no
5904fi
5905rm -f core conftest.err conftest.$ac_objext \
5906    conftest$ac_exeext conftest.$ac_ext
5907     ac_ext=c
5908ac_cpp='$CPP $CPPFLAGS'
5909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911ac_compiler_gnu=$ac_cv_c_compiler_gnu
5912
5913fi
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5915$as_echo "$lt_cv_cc_needs_belf" >&6; }
5916  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5917    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5918    CFLAGS="$SAVE_CFLAGS"
5919  fi
5920  ;;
5921sparc*-*solaris*)
5922  # Find out which ABI we are using.
5923  echo 'int i;' > conftest.$ac_ext
5924  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5925  (eval $ac_compile) 2>&5
5926  ac_status=$?
5927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928  test $ac_status = 0; }; then
5929    case `/usr/bin/file conftest.o` in
5930    *64-bit*)
5931      case $lt_cv_prog_gnu_ld in
5932      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5933      *)
5934	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5935	  LD="${LD-ld} -64"
5936	fi
5937	;;
5938      esac
5939      ;;
5940    esac
5941  fi
5942  rm -rf conftest*
5943  ;;
5944esac
5945
5946need_locks="$enable_libtool_lock"
5947
5948
5949  case $host_os in
5950    rhapsody* | darwin*)
5951    if test -n "$ac_tool_prefix"; then
5952  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5953set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955$as_echo_n "checking for $ac_word... " >&6; }
5956if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5957  $as_echo_n "(cached) " >&6
5958else
5959  if test -n "$DSYMUTIL"; then
5960  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5961else
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965  IFS=$as_save_IFS
5966  test -z "$as_dir" && as_dir=.
5967    for ac_exec_ext in '' $ac_executable_extensions; do
5968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5969    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971    break 2
5972  fi
5973done
5974  done
5975IFS=$as_save_IFS
5976
5977fi
5978fi
5979DSYMUTIL=$ac_cv_prog_DSYMUTIL
5980if test -n "$DSYMUTIL"; then
5981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5982$as_echo "$DSYMUTIL" >&6; }
5983else
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985$as_echo "no" >&6; }
5986fi
5987
5988
5989fi
5990if test -z "$ac_cv_prog_DSYMUTIL"; then
5991  ac_ct_DSYMUTIL=$DSYMUTIL
5992  # Extract the first word of "dsymutil", so it can be a program name with args.
5993set dummy dsymutil; ac_word=$2
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995$as_echo_n "checking for $ac_word... " >&6; }
5996if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5997  $as_echo_n "(cached) " >&6
5998else
5999  if test -n "$ac_ct_DSYMUTIL"; then
6000  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6001else
6002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003for as_dir in $PATH
6004do
6005  IFS=$as_save_IFS
6006  test -z "$as_dir" && as_dir=.
6007    for ac_exec_ext in '' $ac_executable_extensions; do
6008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011    break 2
6012  fi
6013done
6014  done
6015IFS=$as_save_IFS
6016
6017fi
6018fi
6019ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6020if test -n "$ac_ct_DSYMUTIL"; then
6021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6022$as_echo "$ac_ct_DSYMUTIL" >&6; }
6023else
6024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025$as_echo "no" >&6; }
6026fi
6027
6028  if test "x$ac_ct_DSYMUTIL" = x; then
6029    DSYMUTIL=":"
6030  else
6031    case $cross_compiling:$ac_tool_warned in
6032yes:)
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6035ac_tool_warned=yes ;;
6036esac
6037    DSYMUTIL=$ac_ct_DSYMUTIL
6038  fi
6039else
6040  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6041fi
6042
6043    if test -n "$ac_tool_prefix"; then
6044  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6045set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047$as_echo_n "checking for $ac_word... " >&6; }
6048if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  if test -n "$NMEDIT"; then
6052  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057  IFS=$as_save_IFS
6058  test -z "$as_dir" && as_dir=.
6059    for ac_exec_ext in '' $ac_executable_extensions; do
6060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063    break 2
6064  fi
6065done
6066  done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071NMEDIT=$ac_cv_prog_NMEDIT
6072if test -n "$NMEDIT"; then
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6074$as_echo "$NMEDIT" >&6; }
6075else
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080
6081fi
6082if test -z "$ac_cv_prog_NMEDIT"; then
6083  ac_ct_NMEDIT=$NMEDIT
6084  # Extract the first word of "nmedit", so it can be a program name with args.
6085set dummy nmedit; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
6088if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  if test -n "$ac_ct_NMEDIT"; then
6092  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097  IFS=$as_save_IFS
6098  test -z "$as_dir" && as_dir=.
6099    for ac_exec_ext in '' $ac_executable_extensions; do
6100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6101    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103    break 2
6104  fi
6105done
6106  done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6112if test -n "$ac_ct_NMEDIT"; then
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6114$as_echo "$ac_ct_NMEDIT" >&6; }
6115else
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120  if test "x$ac_ct_NMEDIT" = x; then
6121    NMEDIT=":"
6122  else
6123    case $cross_compiling:$ac_tool_warned in
6124yes:)
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6127ac_tool_warned=yes ;;
6128esac
6129    NMEDIT=$ac_ct_NMEDIT
6130  fi
6131else
6132  NMEDIT="$ac_cv_prog_NMEDIT"
6133fi
6134
6135    if test -n "$ac_tool_prefix"; then
6136  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6137set dummy ${ac_tool_prefix}lipo; ac_word=$2
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139$as_echo_n "checking for $ac_word... " >&6; }
6140if test "${ac_cv_prog_LIPO+set}" = set; then :
6141  $as_echo_n "(cached) " >&6
6142else
6143  if test -n "$LIPO"; then
6144  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6145else
6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149  IFS=$as_save_IFS
6150  test -z "$as_dir" && as_dir=.
6151    for ac_exec_ext in '' $ac_executable_extensions; do
6152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155    break 2
6156  fi
6157done
6158  done
6159IFS=$as_save_IFS
6160
6161fi
6162fi
6163LIPO=$ac_cv_prog_LIPO
6164if test -n "$LIPO"; then
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6166$as_echo "$LIPO" >&6; }
6167else
6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169$as_echo "no" >&6; }
6170fi
6171
6172
6173fi
6174if test -z "$ac_cv_prog_LIPO"; then
6175  ac_ct_LIPO=$LIPO
6176  # Extract the first word of "lipo", so it can be a program name with args.
6177set dummy lipo; ac_word=$2
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179$as_echo_n "checking for $ac_word... " >&6; }
6180if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  if test -n "$ac_ct_LIPO"; then
6184  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189  IFS=$as_save_IFS
6190  test -z "$as_dir" && as_dir=.
6191    for ac_exec_ext in '' $ac_executable_extensions; do
6192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193    ac_cv_prog_ac_ct_LIPO="lipo"
6194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195    break 2
6196  fi
6197done
6198  done
6199IFS=$as_save_IFS
6200
6201fi
6202fi
6203ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6204if test -n "$ac_ct_LIPO"; then
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6206$as_echo "$ac_ct_LIPO" >&6; }
6207else
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209$as_echo "no" >&6; }
6210fi
6211
6212  if test "x$ac_ct_LIPO" = x; then
6213    LIPO=":"
6214  else
6215    case $cross_compiling:$ac_tool_warned in
6216yes:)
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219ac_tool_warned=yes ;;
6220esac
6221    LIPO=$ac_ct_LIPO
6222  fi
6223else
6224  LIPO="$ac_cv_prog_LIPO"
6225fi
6226
6227    if test -n "$ac_tool_prefix"; then
6228  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6229set dummy ${ac_tool_prefix}otool; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if test "${ac_cv_prog_OTOOL+set}" = set; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  if test -n "$OTOOL"; then
6236  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241  IFS=$as_save_IFS
6242  test -z "$as_dir" && as_dir=.
6243    for ac_exec_ext in '' $ac_executable_extensions; do
6244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247    break 2
6248  fi
6249done
6250  done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255OTOOL=$ac_cv_prog_OTOOL
6256if test -n "$OTOOL"; then
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6258$as_echo "$OTOOL" >&6; }
6259else
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264
6265fi
6266if test -z "$ac_cv_prog_OTOOL"; then
6267  ac_ct_OTOOL=$OTOOL
6268  # Extract the first word of "otool", so it can be a program name with args.
6269set dummy otool; ac_word=$2
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271$as_echo_n "checking for $ac_word... " >&6; }
6272if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  if test -n "$ac_ct_OTOOL"; then
6276  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6277else
6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281  IFS=$as_save_IFS
6282  test -z "$as_dir" && as_dir=.
6283    for ac_exec_ext in '' $ac_executable_extensions; do
6284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285    ac_cv_prog_ac_ct_OTOOL="otool"
6286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287    break 2
6288  fi
6289done
6290  done
6291IFS=$as_save_IFS
6292
6293fi
6294fi
6295ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6296if test -n "$ac_ct_OTOOL"; then
6297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6298$as_echo "$ac_ct_OTOOL" >&6; }
6299else
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301$as_echo "no" >&6; }
6302fi
6303
6304  if test "x$ac_ct_OTOOL" = x; then
6305    OTOOL=":"
6306  else
6307    case $cross_compiling:$ac_tool_warned in
6308yes:)
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311ac_tool_warned=yes ;;
6312esac
6313    OTOOL=$ac_ct_OTOOL
6314  fi
6315else
6316  OTOOL="$ac_cv_prog_OTOOL"
6317fi
6318
6319    if test -n "$ac_tool_prefix"; then
6320  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6321set dummy ${ac_tool_prefix}otool64; ac_word=$2
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323$as_echo_n "checking for $ac_word... " >&6; }
6324if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  if test -n "$OTOOL64"; then
6328  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333  IFS=$as_save_IFS
6334  test -z "$as_dir" && as_dir=.
6335    for ac_exec_ext in '' $ac_executable_extensions; do
6336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339    break 2
6340  fi
6341done
6342  done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347OTOOL64=$ac_cv_prog_OTOOL64
6348if test -n "$OTOOL64"; then
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6350$as_echo "$OTOOL64" >&6; }
6351else
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353$as_echo "no" >&6; }
6354fi
6355
6356
6357fi
6358if test -z "$ac_cv_prog_OTOOL64"; then
6359  ac_ct_OTOOL64=$OTOOL64
6360  # Extract the first word of "otool64", so it can be a program name with args.
6361set dummy otool64; ac_word=$2
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363$as_echo_n "checking for $ac_word... " >&6; }
6364if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6365  $as_echo_n "(cached) " >&6
6366else
6367  if test -n "$ac_ct_OTOOL64"; then
6368  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6369else
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373  IFS=$as_save_IFS
6374  test -z "$as_dir" && as_dir=.
6375    for ac_exec_ext in '' $ac_executable_extensions; do
6376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6377    ac_cv_prog_ac_ct_OTOOL64="otool64"
6378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379    break 2
6380  fi
6381done
6382  done
6383IFS=$as_save_IFS
6384
6385fi
6386fi
6387ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6388if test -n "$ac_ct_OTOOL64"; then
6389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6390$as_echo "$ac_ct_OTOOL64" >&6; }
6391else
6392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393$as_echo "no" >&6; }
6394fi
6395
6396  if test "x$ac_ct_OTOOL64" = x; then
6397    OTOOL64=":"
6398  else
6399    case $cross_compiling:$ac_tool_warned in
6400yes:)
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403ac_tool_warned=yes ;;
6404esac
6405    OTOOL64=$ac_ct_OTOOL64
6406  fi
6407else
6408  OTOOL64="$ac_cv_prog_OTOOL64"
6409fi
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6438$as_echo_n "checking for -single_module linker flag... " >&6; }
6439if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6440  $as_echo_n "(cached) " >&6
6441else
6442  lt_cv_apple_cc_single_mod=no
6443      if test -z "${LT_MULTI_MODULE}"; then
6444	# By default we will add the -single_module flag. You can override
6445	# by either setting the environment variable LT_MULTI_MODULE
6446	# non-empty at configure time, or by adding -multi_module to the
6447	# link flags.
6448	rm -rf libconftest.dylib*
6449	echo "int foo(void){return 1;}" > conftest.c
6450	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6451-dynamiclib -Wl,-single_module conftest.c" >&5
6452	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6453	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6454        _lt_result=$?
6455	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6456	  lt_cv_apple_cc_single_mod=yes
6457	else
6458	  cat conftest.err >&5
6459	fi
6460	rm -rf libconftest.dylib*
6461	rm -f conftest.*
6462      fi
6463fi
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6465$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6466    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6467$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6468if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6469  $as_echo_n "(cached) " >&6
6470else
6471  lt_cv_ld_exported_symbols_list=no
6472      save_LDFLAGS=$LDFLAGS
6473      echo "_main" > conftest.sym
6474      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6475      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h.  */
6477
6478int
6479main ()
6480{
6481
6482  ;
6483  return 0;
6484}
6485_ACEOF
6486if ac_fn_c_try_link "$LINENO"; then :
6487  lt_cv_ld_exported_symbols_list=yes
6488else
6489  lt_cv_ld_exported_symbols_list=no
6490fi
6491rm -f core conftest.err conftest.$ac_objext \
6492    conftest$ac_exeext conftest.$ac_ext
6493	LDFLAGS="$save_LDFLAGS"
6494
6495fi
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6497$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6498    case $host_os in
6499    rhapsody* | darwin1.[012])
6500      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6501    darwin1.*)
6502      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6503    darwin*) # darwin 5.x on
6504      # if running on 10.5 or later, the deployment target defaults
6505      # to the OS version, if on x86, and 10.4, the deployment
6506      # target defaults to 10.4. Don't you love it?
6507      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6508	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6509	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6510	10.[012]*)
6511	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6512	10.*)
6513	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6514      esac
6515    ;;
6516  esac
6517    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6518      _lt_dar_single_mod='$single_module'
6519    fi
6520    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6521      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6522    else
6523      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6524    fi
6525    if test "$DSYMUTIL" != ":"; then
6526      _lt_dsymutil='~$DSYMUTIL $lib || :'
6527    else
6528      _lt_dsymutil=
6529    fi
6530    ;;
6531  esac
6532
6533ac_ext=c
6534ac_cpp='$CPP $CPPFLAGS'
6535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6537ac_compiler_gnu=$ac_cv_c_compiler_gnu
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6539$as_echo_n "checking how to run the C preprocessor... " >&6; }
6540# On Suns, sometimes $CPP names a directory.
6541if test -n "$CPP" && test -d "$CPP"; then
6542  CPP=
6543fi
6544if test -z "$CPP"; then
6545  if test "${ac_cv_prog_CPP+set}" = set; then :
6546  $as_echo_n "(cached) " >&6
6547else
6548      # Double quotes because CPP needs to be expanded
6549    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6550    do
6551      ac_preproc_ok=false
6552for ac_c_preproc_warn_flag in '' yes
6553do
6554  # Use a header file that comes with gcc, so configuring glibc
6555  # with a fresh cross-compiler works.
6556  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6557  # <limits.h> exists even on freestanding compilers.
6558  # On the NeXT, cc -E runs the code through the compiler's parser,
6559  # not just through cpp. "Syntax error" is here to catch this case.
6560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h.  */
6562#ifdef __STDC__
6563# include <limits.h>
6564#else
6565# include <assert.h>
6566#endif
6567		     Syntax error
6568_ACEOF
6569if ac_fn_c_try_cpp "$LINENO"; then :
6570
6571else
6572  # Broken: fails on valid input.
6573continue
6574fi
6575rm -f conftest.err conftest.$ac_ext
6576
6577  # OK, works on sane cases.  Now check whether nonexistent headers
6578  # can be detected and how.
6579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580/* end confdefs.h.  */
6581#include <ac_nonexistent.h>
6582_ACEOF
6583if ac_fn_c_try_cpp "$LINENO"; then :
6584  # Broken: success on invalid input.
6585continue
6586else
6587  # Passes both tests.
6588ac_preproc_ok=:
6589break
6590fi
6591rm -f conftest.err conftest.$ac_ext
6592
6593done
6594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6595rm -f conftest.err conftest.$ac_ext
6596if $ac_preproc_ok; then :
6597  break
6598fi
6599
6600    done
6601    ac_cv_prog_CPP=$CPP
6602
6603fi
6604  CPP=$ac_cv_prog_CPP
6605else
6606  ac_cv_prog_CPP=$CPP
6607fi
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6609$as_echo "$CPP" >&6; }
6610ac_preproc_ok=false
6611for ac_c_preproc_warn_flag in '' yes
6612do
6613  # Use a header file that comes with gcc, so configuring glibc
6614  # with a fresh cross-compiler works.
6615  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6616  # <limits.h> exists even on freestanding compilers.
6617  # On the NeXT, cc -E runs the code through the compiler's parser,
6618  # not just through cpp. "Syntax error" is here to catch this case.
6619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621#ifdef __STDC__
6622# include <limits.h>
6623#else
6624# include <assert.h>
6625#endif
6626		     Syntax error
6627_ACEOF
6628if ac_fn_c_try_cpp "$LINENO"; then :
6629
6630else
6631  # Broken: fails on valid input.
6632continue
6633fi
6634rm -f conftest.err conftest.$ac_ext
6635
6636  # OK, works on sane cases.  Now check whether nonexistent headers
6637  # can be detected and how.
6638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h.  */
6640#include <ac_nonexistent.h>
6641_ACEOF
6642if ac_fn_c_try_cpp "$LINENO"; then :
6643  # Broken: success on invalid input.
6644continue
6645else
6646  # Passes both tests.
6647ac_preproc_ok=:
6648break
6649fi
6650rm -f conftest.err conftest.$ac_ext
6651
6652done
6653# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6654rm -f conftest.err conftest.$ac_ext
6655if $ac_preproc_ok; then :
6656
6657else
6658  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6660as_fn_error "C preprocessor \"$CPP\" fails sanity check
6661See \`config.log' for more details." "$LINENO" 5; }
6662fi
6663
6664ac_ext=c
6665ac_cpp='$CPP $CPPFLAGS'
6666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668ac_compiler_gnu=$ac_cv_c_compiler_gnu
6669
6670
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6672$as_echo_n "checking for ANSI C header files... " >&6; }
6673if test "${ac_cv_header_stdc+set}" = set; then :
6674  $as_echo_n "(cached) " >&6
6675else
6676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h.  */
6678#include <stdlib.h>
6679#include <stdarg.h>
6680#include <string.h>
6681#include <float.h>
6682
6683int
6684main ()
6685{
6686
6687  ;
6688  return 0;
6689}
6690_ACEOF
6691if ac_fn_c_try_compile "$LINENO"; then :
6692  ac_cv_header_stdc=yes
6693else
6694  ac_cv_header_stdc=no
6695fi
6696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697
6698if test $ac_cv_header_stdc = yes; then
6699  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702#include <string.h>
6703
6704_ACEOF
6705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6706  $EGREP "memchr" >/dev/null 2>&1; then :
6707
6708else
6709  ac_cv_header_stdc=no
6710fi
6711rm -f conftest*
6712
6713fi
6714
6715if test $ac_cv_header_stdc = yes; then
6716  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718/* end confdefs.h.  */
6719#include <stdlib.h>
6720
6721_ACEOF
6722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723  $EGREP "free" >/dev/null 2>&1; then :
6724
6725else
6726  ac_cv_header_stdc=no
6727fi
6728rm -f conftest*
6729
6730fi
6731
6732if test $ac_cv_header_stdc = yes; then
6733  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6734  if test "$cross_compiling" = yes; then :
6735  :
6736else
6737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738/* end confdefs.h.  */
6739#include <ctype.h>
6740#include <stdlib.h>
6741#if ((' ' & 0x0FF) == 0x020)
6742# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6743# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6744#else
6745# define ISLOWER(c) \
6746		   (('a' <= (c) && (c) <= 'i') \
6747		     || ('j' <= (c) && (c) <= 'r') \
6748		     || ('s' <= (c) && (c) <= 'z'))
6749# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6750#endif
6751
6752#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6753int
6754main ()
6755{
6756  int i;
6757  for (i = 0; i < 256; i++)
6758    if (XOR (islower (i), ISLOWER (i))
6759	|| toupper (i) != TOUPPER (i))
6760      return 2;
6761  return 0;
6762}
6763_ACEOF
6764if ac_fn_c_try_run "$LINENO"; then :
6765
6766else
6767  ac_cv_header_stdc=no
6768fi
6769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6770  conftest.$ac_objext conftest.beam conftest.$ac_ext
6771fi
6772
6773fi
6774fi
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6776$as_echo "$ac_cv_header_stdc" >&6; }
6777if test $ac_cv_header_stdc = yes; then
6778
6779$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6780
6781fi
6782
6783# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6784for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6785		  inttypes.h stdint.h unistd.h
6786do :
6787  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6788ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6789"
6790eval as_val=\$$as_ac_Header
6791   if test "x$as_val" = x""yes; then :
6792  cat >>confdefs.h <<_ACEOF
6793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6794_ACEOF
6795
6796fi
6797
6798done
6799
6800
6801for ac_header in dlfcn.h
6802do :
6803  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6804"
6805if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6806  cat >>confdefs.h <<_ACEOF
6807#define HAVE_DLFCN_H 1
6808_ACEOF
6809
6810fi
6811
6812done
6813
6814
6815
6816# Set options
6817
6818
6819
6820        enable_dlopen=no
6821
6822
6823  enable_win32_dll=no
6824
6825
6826            # Check whether --enable-shared was given.
6827if test "${enable_shared+set}" = set; then :
6828  enableval=$enable_shared; p=${PACKAGE-default}
6829    case $enableval in
6830    yes) enable_shared=yes ;;
6831    no) enable_shared=no ;;
6832    *)
6833      enable_shared=no
6834      # Look at the argument we got.  We use all the common list separators.
6835      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6836      for pkg in $enableval; do
6837	IFS="$lt_save_ifs"
6838	if test "X$pkg" = "X$p"; then
6839	  enable_shared=yes
6840	fi
6841      done
6842      IFS="$lt_save_ifs"
6843      ;;
6844    esac
6845else
6846  enable_shared=yes
6847fi
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857  # Check whether --enable-static was given.
6858if test "${enable_static+set}" = set; then :
6859  enableval=$enable_static; p=${PACKAGE-default}
6860    case $enableval in
6861    yes) enable_static=yes ;;
6862    no) enable_static=no ;;
6863    *)
6864     enable_static=no
6865      # Look at the argument we got.  We use all the common list separators.
6866      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6867      for pkg in $enableval; do
6868	IFS="$lt_save_ifs"
6869	if test "X$pkg" = "X$p"; then
6870	  enable_static=yes
6871	fi
6872      done
6873      IFS="$lt_save_ifs"
6874      ;;
6875    esac
6876else
6877  enable_static=yes
6878fi
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889# Check whether --with-pic was given.
6890if test "${with_pic+set}" = set; then :
6891  withval=$with_pic; pic_mode="$withval"
6892else
6893  pic_mode=default
6894fi
6895
6896
6897test -z "$pic_mode" && pic_mode=default
6898
6899
6900
6901
6902
6903
6904
6905  # Check whether --enable-fast-install was given.
6906if test "${enable_fast_install+set}" = set; then :
6907  enableval=$enable_fast_install; p=${PACKAGE-default}
6908    case $enableval in
6909    yes) enable_fast_install=yes ;;
6910    no) enable_fast_install=no ;;
6911    *)
6912      enable_fast_install=no
6913      # Look at the argument we got.  We use all the common list separators.
6914      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6915      for pkg in $enableval; do
6916	IFS="$lt_save_ifs"
6917	if test "X$pkg" = "X$p"; then
6918	  enable_fast_install=yes
6919	fi
6920      done
6921      IFS="$lt_save_ifs"
6922      ;;
6923    esac
6924else
6925  enable_fast_install=yes
6926fi
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938# This can be used to rebuild libtool when needed
6939LIBTOOL_DEPS="$ltmain"
6940
6941# Always use our own libtool.
6942LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968test -z "$LN_S" && LN_S="ln -s"
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983if test -n "${ZSH_VERSION+set}" ; then
6984   setopt NO_GLOB_SUBST
6985fi
6986
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6988$as_echo_n "checking for objdir... " >&6; }
6989if test "${lt_cv_objdir+set}" = set; then :
6990  $as_echo_n "(cached) " >&6
6991else
6992  rm -f .libs 2>/dev/null
6993mkdir .libs 2>/dev/null
6994if test -d .libs; then
6995  lt_cv_objdir=.libs
6996else
6997  # MS-DOS does not allow filenames that begin with a dot.
6998  lt_cv_objdir=_libs
6999fi
7000rmdir .libs 2>/dev/null
7001fi
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7003$as_echo "$lt_cv_objdir" >&6; }
7004objdir=$lt_cv_objdir
7005
7006
7007
7008
7009
7010cat >>confdefs.h <<_ACEOF
7011#define LT_OBJDIR "$lt_cv_objdir/"
7012_ACEOF
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030case $host_os in
7031aix3*)
7032  # AIX sometimes has problems with the GCC collect2 program.  For some
7033  # reason, if we set the COLLECT_NAMES environment variable, the problems
7034  # vanish in a puff of smoke.
7035  if test "X${COLLECT_NAMES+set}" != Xset; then
7036    COLLECT_NAMES=
7037    export COLLECT_NAMES
7038  fi
7039  ;;
7040esac
7041
7042# Sed substitution that helps us do robust quoting.  It backslashifies
7043# metacharacters that are still active within double-quoted strings.
7044sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7045
7046# Same as above, but do not quote variable references.
7047double_quote_subst='s/\(["`\\]\)/\\\1/g'
7048
7049# Sed substitution to delay expansion of an escaped shell variable in a
7050# double_quote_subst'ed string.
7051delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7052
7053# Sed substitution to delay expansion of an escaped single quote.
7054delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7055
7056# Sed substitution to avoid accidental globbing in evaled expressions
7057no_glob_subst='s/\*/\\\*/g'
7058
7059# Global variables:
7060ofile=libtool
7061can_build_shared=yes
7062
7063# All known linkers require a `.a' archive for static linking (except MSVC,
7064# which needs '.lib').
7065libext=a
7066
7067with_gnu_ld="$lt_cv_prog_gnu_ld"
7068
7069old_CC="$CC"
7070old_CFLAGS="$CFLAGS"
7071
7072# Set sane defaults for various variables
7073test -z "$CC" && CC=cc
7074test -z "$LTCC" && LTCC=$CC
7075test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7076test -z "$LD" && LD=ld
7077test -z "$ac_objext" && ac_objext=o
7078
7079for cc_temp in $compiler""; do
7080  case $cc_temp in
7081    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7082    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7083    \-*) ;;
7084    *) break;;
7085  esac
7086done
7087cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7088
7089
7090# Only perform the check for file, if the check method requires it
7091test -z "$MAGIC_CMD" && MAGIC_CMD=file
7092case $deplibs_check_method in
7093file_magic*)
7094  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7096$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7097if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7098  $as_echo_n "(cached) " >&6
7099else
7100  case $MAGIC_CMD in
7101[\\/*] |  ?:[\\/]*)
7102  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7103  ;;
7104*)
7105  lt_save_MAGIC_CMD="$MAGIC_CMD"
7106  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7107  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7108  for ac_dir in $ac_dummy; do
7109    IFS="$lt_save_ifs"
7110    test -z "$ac_dir" && ac_dir=.
7111    if test -f $ac_dir/${ac_tool_prefix}file; then
7112      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7113      if test -n "$file_magic_test_file"; then
7114	case $deplibs_check_method in
7115	"file_magic "*)
7116	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7117	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7118	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7119	    $EGREP "$file_magic_regex" > /dev/null; then
7120	    :
7121	  else
7122	    cat <<_LT_EOF 1>&2
7123
7124*** Warning: the command libtool uses to detect shared libraries,
7125*** $file_magic_cmd, produces output that libtool cannot recognize.
7126*** The result is that libtool may fail to recognize shared libraries
7127*** as such.  This will affect the creation of libtool libraries that
7128*** depend on shared libraries, but programs linked with such libtool
7129*** libraries will work regardless of this problem.  Nevertheless, you
7130*** may want to report the problem to your system manager and/or to
7131*** bug-libtool@gnu.org
7132
7133_LT_EOF
7134	  fi ;;
7135	esac
7136      fi
7137      break
7138    fi
7139  done
7140  IFS="$lt_save_ifs"
7141  MAGIC_CMD="$lt_save_MAGIC_CMD"
7142  ;;
7143esac
7144fi
7145
7146MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7147if test -n "$MAGIC_CMD"; then
7148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7149$as_echo "$MAGIC_CMD" >&6; }
7150else
7151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152$as_echo "no" >&6; }
7153fi
7154
7155
7156
7157
7158
7159if test -z "$lt_cv_path_MAGIC_CMD"; then
7160  if test -n "$ac_tool_prefix"; then
7161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7162$as_echo_n "checking for file... " >&6; }
7163if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7164  $as_echo_n "(cached) " >&6
7165else
7166  case $MAGIC_CMD in
7167[\\/*] |  ?:[\\/]*)
7168  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7169  ;;
7170*)
7171  lt_save_MAGIC_CMD="$MAGIC_CMD"
7172  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7173  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7174  for ac_dir in $ac_dummy; do
7175    IFS="$lt_save_ifs"
7176    test -z "$ac_dir" && ac_dir=.
7177    if test -f $ac_dir/file; then
7178      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7179      if test -n "$file_magic_test_file"; then
7180	case $deplibs_check_method in
7181	"file_magic "*)
7182	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7183	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7184	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7185	    $EGREP "$file_magic_regex" > /dev/null; then
7186	    :
7187	  else
7188	    cat <<_LT_EOF 1>&2
7189
7190*** Warning: the command libtool uses to detect shared libraries,
7191*** $file_magic_cmd, produces output that libtool cannot recognize.
7192*** The result is that libtool may fail to recognize shared libraries
7193*** as such.  This will affect the creation of libtool libraries that
7194*** depend on shared libraries, but programs linked with such libtool
7195*** libraries will work regardless of this problem.  Nevertheless, you
7196*** may want to report the problem to your system manager and/or to
7197*** bug-libtool@gnu.org
7198
7199_LT_EOF
7200	  fi ;;
7201	esac
7202      fi
7203      break
7204    fi
7205  done
7206  IFS="$lt_save_ifs"
7207  MAGIC_CMD="$lt_save_MAGIC_CMD"
7208  ;;
7209esac
7210fi
7211
7212MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7213if test -n "$MAGIC_CMD"; then
7214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7215$as_echo "$MAGIC_CMD" >&6; }
7216else
7217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218$as_echo "no" >&6; }
7219fi
7220
7221
7222  else
7223    MAGIC_CMD=:
7224  fi
7225fi
7226
7227  fi
7228  ;;
7229esac
7230
7231# Use C for the default configuration in the libtool script
7232
7233lt_save_CC="$CC"
7234ac_ext=c
7235ac_cpp='$CPP $CPPFLAGS'
7236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238ac_compiler_gnu=$ac_cv_c_compiler_gnu
7239
7240
7241# Source file extension for C test sources.
7242ac_ext=c
7243
7244# Object file extension for compiled C test sources.
7245objext=o
7246objext=$objext
7247
7248# Code to be used in simple compile tests
7249lt_simple_compile_test_code="int some_variable = 0;"
7250
7251# Code to be used in simple link tests
7252lt_simple_link_test_code='int main(){return(0);}'
7253
7254
7255
7256
7257
7258
7259
7260# If no C compiler was specified, use CC.
7261LTCC=${LTCC-"$CC"}
7262
7263# If no C compiler flags were specified, use CFLAGS.
7264LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7265
7266# Allow CC to be a program name with arguments.
7267compiler=$CC
7268
7269# Save the default compiler, since it gets overwritten when the other
7270# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7271compiler_DEFAULT=$CC
7272
7273# save warnings/boilerplate of simple test code
7274ac_outfile=conftest.$ac_objext
7275echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7276eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7277_lt_compiler_boilerplate=`cat conftest.err`
7278$RM conftest*
7279
7280ac_outfile=conftest.$ac_objext
7281echo "$lt_simple_link_test_code" >conftest.$ac_ext
7282eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7283_lt_linker_boilerplate=`cat conftest.err`
7284$RM -r conftest*
7285
7286
7287if test -n "$compiler"; then
7288
7289lt_prog_compiler_no_builtin_flag=
7290
7291if test "$GCC" = yes; then
7292  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7293
7294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7295$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7296if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7297  $as_echo_n "(cached) " >&6
7298else
7299  lt_cv_prog_compiler_rtti_exceptions=no
7300   ac_outfile=conftest.$ac_objext
7301   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7302   lt_compiler_flag="-fno-rtti -fno-exceptions"
7303   # Insert the option either (1) after the last *FLAGS variable, or
7304   # (2) before a word containing "conftest.", or (3) at the end.
7305   # Note that $ac_compile itself does not contain backslashes and begins
7306   # with a dollar sign (not a hyphen), so the echo should work correctly.
7307   # The option is referenced via a variable to avoid confusing sed.
7308   lt_compile=`echo "$ac_compile" | $SED \
7309   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7310   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7311   -e 's:$: $lt_compiler_flag:'`
7312   (eval echo "\"\$as_me:7312: $lt_compile\"" >&5)
7313   (eval "$lt_compile" 2>conftest.err)
7314   ac_status=$?
7315   cat conftest.err >&5
7316   echo "$as_me:7316: \$? = $ac_status" >&5
7317   if (exit $ac_status) && test -s "$ac_outfile"; then
7318     # The compiler can only warn and ignore the option if not recognized
7319     # So say no if there are warnings other than the usual output.
7320     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7321     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7322     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7323       lt_cv_prog_compiler_rtti_exceptions=yes
7324     fi
7325   fi
7326   $RM conftest*
7327
7328fi
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7330$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7331
7332if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7333    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7334else
7335    :
7336fi
7337
7338fi
7339
7340
7341
7342
7343
7344
7345  lt_prog_compiler_wl=
7346lt_prog_compiler_pic=
7347lt_prog_compiler_static=
7348
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7350$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7351
7352  if test "$GCC" = yes; then
7353    lt_prog_compiler_wl='-Wl,'
7354    lt_prog_compiler_static='-static'
7355
7356    case $host_os in
7357      aix*)
7358      # All AIX code is PIC.
7359      if test "$host_cpu" = ia64; then
7360	# AIX 5 now supports IA64 processor
7361	lt_prog_compiler_static='-Bstatic'
7362      fi
7363      ;;
7364
7365    amigaos*)
7366      case $host_cpu in
7367      powerpc)
7368            # see comment about AmigaOS4 .so support
7369            lt_prog_compiler_pic='-fPIC'
7370        ;;
7371      m68k)
7372            # FIXME: we need at least 68020 code to build shared libraries, but
7373            # adding the `-m68020' flag to GCC prevents building anything better,
7374            # like `-m68040'.
7375            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7376        ;;
7377      esac
7378      ;;
7379
7380    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7381      # PIC is the default for these OSes.
7382      ;;
7383
7384    mingw* | cygwin* | pw32* | os2* | cegcc*)
7385      # This hack is so that the source file can tell whether it is being
7386      # built for inclusion in a dll (and should export symbols for example).
7387      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7388      # (--disable-auto-import) libraries
7389      lt_prog_compiler_pic='-DDLL_EXPORT'
7390      ;;
7391
7392    darwin* | rhapsody*)
7393      # PIC is the default on this platform
7394      # Common symbols not allowed in MH_DYLIB files
7395      lt_prog_compiler_pic='-fno-common'
7396      ;;
7397
7398    hpux*)
7399      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7400      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7401      # sets the default TLS model and affects inlining.
7402      case $host_cpu in
7403      hppa*64*)
7404	# +Z the default
7405	;;
7406      *)
7407	lt_prog_compiler_pic='-fPIC'
7408	;;
7409      esac
7410      ;;
7411
7412    interix[3-9]*)
7413      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7414      # Instead, we relocate shared libraries at runtime.
7415      ;;
7416
7417    msdosdjgpp*)
7418      # Just because we use GCC doesn't mean we suddenly get shared libraries
7419      # on systems that don't support them.
7420      lt_prog_compiler_can_build_shared=no
7421      enable_shared=no
7422      ;;
7423
7424    *nto* | *qnx*)
7425      # QNX uses GNU C++, but need to define -shared option too, otherwise
7426      # it will coredump.
7427      lt_prog_compiler_pic='-fPIC -shared'
7428      ;;
7429
7430    sysv4*MP*)
7431      if test -d /usr/nec; then
7432	lt_prog_compiler_pic=-Kconform_pic
7433      fi
7434      ;;
7435
7436    *)
7437      lt_prog_compiler_pic='-fPIC'
7438      ;;
7439    esac
7440  else
7441    # PORTME Check for flag to pass linker flags through the system compiler.
7442    case $host_os in
7443    aix*)
7444      lt_prog_compiler_wl='-Wl,'
7445      if test "$host_cpu" = ia64; then
7446	# AIX 5 now supports IA64 processor
7447	lt_prog_compiler_static='-Bstatic'
7448      else
7449	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7450      fi
7451      ;;
7452
7453    mingw* | cygwin* | pw32* | os2* | cegcc*)
7454      # This hack is so that the source file can tell whether it is being
7455      # built for inclusion in a dll (and should export symbols for example).
7456      lt_prog_compiler_pic='-DDLL_EXPORT'
7457      ;;
7458
7459    hpux9* | hpux10* | hpux11*)
7460      lt_prog_compiler_wl='-Wl,'
7461      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7462      # not for PA HP-UX.
7463      case $host_cpu in
7464      hppa*64*|ia64*)
7465	# +Z the default
7466	;;
7467      *)
7468	lt_prog_compiler_pic='+Z'
7469	;;
7470      esac
7471      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7472      lt_prog_compiler_static='${wl}-a ${wl}archive'
7473      ;;
7474
7475    irix5* | irix6* | nonstopux*)
7476      lt_prog_compiler_wl='-Wl,'
7477      # PIC (with -KPIC) is the default.
7478      lt_prog_compiler_static='-non_shared'
7479      ;;
7480
7481    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7482      case $cc_basename in
7483      # old Intel for x86_64 which still supported -KPIC.
7484      ecc*)
7485	lt_prog_compiler_wl='-Wl,'
7486	lt_prog_compiler_pic='-KPIC'
7487	lt_prog_compiler_static='-static'
7488        ;;
7489      # icc used to be incompatible with GCC.
7490      # ICC 10 doesn't accept -KPIC any more.
7491      icc* | ifort*)
7492	lt_prog_compiler_wl='-Wl,'
7493	lt_prog_compiler_pic='-fPIC'
7494	lt_prog_compiler_static='-static'
7495        ;;
7496      # Lahey Fortran 8.1.
7497      lf95*)
7498	lt_prog_compiler_wl='-Wl,'
7499	lt_prog_compiler_pic='--shared'
7500	lt_prog_compiler_static='--static'
7501	;;
7502      pgcc* | pgf77* | pgf90* | pgf95*)
7503        # Portland Group compilers (*not* the Pentium gcc compiler,
7504	# which looks to be a dead project)
7505	lt_prog_compiler_wl='-Wl,'
7506	lt_prog_compiler_pic='-fpic'
7507	lt_prog_compiler_static='-Bstatic'
7508        ;;
7509      ccc*)
7510        lt_prog_compiler_wl='-Wl,'
7511        # All Alpha code is PIC.
7512        lt_prog_compiler_static='-non_shared'
7513        ;;
7514      xl*)
7515	# IBM XL C 8.0/Fortran 10.1 on PPC
7516	lt_prog_compiler_wl='-Wl,'
7517	lt_prog_compiler_pic='-qpic'
7518	lt_prog_compiler_static='-qstaticlink'
7519	;;
7520      *)
7521	case `$CC -V 2>&1 | sed 5q` in
7522	*Sun\ C*)
7523	  # Sun C 5.9
7524	  lt_prog_compiler_pic='-KPIC'
7525	  lt_prog_compiler_static='-Bstatic'
7526	  lt_prog_compiler_wl='-Wl,'
7527	  ;;
7528	*Sun\ F*)
7529	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7530	  lt_prog_compiler_pic='-KPIC'
7531	  lt_prog_compiler_static='-Bstatic'
7532	  lt_prog_compiler_wl=''
7533	  ;;
7534	esac
7535	;;
7536      esac
7537      ;;
7538
7539    newsos6)
7540      lt_prog_compiler_pic='-KPIC'
7541      lt_prog_compiler_static='-Bstatic'
7542      ;;
7543
7544    *nto* | *qnx*)
7545      # QNX uses GNU C++, but need to define -shared option too, otherwise
7546      # it will coredump.
7547      lt_prog_compiler_pic='-fPIC -shared'
7548      ;;
7549
7550    osf3* | osf4* | osf5*)
7551      lt_prog_compiler_wl='-Wl,'
7552      # All OSF/1 code is PIC.
7553      lt_prog_compiler_static='-non_shared'
7554      ;;
7555
7556    rdos*)
7557      lt_prog_compiler_static='-non_shared'
7558      ;;
7559
7560    solaris*)
7561      lt_prog_compiler_pic='-KPIC'
7562      lt_prog_compiler_static='-Bstatic'
7563      case $cc_basename in
7564      f77* | f90* | f95*)
7565	lt_prog_compiler_wl='-Qoption ld ';;
7566      *)
7567	lt_prog_compiler_wl='-Wl,';;
7568      esac
7569      ;;
7570
7571    sunos4*)
7572      lt_prog_compiler_wl='-Qoption ld '
7573      lt_prog_compiler_pic='-PIC'
7574      lt_prog_compiler_static='-Bstatic'
7575      ;;
7576
7577    sysv4 | sysv4.2uw2* | sysv4.3*)
7578      lt_prog_compiler_wl='-Wl,'
7579      lt_prog_compiler_pic='-KPIC'
7580      lt_prog_compiler_static='-Bstatic'
7581      ;;
7582
7583    sysv4*MP*)
7584      if test -d /usr/nec ;then
7585	lt_prog_compiler_pic='-Kconform_pic'
7586	lt_prog_compiler_static='-Bstatic'
7587      fi
7588      ;;
7589
7590    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7591      lt_prog_compiler_wl='-Wl,'
7592      lt_prog_compiler_pic='-KPIC'
7593      lt_prog_compiler_static='-Bstatic'
7594      ;;
7595
7596    unicos*)
7597      lt_prog_compiler_wl='-Wl,'
7598      lt_prog_compiler_can_build_shared=no
7599      ;;
7600
7601    uts4*)
7602      lt_prog_compiler_pic='-pic'
7603      lt_prog_compiler_static='-Bstatic'
7604      ;;
7605
7606    *)
7607      lt_prog_compiler_can_build_shared=no
7608      ;;
7609    esac
7610  fi
7611
7612case $host_os in
7613  # For platforms which do not support PIC, -DPIC is meaningless:
7614  *djgpp*)
7615    lt_prog_compiler_pic=
7616    ;;
7617  *)
7618    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7619    ;;
7620esac
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7622$as_echo "$lt_prog_compiler_pic" >&6; }
7623
7624
7625
7626
7627
7628
7629#
7630# Check to make sure the PIC flag actually works.
7631#
7632if test -n "$lt_prog_compiler_pic"; then
7633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7634$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7635if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  lt_cv_prog_compiler_pic_works=no
7639   ac_outfile=conftest.$ac_objext
7640   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7641   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7642   # Insert the option either (1) after the last *FLAGS variable, or
7643   # (2) before a word containing "conftest.", or (3) at the end.
7644   # Note that $ac_compile itself does not contain backslashes and begins
7645   # with a dollar sign (not a hyphen), so the echo should work correctly.
7646   # The option is referenced via a variable to avoid confusing sed.
7647   lt_compile=`echo "$ac_compile" | $SED \
7648   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7649   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7650   -e 's:$: $lt_compiler_flag:'`
7651   (eval echo "\"\$as_me:7651: $lt_compile\"" >&5)
7652   (eval "$lt_compile" 2>conftest.err)
7653   ac_status=$?
7654   cat conftest.err >&5
7655   echo "$as_me:7655: \$? = $ac_status" >&5
7656   if (exit $ac_status) && test -s "$ac_outfile"; then
7657     # The compiler can only warn and ignore the option if not recognized
7658     # So say no if there are warnings other than the usual output.
7659     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7660     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7661     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7662       lt_cv_prog_compiler_pic_works=yes
7663     fi
7664   fi
7665   $RM conftest*
7666
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7669$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7670
7671if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7672    case $lt_prog_compiler_pic in
7673     "" | " "*) ;;
7674     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7675     esac
7676else
7677    lt_prog_compiler_pic=
7678     lt_prog_compiler_can_build_shared=no
7679fi
7680
7681fi
7682
7683
7684
7685
7686
7687
7688#
7689# Check to make sure the static flag actually works.
7690#
7691wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7693$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7694if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  lt_cv_prog_compiler_static_works=no
7698   save_LDFLAGS="$LDFLAGS"
7699   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7700   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7701   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7702     # The linker can only warn and ignore the option if not recognized
7703     # So say no if there are warnings
7704     if test -s conftest.err; then
7705       # Append any errors to the config.log.
7706       cat conftest.err 1>&5
7707       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7708       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7709       if diff conftest.exp conftest.er2 >/dev/null; then
7710         lt_cv_prog_compiler_static_works=yes
7711       fi
7712     else
7713       lt_cv_prog_compiler_static_works=yes
7714     fi
7715   fi
7716   $RM -r conftest*
7717   LDFLAGS="$save_LDFLAGS"
7718
7719fi
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7721$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7722
7723if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7724    :
7725else
7726    lt_prog_compiler_static=
7727fi
7728
7729
7730
7731
7732
7733
7734
7735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7736$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7737if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7738  $as_echo_n "(cached) " >&6
7739else
7740  lt_cv_prog_compiler_c_o=no
7741   $RM -r conftest 2>/dev/null
7742   mkdir conftest
7743   cd conftest
7744   mkdir out
7745   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7746
7747   lt_compiler_flag="-o out/conftest2.$ac_objext"
7748   # Insert the option either (1) after the last *FLAGS variable, or
7749   # (2) before a word containing "conftest.", or (3) at the end.
7750   # Note that $ac_compile itself does not contain backslashes and begins
7751   # with a dollar sign (not a hyphen), so the echo should work correctly.
7752   lt_compile=`echo "$ac_compile" | $SED \
7753   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7754   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7755   -e 's:$: $lt_compiler_flag:'`
7756   (eval echo "\"\$as_me:7756: $lt_compile\"" >&5)
7757   (eval "$lt_compile" 2>out/conftest.err)
7758   ac_status=$?
7759   cat out/conftest.err >&5
7760   echo "$as_me:7760: \$? = $ac_status" >&5
7761   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7762   then
7763     # The compiler can only warn and ignore the option if not recognized
7764     # So say no if there are warnings
7765     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7766     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7767     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7768       lt_cv_prog_compiler_c_o=yes
7769     fi
7770   fi
7771   chmod u+w . 2>&5
7772   $RM conftest*
7773   # SGI C++ compiler will create directory out/ii_files/ for
7774   # template instantiation
7775   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7776   $RM out/* && rmdir out
7777   cd ..
7778   $RM -r conftest
7779   $RM conftest*
7780
7781fi
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7783$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7784
7785
7786
7787
7788
7789
7790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7791$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7792if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  lt_cv_prog_compiler_c_o=no
7796   $RM -r conftest 2>/dev/null
7797   mkdir conftest
7798   cd conftest
7799   mkdir out
7800   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7801
7802   lt_compiler_flag="-o out/conftest2.$ac_objext"
7803   # Insert the option either (1) after the last *FLAGS variable, or
7804   # (2) before a word containing "conftest.", or (3) at the end.
7805   # Note that $ac_compile itself does not contain backslashes and begins
7806   # with a dollar sign (not a hyphen), so the echo should work correctly.
7807   lt_compile=`echo "$ac_compile" | $SED \
7808   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7809   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7810   -e 's:$: $lt_compiler_flag:'`
7811   (eval echo "\"\$as_me:7811: $lt_compile\"" >&5)
7812   (eval "$lt_compile" 2>out/conftest.err)
7813   ac_status=$?
7814   cat out/conftest.err >&5
7815   echo "$as_me:7815: \$? = $ac_status" >&5
7816   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7817   then
7818     # The compiler can only warn and ignore the option if not recognized
7819     # So say no if there are warnings
7820     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7821     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7822     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7823       lt_cv_prog_compiler_c_o=yes
7824     fi
7825   fi
7826   chmod u+w . 2>&5
7827   $RM conftest*
7828   # SGI C++ compiler will create directory out/ii_files/ for
7829   # template instantiation
7830   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7831   $RM out/* && rmdir out
7832   cd ..
7833   $RM -r conftest
7834   $RM conftest*
7835
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7838$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7839
7840
7841
7842
7843hard_links="nottested"
7844if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7845  # do not overwrite the value of need_locks provided by the user
7846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7847$as_echo_n "checking if we can lock with hard links... " >&6; }
7848  hard_links=yes
7849  $RM conftest*
7850  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7851  touch conftest.a
7852  ln conftest.a conftest.b 2>&5 || hard_links=no
7853  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7855$as_echo "$hard_links" >&6; }
7856  if test "$hard_links" = no; then
7857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7858$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7859    need_locks=warn
7860  fi
7861else
7862  need_locks=no
7863fi
7864
7865
7866
7867
7868
7869
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7871$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7872
7873  runpath_var=
7874  allow_undefined_flag=
7875  always_export_symbols=no
7876  archive_cmds=
7877  archive_expsym_cmds=
7878  compiler_needs_object=no
7879  enable_shared_with_static_runtimes=no
7880  export_dynamic_flag_spec=
7881  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7882  hardcode_automatic=no
7883  hardcode_direct=no
7884  hardcode_direct_absolute=no
7885  hardcode_libdir_flag_spec=
7886  hardcode_libdir_flag_spec_ld=
7887  hardcode_libdir_separator=
7888  hardcode_minus_L=no
7889  hardcode_shlibpath_var=unsupported
7890  inherit_rpath=no
7891  link_all_deplibs=unknown
7892  module_cmds=
7893  module_expsym_cmds=
7894  old_archive_from_new_cmds=
7895  old_archive_from_expsyms_cmds=
7896  thread_safe_flag_spec=
7897  whole_archive_flag_spec=
7898  # include_expsyms should be a list of space-separated symbols to be *always*
7899  # included in the symbol list
7900  include_expsyms=
7901  # exclude_expsyms can be an extended regexp of symbols to exclude
7902  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7903  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7904  # as well as any symbol that contains `d'.
7905  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7906  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7907  # platforms (ab)use it in PIC code, but their linkers get confused if
7908  # the symbol is explicitly referenced.  Since portable code cannot
7909  # rely on this symbol name, it's probably fine to never include it in
7910  # preloaded symbol tables.
7911  # Exclude shared library initialization/finalization symbols.
7912  extract_expsyms_cmds=
7913
7914  case $host_os in
7915  cygwin* | mingw* | pw32* | cegcc*)
7916    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7917    # When not using gcc, we currently assume that we are using
7918    # Microsoft Visual C++.
7919    if test "$GCC" != yes; then
7920      with_gnu_ld=no
7921    fi
7922    ;;
7923  interix*)
7924    # we just hope/assume this is gcc and not c89 (= MSVC++)
7925    with_gnu_ld=yes
7926    ;;
7927  openbsd*)
7928    with_gnu_ld=no
7929    ;;
7930  linux* | k*bsd*-gnu)
7931    link_all_deplibs=no
7932    ;;
7933  esac
7934
7935  ld_shlibs=yes
7936  if test "$with_gnu_ld" = yes; then
7937    # If archive_cmds runs LD, not CC, wlarc should be empty
7938    wlarc='${wl}'
7939
7940    # Set some defaults for GNU ld with shared library support. These
7941    # are reset later if shared libraries are not supported. Putting them
7942    # here allows them to be overridden if necessary.
7943    runpath_var=LD_RUN_PATH
7944    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7945    export_dynamic_flag_spec='${wl}--export-dynamic'
7946    # ancient GNU ld didn't support --whole-archive et. al.
7947    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7948      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7949    else
7950      whole_archive_flag_spec=
7951    fi
7952    supports_anon_versioning=no
7953    case `$LD -v 2>&1` in
7954      *GNU\ gold*) supports_anon_versioning=yes ;;
7955      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7956      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7957      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7958      *\ 2.11.*) ;; # other 2.11 versions
7959      *) supports_anon_versioning=yes ;;
7960    esac
7961
7962    # See if GNU ld supports shared libraries.
7963    case $host_os in
7964    aix[3-9]*)
7965      # On AIX/PPC, the GNU linker is very broken
7966      if test "$host_cpu" != ia64; then
7967	ld_shlibs=no
7968	cat <<_LT_EOF 1>&2
7969
7970*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7971*** to be unable to reliably create shared libraries on AIX.
7972*** Therefore, libtool is disabling shared libraries support.  If you
7973*** really care for shared libraries, you may want to modify your PATH
7974*** so that a non-GNU linker is found, and then restart.
7975
7976_LT_EOF
7977      fi
7978      ;;
7979
7980    amigaos*)
7981      case $host_cpu in
7982      powerpc)
7983            # see comment about AmigaOS4 .so support
7984            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7985            archive_expsym_cmds=''
7986        ;;
7987      m68k)
7988            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)'
7989            hardcode_libdir_flag_spec='-L$libdir'
7990            hardcode_minus_L=yes
7991        ;;
7992      esac
7993      ;;
7994
7995    beos*)
7996      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7997	allow_undefined_flag=unsupported
7998	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7999	# support --undefined.  This deserves some investigation.  FIXME
8000	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8001      else
8002	ld_shlibs=no
8003      fi
8004      ;;
8005
8006    cygwin* | mingw* | pw32* | cegcc*)
8007      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8008      # as there is no search path for DLLs.
8009      hardcode_libdir_flag_spec='-L$libdir'
8010      allow_undefined_flag=unsupported
8011      always_export_symbols=no
8012      enable_shared_with_static_runtimes=yes
8013      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8014
8015      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8016        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8017	# If the export-symbols file already is a .def file (1st line
8018	# is EXPORTS), use it as is; otherwise, prepend...
8019	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8020	  cp $export_symbols $output_objdir/$soname.def;
8021	else
8022	  echo EXPORTS > $output_objdir/$soname.def;
8023	  cat $export_symbols >> $output_objdir/$soname.def;
8024	fi~
8025	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8026      else
8027	ld_shlibs=no
8028      fi
8029      ;;
8030
8031    interix[3-9]*)
8032      hardcode_direct=no
8033      hardcode_shlibpath_var=no
8034      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8035      export_dynamic_flag_spec='${wl}-E'
8036      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8037      # Instead, shared libraries are loaded at an image base (0x10000000 by
8038      # default) and relocated if they conflict, which is a slow very memory
8039      # consuming and fragmenting process.  To avoid this, we pick a random,
8040      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8041      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8042      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8043      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'
8044      ;;
8045
8046    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8047      tmp_diet=no
8048      if test "$host_os" = linux-dietlibc; then
8049	case $cc_basename in
8050	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8051	esac
8052      fi
8053      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8054	 && test "$tmp_diet" = no
8055      then
8056	tmp_addflag=
8057	tmp_sharedflag='-shared'
8058	case $cc_basename,$host_cpu in
8059        pgcc*)				# Portland Group C compiler
8060	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8061	  tmp_addflag=' $pic_flag'
8062	  ;;
8063	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8064	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8065	  tmp_addflag=' $pic_flag -Mnomain' ;;
8066	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8067	  tmp_addflag=' -i_dynamic' ;;
8068	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8069	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8070	ifc* | ifort*)			# Intel Fortran compiler
8071	  tmp_addflag=' -nofor_main' ;;
8072	lf95*)				# Lahey Fortran 8.1
8073	  whole_archive_flag_spec=
8074	  tmp_sharedflag='--shared' ;;
8075	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8076	  tmp_sharedflag='-qmkshrobj'
8077	  tmp_addflag= ;;
8078	esac
8079	case `$CC -V 2>&1 | sed 5q` in
8080	*Sun\ C*)			# Sun C 5.9
8081	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8082	  compiler_needs_object=yes
8083	  tmp_sharedflag='-G' ;;
8084	*Sun\ F*)			# Sun Fortran 8.3
8085	  tmp_sharedflag='-G' ;;
8086	esac
8087	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8088
8089        if test "x$supports_anon_versioning" = xyes; then
8090          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8091	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8092	    echo "local: *; };" >> $output_objdir/$libname.ver~
8093	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8094        fi
8095
8096	case $cc_basename in
8097	xlf*)
8098	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8099	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8100	  hardcode_libdir_flag_spec=
8101	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8102	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8103	  if test "x$supports_anon_versioning" = xyes; then
8104	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8105	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8106	      echo "local: *; };" >> $output_objdir/$libname.ver~
8107	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8108	  fi
8109	  ;;
8110	esac
8111      else
8112        ld_shlibs=no
8113      fi
8114      ;;
8115
8116    netbsd* | netbsdelf*-gnu)
8117      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8118	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8119	wlarc=
8120      else
8121	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8122	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8123      fi
8124      ;;
8125
8126    solaris*)
8127      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8128	ld_shlibs=no
8129	cat <<_LT_EOF 1>&2
8130
8131*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8132*** create shared libraries on Solaris systems.  Therefore, libtool
8133*** is disabling shared libraries support.  We urge you to upgrade GNU
8134*** binutils to release 2.9.1 or newer.  Another option is to modify
8135*** your PATH or compiler configuration so that the native linker is
8136*** used, and then restart.
8137
8138_LT_EOF
8139      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8140	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8141	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8142      else
8143	ld_shlibs=no
8144      fi
8145      ;;
8146
8147    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8148      case `$LD -v 2>&1` in
8149        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8150	ld_shlibs=no
8151	cat <<_LT_EOF 1>&2
8152
8153*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8154*** reliably create shared libraries on SCO systems.  Therefore, libtool
8155*** is disabling shared libraries support.  We urge you to upgrade GNU
8156*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8157*** your PATH or compiler configuration so that the native linker is
8158*** used, and then restart.
8159
8160_LT_EOF
8161	;;
8162	*)
8163	  # For security reasons, it is highly recommended that you always
8164	  # use absolute paths for naming shared libraries, and exclude the
8165	  # DT_RUNPATH tag from executables and libraries.  But doing so
8166	  # requires that you compile everything twice, which is a pain.
8167	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8168	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8169	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8170	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8171	  else
8172	    ld_shlibs=no
8173	  fi
8174	;;
8175      esac
8176      ;;
8177
8178    sunos4*)
8179      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8180      wlarc=
8181      hardcode_direct=yes
8182      hardcode_shlibpath_var=no
8183      ;;
8184
8185    *)
8186      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8187	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8189      else
8190	ld_shlibs=no
8191      fi
8192      ;;
8193    esac
8194
8195    if test "$ld_shlibs" = no; then
8196      runpath_var=
8197      hardcode_libdir_flag_spec=
8198      export_dynamic_flag_spec=
8199      whole_archive_flag_spec=
8200    fi
8201  else
8202    # PORTME fill in a description of your system's linker (not GNU ld)
8203    case $host_os in
8204    aix3*)
8205      allow_undefined_flag=unsupported
8206      always_export_symbols=yes
8207      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'
8208      # Note: this linker hardcodes the directories in LIBPATH if there
8209      # are no directories specified by -L.
8210      hardcode_minus_L=yes
8211      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8212	# Neither direct hardcoding nor static linking is supported with a
8213	# broken collect2.
8214	hardcode_direct=unsupported
8215      fi
8216      ;;
8217
8218    aix[4-9]*)
8219      if test "$host_cpu" = ia64; then
8220	# On IA64, the linker does run time linking by default, so we don't
8221	# have to do anything special.
8222	aix_use_runtimelinking=no
8223	exp_sym_flag='-Bexport'
8224	no_entry_flag=""
8225      else
8226	# If we're using GNU nm, then we don't want the "-C" option.
8227	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8228	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8229	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8230	else
8231	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8232	fi
8233	aix_use_runtimelinking=no
8234
8235	# Test if we are trying to use run time linking or normal
8236	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8237	# need to do runtime linking.
8238	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8239	  for ld_flag in $LDFLAGS; do
8240	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8241	    aix_use_runtimelinking=yes
8242	    break
8243	  fi
8244	  done
8245	  ;;
8246	esac
8247
8248	exp_sym_flag='-bexport'
8249	no_entry_flag='-bnoentry'
8250      fi
8251
8252      # When large executables or shared objects are built, AIX ld can
8253      # have problems creating the table of contents.  If linking a library
8254      # or program results in "error TOC overflow" add -mminimal-toc to
8255      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8256      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8257
8258      archive_cmds=''
8259      hardcode_direct=yes
8260      hardcode_direct_absolute=yes
8261      hardcode_libdir_separator=':'
8262      link_all_deplibs=yes
8263      file_list_spec='${wl}-f,'
8264
8265      if test "$GCC" = yes; then
8266	case $host_os in aix4.[012]|aix4.[012].*)
8267	# We only want to do this on AIX 4.2 and lower, the check
8268	# below for broken collect2 doesn't work under 4.3+
8269	  collect2name=`${CC} -print-prog-name=collect2`
8270	  if test -f "$collect2name" &&
8271	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8272	  then
8273	  # We have reworked collect2
8274	  :
8275	  else
8276	  # We have old collect2
8277	  hardcode_direct=unsupported
8278	  # It fails to find uninstalled libraries when the uninstalled
8279	  # path is not listed in the libpath.  Setting hardcode_minus_L
8280	  # to unsupported forces relinking
8281	  hardcode_minus_L=yes
8282	  hardcode_libdir_flag_spec='-L$libdir'
8283	  hardcode_libdir_separator=
8284	  fi
8285	  ;;
8286	esac
8287	shared_flag='-shared'
8288	if test "$aix_use_runtimelinking" = yes; then
8289	  shared_flag="$shared_flag "'${wl}-G'
8290	fi
8291	link_all_deplibs=no
8292      else
8293	# not using gcc
8294	if test "$host_cpu" = ia64; then
8295	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8296	# chokes on -Wl,-G. The following line is correct:
8297	  shared_flag='-G'
8298	else
8299	  if test "$aix_use_runtimelinking" = yes; then
8300	    shared_flag='${wl}-G'
8301	  else
8302	    shared_flag='${wl}-bM:SRE'
8303	  fi
8304	fi
8305      fi
8306
8307      export_dynamic_flag_spec='${wl}-bexpall'
8308      # It seems that -bexpall does not export symbols beginning with
8309      # underscore (_), so it is better to generate a list of symbols to export.
8310      always_export_symbols=yes
8311      if test "$aix_use_runtimelinking" = yes; then
8312	# Warning - without using the other runtime loading flags (-brtl),
8313	# -berok will link without error, but may produce a broken library.
8314	allow_undefined_flag='-berok'
8315        # Determine the default libpath from the value encoded in an
8316        # empty executable.
8317        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h.  */
8319
8320int
8321main ()
8322{
8323
8324  ;
8325  return 0;
8326}
8327_ACEOF
8328if ac_fn_c_try_link "$LINENO"; then :
8329
8330lt_aix_libpath_sed='
8331    /Import File Strings/,/^$/ {
8332	/^0/ {
8333	    s/^0  *\(.*\)$/\1/
8334	    p
8335	}
8336    }'
8337aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8338# Check for a 64-bit object if we didn't find anything.
8339if test -z "$aix_libpath"; then
8340  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8341fi
8342fi
8343rm -f core conftest.err conftest.$ac_objext \
8344    conftest$ac_exeext conftest.$ac_ext
8345if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8346
8347        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8348        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8349      else
8350	if test "$host_cpu" = ia64; then
8351	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8352	  allow_undefined_flag="-z nodefs"
8353	  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"
8354	else
8355	 # Determine the default libpath from the value encoded in an
8356	 # empty executable.
8357	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h.  */
8359
8360int
8361main ()
8362{
8363
8364  ;
8365  return 0;
8366}
8367_ACEOF
8368if ac_fn_c_try_link "$LINENO"; then :
8369
8370lt_aix_libpath_sed='
8371    /Import File Strings/,/^$/ {
8372	/^0/ {
8373	    s/^0  *\(.*\)$/\1/
8374	    p
8375	}
8376    }'
8377aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8378# Check for a 64-bit object if we didn't find anything.
8379if test -z "$aix_libpath"; then
8380  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8381fi
8382fi
8383rm -f core conftest.err conftest.$ac_objext \
8384    conftest$ac_exeext conftest.$ac_ext
8385if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8386
8387	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8388	  # Warning - without using the other run time loading flags,
8389	  # -berok will link without error, but may produce a broken library.
8390	  no_undefined_flag=' ${wl}-bernotok'
8391	  allow_undefined_flag=' ${wl}-berok'
8392	  # Exported symbols can be pulled into shared objects from archives
8393	  whole_archive_flag_spec='$convenience'
8394	  archive_cmds_need_lc=yes
8395	  # This is similar to how AIX traditionally builds its shared libraries.
8396	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8397	fi
8398      fi
8399      ;;
8400
8401    amigaos*)
8402      case $host_cpu in
8403      powerpc)
8404            # see comment about AmigaOS4 .so support
8405            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8406            archive_expsym_cmds=''
8407        ;;
8408      m68k)
8409            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)'
8410            hardcode_libdir_flag_spec='-L$libdir'
8411            hardcode_minus_L=yes
8412        ;;
8413      esac
8414      ;;
8415
8416    bsdi[45]*)
8417      export_dynamic_flag_spec=-rdynamic
8418      ;;
8419
8420    cygwin* | mingw* | pw32* | cegcc*)
8421      # When not using gcc, we currently assume that we are using
8422      # Microsoft Visual C++.
8423      # hardcode_libdir_flag_spec is actually meaningless, as there is
8424      # no search path for DLLs.
8425      hardcode_libdir_flag_spec=' '
8426      allow_undefined_flag=unsupported
8427      # Tell ltmain to make .lib files, not .a files.
8428      libext=lib
8429      # Tell ltmain to make .dll files, not .so files.
8430      shrext_cmds=".dll"
8431      # FIXME: Setting linknames here is a bad hack.
8432      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8433      # The linker will automatically build a .lib file if we build a DLL.
8434      old_archive_from_new_cmds='true'
8435      # FIXME: Should let the user specify the lib program.
8436      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8437      fix_srcfile_path='`cygpath -w "$srcfile"`'
8438      enable_shared_with_static_runtimes=yes
8439      ;;
8440
8441    darwin* | rhapsody*)
8442
8443
8444  archive_cmds_need_lc=no
8445  hardcode_direct=no
8446  hardcode_automatic=yes
8447  hardcode_shlibpath_var=unsupported
8448  whole_archive_flag_spec=''
8449  link_all_deplibs=yes
8450  allow_undefined_flag="$_lt_dar_allow_undefined"
8451  case $cc_basename in
8452     ifort*) _lt_dar_can_shared=yes ;;
8453     *) _lt_dar_can_shared=$GCC ;;
8454  esac
8455  if test "$_lt_dar_can_shared" = "yes"; then
8456    output_verbose_link_cmd=echo
8457    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8458    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8459    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}"
8460    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}"
8461
8462  else
8463  ld_shlibs=no
8464  fi
8465
8466      ;;
8467
8468    dgux*)
8469      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8470      hardcode_libdir_flag_spec='-L$libdir'
8471      hardcode_shlibpath_var=no
8472      ;;
8473
8474    freebsd1*)
8475      ld_shlibs=no
8476      ;;
8477
8478    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8479    # support.  Future versions do this automatically, but an explicit c++rt0.o
8480    # does not break anything, and helps significantly (at the cost of a little
8481    # extra space).
8482    freebsd2.2*)
8483      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8484      hardcode_libdir_flag_spec='-R$libdir'
8485      hardcode_direct=yes
8486      hardcode_shlibpath_var=no
8487      ;;
8488
8489    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8490    freebsd2*)
8491      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8492      hardcode_direct=yes
8493      hardcode_minus_L=yes
8494      hardcode_shlibpath_var=no
8495      ;;
8496
8497    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8498    freebsd* | dragonfly*)
8499      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8500      hardcode_libdir_flag_spec='-R$libdir'
8501      hardcode_direct=yes
8502      hardcode_shlibpath_var=no
8503      ;;
8504
8505    hpux9*)
8506      if test "$GCC" = yes; then
8507	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8508      else
8509	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8510      fi
8511      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8512      hardcode_libdir_separator=:
8513      hardcode_direct=yes
8514
8515      # hardcode_minus_L: Not really in the search PATH,
8516      # but as the default location of the library.
8517      hardcode_minus_L=yes
8518      export_dynamic_flag_spec='${wl}-E'
8519      ;;
8520
8521    hpux10*)
8522      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8523	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8524      else
8525	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8526      fi
8527      if test "$with_gnu_ld" = no; then
8528	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8529	hardcode_libdir_flag_spec_ld='+b $libdir'
8530	hardcode_libdir_separator=:
8531	hardcode_direct=yes
8532	hardcode_direct_absolute=yes
8533	export_dynamic_flag_spec='${wl}-E'
8534	# hardcode_minus_L: Not really in the search PATH,
8535	# but as the default location of the library.
8536	hardcode_minus_L=yes
8537      fi
8538      ;;
8539
8540    hpux11*)
8541      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8542	case $host_cpu in
8543	hppa*64*)
8544	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8545	  ;;
8546	ia64*)
8547	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8548	  ;;
8549	*)
8550	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8551	  ;;
8552	esac
8553      else
8554	case $host_cpu in
8555	hppa*64*)
8556	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8557	  ;;
8558	ia64*)
8559	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8560	  ;;
8561	*)
8562	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8563	  ;;
8564	esac
8565      fi
8566      if test "$with_gnu_ld" = no; then
8567	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8568	hardcode_libdir_separator=:
8569
8570	case $host_cpu in
8571	hppa*64*|ia64*)
8572	  hardcode_direct=no
8573	  hardcode_shlibpath_var=no
8574	  ;;
8575	*)
8576	  hardcode_direct=yes
8577	  hardcode_direct_absolute=yes
8578	  export_dynamic_flag_spec='${wl}-E'
8579
8580	  # hardcode_minus_L: Not really in the search PATH,
8581	  # but as the default location of the library.
8582	  hardcode_minus_L=yes
8583	  ;;
8584	esac
8585      fi
8586      ;;
8587
8588    irix5* | irix6* | nonstopux*)
8589      if test "$GCC" = yes; then
8590	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8591	# Try to use the -exported_symbol ld option, if it does not
8592	# work, assume that -exports_file does not work either and
8593	# implicitly export all symbols.
8594        save_LDFLAGS="$LDFLAGS"
8595        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8596        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597/* end confdefs.h.  */
8598int foo(void) {}
8599_ACEOF
8600if ac_fn_c_try_link "$LINENO"; then :
8601  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8602
8603fi
8604rm -f core conftest.err conftest.$ac_objext \
8605    conftest$ac_exeext conftest.$ac_ext
8606        LDFLAGS="$save_LDFLAGS"
8607      else
8608	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8609	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8610      fi
8611      archive_cmds_need_lc='no'
8612      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8613      hardcode_libdir_separator=:
8614      inherit_rpath=yes
8615      link_all_deplibs=yes
8616      ;;
8617
8618    netbsd* | netbsdelf*-gnu)
8619      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8620	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8621      else
8622	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8623      fi
8624      hardcode_libdir_flag_spec='-R$libdir'
8625      hardcode_direct=yes
8626      hardcode_shlibpath_var=no
8627      ;;
8628
8629    newsos6)
8630      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8631      hardcode_direct=yes
8632      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8633      hardcode_libdir_separator=:
8634      hardcode_shlibpath_var=no
8635      ;;
8636
8637    *nto* | *qnx*)
8638      ;;
8639
8640    openbsd*)
8641      if test -f /usr/libexec/ld.so; then
8642	hardcode_direct=yes
8643	hardcode_shlibpath_var=no
8644	hardcode_direct_absolute=yes
8645	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8646	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8647	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8648	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8649	  export_dynamic_flag_spec='${wl}-E'
8650	else
8651	  case $host_os in
8652	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8653	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8654	     hardcode_libdir_flag_spec='-R$libdir'
8655	     ;;
8656	   *)
8657	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8658	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8659	     ;;
8660	  esac
8661	fi
8662      else
8663	ld_shlibs=no
8664      fi
8665      ;;
8666
8667    os2*)
8668      hardcode_libdir_flag_spec='-L$libdir'
8669      hardcode_minus_L=yes
8670      allow_undefined_flag=unsupported
8671      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8672      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8673      ;;
8674
8675    osf3*)
8676      if test "$GCC" = yes; then
8677	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8678	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8679      else
8680	allow_undefined_flag=' -expect_unresolved \*'
8681	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8682      fi
8683      archive_cmds_need_lc='no'
8684      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685      hardcode_libdir_separator=:
8686      ;;
8687
8688    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8689      if test "$GCC" = yes; then
8690	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8691	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8692	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8693      else
8694	allow_undefined_flag=' -expect_unresolved \*'
8695	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8696	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~
8697	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8698
8699	# Both c and cxx compiler support -rpath directly
8700	hardcode_libdir_flag_spec='-rpath $libdir'
8701      fi
8702      archive_cmds_need_lc='no'
8703      hardcode_libdir_separator=:
8704      ;;
8705
8706    solaris*)
8707      no_undefined_flag=' -z defs'
8708      if test "$GCC" = yes; then
8709	wlarc='${wl}'
8710	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8711	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8712	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8713      else
8714	case `$CC -V 2>&1` in
8715	*"Compilers 5.0"*)
8716	  wlarc=''
8717	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8719	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8720	  ;;
8721	*)
8722	  wlarc='${wl}'
8723	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8724	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8725	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8726	  ;;
8727	esac
8728      fi
8729      hardcode_libdir_flag_spec='-R$libdir'
8730      hardcode_shlibpath_var=no
8731      case $host_os in
8732      solaris2.[0-5] | solaris2.[0-5].*) ;;
8733      *)
8734	# The compiler driver will combine and reorder linker options,
8735	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8736	# but is careful enough not to reorder.
8737	# Supported since Solaris 2.6 (maybe 2.5.1?)
8738	if test "$GCC" = yes; then
8739	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8740	else
8741	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8742	fi
8743	;;
8744      esac
8745      link_all_deplibs=yes
8746      ;;
8747
8748    sunos4*)
8749      if test "x$host_vendor" = xsequent; then
8750	# Use $CC to link under sequent, because it throws in some extra .o
8751	# files that make .init and .fini sections work.
8752	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8753      else
8754	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8755      fi
8756      hardcode_libdir_flag_spec='-L$libdir'
8757      hardcode_direct=yes
8758      hardcode_minus_L=yes
8759      hardcode_shlibpath_var=no
8760      ;;
8761
8762    sysv4)
8763      case $host_vendor in
8764	sni)
8765	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766	  hardcode_direct=yes # is this really true???
8767	;;
8768	siemens)
8769	  ## LD is ld it makes a PLAMLIB
8770	  ## CC just makes a GrossModule.
8771	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8772	  reload_cmds='$CC -r -o $output$reload_objs'
8773	  hardcode_direct=no
8774        ;;
8775	motorola)
8776	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8777	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8778	;;
8779      esac
8780      runpath_var='LD_RUN_PATH'
8781      hardcode_shlibpath_var=no
8782      ;;
8783
8784    sysv4.3*)
8785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786      hardcode_shlibpath_var=no
8787      export_dynamic_flag_spec='-Bexport'
8788      ;;
8789
8790    sysv4*MP*)
8791      if test -d /usr/nec; then
8792	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8793	hardcode_shlibpath_var=no
8794	runpath_var=LD_RUN_PATH
8795	hardcode_runpath_var=yes
8796	ld_shlibs=yes
8797      fi
8798      ;;
8799
8800    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8801      no_undefined_flag='${wl}-z,text'
8802      archive_cmds_need_lc=no
8803      hardcode_shlibpath_var=no
8804      runpath_var='LD_RUN_PATH'
8805
8806      if test "$GCC" = yes; then
8807	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8808	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8809      else
8810	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8811	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8812      fi
8813      ;;
8814
8815    sysv5* | sco3.2v5* | sco5v6*)
8816      # Note: We can NOT use -z defs as we might desire, because we do not
8817      # link with -lc, and that would cause any symbols used from libc to
8818      # always be unresolved, which means just about no library would
8819      # ever link correctly.  If we're not using GNU ld we use -z text
8820      # though, which does catch some bad symbols but isn't as heavy-handed
8821      # as -z defs.
8822      no_undefined_flag='${wl}-z,text'
8823      allow_undefined_flag='${wl}-z,nodefs'
8824      archive_cmds_need_lc=no
8825      hardcode_shlibpath_var=no
8826      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8827      hardcode_libdir_separator=':'
8828      link_all_deplibs=yes
8829      export_dynamic_flag_spec='${wl}-Bexport'
8830      runpath_var='LD_RUN_PATH'
8831
8832      if test "$GCC" = yes; then
8833	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8834	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8835      else
8836	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8837	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8838      fi
8839      ;;
8840
8841    uts4*)
8842      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8843      hardcode_libdir_flag_spec='-L$libdir'
8844      hardcode_shlibpath_var=no
8845      ;;
8846
8847    *)
8848      ld_shlibs=no
8849      ;;
8850    esac
8851
8852    if test x$host_vendor = xsni; then
8853      case $host in
8854      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8855	export_dynamic_flag_spec='${wl}-Blargedynsym'
8856	;;
8857      esac
8858    fi
8859  fi
8860
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8862$as_echo "$ld_shlibs" >&6; }
8863test "$ld_shlibs" = no && can_build_shared=no
8864
8865with_gnu_ld=$with_gnu_ld
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881#
8882# Do we need to explicitly link libc?
8883#
8884case "x$archive_cmds_need_lc" in
8885x|xyes)
8886  # Assume -lc should be added
8887  archive_cmds_need_lc=yes
8888
8889  if test "$enable_shared" = yes && test "$GCC" = yes; then
8890    case $archive_cmds in
8891    *'~'*)
8892      # FIXME: we may have to deal with multi-command sequences.
8893      ;;
8894    '$CC '*)
8895      # Test whether the compiler implicitly links with -lc since on some
8896      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8897      # to ld, don't add -lc before -lgcc.
8898      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8899$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8900      $RM conftest*
8901      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8902
8903      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8904  (eval $ac_compile) 2>&5
8905  ac_status=$?
8906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8907  test $ac_status = 0; } 2>conftest.err; then
8908        soname=conftest
8909        lib=conftest
8910        libobjs=conftest.$ac_objext
8911        deplibs=
8912        wl=$lt_prog_compiler_wl
8913	pic_flag=$lt_prog_compiler_pic
8914        compiler_flags=-v
8915        linker_flags=-v
8916        verstring=
8917        output_objdir=.
8918        libname=conftest
8919        lt_save_allow_undefined_flag=$allow_undefined_flag
8920        allow_undefined_flag=
8921        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8922  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8923  ac_status=$?
8924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8925  test $ac_status = 0; }
8926        then
8927	  archive_cmds_need_lc=no
8928        else
8929	  archive_cmds_need_lc=yes
8930        fi
8931        allow_undefined_flag=$lt_save_allow_undefined_flag
8932      else
8933        cat conftest.err 1>&5
8934      fi
8935      $RM conftest*
8936      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8937$as_echo "$archive_cmds_need_lc" >&6; }
8938      ;;
8939    esac
8940  fi
8941  ;;
8942esac
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9101$as_echo_n "checking dynamic linker characteristics... " >&6; }
9102
9103if test "$GCC" = yes; then
9104  case $host_os in
9105    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9106    *) lt_awk_arg="/^libraries:/" ;;
9107  esac
9108  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9109  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9110    # if the path contains ";" then we assume it to be the separator
9111    # otherwise default to the standard path separator (i.e. ":") - it is
9112    # assumed that no part of a normal pathname contains ";" but that should
9113    # okay in the real world where ";" in dirpaths is itself problematic.
9114    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9115  else
9116    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9117  fi
9118  # Ok, now we have the path, separated by spaces, we can step through it
9119  # and add multilib dir if necessary.
9120  lt_tmp_lt_search_path_spec=
9121  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9122  for lt_sys_path in $lt_search_path_spec; do
9123    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9124      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9125    else
9126      test -d "$lt_sys_path" && \
9127	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9128    fi
9129  done
9130  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9131BEGIN {RS=" "; FS="/|\n";} {
9132  lt_foo="";
9133  lt_count=0;
9134  for (lt_i = NF; lt_i > 0; lt_i--) {
9135    if ($lt_i != "" && $lt_i != ".") {
9136      if ($lt_i == "..") {
9137        lt_count++;
9138      } else {
9139        if (lt_count == 0) {
9140          lt_foo="/" $lt_i lt_foo;
9141        } else {
9142          lt_count--;
9143        }
9144      }
9145    }
9146  }
9147  if (lt_foo != "") { lt_freq[lt_foo]++; }
9148  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9149}'`
9150  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9151else
9152  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9153fi
9154library_names_spec=
9155libname_spec='lib$name'
9156soname_spec=
9157shrext_cmds=".so"
9158postinstall_cmds=
9159postuninstall_cmds=
9160finish_cmds=
9161finish_eval=
9162shlibpath_var=
9163shlibpath_overrides_runpath=unknown
9164version_type=none
9165dynamic_linker="$host_os ld.so"
9166sys_lib_dlsearch_path_spec="/lib /usr/lib"
9167need_lib_prefix=unknown
9168hardcode_into_libs=no
9169
9170# when you set need_version to no, make sure it does not cause -set_version
9171# flags to be left without arguments
9172need_version=unknown
9173
9174case $host_os in
9175aix3*)
9176  version_type=linux
9177  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9178  shlibpath_var=LIBPATH
9179
9180  # AIX 3 has no versioning support, so we append a major version to the name.
9181  soname_spec='${libname}${release}${shared_ext}$major'
9182  ;;
9183
9184aix[4-9]*)
9185  version_type=linux
9186  need_lib_prefix=no
9187  need_version=no
9188  hardcode_into_libs=yes
9189  if test "$host_cpu" = ia64; then
9190    # AIX 5 supports IA64
9191    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9192    shlibpath_var=LD_LIBRARY_PATH
9193  else
9194    # With GCC up to 2.95.x, collect2 would create an import file
9195    # for dependence libraries.  The import file would start with
9196    # the line `#! .'.  This would cause the generated library to
9197    # depend on `.', always an invalid library.  This was fixed in
9198    # development snapshots of GCC prior to 3.0.
9199    case $host_os in
9200      aix4 | aix4.[01] | aix4.[01].*)
9201      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9202	   echo ' yes '
9203	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9204	:
9205      else
9206	can_build_shared=no
9207      fi
9208      ;;
9209    esac
9210    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9211    # soname into executable. Probably we can add versioning support to
9212    # collect2, so additional links can be useful in future.
9213    if test "$aix_use_runtimelinking" = yes; then
9214      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9215      # instead of lib<name>.a to let people know that these are not
9216      # typical AIX shared libraries.
9217      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218    else
9219      # We preserve .a as extension for shared libraries through AIX4.2
9220      # and later when we are not doing run time linking.
9221      library_names_spec='${libname}${release}.a $libname.a'
9222      soname_spec='${libname}${release}${shared_ext}$major'
9223    fi
9224    shlibpath_var=LIBPATH
9225  fi
9226  ;;
9227
9228amigaos*)
9229  case $host_cpu in
9230  powerpc)
9231    # Since July 2007 AmigaOS4 officially supports .so libraries.
9232    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9233    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234    ;;
9235  m68k)
9236    library_names_spec='$libname.ixlibrary $libname.a'
9237    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9238    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9239    ;;
9240  esac
9241  ;;
9242
9243beos*)
9244  library_names_spec='${libname}${shared_ext}'
9245  dynamic_linker="$host_os ld.so"
9246  shlibpath_var=LIBRARY_PATH
9247  ;;
9248
9249bsdi[45]*)
9250  version_type=linux
9251  need_version=no
9252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253  soname_spec='${libname}${release}${shared_ext}$major'
9254  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9255  shlibpath_var=LD_LIBRARY_PATH
9256  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9257  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9258  # the default ld.so.conf also contains /usr/contrib/lib and
9259  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9260  # libtool to hard-code these into programs
9261  ;;
9262
9263cygwin* | mingw* | pw32* | cegcc*)
9264  version_type=windows
9265  shrext_cmds=".dll"
9266  need_version=no
9267  need_lib_prefix=no
9268
9269  case $GCC,$host_os in
9270  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9271    library_names_spec='$libname.dll.a'
9272    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9273    postinstall_cmds='base_file=`basename \${file}`~
9274      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9275      dldir=$destdir/`dirname \$dlpath`~
9276      test -d \$dldir || mkdir -p \$dldir~
9277      $install_prog $dir/$dlname \$dldir/$dlname~
9278      chmod a+x \$dldir/$dlname~
9279      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9280        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9281      fi'
9282    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9283      dlpath=$dir/\$dldll~
9284       $RM \$dlpath'
9285    shlibpath_overrides_runpath=yes
9286
9287    case $host_os in
9288    cygwin*)
9289      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9290      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9291      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9292      ;;
9293    mingw* | cegcc*)
9294      # MinGW DLLs use traditional 'lib' prefix
9295      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9296      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9297      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9298        # It is most probably a Windows format PATH printed by
9299        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9300        # path with ; separators, and with drive letters. We can handle the
9301        # drive letters (cygwin fileutils understands them), so leave them,
9302        # especially as we might pass files found there to a mingw objdump,
9303        # which wouldn't understand a cygwinified path. Ahh.
9304        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9305      else
9306        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9307      fi
9308      ;;
9309    pw32*)
9310      # pw32 DLLs use 'pw' prefix rather than 'lib'
9311      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9312      ;;
9313    esac
9314    ;;
9315
9316  *)
9317    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9318    ;;
9319  esac
9320  dynamic_linker='Win32 ld.exe'
9321  # FIXME: first we should search . and the directory the executable is in
9322  shlibpath_var=PATH
9323  ;;
9324
9325darwin* | rhapsody*)
9326  dynamic_linker="$host_os dyld"
9327  version_type=darwin
9328  need_lib_prefix=no
9329  need_version=no
9330  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9331  soname_spec='${libname}${release}${major}$shared_ext'
9332  shlibpath_overrides_runpath=yes
9333  shlibpath_var=DYLD_LIBRARY_PATH
9334  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9335
9336  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9337  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9338  ;;
9339
9340dgux*)
9341  version_type=linux
9342  need_lib_prefix=no
9343  need_version=no
9344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9345  soname_spec='${libname}${release}${shared_ext}$major'
9346  shlibpath_var=LD_LIBRARY_PATH
9347  ;;
9348
9349freebsd1*)
9350  dynamic_linker=no
9351  ;;
9352
9353freebsd* | dragonfly*)
9354  # DragonFly does not have aout.  When/if they implement a new
9355  # versioning mechanism, adjust this.
9356  if test -x /usr/bin/objformat; then
9357    objformat=`/usr/bin/objformat`
9358  else
9359    case $host_os in
9360    freebsd[123]*) objformat=aout ;;
9361    *) objformat=elf ;;
9362    esac
9363  fi
9364  version_type=freebsd-$objformat
9365  case $version_type in
9366    freebsd-elf*)
9367      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9368      need_version=no
9369      need_lib_prefix=no
9370      ;;
9371    freebsd-*)
9372      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9373      need_version=yes
9374      ;;
9375  esac
9376  shlibpath_var=LD_LIBRARY_PATH
9377  case $host_os in
9378  freebsd2*)
9379    shlibpath_overrides_runpath=yes
9380    ;;
9381  freebsd3.[01]* | freebsdelf3.[01]*)
9382    shlibpath_overrides_runpath=yes
9383    hardcode_into_libs=yes
9384    ;;
9385  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9386  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9387    shlibpath_overrides_runpath=no
9388    hardcode_into_libs=yes
9389    ;;
9390  *) # from 4.6 on, and DragonFly
9391    shlibpath_overrides_runpath=yes
9392    hardcode_into_libs=yes
9393    ;;
9394  esac
9395  ;;
9396
9397gnu*)
9398  version_type=linux
9399  need_lib_prefix=no
9400  need_version=no
9401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9402  soname_spec='${libname}${release}${shared_ext}$major'
9403  shlibpath_var=LD_LIBRARY_PATH
9404  hardcode_into_libs=yes
9405  ;;
9406
9407hpux9* | hpux10* | hpux11*)
9408  # Give a soname corresponding to the major version so that dld.sl refuses to
9409  # link against other versions.
9410  version_type=sunos
9411  need_lib_prefix=no
9412  need_version=no
9413  case $host_cpu in
9414  ia64*)
9415    shrext_cmds='.so'
9416    hardcode_into_libs=yes
9417    dynamic_linker="$host_os dld.so"
9418    shlibpath_var=LD_LIBRARY_PATH
9419    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9420    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421    soname_spec='${libname}${release}${shared_ext}$major'
9422    if test "X$HPUX_IA64_MODE" = X32; then
9423      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9424    else
9425      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9426    fi
9427    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9428    ;;
9429  hppa*64*)
9430    shrext_cmds='.sl'
9431    hardcode_into_libs=yes
9432    dynamic_linker="$host_os dld.sl"
9433    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9434    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9435    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436    soname_spec='${libname}${release}${shared_ext}$major'
9437    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9438    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9439    ;;
9440  *)
9441    shrext_cmds='.sl'
9442    dynamic_linker="$host_os dld.sl"
9443    shlibpath_var=SHLIB_PATH
9444    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9445    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446    soname_spec='${libname}${release}${shared_ext}$major'
9447    ;;
9448  esac
9449  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9450  postinstall_cmds='chmod 555 $lib'
9451  ;;
9452
9453interix[3-9]*)
9454  version_type=linux
9455  need_lib_prefix=no
9456  need_version=no
9457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9458  soname_spec='${libname}${release}${shared_ext}$major'
9459  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9460  shlibpath_var=LD_LIBRARY_PATH
9461  shlibpath_overrides_runpath=no
9462  hardcode_into_libs=yes
9463  ;;
9464
9465irix5* | irix6* | nonstopux*)
9466  case $host_os in
9467    nonstopux*) version_type=nonstopux ;;
9468    *)
9469	if test "$lt_cv_prog_gnu_ld" = yes; then
9470		version_type=linux
9471	else
9472		version_type=irix
9473	fi ;;
9474  esac
9475  need_lib_prefix=no
9476  need_version=no
9477  soname_spec='${libname}${release}${shared_ext}$major'
9478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9479  case $host_os in
9480  irix5* | nonstopux*)
9481    libsuff= shlibsuff=
9482    ;;
9483  *)
9484    case $LD in # libtool.m4 will add one of these switches to LD
9485    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9486      libsuff= shlibsuff= libmagic=32-bit;;
9487    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9488      libsuff=32 shlibsuff=N32 libmagic=N32;;
9489    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9490      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9491    *) libsuff= shlibsuff= libmagic=never-match;;
9492    esac
9493    ;;
9494  esac
9495  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9496  shlibpath_overrides_runpath=no
9497  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9498  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9499  hardcode_into_libs=yes
9500  ;;
9501
9502# No shared lib support for Linux oldld, aout, or coff.
9503linux*oldld* | linux*aout* | linux*coff*)
9504  dynamic_linker=no
9505  ;;
9506
9507# This must be Linux ELF.
9508linux* | k*bsd*-gnu | kopensolaris*-gnu)
9509  version_type=linux
9510  need_lib_prefix=no
9511  need_version=no
9512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513  soname_spec='${libname}${release}${shared_ext}$major'
9514  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9515  shlibpath_var=LD_LIBRARY_PATH
9516  shlibpath_overrides_runpath=no
9517  # Some binutils ld are patched to set DT_RUNPATH
9518  save_LDFLAGS=$LDFLAGS
9519  save_libdir=$libdir
9520  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9521       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523/* end confdefs.h.  */
9524
9525int
9526main ()
9527{
9528
9529  ;
9530  return 0;
9531}
9532_ACEOF
9533if ac_fn_c_try_link "$LINENO"; then :
9534  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9535  shlibpath_overrides_runpath=yes
9536fi
9537fi
9538rm -f core conftest.err conftest.$ac_objext \
9539    conftest$ac_exeext conftest.$ac_ext
9540  LDFLAGS=$save_LDFLAGS
9541  libdir=$save_libdir
9542
9543  # This implies no fast_install, which is unacceptable.
9544  # Some rework will be needed to allow for fast_install
9545  # before this can be enabled.
9546  hardcode_into_libs=yes
9547
9548  # Append ld.so.conf contents to the search path
9549  if test -f /etc/ld.so.conf; then
9550    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;/^$/d' | tr '\n' ' '`
9551    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9552  fi
9553
9554  # We used to test for /lib/ld.so.1 and disable shared libraries on
9555  # powerpc, because MkLinux only supported shared libraries with the
9556  # GNU dynamic linker.  Since this was broken with cross compilers,
9557  # most powerpc-linux boxes support dynamic linking these days and
9558  # people can always --disable-shared, the test was removed, and we
9559  # assume the GNU/Linux dynamic linker is in use.
9560  dynamic_linker='GNU/Linux ld.so'
9561  ;;
9562
9563netbsdelf*-gnu)
9564  version_type=linux
9565  need_lib_prefix=no
9566  need_version=no
9567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9568  soname_spec='${libname}${release}${shared_ext}$major'
9569  shlibpath_var=LD_LIBRARY_PATH
9570  shlibpath_overrides_runpath=no
9571  hardcode_into_libs=yes
9572  dynamic_linker='NetBSD ld.elf_so'
9573  ;;
9574
9575netbsd*)
9576  version_type=sunos
9577  need_lib_prefix=no
9578  need_version=no
9579  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9580    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9581    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9582    dynamic_linker='NetBSD (a.out) ld.so'
9583  else
9584    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9585    soname_spec='${libname}${release}${shared_ext}$major'
9586    dynamic_linker='NetBSD ld.elf_so'
9587  fi
9588  shlibpath_var=LD_LIBRARY_PATH
9589  shlibpath_overrides_runpath=yes
9590  hardcode_into_libs=yes
9591  ;;
9592
9593newsos6)
9594  version_type=linux
9595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596  shlibpath_var=LD_LIBRARY_PATH
9597  shlibpath_overrides_runpath=yes
9598  ;;
9599
9600*nto* | *qnx*)
9601  version_type=qnx
9602  need_lib_prefix=no
9603  need_version=no
9604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9605  soname_spec='${libname}${release}${shared_ext}$major'
9606  shlibpath_var=LD_LIBRARY_PATH
9607  shlibpath_overrides_runpath=no
9608  hardcode_into_libs=yes
9609  dynamic_linker='ldqnx.so'
9610  ;;
9611
9612openbsd*)
9613  version_type=sunos
9614  sys_lib_dlsearch_path_spec="/usr/lib"
9615  need_lib_prefix=no
9616  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9617  case $host_os in
9618    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9619    *)				need_version=no  ;;
9620  esac
9621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9622  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9623  shlibpath_var=LD_LIBRARY_PATH
9624  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9625    case $host_os in
9626      openbsd2.[89] | openbsd2.[89].*)
9627	shlibpath_overrides_runpath=no
9628	;;
9629      *)
9630	shlibpath_overrides_runpath=yes
9631	;;
9632      esac
9633  else
9634    shlibpath_overrides_runpath=yes
9635  fi
9636  ;;
9637
9638os2*)
9639  libname_spec='$name'
9640  shrext_cmds=".dll"
9641  need_lib_prefix=no
9642  library_names_spec='$libname${shared_ext} $libname.a'
9643  dynamic_linker='OS/2 ld.exe'
9644  shlibpath_var=LIBPATH
9645  ;;
9646
9647osf3* | osf4* | osf5*)
9648  version_type=osf
9649  need_lib_prefix=no
9650  need_version=no
9651  soname_spec='${libname}${release}${shared_ext}$major'
9652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653  shlibpath_var=LD_LIBRARY_PATH
9654  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9655  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9656  ;;
9657
9658rdos*)
9659  dynamic_linker=no
9660  ;;
9661
9662solaris*)
9663  version_type=linux
9664  need_lib_prefix=no
9665  need_version=no
9666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667  soname_spec='${libname}${release}${shared_ext}$major'
9668  shlibpath_var=LD_LIBRARY_PATH
9669  shlibpath_overrides_runpath=yes
9670  hardcode_into_libs=yes
9671  # ldd complains unless libraries are executable
9672  postinstall_cmds='chmod +x $lib'
9673  ;;
9674
9675sunos4*)
9676  version_type=sunos
9677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9678  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9679  shlibpath_var=LD_LIBRARY_PATH
9680  shlibpath_overrides_runpath=yes
9681  if test "$with_gnu_ld" = yes; then
9682    need_lib_prefix=no
9683  fi
9684  need_version=yes
9685  ;;
9686
9687sysv4 | sysv4.3*)
9688  version_type=linux
9689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690  soname_spec='${libname}${release}${shared_ext}$major'
9691  shlibpath_var=LD_LIBRARY_PATH
9692  case $host_vendor in
9693    sni)
9694      shlibpath_overrides_runpath=no
9695      need_lib_prefix=no
9696      runpath_var=LD_RUN_PATH
9697      ;;
9698    siemens)
9699      need_lib_prefix=no
9700      ;;
9701    motorola)
9702      need_lib_prefix=no
9703      need_version=no
9704      shlibpath_overrides_runpath=no
9705      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9706      ;;
9707  esac
9708  ;;
9709
9710sysv4*MP*)
9711  if test -d /usr/nec ;then
9712    version_type=linux
9713    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9714    soname_spec='$libname${shared_ext}.$major'
9715    shlibpath_var=LD_LIBRARY_PATH
9716  fi
9717  ;;
9718
9719sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9720  version_type=freebsd-elf
9721  need_lib_prefix=no
9722  need_version=no
9723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9724  soname_spec='${libname}${release}${shared_ext}$major'
9725  shlibpath_var=LD_LIBRARY_PATH
9726  shlibpath_overrides_runpath=yes
9727  hardcode_into_libs=yes
9728  if test "$with_gnu_ld" = yes; then
9729    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9730  else
9731    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9732    case $host_os in
9733      sco3.2v5*)
9734        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9735	;;
9736    esac
9737  fi
9738  sys_lib_dlsearch_path_spec='/usr/lib'
9739  ;;
9740
9741tpf*)
9742  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9743  version_type=linux
9744  need_lib_prefix=no
9745  need_version=no
9746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747  shlibpath_var=LD_LIBRARY_PATH
9748  shlibpath_overrides_runpath=no
9749  hardcode_into_libs=yes
9750  ;;
9751
9752uts4*)
9753  version_type=linux
9754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755  soname_spec='${libname}${release}${shared_ext}$major'
9756  shlibpath_var=LD_LIBRARY_PATH
9757  ;;
9758
9759*)
9760  dynamic_linker=no
9761  ;;
9762esac
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9764$as_echo "$dynamic_linker" >&6; }
9765test "$dynamic_linker" = no && can_build_shared=no
9766
9767variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9768if test "$GCC" = yes; then
9769  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9770fi
9771
9772if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9773  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9774fi
9775if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9776  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9777fi
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9866$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9867hardcode_action=
9868if test -n "$hardcode_libdir_flag_spec" ||
9869   test -n "$runpath_var" ||
9870   test "X$hardcode_automatic" = "Xyes" ; then
9871
9872  # We can hardcode non-existent directories.
9873  if test "$hardcode_direct" != no &&
9874     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9875     # have to relink, otherwise we might link with an installed library
9876     # when we should be linking with a yet-to-be-installed one
9877     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9878     test "$hardcode_minus_L" != no; then
9879    # Linking always hardcodes the temporary library directory.
9880    hardcode_action=relink
9881  else
9882    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9883    hardcode_action=immediate
9884  fi
9885else
9886  # We cannot hardcode anything, or else we can only hardcode existing
9887  # directories.
9888  hardcode_action=unsupported
9889fi
9890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9891$as_echo "$hardcode_action" >&6; }
9892
9893if test "$hardcode_action" = relink ||
9894   test "$inherit_rpath" = yes; then
9895  # Fast installation is not supported
9896  enable_fast_install=no
9897elif test "$shlibpath_overrides_runpath" = yes ||
9898     test "$enable_shared" = no; then
9899  # Fast installation is not necessary
9900  enable_fast_install=needless
9901fi
9902
9903
9904
9905
9906
9907
9908  if test "x$enable_dlopen" != xyes; then
9909  enable_dlopen=unknown
9910  enable_dlopen_self=unknown
9911  enable_dlopen_self_static=unknown
9912else
9913  lt_cv_dlopen=no
9914  lt_cv_dlopen_libs=
9915
9916  case $host_os in
9917  beos*)
9918    lt_cv_dlopen="load_add_on"
9919    lt_cv_dlopen_libs=
9920    lt_cv_dlopen_self=yes
9921    ;;
9922
9923  mingw* | pw32* | cegcc*)
9924    lt_cv_dlopen="LoadLibrary"
9925    lt_cv_dlopen_libs=
9926    ;;
9927
9928  cygwin*)
9929    lt_cv_dlopen="dlopen"
9930    lt_cv_dlopen_libs=
9931    ;;
9932
9933  darwin*)
9934  # if libdl is installed we need to link against it
9935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9936$as_echo_n "checking for dlopen in -ldl... " >&6; }
9937if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9938  $as_echo_n "(cached) " >&6
9939else
9940  ac_check_lib_save_LIBS=$LIBS
9941LIBS="-ldl  $LIBS"
9942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943/* end confdefs.h.  */
9944
9945/* Override any GCC internal prototype to avoid an error.
9946   Use char because int might match the return type of a GCC
9947   builtin and then its argument prototype would still apply.  */
9948#ifdef __cplusplus
9949extern "C"
9950#endif
9951char dlopen ();
9952int
9953main ()
9954{
9955return dlopen ();
9956  ;
9957  return 0;
9958}
9959_ACEOF
9960if ac_fn_c_try_link "$LINENO"; then :
9961  ac_cv_lib_dl_dlopen=yes
9962else
9963  ac_cv_lib_dl_dlopen=no
9964fi
9965rm -f core conftest.err conftest.$ac_objext \
9966    conftest$ac_exeext conftest.$ac_ext
9967LIBS=$ac_check_lib_save_LIBS
9968fi
9969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9970$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9971if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9972  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9973else
9974
9975    lt_cv_dlopen="dyld"
9976    lt_cv_dlopen_libs=
9977    lt_cv_dlopen_self=yes
9978
9979fi
9980
9981    ;;
9982
9983  *)
9984    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9985if test "x$ac_cv_func_shl_load" = x""yes; then :
9986  lt_cv_dlopen="shl_load"
9987else
9988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9989$as_echo_n "checking for shl_load in -ldld... " >&6; }
9990if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9991  $as_echo_n "(cached) " >&6
9992else
9993  ac_check_lib_save_LIBS=$LIBS
9994LIBS="-ldld  $LIBS"
9995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996/* end confdefs.h.  */
9997
9998/* Override any GCC internal prototype to avoid an error.
9999   Use char because int might match the return type of a GCC
10000   builtin and then its argument prototype would still apply.  */
10001#ifdef __cplusplus
10002extern "C"
10003#endif
10004char shl_load ();
10005int
10006main ()
10007{
10008return shl_load ();
10009  ;
10010  return 0;
10011}
10012_ACEOF
10013if ac_fn_c_try_link "$LINENO"; then :
10014  ac_cv_lib_dld_shl_load=yes
10015else
10016  ac_cv_lib_dld_shl_load=no
10017fi
10018rm -f core conftest.err conftest.$ac_objext \
10019    conftest$ac_exeext conftest.$ac_ext
10020LIBS=$ac_check_lib_save_LIBS
10021fi
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10023$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10024if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10025  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10026else
10027  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10028if test "x$ac_cv_func_dlopen" = x""yes; then :
10029  lt_cv_dlopen="dlopen"
10030else
10031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10032$as_echo_n "checking for dlopen in -ldl... " >&6; }
10033if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10034  $as_echo_n "(cached) " >&6
10035else
10036  ac_check_lib_save_LIBS=$LIBS
10037LIBS="-ldl  $LIBS"
10038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040
10041/* Override any GCC internal prototype to avoid an error.
10042   Use char because int might match the return type of a GCC
10043   builtin and then its argument prototype would still apply.  */
10044#ifdef __cplusplus
10045extern "C"
10046#endif
10047char dlopen ();
10048int
10049main ()
10050{
10051return dlopen ();
10052  ;
10053  return 0;
10054}
10055_ACEOF
10056if ac_fn_c_try_link "$LINENO"; then :
10057  ac_cv_lib_dl_dlopen=yes
10058else
10059  ac_cv_lib_dl_dlopen=no
10060fi
10061rm -f core conftest.err conftest.$ac_objext \
10062    conftest$ac_exeext conftest.$ac_ext
10063LIBS=$ac_check_lib_save_LIBS
10064fi
10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10066$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10067if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10068  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10069else
10070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10071$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10072if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10073  $as_echo_n "(cached) " >&6
10074else
10075  ac_check_lib_save_LIBS=$LIBS
10076LIBS="-lsvld  $LIBS"
10077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078/* end confdefs.h.  */
10079
10080/* Override any GCC internal prototype to avoid an error.
10081   Use char because int might match the return type of a GCC
10082   builtin and then its argument prototype would still apply.  */
10083#ifdef __cplusplus
10084extern "C"
10085#endif
10086char dlopen ();
10087int
10088main ()
10089{
10090return dlopen ();
10091  ;
10092  return 0;
10093}
10094_ACEOF
10095if ac_fn_c_try_link "$LINENO"; then :
10096  ac_cv_lib_svld_dlopen=yes
10097else
10098  ac_cv_lib_svld_dlopen=no
10099fi
10100rm -f core conftest.err conftest.$ac_objext \
10101    conftest$ac_exeext conftest.$ac_ext
10102LIBS=$ac_check_lib_save_LIBS
10103fi
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10105$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10106if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10107  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10108else
10109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10110$as_echo_n "checking for dld_link in -ldld... " >&6; }
10111if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10112  $as_echo_n "(cached) " >&6
10113else
10114  ac_check_lib_save_LIBS=$LIBS
10115LIBS="-ldld  $LIBS"
10116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h.  */
10118
10119/* Override any GCC internal prototype to avoid an error.
10120   Use char because int might match the return type of a GCC
10121   builtin and then its argument prototype would still apply.  */
10122#ifdef __cplusplus
10123extern "C"
10124#endif
10125char dld_link ();
10126int
10127main ()
10128{
10129return dld_link ();
10130  ;
10131  return 0;
10132}
10133_ACEOF
10134if ac_fn_c_try_link "$LINENO"; then :
10135  ac_cv_lib_dld_dld_link=yes
10136else
10137  ac_cv_lib_dld_dld_link=no
10138fi
10139rm -f core conftest.err conftest.$ac_objext \
10140    conftest$ac_exeext conftest.$ac_ext
10141LIBS=$ac_check_lib_save_LIBS
10142fi
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10144$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10145if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10146  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10147fi
10148
10149
10150fi
10151
10152
10153fi
10154
10155
10156fi
10157
10158
10159fi
10160
10161
10162fi
10163
10164    ;;
10165  esac
10166
10167  if test "x$lt_cv_dlopen" != xno; then
10168    enable_dlopen=yes
10169  else
10170    enable_dlopen=no
10171  fi
10172
10173  case $lt_cv_dlopen in
10174  dlopen)
10175    save_CPPFLAGS="$CPPFLAGS"
10176    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10177
10178    save_LDFLAGS="$LDFLAGS"
10179    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10180
10181    save_LIBS="$LIBS"
10182    LIBS="$lt_cv_dlopen_libs $LIBS"
10183
10184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10185$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10186if test "${lt_cv_dlopen_self+set}" = set; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  	  if test "$cross_compiling" = yes; then :
10190  lt_cv_dlopen_self=cross
10191else
10192  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10193  lt_status=$lt_dlunknown
10194  cat > conftest.$ac_ext <<_LT_EOF
10195#line 10195 "configure"
10196#include "confdefs.h"
10197
10198#if HAVE_DLFCN_H
10199#include <dlfcn.h>
10200#endif
10201
10202#include <stdio.h>
10203
10204#ifdef RTLD_GLOBAL
10205#  define LT_DLGLOBAL		RTLD_GLOBAL
10206#else
10207#  ifdef DL_GLOBAL
10208#    define LT_DLGLOBAL		DL_GLOBAL
10209#  else
10210#    define LT_DLGLOBAL		0
10211#  endif
10212#endif
10213
10214/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10215   find out it does not work in some platform. */
10216#ifndef LT_DLLAZY_OR_NOW
10217#  ifdef RTLD_LAZY
10218#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10219#  else
10220#    ifdef DL_LAZY
10221#      define LT_DLLAZY_OR_NOW		DL_LAZY
10222#    else
10223#      ifdef RTLD_NOW
10224#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10225#      else
10226#        ifdef DL_NOW
10227#          define LT_DLLAZY_OR_NOW	DL_NOW
10228#        else
10229#          define LT_DLLAZY_OR_NOW	0
10230#        endif
10231#      endif
10232#    endif
10233#  endif
10234#endif
10235
10236void fnord() { int i=42;}
10237int main ()
10238{
10239  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10240  int status = $lt_dlunknown;
10241
10242  if (self)
10243    {
10244      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10245      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10246      /* dlclose (self); */
10247    }
10248  else
10249    puts (dlerror ());
10250
10251  return status;
10252}
10253_LT_EOF
10254  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10255  (eval $ac_link) 2>&5
10256  ac_status=$?
10257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10258  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10259    (./conftest; exit; ) >&5 2>/dev/null
10260    lt_status=$?
10261    case x$lt_status in
10262      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10263      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10264      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10265    esac
10266  else :
10267    # compilation failed
10268    lt_cv_dlopen_self=no
10269  fi
10270fi
10271rm -fr conftest*
10272
10273
10274fi
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10276$as_echo "$lt_cv_dlopen_self" >&6; }
10277
10278    if test "x$lt_cv_dlopen_self" = xyes; then
10279      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10280      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10281$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10282if test "${lt_cv_dlopen_self_static+set}" = set; then :
10283  $as_echo_n "(cached) " >&6
10284else
10285  	  if test "$cross_compiling" = yes; then :
10286  lt_cv_dlopen_self_static=cross
10287else
10288  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10289  lt_status=$lt_dlunknown
10290  cat > conftest.$ac_ext <<_LT_EOF
10291#line 10291 "configure"
10292#include "confdefs.h"
10293
10294#if HAVE_DLFCN_H
10295#include <dlfcn.h>
10296#endif
10297
10298#include <stdio.h>
10299
10300#ifdef RTLD_GLOBAL
10301#  define LT_DLGLOBAL		RTLD_GLOBAL
10302#else
10303#  ifdef DL_GLOBAL
10304#    define LT_DLGLOBAL		DL_GLOBAL
10305#  else
10306#    define LT_DLGLOBAL		0
10307#  endif
10308#endif
10309
10310/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10311   find out it does not work in some platform. */
10312#ifndef LT_DLLAZY_OR_NOW
10313#  ifdef RTLD_LAZY
10314#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10315#  else
10316#    ifdef DL_LAZY
10317#      define LT_DLLAZY_OR_NOW		DL_LAZY
10318#    else
10319#      ifdef RTLD_NOW
10320#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10321#      else
10322#        ifdef DL_NOW
10323#          define LT_DLLAZY_OR_NOW	DL_NOW
10324#        else
10325#          define LT_DLLAZY_OR_NOW	0
10326#        endif
10327#      endif
10328#    endif
10329#  endif
10330#endif
10331
10332void fnord() { int i=42;}
10333int main ()
10334{
10335  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10336  int status = $lt_dlunknown;
10337
10338  if (self)
10339    {
10340      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10341      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10342      /* dlclose (self); */
10343    }
10344  else
10345    puts (dlerror ());
10346
10347  return status;
10348}
10349_LT_EOF
10350  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10351  (eval $ac_link) 2>&5
10352  ac_status=$?
10353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10354  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10355    (./conftest; exit; ) >&5 2>/dev/null
10356    lt_status=$?
10357    case x$lt_status in
10358      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10359      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10360      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10361    esac
10362  else :
10363    # compilation failed
10364    lt_cv_dlopen_self_static=no
10365  fi
10366fi
10367rm -fr conftest*
10368
10369
10370fi
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10372$as_echo "$lt_cv_dlopen_self_static" >&6; }
10373    fi
10374
10375    CPPFLAGS="$save_CPPFLAGS"
10376    LDFLAGS="$save_LDFLAGS"
10377    LIBS="$save_LIBS"
10378    ;;
10379  esac
10380
10381  case $lt_cv_dlopen_self in
10382  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10383  *) enable_dlopen_self=unknown ;;
10384  esac
10385
10386  case $lt_cv_dlopen_self_static in
10387  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10388  *) enable_dlopen_self_static=unknown ;;
10389  esac
10390fi
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408striplib=
10409old_striplib=
10410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10411$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10412if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10413  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10414  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10416$as_echo "yes" >&6; }
10417else
10418# FIXME - insert some real tests, host_os isn't really good enough
10419  case $host_os in
10420  darwin*)
10421    if test -n "$STRIP" ; then
10422      striplib="$STRIP -x"
10423      old_striplib="$STRIP -S"
10424      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10425$as_echo "yes" >&6; }
10426    else
10427      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
10429    fi
10430    ;;
10431  *)
10432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433$as_echo "no" >&6; }
10434    ;;
10435  esac
10436fi
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449  # Report which library types will actually be built
10450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10451$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10453$as_echo "$can_build_shared" >&6; }
10454
10455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10456$as_echo_n "checking whether to build shared libraries... " >&6; }
10457  test "$can_build_shared" = "no" && enable_shared=no
10458
10459  # On AIX, shared libraries and static libraries use the same namespace, and
10460  # are all built from PIC.
10461  case $host_os in
10462  aix3*)
10463    test "$enable_shared" = yes && enable_static=no
10464    if test -n "$RANLIB"; then
10465      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10466      postinstall_cmds='$RANLIB $lib'
10467    fi
10468    ;;
10469
10470  aix[4-9]*)
10471    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10472      test "$enable_shared" = yes && enable_static=no
10473    fi
10474    ;;
10475  esac
10476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10477$as_echo "$enable_shared" >&6; }
10478
10479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10480$as_echo_n "checking whether to build static libraries... " >&6; }
10481  # Make sure either enable_shared or enable_static is yes.
10482  test "$enable_shared" = yes || enable_static=yes
10483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10484$as_echo "$enable_static" >&6; }
10485
10486
10487
10488
10489fi
10490ac_ext=c
10491ac_cpp='$CPP $CPPFLAGS'
10492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10494ac_compiler_gnu=$ac_cv_c_compiler_gnu
10495
10496CC="$lt_save_CC"
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510        ac_config_commands="$ac_config_commands libtool"
10511
10512
10513
10514
10515# Only expand once:
10516
10517
10518
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10520$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10521    # Check whether --enable-maintainer-mode was given.
10522if test "${enable_maintainer_mode+set}" = set; then :
10523  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10524else
10525  USE_MAINTAINER_MODE=no
10526fi
10527
10528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10529$as_echo "$USE_MAINTAINER_MODE" >&6; }
10530   if test $USE_MAINTAINER_MODE = yes; then
10531  MAINTAINER_MODE_TRUE=
10532  MAINTAINER_MODE_FALSE='#'
10533else
10534  MAINTAINER_MODE_TRUE='#'
10535  MAINTAINER_MODE_FALSE=
10536fi
10537
10538  MAINT=$MAINTAINER_MODE_TRUE
10539
10540
10541
10542
10543ac_ext=cpp
10544ac_cpp='$CXXCPP $CPPFLAGS'
10545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10548if test -z "$CXX"; then
10549  if test -n "$CCC"; then
10550    CXX=$CCC
10551  else
10552    if test -n "$ac_tool_prefix"; then
10553  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10554  do
10555    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10556set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558$as_echo_n "checking for $ac_word... " >&6; }
10559if test "${ac_cv_prog_CXX+set}" = set; then :
10560  $as_echo_n "(cached) " >&6
10561else
10562  if test -n "$CXX"; then
10563  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10564else
10565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566for as_dir in $PATH
10567do
10568  IFS=$as_save_IFS
10569  test -z "$as_dir" && as_dir=.
10570    for ac_exec_ext in '' $ac_executable_extensions; do
10571  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10572    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10574    break 2
10575  fi
10576done
10577  done
10578IFS=$as_save_IFS
10579
10580fi
10581fi
10582CXX=$ac_cv_prog_CXX
10583if test -n "$CXX"; then
10584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10585$as_echo "$CXX" >&6; }
10586else
10587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588$as_echo "no" >&6; }
10589fi
10590
10591
10592    test -n "$CXX" && break
10593  done
10594fi
10595if test -z "$CXX"; then
10596  ac_ct_CXX=$CXX
10597  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10598do
10599  # Extract the first word of "$ac_prog", so it can be a program name with args.
10600set dummy $ac_prog; ac_word=$2
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602$as_echo_n "checking for $ac_word... " >&6; }
10603if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10604  $as_echo_n "(cached) " >&6
10605else
10606  if test -n "$ac_ct_CXX"; then
10607  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10608else
10609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610for as_dir in $PATH
10611do
10612  IFS=$as_save_IFS
10613  test -z "$as_dir" && as_dir=.
10614    for ac_exec_ext in '' $ac_executable_extensions; do
10615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10616    ac_cv_prog_ac_ct_CXX="$ac_prog"
10617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618    break 2
10619  fi
10620done
10621  done
10622IFS=$as_save_IFS
10623
10624fi
10625fi
10626ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10627if test -n "$ac_ct_CXX"; then
10628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10629$as_echo "$ac_ct_CXX" >&6; }
10630else
10631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632$as_echo "no" >&6; }
10633fi
10634
10635
10636  test -n "$ac_ct_CXX" && break
10637done
10638
10639  if test "x$ac_ct_CXX" = x; then
10640    CXX="g++"
10641  else
10642    case $cross_compiling:$ac_tool_warned in
10643yes:)
10644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10646ac_tool_warned=yes ;;
10647esac
10648    CXX=$ac_ct_CXX
10649  fi
10650fi
10651
10652  fi
10653fi
10654# Provide some information about the compiler.
10655$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10656set X $ac_compile
10657ac_compiler=$2
10658for ac_option in --version -v -V -qversion; do
10659  { { ac_try="$ac_compiler $ac_option >&5"
10660case "(($ac_try" in
10661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662  *) ac_try_echo=$ac_try;;
10663esac
10664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10665$as_echo "$ac_try_echo"; } >&5
10666  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10667  ac_status=$?
10668  if test -s conftest.err; then
10669    sed '10a\
10670... rest of stderr output deleted ...
10671         10q' conftest.err >conftest.er1
10672    cat conftest.er1 >&5
10673  fi
10674  rm -f conftest.er1 conftest.err
10675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10676  test $ac_status = 0; }
10677done
10678
10679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10680$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10681if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10682  $as_echo_n "(cached) " >&6
10683else
10684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685/* end confdefs.h.  */
10686
10687int
10688main ()
10689{
10690#ifndef __GNUC__
10691       choke me
10692#endif
10693
10694  ;
10695  return 0;
10696}
10697_ACEOF
10698if ac_fn_cxx_try_compile "$LINENO"; then :
10699  ac_compiler_gnu=yes
10700else
10701  ac_compiler_gnu=no
10702fi
10703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10705
10706fi
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10708$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10709if test $ac_compiler_gnu = yes; then
10710  GXX=yes
10711else
10712  GXX=
10713fi
10714ac_test_CXXFLAGS=${CXXFLAGS+set}
10715ac_save_CXXFLAGS=$CXXFLAGS
10716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10717$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10718if test "${ac_cv_prog_cxx_g+set}" = set; then :
10719  $as_echo_n "(cached) " >&6
10720else
10721  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10722   ac_cxx_werror_flag=yes
10723   ac_cv_prog_cxx_g=no
10724   CXXFLAGS="-g"
10725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726/* end confdefs.h.  */
10727
10728int
10729main ()
10730{
10731
10732  ;
10733  return 0;
10734}
10735_ACEOF
10736if ac_fn_cxx_try_compile "$LINENO"; then :
10737  ac_cv_prog_cxx_g=yes
10738else
10739  CXXFLAGS=""
10740      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741/* end confdefs.h.  */
10742
10743int
10744main ()
10745{
10746
10747  ;
10748  return 0;
10749}
10750_ACEOF
10751if ac_fn_cxx_try_compile "$LINENO"; then :
10752
10753else
10754  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10755	 CXXFLAGS="-g"
10756	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757/* end confdefs.h.  */
10758
10759int
10760main ()
10761{
10762
10763  ;
10764  return 0;
10765}
10766_ACEOF
10767if ac_fn_cxx_try_compile "$LINENO"; then :
10768  ac_cv_prog_cxx_g=yes
10769fi
10770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771fi
10772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773fi
10774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10775   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10776fi
10777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10778$as_echo "$ac_cv_prog_cxx_g" >&6; }
10779if test "$ac_test_CXXFLAGS" = set; then
10780  CXXFLAGS=$ac_save_CXXFLAGS
10781elif test $ac_cv_prog_cxx_g = yes; then
10782  if test "$GXX" = yes; then
10783    CXXFLAGS="-g -O2"
10784  else
10785    CXXFLAGS="-g"
10786  fi
10787else
10788  if test "$GXX" = yes; then
10789    CXXFLAGS="-O2"
10790  else
10791    CXXFLAGS=
10792  fi
10793fi
10794ac_ext=c
10795ac_cpp='$CPP $CPPFLAGS'
10796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798ac_compiler_gnu=$ac_cv_c_compiler_gnu
10799
10800depcc="$CXX"  am_compiler_list=
10801
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10803$as_echo_n "checking dependency style of $depcc... " >&6; }
10804if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10805  $as_echo_n "(cached) " >&6
10806else
10807  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10808  # We make a subdir and do the tests there.  Otherwise we can end up
10809  # making bogus files that we don't know about and never remove.  For
10810  # instance it was reported that on HP-UX the gcc test will end up
10811  # making a dummy file named `D' -- because `-MD' means `put the output
10812  # in D'.
10813  mkdir conftest.dir
10814  # Copy depcomp to subdir because otherwise we won't find it if we're
10815  # using a relative directory.
10816  cp "$am_depcomp" conftest.dir
10817  cd conftest.dir
10818  # We will build objects and dependencies in a subdirectory because
10819  # it helps to detect inapplicable dependency modes.  For instance
10820  # both Tru64's cc and ICC support -MD to output dependencies as a
10821  # side effect of compilation, but ICC will put the dependencies in
10822  # the current directory while Tru64 will put them in the object
10823  # directory.
10824  mkdir sub
10825
10826  am_cv_CXX_dependencies_compiler_type=none
10827  if test "$am_compiler_list" = ""; then
10828     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10829  fi
10830  am__universal=false
10831  case " $depcc " in #(
10832     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10833     esac
10834
10835  for depmode in $am_compiler_list; do
10836    # Setup a source with many dependencies, because some compilers
10837    # like to wrap large dependency lists on column 80 (with \), and
10838    # we should not choose a depcomp mode which is confused by this.
10839    #
10840    # We need to recreate these files for each test, as the compiler may
10841    # overwrite some of them when testing with obscure command lines.
10842    # This happens at least with the AIX C compiler.
10843    : > sub/conftest.c
10844    for i in 1 2 3 4 5 6; do
10845      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10846      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10847      # Solaris 8's {/usr,}/bin/sh.
10848      touch sub/conftst$i.h
10849    done
10850    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10851
10852    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10853    # mode.  It turns out that the SunPro C++ compiler does not properly
10854    # handle `-M -o', and we need to detect this.  Also, some Intel
10855    # versions had trouble with output in subdirs
10856    am__obj=sub/conftest.${OBJEXT-o}
10857    am__minus_obj="-o $am__obj"
10858    case $depmode in
10859    gcc)
10860      # This depmode causes a compiler race in universal mode.
10861      test "$am__universal" = false || continue
10862      ;;
10863    nosideeffect)
10864      # after this tag, mechanisms are not by side-effect, so they'll
10865      # only be used when explicitly requested
10866      if test "x$enable_dependency_tracking" = xyes; then
10867	continue
10868      else
10869	break
10870      fi
10871      ;;
10872    msvisualcpp | msvcmsys)
10873      # This compiler won't grok `-c -o', but also, the minuso test has
10874      # not run yet.  These depmodes are late enough in the game, and
10875      # so weak that their functioning should not be impacted.
10876      am__obj=conftest.${OBJEXT-o}
10877      am__minus_obj=
10878      ;;
10879    none) break ;;
10880    esac
10881    if depmode=$depmode \
10882       source=sub/conftest.c object=$am__obj \
10883       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10884       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10885         >/dev/null 2>conftest.err &&
10886       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10887       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10888       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10889       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10890      # icc doesn't choke on unknown options, it will just issue warnings
10891      # or remarks (even with -Werror).  So we grep stderr for any message
10892      # that says an option was ignored or not supported.
10893      # When given -MP, icc 7.0 and 7.1 complain thusly:
10894      #   icc: Command line warning: ignoring option '-M'; no argument required
10895      # The diagnosis changed in icc 8.0:
10896      #   icc: Command line remark: option '-MP' not supported
10897      if (grep 'ignoring option' conftest.err ||
10898          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10899        am_cv_CXX_dependencies_compiler_type=$depmode
10900        break
10901      fi
10902    fi
10903  done
10904
10905  cd ..
10906  rm -rf conftest.dir
10907else
10908  am_cv_CXX_dependencies_compiler_type=none
10909fi
10910
10911fi
10912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10913$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10914CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10915
10916 if
10917  test "x$enable_dependency_tracking" != xno \
10918  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10919  am__fastdepCXX_TRUE=
10920  am__fastdepCXX_FALSE='#'
10921else
10922  am__fastdepCXX_TRUE='#'
10923  am__fastdepCXX_FALSE=
10924fi
10925
10926
10927
10928ac_ext=cpp
10929ac_cpp='$CXXCPP $CPPFLAGS'
10930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10933if test -z "$CXX"; then
10934  if test -n "$CCC"; then
10935    CXX=$CCC
10936  else
10937    if test -n "$ac_tool_prefix"; then
10938  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10939  do
10940    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943$as_echo_n "checking for $ac_word... " >&6; }
10944if test "${ac_cv_prog_CXX+set}" = set; then :
10945  $as_echo_n "(cached) " >&6
10946else
10947  if test -n "$CXX"; then
10948  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10949else
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953  IFS=$as_save_IFS
10954  test -z "$as_dir" && as_dir=.
10955    for ac_exec_ext in '' $ac_executable_extensions; do
10956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10957    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10959    break 2
10960  fi
10961done
10962  done
10963IFS=$as_save_IFS
10964
10965fi
10966fi
10967CXX=$ac_cv_prog_CXX
10968if test -n "$CXX"; then
10969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10970$as_echo "$CXX" >&6; }
10971else
10972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973$as_echo "no" >&6; }
10974fi
10975
10976
10977    test -n "$CXX" && break
10978  done
10979fi
10980if test -z "$CXX"; then
10981  ac_ct_CXX=$CXX
10982  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10983do
10984  # Extract the first word of "$ac_prog", so it can be a program name with args.
10985set dummy $ac_prog; ac_word=$2
10986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987$as_echo_n "checking for $ac_word... " >&6; }
10988if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10989  $as_echo_n "(cached) " >&6
10990else
10991  if test -n "$ac_ct_CXX"; then
10992  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10993else
10994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997  IFS=$as_save_IFS
10998  test -z "$as_dir" && as_dir=.
10999    for ac_exec_ext in '' $ac_executable_extensions; do
11000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11001    ac_cv_prog_ac_ct_CXX="$ac_prog"
11002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11003    break 2
11004  fi
11005done
11006  done
11007IFS=$as_save_IFS
11008
11009fi
11010fi
11011ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11012if test -n "$ac_ct_CXX"; then
11013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11014$as_echo "$ac_ct_CXX" >&6; }
11015else
11016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017$as_echo "no" >&6; }
11018fi
11019
11020
11021  test -n "$ac_ct_CXX" && break
11022done
11023
11024  if test "x$ac_ct_CXX" = x; then
11025    CXX="g++"
11026  else
11027    case $cross_compiling:$ac_tool_warned in
11028yes:)
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11031ac_tool_warned=yes ;;
11032esac
11033    CXX=$ac_ct_CXX
11034  fi
11035fi
11036
11037  fi
11038fi
11039# Provide some information about the compiler.
11040$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11041set X $ac_compile
11042ac_compiler=$2
11043for ac_option in --version -v -V -qversion; do
11044  { { ac_try="$ac_compiler $ac_option >&5"
11045case "(($ac_try" in
11046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047  *) ac_try_echo=$ac_try;;
11048esac
11049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11050$as_echo "$ac_try_echo"; } >&5
11051  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11052  ac_status=$?
11053  if test -s conftest.err; then
11054    sed '10a\
11055... rest of stderr output deleted ...
11056         10q' conftest.err >conftest.er1
11057    cat conftest.er1 >&5
11058  fi
11059  rm -f conftest.er1 conftest.err
11060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11061  test $ac_status = 0; }
11062done
11063
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11065$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11066if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11067  $as_echo_n "(cached) " >&6
11068else
11069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070/* end confdefs.h.  */
11071
11072int
11073main ()
11074{
11075#ifndef __GNUC__
11076       choke me
11077#endif
11078
11079  ;
11080  return 0;
11081}
11082_ACEOF
11083if ac_fn_cxx_try_compile "$LINENO"; then :
11084  ac_compiler_gnu=yes
11085else
11086  ac_compiler_gnu=no
11087fi
11088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11090
11091fi
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11093$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11094if test $ac_compiler_gnu = yes; then
11095  GXX=yes
11096else
11097  GXX=
11098fi
11099ac_test_CXXFLAGS=${CXXFLAGS+set}
11100ac_save_CXXFLAGS=$CXXFLAGS
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11102$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11103if test "${ac_cv_prog_cxx_g+set}" = set; then :
11104  $as_echo_n "(cached) " >&6
11105else
11106  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11107   ac_cxx_werror_flag=yes
11108   ac_cv_prog_cxx_g=no
11109   CXXFLAGS="-g"
11110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111/* end confdefs.h.  */
11112
11113int
11114main ()
11115{
11116
11117  ;
11118  return 0;
11119}
11120_ACEOF
11121if ac_fn_cxx_try_compile "$LINENO"; then :
11122  ac_cv_prog_cxx_g=yes
11123else
11124  CXXFLAGS=""
11125      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126/* end confdefs.h.  */
11127
11128int
11129main ()
11130{
11131
11132  ;
11133  return 0;
11134}
11135_ACEOF
11136if ac_fn_cxx_try_compile "$LINENO"; then :
11137
11138else
11139  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11140	 CXXFLAGS="-g"
11141	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142/* end confdefs.h.  */
11143
11144int
11145main ()
11146{
11147
11148  ;
11149  return 0;
11150}
11151_ACEOF
11152if ac_fn_cxx_try_compile "$LINENO"; then :
11153  ac_cv_prog_cxx_g=yes
11154fi
11155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156fi
11157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158fi
11159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11161fi
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11163$as_echo "$ac_cv_prog_cxx_g" >&6; }
11164if test "$ac_test_CXXFLAGS" = set; then
11165  CXXFLAGS=$ac_save_CXXFLAGS
11166elif test $ac_cv_prog_cxx_g = yes; then
11167  if test "$GXX" = yes; then
11168    CXXFLAGS="-g -O2"
11169  else
11170    CXXFLAGS="-g"
11171  fi
11172else
11173  if test "$GXX" = yes; then
11174    CXXFLAGS="-O2"
11175  else
11176    CXXFLAGS=
11177  fi
11178fi
11179ac_ext=c
11180ac_cpp='$CPP $CPPFLAGS'
11181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11183ac_compiler_gnu=$ac_cv_c_compiler_gnu
11184
11185depcc="$CXX"  am_compiler_list=
11186
11187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11188$as_echo_n "checking dependency style of $depcc... " >&6; }
11189if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11190  $as_echo_n "(cached) " >&6
11191else
11192  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11193  # We make a subdir and do the tests there.  Otherwise we can end up
11194  # making bogus files that we don't know about and never remove.  For
11195  # instance it was reported that on HP-UX the gcc test will end up
11196  # making a dummy file named `D' -- because `-MD' means `put the output
11197  # in D'.
11198  mkdir conftest.dir
11199  # Copy depcomp to subdir because otherwise we won't find it if we're
11200  # using a relative directory.
11201  cp "$am_depcomp" conftest.dir
11202  cd conftest.dir
11203  # We will build objects and dependencies in a subdirectory because
11204  # it helps to detect inapplicable dependency modes.  For instance
11205  # both Tru64's cc and ICC support -MD to output dependencies as a
11206  # side effect of compilation, but ICC will put the dependencies in
11207  # the current directory while Tru64 will put them in the object
11208  # directory.
11209  mkdir sub
11210
11211  am_cv_CXX_dependencies_compiler_type=none
11212  if test "$am_compiler_list" = ""; then
11213     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11214  fi
11215  am__universal=false
11216  case " $depcc " in #(
11217     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11218     esac
11219
11220  for depmode in $am_compiler_list; do
11221    # Setup a source with many dependencies, because some compilers
11222    # like to wrap large dependency lists on column 80 (with \), and
11223    # we should not choose a depcomp mode which is confused by this.
11224    #
11225    # We need to recreate these files for each test, as the compiler may
11226    # overwrite some of them when testing with obscure command lines.
11227    # This happens at least with the AIX C compiler.
11228    : > sub/conftest.c
11229    for i in 1 2 3 4 5 6; do
11230      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11231      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11232      # Solaris 8's {/usr,}/bin/sh.
11233      touch sub/conftst$i.h
11234    done
11235    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11236
11237    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11238    # mode.  It turns out that the SunPro C++ compiler does not properly
11239    # handle `-M -o', and we need to detect this.  Also, some Intel
11240    # versions had trouble with output in subdirs
11241    am__obj=sub/conftest.${OBJEXT-o}
11242    am__minus_obj="-o $am__obj"
11243    case $depmode in
11244    gcc)
11245      # This depmode causes a compiler race in universal mode.
11246      test "$am__universal" = false || continue
11247      ;;
11248    nosideeffect)
11249      # after this tag, mechanisms are not by side-effect, so they'll
11250      # only be used when explicitly requested
11251      if test "x$enable_dependency_tracking" = xyes; then
11252	continue
11253      else
11254	break
11255      fi
11256      ;;
11257    msvisualcpp | msvcmsys)
11258      # This compiler won't grok `-c -o', but also, the minuso test has
11259      # not run yet.  These depmodes are late enough in the game, and
11260      # so weak that their functioning should not be impacted.
11261      am__obj=conftest.${OBJEXT-o}
11262      am__minus_obj=
11263      ;;
11264    none) break ;;
11265    esac
11266    if depmode=$depmode \
11267       source=sub/conftest.c object=$am__obj \
11268       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11269       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11270         >/dev/null 2>conftest.err &&
11271       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11272       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11273       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11274       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11275      # icc doesn't choke on unknown options, it will just issue warnings
11276      # or remarks (even with -Werror).  So we grep stderr for any message
11277      # that says an option was ignored or not supported.
11278      # When given -MP, icc 7.0 and 7.1 complain thusly:
11279      #   icc: Command line warning: ignoring option '-M'; no argument required
11280      # The diagnosis changed in icc 8.0:
11281      #   icc: Command line remark: option '-MP' not supported
11282      if (grep 'ignoring option' conftest.err ||
11283          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11284        am_cv_CXX_dependencies_compiler_type=$depmode
11285        break
11286      fi
11287    fi
11288  done
11289
11290  cd ..
11291  rm -rf conftest.dir
11292else
11293  am_cv_CXX_dependencies_compiler_type=none
11294fi
11295
11296fi
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11298$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11299CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11300
11301 if
11302  test "x$enable_dependency_tracking" != xno \
11303  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11304  am__fastdepCXX_TRUE=
11305  am__fastdepCXX_FALSE='#'
11306else
11307  am__fastdepCXX_TRUE='#'
11308  am__fastdepCXX_FALSE=
11309fi
11310
11311
11312if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11313    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11314    (test "X$CXX" != "Xg++"))) ; then
11315  ac_ext=cpp
11316ac_cpp='$CXXCPP $CPPFLAGS'
11317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11321$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11322if test -z "$CXXCPP"; then
11323  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11324  $as_echo_n "(cached) " >&6
11325else
11326      # Double quotes because CXXCPP needs to be expanded
11327    for CXXCPP in "$CXX -E" "/lib/cpp"
11328    do
11329      ac_preproc_ok=false
11330for ac_cxx_preproc_warn_flag in '' yes
11331do
11332  # Use a header file that comes with gcc, so configuring glibc
11333  # with a fresh cross-compiler works.
11334  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11335  # <limits.h> exists even on freestanding compilers.
11336  # On the NeXT, cc -E runs the code through the compiler's parser,
11337  # not just through cpp. "Syntax error" is here to catch this case.
11338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339/* end confdefs.h.  */
11340#ifdef __STDC__
11341# include <limits.h>
11342#else
11343# include <assert.h>
11344#endif
11345		     Syntax error
11346_ACEOF
11347if ac_fn_cxx_try_cpp "$LINENO"; then :
11348
11349else
11350  # Broken: fails on valid input.
11351continue
11352fi
11353rm -f conftest.err conftest.$ac_ext
11354
11355  # OK, works on sane cases.  Now check whether nonexistent headers
11356  # can be detected and how.
11357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358/* end confdefs.h.  */
11359#include <ac_nonexistent.h>
11360_ACEOF
11361if ac_fn_cxx_try_cpp "$LINENO"; then :
11362  # Broken: success on invalid input.
11363continue
11364else
11365  # Passes both tests.
11366ac_preproc_ok=:
11367break
11368fi
11369rm -f conftest.err conftest.$ac_ext
11370
11371done
11372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11373rm -f conftest.err conftest.$ac_ext
11374if $ac_preproc_ok; then :
11375  break
11376fi
11377
11378    done
11379    ac_cv_prog_CXXCPP=$CXXCPP
11380
11381fi
11382  CXXCPP=$ac_cv_prog_CXXCPP
11383else
11384  ac_cv_prog_CXXCPP=$CXXCPP
11385fi
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11387$as_echo "$CXXCPP" >&6; }
11388ac_preproc_ok=false
11389for ac_cxx_preproc_warn_flag in '' yes
11390do
11391  # Use a header file that comes with gcc, so configuring glibc
11392  # with a fresh cross-compiler works.
11393  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11394  # <limits.h> exists even on freestanding compilers.
11395  # On the NeXT, cc -E runs the code through the compiler's parser,
11396  # not just through cpp. "Syntax error" is here to catch this case.
11397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398/* end confdefs.h.  */
11399#ifdef __STDC__
11400# include <limits.h>
11401#else
11402# include <assert.h>
11403#endif
11404		     Syntax error
11405_ACEOF
11406if ac_fn_cxx_try_cpp "$LINENO"; then :
11407
11408else
11409  # Broken: fails on valid input.
11410continue
11411fi
11412rm -f conftest.err conftest.$ac_ext
11413
11414  # OK, works on sane cases.  Now check whether nonexistent headers
11415  # can be detected and how.
11416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417/* end confdefs.h.  */
11418#include <ac_nonexistent.h>
11419_ACEOF
11420if ac_fn_cxx_try_cpp "$LINENO"; then :
11421  # Broken: success on invalid input.
11422continue
11423else
11424  # Passes both tests.
11425ac_preproc_ok=:
11426break
11427fi
11428rm -f conftest.err conftest.$ac_ext
11429
11430done
11431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11432rm -f conftest.err conftest.$ac_ext
11433if $ac_preproc_ok; then :
11434
11435else
11436  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11438_lt_caught_CXX_error=yes; }
11439fi
11440
11441ac_ext=c
11442ac_cpp='$CPP $CPPFLAGS'
11443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11445ac_compiler_gnu=$ac_cv_c_compiler_gnu
11446
11447else
11448  _lt_caught_CXX_error=yes
11449fi
11450
11451
11452
11453
11454ac_ext=cpp
11455ac_cpp='$CXXCPP $CPPFLAGS'
11456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11459
11460archive_cmds_need_lc_CXX=no
11461allow_undefined_flag_CXX=
11462always_export_symbols_CXX=no
11463archive_expsym_cmds_CXX=
11464compiler_needs_object_CXX=no
11465export_dynamic_flag_spec_CXX=
11466hardcode_direct_CXX=no
11467hardcode_direct_absolute_CXX=no
11468hardcode_libdir_flag_spec_CXX=
11469hardcode_libdir_flag_spec_ld_CXX=
11470hardcode_libdir_separator_CXX=
11471hardcode_minus_L_CXX=no
11472hardcode_shlibpath_var_CXX=unsupported
11473hardcode_automatic_CXX=no
11474inherit_rpath_CXX=no
11475module_cmds_CXX=
11476module_expsym_cmds_CXX=
11477link_all_deplibs_CXX=unknown
11478old_archive_cmds_CXX=$old_archive_cmds
11479no_undefined_flag_CXX=
11480whole_archive_flag_spec_CXX=
11481enable_shared_with_static_runtimes_CXX=no
11482
11483# Source file extension for C++ test sources.
11484ac_ext=cpp
11485
11486# Object file extension for compiled C++ test sources.
11487objext=o
11488objext_CXX=$objext
11489
11490# No sense in running all these tests if we already determined that
11491# the CXX compiler isn't working.  Some variables (like enable_shared)
11492# are currently assumed to apply to all compilers on this platform,
11493# and will be corrupted by setting them based on a non-working compiler.
11494if test "$_lt_caught_CXX_error" != yes; then
11495  # Code to be used in simple compile tests
11496  lt_simple_compile_test_code="int some_variable = 0;"
11497
11498  # Code to be used in simple link tests
11499  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11500
11501  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11502
11503
11504
11505
11506
11507
11508# If no C compiler was specified, use CC.
11509LTCC=${LTCC-"$CC"}
11510
11511# If no C compiler flags were specified, use CFLAGS.
11512LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11513
11514# Allow CC to be a program name with arguments.
11515compiler=$CC
11516
11517
11518  # save warnings/boilerplate of simple test code
11519  ac_outfile=conftest.$ac_objext
11520echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11521eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11522_lt_compiler_boilerplate=`cat conftest.err`
11523$RM conftest*
11524
11525  ac_outfile=conftest.$ac_objext
11526echo "$lt_simple_link_test_code" >conftest.$ac_ext
11527eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11528_lt_linker_boilerplate=`cat conftest.err`
11529$RM -r conftest*
11530
11531
11532  # Allow CC to be a program name with arguments.
11533  lt_save_CC=$CC
11534  lt_save_LD=$LD
11535  lt_save_GCC=$GCC
11536  GCC=$GXX
11537  lt_save_with_gnu_ld=$with_gnu_ld
11538  lt_save_path_LD=$lt_cv_path_LD
11539  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11540    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11541  else
11542    $as_unset lt_cv_prog_gnu_ld
11543  fi
11544  if test -n "${lt_cv_path_LDCXX+set}"; then
11545    lt_cv_path_LD=$lt_cv_path_LDCXX
11546  else
11547    $as_unset lt_cv_path_LD
11548  fi
11549  test -z "${LDCXX+set}" || LD=$LDCXX
11550  CC=${CXX-"c++"}
11551  compiler=$CC
11552  compiler_CXX=$CC
11553  for cc_temp in $compiler""; do
11554  case $cc_temp in
11555    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11556    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11557    \-*) ;;
11558    *) break;;
11559  esac
11560done
11561cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11562
11563
11564  if test -n "$compiler"; then
11565    # We don't want -fno-exception when compiling C++ code, so set the
11566    # no_builtin_flag separately
11567    if test "$GXX" = yes; then
11568      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11569    else
11570      lt_prog_compiler_no_builtin_flag_CXX=
11571    fi
11572
11573    if test "$GXX" = yes; then
11574      # Set up default GNU C++ configuration
11575
11576
11577
11578# Check whether --with-gnu-ld was given.
11579if test "${with_gnu_ld+set}" = set; then :
11580  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11581else
11582  with_gnu_ld=no
11583fi
11584
11585ac_prog=ld
11586if test "$GCC" = yes; then
11587  # Check if gcc -print-prog-name=ld gives a path.
11588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11589$as_echo_n "checking for ld used by $CC... " >&6; }
11590  case $host in
11591  *-*-mingw*)
11592    # gcc leaves a trailing carriage return which upsets mingw
11593    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11594  *)
11595    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11596  esac
11597  case $ac_prog in
11598    # Accept absolute paths.
11599    [\\/]* | ?:[\\/]*)
11600      re_direlt='/[^/][^/]*/\.\./'
11601      # Canonicalize the pathname of ld
11602      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11603      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11604	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11605      done
11606      test -z "$LD" && LD="$ac_prog"
11607      ;;
11608  "")
11609    # If it fails, then pretend we aren't using GCC.
11610    ac_prog=ld
11611    ;;
11612  *)
11613    # If it is relative, then search for the first ld in PATH.
11614    with_gnu_ld=unknown
11615    ;;
11616  esac
11617elif test "$with_gnu_ld" = yes; then
11618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11619$as_echo_n "checking for GNU ld... " >&6; }
11620else
11621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11622$as_echo_n "checking for non-GNU ld... " >&6; }
11623fi
11624if test "${lt_cv_path_LD+set}" = set; then :
11625  $as_echo_n "(cached) " >&6
11626else
11627  if test -z "$LD"; then
11628  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11629  for ac_dir in $PATH; do
11630    IFS="$lt_save_ifs"
11631    test -z "$ac_dir" && ac_dir=.
11632    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11633      lt_cv_path_LD="$ac_dir/$ac_prog"
11634      # Check to see if the program is GNU ld.  I'd rather use --version,
11635      # but apparently some variants of GNU ld only accept -v.
11636      # Break only if it was the GNU/non-GNU ld that we prefer.
11637      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11638      *GNU* | *'with BFD'*)
11639	test "$with_gnu_ld" != no && break
11640	;;
11641      *)
11642	test "$with_gnu_ld" != yes && break
11643	;;
11644      esac
11645    fi
11646  done
11647  IFS="$lt_save_ifs"
11648else
11649  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11650fi
11651fi
11652
11653LD="$lt_cv_path_LD"
11654if test -n "$LD"; then
11655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11656$as_echo "$LD" >&6; }
11657else
11658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659$as_echo "no" >&6; }
11660fi
11661test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11663$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11664if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11665  $as_echo_n "(cached) " >&6
11666else
11667  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11668case `$LD -v 2>&1 </dev/null` in
11669*GNU* | *'with BFD'*)
11670  lt_cv_prog_gnu_ld=yes
11671  ;;
11672*)
11673  lt_cv_prog_gnu_ld=no
11674  ;;
11675esac
11676fi
11677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11678$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11679with_gnu_ld=$lt_cv_prog_gnu_ld
11680
11681
11682
11683
11684
11685
11686
11687      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11688      # archiving commands below assume that GNU ld is being used.
11689      if test "$with_gnu_ld" = yes; then
11690        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11691        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11692
11693        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11694        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11695
11696        # If archive_cmds runs LD, not CC, wlarc should be empty
11697        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11698        #     investigate it a little bit more. (MM)
11699        wlarc='${wl}'
11700
11701        # ancient GNU ld didn't support --whole-archive et. al.
11702        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11703	  $GREP 'no-whole-archive' > /dev/null; then
11704          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11705        else
11706          whole_archive_flag_spec_CXX=
11707        fi
11708      else
11709        with_gnu_ld=no
11710        wlarc=
11711
11712        # A generic and very simple default shared library creation
11713        # command for GNU C++ for the case where it uses the native
11714        # linker, instead of GNU ld.  If possible, this setting should
11715        # overridden to take advantage of the native linker features on
11716        # the platform it is being used on.
11717        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11718      fi
11719
11720      # Commands to make compiler produce verbose output that lists
11721      # what "hidden" libraries, object files and flags are used when
11722      # linking a shared library.
11723      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11724
11725    else
11726      GXX=no
11727      with_gnu_ld=no
11728      wlarc=
11729    fi
11730
11731    # PORTME: fill in a description of your system's C++ link characteristics
11732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11733$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11734    ld_shlibs_CXX=yes
11735    case $host_os in
11736      aix3*)
11737        # FIXME: insert proper C++ library support
11738        ld_shlibs_CXX=no
11739        ;;
11740      aix[4-9]*)
11741        if test "$host_cpu" = ia64; then
11742          # On IA64, the linker does run time linking by default, so we don't
11743          # have to do anything special.
11744          aix_use_runtimelinking=no
11745          exp_sym_flag='-Bexport'
11746          no_entry_flag=""
11747        else
11748          aix_use_runtimelinking=no
11749
11750          # Test if we are trying to use run time linking or normal
11751          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11752          # need to do runtime linking.
11753          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11754	    for ld_flag in $LDFLAGS; do
11755	      case $ld_flag in
11756	      *-brtl*)
11757	        aix_use_runtimelinking=yes
11758	        break
11759	        ;;
11760	      esac
11761	    done
11762	    ;;
11763          esac
11764
11765          exp_sym_flag='-bexport'
11766          no_entry_flag='-bnoentry'
11767        fi
11768
11769        # When large executables or shared objects are built, AIX ld can
11770        # have problems creating the table of contents.  If linking a library
11771        # or program results in "error TOC overflow" add -mminimal-toc to
11772        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11773        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11774
11775        archive_cmds_CXX=''
11776        hardcode_direct_CXX=yes
11777        hardcode_direct_absolute_CXX=yes
11778        hardcode_libdir_separator_CXX=':'
11779        link_all_deplibs_CXX=yes
11780        file_list_spec_CXX='${wl}-f,'
11781
11782        if test "$GXX" = yes; then
11783          case $host_os in aix4.[012]|aix4.[012].*)
11784          # We only want to do this on AIX 4.2 and lower, the check
11785          # below for broken collect2 doesn't work under 4.3+
11786	  collect2name=`${CC} -print-prog-name=collect2`
11787	  if test -f "$collect2name" &&
11788	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11789	  then
11790	    # We have reworked collect2
11791	    :
11792	  else
11793	    # We have old collect2
11794	    hardcode_direct_CXX=unsupported
11795	    # It fails to find uninstalled libraries when the uninstalled
11796	    # path is not listed in the libpath.  Setting hardcode_minus_L
11797	    # to unsupported forces relinking
11798	    hardcode_minus_L_CXX=yes
11799	    hardcode_libdir_flag_spec_CXX='-L$libdir'
11800	    hardcode_libdir_separator_CXX=
11801	  fi
11802          esac
11803          shared_flag='-shared'
11804	  if test "$aix_use_runtimelinking" = yes; then
11805	    shared_flag="$shared_flag "'${wl}-G'
11806	  fi
11807        else
11808          # not using gcc
11809          if test "$host_cpu" = ia64; then
11810	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11811	  # chokes on -Wl,-G. The following line is correct:
11812	  shared_flag='-G'
11813          else
11814	    if test "$aix_use_runtimelinking" = yes; then
11815	      shared_flag='${wl}-G'
11816	    else
11817	      shared_flag='${wl}-bM:SRE'
11818	    fi
11819          fi
11820        fi
11821
11822        export_dynamic_flag_spec_CXX='${wl}-bexpall'
11823        # It seems that -bexpall does not export symbols beginning with
11824        # underscore (_), so it is better to generate a list of symbols to
11825	# export.
11826        always_export_symbols_CXX=yes
11827        if test "$aix_use_runtimelinking" = yes; then
11828          # Warning - without using the other runtime loading flags (-brtl),
11829          # -berok will link without error, but may produce a broken library.
11830          allow_undefined_flag_CXX='-berok'
11831          # Determine the default libpath from the value encoded in an empty
11832          # executable.
11833          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834/* end confdefs.h.  */
11835
11836int
11837main ()
11838{
11839
11840  ;
11841  return 0;
11842}
11843_ACEOF
11844if ac_fn_cxx_try_link "$LINENO"; then :
11845
11846lt_aix_libpath_sed='
11847    /Import File Strings/,/^$/ {
11848	/^0/ {
11849	    s/^0  *\(.*\)$/\1/
11850	    p
11851	}
11852    }'
11853aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11854# Check for a 64-bit object if we didn't find anything.
11855if test -z "$aix_libpath"; then
11856  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11857fi
11858fi
11859rm -f core conftest.err conftest.$ac_objext \
11860    conftest$ac_exeext conftest.$ac_ext
11861if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11862
11863          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11864
11865          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11866        else
11867          if test "$host_cpu" = ia64; then
11868	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11869	    allow_undefined_flag_CXX="-z nodefs"
11870	    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"
11871          else
11872	    # Determine the default libpath from the value encoded in an
11873	    # empty executable.
11874	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875/* end confdefs.h.  */
11876
11877int
11878main ()
11879{
11880
11881  ;
11882  return 0;
11883}
11884_ACEOF
11885if ac_fn_cxx_try_link "$LINENO"; then :
11886
11887lt_aix_libpath_sed='
11888    /Import File Strings/,/^$/ {
11889	/^0/ {
11890	    s/^0  *\(.*\)$/\1/
11891	    p
11892	}
11893    }'
11894aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11895# Check for a 64-bit object if we didn't find anything.
11896if test -z "$aix_libpath"; then
11897  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11898fi
11899fi
11900rm -f core conftest.err conftest.$ac_objext \
11901    conftest$ac_exeext conftest.$ac_ext
11902if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11903
11904	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11905	    # Warning - without using the other run time loading flags,
11906	    # -berok will link without error, but may produce a broken library.
11907	    no_undefined_flag_CXX=' ${wl}-bernotok'
11908	    allow_undefined_flag_CXX=' ${wl}-berok'
11909	    # Exported symbols can be pulled into shared objects from archives
11910	    whole_archive_flag_spec_CXX='$convenience'
11911	    archive_cmds_need_lc_CXX=yes
11912	    # This is similar to how AIX traditionally builds its shared
11913	    # libraries.
11914	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11915          fi
11916        fi
11917        ;;
11918
11919      beos*)
11920	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11921	  allow_undefined_flag_CXX=unsupported
11922	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11923	  # support --undefined.  This deserves some investigation.  FIXME
11924	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11925	else
11926	  ld_shlibs_CXX=no
11927	fi
11928	;;
11929
11930      chorus*)
11931        case $cc_basename in
11932          *)
11933	  # FIXME: insert proper C++ library support
11934	  ld_shlibs_CXX=no
11935	  ;;
11936        esac
11937        ;;
11938
11939      cygwin* | mingw* | pw32* | cegcc*)
11940        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11941        # as there is no search path for DLLs.
11942        hardcode_libdir_flag_spec_CXX='-L$libdir'
11943        allow_undefined_flag_CXX=unsupported
11944        always_export_symbols_CXX=no
11945        enable_shared_with_static_runtimes_CXX=yes
11946
11947        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11948          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'
11949          # If the export-symbols file already is a .def file (1st line
11950          # is EXPORTS), use it as is; otherwise, prepend...
11951          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11952	    cp $export_symbols $output_objdir/$soname.def;
11953          else
11954	    echo EXPORTS > $output_objdir/$soname.def;
11955	    cat $export_symbols >> $output_objdir/$soname.def;
11956          fi~
11957          $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'
11958        else
11959          ld_shlibs_CXX=no
11960        fi
11961        ;;
11962      darwin* | rhapsody*)
11963
11964
11965  archive_cmds_need_lc_CXX=no
11966  hardcode_direct_CXX=no
11967  hardcode_automatic_CXX=yes
11968  hardcode_shlibpath_var_CXX=unsupported
11969  whole_archive_flag_spec_CXX=''
11970  link_all_deplibs_CXX=yes
11971  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11972  case $cc_basename in
11973     ifort*) _lt_dar_can_shared=yes ;;
11974     *) _lt_dar_can_shared=$GCC ;;
11975  esac
11976  if test "$_lt_dar_can_shared" = "yes"; then
11977    output_verbose_link_cmd=echo
11978    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}"
11979    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11980    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}"
11981    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}"
11982       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11983      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}"
11984      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}"
11985    fi
11986
11987  else
11988  ld_shlibs_CXX=no
11989  fi
11990
11991	;;
11992
11993      dgux*)
11994        case $cc_basename in
11995          ec++*)
11996	    # FIXME: insert proper C++ library support
11997	    ld_shlibs_CXX=no
11998	    ;;
11999          ghcx*)
12000	    # Green Hills C++ Compiler
12001	    # FIXME: insert proper C++ library support
12002	    ld_shlibs_CXX=no
12003	    ;;
12004          *)
12005	    # FIXME: insert proper C++ library support
12006	    ld_shlibs_CXX=no
12007	    ;;
12008        esac
12009        ;;
12010
12011      freebsd[12]*)
12012        # C++ shared libraries reported to be fairly broken before
12013	# switch to ELF
12014        ld_shlibs_CXX=no
12015        ;;
12016
12017      freebsd-elf*)
12018        archive_cmds_need_lc_CXX=no
12019        ;;
12020
12021      freebsd* | dragonfly*)
12022        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12023        # conventions
12024        ld_shlibs_CXX=yes
12025        ;;
12026
12027      gnu*)
12028        ;;
12029
12030      hpux9*)
12031        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12032        hardcode_libdir_separator_CXX=:
12033        export_dynamic_flag_spec_CXX='${wl}-E'
12034        hardcode_direct_CXX=yes
12035        hardcode_minus_L_CXX=yes # Not in the search PATH,
12036				             # but as the default
12037				             # location of the library.
12038
12039        case $cc_basename in
12040          CC*)
12041            # FIXME: insert proper C++ library support
12042            ld_shlibs_CXX=no
12043            ;;
12044          aCC*)
12045            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12046            # Commands to make compiler produce verbose output that lists
12047            # what "hidden" libraries, object files and flags are used when
12048            # linking a shared library.
12049            #
12050            # There doesn't appear to be a way to prevent this compiler from
12051            # explicitly linking system object files so we need to strip them
12052            # from the output so that they don't get included in the library
12053            # dependencies.
12054            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; $ECHO "X$list" | $Xsed'
12055            ;;
12056          *)
12057            if test "$GXX" = yes; then
12058              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12059            else
12060              # FIXME: insert proper C++ library support
12061              ld_shlibs_CXX=no
12062            fi
12063            ;;
12064        esac
12065        ;;
12066
12067      hpux10*|hpux11*)
12068        if test $with_gnu_ld = no; then
12069	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12070	  hardcode_libdir_separator_CXX=:
12071
12072          case $host_cpu in
12073            hppa*64*|ia64*)
12074              ;;
12075            *)
12076	      export_dynamic_flag_spec_CXX='${wl}-E'
12077              ;;
12078          esac
12079        fi
12080        case $host_cpu in
12081          hppa*64*|ia64*)
12082            hardcode_direct_CXX=no
12083            hardcode_shlibpath_var_CXX=no
12084            ;;
12085          *)
12086            hardcode_direct_CXX=yes
12087            hardcode_direct_absolute_CXX=yes
12088            hardcode_minus_L_CXX=yes # Not in the search PATH,
12089					         # but as the default
12090					         # location of the library.
12091            ;;
12092        esac
12093
12094        case $cc_basename in
12095          CC*)
12096	    # FIXME: insert proper C++ library support
12097	    ld_shlibs_CXX=no
12098	    ;;
12099          aCC*)
12100	    case $host_cpu in
12101	      hppa*64*)
12102	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12103	        ;;
12104	      ia64*)
12105	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12106	        ;;
12107	      *)
12108	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12109	        ;;
12110	    esac
12111	    # Commands to make compiler produce verbose output that lists
12112	    # what "hidden" libraries, object files and flags are used when
12113	    # linking a shared library.
12114	    #
12115	    # There doesn't appear to be a way to prevent this compiler from
12116	    # explicitly linking system object files so we need to strip them
12117	    # from the output so that they don't get included in the library
12118	    # dependencies.
12119	    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; $ECHO "X$list" | $Xsed'
12120	    ;;
12121          *)
12122	    if test "$GXX" = yes; then
12123	      if test $with_gnu_ld = no; then
12124	        case $host_cpu in
12125	          hppa*64*)
12126	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12127	            ;;
12128	          ia64*)
12129	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12130	            ;;
12131	          *)
12132	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12133	            ;;
12134	        esac
12135	      fi
12136	    else
12137	      # FIXME: insert proper C++ library support
12138	      ld_shlibs_CXX=no
12139	    fi
12140	    ;;
12141        esac
12142        ;;
12143
12144      interix[3-9]*)
12145	hardcode_direct_CXX=no
12146	hardcode_shlibpath_var_CXX=no
12147	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12148	export_dynamic_flag_spec_CXX='${wl}-E'
12149	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12150	# Instead, shared libraries are loaded at an image base (0x10000000 by
12151	# default) and relocated if they conflict, which is a slow very memory
12152	# consuming and fragmenting process.  To avoid this, we pick a random,
12153	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12154	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12155	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'
12156	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'
12157	;;
12158      irix5* | irix6*)
12159        case $cc_basename in
12160          CC*)
12161	    # SGI C++
12162	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12163
12164	    # Archives containing C++ object files must be created using
12165	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12166	    # necessary to make sure instantiated templates are included
12167	    # in the archive.
12168	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12169	    ;;
12170          *)
12171	    if test "$GXX" = yes; then
12172	      if test "$with_gnu_ld" = no; then
12173	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12174	      else
12175	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12176	      fi
12177	    fi
12178	    link_all_deplibs_CXX=yes
12179	    ;;
12180        esac
12181        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12182        hardcode_libdir_separator_CXX=:
12183        inherit_rpath_CXX=yes
12184        ;;
12185
12186      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12187        case $cc_basename in
12188          KCC*)
12189	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12190
12191	    # KCC will only create a shared library if the output file
12192	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12193	    # to its proper name (with version) after linking.
12194	    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'
12195	    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'
12196	    # Commands to make compiler produce verbose output that lists
12197	    # what "hidden" libraries, object files and flags are used when
12198	    # linking a shared library.
12199	    #
12200	    # There doesn't appear to be a way to prevent this compiler from
12201	    # explicitly linking system object files so we need to strip them
12202	    # from the output so that they don't get included in the library
12203	    # dependencies.
12204	    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; $ECHO "X$list" | $Xsed'
12205
12206	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12207	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12208
12209	    # Archives containing C++ object files must be created using
12210	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12211	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12212	    ;;
12213	  icpc* | ecpc* )
12214	    # Intel C++
12215	    with_gnu_ld=yes
12216	    # version 8.0 and above of icpc choke on multiply defined symbols
12217	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12218	    # earlier do not add the objects themselves.
12219	    case `$CC -V 2>&1` in
12220	      *"Version 7."*)
12221	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12222		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'
12223		;;
12224	      *)  # Version 8.0 or newer
12225	        tmp_idyn=
12226	        case $host_cpu in
12227		  ia64*) tmp_idyn=' -i_dynamic';;
12228		esac
12229	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12230		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'
12231		;;
12232	    esac
12233	    archive_cmds_need_lc_CXX=no
12234	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12235	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12236	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12237	    ;;
12238          pgCC* | pgcpp*)
12239            # Portland Group C++ compiler
12240	    case `$CC -V` in
12241	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12242	      prelink_cmds_CXX='tpldir=Template.dir~
12243		rm -rf $tpldir~
12244		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12245		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12246	      old_archive_cmds_CXX='tpldir=Template.dir~
12247		rm -rf $tpldir~
12248		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12249		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12250		$RANLIB $oldlib'
12251	      archive_cmds_CXX='tpldir=Template.dir~
12252		rm -rf $tpldir~
12253		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12254		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12255	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12256		rm -rf $tpldir~
12257		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12258		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12259	      ;;
12260	    *) # Version 6 will use weak symbols
12261	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12262	      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'
12263	      ;;
12264	    esac
12265
12266	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12267	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12268	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12269            ;;
12270	  cxx*)
12271	    # Compaq C++
12272	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12273	    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'
12274
12275	    runpath_var=LD_RUN_PATH
12276	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12277	    hardcode_libdir_separator_CXX=:
12278
12279	    # Commands to make compiler produce verbose output that lists
12280	    # what "hidden" libraries, object files and flags are used when
12281	    # linking a shared library.
12282	    #
12283	    # There doesn't appear to be a way to prevent this compiler from
12284	    # explicitly linking system object files so we need to strip them
12285	    # from the output so that they don't get included in the library
12286	    # dependencies.
12287	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12288	    ;;
12289	  xl*)
12290	    # IBM XL 8.0 on PPC, with GNU ld
12291	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12292	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12293	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12294	    if test "x$supports_anon_versioning" = xyes; then
12295	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12296		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12297		echo "local: *; };" >> $output_objdir/$libname.ver~
12298		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12299	    fi
12300	    ;;
12301	  *)
12302	    case `$CC -V 2>&1 | sed 5q` in
12303	    *Sun\ C*)
12304	      # Sun C++ 5.9
12305	      no_undefined_flag_CXX=' -zdefs'
12306	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12307	      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'
12308	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12309	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12310	      compiler_needs_object_CXX=yes
12311
12312	      # Not sure whether something based on
12313	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12314	      # would be better.
12315	      output_verbose_link_cmd='echo'
12316
12317	      # Archives containing C++ object files must be created using
12318	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12319	      # necessary to make sure instantiated templates are included
12320	      # in the archive.
12321	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12322	      ;;
12323	    esac
12324	    ;;
12325	esac
12326	;;
12327
12328      lynxos*)
12329        # FIXME: insert proper C++ library support
12330	ld_shlibs_CXX=no
12331	;;
12332
12333      m88k*)
12334        # FIXME: insert proper C++ library support
12335        ld_shlibs_CXX=no
12336	;;
12337
12338      mvs*)
12339        case $cc_basename in
12340          cxx*)
12341	    # FIXME: insert proper C++ library support
12342	    ld_shlibs_CXX=no
12343	    ;;
12344	  *)
12345	    # FIXME: insert proper C++ library support
12346	    ld_shlibs_CXX=no
12347	    ;;
12348	esac
12349	;;
12350
12351      netbsd*)
12352        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12353	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12354	  wlarc=
12355	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12356	  hardcode_direct_CXX=yes
12357	  hardcode_shlibpath_var_CXX=no
12358	fi
12359	# Workaround some broken pre-1.5 toolchains
12360	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12361	;;
12362
12363      *nto* | *qnx*)
12364        ld_shlibs_CXX=yes
12365	;;
12366
12367      openbsd2*)
12368        # C++ shared libraries are fairly broken
12369	ld_shlibs_CXX=no
12370	;;
12371
12372      openbsd*)
12373	if test -f /usr/libexec/ld.so; then
12374	  hardcode_direct_CXX=yes
12375	  hardcode_shlibpath_var_CXX=no
12376	  hardcode_direct_absolute_CXX=yes
12377	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12378	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12379	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12380	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12381	    export_dynamic_flag_spec_CXX='${wl}-E'
12382	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12383	  fi
12384	  output_verbose_link_cmd=echo
12385	else
12386	  ld_shlibs_CXX=no
12387	fi
12388	;;
12389
12390      osf3* | osf4* | osf5*)
12391        case $cc_basename in
12392          KCC*)
12393	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12394
12395	    # KCC will only create a shared library if the output file
12396	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12397	    # to its proper name (with version) after linking.
12398	    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'
12399
12400	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12401	    hardcode_libdir_separator_CXX=:
12402
12403	    # Archives containing C++ object files must be created using
12404	    # the KAI C++ compiler.
12405	    case $host in
12406	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12407	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12408	    esac
12409	    ;;
12410          RCC*)
12411	    # Rational C++ 2.4.1
12412	    # FIXME: insert proper C++ library support
12413	    ld_shlibs_CXX=no
12414	    ;;
12415          cxx*)
12416	    case $host in
12417	      osf3*)
12418	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12419	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12420	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12421		;;
12422	      *)
12423	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12424	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12425	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12426	          echo "-hidden">> $lib.exp~
12427	          $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12428	          $RM $lib.exp'
12429	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12430		;;
12431	    esac
12432
12433	    hardcode_libdir_separator_CXX=:
12434
12435	    # Commands to make compiler produce verbose output that lists
12436	    # what "hidden" libraries, object files and flags are used when
12437	    # linking a shared library.
12438	    #
12439	    # There doesn't appear to be a way to prevent this compiler from
12440	    # explicitly linking system object files so we need to strip them
12441	    # from the output so that they don't get included in the library
12442	    # dependencies.
12443	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12444	    ;;
12445	  *)
12446	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12447	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12448	      case $host in
12449	        osf3*)
12450	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12451		  ;;
12452	        *)
12453	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12454		  ;;
12455	      esac
12456
12457	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12458	      hardcode_libdir_separator_CXX=:
12459
12460	      # Commands to make compiler produce verbose output that lists
12461	      # what "hidden" libraries, object files and flags are used when
12462	      # linking a shared library.
12463	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12464
12465	    else
12466	      # FIXME: insert proper C++ library support
12467	      ld_shlibs_CXX=no
12468	    fi
12469	    ;;
12470        esac
12471        ;;
12472
12473      psos*)
12474        # FIXME: insert proper C++ library support
12475        ld_shlibs_CXX=no
12476        ;;
12477
12478      sunos4*)
12479        case $cc_basename in
12480          CC*)
12481	    # Sun C++ 4.x
12482	    # FIXME: insert proper C++ library support
12483	    ld_shlibs_CXX=no
12484	    ;;
12485          lcc*)
12486	    # Lucid
12487	    # FIXME: insert proper C++ library support
12488	    ld_shlibs_CXX=no
12489	    ;;
12490          *)
12491	    # FIXME: insert proper C++ library support
12492	    ld_shlibs_CXX=no
12493	    ;;
12494        esac
12495        ;;
12496
12497      solaris*)
12498        case $cc_basename in
12499          CC*)
12500	    # Sun C++ 4.2, 5.x and Centerline C++
12501            archive_cmds_need_lc_CXX=yes
12502	    no_undefined_flag_CXX=' -zdefs'
12503	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12504	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12505	      $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'
12506
12507	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12508	    hardcode_shlibpath_var_CXX=no
12509	    case $host_os in
12510	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12511	      *)
12512		# The compiler driver will combine and reorder linker options,
12513		# but understands `-z linker_flag'.
12514	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12515		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12516	        ;;
12517	    esac
12518	    link_all_deplibs_CXX=yes
12519
12520	    output_verbose_link_cmd='echo'
12521
12522	    # Archives containing C++ object files must be created using
12523	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12524	    # necessary to make sure instantiated templates are included
12525	    # in the archive.
12526	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12527	    ;;
12528          gcx*)
12529	    # Green Hills C++ Compiler
12530	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12531
12532	    # The C++ compiler must be used to create the archive.
12533	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12534	    ;;
12535          *)
12536	    # GNU C++ compiler with Solaris linker
12537	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12538	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12539	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12540	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12541	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12542		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12543
12544	        # Commands to make compiler produce verbose output that lists
12545	        # what "hidden" libraries, object files and flags are used when
12546	        # linking a shared library.
12547	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12548	      else
12549	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12550	        # platform.
12551	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12552	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12553		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12554
12555	        # Commands to make compiler produce verbose output that lists
12556	        # what "hidden" libraries, object files and flags are used when
12557	        # linking a shared library.
12558	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12559	      fi
12560
12561	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12562	      case $host_os in
12563		solaris2.[0-5] | solaris2.[0-5].*) ;;
12564		*)
12565		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12566		  ;;
12567	      esac
12568	    fi
12569	    ;;
12570        esac
12571        ;;
12572
12573    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12574      no_undefined_flag_CXX='${wl}-z,text'
12575      archive_cmds_need_lc_CXX=no
12576      hardcode_shlibpath_var_CXX=no
12577      runpath_var='LD_RUN_PATH'
12578
12579      case $cc_basename in
12580        CC*)
12581	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12582	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12583	  ;;
12584	*)
12585	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12586	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12587	  ;;
12588      esac
12589      ;;
12590
12591      sysv5* | sco3.2v5* | sco5v6*)
12592	# Note: We can NOT use -z defs as we might desire, because we do not
12593	# link with -lc, and that would cause any symbols used from libc to
12594	# always be unresolved, which means just about no library would
12595	# ever link correctly.  If we're not using GNU ld we use -z text
12596	# though, which does catch some bad symbols but isn't as heavy-handed
12597	# as -z defs.
12598	no_undefined_flag_CXX='${wl}-z,text'
12599	allow_undefined_flag_CXX='${wl}-z,nodefs'
12600	archive_cmds_need_lc_CXX=no
12601	hardcode_shlibpath_var_CXX=no
12602	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12603	hardcode_libdir_separator_CXX=':'
12604	link_all_deplibs_CXX=yes
12605	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12606	runpath_var='LD_RUN_PATH'
12607
12608	case $cc_basename in
12609          CC*)
12610	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12611	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12612	    ;;
12613	  *)
12614	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12615	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12616	    ;;
12617	esac
12618      ;;
12619
12620      tandem*)
12621        case $cc_basename in
12622          NCC*)
12623	    # NonStop-UX NCC 3.20
12624	    # FIXME: insert proper C++ library support
12625	    ld_shlibs_CXX=no
12626	    ;;
12627          *)
12628	    # FIXME: insert proper C++ library support
12629	    ld_shlibs_CXX=no
12630	    ;;
12631        esac
12632        ;;
12633
12634      vxworks*)
12635        # FIXME: insert proper C++ library support
12636        ld_shlibs_CXX=no
12637        ;;
12638
12639      *)
12640        # FIXME: insert proper C++ library support
12641        ld_shlibs_CXX=no
12642        ;;
12643    esac
12644
12645    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12646$as_echo "$ld_shlibs_CXX" >&6; }
12647    test "$ld_shlibs_CXX" = no && can_build_shared=no
12648
12649    GCC_CXX="$GXX"
12650    LD_CXX="$LD"
12651
12652    ## CAVEAT EMPTOR:
12653    ## There is no encapsulation within the following macros, do not change
12654    ## the running order or otherwise move them around unless you know exactly
12655    ## what you are doing...
12656    # Dependencies to place before and after the object being linked:
12657predep_objects_CXX=
12658postdep_objects_CXX=
12659predeps_CXX=
12660postdeps_CXX=
12661compiler_lib_search_path_CXX=
12662
12663cat > conftest.$ac_ext <<_LT_EOF
12664class Foo
12665{
12666public:
12667  Foo (void) { a = 0; }
12668private:
12669  int a;
12670};
12671_LT_EOF
12672
12673if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12674  (eval $ac_compile) 2>&5
12675  ac_status=$?
12676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12677  test $ac_status = 0; }; then
12678  # Parse the compiler output and extract the necessary
12679  # objects, libraries and library flags.
12680
12681  # Sentinel used to keep track of whether or not we are before
12682  # the conftest object file.
12683  pre_test_object_deps_done=no
12684
12685  for p in `eval "$output_verbose_link_cmd"`; do
12686    case $p in
12687
12688    -L* | -R* | -l*)
12689       # Some compilers place space between "-{L,R}" and the path.
12690       # Remove the space.
12691       if test $p = "-L" ||
12692          test $p = "-R"; then
12693	 prev=$p
12694	 continue
12695       else
12696	 prev=
12697       fi
12698
12699       if test "$pre_test_object_deps_done" = no; then
12700	 case $p in
12701	 -L* | -R*)
12702	   # Internal compiler library paths should come after those
12703	   # provided the user.  The postdeps already come after the
12704	   # user supplied libs so there is no need to process them.
12705	   if test -z "$compiler_lib_search_path_CXX"; then
12706	     compiler_lib_search_path_CXX="${prev}${p}"
12707	   else
12708	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12709	   fi
12710	   ;;
12711	 # The "-l" case would never come before the object being
12712	 # linked, so don't bother handling this case.
12713	 esac
12714       else
12715	 if test -z "$postdeps_CXX"; then
12716	   postdeps_CXX="${prev}${p}"
12717	 else
12718	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12719	 fi
12720       fi
12721       ;;
12722
12723    *.$objext)
12724       # This assumes that the test object file only shows up
12725       # once in the compiler output.
12726       if test "$p" = "conftest.$objext"; then
12727	 pre_test_object_deps_done=yes
12728	 continue
12729       fi
12730
12731       if test "$pre_test_object_deps_done" = no; then
12732	 if test -z "$predep_objects_CXX"; then
12733	   predep_objects_CXX="$p"
12734	 else
12735	   predep_objects_CXX="$predep_objects_CXX $p"
12736	 fi
12737       else
12738	 if test -z "$postdep_objects_CXX"; then
12739	   postdep_objects_CXX="$p"
12740	 else
12741	   postdep_objects_CXX="$postdep_objects_CXX $p"
12742	 fi
12743       fi
12744       ;;
12745
12746    *) ;; # Ignore the rest.
12747
12748    esac
12749  done
12750
12751  # Clean up.
12752  rm -f a.out a.exe
12753else
12754  echo "libtool.m4: error: problem compiling CXX test program"
12755fi
12756
12757$RM -f confest.$objext
12758
12759# PORTME: override above test on systems where it is broken
12760case $host_os in
12761interix[3-9]*)
12762  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12763  # hack all around it, let's just trust "g++" to DTRT.
12764  predep_objects_CXX=
12765  postdep_objects_CXX=
12766  postdeps_CXX=
12767  ;;
12768
12769linux*)
12770  case `$CC -V 2>&1 | sed 5q` in
12771  *Sun\ C*)
12772    # Sun C++ 5.9
12773
12774    # The more standards-conforming stlport4 library is
12775    # incompatible with the Cstd library. Avoid specifying
12776    # it if it's in CXXFLAGS. Ignore libCrun as
12777    # -library=stlport4 depends on it.
12778    case " $CXX $CXXFLAGS " in
12779    *" -library=stlport4 "*)
12780      solaris_use_stlport4=yes
12781      ;;
12782    esac
12783
12784    if test "$solaris_use_stlport4" != yes; then
12785      postdeps_CXX='-library=Cstd -library=Crun'
12786    fi
12787    ;;
12788  esac
12789  ;;
12790
12791solaris*)
12792  case $cc_basename in
12793  CC*)
12794    # The more standards-conforming stlport4 library is
12795    # incompatible with the Cstd library. Avoid specifying
12796    # it if it's in CXXFLAGS. Ignore libCrun as
12797    # -library=stlport4 depends on it.
12798    case " $CXX $CXXFLAGS " in
12799    *" -library=stlport4 "*)
12800      solaris_use_stlport4=yes
12801      ;;
12802    esac
12803
12804    # Adding this requires a known-good setup of shared libraries for
12805    # Sun compiler versions before 5.6, else PIC objects from an old
12806    # archive will be linked into the output, leading to subtle bugs.
12807    if test "$solaris_use_stlport4" != yes; then
12808      postdeps_CXX='-library=Cstd -library=Crun'
12809    fi
12810    ;;
12811  esac
12812  ;;
12813esac
12814
12815
12816case " $postdeps_CXX " in
12817*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12818esac
12819 compiler_lib_search_dirs_CXX=
12820if test -n "${compiler_lib_search_path_CXX}"; then
12821 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12822fi
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854    lt_prog_compiler_wl_CXX=
12855lt_prog_compiler_pic_CXX=
12856lt_prog_compiler_static_CXX=
12857
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12859$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12860
12861  # C++ specific cases for pic, static, wl, etc.
12862  if test "$GXX" = yes; then
12863    lt_prog_compiler_wl_CXX='-Wl,'
12864    lt_prog_compiler_static_CXX='-static'
12865
12866    case $host_os in
12867    aix*)
12868      # All AIX code is PIC.
12869      if test "$host_cpu" = ia64; then
12870	# AIX 5 now supports IA64 processor
12871	lt_prog_compiler_static_CXX='-Bstatic'
12872      fi
12873      ;;
12874
12875    amigaos*)
12876      case $host_cpu in
12877      powerpc)
12878            # see comment about AmigaOS4 .so support
12879            lt_prog_compiler_pic_CXX='-fPIC'
12880        ;;
12881      m68k)
12882            # FIXME: we need at least 68020 code to build shared libraries, but
12883            # adding the `-m68020' flag to GCC prevents building anything better,
12884            # like `-m68040'.
12885            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12886        ;;
12887      esac
12888      ;;
12889
12890    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12891      # PIC is the default for these OSes.
12892      ;;
12893    mingw* | cygwin* | os2* | pw32* | cegcc*)
12894      # This hack is so that the source file can tell whether it is being
12895      # built for inclusion in a dll (and should export symbols for example).
12896      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12897      # (--disable-auto-import) libraries
12898      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12899      ;;
12900    darwin* | rhapsody*)
12901      # PIC is the default on this platform
12902      # Common symbols not allowed in MH_DYLIB files
12903      lt_prog_compiler_pic_CXX='-fno-common'
12904      ;;
12905    *djgpp*)
12906      # DJGPP does not support shared libraries at all
12907      lt_prog_compiler_pic_CXX=
12908      ;;
12909    interix[3-9]*)
12910      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12911      # Instead, we relocate shared libraries at runtime.
12912      ;;
12913    sysv4*MP*)
12914      if test -d /usr/nec; then
12915	lt_prog_compiler_pic_CXX=-Kconform_pic
12916      fi
12917      ;;
12918    hpux*)
12919      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12920      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12921      # sets the default TLS model and affects inlining.
12922      case $host_cpu in
12923      hppa*64*)
12924	;;
12925      *)
12926	lt_prog_compiler_pic_CXX='-fPIC'
12927	;;
12928      esac
12929      ;;
12930    *qnx* | *nto*)
12931      # QNX uses GNU C++, but need to define -shared option too, otherwise
12932      # it will coredump.
12933      lt_prog_compiler_pic_CXX='-fPIC -shared'
12934      ;;
12935    *)
12936      lt_prog_compiler_pic_CXX='-fPIC'
12937      ;;
12938    esac
12939  else
12940    case $host_os in
12941      aix[4-9]*)
12942	# All AIX code is PIC.
12943	if test "$host_cpu" = ia64; then
12944	  # AIX 5 now supports IA64 processor
12945	  lt_prog_compiler_static_CXX='-Bstatic'
12946	else
12947	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12948	fi
12949	;;
12950      chorus*)
12951	case $cc_basename in
12952	cxch68*)
12953	  # Green Hills C++ Compiler
12954	  # _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"
12955	  ;;
12956	esac
12957	;;
12958      dgux*)
12959	case $cc_basename in
12960	  ec++*)
12961	    lt_prog_compiler_pic_CXX='-KPIC'
12962	    ;;
12963	  ghcx*)
12964	    # Green Hills C++ Compiler
12965	    lt_prog_compiler_pic_CXX='-pic'
12966	    ;;
12967	  *)
12968	    ;;
12969	esac
12970	;;
12971      freebsd* | dragonfly*)
12972	# FreeBSD uses GNU C++
12973	;;
12974      hpux9* | hpux10* | hpux11*)
12975	case $cc_basename in
12976	  CC*)
12977	    lt_prog_compiler_wl_CXX='-Wl,'
12978	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12979	    if test "$host_cpu" != ia64; then
12980	      lt_prog_compiler_pic_CXX='+Z'
12981	    fi
12982	    ;;
12983	  aCC*)
12984	    lt_prog_compiler_wl_CXX='-Wl,'
12985	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12986	    case $host_cpu in
12987	    hppa*64*|ia64*)
12988	      # +Z the default
12989	      ;;
12990	    *)
12991	      lt_prog_compiler_pic_CXX='+Z'
12992	      ;;
12993	    esac
12994	    ;;
12995	  *)
12996	    ;;
12997	esac
12998	;;
12999      interix*)
13000	# This is c89, which is MS Visual C++ (no shared libs)
13001	# Anyone wants to do a port?
13002	;;
13003      irix5* | irix6* | nonstopux*)
13004	case $cc_basename in
13005	  CC*)
13006	    lt_prog_compiler_wl_CXX='-Wl,'
13007	    lt_prog_compiler_static_CXX='-non_shared'
13008	    # CC pic flag -KPIC is the default.
13009	    ;;
13010	  *)
13011	    ;;
13012	esac
13013	;;
13014      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13015	case $cc_basename in
13016	  KCC*)
13017	    # KAI C++ Compiler
13018	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13019	    lt_prog_compiler_pic_CXX='-fPIC'
13020	    ;;
13021	  ecpc* )
13022	    # old Intel C++ for x86_64 which still supported -KPIC.
13023	    lt_prog_compiler_wl_CXX='-Wl,'
13024	    lt_prog_compiler_pic_CXX='-KPIC'
13025	    lt_prog_compiler_static_CXX='-static'
13026	    ;;
13027	  icpc* )
13028	    # Intel C++, used to be incompatible with GCC.
13029	    # ICC 10 doesn't accept -KPIC any more.
13030	    lt_prog_compiler_wl_CXX='-Wl,'
13031	    lt_prog_compiler_pic_CXX='-fPIC'
13032	    lt_prog_compiler_static_CXX='-static'
13033	    ;;
13034	  pgCC* | pgcpp*)
13035	    # Portland Group C++ compiler
13036	    lt_prog_compiler_wl_CXX='-Wl,'
13037	    lt_prog_compiler_pic_CXX='-fpic'
13038	    lt_prog_compiler_static_CXX='-Bstatic'
13039	    ;;
13040	  cxx*)
13041	    # Compaq C++
13042	    # Make sure the PIC flag is empty.  It appears that all Alpha
13043	    # Linux and Compaq Tru64 Unix objects are PIC.
13044	    lt_prog_compiler_pic_CXX=
13045	    lt_prog_compiler_static_CXX='-non_shared'
13046	    ;;
13047	  xlc* | xlC*)
13048	    # IBM XL 8.0 on PPC
13049	    lt_prog_compiler_wl_CXX='-Wl,'
13050	    lt_prog_compiler_pic_CXX='-qpic'
13051	    lt_prog_compiler_static_CXX='-qstaticlink'
13052	    ;;
13053	  *)
13054	    case `$CC -V 2>&1 | sed 5q` in
13055	    *Sun\ C*)
13056	      # Sun C++ 5.9
13057	      lt_prog_compiler_pic_CXX='-KPIC'
13058	      lt_prog_compiler_static_CXX='-Bstatic'
13059	      lt_prog_compiler_wl_CXX='-Qoption ld '
13060	      ;;
13061	    esac
13062	    ;;
13063	esac
13064	;;
13065      lynxos*)
13066	;;
13067      m88k*)
13068	;;
13069      mvs*)
13070	case $cc_basename in
13071	  cxx*)
13072	    lt_prog_compiler_pic_CXX='-W c,exportall'
13073	    ;;
13074	  *)
13075	    ;;
13076	esac
13077	;;
13078      netbsd* | netbsdelf*-gnu)
13079	;;
13080      *qnx* | *nto*)
13081        # QNX uses GNU C++, but need to define -shared option too, otherwise
13082        # it will coredump.
13083        lt_prog_compiler_pic_CXX='-fPIC -shared'
13084        ;;
13085      osf3* | osf4* | osf5*)
13086	case $cc_basename in
13087	  KCC*)
13088	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13089	    ;;
13090	  RCC*)
13091	    # Rational C++ 2.4.1
13092	    lt_prog_compiler_pic_CXX='-pic'
13093	    ;;
13094	  cxx*)
13095	    # Digital/Compaq C++
13096	    lt_prog_compiler_wl_CXX='-Wl,'
13097	    # Make sure the PIC flag is empty.  It appears that all Alpha
13098	    # Linux and Compaq Tru64 Unix objects are PIC.
13099	    lt_prog_compiler_pic_CXX=
13100	    lt_prog_compiler_static_CXX='-non_shared'
13101	    ;;
13102	  *)
13103	    ;;
13104	esac
13105	;;
13106      psos*)
13107	;;
13108      solaris*)
13109	case $cc_basename in
13110	  CC*)
13111	    # Sun C++ 4.2, 5.x and Centerline C++
13112	    lt_prog_compiler_pic_CXX='-KPIC'
13113	    lt_prog_compiler_static_CXX='-Bstatic'
13114	    lt_prog_compiler_wl_CXX='-Qoption ld '
13115	    ;;
13116	  gcx*)
13117	    # Green Hills C++ Compiler
13118	    lt_prog_compiler_pic_CXX='-PIC'
13119	    ;;
13120	  *)
13121	    ;;
13122	esac
13123	;;
13124      sunos4*)
13125	case $cc_basename in
13126	  CC*)
13127	    # Sun C++ 4.x
13128	    lt_prog_compiler_pic_CXX='-pic'
13129	    lt_prog_compiler_static_CXX='-Bstatic'
13130	    ;;
13131	  lcc*)
13132	    # Lucid
13133	    lt_prog_compiler_pic_CXX='-pic'
13134	    ;;
13135	  *)
13136	    ;;
13137	esac
13138	;;
13139      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13140	case $cc_basename in
13141	  CC*)
13142	    lt_prog_compiler_wl_CXX='-Wl,'
13143	    lt_prog_compiler_pic_CXX='-KPIC'
13144	    lt_prog_compiler_static_CXX='-Bstatic'
13145	    ;;
13146	esac
13147	;;
13148      tandem*)
13149	case $cc_basename in
13150	  NCC*)
13151	    # NonStop-UX NCC 3.20
13152	    lt_prog_compiler_pic_CXX='-KPIC'
13153	    ;;
13154	  *)
13155	    ;;
13156	esac
13157	;;
13158      vxworks*)
13159	;;
13160      *)
13161	lt_prog_compiler_can_build_shared_CXX=no
13162	;;
13163    esac
13164  fi
13165
13166case $host_os in
13167  # For platforms which do not support PIC, -DPIC is meaningless:
13168  *djgpp*)
13169    lt_prog_compiler_pic_CXX=
13170    ;;
13171  *)
13172    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13173    ;;
13174esac
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13176$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13177
13178
13179
13180#
13181# Check to make sure the PIC flag actually works.
13182#
13183if test -n "$lt_prog_compiler_pic_CXX"; then
13184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13185$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13186if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13187  $as_echo_n "(cached) " >&6
13188else
13189  lt_cv_prog_compiler_pic_works_CXX=no
13190   ac_outfile=conftest.$ac_objext
13191   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13192   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13193   # Insert the option either (1) after the last *FLAGS variable, or
13194   # (2) before a word containing "conftest.", or (3) at the end.
13195   # Note that $ac_compile itself does not contain backslashes and begins
13196   # with a dollar sign (not a hyphen), so the echo should work correctly.
13197   # The option is referenced via a variable to avoid confusing sed.
13198   lt_compile=`echo "$ac_compile" | $SED \
13199   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13200   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13201   -e 's:$: $lt_compiler_flag:'`
13202   (eval echo "\"\$as_me:13202: $lt_compile\"" >&5)
13203   (eval "$lt_compile" 2>conftest.err)
13204   ac_status=$?
13205   cat conftest.err >&5
13206   echo "$as_me:13206: \$? = $ac_status" >&5
13207   if (exit $ac_status) && test -s "$ac_outfile"; then
13208     # The compiler can only warn and ignore the option if not recognized
13209     # So say no if there are warnings other than the usual output.
13210     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13211     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13212     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13213       lt_cv_prog_compiler_pic_works_CXX=yes
13214     fi
13215   fi
13216   $RM conftest*
13217
13218fi
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13220$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13221
13222if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13223    case $lt_prog_compiler_pic_CXX in
13224     "" | " "*) ;;
13225     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13226     esac
13227else
13228    lt_prog_compiler_pic_CXX=
13229     lt_prog_compiler_can_build_shared_CXX=no
13230fi
13231
13232fi
13233
13234
13235
13236#
13237# Check to make sure the static flag actually works.
13238#
13239wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13241$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13242if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13243  $as_echo_n "(cached) " >&6
13244else
13245  lt_cv_prog_compiler_static_works_CXX=no
13246   save_LDFLAGS="$LDFLAGS"
13247   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13248   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13249   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13250     # The linker can only warn and ignore the option if not recognized
13251     # So say no if there are warnings
13252     if test -s conftest.err; then
13253       # Append any errors to the config.log.
13254       cat conftest.err 1>&5
13255       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13256       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13257       if diff conftest.exp conftest.er2 >/dev/null; then
13258         lt_cv_prog_compiler_static_works_CXX=yes
13259       fi
13260     else
13261       lt_cv_prog_compiler_static_works_CXX=yes
13262     fi
13263   fi
13264   $RM -r conftest*
13265   LDFLAGS="$save_LDFLAGS"
13266
13267fi
13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13269$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13270
13271if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13272    :
13273else
13274    lt_prog_compiler_static_CXX=
13275fi
13276
13277
13278
13279
13280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13281$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13282if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13283  $as_echo_n "(cached) " >&6
13284else
13285  lt_cv_prog_compiler_c_o_CXX=no
13286   $RM -r conftest 2>/dev/null
13287   mkdir conftest
13288   cd conftest
13289   mkdir out
13290   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13291
13292   lt_compiler_flag="-o out/conftest2.$ac_objext"
13293   # Insert the option either (1) after the last *FLAGS variable, or
13294   # (2) before a word containing "conftest.", or (3) at the end.
13295   # Note that $ac_compile itself does not contain backslashes and begins
13296   # with a dollar sign (not a hyphen), so the echo should work correctly.
13297   lt_compile=`echo "$ac_compile" | $SED \
13298   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13299   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13300   -e 's:$: $lt_compiler_flag:'`
13301   (eval echo "\"\$as_me:13301: $lt_compile\"" >&5)
13302   (eval "$lt_compile" 2>out/conftest.err)
13303   ac_status=$?
13304   cat out/conftest.err >&5
13305   echo "$as_me:13305: \$? = $ac_status" >&5
13306   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13307   then
13308     # The compiler can only warn and ignore the option if not recognized
13309     # So say no if there are warnings
13310     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13311     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13312     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13313       lt_cv_prog_compiler_c_o_CXX=yes
13314     fi
13315   fi
13316   chmod u+w . 2>&5
13317   $RM conftest*
13318   # SGI C++ compiler will create directory out/ii_files/ for
13319   # template instantiation
13320   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13321   $RM out/* && rmdir out
13322   cd ..
13323   $RM -r conftest
13324   $RM conftest*
13325
13326fi
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13328$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13329
13330
13331
13332    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13333$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13334if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13335  $as_echo_n "(cached) " >&6
13336else
13337  lt_cv_prog_compiler_c_o_CXX=no
13338   $RM -r conftest 2>/dev/null
13339   mkdir conftest
13340   cd conftest
13341   mkdir out
13342   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13343
13344   lt_compiler_flag="-o out/conftest2.$ac_objext"
13345   # Insert the option either (1) after the last *FLAGS variable, or
13346   # (2) before a word containing "conftest.", or (3) at the end.
13347   # Note that $ac_compile itself does not contain backslashes and begins
13348   # with a dollar sign (not a hyphen), so the echo should work correctly.
13349   lt_compile=`echo "$ac_compile" | $SED \
13350   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13351   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13352   -e 's:$: $lt_compiler_flag:'`
13353   (eval echo "\"\$as_me:13353: $lt_compile\"" >&5)
13354   (eval "$lt_compile" 2>out/conftest.err)
13355   ac_status=$?
13356   cat out/conftest.err >&5
13357   echo "$as_me:13357: \$? = $ac_status" >&5
13358   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13359   then
13360     # The compiler can only warn and ignore the option if not recognized
13361     # So say no if there are warnings
13362     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13363     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13364     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13365       lt_cv_prog_compiler_c_o_CXX=yes
13366     fi
13367   fi
13368   chmod u+w . 2>&5
13369   $RM conftest*
13370   # SGI C++ compiler will create directory out/ii_files/ for
13371   # template instantiation
13372   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13373   $RM out/* && rmdir out
13374   cd ..
13375   $RM -r conftest
13376   $RM conftest*
13377
13378fi
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13380$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13381
13382
13383
13384
13385hard_links="nottested"
13386if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13387  # do not overwrite the value of need_locks provided by the user
13388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13389$as_echo_n "checking if we can lock with hard links... " >&6; }
13390  hard_links=yes
13391  $RM conftest*
13392  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13393  touch conftest.a
13394  ln conftest.a conftest.b 2>&5 || hard_links=no
13395  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13397$as_echo "$hard_links" >&6; }
13398  if test "$hard_links" = no; then
13399    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13400$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13401    need_locks=warn
13402  fi
13403else
13404  need_locks=no
13405fi
13406
13407
13408
13409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13410$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13411
13412  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13413  case $host_os in
13414  aix[4-9]*)
13415    # If we're using GNU nm, then we don't want the "-C" option.
13416    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13417    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13418      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13419    else
13420      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13421    fi
13422    ;;
13423  pw32*)
13424    export_symbols_cmds_CXX="$ltdll_cmds"
13425  ;;
13426  cygwin* | mingw* | cegcc*)
13427    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13428  ;;
13429  linux* | k*bsd*-gnu)
13430    link_all_deplibs_CXX=no
13431  ;;
13432  *)
13433    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13434  ;;
13435  esac
13436  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13437
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13439$as_echo "$ld_shlibs_CXX" >&6; }
13440test "$ld_shlibs_CXX" = no && can_build_shared=no
13441
13442with_gnu_ld_CXX=$with_gnu_ld
13443
13444
13445
13446
13447
13448
13449#
13450# Do we need to explicitly link libc?
13451#
13452case "x$archive_cmds_need_lc_CXX" in
13453x|xyes)
13454  # Assume -lc should be added
13455  archive_cmds_need_lc_CXX=yes
13456
13457  if test "$enable_shared" = yes && test "$GCC" = yes; then
13458    case $archive_cmds_CXX in
13459    *'~'*)
13460      # FIXME: we may have to deal with multi-command sequences.
13461      ;;
13462    '$CC '*)
13463      # Test whether the compiler implicitly links with -lc since on some
13464      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13465      # to ld, don't add -lc before -lgcc.
13466      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13467$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13468      $RM conftest*
13469      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13470
13471      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13472  (eval $ac_compile) 2>&5
13473  ac_status=$?
13474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475  test $ac_status = 0; } 2>conftest.err; then
13476        soname=conftest
13477        lib=conftest
13478        libobjs=conftest.$ac_objext
13479        deplibs=
13480        wl=$lt_prog_compiler_wl_CXX
13481	pic_flag=$lt_prog_compiler_pic_CXX
13482        compiler_flags=-v
13483        linker_flags=-v
13484        verstring=
13485        output_objdir=.
13486        libname=conftest
13487        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13488        allow_undefined_flag_CXX=
13489        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13490  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13491  ac_status=$?
13492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13493  test $ac_status = 0; }
13494        then
13495	  archive_cmds_need_lc_CXX=no
13496        else
13497	  archive_cmds_need_lc_CXX=yes
13498        fi
13499        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13500      else
13501        cat conftest.err 1>&5
13502      fi
13503      $RM conftest*
13504      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13505$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13506      ;;
13507    esac
13508  fi
13509  ;;
13510esac
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13576$as_echo_n "checking dynamic linker characteristics... " >&6; }
13577
13578library_names_spec=
13579libname_spec='lib$name'
13580soname_spec=
13581shrext_cmds=".so"
13582postinstall_cmds=
13583postuninstall_cmds=
13584finish_cmds=
13585finish_eval=
13586shlibpath_var=
13587shlibpath_overrides_runpath=unknown
13588version_type=none
13589dynamic_linker="$host_os ld.so"
13590sys_lib_dlsearch_path_spec="/lib /usr/lib"
13591need_lib_prefix=unknown
13592hardcode_into_libs=no
13593
13594# when you set need_version to no, make sure it does not cause -set_version
13595# flags to be left without arguments
13596need_version=unknown
13597
13598case $host_os in
13599aix3*)
13600  version_type=linux
13601  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13602  shlibpath_var=LIBPATH
13603
13604  # AIX 3 has no versioning support, so we append a major version to the name.
13605  soname_spec='${libname}${release}${shared_ext}$major'
13606  ;;
13607
13608aix[4-9]*)
13609  version_type=linux
13610  need_lib_prefix=no
13611  need_version=no
13612  hardcode_into_libs=yes
13613  if test "$host_cpu" = ia64; then
13614    # AIX 5 supports IA64
13615    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13616    shlibpath_var=LD_LIBRARY_PATH
13617  else
13618    # With GCC up to 2.95.x, collect2 would create an import file
13619    # for dependence libraries.  The import file would start with
13620    # the line `#! .'.  This would cause the generated library to
13621    # depend on `.', always an invalid library.  This was fixed in
13622    # development snapshots of GCC prior to 3.0.
13623    case $host_os in
13624      aix4 | aix4.[01] | aix4.[01].*)
13625      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13626	   echo ' yes '
13627	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13628	:
13629      else
13630	can_build_shared=no
13631      fi
13632      ;;
13633    esac
13634    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13635    # soname into executable. Probably we can add versioning support to
13636    # collect2, so additional links can be useful in future.
13637    if test "$aix_use_runtimelinking" = yes; then
13638      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13639      # instead of lib<name>.a to let people know that these are not
13640      # typical AIX shared libraries.
13641      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13642    else
13643      # We preserve .a as extension for shared libraries through AIX4.2
13644      # and later when we are not doing run time linking.
13645      library_names_spec='${libname}${release}.a $libname.a'
13646      soname_spec='${libname}${release}${shared_ext}$major'
13647    fi
13648    shlibpath_var=LIBPATH
13649  fi
13650  ;;
13651
13652amigaos*)
13653  case $host_cpu in
13654  powerpc)
13655    # Since July 2007 AmigaOS4 officially supports .so libraries.
13656    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13657    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13658    ;;
13659  m68k)
13660    library_names_spec='$libname.ixlibrary $libname.a'
13661    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13662    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13663    ;;
13664  esac
13665  ;;
13666
13667beos*)
13668  library_names_spec='${libname}${shared_ext}'
13669  dynamic_linker="$host_os ld.so"
13670  shlibpath_var=LIBRARY_PATH
13671  ;;
13672
13673bsdi[45]*)
13674  version_type=linux
13675  need_version=no
13676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677  soname_spec='${libname}${release}${shared_ext}$major'
13678  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13679  shlibpath_var=LD_LIBRARY_PATH
13680  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13681  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13682  # the default ld.so.conf also contains /usr/contrib/lib and
13683  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13684  # libtool to hard-code these into programs
13685  ;;
13686
13687cygwin* | mingw* | pw32* | cegcc*)
13688  version_type=windows
13689  shrext_cmds=".dll"
13690  need_version=no
13691  need_lib_prefix=no
13692
13693  case $GCC,$host_os in
13694  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13695    library_names_spec='$libname.dll.a'
13696    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13697    postinstall_cmds='base_file=`basename \${file}`~
13698      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13699      dldir=$destdir/`dirname \$dlpath`~
13700      test -d \$dldir || mkdir -p \$dldir~
13701      $install_prog $dir/$dlname \$dldir/$dlname~
13702      chmod a+x \$dldir/$dlname~
13703      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13704        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13705      fi'
13706    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13707      dlpath=$dir/\$dldll~
13708       $RM \$dlpath'
13709    shlibpath_overrides_runpath=yes
13710
13711    case $host_os in
13712    cygwin*)
13713      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13714      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13715      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13716      ;;
13717    mingw* | cegcc*)
13718      # MinGW DLLs use traditional 'lib' prefix
13719      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13720      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13721      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13722        # It is most probably a Windows format PATH printed by
13723        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13724        # path with ; separators, and with drive letters. We can handle the
13725        # drive letters (cygwin fileutils understands them), so leave them,
13726        # especially as we might pass files found there to a mingw objdump,
13727        # which wouldn't understand a cygwinified path. Ahh.
13728        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13729      else
13730        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13731      fi
13732      ;;
13733    pw32*)
13734      # pw32 DLLs use 'pw' prefix rather than 'lib'
13735      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13736      ;;
13737    esac
13738    ;;
13739
13740  *)
13741    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13742    ;;
13743  esac
13744  dynamic_linker='Win32 ld.exe'
13745  # FIXME: first we should search . and the directory the executable is in
13746  shlibpath_var=PATH
13747  ;;
13748
13749darwin* | rhapsody*)
13750  dynamic_linker="$host_os dyld"
13751  version_type=darwin
13752  need_lib_prefix=no
13753  need_version=no
13754  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13755  soname_spec='${libname}${release}${major}$shared_ext'
13756  shlibpath_overrides_runpath=yes
13757  shlibpath_var=DYLD_LIBRARY_PATH
13758  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13759
13760  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13761  ;;
13762
13763dgux*)
13764  version_type=linux
13765  need_lib_prefix=no
13766  need_version=no
13767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13768  soname_spec='${libname}${release}${shared_ext}$major'
13769  shlibpath_var=LD_LIBRARY_PATH
13770  ;;
13771
13772freebsd1*)
13773  dynamic_linker=no
13774  ;;
13775
13776freebsd* | dragonfly*)
13777  # DragonFly does not have aout.  When/if they implement a new
13778  # versioning mechanism, adjust this.
13779  if test -x /usr/bin/objformat; then
13780    objformat=`/usr/bin/objformat`
13781  else
13782    case $host_os in
13783    freebsd[123]*) objformat=aout ;;
13784    *) objformat=elf ;;
13785    esac
13786  fi
13787  version_type=freebsd-$objformat
13788  case $version_type in
13789    freebsd-elf*)
13790      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13791      need_version=no
13792      need_lib_prefix=no
13793      ;;
13794    freebsd-*)
13795      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13796      need_version=yes
13797      ;;
13798  esac
13799  shlibpath_var=LD_LIBRARY_PATH
13800  case $host_os in
13801  freebsd2*)
13802    shlibpath_overrides_runpath=yes
13803    ;;
13804  freebsd3.[01]* | freebsdelf3.[01]*)
13805    shlibpath_overrides_runpath=yes
13806    hardcode_into_libs=yes
13807    ;;
13808  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13809  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13810    shlibpath_overrides_runpath=no
13811    hardcode_into_libs=yes
13812    ;;
13813  *) # from 4.6 on, and DragonFly
13814    shlibpath_overrides_runpath=yes
13815    hardcode_into_libs=yes
13816    ;;
13817  esac
13818  ;;
13819
13820gnu*)
13821  version_type=linux
13822  need_lib_prefix=no
13823  need_version=no
13824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13825  soname_spec='${libname}${release}${shared_ext}$major'
13826  shlibpath_var=LD_LIBRARY_PATH
13827  hardcode_into_libs=yes
13828  ;;
13829
13830hpux9* | hpux10* | hpux11*)
13831  # Give a soname corresponding to the major version so that dld.sl refuses to
13832  # link against other versions.
13833  version_type=sunos
13834  need_lib_prefix=no
13835  need_version=no
13836  case $host_cpu in
13837  ia64*)
13838    shrext_cmds='.so'
13839    hardcode_into_libs=yes
13840    dynamic_linker="$host_os dld.so"
13841    shlibpath_var=LD_LIBRARY_PATH
13842    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13843    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13844    soname_spec='${libname}${release}${shared_ext}$major'
13845    if test "X$HPUX_IA64_MODE" = X32; then
13846      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13847    else
13848      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13849    fi
13850    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13851    ;;
13852  hppa*64*)
13853    shrext_cmds='.sl'
13854    hardcode_into_libs=yes
13855    dynamic_linker="$host_os dld.sl"
13856    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13857    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13858    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13859    soname_spec='${libname}${release}${shared_ext}$major'
13860    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13861    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13862    ;;
13863  *)
13864    shrext_cmds='.sl'
13865    dynamic_linker="$host_os dld.sl"
13866    shlibpath_var=SHLIB_PATH
13867    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13868    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869    soname_spec='${libname}${release}${shared_ext}$major'
13870    ;;
13871  esac
13872  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13873  postinstall_cmds='chmod 555 $lib'
13874  ;;
13875
13876interix[3-9]*)
13877  version_type=linux
13878  need_lib_prefix=no
13879  need_version=no
13880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13881  soname_spec='${libname}${release}${shared_ext}$major'
13882  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13883  shlibpath_var=LD_LIBRARY_PATH
13884  shlibpath_overrides_runpath=no
13885  hardcode_into_libs=yes
13886  ;;
13887
13888irix5* | irix6* | nonstopux*)
13889  case $host_os in
13890    nonstopux*) version_type=nonstopux ;;
13891    *)
13892	if test "$lt_cv_prog_gnu_ld" = yes; then
13893		version_type=linux
13894	else
13895		version_type=irix
13896	fi ;;
13897  esac
13898  need_lib_prefix=no
13899  need_version=no
13900  soname_spec='${libname}${release}${shared_ext}$major'
13901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13902  case $host_os in
13903  irix5* | nonstopux*)
13904    libsuff= shlibsuff=
13905    ;;
13906  *)
13907    case $LD in # libtool.m4 will add one of these switches to LD
13908    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13909      libsuff= shlibsuff= libmagic=32-bit;;
13910    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13911      libsuff=32 shlibsuff=N32 libmagic=N32;;
13912    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13913      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13914    *) libsuff= shlibsuff= libmagic=never-match;;
13915    esac
13916    ;;
13917  esac
13918  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13919  shlibpath_overrides_runpath=no
13920  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13921  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13922  hardcode_into_libs=yes
13923  ;;
13924
13925# No shared lib support for Linux oldld, aout, or coff.
13926linux*oldld* | linux*aout* | linux*coff*)
13927  dynamic_linker=no
13928  ;;
13929
13930# This must be Linux ELF.
13931linux* | k*bsd*-gnu | kopensolaris*-gnu)
13932  version_type=linux
13933  need_lib_prefix=no
13934  need_version=no
13935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13936  soname_spec='${libname}${release}${shared_ext}$major'
13937  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13938  shlibpath_var=LD_LIBRARY_PATH
13939  shlibpath_overrides_runpath=no
13940  # Some binutils ld are patched to set DT_RUNPATH
13941  save_LDFLAGS=$LDFLAGS
13942  save_libdir=$libdir
13943  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13944       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946/* end confdefs.h.  */
13947
13948int
13949main ()
13950{
13951
13952  ;
13953  return 0;
13954}
13955_ACEOF
13956if ac_fn_cxx_try_link "$LINENO"; then :
13957  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13958  shlibpath_overrides_runpath=yes
13959fi
13960fi
13961rm -f core conftest.err conftest.$ac_objext \
13962    conftest$ac_exeext conftest.$ac_ext
13963  LDFLAGS=$save_LDFLAGS
13964  libdir=$save_libdir
13965
13966  # This implies no fast_install, which is unacceptable.
13967  # Some rework will be needed to allow for fast_install
13968  # before this can be enabled.
13969  hardcode_into_libs=yes
13970
13971  # Append ld.so.conf contents to the search path
13972  if test -f /etc/ld.so.conf; then
13973    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;/^$/d' | tr '\n' ' '`
13974    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13975  fi
13976
13977  # We used to test for /lib/ld.so.1 and disable shared libraries on
13978  # powerpc, because MkLinux only supported shared libraries with the
13979  # GNU dynamic linker.  Since this was broken with cross compilers,
13980  # most powerpc-linux boxes support dynamic linking these days and
13981  # people can always --disable-shared, the test was removed, and we
13982  # assume the GNU/Linux dynamic linker is in use.
13983  dynamic_linker='GNU/Linux ld.so'
13984  ;;
13985
13986netbsdelf*-gnu)
13987  version_type=linux
13988  need_lib_prefix=no
13989  need_version=no
13990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13991  soname_spec='${libname}${release}${shared_ext}$major'
13992  shlibpath_var=LD_LIBRARY_PATH
13993  shlibpath_overrides_runpath=no
13994  hardcode_into_libs=yes
13995  dynamic_linker='NetBSD ld.elf_so'
13996  ;;
13997
13998netbsd*)
13999  version_type=sunos
14000  need_lib_prefix=no
14001  need_version=no
14002  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14003    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14004    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14005    dynamic_linker='NetBSD (a.out) ld.so'
14006  else
14007    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14008    soname_spec='${libname}${release}${shared_ext}$major'
14009    dynamic_linker='NetBSD ld.elf_so'
14010  fi
14011  shlibpath_var=LD_LIBRARY_PATH
14012  shlibpath_overrides_runpath=yes
14013  hardcode_into_libs=yes
14014  ;;
14015
14016newsos6)
14017  version_type=linux
14018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14019  shlibpath_var=LD_LIBRARY_PATH
14020  shlibpath_overrides_runpath=yes
14021  ;;
14022
14023*nto* | *qnx*)
14024  version_type=qnx
14025  need_lib_prefix=no
14026  need_version=no
14027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028  soname_spec='${libname}${release}${shared_ext}$major'
14029  shlibpath_var=LD_LIBRARY_PATH
14030  shlibpath_overrides_runpath=no
14031  hardcode_into_libs=yes
14032  dynamic_linker='ldqnx.so'
14033  ;;
14034
14035openbsd*)
14036  version_type=sunos
14037  sys_lib_dlsearch_path_spec="/usr/lib"
14038  need_lib_prefix=no
14039  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14040  case $host_os in
14041    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14042    *)				need_version=no  ;;
14043  esac
14044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14045  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14046  shlibpath_var=LD_LIBRARY_PATH
14047  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14048    case $host_os in
14049      openbsd2.[89] | openbsd2.[89].*)
14050	shlibpath_overrides_runpath=no
14051	;;
14052      *)
14053	shlibpath_overrides_runpath=yes
14054	;;
14055      esac
14056  else
14057    shlibpath_overrides_runpath=yes
14058  fi
14059  ;;
14060
14061os2*)
14062  libname_spec='$name'
14063  shrext_cmds=".dll"
14064  need_lib_prefix=no
14065  library_names_spec='$libname${shared_ext} $libname.a'
14066  dynamic_linker='OS/2 ld.exe'
14067  shlibpath_var=LIBPATH
14068  ;;
14069
14070osf3* | osf4* | osf5*)
14071  version_type=osf
14072  need_lib_prefix=no
14073  need_version=no
14074  soname_spec='${libname}${release}${shared_ext}$major'
14075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076  shlibpath_var=LD_LIBRARY_PATH
14077  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14078  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14079  ;;
14080
14081rdos*)
14082  dynamic_linker=no
14083  ;;
14084
14085solaris*)
14086  version_type=linux
14087  need_lib_prefix=no
14088  need_version=no
14089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14090  soname_spec='${libname}${release}${shared_ext}$major'
14091  shlibpath_var=LD_LIBRARY_PATH
14092  shlibpath_overrides_runpath=yes
14093  hardcode_into_libs=yes
14094  # ldd complains unless libraries are executable
14095  postinstall_cmds='chmod +x $lib'
14096  ;;
14097
14098sunos4*)
14099  version_type=sunos
14100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14101  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14102  shlibpath_var=LD_LIBRARY_PATH
14103  shlibpath_overrides_runpath=yes
14104  if test "$with_gnu_ld" = yes; then
14105    need_lib_prefix=no
14106  fi
14107  need_version=yes
14108  ;;
14109
14110sysv4 | sysv4.3*)
14111  version_type=linux
14112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113  soname_spec='${libname}${release}${shared_ext}$major'
14114  shlibpath_var=LD_LIBRARY_PATH
14115  case $host_vendor in
14116    sni)
14117      shlibpath_overrides_runpath=no
14118      need_lib_prefix=no
14119      runpath_var=LD_RUN_PATH
14120      ;;
14121    siemens)
14122      need_lib_prefix=no
14123      ;;
14124    motorola)
14125      need_lib_prefix=no
14126      need_version=no
14127      shlibpath_overrides_runpath=no
14128      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14129      ;;
14130  esac
14131  ;;
14132
14133sysv4*MP*)
14134  if test -d /usr/nec ;then
14135    version_type=linux
14136    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14137    soname_spec='$libname${shared_ext}.$major'
14138    shlibpath_var=LD_LIBRARY_PATH
14139  fi
14140  ;;
14141
14142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14143  version_type=freebsd-elf
14144  need_lib_prefix=no
14145  need_version=no
14146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14147  soname_spec='${libname}${release}${shared_ext}$major'
14148  shlibpath_var=LD_LIBRARY_PATH
14149  shlibpath_overrides_runpath=yes
14150  hardcode_into_libs=yes
14151  if test "$with_gnu_ld" = yes; then
14152    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14153  else
14154    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14155    case $host_os in
14156      sco3.2v5*)
14157        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14158	;;
14159    esac
14160  fi
14161  sys_lib_dlsearch_path_spec='/usr/lib'
14162  ;;
14163
14164tpf*)
14165  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14166  version_type=linux
14167  need_lib_prefix=no
14168  need_version=no
14169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170  shlibpath_var=LD_LIBRARY_PATH
14171  shlibpath_overrides_runpath=no
14172  hardcode_into_libs=yes
14173  ;;
14174
14175uts4*)
14176  version_type=linux
14177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178  soname_spec='${libname}${release}${shared_ext}$major'
14179  shlibpath_var=LD_LIBRARY_PATH
14180  ;;
14181
14182*)
14183  dynamic_linker=no
14184  ;;
14185esac
14186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14187$as_echo "$dynamic_linker" >&6; }
14188test "$dynamic_linker" = no && can_build_shared=no
14189
14190variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14191if test "$GCC" = yes; then
14192  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14193fi
14194
14195if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14196  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14197fi
14198if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14199  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14200fi
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14238$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14239hardcode_action_CXX=
14240if test -n "$hardcode_libdir_flag_spec_CXX" ||
14241   test -n "$runpath_var_CXX" ||
14242   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14243
14244  # We can hardcode non-existent directories.
14245  if test "$hardcode_direct_CXX" != no &&
14246     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14247     # have to relink, otherwise we might link with an installed library
14248     # when we should be linking with a yet-to-be-installed one
14249     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14250     test "$hardcode_minus_L_CXX" != no; then
14251    # Linking always hardcodes the temporary library directory.
14252    hardcode_action_CXX=relink
14253  else
14254    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14255    hardcode_action_CXX=immediate
14256  fi
14257else
14258  # We cannot hardcode anything, or else we can only hardcode existing
14259  # directories.
14260  hardcode_action_CXX=unsupported
14261fi
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14263$as_echo "$hardcode_action_CXX" >&6; }
14264
14265if test "$hardcode_action_CXX" = relink ||
14266   test "$inherit_rpath_CXX" = yes; then
14267  # Fast installation is not supported
14268  enable_fast_install=no
14269elif test "$shlibpath_overrides_runpath" = yes ||
14270     test "$enable_shared" = no; then
14271  # Fast installation is not necessary
14272  enable_fast_install=needless
14273fi
14274
14275
14276
14277
14278
14279
14280
14281  fi # test -n "$compiler"
14282
14283  CC=$lt_save_CC
14284  LDCXX=$LD
14285  LD=$lt_save_LD
14286  GCC=$lt_save_GCC
14287  with_gnu_ld=$lt_save_with_gnu_ld
14288  lt_cv_path_LDCXX=$lt_cv_path_LD
14289  lt_cv_path_LD=$lt_save_path_LD
14290  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14291  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14292fi # test "$_lt_caught_CXX_error" != yes
14293
14294ac_ext=c
14295ac_cpp='$CPP $CPPFLAGS'
14296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14298ac_compiler_gnu=$ac_cv_c_compiler_gnu
14299
14300
14301ac_ext=cpp
14302ac_cpp='$CXXCPP $CPPFLAGS'
14303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14307$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14308if test -z "$CXXCPP"; then
14309  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14310  $as_echo_n "(cached) " >&6
14311else
14312      # Double quotes because CXXCPP needs to be expanded
14313    for CXXCPP in "$CXX -E" "/lib/cpp"
14314    do
14315      ac_preproc_ok=false
14316for ac_cxx_preproc_warn_flag in '' yes
14317do
14318  # Use a header file that comes with gcc, so configuring glibc
14319  # with a fresh cross-compiler works.
14320  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14321  # <limits.h> exists even on freestanding compilers.
14322  # On the NeXT, cc -E runs the code through the compiler's parser,
14323  # not just through cpp. "Syntax error" is here to catch this case.
14324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325/* end confdefs.h.  */
14326#ifdef __STDC__
14327# include <limits.h>
14328#else
14329# include <assert.h>
14330#endif
14331		     Syntax error
14332_ACEOF
14333if ac_fn_cxx_try_cpp "$LINENO"; then :
14334
14335else
14336  # Broken: fails on valid input.
14337continue
14338fi
14339rm -f conftest.err conftest.$ac_ext
14340
14341  # OK, works on sane cases.  Now check whether nonexistent headers
14342  # can be detected and how.
14343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344/* end confdefs.h.  */
14345#include <ac_nonexistent.h>
14346_ACEOF
14347if ac_fn_cxx_try_cpp "$LINENO"; then :
14348  # Broken: success on invalid input.
14349continue
14350else
14351  # Passes both tests.
14352ac_preproc_ok=:
14353break
14354fi
14355rm -f conftest.err conftest.$ac_ext
14356
14357done
14358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14359rm -f conftest.err conftest.$ac_ext
14360if $ac_preproc_ok; then :
14361  break
14362fi
14363
14364    done
14365    ac_cv_prog_CXXCPP=$CXXCPP
14366
14367fi
14368  CXXCPP=$ac_cv_prog_CXXCPP
14369else
14370  ac_cv_prog_CXXCPP=$CXXCPP
14371fi
14372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14373$as_echo "$CXXCPP" >&6; }
14374ac_preproc_ok=false
14375for ac_cxx_preproc_warn_flag in '' yes
14376do
14377  # Use a header file that comes with gcc, so configuring glibc
14378  # with a fresh cross-compiler works.
14379  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14380  # <limits.h> exists even on freestanding compilers.
14381  # On the NeXT, cc -E runs the code through the compiler's parser,
14382  # not just through cpp. "Syntax error" is here to catch this case.
14383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384/* end confdefs.h.  */
14385#ifdef __STDC__
14386# include <limits.h>
14387#else
14388# include <assert.h>
14389#endif
14390		     Syntax error
14391_ACEOF
14392if ac_fn_cxx_try_cpp "$LINENO"; then :
14393
14394else
14395  # Broken: fails on valid input.
14396continue
14397fi
14398rm -f conftest.err conftest.$ac_ext
14399
14400  # OK, works on sane cases.  Now check whether nonexistent headers
14401  # can be detected and how.
14402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403/* end confdefs.h.  */
14404#include <ac_nonexistent.h>
14405_ACEOF
14406if ac_fn_cxx_try_cpp "$LINENO"; then :
14407  # Broken: success on invalid input.
14408continue
14409else
14410  # Passes both tests.
14411ac_preproc_ok=:
14412break
14413fi
14414rm -f conftest.err conftest.$ac_ext
14415
14416done
14417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14418rm -f conftest.err conftest.$ac_ext
14419if $ac_preproc_ok; then :
14420
14421else
14422  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14424as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
14425See \`config.log' for more details." "$LINENO" 5; }
14426fi
14427
14428ac_ext=c
14429ac_cpp='$CPP $CPPFLAGS'
14430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14432ac_compiler_gnu=$ac_cv_c_compiler_gnu
14433
14434ac_ext=cpp
14435ac_cpp='$CXXCPP $CPPFLAGS'
14436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14439
14440
14441
14442
14443
14444# Extract the first word of "pkg-config", so it can be a program name with args.
14445set dummy pkg-config; ac_word=$2
14446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14447$as_echo_n "checking for $ac_word... " >&6; }
14448if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14449  $as_echo_n "(cached) " >&6
14450else
14451  case $PKG_CONFIG in
14452  [\\/]* | ?:[\\/]*)
14453  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14454  ;;
14455  *)
14456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14457for as_dir in $PATH
14458do
14459  IFS=$as_save_IFS
14460  test -z "$as_dir" && as_dir=.
14461    for ac_exec_ext in '' $ac_executable_extensions; do
14462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14463    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14465    break 2
14466  fi
14467done
14468  done
14469IFS=$as_save_IFS
14470
14471  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14472  ;;
14473esac
14474fi
14475PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14476if test -n "$PKG_CONFIG"; then
14477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14478$as_echo "$PKG_CONFIG" >&6; }
14479else
14480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14481$as_echo "no" >&6; }
14482fi
14483
14484
14485if test x$PKG_CONFIG = xno ; then
14486  as_fn_error "*** pkg-config not found. See http://pkgconfig.sourceforge.net" "$LINENO" 5
14487fi
14488
14489if ! pkg-config --atleast-pkgconfig-version 0.8 ; then
14490   as_fn_error "*** pkg-config too old; version 0.8 or better required." "$LINENO" 5
14491fi
14492echo "checking if an updated version of gtk+ is installed"
14493if $PKG_CONFIG --atleast-version 2.18.0 gtk+-2.0 ; then
14494        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
14495        GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
14496        GTK_DEPLIBS=$GTK_LIBS
14497	echo " gtk+ version:" `pkg-config gtk+-2.0 --modversion`
14498 else
14499        as_fn_error "
14500*** GTK+ 2.18.0 or newer is required. The latest version of GTK
14501*** is available from http://gtk.org/
14502*** or get latest cvs at http://gnome.org:
14503  " "$LINENO" 5
14504  fi
14505
14506#echo "checking if an updated version of gtksourceview is installed"
14507#if $PKG_CONFIG --atleast-version 2.8.0 gtksourceview-2.0 ; then
14508#        GTK_CFLAGS="$GTK_CFLAGS `$PKG_CONFIG --cflags gtksourceview-2.0`"
14509#        GTK_LIBS="$GTK_LIBS `$PKG_CONFIG --libs gtksourceview-2.0`"
14510#        GTK_DEPLIBS=$GTK_LIBS
14511#	echo " gtksourceview version:" `pkg-config gtksourceview-2.0 --modversion`
14512# else
14513#        AC_MSG_ERROR([
14514#*** GTKSourceView 2.8.0 or newer is required. The latest version of GTK
14515#*** is available from http://gtk.org/
14516#*** or get latest cvs at http://gnome.org:
14517#  ])
14518#  fi
14519
14520
14521
14522
14523
14524
14525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ environment has working string class (required)" >&5
14526$as_echo_n "checking if C++ environment has working string class (required)... " >&6; }
14527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528/* end confdefs.h.  */
14529
14530#include <string>
14531  using namespace std;
14532  class foo {
14533  public:
14534    void f(const string &s);
14535  };
14536  void foo::f(const string &s) {
14537    f(s.c_str());
14538  }
14539
14540int
14541main ()
14542{
14543
14544   foo f1;
14545   f1.f("test");
14546
14547  ;
14548  return 0;
14549}
14550_ACEOF
14551if ac_fn_cxx_try_link "$LINENO"; then :
14552
14553  vdk_string_ok=yes
14554
14555else
14556
14557  vdk_string_ok=no
14558  config_error=yes
14559  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ compilers string support does not work" >&5
14560$as_echo "$as_me: WARNING: C++ compilers string support does not work" >&2;}
14561
14562fi
14563rm -f core conftest.err conftest.$ac_objext \
14564    conftest$ac_exeext conftest.$ac_ext
14565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vdk_string_ok" >&5
14566$as_echo "$vdk_string_ok" >&6; }
14567
14568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ environment provides all required features" >&5
14569$as_echo_n "checking if C++ environment provides all required features... " >&6; }
14570if test "x$config_error" = xyes ; then
14571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14572$as_echo "no" >&6; }
14573  as_fn_error "Your compiler is not powerful enough to compile VDK. If it should be, see config.log for more information of why it failed." "$LINENO" 5
14574fi
14575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14576$as_echo "yes" >&6; }
14577
14578# Extract the first word of "doxygen", so it can be a program name with args.
14579set dummy doxygen; ac_word=$2
14580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14581$as_echo_n "checking for $ac_word... " >&6; }
14582if test "${ac_cv_path_DOXYGEN+set}" = set; then :
14583  $as_echo_n "(cached) " >&6
14584else
14585  case $DOXYGEN in
14586  [\\/]* | ?:[\\/]*)
14587  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
14588  ;;
14589  *)
14590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14591for as_dir in $PATH
14592do
14593  IFS=$as_save_IFS
14594  test -z "$as_dir" && as_dir=.
14595    for ac_exec_ext in '' $ac_executable_extensions; do
14596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14597    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
14598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14599    break 2
14600  fi
14601done
14602  done
14603IFS=$as_save_IFS
14604
14605  ;;
14606esac
14607fi
14608DOXYGEN=$ac_cv_path_DOXYGEN
14609if test -n "$DOXYGEN"; then
14610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
14611$as_echo "$DOXYGEN" >&6; }
14612else
14613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14614$as_echo "no" >&6; }
14615fi
14616
14617
14618# Extract the first word of "perl", so it can be a program name with args.
14619set dummy perl; ac_word=$2
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14621$as_echo_n "checking for $ac_word... " >&6; }
14622if test "${ac_cv_path_PERL+set}" = set; then :
14623  $as_echo_n "(cached) " >&6
14624else
14625  case $PERL in
14626  [\\/]* | ?:[\\/]*)
14627  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
14628  ;;
14629  *)
14630  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631for as_dir in $PATH
14632do
14633  IFS=$as_save_IFS
14634  test -z "$as_dir" && as_dir=.
14635    for ac_exec_ext in '' $ac_executable_extensions; do
14636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14637    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
14638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14639    break 2
14640  fi
14641done
14642  done
14643IFS=$as_save_IFS
14644
14645  ;;
14646esac
14647fi
14648PERL=$ac_cv_path_PERL
14649if test -n "$PERL"; then
14650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
14651$as_echo "$PERL" >&6; }
14652else
14653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654$as_echo "no" >&6; }
14655fi
14656
14657
14658
14659
14660
14661ac_config_headers="$ac_config_headers config.h"
14662
14663# Check whether --enable-debug was given.
14664if test "${enable_debug+set}" = set; then :
14665  enableval=$enable_debug;
14666else
14667  enable_debug=no
14668fi
14669
14670# Check whether --enable-opt was given.
14671if test "${enable_opt+set}" = set; then :
14672  enableval=$enable_opt;
14673else
14674  enable_opt=2
14675fi
14676
14677# Check whether --enable-testvdk was given.
14678if test "${enable_testvdk+set}" = set; then :
14679  enableval=$enable_testvdk;
14680else
14681  enable_testvdk=yes
14682fi
14683
14684# Check whether --enable-doc-html was given.
14685if test "${enable_doc_html+set}" = set; then :
14686  enableval=$enable_doc_html;
14687else
14688  enable_doc_html=yes
14689fi
14690
14691# Check whether --enable-doc-latex was given.
14692if test "${enable_doc_latex+set}" = set; then :
14693  enableval=$enable_doc_latex;
14694else
14695  enable_doc_latex=no
14696fi
14697
14698# Check whether --enable-doc-man was given.
14699if test "${enable_doc_man+set}" = set; then :
14700  enableval=$enable_doc_man;
14701else
14702  enable_doc_man=no
14703fi
14704
14705
14706if test "x$enable_debug" = "xminimum"; then
14707
14708$as_echo "#define VDKDEBUG /**/" >>confdefs.h
14709
14710  CXXFLAGS="$CXXFLAGS"
14711else
14712  if test "x$enable_debug" = "xyes"; then
14713
14714$as_echo "#define VDKDEBUG /**/" >>confdefs.h
14715
14716    CXXFLAGS="-g"
14717  else
14718    CXXFLAGS="$CXXFLAGS"
14719  fi
14720fi
14721
14722if test "x$enable_opt" != "xno"; then
14723  CXXFLAGS="$CXXFLAGS -O$enable_opt"
14724fi
14725
14726if test "x$enable_testvdk" = "xyes"; then
14727  TESTVDK="testvdk"
14728else
14729  TESTVDK=""
14730fi
14731
14732
14733
14734#-------------------------
14735# to hide sigc implementation
14736# subst all above with this
14737LIBS="$LIBS -lpthread"
14738#SIGCDEFINE=""
14739#SIGC_CFLAGS=""
14740#SIGC_LIBS="-lpthread"
14741#WITHSIGC="no"
14742#AC_SUBST(SIGC_CFLAGS)
14743#AC_SUBST(SIGC_LIBS)
14744#AC_SUBST(SIGCDEFINE)
14745#TESTSIGCVDK=""
14746#WITHTESTSIGCVDK="no"
14747#AC_SUBST(TESTSIGCVDK)
14748#--------------------------
14749
14750# doxygen support
14751if test "x$enable_doc_html" = "xyes"; then
14752	GENERATE_HTML=YES
14753#	TAG_SIGC=USE_SIGCPLUSPLUS
14754	TAG_SIGC=""
14755else
14756	GENERATE_HTML=NO
14757	TAG_SIGC=""
14758fi
14759
14760if test "x$enable_devel" = "xyes"; then
14761  cflag="-g"
14762fi
14763
14764if test "x$enable_doc_latex" = "xyes"; then
14765	GENERATE_LATEX=YES
14766#	TAG_SIGC=USE_SIGCPLUSPLUS
14767else
14768	GENERATE_LATEX=NO
14769fi
14770
14771if test "x$enable_doc_man" = "xyes"; then
14772	GENERATE_MAN=YES
14773#	TAG_SIGC=USE_SIGCPLUSPLUS
14774else
14775	GENERATE_MAN=NO
14776
14777fi
14778
14779
14780
14781
14782
14783
14784
14785GNOMEDEFINE=""
14786GNOME_CFLAGS=""
14787GNOME_LIBS=""
14788GNOME_VDK=""
14789
14790
14791
14792
14793
14794
14795# just to be fully gtk2.x compliant...
14796#dnlCXXFLAGS="$CXXFLAGS -DGTK_DISABLE_DEPRECATED -Wall -Wcast-qual -Woverloaded-virtual -Wconversion -Wstrict-prototypes -Winline"
14797#CXXFLAGS="$CXXFLAGS -Wall -Wcast-qual -Woverloaded-virtual -Wconversion -Wstrict-prototypes -Winline"
14798# To compile with g++-4
14799CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE -Wall -Wcast-qual -Wno-write-strings -Wconversion -Winline"
14800
14801
14802
14803INCLUDES="-D_GNU_SOURCE -I./include/ $GTK_CFLAGS $SIGC_CFLAGS $SIGCDEFINE"
14804
14805
14806ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile include/vdk/Makefile include/vdk/vdkfeatures.h testvdk/Makefile example/Makefile doc/Makefile doc/doxy/Makefile doc/doxy/Doxyfile doc/vdk-config-$VDK_VERSION_MAJOR.1:doc/vdk-config.in vdk-$VDK_VERSION_MAJOR.m4:vdk.m4.in vdk-config-$VDK_VERSION_MAJOR:vdk-config.in vdk-$VDK_VERSION_MAJOR.x.pc:vdk.pc.in"
14807
14808ac_config_commands="$ac_config_commands default"
14809
14810cat >confcache <<\_ACEOF
14811# This file is a shell script that caches the results of configure
14812# tests run on this system so they can be shared between configure
14813# scripts and configure runs, see configure's option --config-cache.
14814# It is not useful on other systems.  If it contains results you don't
14815# want to keep, you may remove or edit it.
14816#
14817# config.status only pays attention to the cache file if you give it
14818# the --recheck option to rerun configure.
14819#
14820# `ac_cv_env_foo' variables (set or unset) will be overridden when
14821# loading this file, other *unset* `ac_cv_foo' will be assigned the
14822# following values.
14823
14824_ACEOF
14825
14826# The following way of writing the cache mishandles newlines in values,
14827# but we know of no workaround that is simple, portable, and efficient.
14828# So, we kill variables containing newlines.
14829# Ultrix sh set writes to stderr and can't be redirected directly,
14830# and sets the high bit in the cache file unless we assign to the vars.
14831(
14832  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14833    eval ac_val=\$$ac_var
14834    case $ac_val in #(
14835    *${as_nl}*)
14836      case $ac_var in #(
14837      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14838$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14839      esac
14840      case $ac_var in #(
14841      _ | IFS | as_nl) ;; #(
14842      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14843      *) { eval $ac_var=; unset $ac_var;} ;;
14844      esac ;;
14845    esac
14846  done
14847
14848  (set) 2>&1 |
14849    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14850    *${as_nl}ac_space=\ *)
14851      # `set' does not quote correctly, so add quotes: double-quote
14852      # substitution turns \\\\ into \\, and sed turns \\ into \.
14853      sed -n \
14854	"s/'/'\\\\''/g;
14855	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14856      ;; #(
14857    *)
14858      # `set' quotes correctly as required by POSIX, so do not add quotes.
14859      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14860      ;;
14861    esac |
14862    sort
14863) |
14864  sed '
14865     /^ac_cv_env_/b end
14866     t clear
14867     :clear
14868     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14869     t end
14870     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14871     :end' >>confcache
14872if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14873  if test -w "$cache_file"; then
14874    test "x$cache_file" != "x/dev/null" &&
14875      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14876$as_echo "$as_me: updating cache $cache_file" >&6;}
14877    cat confcache >$cache_file
14878  else
14879    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14880$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14881  fi
14882fi
14883rm -f confcache
14884
14885test "x$prefix" = xNONE && prefix=$ac_default_prefix
14886# Let make expand exec_prefix.
14887test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14888
14889DEFS=-DHAVE_CONFIG_H
14890
14891ac_libobjs=
14892ac_ltlibobjs=
14893for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14894  # 1. Remove the extension, and $U if already installed.
14895  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14896  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14897  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14898  #    will be set to the directory where LIBOBJS objects are built.
14899  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14900  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14901done
14902LIBOBJS=$ac_libobjs
14903
14904LTLIBOBJS=$ac_ltlibobjs
14905
14906
14907 if test -n "$EXEEXT"; then
14908  am__EXEEXT_TRUE=
14909  am__EXEEXT_FALSE='#'
14910else
14911  am__EXEEXT_TRUE='#'
14912  am__EXEEXT_FALSE=
14913fi
14914
14915if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14916  as_fn_error "conditional \"AMDEP\" was never defined.
14917Usually this means the macro was only invoked conditionally." "$LINENO" 5
14918fi
14919if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14920  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14921Usually this means the macro was only invoked conditionally." "$LINENO" 5
14922fi
14923if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14924  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14925Usually this means the macro was only invoked conditionally." "$LINENO" 5
14926fi
14927if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14928  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14929Usually this means the macro was only invoked conditionally." "$LINENO" 5
14930fi
14931if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14932  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14933Usually this means the macro was only invoked conditionally." "$LINENO" 5
14934fi
14935
14936: ${CONFIG_STATUS=./config.status}
14937ac_write_fail=0
14938ac_clean_files_save=$ac_clean_files
14939ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14940{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14941$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14942as_write_fail=0
14943cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14944#! $SHELL
14945# Generated by $as_me.
14946# Run this file to recreate the current configuration.
14947# Compiler output produced by configure, useful for debugging
14948# configure, is in config.log if it exists.
14949
14950debug=false
14951ac_cs_recheck=false
14952ac_cs_silent=false
14953
14954SHELL=\${CONFIG_SHELL-$SHELL}
14955export SHELL
14956_ASEOF
14957cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14958## -------------------- ##
14959## M4sh Initialization. ##
14960## -------------------- ##
14961
14962# Be more Bourne compatible
14963DUALCASE=1; export DUALCASE # for MKS sh
14964if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14965  emulate sh
14966  NULLCMD=:
14967  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14968  # is contrary to our usage.  Disable this feature.
14969  alias -g '${1+"$@"}'='"$@"'
14970  setopt NO_GLOB_SUBST
14971else
14972  case `(set -o) 2>/dev/null` in #(
14973  *posix*) :
14974    set -o posix ;; #(
14975  *) :
14976     ;;
14977esac
14978fi
14979
14980
14981as_nl='
14982'
14983export as_nl
14984# Printing a long string crashes Solaris 7 /usr/bin/printf.
14985as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14986as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14987as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14988# Prefer a ksh shell builtin over an external printf program on Solaris,
14989# but without wasting forks for bash or zsh.
14990if test -z "$BASH_VERSION$ZSH_VERSION" \
14991    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14992  as_echo='print -r --'
14993  as_echo_n='print -rn --'
14994elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14995  as_echo='printf %s\n'
14996  as_echo_n='printf %s'
14997else
14998  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14999    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15000    as_echo_n='/usr/ucb/echo -n'
15001  else
15002    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15003    as_echo_n_body='eval
15004      arg=$1;
15005      case $arg in #(
15006      *"$as_nl"*)
15007	expr "X$arg" : "X\\(.*\\)$as_nl";
15008	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15009      esac;
15010      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15011    '
15012    export as_echo_n_body
15013    as_echo_n='sh -c $as_echo_n_body as_echo'
15014  fi
15015  export as_echo_body
15016  as_echo='sh -c $as_echo_body as_echo'
15017fi
15018
15019# The user is always right.
15020if test "${PATH_SEPARATOR+set}" != set; then
15021  PATH_SEPARATOR=:
15022  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15023    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15024      PATH_SEPARATOR=';'
15025  }
15026fi
15027
15028
15029# IFS
15030# We need space, tab and new line, in precisely that order.  Quoting is
15031# there to prevent editors from complaining about space-tab.
15032# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15033# splitting by setting IFS to empty value.)
15034IFS=" ""	$as_nl"
15035
15036# Find who we are.  Look in the path if we contain no directory separator.
15037case $0 in #((
15038  *[\\/]* ) as_myself=$0 ;;
15039  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15040for as_dir in $PATH
15041do
15042  IFS=$as_save_IFS
15043  test -z "$as_dir" && as_dir=.
15044    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15045  done
15046IFS=$as_save_IFS
15047
15048     ;;
15049esac
15050# We did not find ourselves, most probably we were run as `sh COMMAND'
15051# in which case we are not to be found in the path.
15052if test "x$as_myself" = x; then
15053  as_myself=$0
15054fi
15055if test ! -f "$as_myself"; then
15056  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15057  exit 1
15058fi
15059
15060# Unset variables that we do not need and which cause bugs (e.g. in
15061# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15062# suppresses any "Segmentation fault" message there.  '((' could
15063# trigger a bug in pdksh 5.2.14.
15064for as_var in BASH_ENV ENV MAIL MAILPATH
15065do eval test x\${$as_var+set} = xset \
15066  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15067done
15068PS1='$ '
15069PS2='> '
15070PS4='+ '
15071
15072# NLS nuisances.
15073LC_ALL=C
15074export LC_ALL
15075LANGUAGE=C
15076export LANGUAGE
15077
15078# CDPATH.
15079(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15080
15081
15082# as_fn_error ERROR [LINENO LOG_FD]
15083# ---------------------------------
15084# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15085# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15086# script with status $?, using 1 if that was 0.
15087as_fn_error ()
15088{
15089  as_status=$?; test $as_status -eq 0 && as_status=1
15090  if test "$3"; then
15091    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15092    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15093  fi
15094  $as_echo "$as_me: error: $1" >&2
15095  as_fn_exit $as_status
15096} # as_fn_error
15097
15098
15099# as_fn_set_status STATUS
15100# -----------------------
15101# Set $? to STATUS, without forking.
15102as_fn_set_status ()
15103{
15104  return $1
15105} # as_fn_set_status
15106
15107# as_fn_exit STATUS
15108# -----------------
15109# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15110as_fn_exit ()
15111{
15112  set +e
15113  as_fn_set_status $1
15114  exit $1
15115} # as_fn_exit
15116
15117# as_fn_unset VAR
15118# ---------------
15119# Portably unset VAR.
15120as_fn_unset ()
15121{
15122  { eval $1=; unset $1;}
15123}
15124as_unset=as_fn_unset
15125# as_fn_append VAR VALUE
15126# ----------------------
15127# Append the text in VALUE to the end of the definition contained in VAR. Take
15128# advantage of any shell optimizations that allow amortized linear growth over
15129# repeated appends, instead of the typical quadratic growth present in naive
15130# implementations.
15131if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15132  eval 'as_fn_append ()
15133  {
15134    eval $1+=\$2
15135  }'
15136else
15137  as_fn_append ()
15138  {
15139    eval $1=\$$1\$2
15140  }
15141fi # as_fn_append
15142
15143# as_fn_arith ARG...
15144# ------------------
15145# Perform arithmetic evaluation on the ARGs, and store the result in the
15146# global $as_val. Take advantage of shells that can avoid forks. The arguments
15147# must be portable across $(()) and expr.
15148if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15149  eval 'as_fn_arith ()
15150  {
15151    as_val=$(( $* ))
15152  }'
15153else
15154  as_fn_arith ()
15155  {
15156    as_val=`expr "$@" || test $? -eq 1`
15157  }
15158fi # as_fn_arith
15159
15160
15161if expr a : '\(a\)' >/dev/null 2>&1 &&
15162   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15163  as_expr=expr
15164else
15165  as_expr=false
15166fi
15167
15168if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15169  as_basename=basename
15170else
15171  as_basename=false
15172fi
15173
15174if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15175  as_dirname=dirname
15176else
15177  as_dirname=false
15178fi
15179
15180as_me=`$as_basename -- "$0" ||
15181$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15182	 X"$0" : 'X\(//\)$' \| \
15183	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15184$as_echo X/"$0" |
15185    sed '/^.*\/\([^/][^/]*\)\/*$/{
15186	    s//\1/
15187	    q
15188	  }
15189	  /^X\/\(\/\/\)$/{
15190	    s//\1/
15191	    q
15192	  }
15193	  /^X\/\(\/\).*/{
15194	    s//\1/
15195	    q
15196	  }
15197	  s/.*/./; q'`
15198
15199# Avoid depending upon Character Ranges.
15200as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15201as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15202as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15203as_cr_digits='0123456789'
15204as_cr_alnum=$as_cr_Letters$as_cr_digits
15205
15206ECHO_C= ECHO_N= ECHO_T=
15207case `echo -n x` in #(((((
15208-n*)
15209  case `echo 'xy\c'` in
15210  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15211  xy)  ECHO_C='\c';;
15212  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15213       ECHO_T='	';;
15214  esac;;
15215*)
15216  ECHO_N='-n';;
15217esac
15218
15219rm -f conf$$ conf$$.exe conf$$.file
15220if test -d conf$$.dir; then
15221  rm -f conf$$.dir/conf$$.file
15222else
15223  rm -f conf$$.dir
15224  mkdir conf$$.dir 2>/dev/null
15225fi
15226if (echo >conf$$.file) 2>/dev/null; then
15227  if ln -s conf$$.file conf$$ 2>/dev/null; then
15228    as_ln_s='ln -s'
15229    # ... but there are two gotchas:
15230    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15231    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15232    # In both cases, we have to default to `cp -p'.
15233    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15234      as_ln_s='cp -p'
15235  elif ln conf$$.file conf$$ 2>/dev/null; then
15236    as_ln_s=ln
15237  else
15238    as_ln_s='cp -p'
15239  fi
15240else
15241  as_ln_s='cp -p'
15242fi
15243rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15244rmdir conf$$.dir 2>/dev/null
15245
15246
15247# as_fn_mkdir_p
15248# -------------
15249# Create "$as_dir" as a directory, including parents if necessary.
15250as_fn_mkdir_p ()
15251{
15252
15253  case $as_dir in #(
15254  -*) as_dir=./$as_dir;;
15255  esac
15256  test -d "$as_dir" || eval $as_mkdir_p || {
15257    as_dirs=
15258    while :; do
15259      case $as_dir in #(
15260      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15261      *) as_qdir=$as_dir;;
15262      esac
15263      as_dirs="'$as_qdir' $as_dirs"
15264      as_dir=`$as_dirname -- "$as_dir" ||
15265$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15266	 X"$as_dir" : 'X\(//\)[^/]' \| \
15267	 X"$as_dir" : 'X\(//\)$' \| \
15268	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15269$as_echo X"$as_dir" |
15270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15271	    s//\1/
15272	    q
15273	  }
15274	  /^X\(\/\/\)[^/].*/{
15275	    s//\1/
15276	    q
15277	  }
15278	  /^X\(\/\/\)$/{
15279	    s//\1/
15280	    q
15281	  }
15282	  /^X\(\/\).*/{
15283	    s//\1/
15284	    q
15285	  }
15286	  s/.*/./; q'`
15287      test -d "$as_dir" && break
15288    done
15289    test -z "$as_dirs" || eval "mkdir $as_dirs"
15290  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15291
15292
15293} # as_fn_mkdir_p
15294if mkdir -p . 2>/dev/null; then
15295  as_mkdir_p='mkdir -p "$as_dir"'
15296else
15297  test -d ./-p && rmdir ./-p
15298  as_mkdir_p=false
15299fi
15300
15301if test -x / >/dev/null 2>&1; then
15302  as_test_x='test -x'
15303else
15304  if ls -dL / >/dev/null 2>&1; then
15305    as_ls_L_option=L
15306  else
15307    as_ls_L_option=
15308  fi
15309  as_test_x='
15310    eval sh -c '\''
15311      if test -d "$1"; then
15312	test -d "$1/.";
15313      else
15314	case $1 in #(
15315	-*)set "./$1";;
15316	esac;
15317	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15318	???[sx]*):;;*)false;;esac;fi
15319    '\'' sh
15320  '
15321fi
15322as_executable_p=$as_test_x
15323
15324# Sed expression to map a string onto a valid CPP name.
15325as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15326
15327# Sed expression to map a string onto a valid variable name.
15328as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15329
15330
15331exec 6>&1
15332## ----------------------------------- ##
15333## Main body of $CONFIG_STATUS script. ##
15334## ----------------------------------- ##
15335_ASEOF
15336test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15337
15338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15339# Save the log message, to keep $0 and so on meaningful, and to
15340# report actual input values of CONFIG_FILES etc. instead of their
15341# values after options handling.
15342ac_log="
15343This file was extended by $as_me, which was
15344generated by GNU Autoconf 2.65.  Invocation command line was
15345
15346  CONFIG_FILES    = $CONFIG_FILES
15347  CONFIG_HEADERS  = $CONFIG_HEADERS
15348  CONFIG_LINKS    = $CONFIG_LINKS
15349  CONFIG_COMMANDS = $CONFIG_COMMANDS
15350  $ $0 $@
15351
15352on `(hostname || uname -n) 2>/dev/null | sed 1q`
15353"
15354
15355_ACEOF
15356
15357case $ac_config_files in *"
15358"*) set x $ac_config_files; shift; ac_config_files=$*;;
15359esac
15360
15361case $ac_config_headers in *"
15362"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15363esac
15364
15365
15366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15367# Files that config.status was made for.
15368config_files="$ac_config_files"
15369config_headers="$ac_config_headers"
15370config_commands="$ac_config_commands"
15371
15372_ACEOF
15373
15374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15375ac_cs_usage="\
15376\`$as_me' instantiates files and other configuration actions
15377from templates according to the current configuration.  Unless the files
15378and actions are specified as TAGs, all are instantiated by default.
15379
15380Usage: $0 [OPTION]... [TAG]...
15381
15382  -h, --help       print this help, then exit
15383  -V, --version    print version number and configuration settings, then exit
15384      --config     print configuration, then exit
15385  -q, --quiet, --silent
15386                   do not print progress messages
15387  -d, --debug      don't remove temporary files
15388      --recheck    update $as_me by reconfiguring in the same conditions
15389      --file=FILE[:TEMPLATE]
15390                   instantiate the configuration file FILE
15391      --header=FILE[:TEMPLATE]
15392                   instantiate the configuration header FILE
15393
15394Configuration files:
15395$config_files
15396
15397Configuration headers:
15398$config_headers
15399
15400Configuration commands:
15401$config_commands
15402
15403Report bugs to the package provider."
15404
15405_ACEOF
15406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15407ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15408ac_cs_version="\\
15409config.status
15410configured by $0, generated by GNU Autoconf 2.65,
15411  with options \\"\$ac_cs_config\\"
15412
15413Copyright (C) 2009 Free Software Foundation, Inc.
15414This config.status script is free software; the Free Software Foundation
15415gives unlimited permission to copy, distribute and modify it."
15416
15417ac_pwd='$ac_pwd'
15418srcdir='$srcdir'
15419INSTALL='$INSTALL'
15420MKDIR_P='$MKDIR_P'
15421AWK='$AWK'
15422test -n "\$AWK" || AWK=awk
15423_ACEOF
15424
15425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15426# The default lists apply if the user does not specify any file.
15427ac_need_defaults=:
15428while test $# != 0
15429do
15430  case $1 in
15431  --*=*)
15432    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15433    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15434    ac_shift=:
15435    ;;
15436  *)
15437    ac_option=$1
15438    ac_optarg=$2
15439    ac_shift=shift
15440    ;;
15441  esac
15442
15443  case $ac_option in
15444  # Handling of the options.
15445  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15446    ac_cs_recheck=: ;;
15447  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15448    $as_echo "$ac_cs_version"; exit ;;
15449  --config | --confi | --conf | --con | --co | --c )
15450    $as_echo "$ac_cs_config"; exit ;;
15451  --debug | --debu | --deb | --de | --d | -d )
15452    debug=: ;;
15453  --file | --fil | --fi | --f )
15454    $ac_shift
15455    case $ac_optarg in
15456    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15457    esac
15458    as_fn_append CONFIG_FILES " '$ac_optarg'"
15459    ac_need_defaults=false;;
15460  --header | --heade | --head | --hea )
15461    $ac_shift
15462    case $ac_optarg in
15463    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15464    esac
15465    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15466    ac_need_defaults=false;;
15467  --he | --h)
15468    # Conflict between --help and --header
15469    as_fn_error "ambiguous option: \`$1'
15470Try \`$0 --help' for more information.";;
15471  --help | --hel | -h )
15472    $as_echo "$ac_cs_usage"; exit ;;
15473  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15474  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15475    ac_cs_silent=: ;;
15476
15477  # This is an error.
15478  -*) as_fn_error "unrecognized option: \`$1'
15479Try \`$0 --help' for more information." ;;
15480
15481  *) as_fn_append ac_config_targets " $1"
15482     ac_need_defaults=false ;;
15483
15484  esac
15485  shift
15486done
15487
15488ac_configure_extra_args=
15489
15490if $ac_cs_silent; then
15491  exec 6>/dev/null
15492  ac_configure_extra_args="$ac_configure_extra_args --silent"
15493fi
15494
15495_ACEOF
15496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15497if \$ac_cs_recheck; then
15498  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15499  shift
15500  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15501  CONFIG_SHELL='$SHELL'
15502  export CONFIG_SHELL
15503  exec "\$@"
15504fi
15505
15506_ACEOF
15507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15508exec 5>>config.log
15509{
15510  echo
15511  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15512## Running $as_me. ##
15513_ASBOX
15514  $as_echo "$ac_log"
15515} >&5
15516
15517_ACEOF
15518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15519#
15520# INIT-COMMANDS
15521#
15522AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15523
15524
15525# The HP-UX ksh and POSIX shell print the target directory to stdout
15526# if CDPATH is set.
15527(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15528
15529sed_quote_subst='$sed_quote_subst'
15530double_quote_subst='$double_quote_subst'
15531delay_variable_subst='$delay_variable_subst'
15532macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15533macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15534enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15535enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15536pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15537enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15538host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15539host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15540host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15541build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15542build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15543build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15544SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15545Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15546GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15547EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15548FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15549LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15550NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15551LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15552max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15553ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15554exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15555lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15556lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15557lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15558reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15559reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15560OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15561deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15562file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15563AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15564AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15565STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15566RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15567old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15568old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15569old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15570CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15571CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15572compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15573GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15574lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15575lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15576lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15577lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15578objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15579SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15580ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15581MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15582lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15583lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15584lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15585lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15586lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15587need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15588DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15589NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15590LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15591OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15592OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15593libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15594shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15595extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15596archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15597enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15598export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15599whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15600compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15601old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15602old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15603archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15604archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15605module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15606module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15607with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15608allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15609no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15610hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15611hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15612hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15613hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15614hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15615hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15616hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15617hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15618inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15619link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15620fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15621always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15622export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15623exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15624include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15625prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15626file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15627variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15628need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15629need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15630version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15631runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15632shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15633shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15634libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15635library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15636soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15637postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15638postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15639finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15640finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15641hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15642sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15643sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15644hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15645enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15646enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15647enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15648old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15649striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15650compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15651predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15652postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15653predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15654postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15655compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15656LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15657old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15658compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15659GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15660lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15661lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15662lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15663lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15664lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15665archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15666enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15667export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15668whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15669compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15670old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15671old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15672archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15673archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15674module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15675module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15676with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15677allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15678no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15679hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15680hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15681hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15682hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15683hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15684hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15685hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15686hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15687inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15688link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15689fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15690always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15691export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15692exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15693include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15694prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15695file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15696hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15697compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15698predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15699postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15700predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15701postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15702compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15703
15704LTCC='$LTCC'
15705LTCFLAGS='$LTCFLAGS'
15706compiler='$compiler_DEFAULT'
15707
15708# Quote evaled strings.
15709for var in SED \
15710GREP \
15711EGREP \
15712FGREP \
15713LD \
15714NM \
15715LN_S \
15716lt_SP2NL \
15717lt_NL2SP \
15718reload_flag \
15719OBJDUMP \
15720deplibs_check_method \
15721file_magic_cmd \
15722AR \
15723AR_FLAGS \
15724STRIP \
15725RANLIB \
15726CC \
15727CFLAGS \
15728compiler \
15729lt_cv_sys_global_symbol_pipe \
15730lt_cv_sys_global_symbol_to_cdecl \
15731lt_cv_sys_global_symbol_to_c_name_address \
15732lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15733SHELL \
15734ECHO \
15735lt_prog_compiler_no_builtin_flag \
15736lt_prog_compiler_wl \
15737lt_prog_compiler_pic \
15738lt_prog_compiler_static \
15739lt_cv_prog_compiler_c_o \
15740need_locks \
15741DSYMUTIL \
15742NMEDIT \
15743LIPO \
15744OTOOL \
15745OTOOL64 \
15746shrext_cmds \
15747export_dynamic_flag_spec \
15748whole_archive_flag_spec \
15749compiler_needs_object \
15750with_gnu_ld \
15751allow_undefined_flag \
15752no_undefined_flag \
15753hardcode_libdir_flag_spec \
15754hardcode_libdir_flag_spec_ld \
15755hardcode_libdir_separator \
15756fix_srcfile_path \
15757exclude_expsyms \
15758include_expsyms \
15759file_list_spec \
15760variables_saved_for_relink \
15761libname_spec \
15762library_names_spec \
15763soname_spec \
15764finish_eval \
15765old_striplib \
15766striplib \
15767compiler_lib_search_dirs \
15768predep_objects \
15769postdep_objects \
15770predeps \
15771postdeps \
15772compiler_lib_search_path \
15773LD_CXX \
15774compiler_CXX \
15775lt_prog_compiler_no_builtin_flag_CXX \
15776lt_prog_compiler_wl_CXX \
15777lt_prog_compiler_pic_CXX \
15778lt_prog_compiler_static_CXX \
15779lt_cv_prog_compiler_c_o_CXX \
15780export_dynamic_flag_spec_CXX \
15781whole_archive_flag_spec_CXX \
15782compiler_needs_object_CXX \
15783with_gnu_ld_CXX \
15784allow_undefined_flag_CXX \
15785no_undefined_flag_CXX \
15786hardcode_libdir_flag_spec_CXX \
15787hardcode_libdir_flag_spec_ld_CXX \
15788hardcode_libdir_separator_CXX \
15789fix_srcfile_path_CXX \
15790exclude_expsyms_CXX \
15791include_expsyms_CXX \
15792file_list_spec_CXX \
15793compiler_lib_search_dirs_CXX \
15794predep_objects_CXX \
15795postdep_objects_CXX \
15796predeps_CXX \
15797postdeps_CXX \
15798compiler_lib_search_path_CXX; do
15799    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15800    *[\\\\\\\`\\"\\\$]*)
15801      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15802      ;;
15803    *)
15804      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15805      ;;
15806    esac
15807done
15808
15809# Double-quote double-evaled strings.
15810for var in reload_cmds \
15811old_postinstall_cmds \
15812old_postuninstall_cmds \
15813old_archive_cmds \
15814extract_expsyms_cmds \
15815old_archive_from_new_cmds \
15816old_archive_from_expsyms_cmds \
15817archive_cmds \
15818archive_expsym_cmds \
15819module_cmds \
15820module_expsym_cmds \
15821export_symbols_cmds \
15822prelink_cmds \
15823postinstall_cmds \
15824postuninstall_cmds \
15825finish_cmds \
15826sys_lib_search_path_spec \
15827sys_lib_dlsearch_path_spec \
15828old_archive_cmds_CXX \
15829old_archive_from_new_cmds_CXX \
15830old_archive_from_expsyms_cmds_CXX \
15831archive_cmds_CXX \
15832archive_expsym_cmds_CXX \
15833module_cmds_CXX \
15834module_expsym_cmds_CXX \
15835export_symbols_cmds_CXX \
15836prelink_cmds_CXX; do
15837    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15838    *[\\\\\\\`\\"\\\$]*)
15839      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15840      ;;
15841    *)
15842      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15843      ;;
15844    esac
15845done
15846
15847# Fix-up fallback echo if it was mangled by the above quoting rules.
15848case \$lt_ECHO in
15849*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15850  ;;
15851esac
15852
15853ac_aux_dir='$ac_aux_dir'
15854xsi_shell='$xsi_shell'
15855lt_shell_append='$lt_shell_append'
15856
15857# See if we are running on zsh, and set the options which allow our
15858# commands through without removal of \ escapes INIT.
15859if test -n "\${ZSH_VERSION+set}" ; then
15860   setopt NO_GLOB_SUBST
15861fi
15862
15863
15864    PACKAGE='$PACKAGE'
15865    VERSION='$VERSION'
15866    TIMESTAMP='$TIMESTAMP'
15867    RM='$RM'
15868    ofile='$ofile'
15869
15870
15871
15872
15873
15874
15875_ACEOF
15876
15877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15878
15879# Handling of arguments.
15880for ac_config_target in $ac_config_targets
15881do
15882  case $ac_config_target in
15883    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15884    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15885    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15886    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15887    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15888    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15889    "include/vdk/Makefile") CONFIG_FILES="$CONFIG_FILES include/vdk/Makefile" ;;
15890    "include/vdk/vdkfeatures.h") CONFIG_FILES="$CONFIG_FILES include/vdk/vdkfeatures.h" ;;
15891    "testvdk/Makefile") CONFIG_FILES="$CONFIG_FILES testvdk/Makefile" ;;
15892    "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
15893    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15894    "doc/doxy/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxy/Makefile" ;;
15895    "doc/doxy/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxy/Doxyfile" ;;
15896    "doc/vdk-config-$VDK_VERSION_MAJOR.1") CONFIG_FILES="$CONFIG_FILES doc/vdk-config-$VDK_VERSION_MAJOR.1:doc/vdk-config.in" ;;
15897    "vdk-$VDK_VERSION_MAJOR.m4") CONFIG_FILES="$CONFIG_FILES vdk-$VDK_VERSION_MAJOR.m4:vdk.m4.in" ;;
15898    "vdk-config-$VDK_VERSION_MAJOR") CONFIG_FILES="$CONFIG_FILES vdk-config-$VDK_VERSION_MAJOR:vdk-config.in" ;;
15899    "vdk-$VDK_VERSION_MAJOR.x.pc") CONFIG_FILES="$CONFIG_FILES vdk-$VDK_VERSION_MAJOR.x.pc:vdk.pc.in" ;;
15900    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15901
15902  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15903  esac
15904done
15905
15906
15907# If the user did not use the arguments to specify the items to instantiate,
15908# then the envvar interface is used.  Set only those that are not.
15909# We use the long form for the default assignment because of an extremely
15910# bizarre bug on SunOS 4.1.3.
15911if $ac_need_defaults; then
15912  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15913  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15914  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15915fi
15916
15917# Have a temporary directory for convenience.  Make it in the build tree
15918# simply because there is no reason against having it here, and in addition,
15919# creating and moving files from /tmp can sometimes cause problems.
15920# Hook for its removal unless debugging.
15921# Note that there is a small window in which the directory will not be cleaned:
15922# after its creation but before its name has been assigned to `$tmp'.
15923$debug ||
15924{
15925  tmp=
15926  trap 'exit_status=$?
15927  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15928' 0
15929  trap 'as_fn_exit 1' 1 2 13 15
15930}
15931# Create a (secure) tmp directory for tmp files.
15932
15933{
15934  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15935  test -n "$tmp" && test -d "$tmp"
15936}  ||
15937{
15938  tmp=./conf$$-$RANDOM
15939  (umask 077 && mkdir "$tmp")
15940} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15941
15942# Set up the scripts for CONFIG_FILES section.
15943# No need to generate them if there are no CONFIG_FILES.
15944# This happens for instance with `./config.status config.h'.
15945if test -n "$CONFIG_FILES"; then
15946
15947
15948ac_cr=`echo X | tr X '\015'`
15949# On cygwin, bash can eat \r inside `` if the user requested igncr.
15950# But we know of no other shell where ac_cr would be empty at this
15951# point, so we can use a bashism as a fallback.
15952if test "x$ac_cr" = x; then
15953  eval ac_cr=\$\'\\r\'
15954fi
15955ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15956if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15957  ac_cs_awk_cr='\r'
15958else
15959  ac_cs_awk_cr=$ac_cr
15960fi
15961
15962echo 'BEGIN {' >"$tmp/subs1.awk" &&
15963_ACEOF
15964
15965
15966{
15967  echo "cat >conf$$subs.awk <<_ACEOF" &&
15968  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15969  echo "_ACEOF"
15970} >conf$$subs.sh ||
15971  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15972ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15973ac_delim='%!_!# '
15974for ac_last_try in false false false false false :; do
15975  . ./conf$$subs.sh ||
15976    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15977
15978  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15979  if test $ac_delim_n = $ac_delim_num; then
15980    break
15981  elif $ac_last_try; then
15982    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15983  else
15984    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15985  fi
15986done
15987rm -f conf$$subs.sh
15988
15989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15990cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15991_ACEOF
15992sed -n '
15993h
15994s/^/S["/; s/!.*/"]=/
15995p
15996g
15997s/^[^!]*!//
15998:repl
15999t repl
16000s/'"$ac_delim"'$//
16001t delim
16002:nl
16003h
16004s/\(.\{148\}\)..*/\1/
16005t more1
16006s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16007p
16008n
16009b repl
16010:more1
16011s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16012p
16013g
16014s/.\{148\}//
16015t nl
16016:delim
16017h
16018s/\(.\{148\}\)..*/\1/
16019t more2
16020s/["\\]/\\&/g; s/^/"/; s/$/"/
16021p
16022b
16023:more2
16024s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16025p
16026g
16027s/.\{148\}//
16028t delim
16029' <conf$$subs.awk | sed '
16030/^[^""]/{
16031  N
16032  s/\n//
16033}
16034' >>$CONFIG_STATUS || ac_write_fail=1
16035rm -f conf$$subs.awk
16036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16037_ACAWK
16038cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16039  for (key in S) S_is_set[key] = 1
16040  FS = ""
16041
16042}
16043{
16044  line = $ 0
16045  nfields = split(line, field, "@")
16046  substed = 0
16047  len = length(field[1])
16048  for (i = 2; i < nfields; i++) {
16049    key = field[i]
16050    keylen = length(key)
16051    if (S_is_set[key]) {
16052      value = S[key]
16053      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16054      len += length(value) + length(field[++i])
16055      substed = 1
16056    } else
16057      len += 1 + keylen
16058  }
16059
16060  print line
16061}
16062
16063_ACAWK
16064_ACEOF
16065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16066if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16067  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16068else
16069  cat
16070fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16071  || as_fn_error "could not setup config files machinery" "$LINENO" 5
16072_ACEOF
16073
16074# VPATH may cause trouble with some makes, so we remove $(srcdir),
16075# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16076# trailing colons and then remove the whole line if VPATH becomes empty
16077# (actually we leave an empty line to preserve line numbers).
16078if test "x$srcdir" = x.; then
16079  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16080s/:*\$(srcdir):*/:/
16081s/:*\${srcdir}:*/:/
16082s/:*@srcdir@:*/:/
16083s/^\([^=]*=[	 ]*\):*/\1/
16084s/:*$//
16085s/^[^=]*=[	 ]*$//
16086}'
16087fi
16088
16089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16090fi # test -n "$CONFIG_FILES"
16091
16092# Set up the scripts for CONFIG_HEADERS section.
16093# No need to generate them if there are no CONFIG_HEADERS.
16094# This happens for instance with `./config.status Makefile'.
16095if test -n "$CONFIG_HEADERS"; then
16096cat >"$tmp/defines.awk" <<\_ACAWK ||
16097BEGIN {
16098_ACEOF
16099
16100# Transform confdefs.h into an awk script `defines.awk', embedded as
16101# here-document in config.status, that substitutes the proper values into
16102# config.h.in to produce config.h.
16103
16104# Create a delimiter string that does not exist in confdefs.h, to ease
16105# handling of long lines.
16106ac_delim='%!_!# '
16107for ac_last_try in false false :; do
16108  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16109  if test -z "$ac_t"; then
16110    break
16111  elif $ac_last_try; then
16112    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16113  else
16114    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16115  fi
16116done
16117
16118# For the awk script, D is an array of macro values keyed by name,
16119# likewise P contains macro parameters if any.  Preserve backslash
16120# newline sequences.
16121
16122ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16123sed -n '
16124s/.\{148\}/&'"$ac_delim"'/g
16125t rset
16126:rset
16127s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16128t def
16129d
16130:def
16131s/\\$//
16132t bsnl
16133s/["\\]/\\&/g
16134s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16135D["\1"]=" \3"/p
16136s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16137d
16138:bsnl
16139s/["\\]/\\&/g
16140s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16141D["\1"]=" \3\\\\\\n"\\/p
16142t cont
16143s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16144t cont
16145d
16146:cont
16147n
16148s/.\{148\}/&'"$ac_delim"'/g
16149t clear
16150:clear
16151s/\\$//
16152t bsnlc
16153s/["\\]/\\&/g; s/^/"/; s/$/"/p
16154d
16155:bsnlc
16156s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16157b cont
16158' <confdefs.h | sed '
16159s/'"$ac_delim"'/"\\\
16160"/g' >>$CONFIG_STATUS || ac_write_fail=1
16161
16162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16163  for (key in D) D_is_set[key] = 1
16164  FS = ""
16165}
16166/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16167  line = \$ 0
16168  split(line, arg, " ")
16169  if (arg[1] == "#") {
16170    defundef = arg[2]
16171    mac1 = arg[3]
16172  } else {
16173    defundef = substr(arg[1], 2)
16174    mac1 = arg[2]
16175  }
16176  split(mac1, mac2, "(") #)
16177  macro = mac2[1]
16178  prefix = substr(line, 1, index(line, defundef) - 1)
16179  if (D_is_set[macro]) {
16180    # Preserve the white space surrounding the "#".
16181    print prefix "define", macro P[macro] D[macro]
16182    next
16183  } else {
16184    # Replace #undef with comments.  This is necessary, for example,
16185    # in the case of _POSIX_SOURCE, which is predefined and required
16186    # on some systems where configure will not decide to define it.
16187    if (defundef == "undef") {
16188      print "/*", prefix defundef, macro, "*/"
16189      next
16190    }
16191  }
16192}
16193{ print }
16194_ACAWK
16195_ACEOF
16196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16197  as_fn_error "could not setup config headers machinery" "$LINENO" 5
16198fi # test -n "$CONFIG_HEADERS"
16199
16200
16201eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16202shift
16203for ac_tag
16204do
16205  case $ac_tag in
16206  :[FHLC]) ac_mode=$ac_tag; continue;;
16207  esac
16208  case $ac_mode$ac_tag in
16209  :[FHL]*:*);;
16210  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16211  :[FH]-) ac_tag=-:-;;
16212  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16213  esac
16214  ac_save_IFS=$IFS
16215  IFS=:
16216  set x $ac_tag
16217  IFS=$ac_save_IFS
16218  shift
16219  ac_file=$1
16220  shift
16221
16222  case $ac_mode in
16223  :L) ac_source=$1;;
16224  :[FH])
16225    ac_file_inputs=
16226    for ac_f
16227    do
16228      case $ac_f in
16229      -) ac_f="$tmp/stdin";;
16230      *) # Look for the file first in the build tree, then in the source tree
16231	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16232	 # because $ac_f cannot contain `:'.
16233	 test -f "$ac_f" ||
16234	   case $ac_f in
16235	   [\\/$]*) false;;
16236	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16237	   esac ||
16238	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16239      esac
16240      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16241      as_fn_append ac_file_inputs " '$ac_f'"
16242    done
16243
16244    # Let's still pretend it is `configure' which instantiates (i.e., don't
16245    # use $as_me), people would be surprised to read:
16246    #    /* config.h.  Generated by config.status.  */
16247    configure_input='Generated from '`
16248	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16249	`' by configure.'
16250    if test x"$ac_file" != x-; then
16251      configure_input="$ac_file.  $configure_input"
16252      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16253$as_echo "$as_me: creating $ac_file" >&6;}
16254    fi
16255    # Neutralize special characters interpreted by sed in replacement strings.
16256    case $configure_input in #(
16257    *\&* | *\|* | *\\* )
16258       ac_sed_conf_input=`$as_echo "$configure_input" |
16259       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16260    *) ac_sed_conf_input=$configure_input;;
16261    esac
16262
16263    case $ac_tag in
16264    *:-:* | *:-) cat >"$tmp/stdin" \
16265      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16266    esac
16267    ;;
16268  esac
16269
16270  ac_dir=`$as_dirname -- "$ac_file" ||
16271$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16272	 X"$ac_file" : 'X\(//\)[^/]' \| \
16273	 X"$ac_file" : 'X\(//\)$' \| \
16274	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16275$as_echo X"$ac_file" |
16276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16277	    s//\1/
16278	    q
16279	  }
16280	  /^X\(\/\/\)[^/].*/{
16281	    s//\1/
16282	    q
16283	  }
16284	  /^X\(\/\/\)$/{
16285	    s//\1/
16286	    q
16287	  }
16288	  /^X\(\/\).*/{
16289	    s//\1/
16290	    q
16291	  }
16292	  s/.*/./; q'`
16293  as_dir="$ac_dir"; as_fn_mkdir_p
16294  ac_builddir=.
16295
16296case "$ac_dir" in
16297.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16298*)
16299  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16300  # A ".." for each directory in $ac_dir_suffix.
16301  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16302  case $ac_top_builddir_sub in
16303  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16304  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16305  esac ;;
16306esac
16307ac_abs_top_builddir=$ac_pwd
16308ac_abs_builddir=$ac_pwd$ac_dir_suffix
16309# for backward compatibility:
16310ac_top_builddir=$ac_top_build_prefix
16311
16312case $srcdir in
16313  .)  # We are building in place.
16314    ac_srcdir=.
16315    ac_top_srcdir=$ac_top_builddir_sub
16316    ac_abs_top_srcdir=$ac_pwd ;;
16317  [\\/]* | ?:[\\/]* )  # Absolute name.
16318    ac_srcdir=$srcdir$ac_dir_suffix;
16319    ac_top_srcdir=$srcdir
16320    ac_abs_top_srcdir=$srcdir ;;
16321  *) # Relative name.
16322    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16323    ac_top_srcdir=$ac_top_build_prefix$srcdir
16324    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16325esac
16326ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16327
16328
16329  case $ac_mode in
16330  :F)
16331  #
16332  # CONFIG_FILE
16333  #
16334
16335  case $INSTALL in
16336  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16337  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16338  esac
16339  ac_MKDIR_P=$MKDIR_P
16340  case $MKDIR_P in
16341  [\\/$]* | ?:[\\/]* ) ;;
16342  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16343  esac
16344_ACEOF
16345
16346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16347# If the template does not know about datarootdir, expand it.
16348# FIXME: This hack should be removed a few years after 2.60.
16349ac_datarootdir_hack=; ac_datarootdir_seen=
16350ac_sed_dataroot='
16351/datarootdir/ {
16352  p
16353  q
16354}
16355/@datadir@/p
16356/@docdir@/p
16357/@infodir@/p
16358/@localedir@/p
16359/@mandir@/p'
16360case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16361*datarootdir*) ac_datarootdir_seen=yes;;
16362*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16363  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16364$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16365_ACEOF
16366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16367  ac_datarootdir_hack='
16368  s&@datadir@&$datadir&g
16369  s&@docdir@&$docdir&g
16370  s&@infodir@&$infodir&g
16371  s&@localedir@&$localedir&g
16372  s&@mandir@&$mandir&g
16373  s&\\\${datarootdir}&$datarootdir&g' ;;
16374esac
16375_ACEOF
16376
16377# Neutralize VPATH when `$srcdir' = `.'.
16378# Shell code in configure.ac might set extrasub.
16379# FIXME: do we really want to maintain this feature?
16380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16381ac_sed_extra="$ac_vpsub
16382$extrasub
16383_ACEOF
16384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16385:t
16386/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16387s|@configure_input@|$ac_sed_conf_input|;t t
16388s&@top_builddir@&$ac_top_builddir_sub&;t t
16389s&@top_build_prefix@&$ac_top_build_prefix&;t t
16390s&@srcdir@&$ac_srcdir&;t t
16391s&@abs_srcdir@&$ac_abs_srcdir&;t t
16392s&@top_srcdir@&$ac_top_srcdir&;t t
16393s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16394s&@builddir@&$ac_builddir&;t t
16395s&@abs_builddir@&$ac_abs_builddir&;t t
16396s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16397s&@INSTALL@&$ac_INSTALL&;t t
16398s&@MKDIR_P@&$ac_MKDIR_P&;t t
16399$ac_datarootdir_hack
16400"
16401eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16402  || as_fn_error "could not create $ac_file" "$LINENO" 5
16403
16404test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16405  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16406  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16407  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16408which seems to be undefined.  Please make sure it is defined." >&5
16409$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16410which seems to be undefined.  Please make sure it is defined." >&2;}
16411
16412  rm -f "$tmp/stdin"
16413  case $ac_file in
16414  -) cat "$tmp/out" && rm -f "$tmp/out";;
16415  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16416  esac \
16417  || as_fn_error "could not create $ac_file" "$LINENO" 5
16418 ;;
16419  :H)
16420  #
16421  # CONFIG_HEADER
16422  #
16423  if test x"$ac_file" != x-; then
16424    {
16425      $as_echo "/* $configure_input  */" \
16426      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16427    } >"$tmp/config.h" \
16428      || as_fn_error "could not create $ac_file" "$LINENO" 5
16429    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16430      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16431$as_echo "$as_me: $ac_file is unchanged" >&6;}
16432    else
16433      rm -f "$ac_file"
16434      mv "$tmp/config.h" "$ac_file" \
16435	|| as_fn_error "could not create $ac_file" "$LINENO" 5
16436    fi
16437  else
16438    $as_echo "/* $configure_input  */" \
16439      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16440      || as_fn_error "could not create -" "$LINENO" 5
16441  fi
16442# Compute "$ac_file"'s index in $config_headers.
16443_am_arg="$ac_file"
16444_am_stamp_count=1
16445for _am_header in $config_headers :; do
16446  case $_am_header in
16447    $_am_arg | $_am_arg:* )
16448      break ;;
16449    * )
16450      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16451  esac
16452done
16453echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16454$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16455	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16456	 X"$_am_arg" : 'X\(//\)$' \| \
16457	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16458$as_echo X"$_am_arg" |
16459    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16460	    s//\1/
16461	    q
16462	  }
16463	  /^X\(\/\/\)[^/].*/{
16464	    s//\1/
16465	    q
16466	  }
16467	  /^X\(\/\/\)$/{
16468	    s//\1/
16469	    q
16470	  }
16471	  /^X\(\/\).*/{
16472	    s//\1/
16473	    q
16474	  }
16475	  s/.*/./; q'`/stamp-h$_am_stamp_count
16476 ;;
16477
16478  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16479$as_echo "$as_me: executing $ac_file commands" >&6;}
16480 ;;
16481  esac
16482
16483
16484  case $ac_file$ac_mode in
16485    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16486  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16487  # are listed without --file.  Let's play safe and only enable the eval
16488  # if we detect the quoting.
16489  case $CONFIG_FILES in
16490  *\'*) eval set x "$CONFIG_FILES" ;;
16491  *)   set x $CONFIG_FILES ;;
16492  esac
16493  shift
16494  for mf
16495  do
16496    # Strip MF so we end up with the name of the file.
16497    mf=`echo "$mf" | sed -e 's/:.*$//'`
16498    # Check whether this is an Automake generated Makefile or not.
16499    # We used to match only the files named `Makefile.in', but
16500    # some people rename them; so instead we look at the file content.
16501    # Grep'ing the first line is not enough: some people post-process
16502    # each Makefile.in and add a new line on top of each file to say so.
16503    # Grep'ing the whole file is not good either: AIX grep has a line
16504    # limit of 2048, but all sed's we know have understand at least 4000.
16505    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16506      dirpart=`$as_dirname -- "$mf" ||
16507$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16508	 X"$mf" : 'X\(//\)[^/]' \| \
16509	 X"$mf" : 'X\(//\)$' \| \
16510	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16511$as_echo X"$mf" |
16512    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16513	    s//\1/
16514	    q
16515	  }
16516	  /^X\(\/\/\)[^/].*/{
16517	    s//\1/
16518	    q
16519	  }
16520	  /^X\(\/\/\)$/{
16521	    s//\1/
16522	    q
16523	  }
16524	  /^X\(\/\).*/{
16525	    s//\1/
16526	    q
16527	  }
16528	  s/.*/./; q'`
16529    else
16530      continue
16531    fi
16532    # Extract the definition of DEPDIR, am__include, and am__quote
16533    # from the Makefile without running `make'.
16534    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16535    test -z "$DEPDIR" && continue
16536    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16537    test -z "am__include" && continue
16538    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16539    # When using ansi2knr, U may be empty or an underscore; expand it
16540    U=`sed -n 's/^U = //p' < "$mf"`
16541    # Find all dependency output files, they are included files with
16542    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16543    # simplest approach to changing $(DEPDIR) to its actual value in the
16544    # expansion.
16545    for file in `sed -n "
16546      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16547	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16548      # Make sure the directory exists.
16549      test -f "$dirpart/$file" && continue
16550      fdir=`$as_dirname -- "$file" ||
16551$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16552	 X"$file" : 'X\(//\)[^/]' \| \
16553	 X"$file" : 'X\(//\)$' \| \
16554	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16555$as_echo X"$file" |
16556    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16557	    s//\1/
16558	    q
16559	  }
16560	  /^X\(\/\/\)[^/].*/{
16561	    s//\1/
16562	    q
16563	  }
16564	  /^X\(\/\/\)$/{
16565	    s//\1/
16566	    q
16567	  }
16568	  /^X\(\/\).*/{
16569	    s//\1/
16570	    q
16571	  }
16572	  s/.*/./; q'`
16573      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16574      # echo "creating $dirpart/$file"
16575      echo '# dummy' > "$dirpart/$file"
16576    done
16577  done
16578}
16579 ;;
16580    "libtool":C)
16581
16582    # See if we are running on zsh, and set the options which allow our
16583    # commands through without removal of \ escapes.
16584    if test -n "${ZSH_VERSION+set}" ; then
16585      setopt NO_GLOB_SUBST
16586    fi
16587
16588    cfgfile="${ofile}T"
16589    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16590    $RM "$cfgfile"
16591
16592    cat <<_LT_EOF >> "$cfgfile"
16593#! $SHELL
16594
16595# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16596# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16597# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16598# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16599#
16600#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16601#                 2006, 2007, 2008 Free Software Foundation, Inc.
16602#   Written by Gordon Matzigkeit, 1996
16603#
16604#   This file is part of GNU Libtool.
16605#
16606# GNU Libtool is free software; you can redistribute it and/or
16607# modify it under the terms of the GNU General Public License as
16608# published by the Free Software Foundation; either version 2 of
16609# the License, or (at your option) any later version.
16610#
16611# As a special exception to the GNU General Public License,
16612# if you distribute this file as part of a program or library that
16613# is built using GNU Libtool, you may include this file under the
16614# same distribution terms that you use for the rest of that program.
16615#
16616# GNU Libtool is distributed in the hope that it will be useful,
16617# but WITHOUT ANY WARRANTY; without even the implied warranty of
16618# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16619# GNU General Public License for more details.
16620#
16621# You should have received a copy of the GNU General Public License
16622# along with GNU Libtool; see the file COPYING.  If not, a copy
16623# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16624# obtained by writing to the Free Software Foundation, Inc.,
16625# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16626
16627
16628# The names of the tagged configurations supported by this script.
16629available_tags="CXX "
16630
16631# ### BEGIN LIBTOOL CONFIG
16632
16633# Which release of libtool.m4 was used?
16634macro_version=$macro_version
16635macro_revision=$macro_revision
16636
16637# Whether or not to build shared libraries.
16638build_libtool_libs=$enable_shared
16639
16640# Whether or not to build static libraries.
16641build_old_libs=$enable_static
16642
16643# What type of objects to build.
16644pic_mode=$pic_mode
16645
16646# Whether or not to optimize for fast installation.
16647fast_install=$enable_fast_install
16648
16649# The host system.
16650host_alias=$host_alias
16651host=$host
16652host_os=$host_os
16653
16654# The build system.
16655build_alias=$build_alias
16656build=$build
16657build_os=$build_os
16658
16659# A sed program that does not truncate output.
16660SED=$lt_SED
16661
16662# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16663Xsed="\$SED -e 1s/^X//"
16664
16665# A grep program that handles long lines.
16666GREP=$lt_GREP
16667
16668# An ERE matcher.
16669EGREP=$lt_EGREP
16670
16671# A literal string matcher.
16672FGREP=$lt_FGREP
16673
16674# A BSD- or MS-compatible name lister.
16675NM=$lt_NM
16676
16677# Whether we need soft or hard links.
16678LN_S=$lt_LN_S
16679
16680# What is the maximum length of a command?
16681max_cmd_len=$max_cmd_len
16682
16683# Object file suffix (normally "o").
16684objext=$ac_objext
16685
16686# Executable file suffix (normally "").
16687exeext=$exeext
16688
16689# whether the shell understands "unset".
16690lt_unset=$lt_unset
16691
16692# turn spaces into newlines.
16693SP2NL=$lt_lt_SP2NL
16694
16695# turn newlines into spaces.
16696NL2SP=$lt_lt_NL2SP
16697
16698# How to create reloadable object files.
16699reload_flag=$lt_reload_flag
16700reload_cmds=$lt_reload_cmds
16701
16702# An object symbol dumper.
16703OBJDUMP=$lt_OBJDUMP
16704
16705# Method to check whether dependent libraries are shared objects.
16706deplibs_check_method=$lt_deplibs_check_method
16707
16708# Command to use when deplibs_check_method == "file_magic".
16709file_magic_cmd=$lt_file_magic_cmd
16710
16711# The archiver.
16712AR=$lt_AR
16713AR_FLAGS=$lt_AR_FLAGS
16714
16715# A symbol stripping program.
16716STRIP=$lt_STRIP
16717
16718# Commands used to install an old-style archive.
16719RANLIB=$lt_RANLIB
16720old_postinstall_cmds=$lt_old_postinstall_cmds
16721old_postuninstall_cmds=$lt_old_postuninstall_cmds
16722
16723# A C compiler.
16724LTCC=$lt_CC
16725
16726# LTCC compiler flags.
16727LTCFLAGS=$lt_CFLAGS
16728
16729# Take the output of nm and produce a listing of raw symbols and C names.
16730global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16731
16732# Transform the output of nm in a proper C declaration.
16733global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16734
16735# Transform the output of nm in a C name address pair.
16736global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16737
16738# Transform the output of nm in a C name address pair when lib prefix is needed.
16739global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16740
16741# The name of the directory that contains temporary libtool files.
16742objdir=$objdir
16743
16744# Shell to use when invoking shell scripts.
16745SHELL=$lt_SHELL
16746
16747# An echo program that does not interpret backslashes.
16748ECHO=$lt_ECHO
16749
16750# Used to examine libraries when file_magic_cmd begins with "file".
16751MAGIC_CMD=$MAGIC_CMD
16752
16753# Must we lock files when doing compilation?
16754need_locks=$lt_need_locks
16755
16756# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16757DSYMUTIL=$lt_DSYMUTIL
16758
16759# Tool to change global to local symbols on Mac OS X.
16760NMEDIT=$lt_NMEDIT
16761
16762# Tool to manipulate fat objects and archives on Mac OS X.
16763LIPO=$lt_LIPO
16764
16765# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16766OTOOL=$lt_OTOOL
16767
16768# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16769OTOOL64=$lt_OTOOL64
16770
16771# Old archive suffix (normally "a").
16772libext=$libext
16773
16774# Shared library suffix (normally ".so").
16775shrext_cmds=$lt_shrext_cmds
16776
16777# The commands to extract the exported symbol list from a shared archive.
16778extract_expsyms_cmds=$lt_extract_expsyms_cmds
16779
16780# Variables whose values should be saved in libtool wrapper scripts and
16781# restored at link time.
16782variables_saved_for_relink=$lt_variables_saved_for_relink
16783
16784# Do we need the "lib" prefix for modules?
16785need_lib_prefix=$need_lib_prefix
16786
16787# Do we need a version for libraries?
16788need_version=$need_version
16789
16790# Library versioning type.
16791version_type=$version_type
16792
16793# Shared library runtime path variable.
16794runpath_var=$runpath_var
16795
16796# Shared library path variable.
16797shlibpath_var=$shlibpath_var
16798
16799# Is shlibpath searched before the hard-coded library search path?
16800shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16801
16802# Format of library name prefix.
16803libname_spec=$lt_libname_spec
16804
16805# List of archive names.  First name is the real one, the rest are links.
16806# The last name is the one that the linker finds with -lNAME
16807library_names_spec=$lt_library_names_spec
16808
16809# The coded name of the library, if different from the real name.
16810soname_spec=$lt_soname_spec
16811
16812# Command to use after installation of a shared archive.
16813postinstall_cmds=$lt_postinstall_cmds
16814
16815# Command to use after uninstallation of a shared archive.
16816postuninstall_cmds=$lt_postuninstall_cmds
16817
16818# Commands used to finish a libtool library installation in a directory.
16819finish_cmds=$lt_finish_cmds
16820
16821# As "finish_cmds", except a single script fragment to be evaled but
16822# not shown.
16823finish_eval=$lt_finish_eval
16824
16825# Whether we should hardcode library paths into libraries.
16826hardcode_into_libs=$hardcode_into_libs
16827
16828# Compile-time system search path for libraries.
16829sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16830
16831# Run-time system search path for libraries.
16832sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16833
16834# Whether dlopen is supported.
16835dlopen_support=$enable_dlopen
16836
16837# Whether dlopen of programs is supported.
16838dlopen_self=$enable_dlopen_self
16839
16840# Whether dlopen of statically linked programs is supported.
16841dlopen_self_static=$enable_dlopen_self_static
16842
16843# Commands to strip libraries.
16844old_striplib=$lt_old_striplib
16845striplib=$lt_striplib
16846
16847
16848# The linker used to build libraries.
16849LD=$lt_LD
16850
16851# Commands used to build an old-style archive.
16852old_archive_cmds=$lt_old_archive_cmds
16853
16854# A language specific compiler.
16855CC=$lt_compiler
16856
16857# Is the compiler the GNU compiler?
16858with_gcc=$GCC
16859
16860# Compiler flag to turn off builtin functions.
16861no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16862
16863# How to pass a linker flag through the compiler.
16864wl=$lt_lt_prog_compiler_wl
16865
16866# Additional compiler flags for building library objects.
16867pic_flag=$lt_lt_prog_compiler_pic
16868
16869# Compiler flag to prevent dynamic linking.
16870link_static_flag=$lt_lt_prog_compiler_static
16871
16872# Does compiler simultaneously support -c and -o options?
16873compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16874
16875# Whether or not to add -lc for building shared libraries.
16876build_libtool_need_lc=$archive_cmds_need_lc
16877
16878# Whether or not to disallow shared libs when runtime libs are static.
16879allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16880
16881# Compiler flag to allow reflexive dlopens.
16882export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16883
16884# Compiler flag to generate shared objects directly from archives.
16885whole_archive_flag_spec=$lt_whole_archive_flag_spec
16886
16887# Whether the compiler copes with passing no objects directly.
16888compiler_needs_object=$lt_compiler_needs_object
16889
16890# Create an old-style archive from a shared archive.
16891old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16892
16893# Create a temporary old-style archive to link instead of a shared archive.
16894old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16895
16896# Commands used to build a shared archive.
16897archive_cmds=$lt_archive_cmds
16898archive_expsym_cmds=$lt_archive_expsym_cmds
16899
16900# Commands used to build a loadable module if different from building
16901# a shared archive.
16902module_cmds=$lt_module_cmds
16903module_expsym_cmds=$lt_module_expsym_cmds
16904
16905# Whether we are building with GNU ld or not.
16906with_gnu_ld=$lt_with_gnu_ld
16907
16908# Flag that allows shared libraries with undefined symbols to be built.
16909allow_undefined_flag=$lt_allow_undefined_flag
16910
16911# Flag that enforces no undefined symbols.
16912no_undefined_flag=$lt_no_undefined_flag
16913
16914# Flag to hardcode \$libdir into a binary during linking.
16915# This must work even if \$libdir does not exist
16916hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16917
16918# If ld is used when linking, flag to hardcode \$libdir into a binary
16919# during linking.  This must work even if \$libdir does not exist.
16920hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16921
16922# Whether we need a single "-rpath" flag with a separated argument.
16923hardcode_libdir_separator=$lt_hardcode_libdir_separator
16924
16925# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16926# DIR into the resulting binary.
16927hardcode_direct=$hardcode_direct
16928
16929# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16930# DIR into the resulting binary and the resulting library dependency is
16931# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16932# library is relocated.
16933hardcode_direct_absolute=$hardcode_direct_absolute
16934
16935# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16936# into the resulting binary.
16937hardcode_minus_L=$hardcode_minus_L
16938
16939# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16940# into the resulting binary.
16941hardcode_shlibpath_var=$hardcode_shlibpath_var
16942
16943# Set to "yes" if building a shared library automatically hardcodes DIR
16944# into the library and all subsequent libraries and executables linked
16945# against it.
16946hardcode_automatic=$hardcode_automatic
16947
16948# Set to yes if linker adds runtime paths of dependent libraries
16949# to runtime path list.
16950inherit_rpath=$inherit_rpath
16951
16952# Whether libtool must link a program against all its dependency libraries.
16953link_all_deplibs=$link_all_deplibs
16954
16955# Fix the shell variable \$srcfile for the compiler.
16956fix_srcfile_path=$lt_fix_srcfile_path
16957
16958# Set to "yes" if exported symbols are required.
16959always_export_symbols=$always_export_symbols
16960
16961# The commands to list exported symbols.
16962export_symbols_cmds=$lt_export_symbols_cmds
16963
16964# Symbols that should not be listed in the preloaded symbols.
16965exclude_expsyms=$lt_exclude_expsyms
16966
16967# Symbols that must always be exported.
16968include_expsyms=$lt_include_expsyms
16969
16970# Commands necessary for linking programs (against libraries) with templates.
16971prelink_cmds=$lt_prelink_cmds
16972
16973# Specify filename containing input files.
16974file_list_spec=$lt_file_list_spec
16975
16976# How to hardcode a shared library path into an executable.
16977hardcode_action=$hardcode_action
16978
16979# The directories searched by this compiler when creating a shared library.
16980compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16981
16982# Dependencies to place before and after the objects being linked to
16983# create a shared library.
16984predep_objects=$lt_predep_objects
16985postdep_objects=$lt_postdep_objects
16986predeps=$lt_predeps
16987postdeps=$lt_postdeps
16988
16989# The library search path used internally by the compiler when linking
16990# a shared library.
16991compiler_lib_search_path=$lt_compiler_lib_search_path
16992
16993# ### END LIBTOOL CONFIG
16994
16995_LT_EOF
16996
16997  case $host_os in
16998  aix3*)
16999    cat <<\_LT_EOF >> "$cfgfile"
17000# AIX sometimes has problems with the GCC collect2 program.  For some
17001# reason, if we set the COLLECT_NAMES environment variable, the problems
17002# vanish in a puff of smoke.
17003if test "X${COLLECT_NAMES+set}" != Xset; then
17004  COLLECT_NAMES=
17005  export COLLECT_NAMES
17006fi
17007_LT_EOF
17008    ;;
17009  esac
17010
17011
17012ltmain="$ac_aux_dir/ltmain.sh"
17013
17014
17015  # We use sed instead of cat because bash on DJGPP gets confused if
17016  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17017  # text mode, it properly converts lines to CR/LF.  This bash problem
17018  # is reportedly fixed, but why not run on old versions too?
17019  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17020    || (rm -f "$cfgfile"; exit 1)
17021
17022  case $xsi_shell in
17023  yes)
17024    cat << \_LT_EOF >> "$cfgfile"
17025
17026# func_dirname file append nondir_replacement
17027# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17028# otherwise set result to NONDIR_REPLACEMENT.
17029func_dirname ()
17030{
17031  case ${1} in
17032    */*) func_dirname_result="${1%/*}${2}" ;;
17033    *  ) func_dirname_result="${3}" ;;
17034  esac
17035}
17036
17037# func_basename file
17038func_basename ()
17039{
17040  func_basename_result="${1##*/}"
17041}
17042
17043# func_dirname_and_basename file append nondir_replacement
17044# perform func_basename and func_dirname in a single function
17045# call:
17046#   dirname:  Compute the dirname of FILE.  If nonempty,
17047#             add APPEND to the result, otherwise set result
17048#             to NONDIR_REPLACEMENT.
17049#             value returned in "$func_dirname_result"
17050#   basename: Compute filename of FILE.
17051#             value retuned in "$func_basename_result"
17052# Implementation must be kept synchronized with func_dirname
17053# and func_basename. For efficiency, we do not delegate to
17054# those functions but instead duplicate the functionality here.
17055func_dirname_and_basename ()
17056{
17057  case ${1} in
17058    */*) func_dirname_result="${1%/*}${2}" ;;
17059    *  ) func_dirname_result="${3}" ;;
17060  esac
17061  func_basename_result="${1##*/}"
17062}
17063
17064# func_stripname prefix suffix name
17065# strip PREFIX and SUFFIX off of NAME.
17066# PREFIX and SUFFIX must not contain globbing or regex special
17067# characters, hashes, percent signs, but SUFFIX may contain a leading
17068# dot (in which case that matches only a dot).
17069func_stripname ()
17070{
17071  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17072  # positional parameters, so assign one to ordinary parameter first.
17073  func_stripname_result=${3}
17074  func_stripname_result=${func_stripname_result#"${1}"}
17075  func_stripname_result=${func_stripname_result%"${2}"}
17076}
17077
17078# func_opt_split
17079func_opt_split ()
17080{
17081  func_opt_split_opt=${1%%=*}
17082  func_opt_split_arg=${1#*=}
17083}
17084
17085# func_lo2o object
17086func_lo2o ()
17087{
17088  case ${1} in
17089    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17090    *)    func_lo2o_result=${1} ;;
17091  esac
17092}
17093
17094# func_xform libobj-or-source
17095func_xform ()
17096{
17097  func_xform_result=${1%.*}.lo
17098}
17099
17100# func_arith arithmetic-term...
17101func_arith ()
17102{
17103  func_arith_result=$(( $* ))
17104}
17105
17106# func_len string
17107# STRING may not start with a hyphen.
17108func_len ()
17109{
17110  func_len_result=${#1}
17111}
17112
17113_LT_EOF
17114    ;;
17115  *) # Bourne compatible functions.
17116    cat << \_LT_EOF >> "$cfgfile"
17117
17118# func_dirname file append nondir_replacement
17119# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17120# otherwise set result to NONDIR_REPLACEMENT.
17121func_dirname ()
17122{
17123  # Extract subdirectory from the argument.
17124  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17125  if test "X$func_dirname_result" = "X${1}"; then
17126    func_dirname_result="${3}"
17127  else
17128    func_dirname_result="$func_dirname_result${2}"
17129  fi
17130}
17131
17132# func_basename file
17133func_basename ()
17134{
17135  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17136}
17137
17138
17139# func_stripname prefix suffix name
17140# strip PREFIX and SUFFIX off of NAME.
17141# PREFIX and SUFFIX must not contain globbing or regex special
17142# characters, hashes, percent signs, but SUFFIX may contain a leading
17143# dot (in which case that matches only a dot).
17144# func_strip_suffix prefix name
17145func_stripname ()
17146{
17147  case ${2} in
17148    .*) func_stripname_result=`$ECHO "X${3}" \
17149           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17150    *)  func_stripname_result=`$ECHO "X${3}" \
17151           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17152  esac
17153}
17154
17155# sed scripts:
17156my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17157my_sed_long_arg='1s/^-[^=]*=//'
17158
17159# func_opt_split
17160func_opt_split ()
17161{
17162  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17163  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17164}
17165
17166# func_lo2o object
17167func_lo2o ()
17168{
17169  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17170}
17171
17172# func_xform libobj-or-source
17173func_xform ()
17174{
17175  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17176}
17177
17178# func_arith arithmetic-term...
17179func_arith ()
17180{
17181  func_arith_result=`expr "$@"`
17182}
17183
17184# func_len string
17185# STRING may not start with a hyphen.
17186func_len ()
17187{
17188  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17189}
17190
17191_LT_EOF
17192esac
17193
17194case $lt_shell_append in
17195  yes)
17196    cat << \_LT_EOF >> "$cfgfile"
17197
17198# func_append var value
17199# Append VALUE to the end of shell variable VAR.
17200func_append ()
17201{
17202  eval "$1+=\$2"
17203}
17204_LT_EOF
17205    ;;
17206  *)
17207    cat << \_LT_EOF >> "$cfgfile"
17208
17209# func_append var value
17210# Append VALUE to the end of shell variable VAR.
17211func_append ()
17212{
17213  eval "$1=\$$1\$2"
17214}
17215
17216_LT_EOF
17217    ;;
17218  esac
17219
17220
17221  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17222    || (rm -f "$cfgfile"; exit 1)
17223
17224  mv -f "$cfgfile" "$ofile" ||
17225    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17226  chmod +x "$ofile"
17227
17228
17229    cat <<_LT_EOF >> "$ofile"
17230
17231# ### BEGIN LIBTOOL TAG CONFIG: CXX
17232
17233# The linker used to build libraries.
17234LD=$lt_LD_CXX
17235
17236# Commands used to build an old-style archive.
17237old_archive_cmds=$lt_old_archive_cmds_CXX
17238
17239# A language specific compiler.
17240CC=$lt_compiler_CXX
17241
17242# Is the compiler the GNU compiler?
17243with_gcc=$GCC_CXX
17244
17245# Compiler flag to turn off builtin functions.
17246no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17247
17248# How to pass a linker flag through the compiler.
17249wl=$lt_lt_prog_compiler_wl_CXX
17250
17251# Additional compiler flags for building library objects.
17252pic_flag=$lt_lt_prog_compiler_pic_CXX
17253
17254# Compiler flag to prevent dynamic linking.
17255link_static_flag=$lt_lt_prog_compiler_static_CXX
17256
17257# Does compiler simultaneously support -c and -o options?
17258compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17259
17260# Whether or not to add -lc for building shared libraries.
17261build_libtool_need_lc=$archive_cmds_need_lc_CXX
17262
17263# Whether or not to disallow shared libs when runtime libs are static.
17264allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17265
17266# Compiler flag to allow reflexive dlopens.
17267export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17268
17269# Compiler flag to generate shared objects directly from archives.
17270whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17271
17272# Whether the compiler copes with passing no objects directly.
17273compiler_needs_object=$lt_compiler_needs_object_CXX
17274
17275# Create an old-style archive from a shared archive.
17276old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17277
17278# Create a temporary old-style archive to link instead of a shared archive.
17279old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17280
17281# Commands used to build a shared archive.
17282archive_cmds=$lt_archive_cmds_CXX
17283archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17284
17285# Commands used to build a loadable module if different from building
17286# a shared archive.
17287module_cmds=$lt_module_cmds_CXX
17288module_expsym_cmds=$lt_module_expsym_cmds_CXX
17289
17290# Whether we are building with GNU ld or not.
17291with_gnu_ld=$lt_with_gnu_ld_CXX
17292
17293# Flag that allows shared libraries with undefined symbols to be built.
17294allow_undefined_flag=$lt_allow_undefined_flag_CXX
17295
17296# Flag that enforces no undefined symbols.
17297no_undefined_flag=$lt_no_undefined_flag_CXX
17298
17299# Flag to hardcode \$libdir into a binary during linking.
17300# This must work even if \$libdir does not exist
17301hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17302
17303# If ld is used when linking, flag to hardcode \$libdir into a binary
17304# during linking.  This must work even if \$libdir does not exist.
17305hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17306
17307# Whether we need a single "-rpath" flag with a separated argument.
17308hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17309
17310# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17311# DIR into the resulting binary.
17312hardcode_direct=$hardcode_direct_CXX
17313
17314# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17315# DIR into the resulting binary and the resulting library dependency is
17316# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17317# library is relocated.
17318hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17319
17320# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17321# into the resulting binary.
17322hardcode_minus_L=$hardcode_minus_L_CXX
17323
17324# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17325# into the resulting binary.
17326hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17327
17328# Set to "yes" if building a shared library automatically hardcodes DIR
17329# into the library and all subsequent libraries and executables linked
17330# against it.
17331hardcode_automatic=$hardcode_automatic_CXX
17332
17333# Set to yes if linker adds runtime paths of dependent libraries
17334# to runtime path list.
17335inherit_rpath=$inherit_rpath_CXX
17336
17337# Whether libtool must link a program against all its dependency libraries.
17338link_all_deplibs=$link_all_deplibs_CXX
17339
17340# Fix the shell variable \$srcfile for the compiler.
17341fix_srcfile_path=$lt_fix_srcfile_path_CXX
17342
17343# Set to "yes" if exported symbols are required.
17344always_export_symbols=$always_export_symbols_CXX
17345
17346# The commands to list exported symbols.
17347export_symbols_cmds=$lt_export_symbols_cmds_CXX
17348
17349# Symbols that should not be listed in the preloaded symbols.
17350exclude_expsyms=$lt_exclude_expsyms_CXX
17351
17352# Symbols that must always be exported.
17353include_expsyms=$lt_include_expsyms_CXX
17354
17355# Commands necessary for linking programs (against libraries) with templates.
17356prelink_cmds=$lt_prelink_cmds_CXX
17357
17358# Specify filename containing input files.
17359file_list_spec=$lt_file_list_spec_CXX
17360
17361# How to hardcode a shared library path into an executable.
17362hardcode_action=$hardcode_action_CXX
17363
17364# The directories searched by this compiler when creating a shared library.
17365compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17366
17367# Dependencies to place before and after the objects being linked to
17368# create a shared library.
17369predep_objects=$lt_predep_objects_CXX
17370postdep_objects=$lt_postdep_objects_CXX
17371predeps=$lt_predeps_CXX
17372postdeps=$lt_postdeps_CXX
17373
17374# The library search path used internally by the compiler when linking
17375# a shared library.
17376compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17377
17378# ### END LIBTOOL TAG CONFIG: CXX
17379_LT_EOF
17380
17381 ;;
17382    "default":C) \
17383	chmod +x vdk-config-* ;;
17384
17385  esac
17386done # for ac_tag
17387
17388
17389as_fn_exit 0
17390_ACEOF
17391ac_clean_files=$ac_clean_files_save
17392
17393test $ac_write_fail = 0 ||
17394  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17395
17396
17397# configure is writing to config.log, and then calls config.status.
17398# config.status does its own redirection, appending to config.log.
17399# Unfortunately, on DOS this fails, as config.log is still kept open
17400# by configure, so config.status won't be able to write to it; its
17401# output is simply discarded.  So we exec the FD to /dev/null,
17402# effectively closing config.log, so it can be properly (re)opened and
17403# appended to by config.status.  When coming back to configure, we
17404# need to make the FD available again.
17405if test "$no_create" != yes; then
17406  ac_cs_success=:
17407  ac_config_status_args=
17408  test "$silent" = yes &&
17409    ac_config_status_args="$ac_config_status_args --quiet"
17410  exec 5>/dev/null
17411  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17412  exec 5>>config.log
17413  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17414  # would make configure fail if this is the last instruction.
17415  $ac_cs_success || as_fn_exit $?
17416fi
17417if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17418  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17419$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17420fi
17421
17422
17423if test -z $DOXYGEN; then
17424	echo "*****************************************************";
17425	echo "* doxygen was not found, i will not be able to      *";
17426	echo "* generate the docs by myself.                      *";
17427	echo "* Doxygen is recommended, please check:             *";
17428	echo "* http://www.doxygen.org/download.html              *";
17429	echo "* for the latest version of doxygen.                *";
17430	echo "*****************************************************";
17431	WITHDOCHTML="no"
17432else
17433	WITHDOCHTML="yes"
17434fi
17435
17436echo ""
17437echo "VDK configure finished"
17438echo "VDK configuration:"
17439echo " 	- Version      			    : $VERSION"
17440echo " 	- Make static lib		    : $enable_static"
17441echo " 	- Make vdk test program		    : $enable_testvdk"
17442echo " 	- Debug        			    : $enable_debug"
17443echo " 	- Optimization 			    : $enable_opt"
17444echo " 	- Make docs on html format	    : $WITHDOCHTML"
17445echo " 	* Host                              : $host"
17446echo " 	* Installation Prefix               : $prefix"
17447echo " 	* Compiler version                  :" `g++ --version`
17448echo " 	* Target machine                    :" `uname -rmp`
17449echo "  *----------------------------------------------------"
17450echo "* to build your apps you can use:"
17451echo "  \`vdk-config-$VDK_VERSION_MAJOR option\` (see man vdk-config-$VDK_VERSION_MAJOR) "
17452echo "   or new"
17453echo "  \`pkg-config vdk-$VDK_VERSION_MAJOR.x option\` (see man pkg-config)"
17454echo " have fun - VDK Team"
17455
17456