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="src/driver.c"
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
747quesoglc_LIBS
748quesoglc_CFLAGS
749INSTALL_KDE_CONFIG_FILES_FALSE
750INSTALL_KDE_CONFIG_FILES_TRUE
751kdessconfigdir
752INSTALL_XSCREENSAVER_CONFIG_FILES_FALSE
753INSTALL_XSCREENSAVER_CONFIG_FILES_TRUE
754configdir
755WITHGLEW_FALSE
756WITHGLEW_TRUE
757GLEW
758PTHREAD_LIBS
759freealut_LIBS
760freealut_CFLAGS
761WITHSOUND_FALSE
762WITHSOUND_TRUE
763Wand_LIBS
764Wand_CFLAGS
765PKG_CONFIG
766X_EXTRA_LIBS
767X_LIBS
768X_PRE_LIBS
769X_CFLAGS
770XMKMF
771BZIP2
772CXXCPP
773OTOOL64
774OTOOL
775LIPO
776NMEDIT
777DSYMUTIL
778lt_ECHO
779RANLIB
780AR
781OBJDUMP
782LN_S
783NM
784ac_ct_DUMPBIN
785DUMPBIN
786LD
787FGREP
788SED
789host_os
790host_vendor
791host_cpu
792host
793build_os
794build_vendor
795build_cpu
796build
797LIBTOOL
798am__fastdepCXX_FALSE
799am__fastdepCXX_TRUE
800CXXDEPMODE
801ac_ct_CXX
802CXXFLAGS
803CXX
804EGREP
805GREP
806CPP
807am__fastdepCC_FALSE
808am__fastdepCC_TRUE
809CCDEPMODE
810AMDEPBACKSLASH
811AMDEP_FALSE
812AMDEP_TRUE
813am__quote
814am__include
815DEPDIR
816OBJEXT
817EXEEXT
818ac_ct_CC
819CPPFLAGS
820LDFLAGS
821CFLAGS
822CC
823am__untar
824am__tar
825AMTAR
826am__leading_dot
827SET_MAKE
828AWK
829mkdir_p
830MKDIR_P
831INSTALL_STRIP_PROGRAM
832STRIP
833install_sh
834MAKEINFO
835AUTOHEADER
836AUTOMAKE
837AUTOCONF
838ACLOCAL
839VERSION
840PACKAGE
841CYGPATH_W
842am__isrc
843INSTALL_DATA
844INSTALL_SCRIPT
845INSTALL_PROGRAM
846target_alias
847host_alias
848build_alias
849LIBS
850ECHO_T
851ECHO_N
852ECHO_C
853DEFS
854mandir
855localedir
856libdir
857psdir
858pdfdir
859dvidir
860htmldir
861infodir
862docdir
863oldincludedir
864includedir
865localstatedir
866sharedstatedir
867sysconfdir
868datadir
869datarootdir
870libexecdir
871sbindir
872bindir
873program_transform_name
874prefix
875exec_prefix
876PACKAGE_URL
877PACKAGE_BUGREPORT
878PACKAGE_STRING
879PACKAGE_VERSION
880PACKAGE_TARNAME
881PACKAGE_NAME
882PATH_SEPARATOR
883SHELL'
884ac_subst_files=''
885ac_user_opts='
886enable_option_checking
887enable_dependency_tracking
888enable_debug
889enable_shared
890enable_static
891with_pic
892enable_fast_install
893with_gnu_ld
894enable_libtool_lock
895enable_bzip2
896with_x
897enable_sound
898with_configdir
899with_kdessconfigdir
900'
901      ac_precious_vars='build_alias
902host_alias
903target_alias
904CC
905CFLAGS
906LDFLAGS
907LIBS
908CPPFLAGS
909CPP
910CXX
911CXXFLAGS
912CCC
913CXXCPP
914XMKMF
915PKG_CONFIG
916Wand_CFLAGS
917Wand_LIBS
918freealut_CFLAGS
919freealut_LIBS
920quesoglc_CFLAGS
921quesoglc_LIBS'
922
923
924# Initialize some variables set by options.
925ac_init_help=
926ac_init_version=false
927ac_unrecognized_opts=
928ac_unrecognized_sep=
929# The variables have the same names as the options, with
930# dashes changed to underlines.
931cache_file=/dev/null
932exec_prefix=NONE
933no_create=
934no_recursion=
935prefix=NONE
936program_prefix=NONE
937program_suffix=NONE
938program_transform_name=s,x,x,
939silent=
940site=
941srcdir=
942verbose=
943x_includes=NONE
944x_libraries=NONE
945
946# Installation directory options.
947# These are left unexpanded so users can "make install exec_prefix=/foo"
948# and all the variables that are supposed to be based on exec_prefix
949# by default will actually change.
950# Use braces instead of parens because sh, perl, etc. also accept them.
951# (The list follows the same order as the GNU Coding Standards.)
952bindir='${exec_prefix}/bin'
953sbindir='${exec_prefix}/sbin'
954libexecdir='${exec_prefix}/libexec'
955datarootdir='${prefix}/share'
956datadir='${datarootdir}'
957sysconfdir='${prefix}/etc'
958sharedstatedir='${prefix}/com'
959localstatedir='${prefix}/var'
960includedir='${prefix}/include'
961oldincludedir='/usr/include'
962docdir='${datarootdir}/doc/${PACKAGE}'
963infodir='${datarootdir}/info'
964htmldir='${docdir}'
965dvidir='${docdir}'
966pdfdir='${docdir}'
967psdir='${docdir}'
968libdir='${exec_prefix}/lib'
969localedir='${datarootdir}/locale'
970mandir='${datarootdir}/man'
971
972ac_prev=
973ac_dashdash=
974for ac_option
975do
976  # If the previous option needs an argument, assign it.
977  if test -n "$ac_prev"; then
978    eval $ac_prev=\$ac_option
979    ac_prev=
980    continue
981  fi
982
983  case $ac_option in
984  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985  *)	ac_optarg=yes ;;
986  esac
987
988  # Accept the important Cygnus configure options, so we can diagnose typos.
989
990  case $ac_dashdash$ac_option in
991  --)
992    ac_dashdash=yes ;;
993
994  -bindir | --bindir | --bindi | --bind | --bin | --bi)
995    ac_prev=bindir ;;
996  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997    bindir=$ac_optarg ;;
998
999  -build | --build | --buil | --bui | --bu)
1000    ac_prev=build_alias ;;
1001  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002    build_alias=$ac_optarg ;;
1003
1004  -cache-file | --cache-file | --cache-fil | --cache-fi \
1005  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006    ac_prev=cache_file ;;
1007  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009    cache_file=$ac_optarg ;;
1010
1011  --config-cache | -C)
1012    cache_file=config.cache ;;
1013
1014  -datadir | --datadir | --datadi | --datad)
1015    ac_prev=datadir ;;
1016  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017    datadir=$ac_optarg ;;
1018
1019  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020  | --dataroo | --dataro | --datar)
1021    ac_prev=datarootdir ;;
1022  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024    datarootdir=$ac_optarg ;;
1025
1026  -disable-* | --disable-*)
1027    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028    # Reject names that are not valid shell variable names.
1029    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030      as_fn_error "invalid feature name: $ac_useropt"
1031    ac_useropt_orig=$ac_useropt
1032    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033    case $ac_user_opts in
1034      *"
1035"enable_$ac_useropt"
1036"*) ;;
1037      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038	 ac_unrecognized_sep=', ';;
1039    esac
1040    eval enable_$ac_useropt=no ;;
1041
1042  -docdir | --docdir | --docdi | --doc | --do)
1043    ac_prev=docdir ;;
1044  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045    docdir=$ac_optarg ;;
1046
1047  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048    ac_prev=dvidir ;;
1049  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050    dvidir=$ac_optarg ;;
1051
1052  -enable-* | --enable-*)
1053    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054    # Reject names that are not valid shell variable names.
1055    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056      as_fn_error "invalid feature name: $ac_useropt"
1057    ac_useropt_orig=$ac_useropt
1058    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059    case $ac_user_opts in
1060      *"
1061"enable_$ac_useropt"
1062"*) ;;
1063      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064	 ac_unrecognized_sep=', ';;
1065    esac
1066    eval enable_$ac_useropt=\$ac_optarg ;;
1067
1068  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070  | --exec | --exe | --ex)
1071    ac_prev=exec_prefix ;;
1072  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074  | --exec=* | --exe=* | --ex=*)
1075    exec_prefix=$ac_optarg ;;
1076
1077  -gas | --gas | --ga | --g)
1078    # Obsolete; use --with-gas.
1079    with_gas=yes ;;
1080
1081  -help | --help | --hel | --he | -h)
1082    ac_init_help=long ;;
1083  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084    ac_init_help=recursive ;;
1085  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086    ac_init_help=short ;;
1087
1088  -host | --host | --hos | --ho)
1089    ac_prev=host_alias ;;
1090  -host=* | --host=* | --hos=* | --ho=*)
1091    host_alias=$ac_optarg ;;
1092
1093  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094    ac_prev=htmldir ;;
1095  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096  | --ht=*)
1097    htmldir=$ac_optarg ;;
1098
1099  -includedir | --includedir | --includedi | --included | --include \
1100  | --includ | --inclu | --incl | --inc)
1101    ac_prev=includedir ;;
1102  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103  | --includ=* | --inclu=* | --incl=* | --inc=*)
1104    includedir=$ac_optarg ;;
1105
1106  -infodir | --infodir | --infodi | --infod | --info | --inf)
1107    ac_prev=infodir ;;
1108  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109    infodir=$ac_optarg ;;
1110
1111  -libdir | --libdir | --libdi | --libd)
1112    ac_prev=libdir ;;
1113  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114    libdir=$ac_optarg ;;
1115
1116  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117  | --libexe | --libex | --libe)
1118    ac_prev=libexecdir ;;
1119  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120  | --libexe=* | --libex=* | --libe=*)
1121    libexecdir=$ac_optarg ;;
1122
1123  -localedir | --localedir | --localedi | --localed | --locale)
1124    ac_prev=localedir ;;
1125  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126    localedir=$ac_optarg ;;
1127
1128  -localstatedir | --localstatedir | --localstatedi | --localstated \
1129  | --localstate | --localstat | --localsta | --localst | --locals)
1130    ac_prev=localstatedir ;;
1131  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133    localstatedir=$ac_optarg ;;
1134
1135  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136    ac_prev=mandir ;;
1137  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138    mandir=$ac_optarg ;;
1139
1140  -nfp | --nfp | --nf)
1141    # Obsolete; use --without-fp.
1142    with_fp=no ;;
1143
1144  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145  | --no-cr | --no-c | -n)
1146    no_create=yes ;;
1147
1148  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150    no_recursion=yes ;;
1151
1152  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154  | --oldin | --oldi | --old | --ol | --o)
1155    ac_prev=oldincludedir ;;
1156  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159    oldincludedir=$ac_optarg ;;
1160
1161  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162    ac_prev=prefix ;;
1163  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164    prefix=$ac_optarg ;;
1165
1166  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167  | --program-pre | --program-pr | --program-p)
1168    ac_prev=program_prefix ;;
1169  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171    program_prefix=$ac_optarg ;;
1172
1173  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174  | --program-suf | --program-su | --program-s)
1175    ac_prev=program_suffix ;;
1176  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178    program_suffix=$ac_optarg ;;
1179
1180  -program-transform-name | --program-transform-name \
1181  | --program-transform-nam | --program-transform-na \
1182  | --program-transform-n | --program-transform- \
1183  | --program-transform | --program-transfor \
1184  | --program-transfo | --program-transf \
1185  | --program-trans | --program-tran \
1186  | --progr-tra | --program-tr | --program-t)
1187    ac_prev=program_transform_name ;;
1188  -program-transform-name=* | --program-transform-name=* \
1189  | --program-transform-nam=* | --program-transform-na=* \
1190  | --program-transform-n=* | --program-transform-=* \
1191  | --program-transform=* | --program-transfor=* \
1192  | --program-transfo=* | --program-transf=* \
1193  | --program-trans=* | --program-tran=* \
1194  | --progr-tra=* | --program-tr=* | --program-t=*)
1195    program_transform_name=$ac_optarg ;;
1196
1197  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198    ac_prev=pdfdir ;;
1199  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200    pdfdir=$ac_optarg ;;
1201
1202  -psdir | --psdir | --psdi | --psd | --ps)
1203    ac_prev=psdir ;;
1204  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205    psdir=$ac_optarg ;;
1206
1207  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208  | -silent | --silent | --silen | --sile | --sil)
1209    silent=yes ;;
1210
1211  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212    ac_prev=sbindir ;;
1213  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214  | --sbi=* | --sb=*)
1215    sbindir=$ac_optarg ;;
1216
1217  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1218  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1219  | --sharedst | --shareds | --shared | --share | --shar \
1220  | --sha | --sh)
1221    ac_prev=sharedstatedir ;;
1222  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1223  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1224  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225  | --sha=* | --sh=*)
1226    sharedstatedir=$ac_optarg ;;
1227
1228  -site | --site | --sit)
1229    ac_prev=site ;;
1230  -site=* | --site=* | --sit=*)
1231    site=$ac_optarg ;;
1232
1233  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234    ac_prev=srcdir ;;
1235  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1236    srcdir=$ac_optarg ;;
1237
1238  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1239  | --syscon | --sysco | --sysc | --sys | --sy)
1240    ac_prev=sysconfdir ;;
1241  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1242  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1243    sysconfdir=$ac_optarg ;;
1244
1245  -target | --target | --targe | --targ | --tar | --ta | --t)
1246    ac_prev=target_alias ;;
1247  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1248    target_alias=$ac_optarg ;;
1249
1250  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251    verbose=yes ;;
1252
1253  -version | --version | --versio | --versi | --vers | -V)
1254    ac_init_version=: ;;
1255
1256  -with-* | --with-*)
1257    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1258    # Reject names that are not valid shell variable names.
1259    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260      as_fn_error "invalid package name: $ac_useropt"
1261    ac_useropt_orig=$ac_useropt
1262    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263    case $ac_user_opts in
1264      *"
1265"with_$ac_useropt"
1266"*) ;;
1267      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1268	 ac_unrecognized_sep=', ';;
1269    esac
1270    eval with_$ac_useropt=\$ac_optarg ;;
1271
1272  -without-* | --without-*)
1273    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274    # Reject names that are not valid shell variable names.
1275    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276      as_fn_error "invalid package name: $ac_useropt"
1277    ac_useropt_orig=$ac_useropt
1278    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279    case $ac_user_opts in
1280      *"
1281"with_$ac_useropt"
1282"*) ;;
1283      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1284	 ac_unrecognized_sep=', ';;
1285    esac
1286    eval with_$ac_useropt=no ;;
1287
1288  --x)
1289    # Obsolete; use --with-x.
1290    with_x=yes ;;
1291
1292  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293  | --x-incl | --x-inc | --x-in | --x-i)
1294    ac_prev=x_includes ;;
1295  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297    x_includes=$ac_optarg ;;
1298
1299  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301    ac_prev=x_libraries ;;
1302  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304    x_libraries=$ac_optarg ;;
1305
1306  -*) as_fn_error "unrecognized option: \`$ac_option'
1307Try \`$0 --help' for more information."
1308    ;;
1309
1310  *=*)
1311    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312    # Reject names that are not valid shell variable names.
1313    case $ac_envvar in #(
1314      '' | [0-9]* | *[!_$as_cr_alnum]* )
1315      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1316    esac
1317    eval $ac_envvar=\$ac_optarg
1318    export $ac_envvar ;;
1319
1320  *)
1321    # FIXME: should be removed in autoconf 3.0.
1322    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1326    ;;
1327
1328  esac
1329done
1330
1331if test -n "$ac_prev"; then
1332  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333  as_fn_error "missing argument to $ac_option"
1334fi
1335
1336if test -n "$ac_unrecognized_opts"; then
1337  case $enable_option_checking in
1338    no) ;;
1339    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1340    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341  esac
1342fi
1343
1344# Check all directory arguments for consistency.
1345for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346		datadir sysconfdir sharedstatedir localstatedir includedir \
1347		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348		libdir localedir mandir
1349do
1350  eval ac_val=\$$ac_var
1351  # Remove trailing slashes.
1352  case $ac_val in
1353    */ )
1354      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1355      eval $ac_var=\$ac_val;;
1356  esac
1357  # Be sure to have absolute directory names.
1358  case $ac_val in
1359    [\\/$]* | ?:[\\/]* )  continue;;
1360    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361  esac
1362  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1363done
1364
1365# There might be people who depend on the old broken behavior: `$host'
1366# used to hold the argument of --host etc.
1367# FIXME: To remove some day.
1368build=$build_alias
1369host=$host_alias
1370target=$target_alias
1371
1372# FIXME: To remove some day.
1373if test "x$host_alias" != x; then
1374  if test "x$build_alias" = x; then
1375    cross_compiling=maybe
1376    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1377    If a cross compiler is detected then cross compile mode will be used." >&2
1378  elif test "x$build_alias" != "x$host_alias"; then
1379    cross_compiling=yes
1380  fi
1381fi
1382
1383ac_tool_prefix=
1384test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386test "$silent" = yes && exec 6>/dev/null
1387
1388
1389ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390ac_ls_di=`ls -di .` &&
1391ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392  as_fn_error "working directory cannot be determined"
1393test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394  as_fn_error "pwd does not report name of working directory"
1395
1396
1397# Find the source files, if location was not specified.
1398if test -z "$srcdir"; then
1399  ac_srcdir_defaulted=yes
1400  # Try the directory containing this script, then the parent directory.
1401  ac_confdir=`$as_dirname -- "$as_myself" ||
1402$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403	 X"$as_myself" : 'X\(//\)[^/]' \| \
1404	 X"$as_myself" : 'X\(//\)$' \| \
1405	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406$as_echo X"$as_myself" |
1407    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408	    s//\1/
1409	    q
1410	  }
1411	  /^X\(\/\/\)[^/].*/{
1412	    s//\1/
1413	    q
1414	  }
1415	  /^X\(\/\/\)$/{
1416	    s//\1/
1417	    q
1418	  }
1419	  /^X\(\/\).*/{
1420	    s//\1/
1421	    q
1422	  }
1423	  s/.*/./; q'`
1424  srcdir=$ac_confdir
1425  if test ! -r "$srcdir/$ac_unique_file"; then
1426    srcdir=..
1427  fi
1428else
1429  ac_srcdir_defaulted=no
1430fi
1431if test ! -r "$srcdir/$ac_unique_file"; then
1432  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1434fi
1435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436ac_abs_confdir=`(
1437	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1438	pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441  srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451  eval ac_env_${ac_var}_value=\$${ac_var}
1452  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
1455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460  # Omit some internal or obsolete options to make the list less imposing.
1461  # This message is too long to be a string in the A/UX 3.1 sh.
1462  cat <<_ACEOF
1463\`configure' configures this package to adapt to many kinds of systems.
1464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE.  See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473  -h, --help              display this help and exit
1474      --help=short        display options specific to this package
1475      --help=recursive    display the short help of all the included packages
1476  -V, --version           display version information and exit
1477  -q, --quiet, --silent   do not print \`checking...' messages
1478      --cache-file=FILE   cache test results in FILE [disabled]
1479  -C, --config-cache      alias for \`--cache-file=config.cache'
1480  -n, --no-create         do not create output files
1481      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1482
1483Installation directories:
1484  --prefix=PREFIX         install architecture-independent files in PREFIX
1485                          [$ac_default_prefix]
1486  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1487                          [PREFIX]
1488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
1497  --bindir=DIR            user executables [EPREFIX/bin]
1498  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1499  --libexecdir=DIR        program executables [EPREFIX/libexec]
1500  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1501  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1502  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1503  --libdir=DIR            object code libraries [EPREFIX/lib]
1504  --includedir=DIR        C header files [PREFIX/include]
1505  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1506  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1507  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1508  --infodir=DIR           info documentation [DATAROOTDIR/info]
1509  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1510  --mandir=DIR            man documentation [DATAROOTDIR/man]
1511  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1512  --htmldir=DIR           html documentation [DOCDIR]
1513  --dvidir=DIR            dvi documentation [DOCDIR]
1514  --pdfdir=DIR            pdf documentation [DOCDIR]
1515  --psdir=DIR             ps documentation [DOCDIR]
1516_ACEOF
1517
1518  cat <<\_ACEOF
1519
1520Program names:
1521  --program-prefix=PREFIX            prepend PREFIX to installed program names
1522  --program-suffix=SUFFIX            append SUFFIX to installed program names
1523  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1524
1525X features:
1526  --x-includes=DIR    X include files are in DIR
1527  --x-libraries=DIR   X library files are in DIR
1528
1529System types:
1530  --build=BUILD     configure for building on BUILD [guessed]
1531  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1532_ACEOF
1533fi
1534
1535if test -n "$ac_init_help"; then
1536
1537  cat <<\_ACEOF
1538
1539Optional Features:
1540  --disable-option-checking  ignore unrecognized --enable/--with options
1541  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1542  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1543  --disable-dependency-tracking  speeds up one-time build
1544  --enable-dependency-tracking   do not reject slow dependency extractors
1545  --enable-debug          build with debugging information default=no
1546  --enable-shared[=PKGS]  build shared libraries [default=no]
1547  --enable-static[=PKGS]  build static libraries [default=yes]
1548  --enable-fast-install[=PKGS]
1549                          optimize for fast installation [default=yes]
1550  --disable-libtool-lock  avoid locking (might break parallel builds)
1551  --disable-bzip2         Don't compress textures/audio with bzip2.
1552  --disable-sound         Don't compile with sound.
1553
1554Optional Packages:
1555  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1556  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1557  --with-pic              try to use only PIC/non-PIC objects [default=use
1558                          both]
1559  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1560  --with-x                use the X Window System
1561  --with-configdir        Where is xscreensaver stashing its screensaver configs?
1562  --with-kdessconfigdir   Where is KDE stashing its screensaver configs?
1563
1564Some influential environment variables:
1565  CC          C compiler command
1566  CFLAGS      C compiler flags
1567  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1568              nonstandard directory <lib dir>
1569  LIBS        libraries to pass to the linker, e.g. -l<library>
1570  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1571              you have headers in a nonstandard directory <include dir>
1572  CPP         C preprocessor
1573  CXX         C++ compiler command
1574  CXXFLAGS    C++ compiler flags
1575  CXXCPP      C++ preprocessor
1576  XMKMF       Path to xmkmf, Makefile generator for X Window System
1577  PKG_CONFIG  path to pkg-config utility
1578  Wand_CFLAGS C compiler flags for Wand, overriding pkg-config
1579  Wand_LIBS   linker flags for Wand, overriding pkg-config
1580  freealut_CFLAGS
1581              C compiler flags for freealut, overriding pkg-config
1582  freealut_LIBS
1583              linker flags for freealut, overriding pkg-config
1584  quesoglc_CFLAGS
1585              C compiler flags for quesoglc, overriding pkg-config
1586  quesoglc_LIBS
1587              linker flags for quesoglc, overriding pkg-config
1588
1589Use these variables to override the choices made by `configure' or to help
1590it to find libraries and programs with nonstandard names/locations.
1591
1592Report bugs to the package provider.
1593_ACEOF
1594ac_status=$?
1595fi
1596
1597if test "$ac_init_help" = "recursive"; then
1598  # If there are subdirs, report their specific --help.
1599  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600    test -d "$ac_dir" ||
1601      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602      continue
1603    ac_builddir=.
1604
1605case "$ac_dir" in
1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607*)
1608  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609  # A ".." for each directory in $ac_dir_suffix.
1610  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611  case $ac_top_builddir_sub in
1612  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614  esac ;;
1615esac
1616ac_abs_top_builddir=$ac_pwd
1617ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618# for backward compatibility:
1619ac_top_builddir=$ac_top_build_prefix
1620
1621case $srcdir in
1622  .)  # We are building in place.
1623    ac_srcdir=.
1624    ac_top_srcdir=$ac_top_builddir_sub
1625    ac_abs_top_srcdir=$ac_pwd ;;
1626  [\\/]* | ?:[\\/]* )  # Absolute name.
1627    ac_srcdir=$srcdir$ac_dir_suffix;
1628    ac_top_srcdir=$srcdir
1629    ac_abs_top_srcdir=$srcdir ;;
1630  *) # Relative name.
1631    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632    ac_top_srcdir=$ac_top_build_prefix$srcdir
1633    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634esac
1635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637    cd "$ac_dir" || { ac_status=$?; continue; }
1638    # Check for guested configure.
1639    if test -f "$ac_srcdir/configure.gnu"; then
1640      echo &&
1641      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642    elif test -f "$ac_srcdir/configure"; then
1643      echo &&
1644      $SHELL "$ac_srcdir/configure" --help=recursive
1645    else
1646      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647    fi || ac_status=$?
1648    cd "$ac_pwd" || { ac_status=$?; break; }
1649  done
1650fi
1651
1652test -n "$ac_init_help" && exit $ac_status
1653if $ac_init_version; then
1654  cat <<\_ACEOF
1655configure
1656generated by GNU Autoconf 2.65
1657
1658Copyright (C) 2009 Free Software Foundation, Inc.
1659This configure script is free software; the Free Software Foundation
1660gives unlimited permission to copy, distribute and modify it.
1661_ACEOF
1662  exit
1663fi
1664
1665## ------------------------ ##
1666## Autoconf initialization. ##
1667## ------------------------ ##
1668
1669# ac_fn_c_try_compile LINENO
1670# --------------------------
1671# Try to compile conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_compile ()
1673{
1674  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675  rm -f conftest.$ac_objext
1676  if { { ac_try="$ac_compile"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_compile") 2>conftest.err
1684  ac_status=$?
1685  if test -s conftest.err; then
1686    grep -v '^ *+' conftest.err >conftest.er1
1687    cat conftest.er1 >&5
1688    mv -f conftest.er1 conftest.err
1689  fi
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && {
1692	 test -z "$ac_c_werror_flag" ||
1693	 test ! -s conftest.err
1694       } && test -s conftest.$ac_objext; then :
1695  ac_retval=0
1696else
1697  $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700	ac_retval=1
1701fi
1702  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703  as_fn_set_status $ac_retval
1704
1705} # ac_fn_c_try_compile
1706
1707# ac_fn_c_try_cpp LINENO
1708# ----------------------
1709# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_cpp ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  if { { ac_try="$ac_cpp conftest.$ac_ext"
1714case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721  ac_status=$?
1722  if test -s conftest.err; then
1723    grep -v '^ *+' conftest.err >conftest.er1
1724    cat conftest.er1 >&5
1725    mv -f conftest.er1 conftest.err
1726  fi
1727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728  test $ac_status = 0; } >/dev/null && {
1729	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730	 test ! -s conftest.err
1731       }; then :
1732  ac_retval=0
1733else
1734  $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737    ac_retval=1
1738fi
1739  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_cpp
1743
1744# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1745# -------------------------------------------------------
1746# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1747# the include files in INCLUDES and setting the cache variable VAR
1748# accordingly.
1749ac_fn_c_check_header_mongrel ()
1750{
1751  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754$as_echo_n "checking for $2... " >&6; }
1755if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756  $as_echo_n "(cached) " >&6
1757fi
1758eval ac_res=\$$3
1759	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
1761else
1762  # Is the header compilable?
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1764$as_echo_n "checking $2 usability... " >&6; }
1765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767$4
1768#include <$2>
1769_ACEOF
1770if ac_fn_c_try_compile "$LINENO"; then :
1771  ac_header_compiler=yes
1772else
1773  ac_header_compiler=no
1774fi
1775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1777$as_echo "$ac_header_compiler" >&6; }
1778
1779# Is the header present?
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1781$as_echo_n "checking $2 presence... " >&6; }
1782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h.  */
1784#include <$2>
1785_ACEOF
1786if ac_fn_c_try_cpp "$LINENO"; then :
1787  ac_header_preproc=yes
1788else
1789  ac_header_preproc=no
1790fi
1791rm -f conftest.err conftest.$ac_ext
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1793$as_echo "$ac_header_preproc" >&6; }
1794
1795# So?  What about this header?
1796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1797  yes:no: )
1798    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1799$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1800    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802    ;;
1803  no:yes:* )
1804    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1805$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1806    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1807$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1809$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1811$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1812    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814    ;;
1815esac
1816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817$as_echo_n "checking for $2... " >&6; }
1818if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819  $as_echo_n "(cached) " >&6
1820else
1821  eval "$3=\$ac_header_compiler"
1822fi
1823eval ac_res=\$$3
1824	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826fi
1827  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828
1829} # ac_fn_c_check_header_mongrel
1830
1831# ac_fn_c_try_run LINENO
1832# ----------------------
1833# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1834# that executables *can* be run.
1835ac_fn_c_try_run ()
1836{
1837  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838  if { { ac_try="$ac_link"
1839case "(($ac_try" in
1840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841  *) ac_try_echo=$ac_try;;
1842esac
1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844$as_echo "$ac_try_echo"; } >&5
1845  (eval "$ac_link") 2>&5
1846  ac_status=$?
1847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1849  { { case "(($ac_try" in
1850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851  *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855  (eval "$ac_try") 2>&5
1856  ac_status=$?
1857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858  test $ac_status = 0; }; }; then :
1859  ac_retval=0
1860else
1861  $as_echo "$as_me: program exited with status $ac_status" >&5
1862       $as_echo "$as_me: failed program was:" >&5
1863sed 's/^/| /' conftest.$ac_ext >&5
1864
1865       ac_retval=$ac_status
1866fi
1867  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869  as_fn_set_status $ac_retval
1870
1871} # ac_fn_c_try_run
1872
1873# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1874# -------------------------------------------------------
1875# Tests whether HEADER exists and can be compiled using the include files in
1876# INCLUDES, setting the cache variable VAR accordingly.
1877ac_fn_c_check_header_compile ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883  $as_echo_n "(cached) " >&6
1884else
1885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h.  */
1887$4
1888#include <$2>
1889_ACEOF
1890if ac_fn_c_try_compile "$LINENO"; then :
1891  eval "$3=yes"
1892else
1893  eval "$3=no"
1894fi
1895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901
1902} # ac_fn_c_check_header_compile
1903
1904# ac_fn_cxx_try_compile LINENO
1905# ----------------------------
1906# Try to compile conftest.$ac_ext, and return whether this succeeded.
1907ac_fn_cxx_try_compile ()
1908{
1909  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910  rm -f conftest.$ac_objext
1911  if { { ac_try="$ac_compile"
1912case "(($ac_try" in
1913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914  *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918  (eval "$ac_compile") 2>conftest.err
1919  ac_status=$?
1920  if test -s conftest.err; then
1921    grep -v '^ *+' conftest.err >conftest.er1
1922    cat conftest.er1 >&5
1923    mv -f conftest.er1 conftest.err
1924  fi
1925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926  test $ac_status = 0; } && {
1927	 test -z "$ac_cxx_werror_flag" ||
1928	 test ! -s conftest.err
1929       } && test -s conftest.$ac_objext; then :
1930  ac_retval=0
1931else
1932  $as_echo "$as_me: failed program was:" >&5
1933sed 's/^/| /' conftest.$ac_ext >&5
1934
1935	ac_retval=1
1936fi
1937  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938  as_fn_set_status $ac_retval
1939
1940} # ac_fn_cxx_try_compile
1941
1942# ac_fn_c_try_link LINENO
1943# -----------------------
1944# Try to link conftest.$ac_ext, and return whether this succeeded.
1945ac_fn_c_try_link ()
1946{
1947  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948  rm -f conftest.$ac_objext conftest$ac_exeext
1949  if { { ac_try="$ac_link"
1950case "(($ac_try" in
1951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952  *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956  (eval "$ac_link") 2>conftest.err
1957  ac_status=$?
1958  if test -s conftest.err; then
1959    grep -v '^ *+' conftest.err >conftest.er1
1960    cat conftest.er1 >&5
1961    mv -f conftest.er1 conftest.err
1962  fi
1963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964  test $ac_status = 0; } && {
1965	 test -z "$ac_c_werror_flag" ||
1966	 test ! -s conftest.err
1967       } && test -s conftest$ac_exeext && {
1968	 test "$cross_compiling" = yes ||
1969	 $as_test_x conftest$ac_exeext
1970       }; then :
1971  ac_retval=0
1972else
1973  $as_echo "$as_me: failed program was:" >&5
1974sed 's/^/| /' conftest.$ac_ext >&5
1975
1976	ac_retval=1
1977fi
1978  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1979  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1980  # interfere with the next link command; also delete a directory that is
1981  # left behind by Apple's compiler.  We do this before executing the actions.
1982  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1983  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984  as_fn_set_status $ac_retval
1985
1986} # ac_fn_c_try_link
1987
1988# ac_fn_c_check_func LINENO FUNC VAR
1989# ----------------------------------
1990# Tests whether FUNC exists, setting the cache variable VAR accordingly
1991ac_fn_c_check_func ()
1992{
1993  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995$as_echo_n "checking for $2... " >&6; }
1996if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1997  $as_echo_n "(cached) " >&6
1998else
1999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2002   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2003#define $2 innocuous_$2
2004
2005/* System header to define __stub macros and hopefully few prototypes,
2006    which can conflict with char $2 (); below.
2007    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2008    <limits.h> exists even on freestanding compilers.  */
2009
2010#ifdef __STDC__
2011# include <limits.h>
2012#else
2013# include <assert.h>
2014#endif
2015
2016#undef $2
2017
2018/* Override any GCC internal prototype to avoid an error.
2019   Use char because int might match the return type of a GCC
2020   builtin and then its argument prototype would still apply.  */
2021#ifdef __cplusplus
2022extern "C"
2023#endif
2024char $2 ();
2025/* The GNU C library defines this for functions which it implements
2026    to always fail with ENOSYS.  Some functions are actually named
2027    something starting with __ and the normal name is an alias.  */
2028#if defined __stub_$2 || defined __stub___$2
2029choke me
2030#endif
2031
2032int
2033main ()
2034{
2035return $2 ();
2036  ;
2037  return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_link "$LINENO"; then :
2041  eval "$3=yes"
2042else
2043  eval "$3=no"
2044fi
2045rm -f core conftest.err conftest.$ac_objext \
2046    conftest$ac_exeext conftest.$ac_ext
2047fi
2048eval ac_res=\$$3
2049	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050$as_echo "$ac_res" >&6; }
2051  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052
2053} # ac_fn_c_check_func
2054
2055# ac_fn_cxx_try_cpp LINENO
2056# ------------------------
2057# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2058ac_fn_cxx_try_cpp ()
2059{
2060  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061  if { { ac_try="$ac_cpp conftest.$ac_ext"
2062case "(($ac_try" in
2063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064  *) ac_try_echo=$ac_try;;
2065esac
2066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067$as_echo "$ac_try_echo"; } >&5
2068  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2069  ac_status=$?
2070  if test -s conftest.err; then
2071    grep -v '^ *+' conftest.err >conftest.er1
2072    cat conftest.er1 >&5
2073    mv -f conftest.er1 conftest.err
2074  fi
2075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076  test $ac_status = 0; } >/dev/null && {
2077	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2078	 test ! -s conftest.err
2079       }; then :
2080  ac_retval=0
2081else
2082  $as_echo "$as_me: failed program was:" >&5
2083sed 's/^/| /' conftest.$ac_ext >&5
2084
2085    ac_retval=1
2086fi
2087  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088  as_fn_set_status $ac_retval
2089
2090} # ac_fn_cxx_try_cpp
2091
2092# ac_fn_cxx_try_link LINENO
2093# -------------------------
2094# Try to link conftest.$ac_ext, and return whether this succeeded.
2095ac_fn_cxx_try_link ()
2096{
2097  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098  rm -f conftest.$ac_objext conftest$ac_exeext
2099  if { { ac_try="$ac_link"
2100case "(($ac_try" in
2101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102  *) ac_try_echo=$ac_try;;
2103esac
2104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105$as_echo "$ac_try_echo"; } >&5
2106  (eval "$ac_link") 2>conftest.err
2107  ac_status=$?
2108  if test -s conftest.err; then
2109    grep -v '^ *+' conftest.err >conftest.er1
2110    cat conftest.er1 >&5
2111    mv -f conftest.er1 conftest.err
2112  fi
2113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114  test $ac_status = 0; } && {
2115	 test -z "$ac_cxx_werror_flag" ||
2116	 test ! -s conftest.err
2117       } && test -s conftest$ac_exeext && {
2118	 test "$cross_compiling" = yes ||
2119	 $as_test_x conftest$ac_exeext
2120       }; then :
2121  ac_retval=0
2122else
2123  $as_echo "$as_me: failed program was:" >&5
2124sed 's/^/| /' conftest.$ac_ext >&5
2125
2126	ac_retval=1
2127fi
2128  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2129  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2130  # interfere with the next link command; also delete a directory that is
2131  # left behind by Apple's compiler.  We do this before executing the actions.
2132  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134  as_fn_set_status $ac_retval
2135
2136} # ac_fn_cxx_try_link
2137cat >config.log <<_ACEOF
2138This file contains any messages produced by compilers while
2139running configure, to aid debugging if configure makes a mistake.
2140
2141It was created by $as_me, which was
2142generated by GNU Autoconf 2.65.  Invocation command line was
2143
2144  $ $0 $@
2145
2146_ACEOF
2147exec 5>>config.log
2148{
2149cat <<_ASUNAME
2150## --------- ##
2151## Platform. ##
2152## --------- ##
2153
2154hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2155uname -m = `(uname -m) 2>/dev/null || echo unknown`
2156uname -r = `(uname -r) 2>/dev/null || echo unknown`
2157uname -s = `(uname -s) 2>/dev/null || echo unknown`
2158uname -v = `(uname -v) 2>/dev/null || echo unknown`
2159
2160/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2161/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2162
2163/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2164/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2165/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2166/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2167/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2168/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2169/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2170
2171_ASUNAME
2172
2173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174for as_dir in $PATH
2175do
2176  IFS=$as_save_IFS
2177  test -z "$as_dir" && as_dir=.
2178    $as_echo "PATH: $as_dir"
2179  done
2180IFS=$as_save_IFS
2181
2182} >&5
2183
2184cat >&5 <<_ACEOF
2185
2186
2187## ----------- ##
2188## Core tests. ##
2189## ----------- ##
2190
2191_ACEOF
2192
2193
2194# Keep a trace of the command line.
2195# Strip out --no-create and --no-recursion so they do not pile up.
2196# Strip out --silent because we don't want to record it for future runs.
2197# Also quote any args containing shell meta-characters.
2198# Make two passes to allow for proper duplicate-argument suppression.
2199ac_configure_args=
2200ac_configure_args0=
2201ac_configure_args1=
2202ac_must_keep_next=false
2203for ac_pass in 1 2
2204do
2205  for ac_arg
2206  do
2207    case $ac_arg in
2208    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2209    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2210    | -silent | --silent | --silen | --sile | --sil)
2211      continue ;;
2212    *\'*)
2213      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2214    esac
2215    case $ac_pass in
2216    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2217    2)
2218      as_fn_append ac_configure_args1 " '$ac_arg'"
2219      if test $ac_must_keep_next = true; then
2220	ac_must_keep_next=false # Got value, back to normal.
2221      else
2222	case $ac_arg in
2223	  *=* | --config-cache | -C | -disable-* | --disable-* \
2224	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2225	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2226	  | -with-* | --with-* | -without-* | --without-* | --x)
2227	    case "$ac_configure_args0 " in
2228	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2229	    esac
2230	    ;;
2231	  -* ) ac_must_keep_next=true ;;
2232	esac
2233      fi
2234      as_fn_append ac_configure_args " '$ac_arg'"
2235      ;;
2236    esac
2237  done
2238done
2239{ ac_configure_args0=; unset ac_configure_args0;}
2240{ ac_configure_args1=; unset ac_configure_args1;}
2241
2242# When interrupted or exit'd, cleanup temporary files, and complete
2243# config.log.  We remove comments because anyway the quotes in there
2244# would cause problems or look ugly.
2245# WARNING: Use '\'' to represent an apostrophe within the trap.
2246# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2247trap 'exit_status=$?
2248  # Save into config.log some information that might help in debugging.
2249  {
2250    echo
2251
2252    cat <<\_ASBOX
2253## ---------------- ##
2254## Cache variables. ##
2255## ---------------- ##
2256_ASBOX
2257    echo
2258    # The following way of writing the cache mishandles newlines in values,
2259(
2260  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2261    eval ac_val=\$$ac_var
2262    case $ac_val in #(
2263    *${as_nl}*)
2264      case $ac_var in #(
2265      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2266$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2267      esac
2268      case $ac_var in #(
2269      _ | IFS | as_nl) ;; #(
2270      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2271      *) { eval $ac_var=; unset $ac_var;} ;;
2272      esac ;;
2273    esac
2274  done
2275  (set) 2>&1 |
2276    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2277    *${as_nl}ac_space=\ *)
2278      sed -n \
2279	"s/'\''/'\''\\\\'\'''\''/g;
2280	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2281      ;; #(
2282    *)
2283      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2284      ;;
2285    esac |
2286    sort
2287)
2288    echo
2289
2290    cat <<\_ASBOX
2291## ----------------- ##
2292## Output variables. ##
2293## ----------------- ##
2294_ASBOX
2295    echo
2296    for ac_var in $ac_subst_vars
2297    do
2298      eval ac_val=\$$ac_var
2299      case $ac_val in
2300      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2301      esac
2302      $as_echo "$ac_var='\''$ac_val'\''"
2303    done | sort
2304    echo
2305
2306    if test -n "$ac_subst_files"; then
2307      cat <<\_ASBOX
2308## ------------------- ##
2309## File substitutions. ##
2310## ------------------- ##
2311_ASBOX
2312      echo
2313      for ac_var in $ac_subst_files
2314      do
2315	eval ac_val=\$$ac_var
2316	case $ac_val in
2317	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318	esac
2319	$as_echo "$ac_var='\''$ac_val'\''"
2320      done | sort
2321      echo
2322    fi
2323
2324    if test -s confdefs.h; then
2325      cat <<\_ASBOX
2326## ----------- ##
2327## confdefs.h. ##
2328## ----------- ##
2329_ASBOX
2330      echo
2331      cat confdefs.h
2332      echo
2333    fi
2334    test "$ac_signal" != 0 &&
2335      $as_echo "$as_me: caught signal $ac_signal"
2336    $as_echo "$as_me: exit $exit_status"
2337  } >&5
2338  rm -f core *.core core.conftest.* &&
2339    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2340    exit $exit_status
2341' 0
2342for ac_signal in 1 2 13 15; do
2343  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2344done
2345ac_signal=0
2346
2347# confdefs.h avoids OS command line length limits that DEFS can exceed.
2348rm -f -r conftest* confdefs.h
2349
2350$as_echo "/* confdefs.h */" > confdefs.h
2351
2352# Predefined preprocessor variables.
2353
2354cat >>confdefs.h <<_ACEOF
2355#define PACKAGE_NAME "$PACKAGE_NAME"
2356_ACEOF
2357
2358cat >>confdefs.h <<_ACEOF
2359#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2360_ACEOF
2361
2362cat >>confdefs.h <<_ACEOF
2363#define PACKAGE_VERSION "$PACKAGE_VERSION"
2364_ACEOF
2365
2366cat >>confdefs.h <<_ACEOF
2367#define PACKAGE_STRING "$PACKAGE_STRING"
2368_ACEOF
2369
2370cat >>confdefs.h <<_ACEOF
2371#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2372_ACEOF
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE_URL "$PACKAGE_URL"
2376_ACEOF
2377
2378
2379# Let the site file select an alternate cache file if it wants to.
2380# Prefer an explicitly selected file to automatically selected ones.
2381ac_site_file1=NONE
2382ac_site_file2=NONE
2383if test -n "$CONFIG_SITE"; then
2384  ac_site_file1=$CONFIG_SITE
2385elif test "x$prefix" != xNONE; then
2386  ac_site_file1=$prefix/share/config.site
2387  ac_site_file2=$prefix/etc/config.site
2388else
2389  ac_site_file1=$ac_default_prefix/share/config.site
2390  ac_site_file2=$ac_default_prefix/etc/config.site
2391fi
2392for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2393do
2394  test "x$ac_site_file" = xNONE && continue
2395  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2396    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2397$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2398    sed 's/^/| /' "$ac_site_file" >&5
2399    . "$ac_site_file"
2400  fi
2401done
2402
2403if test -r "$cache_file"; then
2404  # Some versions of bash will fail to source /dev/null (special files
2405  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2406  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2407    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2408$as_echo "$as_me: loading cache $cache_file" >&6;}
2409    case $cache_file in
2410      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2411      *)                      . "./$cache_file";;
2412    esac
2413  fi
2414else
2415  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2416$as_echo "$as_me: creating cache $cache_file" >&6;}
2417  >$cache_file
2418fi
2419
2420# Check that the precious variables saved in the cache have kept the same
2421# value.
2422ac_cache_corrupted=false
2423for ac_var in $ac_precious_vars; do
2424  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2425  eval ac_new_set=\$ac_env_${ac_var}_set
2426  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2427  eval ac_new_val=\$ac_env_${ac_var}_value
2428  case $ac_old_set,$ac_new_set in
2429    set,)
2430      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2431$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2432      ac_cache_corrupted=: ;;
2433    ,set)
2434      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2435$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2436      ac_cache_corrupted=: ;;
2437    ,);;
2438    *)
2439      if test "x$ac_old_val" != "x$ac_new_val"; then
2440	# differences in whitespace do not lead to failure.
2441	ac_old_val_w=`echo x $ac_old_val`
2442	ac_new_val_w=`echo x $ac_new_val`
2443	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2444	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2445$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2446	  ac_cache_corrupted=:
2447	else
2448	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2449$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2450	  eval $ac_var=\$ac_old_val
2451	fi
2452	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2453$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2454	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2455$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2456      fi;;
2457  esac
2458  # Pass precious variables to config.status.
2459  if test "$ac_new_set" = set; then
2460    case $ac_new_val in
2461    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2462    *) ac_arg=$ac_var=$ac_new_val ;;
2463    esac
2464    case " $ac_configure_args " in
2465      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2466      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2467    esac
2468  fi
2469done
2470if $ac_cache_corrupted; then
2471  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2474$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2475  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2476fi
2477## -------------------- ##
2478## Main body of script. ##
2479## -------------------- ##
2480
2481ac_ext=c
2482ac_cpp='$CPP $CPPFLAGS'
2483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486
2487
2488am__api_version='1.11'
2489
2490ac_aux_dir=
2491for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2492  for ac_t in install-sh install.sh shtool; do
2493    if test -f "$ac_dir/$ac_t"; then
2494      ac_aux_dir=$ac_dir
2495      ac_install_sh="$ac_aux_dir/$ac_t -c"
2496      break 2
2497    fi
2498  done
2499done
2500if test -z "$ac_aux_dir"; then
2501  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2502fi
2503
2504# These three variables are undocumented and unsupported,
2505# and are intended to be withdrawn in a future Autoconf release.
2506# They can cause serious problems if a builder's source tree is in a directory
2507# whose full name contains unusual characters.
2508ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2509ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2510ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2511
2512
2513# Find a good install program.  We prefer a C program (faster),
2514# so one script is as good as another.  But avoid the broken or
2515# incompatible versions:
2516# SysV /etc/install, /usr/sbin/install
2517# SunOS /usr/etc/install
2518# IRIX /sbin/install
2519# AIX /bin/install
2520# AmigaOS /C/install, which installs bootblocks on floppy discs
2521# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2522# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2523# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2524# OS/2's system install, which has a completely different semantic
2525# ./install, which can be erroneously created by make from ./install.sh.
2526# Reject install programs that cannot install multiple files.
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2528$as_echo_n "checking for a BSD-compatible install... " >&6; }
2529if test -z "$INSTALL"; then
2530if test "${ac_cv_path_install+set}" = set; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536  IFS=$as_save_IFS
2537  test -z "$as_dir" && as_dir=.
2538    # Account for people who put trailing slashes in PATH elements.
2539case $as_dir/ in #((
2540  ./ | .// | /[cC]/* | \
2541  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2542  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2543  /usr/ucb/* ) ;;
2544  *)
2545    # OSF1 and SCO ODT 3.0 have their own names for install.
2546    # Don't use installbsd from OSF since it installs stuff as root
2547    # by default.
2548    for ac_prog in ginstall scoinst install; do
2549      for ac_exec_ext in '' $ac_executable_extensions; do
2550	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2551	  if test $ac_prog = install &&
2552	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2553	    # AIX install.  It has an incompatible calling convention.
2554	    :
2555	  elif test $ac_prog = install &&
2556	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557	    # program-specific install script used by HP pwplus--don't use.
2558	    :
2559	  else
2560	    rm -rf conftest.one conftest.two conftest.dir
2561	    echo one > conftest.one
2562	    echo two > conftest.two
2563	    mkdir conftest.dir
2564	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2565	      test -s conftest.one && test -s conftest.two &&
2566	      test -s conftest.dir/conftest.one &&
2567	      test -s conftest.dir/conftest.two
2568	    then
2569	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2570	      break 3
2571	    fi
2572	  fi
2573	fi
2574      done
2575    done
2576    ;;
2577esac
2578
2579  done
2580IFS=$as_save_IFS
2581
2582rm -rf conftest.one conftest.two conftest.dir
2583
2584fi
2585  if test "${ac_cv_path_install+set}" = set; then
2586    INSTALL=$ac_cv_path_install
2587  else
2588    # As a last resort, use the slow shell script.  Don't cache a
2589    # value for INSTALL within a source directory, because that will
2590    # break other packages using the cache if that directory is
2591    # removed, or if the value is a relative name.
2592    INSTALL=$ac_install_sh
2593  fi
2594fi
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2596$as_echo "$INSTALL" >&6; }
2597
2598# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2599# It thinks the first close brace ends the variable substitution.
2600test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2601
2602test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2603
2604test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2605
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2607$as_echo_n "checking whether build environment is sane... " >&6; }
2608# Just in case
2609sleep 1
2610echo timestamp > conftest.file
2611# Reject unsafe characters in $srcdir or the absolute working directory
2612# name.  Accept space and tab only in the latter.
2613am_lf='
2614'
2615case `pwd` in
2616  *[\\\"\#\$\&\'\`$am_lf]*)
2617    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2618esac
2619case $srcdir in
2620  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2621    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2622esac
2623
2624# Do `set' in a subshell so we don't clobber the current shell's
2625# arguments.  Must try -L first in case configure is actually a
2626# symlink; some systems play weird games with the mod time of symlinks
2627# (eg FreeBSD returns the mod time of the symlink's containing
2628# directory).
2629if (
2630   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2631   if test "$*" = "X"; then
2632      # -L didn't work.
2633      set X `ls -t "$srcdir/configure" conftest.file`
2634   fi
2635   rm -f conftest.file
2636   if test "$*" != "X $srcdir/configure conftest.file" \
2637      && test "$*" != "X conftest.file $srcdir/configure"; then
2638
2639      # If neither matched, then we have a broken ls.  This can happen
2640      # if, for instance, CONFIG_SHELL is bash and it inherits a
2641      # broken ls alias from the environment.  This has actually
2642      # happened.  Such a system could not be considered "sane".
2643      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2644alias in your environment" "$LINENO" 5
2645   fi
2646
2647   test "$2" = conftest.file
2648   )
2649then
2650   # Ok.
2651   :
2652else
2653   as_fn_error "newly created file is older than distributed files!
2654Check your system clock" "$LINENO" 5
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657$as_echo "yes" >&6; }
2658test "$program_prefix" != NONE &&
2659  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2660# Use a double $ so make ignores it.
2661test "$program_suffix" != NONE &&
2662  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2663# Double any \ or $.
2664# By default was `s,x,x', remove it if useless.
2665ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2666program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2667
2668# expand $ac_aux_dir to an absolute path
2669am_aux_dir=`cd $ac_aux_dir && pwd`
2670
2671if test x"${MISSING+set}" != xset; then
2672  case $am_aux_dir in
2673  *\ * | *\	*)
2674    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2675  *)
2676    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2677  esac
2678fi
2679# Use eval to expand $SHELL
2680if eval "$MISSING --run true"; then
2681  am_missing_run="$MISSING --run "
2682else
2683  am_missing_run=
2684  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2685$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2686fi
2687
2688if test x"${install_sh}" != xset; then
2689  case $am_aux_dir in
2690  *\ * | *\	*)
2691    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2692  *)
2693    install_sh="\${SHELL} $am_aux_dir/install-sh"
2694  esac
2695fi
2696
2697# Installed binaries are usually stripped using `strip' when the user
2698# run `make install-strip'.  However `strip' might not be the right
2699# tool to use in cross-compilation environments, therefore Automake
2700# will honor the `STRIP' environment variable to overrule this program.
2701if test "$cross_compiling" != no; then
2702  if test -n "$ac_tool_prefix"; then
2703  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2704set dummy ${ac_tool_prefix}strip; ac_word=$2
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706$as_echo_n "checking for $ac_word... " >&6; }
2707if test "${ac_cv_prog_STRIP+set}" = set; then :
2708  $as_echo_n "(cached) " >&6
2709else
2710  if test -n "$STRIP"; then
2711  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716  IFS=$as_save_IFS
2717  test -z "$as_dir" && as_dir=.
2718    for ac_exec_ext in '' $ac_executable_extensions; do
2719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722    break 2
2723  fi
2724done
2725  done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730STRIP=$ac_cv_prog_STRIP
2731if test -n "$STRIP"; then
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2733$as_echo "$STRIP" >&6; }
2734else
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736$as_echo "no" >&6; }
2737fi
2738
2739
2740fi
2741if test -z "$ac_cv_prog_STRIP"; then
2742  ac_ct_STRIP=$STRIP
2743  # Extract the first word of "strip", so it can be a program name with args.
2744set dummy strip; ac_word=$2
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746$as_echo_n "checking for $ac_word... " >&6; }
2747if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2748  $as_echo_n "(cached) " >&6
2749else
2750  if test -n "$ac_ct_STRIP"; then
2751  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2752else
2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756  IFS=$as_save_IFS
2757  test -z "$as_dir" && as_dir=.
2758    for ac_exec_ext in '' $ac_executable_extensions; do
2759  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760    ac_cv_prog_ac_ct_STRIP="strip"
2761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762    break 2
2763  fi
2764done
2765  done
2766IFS=$as_save_IFS
2767
2768fi
2769fi
2770ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2771if test -n "$ac_ct_STRIP"; then
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2773$as_echo "$ac_ct_STRIP" >&6; }
2774else
2775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776$as_echo "no" >&6; }
2777fi
2778
2779  if test "x$ac_ct_STRIP" = x; then
2780    STRIP=":"
2781  else
2782    case $cross_compiling:$ac_tool_warned in
2783yes:)
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2786ac_tool_warned=yes ;;
2787esac
2788    STRIP=$ac_ct_STRIP
2789  fi
2790else
2791  STRIP="$ac_cv_prog_STRIP"
2792fi
2793
2794fi
2795INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2796
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2798$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2799if test -z "$MKDIR_P"; then
2800  if test "${ac_cv_path_mkdir+set}" = set; then :
2801  $as_echo_n "(cached) " >&6
2802else
2803  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2805do
2806  IFS=$as_save_IFS
2807  test -z "$as_dir" && as_dir=.
2808    for ac_prog in mkdir gmkdir; do
2809	 for ac_exec_ext in '' $ac_executable_extensions; do
2810	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2811	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2812	     'mkdir (GNU coreutils) '* | \
2813	     'mkdir (coreutils) '* | \
2814	     'mkdir (fileutils) '4.1*)
2815	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2816	       break 3;;
2817	   esac
2818	 done
2819       done
2820  done
2821IFS=$as_save_IFS
2822
2823fi
2824
2825  test -d ./--version && rmdir ./--version
2826  if test "${ac_cv_path_mkdir+set}" = set; then
2827    MKDIR_P="$ac_cv_path_mkdir -p"
2828  else
2829    # As a last resort, use the slow shell script.  Don't cache a
2830    # value for MKDIR_P within a source directory, because that will
2831    # break other packages using the cache if that directory is
2832    # removed, or if the value is a relative name.
2833    MKDIR_P="$ac_install_sh -d"
2834  fi
2835fi
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2837$as_echo "$MKDIR_P" >&6; }
2838
2839mkdir_p="$MKDIR_P"
2840case $mkdir_p in
2841  [\\/$]* | ?:[\\/]*) ;;
2842  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2843esac
2844
2845for ac_prog in gawk mawk nawk awk
2846do
2847  # Extract the first word of "$ac_prog", so it can be a program name with args.
2848set dummy $ac_prog; ac_word=$2
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850$as_echo_n "checking for $ac_word... " >&6; }
2851if test "${ac_cv_prog_AWK+set}" = set; then :
2852  $as_echo_n "(cached) " >&6
2853else
2854  if test -n "$AWK"; then
2855  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862    for ac_exec_ext in '' $ac_executable_extensions; do
2863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864    ac_cv_prog_AWK="$ac_prog"
2865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866    break 2
2867  fi
2868done
2869  done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874AWK=$ac_cv_prog_AWK
2875if test -n "$AWK"; then
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2877$as_echo "$AWK" >&6; }
2878else
2879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880$as_echo "no" >&6; }
2881fi
2882
2883
2884  test -n "$AWK" && break
2885done
2886
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2888$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2889set x ${MAKE-make}
2890ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2891if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  cat >conftest.make <<\_ACEOF
2895SHELL = /bin/sh
2896all:
2897	@echo '@@@%%%=$(MAKE)=@@@%%%'
2898_ACEOF
2899# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2900case `${MAKE-make} -f conftest.make 2>/dev/null` in
2901  *@@@%%%=?*=@@@%%%*)
2902    eval ac_cv_prog_make_${ac_make}_set=yes;;
2903  *)
2904    eval ac_cv_prog_make_${ac_make}_set=no;;
2905esac
2906rm -f conftest.make
2907fi
2908if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2910$as_echo "yes" >&6; }
2911  SET_MAKE=
2912else
2913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914$as_echo "no" >&6; }
2915  SET_MAKE="MAKE=${MAKE-make}"
2916fi
2917
2918rm -rf .tst 2>/dev/null
2919mkdir .tst 2>/dev/null
2920if test -d .tst; then
2921  am__leading_dot=.
2922else
2923  am__leading_dot=_
2924fi
2925rmdir .tst 2>/dev/null
2926
2927if test "`cd $srcdir && pwd`" != "`pwd`"; then
2928  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2929  # is not polluted with repeated "-I."
2930  am__isrc=' -I$(srcdir)'
2931  # test to see if srcdir already configured
2932  if test -f $srcdir/config.status; then
2933    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2934  fi
2935fi
2936
2937# test whether we have cygpath
2938if test -z "$CYGPATH_W"; then
2939  if (cygpath --version) >/dev/null 2>/dev/null; then
2940    CYGPATH_W='cygpath -w'
2941  else
2942    CYGPATH_W=echo
2943  fi
2944fi
2945
2946
2947# Define the identity of the package.
2948 PACKAGE=rss-glx
2949 VERSION=0.9.0
2950
2951
2952cat >>confdefs.h <<_ACEOF
2953#define PACKAGE "$PACKAGE"
2954_ACEOF
2955
2956
2957cat >>confdefs.h <<_ACEOF
2958#define VERSION "$VERSION"
2959_ACEOF
2960
2961# Some tools Automake needs.
2962
2963ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2964
2965
2966AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2967
2968
2969AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2970
2971
2972AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2973
2974
2975MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2976
2977# We need awk for the "check" target.  The system "awk" is bad on
2978# some platforms.
2979# Always define AMTAR for backward compatibility.
2980
2981AMTAR=${AMTAR-"${am_missing_run}tar"}
2982
2983am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2984
2985
2986
2987
2988
2989ac_config_headers="$ac_config_headers config.h"
2990
2991
2992# Checks for programs.
2993for ac_prog in gawk mawk nawk awk
2994do
2995  # Extract the first word of "$ac_prog", so it can be a program name with args.
2996set dummy $ac_prog; ac_word=$2
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998$as_echo_n "checking for $ac_word... " >&6; }
2999if test "${ac_cv_prog_AWK+set}" = set; then :
3000  $as_echo_n "(cached) " >&6
3001else
3002  if test -n "$AWK"; then
3003  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3004else
3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006for as_dir in $PATH
3007do
3008  IFS=$as_save_IFS
3009  test -z "$as_dir" && as_dir=.
3010    for ac_exec_ext in '' $ac_executable_extensions; do
3011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012    ac_cv_prog_AWK="$ac_prog"
3013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014    break 2
3015  fi
3016done
3017  done
3018IFS=$as_save_IFS
3019
3020fi
3021fi
3022AWK=$ac_cv_prog_AWK
3023if test -n "$AWK"; then
3024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3025$as_echo "$AWK" >&6; }
3026else
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028$as_echo "no" >&6; }
3029fi
3030
3031
3032  test -n "$AWK" && break
3033done
3034
3035
3036DEPDIR="${am__leading_dot}deps"
3037
3038ac_config_commands="$ac_config_commands depfiles"
3039
3040
3041am_make=${MAKE-make}
3042cat > confinc << 'END'
3043am__doit:
3044	@echo this is the am__doit target
3045.PHONY: am__doit
3046END
3047# If we don't find an include directive, just comment out the code.
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3049$as_echo_n "checking for style of include used by $am_make... " >&6; }
3050am__include="#"
3051am__quote=
3052_am_result=none
3053# First try GNU make style include.
3054echo "include confinc" > confmf
3055# Ignore all kinds of additional output from `make'.
3056case `$am_make -s -f confmf 2> /dev/null` in #(
3057*the\ am__doit\ target*)
3058  am__include=include
3059  am__quote=
3060  _am_result=GNU
3061  ;;
3062esac
3063# Now try BSD make style include.
3064if test "$am__include" = "#"; then
3065   echo '.include "confinc"' > confmf
3066   case `$am_make -s -f confmf 2> /dev/null` in #(
3067   *the\ am__doit\ target*)
3068     am__include=.include
3069     am__quote="\""
3070     _am_result=BSD
3071     ;;
3072   esac
3073fi
3074
3075
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3077$as_echo "$_am_result" >&6; }
3078rm -f confinc confmf
3079
3080# Check whether --enable-dependency-tracking was given.
3081if test "${enable_dependency_tracking+set}" = set; then :
3082  enableval=$enable_dependency_tracking;
3083fi
3084
3085if test "x$enable_dependency_tracking" != xno; then
3086  am_depcomp="$ac_aux_dir/depcomp"
3087  AMDEPBACKSLASH='\'
3088fi
3089 if test "x$enable_dependency_tracking" != xno; then
3090  AMDEP_TRUE=
3091  AMDEP_FALSE='#'
3092else
3093  AMDEP_TRUE='#'
3094  AMDEP_FALSE=
3095fi
3096
3097
3098ac_ext=c
3099ac_cpp='$CPP $CPPFLAGS'
3100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103if test -n "$ac_tool_prefix"; then
3104  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3105set dummy ${ac_tool_prefix}gcc; ac_word=$2
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107$as_echo_n "checking for $ac_word... " >&6; }
3108if test "${ac_cv_prog_CC+set}" = set; then :
3109  $as_echo_n "(cached) " >&6
3110else
3111  if test -n "$CC"; then
3112  ac_cv_prog_CC="$CC" # Let the user override the test.
3113else
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117  IFS=$as_save_IFS
3118  test -z "$as_dir" && as_dir=.
3119    for ac_exec_ext in '' $ac_executable_extensions; do
3120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123    break 2
3124  fi
3125done
3126  done
3127IFS=$as_save_IFS
3128
3129fi
3130fi
3131CC=$ac_cv_prog_CC
3132if test -n "$CC"; then
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3134$as_echo "$CC" >&6; }
3135else
3136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137$as_echo "no" >&6; }
3138fi
3139
3140
3141fi
3142if test -z "$ac_cv_prog_CC"; then
3143  ac_ct_CC=$CC
3144  # Extract the first word of "gcc", so it can be a program name with args.
3145set dummy gcc; ac_word=$2
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147$as_echo_n "checking for $ac_word... " >&6; }
3148if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3149  $as_echo_n "(cached) " >&6
3150else
3151  if test -n "$ac_ct_CC"; then
3152  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157  IFS=$as_save_IFS
3158  test -z "$as_dir" && as_dir=.
3159    for ac_exec_ext in '' $ac_executable_extensions; do
3160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161    ac_cv_prog_ac_ct_CC="gcc"
3162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163    break 2
3164  fi
3165done
3166  done
3167IFS=$as_save_IFS
3168
3169fi
3170fi
3171ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172if test -n "$ac_ct_CC"; then
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3174$as_echo "$ac_ct_CC" >&6; }
3175else
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177$as_echo "no" >&6; }
3178fi
3179
3180  if test "x$ac_ct_CC" = x; then
3181    CC=""
3182  else
3183    case $cross_compiling:$ac_tool_warned in
3184yes:)
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3187ac_tool_warned=yes ;;
3188esac
3189    CC=$ac_ct_CC
3190  fi
3191else
3192  CC="$ac_cv_prog_CC"
3193fi
3194
3195if test -z "$CC"; then
3196          if test -n "$ac_tool_prefix"; then
3197    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3198set dummy ${ac_tool_prefix}cc; ac_word=$2
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200$as_echo_n "checking for $ac_word... " >&6; }
3201if test "${ac_cv_prog_CC+set}" = set; then :
3202  $as_echo_n "(cached) " >&6
3203else
3204  if test -n "$CC"; then
3205  ac_cv_prog_CC="$CC" # Let the user override the test.
3206else
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210  IFS=$as_save_IFS
3211  test -z "$as_dir" && as_dir=.
3212    for ac_exec_ext in '' $ac_executable_extensions; do
3213  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214    ac_cv_prog_CC="${ac_tool_prefix}cc"
3215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216    break 2
3217  fi
3218done
3219  done
3220IFS=$as_save_IFS
3221
3222fi
3223fi
3224CC=$ac_cv_prog_CC
3225if test -n "$CC"; then
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227$as_echo "$CC" >&6; }
3228else
3229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
3231fi
3232
3233
3234  fi
3235fi
3236if test -z "$CC"; then
3237  # Extract the first word of "cc", so it can be a program name with args.
3238set dummy cc; ac_word=$2
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240$as_echo_n "checking for $ac_word... " >&6; }
3241if test "${ac_cv_prog_CC+set}" = set; then :
3242  $as_echo_n "(cached) " >&6
3243else
3244  if test -n "$CC"; then
3245  ac_cv_prog_CC="$CC" # Let the user override the test.
3246else
3247  ac_prog_rejected=no
3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249for as_dir in $PATH
3250do
3251  IFS=$as_save_IFS
3252  test -z "$as_dir" && as_dir=.
3253    for ac_exec_ext in '' $ac_executable_extensions; do
3254  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3256       ac_prog_rejected=yes
3257       continue
3258     fi
3259    ac_cv_prog_CC="cc"
3260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261    break 2
3262  fi
3263done
3264  done
3265IFS=$as_save_IFS
3266
3267if test $ac_prog_rejected = yes; then
3268  # We found a bogon in the path, so make sure we never use it.
3269  set dummy $ac_cv_prog_CC
3270  shift
3271  if test $# != 0; then
3272    # We chose a different compiler from the bogus one.
3273    # However, it has the same basename, so the bogon will be chosen
3274    # first if we set CC to just the basename; use the full file name.
3275    shift
3276    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3277  fi
3278fi
3279fi
3280fi
3281CC=$ac_cv_prog_CC
3282if test -n "$CC"; then
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284$as_echo "$CC" >&6; }
3285else
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290
3291fi
3292if test -z "$CC"; then
3293  if test -n "$ac_tool_prefix"; then
3294  for ac_prog in cl.exe
3295  do
3296    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3297set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299$as_echo_n "checking for $ac_word... " >&6; }
3300if test "${ac_cv_prog_CC+set}" = set; then :
3301  $as_echo_n "(cached) " >&6
3302else
3303  if test -n "$CC"; then
3304  ac_cv_prog_CC="$CC" # Let the user override the test.
3305else
3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307for as_dir in $PATH
3308do
3309  IFS=$as_save_IFS
3310  test -z "$as_dir" && as_dir=.
3311    for ac_exec_ext in '' $ac_executable_extensions; do
3312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315    break 2
3316  fi
3317done
3318  done
3319IFS=$as_save_IFS
3320
3321fi
3322fi
3323CC=$ac_cv_prog_CC
3324if test -n "$CC"; then
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326$as_echo "$CC" >&6; }
3327else
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329$as_echo "no" >&6; }
3330fi
3331
3332
3333    test -n "$CC" && break
3334  done
3335fi
3336if test -z "$CC"; then
3337  ac_ct_CC=$CC
3338  for ac_prog in cl.exe
3339do
3340  # Extract the first word of "$ac_prog", so it can be a program name with args.
3341set dummy $ac_prog; ac_word=$2
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343$as_echo_n "checking for $ac_word... " >&6; }
3344if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3345  $as_echo_n "(cached) " >&6
3346else
3347  if test -n "$ac_ct_CC"; then
3348  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3349else
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353  IFS=$as_save_IFS
3354  test -z "$as_dir" && as_dir=.
3355    for ac_exec_ext in '' $ac_executable_extensions; do
3356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357    ac_cv_prog_ac_ct_CC="$ac_prog"
3358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359    break 2
3360  fi
3361done
3362  done
3363IFS=$as_save_IFS
3364
3365fi
3366fi
3367ac_ct_CC=$ac_cv_prog_ac_ct_CC
3368if test -n "$ac_ct_CC"; then
3369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3370$as_echo "$ac_ct_CC" >&6; }
3371else
3372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374fi
3375
3376
3377  test -n "$ac_ct_CC" && break
3378done
3379
3380  if test "x$ac_ct_CC" = x; then
3381    CC=""
3382  else
3383    case $cross_compiling:$ac_tool_warned in
3384yes:)
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387ac_tool_warned=yes ;;
3388esac
3389    CC=$ac_ct_CC
3390  fi
3391fi
3392
3393fi
3394
3395
3396test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398as_fn_error "no acceptable C compiler found in \$PATH
3399See \`config.log' for more details." "$LINENO" 5; }
3400
3401# Provide some information about the compiler.
3402$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3403set X $ac_compile
3404ac_compiler=$2
3405for ac_option in --version -v -V -qversion; do
3406  { { ac_try="$ac_compiler $ac_option >&5"
3407case "(($ac_try" in
3408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409  *) ac_try_echo=$ac_try;;
3410esac
3411eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412$as_echo "$ac_try_echo"; } >&5
3413  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3414  ac_status=$?
3415  if test -s conftest.err; then
3416    sed '10a\
3417... rest of stderr output deleted ...
3418         10q' conftest.err >conftest.er1
3419    cat conftest.er1 >&5
3420  fi
3421  rm -f conftest.er1 conftest.err
3422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423  test $ac_status = 0; }
3424done
3425
3426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h.  */
3428
3429int
3430main ()
3431{
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437ac_clean_files_save=$ac_clean_files
3438ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3439# Try to create an executable without -o first, disregard a.out.
3440# It will help us diagnose broken compilers, and finding out an intuition
3441# of exeext.
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3443$as_echo_n "checking whether the C compiler works... " >&6; }
3444ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3445
3446# The possible output files:
3447ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3448
3449ac_rmfiles=
3450for ac_file in $ac_files
3451do
3452  case $ac_file in
3453    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3454    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3455  esac
3456done
3457rm -f $ac_rmfiles
3458
3459if { { ac_try="$ac_link_default"
3460case "(($ac_try" in
3461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462  *) ac_try_echo=$ac_try;;
3463esac
3464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465$as_echo "$ac_try_echo"; } >&5
3466  (eval "$ac_link_default") 2>&5
3467  ac_status=$?
3468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469  test $ac_status = 0; }; then :
3470  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3471# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3472# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3473# so that the user can short-circuit this test for compilers unknown to
3474# Autoconf.
3475for ac_file in $ac_files ''
3476do
3477  test -f "$ac_file" || continue
3478  case $ac_file in
3479    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3480	;;
3481    [ab].out )
3482	# We found the default executable, but exeext='' is most
3483	# certainly right.
3484	break;;
3485    *.* )
3486	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3487	then :; else
3488	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3489	fi
3490	# We set ac_cv_exeext here because the later test for it is not
3491	# safe: cross compilers may not add the suffix if given an `-o'
3492	# argument, so we may need to know it at that point already.
3493	# Even if this section looks crufty: it has the advantage of
3494	# actually working.
3495	break;;
3496    * )
3497	break;;
3498  esac
3499done
3500test "$ac_cv_exeext" = no && ac_cv_exeext=
3501
3502else
3503  ac_file=''
3504fi
3505if test -z "$ac_file"; then :
3506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507$as_echo "no" >&6; }
3508$as_echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513{ as_fn_set_status 77
3514as_fn_error "C compiler cannot create executables
3515See \`config.log' for more details." "$LINENO" 5; }; }
3516else
3517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3518$as_echo "yes" >&6; }
3519fi
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3521$as_echo_n "checking for C compiler default output file name... " >&6; }
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3523$as_echo "$ac_file" >&6; }
3524ac_exeext=$ac_cv_exeext
3525
3526rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3527ac_clean_files=$ac_clean_files_save
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3529$as_echo_n "checking for suffix of executables... " >&6; }
3530if { { ac_try="$ac_link"
3531case "(($ac_try" in
3532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533  *) ac_try_echo=$ac_try;;
3534esac
3535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536$as_echo "$ac_try_echo"; } >&5
3537  (eval "$ac_link") 2>&5
3538  ac_status=$?
3539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540  test $ac_status = 0; }; then :
3541  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3542# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3543# work properly (i.e., refer to `conftest.exe'), while it won't with
3544# `rm'.
3545for ac_file in conftest.exe conftest conftest.*; do
3546  test -f "$ac_file" || continue
3547  case $ac_file in
3548    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3549    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550	  break;;
3551    * ) break;;
3552  esac
3553done
3554else
3555  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557as_fn_error "cannot compute suffix of executables: cannot compile and link
3558See \`config.log' for more details." "$LINENO" 5; }
3559fi
3560rm -f conftest conftest$ac_cv_exeext
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3562$as_echo "$ac_cv_exeext" >&6; }
3563
3564rm -f conftest.$ac_ext
3565EXEEXT=$ac_cv_exeext
3566ac_exeext=$EXEEXT
3567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h.  */
3569#include <stdio.h>
3570int
3571main ()
3572{
3573FILE *f = fopen ("conftest.out", "w");
3574 return ferror (f) || fclose (f) != 0;
3575
3576  ;
3577  return 0;
3578}
3579_ACEOF
3580ac_clean_files="$ac_clean_files conftest.out"
3581# Check that the compiler produces executables we can run.  If not, either
3582# the compiler is broken, or we cross compile.
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3584$as_echo_n "checking whether we are cross compiling... " >&6; }
3585if test "$cross_compiling" != yes; then
3586  { { ac_try="$ac_link"
3587case "(($ac_try" in
3588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589  *) ac_try_echo=$ac_try;;
3590esac
3591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592$as_echo "$ac_try_echo"; } >&5
3593  (eval "$ac_link") 2>&5
3594  ac_status=$?
3595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596  test $ac_status = 0; }
3597  if { ac_try='./conftest$ac_cv_exeext'
3598  { { case "(($ac_try" in
3599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600  *) ac_try_echo=$ac_try;;
3601esac
3602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603$as_echo "$ac_try_echo"; } >&5
3604  (eval "$ac_try") 2>&5
3605  ac_status=$?
3606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607  test $ac_status = 0; }; }; then
3608    cross_compiling=no
3609  else
3610    if test "$cross_compiling" = maybe; then
3611	cross_compiling=yes
3612    else
3613	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615as_fn_error "cannot run C compiled programs.
3616If you meant to cross compile, use \`--host'.
3617See \`config.log' for more details." "$LINENO" 5; }
3618    fi
3619  fi
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3622$as_echo "$cross_compiling" >&6; }
3623
3624rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3625ac_clean_files=$ac_clean_files_save
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3627$as_echo_n "checking for suffix of object files... " >&6; }
3628if test "${ac_cv_objext+set}" = set; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634int
3635main ()
3636{
3637
3638  ;
3639  return 0;
3640}
3641_ACEOF
3642rm -f conftest.o conftest.obj
3643if { { ac_try="$ac_compile"
3644case "(($ac_try" in
3645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646  *) ac_try_echo=$ac_try;;
3647esac
3648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649$as_echo "$ac_try_echo"; } >&5
3650  (eval "$ac_compile") 2>&5
3651  ac_status=$?
3652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653  test $ac_status = 0; }; then :
3654  for ac_file in conftest.o conftest.obj conftest.*; do
3655  test -f "$ac_file" || continue;
3656  case $ac_file in
3657    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3658    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3659       break;;
3660  esac
3661done
3662else
3663  $as_echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668as_fn_error "cannot compute suffix of object files: cannot compile
3669See \`config.log' for more details." "$LINENO" 5; }
3670fi
3671rm -f conftest.$ac_cv_objext conftest.$ac_ext
3672fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3674$as_echo "$ac_cv_objext" >&6; }
3675OBJEXT=$ac_cv_objext
3676ac_objext=$OBJEXT
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3678$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3679if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3680  $as_echo_n "(cached) " >&6
3681else
3682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688#ifndef __GNUC__
3689       choke me
3690#endif
3691
3692  ;
3693  return 0;
3694}
3695_ACEOF
3696if ac_fn_c_try_compile "$LINENO"; then :
3697  ac_compiler_gnu=yes
3698else
3699  ac_compiler_gnu=no
3700fi
3701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702ac_cv_c_compiler_gnu=$ac_compiler_gnu
3703
3704fi
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3706$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3707if test $ac_compiler_gnu = yes; then
3708  GCC=yes
3709else
3710  GCC=
3711fi
3712ac_test_CFLAGS=${CFLAGS+set}
3713ac_save_CFLAGS=$CFLAGS
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3715$as_echo_n "checking whether $CC accepts -g... " >&6; }
3716if test "${ac_cv_prog_cc_g+set}" = set; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  ac_save_c_werror_flag=$ac_c_werror_flag
3720   ac_c_werror_flag=yes
3721   ac_cv_prog_cc_g=no
3722   CFLAGS="-g"
3723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h.  */
3725
3726int
3727main ()
3728{
3729
3730  ;
3731  return 0;
3732}
3733_ACEOF
3734if ac_fn_c_try_compile "$LINENO"; then :
3735  ac_cv_prog_cc_g=yes
3736else
3737  CFLAGS=""
3738      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739/* end confdefs.h.  */
3740
3741int
3742main ()
3743{
3744
3745  ;
3746  return 0;
3747}
3748_ACEOF
3749if ac_fn_c_try_compile "$LINENO"; then :
3750
3751else
3752  ac_c_werror_flag=$ac_save_c_werror_flag
3753	 CFLAGS="-g"
3754	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755/* end confdefs.h.  */
3756
3757int
3758main ()
3759{
3760
3761  ;
3762  return 0;
3763}
3764_ACEOF
3765if ac_fn_c_try_compile "$LINENO"; then :
3766  ac_cv_prog_cc_g=yes
3767fi
3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769fi
3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771fi
3772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773   ac_c_werror_flag=$ac_save_c_werror_flag
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3776$as_echo "$ac_cv_prog_cc_g" >&6; }
3777if test "$ac_test_CFLAGS" = set; then
3778  CFLAGS=$ac_save_CFLAGS
3779elif test $ac_cv_prog_cc_g = yes; then
3780  if test "$GCC" = yes; then
3781    CFLAGS="-g -O2"
3782  else
3783    CFLAGS="-g"
3784  fi
3785else
3786  if test "$GCC" = yes; then
3787    CFLAGS="$CFLAGS"
3788  else
3789    CFLAGS=
3790  fi
3791fi
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3793$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3794if test "${ac_cv_prog_cc_c89+set}" = set; then :
3795  $as_echo_n "(cached) " >&6
3796else
3797  ac_cv_prog_cc_c89=no
3798ac_save_CC=$CC
3799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800/* end confdefs.h.  */
3801#include <stdarg.h>
3802#include <stdio.h>
3803#include <sys/types.h>
3804#include <sys/stat.h>
3805/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3806struct buf { int x; };
3807FILE * (*rcsopen) (struct buf *, struct stat *, int);
3808static char *e (p, i)
3809     char **p;
3810     int i;
3811{
3812  return p[i];
3813}
3814static char *f (char * (*g) (char **, int), char **p, ...)
3815{
3816  char *s;
3817  va_list v;
3818  va_start (v,p);
3819  s = g (p, va_arg (v,int));
3820  va_end (v);
3821  return s;
3822}
3823
3824/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3825   function prototypes and stuff, but not '\xHH' hex character constants.
3826   These don't provoke an error unfortunately, instead are silently treated
3827   as 'x'.  The following induces an error, until -std is added to get
3828   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3829   array size at least.  It's necessary to write '\x00'==0 to get something
3830   that's true only with -std.  */
3831int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3832
3833/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3834   inside strings and character constants.  */
3835#define FOO(x) 'x'
3836int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3837
3838int test (int i, double x);
3839struct s1 {int (*f) (int a);};
3840struct s2 {int (*f) (double a);};
3841int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3842int argc;
3843char **argv;
3844int
3845main ()
3846{
3847return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3853	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3854do
3855  CC="$ac_save_CC $ac_arg"
3856  if ac_fn_c_try_compile "$LINENO"; then :
3857  ac_cv_prog_cc_c89=$ac_arg
3858fi
3859rm -f core conftest.err conftest.$ac_objext
3860  test "x$ac_cv_prog_cc_c89" != "xno" && break
3861done
3862rm -f conftest.$ac_ext
3863CC=$ac_save_CC
3864
3865fi
3866# AC_CACHE_VAL
3867case "x$ac_cv_prog_cc_c89" in
3868  x)
3869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3870$as_echo "none needed" >&6; } ;;
3871  xno)
3872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3873$as_echo "unsupported" >&6; } ;;
3874  *)
3875    CC="$CC $ac_cv_prog_cc_c89"
3876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3877$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3878esac
3879if test "x$ac_cv_prog_cc_c89" != xno; then :
3880
3881fi
3882
3883ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889depcc="$CC"   am_compiler_list=
3890
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3892$as_echo_n "checking dependency style of $depcc... " >&6; }
3893if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3894  $as_echo_n "(cached) " >&6
3895else
3896  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3897  # We make a subdir and do the tests there.  Otherwise we can end up
3898  # making bogus files that we don't know about and never remove.  For
3899  # instance it was reported that on HP-UX the gcc test will end up
3900  # making a dummy file named `D' -- because `-MD' means `put the output
3901  # in D'.
3902  mkdir conftest.dir
3903  # Copy depcomp to subdir because otherwise we won't find it if we're
3904  # using a relative directory.
3905  cp "$am_depcomp" conftest.dir
3906  cd conftest.dir
3907  # We will build objects and dependencies in a subdirectory because
3908  # it helps to detect inapplicable dependency modes.  For instance
3909  # both Tru64's cc and ICC support -MD to output dependencies as a
3910  # side effect of compilation, but ICC will put the dependencies in
3911  # the current directory while Tru64 will put them in the object
3912  # directory.
3913  mkdir sub
3914
3915  am_cv_CC_dependencies_compiler_type=none
3916  if test "$am_compiler_list" = ""; then
3917     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3918  fi
3919  am__universal=false
3920  case " $depcc " in #(
3921     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3922     esac
3923
3924  for depmode in $am_compiler_list; do
3925    # Setup a source with many dependencies, because some compilers
3926    # like to wrap large dependency lists on column 80 (with \), and
3927    # we should not choose a depcomp mode which is confused by this.
3928    #
3929    # We need to recreate these files for each test, as the compiler may
3930    # overwrite some of them when testing with obscure command lines.
3931    # This happens at least with the AIX C compiler.
3932    : > sub/conftest.c
3933    for i in 1 2 3 4 5 6; do
3934      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3935      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3936      # Solaris 8's {/usr,}/bin/sh.
3937      touch sub/conftst$i.h
3938    done
3939    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3940
3941    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3942    # mode.  It turns out that the SunPro C++ compiler does not properly
3943    # handle `-M -o', and we need to detect this.  Also, some Intel
3944    # versions had trouble with output in subdirs
3945    am__obj=sub/conftest.${OBJEXT-o}
3946    am__minus_obj="-o $am__obj"
3947    case $depmode in
3948    gcc)
3949      # This depmode causes a compiler race in universal mode.
3950      test "$am__universal" = false || continue
3951      ;;
3952    nosideeffect)
3953      # after this tag, mechanisms are not by side-effect, so they'll
3954      # only be used when explicitly requested
3955      if test "x$enable_dependency_tracking" = xyes; then
3956	continue
3957      else
3958	break
3959      fi
3960      ;;
3961    msvisualcpp | msvcmsys)
3962      # This compiler won't grok `-c -o', but also, the minuso test has
3963      # not run yet.  These depmodes are late enough in the game, and
3964      # so weak that their functioning should not be impacted.
3965      am__obj=conftest.${OBJEXT-o}
3966      am__minus_obj=
3967      ;;
3968    none) break ;;
3969    esac
3970    if depmode=$depmode \
3971       source=sub/conftest.c object=$am__obj \
3972       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3973       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3974         >/dev/null 2>conftest.err &&
3975       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3976       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3977       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3978       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3979      # icc doesn't choke on unknown options, it will just issue warnings
3980      # or remarks (even with -Werror).  So we grep stderr for any message
3981      # that says an option was ignored or not supported.
3982      # When given -MP, icc 7.0 and 7.1 complain thusly:
3983      #   icc: Command line warning: ignoring option '-M'; no argument required
3984      # The diagnosis changed in icc 8.0:
3985      #   icc: Command line remark: option '-MP' not supported
3986      if (grep 'ignoring option' conftest.err ||
3987          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3988        am_cv_CC_dependencies_compiler_type=$depmode
3989        break
3990      fi
3991    fi
3992  done
3993
3994  cd ..
3995  rm -rf conftest.dir
3996else
3997  am_cv_CC_dependencies_compiler_type=none
3998fi
3999
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4002$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4003CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4004
4005 if
4006  test "x$enable_dependency_tracking" != xno \
4007  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4008  am__fastdepCC_TRUE=
4009  am__fastdepCC_FALSE='#'
4010else
4011  am__fastdepCC_TRUE='#'
4012  am__fastdepCC_FALSE=
4013fi
4014
4015
4016
4017ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4023$as_echo_n "checking how to run the C preprocessor... " >&6; }
4024# On Suns, sometimes $CPP names a directory.
4025if test -n "$CPP" && test -d "$CPP"; then
4026  CPP=
4027fi
4028if test -z "$CPP"; then
4029  if test "${ac_cv_prog_CPP+set}" = set; then :
4030  $as_echo_n "(cached) " >&6
4031else
4032      # Double quotes because CPP needs to be expanded
4033    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4034    do
4035      ac_preproc_ok=false
4036for ac_c_preproc_warn_flag in '' yes
4037do
4038  # Use a header file that comes with gcc, so configuring glibc
4039  # with a fresh cross-compiler works.
4040  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041  # <limits.h> exists even on freestanding compilers.
4042  # On the NeXT, cc -E runs the code through the compiler's parser,
4043  # not just through cpp. "Syntax error" is here to catch this case.
4044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046#ifdef __STDC__
4047# include <limits.h>
4048#else
4049# include <assert.h>
4050#endif
4051		     Syntax error
4052_ACEOF
4053if ac_fn_c_try_cpp "$LINENO"; then :
4054
4055else
4056  # Broken: fails on valid input.
4057continue
4058fi
4059rm -f conftest.err conftest.$ac_ext
4060
4061  # OK, works on sane cases.  Now check whether nonexistent headers
4062  # can be detected and how.
4063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065#include <ac_nonexistent.h>
4066_ACEOF
4067if ac_fn_c_try_cpp "$LINENO"; then :
4068  # Broken: success on invalid input.
4069continue
4070else
4071  # Passes both tests.
4072ac_preproc_ok=:
4073break
4074fi
4075rm -f conftest.err conftest.$ac_ext
4076
4077done
4078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079rm -f conftest.err conftest.$ac_ext
4080if $ac_preproc_ok; then :
4081  break
4082fi
4083
4084    done
4085    ac_cv_prog_CPP=$CPP
4086
4087fi
4088  CPP=$ac_cv_prog_CPP
4089else
4090  ac_cv_prog_CPP=$CPP
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4093$as_echo "$CPP" >&6; }
4094ac_preproc_ok=false
4095for ac_c_preproc_warn_flag in '' yes
4096do
4097  # Use a header file that comes with gcc, so configuring glibc
4098  # with a fresh cross-compiler works.
4099  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100  # <limits.h> exists even on freestanding compilers.
4101  # On the NeXT, cc -E runs the code through the compiler's parser,
4102  # not just through cpp. "Syntax error" is here to catch this case.
4103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* end confdefs.h.  */
4105#ifdef __STDC__
4106# include <limits.h>
4107#else
4108# include <assert.h>
4109#endif
4110		     Syntax error
4111_ACEOF
4112if ac_fn_c_try_cpp "$LINENO"; then :
4113
4114else
4115  # Broken: fails on valid input.
4116continue
4117fi
4118rm -f conftest.err conftest.$ac_ext
4119
4120  # OK, works on sane cases.  Now check whether nonexistent headers
4121  # can be detected and how.
4122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124#include <ac_nonexistent.h>
4125_ACEOF
4126if ac_fn_c_try_cpp "$LINENO"; then :
4127  # Broken: success on invalid input.
4128continue
4129else
4130  # Passes both tests.
4131ac_preproc_ok=:
4132break
4133fi
4134rm -f conftest.err conftest.$ac_ext
4135
4136done
4137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138rm -f conftest.err conftest.$ac_ext
4139if $ac_preproc_ok; then :
4140
4141else
4142  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4144as_fn_error "C preprocessor \"$CPP\" fails sanity check
4145See \`config.log' for more details." "$LINENO" 5; }
4146fi
4147
4148ac_ext=c
4149ac_cpp='$CPP $CPPFLAGS'
4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153
4154
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4156$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4157if test "${ac_cv_path_GREP+set}" = set; then :
4158  $as_echo_n "(cached) " >&6
4159else
4160  if test -z "$GREP"; then
4161  ac_path_GREP_found=false
4162  # Loop through the user's path and test for each of PROGNAME-LIST
4163  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165do
4166  IFS=$as_save_IFS
4167  test -z "$as_dir" && as_dir=.
4168    for ac_prog in grep ggrep; do
4169    for ac_exec_ext in '' $ac_executable_extensions; do
4170      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4171      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4172# Check for GNU ac_path_GREP and select it if it is found.
4173  # Check for GNU $ac_path_GREP
4174case `"$ac_path_GREP" --version 2>&1` in
4175*GNU*)
4176  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4177*)
4178  ac_count=0
4179  $as_echo_n 0123456789 >"conftest.in"
4180  while :
4181  do
4182    cat "conftest.in" "conftest.in" >"conftest.tmp"
4183    mv "conftest.tmp" "conftest.in"
4184    cp "conftest.in" "conftest.nl"
4185    $as_echo 'GREP' >> "conftest.nl"
4186    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188    as_fn_arith $ac_count + 1 && ac_count=$as_val
4189    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4190      # Best one so far, save it but keep looking for a better one
4191      ac_cv_path_GREP="$ac_path_GREP"
4192      ac_path_GREP_max=$ac_count
4193    fi
4194    # 10*(2^10) chars as input seems more than enough
4195    test $ac_count -gt 10 && break
4196  done
4197  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198esac
4199
4200      $ac_path_GREP_found && break 3
4201    done
4202  done
4203  done
4204IFS=$as_save_IFS
4205  if test -z "$ac_cv_path_GREP"; then
4206    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4207  fi
4208else
4209  ac_cv_path_GREP=$GREP
4210fi
4211
4212fi
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4214$as_echo "$ac_cv_path_GREP" >&6; }
4215 GREP="$ac_cv_path_GREP"
4216
4217
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4219$as_echo_n "checking for egrep... " >&6; }
4220if test "${ac_cv_path_EGREP+set}" = set; then :
4221  $as_echo_n "(cached) " >&6
4222else
4223  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4224   then ac_cv_path_EGREP="$GREP -E"
4225   else
4226     if test -z "$EGREP"; then
4227  ac_path_EGREP_found=false
4228  # Loop through the user's path and test for each of PROGNAME-LIST
4229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4231do
4232  IFS=$as_save_IFS
4233  test -z "$as_dir" && as_dir=.
4234    for ac_prog in egrep; do
4235    for ac_exec_ext in '' $ac_executable_extensions; do
4236      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4237      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4238# Check for GNU ac_path_EGREP and select it if it is found.
4239  # Check for GNU $ac_path_EGREP
4240case `"$ac_path_EGREP" --version 2>&1` in
4241*GNU*)
4242  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4243*)
4244  ac_count=0
4245  $as_echo_n 0123456789 >"conftest.in"
4246  while :
4247  do
4248    cat "conftest.in" "conftest.in" >"conftest.tmp"
4249    mv "conftest.tmp" "conftest.in"
4250    cp "conftest.in" "conftest.nl"
4251    $as_echo 'EGREP' >> "conftest.nl"
4252    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4253    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4254    as_fn_arith $ac_count + 1 && ac_count=$as_val
4255    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4256      # Best one so far, save it but keep looking for a better one
4257      ac_cv_path_EGREP="$ac_path_EGREP"
4258      ac_path_EGREP_max=$ac_count
4259    fi
4260    # 10*(2^10) chars as input seems more than enough
4261    test $ac_count -gt 10 && break
4262  done
4263  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4264esac
4265
4266      $ac_path_EGREP_found && break 3
4267    done
4268  done
4269  done
4270IFS=$as_save_IFS
4271  if test -z "$ac_cv_path_EGREP"; then
4272    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4273  fi
4274else
4275  ac_cv_path_EGREP=$EGREP
4276fi
4277
4278   fi
4279fi
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4281$as_echo "$ac_cv_path_EGREP" >&6; }
4282 EGREP="$ac_cv_path_EGREP"
4283
4284
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4286$as_echo_n "checking for ANSI C header files... " >&6; }
4287if test "${ac_cv_header_stdc+set}" = set; then :
4288  $as_echo_n "(cached) " >&6
4289else
4290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292#include <stdlib.h>
4293#include <stdarg.h>
4294#include <string.h>
4295#include <float.h>
4296
4297int
4298main ()
4299{
4300
4301  ;
4302  return 0;
4303}
4304_ACEOF
4305if ac_fn_c_try_compile "$LINENO"; then :
4306  ac_cv_header_stdc=yes
4307else
4308  ac_cv_header_stdc=no
4309fi
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311
4312if test $ac_cv_header_stdc = yes; then
4313  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315/* end confdefs.h.  */
4316#include <string.h>
4317
4318_ACEOF
4319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320  $EGREP "memchr" >/dev/null 2>&1; then :
4321
4322else
4323  ac_cv_header_stdc=no
4324fi
4325rm -f conftest*
4326
4327fi
4328
4329if test $ac_cv_header_stdc = yes; then
4330  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333#include <stdlib.h>
4334
4335_ACEOF
4336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4337  $EGREP "free" >/dev/null 2>&1; then :
4338
4339else
4340  ac_cv_header_stdc=no
4341fi
4342rm -f conftest*
4343
4344fi
4345
4346if test $ac_cv_header_stdc = yes; then
4347  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4348  if test "$cross_compiling" = yes; then :
4349  :
4350else
4351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h.  */
4353#include <ctype.h>
4354#include <stdlib.h>
4355#if ((' ' & 0x0FF) == 0x020)
4356# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4357# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4358#else
4359# define ISLOWER(c) \
4360		   (('a' <= (c) && (c) <= 'i') \
4361		     || ('j' <= (c) && (c) <= 'r') \
4362		     || ('s' <= (c) && (c) <= 'z'))
4363# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4364#endif
4365
4366#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4367int
4368main ()
4369{
4370  int i;
4371  for (i = 0; i < 256; i++)
4372    if (XOR (islower (i), ISLOWER (i))
4373	|| toupper (i) != TOUPPER (i))
4374      return 2;
4375  return 0;
4376}
4377_ACEOF
4378if ac_fn_c_try_run "$LINENO"; then :
4379
4380else
4381  ac_cv_header_stdc=no
4382fi
4383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4384  conftest.$ac_objext conftest.beam conftest.$ac_ext
4385fi
4386
4387fi
4388fi
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4390$as_echo "$ac_cv_header_stdc" >&6; }
4391if test $ac_cv_header_stdc = yes; then
4392
4393$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4394
4395fi
4396
4397# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4398for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4399		  inttypes.h stdint.h unistd.h
4400do :
4401  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4402ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4403"
4404eval as_val=\$$as_ac_Header
4405   if test "x$as_val" = x""yes; then :
4406  cat >>confdefs.h <<_ACEOF
4407#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4408_ACEOF
4409
4410fi
4411
4412done
4413
4414
4415
4416  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4417if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4418  MINIX=yes
4419else
4420  MINIX=
4421fi
4422
4423
4424  if test "$MINIX" = yes; then
4425
4426$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4427
4428
4429$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4430
4431
4432$as_echo "#define _MINIX 1" >>confdefs.h
4433
4434  fi
4435
4436
4437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4438$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4439if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4440  $as_echo_n "(cached) " >&6
4441else
4442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h.  */
4444
4445#	  define __EXTENSIONS__ 1
4446	  $ac_includes_default
4447int
4448main ()
4449{
4450
4451  ;
4452  return 0;
4453}
4454_ACEOF
4455if ac_fn_c_try_compile "$LINENO"; then :
4456  ac_cv_safe_to_define___extensions__=yes
4457else
4458  ac_cv_safe_to_define___extensions__=no
4459fi
4460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461fi
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4463$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4464  test $ac_cv_safe_to_define___extensions__ = yes &&
4465    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4466
4467  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4468
4469  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4470
4471  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4472
4473  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4474
4475
4476if test "x$CC" != xcc; then
4477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4478$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4479else
4480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4481$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4482fi
4483set dummy $CC; ac_cc=`$as_echo "$2" |
4484		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4485if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4486  $as_echo_n "(cached) " >&6
4487else
4488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489/* end confdefs.h.  */
4490
4491int
4492main ()
4493{
4494
4495  ;
4496  return 0;
4497}
4498_ACEOF
4499# Make sure it works both with $CC and with simple cc.
4500# We do the test twice because some compilers refuse to overwrite an
4501# existing .o file with -o, though they will create one.
4502ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4503rm -f conftest2.*
4504if { { case "(($ac_try" in
4505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506  *) ac_try_echo=$ac_try;;
4507esac
4508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509$as_echo "$ac_try_echo"; } >&5
4510  (eval "$ac_try") 2>&5
4511  ac_status=$?
4512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513  test $ac_status = 0; } &&
4514   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516  *) ac_try_echo=$ac_try;;
4517esac
4518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519$as_echo "$ac_try_echo"; } >&5
4520  (eval "$ac_try") 2>&5
4521  ac_status=$?
4522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523  test $ac_status = 0; };
4524then
4525  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4526  if test "x$CC" != xcc; then
4527    # Test first that cc exists at all.
4528    if { ac_try='cc -c conftest.$ac_ext >&5'
4529  { { case "(($ac_try" in
4530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531  *) ac_try_echo=$ac_try;;
4532esac
4533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534$as_echo "$ac_try_echo"; } >&5
4535  (eval "$ac_try") 2>&5
4536  ac_status=$?
4537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538  test $ac_status = 0; }; }; then
4539      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4540      rm -f conftest2.*
4541      if { { case "(($ac_try" in
4542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543  *) ac_try_echo=$ac_try;;
4544esac
4545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546$as_echo "$ac_try_echo"; } >&5
4547  (eval "$ac_try") 2>&5
4548  ac_status=$?
4549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550  test $ac_status = 0; } &&
4551	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553  *) ac_try_echo=$ac_try;;
4554esac
4555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556$as_echo "$ac_try_echo"; } >&5
4557  (eval "$ac_try") 2>&5
4558  ac_status=$?
4559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560  test $ac_status = 0; };
4561      then
4562	# cc works too.
4563	:
4564      else
4565	# cc exists but doesn't like -o.
4566	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4567      fi
4568    fi
4569  fi
4570else
4571  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4572fi
4573rm -f core conftest*
4574
4575fi
4576if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4578$as_echo "yes" >&6; }
4579else
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582
4583$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4584
4585fi
4586
4587# FIXME: we rely on the cache variable name because
4588# there is no other way.
4589set dummy $CC
4590am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4591eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4592if test "$am_t" != yes; then
4593   # Losing compiler, so override with the script.
4594   # FIXME: It is wrong to rewrite CC.
4595   # But if we don't then we get into trouble of one sort or another.
4596   # A longer-term fix would be to have automake use am__CC in this case,
4597   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4598   CC="$am_aux_dir/compile $CC"
4599fi
4600
4601
4602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4603$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4604if test "${ac_cv_prog_cc_c99+set}" = set; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607  ac_cv_prog_cc_c99=no
4608ac_save_CC=$CC
4609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h.  */
4611#include <stdarg.h>
4612#include <stdbool.h>
4613#include <stdlib.h>
4614#include <wchar.h>
4615#include <stdio.h>
4616
4617// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4618#define debug(...) fprintf (stderr, __VA_ARGS__)
4619#define showlist(...) puts (#__VA_ARGS__)
4620#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4621static void
4622test_varargs_macros (void)
4623{
4624  int x = 1234;
4625  int y = 5678;
4626  debug ("Flag");
4627  debug ("X = %d\n", x);
4628  showlist (The first, second, and third items.);
4629  report (x>y, "x is %d but y is %d", x, y);
4630}
4631
4632// Check long long types.
4633#define BIG64 18446744073709551615ull
4634#define BIG32 4294967295ul
4635#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4636#if !BIG_OK
4637  your preprocessor is broken;
4638#endif
4639#if BIG_OK
4640#else
4641  your preprocessor is broken;
4642#endif
4643static long long int bignum = -9223372036854775807LL;
4644static unsigned long long int ubignum = BIG64;
4645
4646struct incomplete_array
4647{
4648  int datasize;
4649  double data[];
4650};
4651
4652struct named_init {
4653  int number;
4654  const wchar_t *name;
4655  double average;
4656};
4657
4658typedef const char *ccp;
4659
4660static inline int
4661test_restrict (ccp restrict text)
4662{
4663  // See if C++-style comments work.
4664  // Iterate through items via the restricted pointer.
4665  // Also check for declarations in for loops.
4666  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4667    continue;
4668  return 0;
4669}
4670
4671// Check varargs and va_copy.
4672static void
4673test_varargs (const char *format, ...)
4674{
4675  va_list args;
4676  va_start (args, format);
4677  va_list args_copy;
4678  va_copy (args_copy, args);
4679
4680  const char *str;
4681  int number;
4682  float fnumber;
4683
4684  while (*format)
4685    {
4686      switch (*format++)
4687	{
4688	case 's': // string
4689	  str = va_arg (args_copy, const char *);
4690	  break;
4691	case 'd': // int
4692	  number = va_arg (args_copy, int);
4693	  break;
4694	case 'f': // float
4695	  fnumber = va_arg (args_copy, double);
4696	  break;
4697	default:
4698	  break;
4699	}
4700    }
4701  va_end (args_copy);
4702  va_end (args);
4703}
4704
4705int
4706main ()
4707{
4708
4709  // Check bool.
4710  _Bool success = false;
4711
4712  // Check restrict.
4713  if (test_restrict ("String literal") == 0)
4714    success = true;
4715  char *restrict newvar = "Another string";
4716
4717  // Check varargs.
4718  test_varargs ("s, d' f .", "string", 65, 34.234);
4719  test_varargs_macros ();
4720
4721  // Check flexible array members.
4722  struct incomplete_array *ia =
4723    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4724  ia->datasize = 10;
4725  for (int i = 0; i < ia->datasize; ++i)
4726    ia->data[i] = i * 1.234;
4727
4728  // Check named initializers.
4729  struct named_init ni = {
4730    .number = 34,
4731    .name = L"Test wide string",
4732    .average = 543.34343,
4733  };
4734
4735  ni.number = 58;
4736
4737  int dynamic_array[ni.number];
4738  dynamic_array[ni.number - 1] = 543;
4739
4740  // work around unused variable warnings
4741  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4742	  || dynamic_array[ni.number - 1] != 543);
4743
4744  ;
4745  return 0;
4746}
4747_ACEOF
4748for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4749do
4750  CC="$ac_save_CC $ac_arg"
4751  if ac_fn_c_try_compile "$LINENO"; then :
4752  ac_cv_prog_cc_c99=$ac_arg
4753fi
4754rm -f core conftest.err conftest.$ac_objext
4755  test "x$ac_cv_prog_cc_c99" != "xno" && break
4756done
4757rm -f conftest.$ac_ext
4758CC=$ac_save_CC
4759
4760fi
4761# AC_CACHE_VAL
4762case "x$ac_cv_prog_cc_c99" in
4763  x)
4764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4765$as_echo "none needed" >&6; } ;;
4766  xno)
4767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4768$as_echo "unsupported" >&6; } ;;
4769  *)
4770    CC="$CC $ac_cv_prog_cc_c99"
4771    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4772$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4773esac
4774if test "x$ac_cv_prog_cc_c99" != xno; then :
4775
4776fi
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4780$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4781if test "${ac_cv_c_bigendian+set}" = set; then :
4782  $as_echo_n "(cached) " >&6
4783else
4784  ac_cv_c_bigendian=unknown
4785    # See if we're dealing with a universal compiler.
4786    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787/* end confdefs.h.  */
4788#ifndef __APPLE_CC__
4789	       not a universal capable compiler
4790	     #endif
4791	     typedef int dummy;
4792
4793_ACEOF
4794if ac_fn_c_try_compile "$LINENO"; then :
4795
4796	# Check for potential -arch flags.  It is not universal unless
4797	# there are at least two -arch flags with different values.
4798	ac_arch=
4799	ac_prev=
4800	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4801	 if test -n "$ac_prev"; then
4802	   case $ac_word in
4803	     i?86 | x86_64 | ppc | ppc64)
4804	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4805		 ac_arch=$ac_word
4806	       else
4807		 ac_cv_c_bigendian=universal
4808		 break
4809	       fi
4810	       ;;
4811	   esac
4812	   ac_prev=
4813	 elif test "x$ac_word" = "x-arch"; then
4814	   ac_prev=arch
4815	 fi
4816       done
4817fi
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819    if test $ac_cv_c_bigendian = unknown; then
4820      # See if sys/param.h defines the BYTE_ORDER macro.
4821      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822/* end confdefs.h.  */
4823#include <sys/types.h>
4824	     #include <sys/param.h>
4825
4826int
4827main ()
4828{
4829#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4830		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4831		     && LITTLE_ENDIAN)
4832	      bogus endian macros
4833	     #endif
4834
4835  ;
4836  return 0;
4837}
4838_ACEOF
4839if ac_fn_c_try_compile "$LINENO"; then :
4840  # It does; now see whether it defined to BIG_ENDIAN or not.
4841	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842/* end confdefs.h.  */
4843#include <sys/types.h>
4844		#include <sys/param.h>
4845
4846int
4847main ()
4848{
4849#if BYTE_ORDER != BIG_ENDIAN
4850		 not big endian
4851		#endif
4852
4853  ;
4854  return 0;
4855}
4856_ACEOF
4857if ac_fn_c_try_compile "$LINENO"; then :
4858  ac_cv_c_bigendian=yes
4859else
4860  ac_cv_c_bigendian=no
4861fi
4862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863fi
4864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865    fi
4866    if test $ac_cv_c_bigendian = unknown; then
4867      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4868      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h.  */
4870#include <limits.h>
4871
4872int
4873main ()
4874{
4875#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4876	      bogus endian macros
4877	     #endif
4878
4879  ;
4880  return 0;
4881}
4882_ACEOF
4883if ac_fn_c_try_compile "$LINENO"; then :
4884  # It does; now see whether it defined to _BIG_ENDIAN or not.
4885	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886/* end confdefs.h.  */
4887#include <limits.h>
4888
4889int
4890main ()
4891{
4892#ifndef _BIG_ENDIAN
4893		 not big endian
4894		#endif
4895
4896  ;
4897  return 0;
4898}
4899_ACEOF
4900if ac_fn_c_try_compile "$LINENO"; then :
4901  ac_cv_c_bigendian=yes
4902else
4903  ac_cv_c_bigendian=no
4904fi
4905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908    fi
4909    if test $ac_cv_c_bigendian = unknown; then
4910      # Compile a test program.
4911      if test "$cross_compiling" = yes; then :
4912  # Try to guess by grepping values from an object file.
4913	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h.  */
4915short int ascii_mm[] =
4916		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4917		short int ascii_ii[] =
4918		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4919		int use_ascii (int i) {
4920		  return ascii_mm[i] + ascii_ii[i];
4921		}
4922		short int ebcdic_ii[] =
4923		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4924		short int ebcdic_mm[] =
4925		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4926		int use_ebcdic (int i) {
4927		  return ebcdic_mm[i] + ebcdic_ii[i];
4928		}
4929		extern int foo;
4930
4931int
4932main ()
4933{
4934return use_ascii (foo) == use_ebcdic (foo);
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939if ac_fn_c_try_compile "$LINENO"; then :
4940  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4941	      ac_cv_c_bigendian=yes
4942	    fi
4943	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4944	      if test "$ac_cv_c_bigendian" = unknown; then
4945		ac_cv_c_bigendian=no
4946	      else
4947		# finding both strings is unlikely to happen, but who knows?
4948		ac_cv_c_bigendian=unknown
4949	      fi
4950	    fi
4951fi
4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953else
4954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955/* end confdefs.h.  */
4956$ac_includes_default
4957int
4958main ()
4959{
4960
4961	     /* Are we little or big endian?  From Harbison&Steele.  */
4962	     union
4963	     {
4964	       long int l;
4965	       char c[sizeof (long int)];
4966	     } u;
4967	     u.l = 1;
4968	     return u.c[sizeof (long int) - 1] == 1;
4969
4970  ;
4971  return 0;
4972}
4973_ACEOF
4974if ac_fn_c_try_run "$LINENO"; then :
4975  ac_cv_c_bigendian=no
4976else
4977  ac_cv_c_bigendian=yes
4978fi
4979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4980  conftest.$ac_objext conftest.beam conftest.$ac_ext
4981fi
4982
4983    fi
4984fi
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4986$as_echo "$ac_cv_c_bigendian" >&6; }
4987 case $ac_cv_c_bigendian in #(
4988   yes)
4989     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4990;; #(
4991   no)
4992      ;; #(
4993   universal)
4994
4995$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4996
4997     ;; #(
4998   *)
4999     as_fn_error "unknown endianness
5000 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5001 esac
5002
5003
5004if test "x$GCC" = xyes; then
5005	CFLAGS="$CFLAGS"
5006fi
5007# Check whether --enable-debug was given.
5008if test "${enable_debug+set}" = set; then :
5009  enableval=$enable_debug; test "$enableval" = "yes" && CFLAGS="-g"
5010fi
5011
5012if test "x$GCC" = xyes; then
5013	CFLAGS="$CFLAGS -Wall"
5014fi
5015
5016ac_ext=cpp
5017ac_cpp='$CXXCPP $CPPFLAGS'
5018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5021if test -z "$CXX"; then
5022  if test -n "$CCC"; then
5023    CXX=$CCC
5024  else
5025    if test -n "$ac_tool_prefix"; then
5026  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5027  do
5028    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5029set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031$as_echo_n "checking for $ac_word... " >&6; }
5032if test "${ac_cv_prog_CXX+set}" = set; then :
5033  $as_echo_n "(cached) " >&6
5034else
5035  if test -n "$CXX"; then
5036  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5037else
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041  IFS=$as_save_IFS
5042  test -z "$as_dir" && as_dir=.
5043    for ac_exec_ext in '' $ac_executable_extensions; do
5044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047    break 2
5048  fi
5049done
5050  done
5051IFS=$as_save_IFS
5052
5053fi
5054fi
5055CXX=$ac_cv_prog_CXX
5056if test -n "$CXX"; then
5057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5058$as_echo "$CXX" >&6; }
5059else
5060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061$as_echo "no" >&6; }
5062fi
5063
5064
5065    test -n "$CXX" && break
5066  done
5067fi
5068if test -z "$CXX"; then
5069  ac_ct_CXX=$CXX
5070  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5071do
5072  # Extract the first word of "$ac_prog", so it can be a program name with args.
5073set dummy $ac_prog; ac_word=$2
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075$as_echo_n "checking for $ac_word... " >&6; }
5076if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079  if test -n "$ac_ct_CXX"; then
5080  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5081else
5082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085  IFS=$as_save_IFS
5086  test -z "$as_dir" && as_dir=.
5087    for ac_exec_ext in '' $ac_executable_extensions; do
5088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089    ac_cv_prog_ac_ct_CXX="$ac_prog"
5090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091    break 2
5092  fi
5093done
5094  done
5095IFS=$as_save_IFS
5096
5097fi
5098fi
5099ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5100if test -n "$ac_ct_CXX"; then
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5102$as_echo "$ac_ct_CXX" >&6; }
5103else
5104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105$as_echo "no" >&6; }
5106fi
5107
5108
5109  test -n "$ac_ct_CXX" && break
5110done
5111
5112  if test "x$ac_ct_CXX" = x; then
5113    CXX="g++"
5114  else
5115    case $cross_compiling:$ac_tool_warned in
5116yes:)
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5119ac_tool_warned=yes ;;
5120esac
5121    CXX=$ac_ct_CXX
5122  fi
5123fi
5124
5125  fi
5126fi
5127# Provide some information about the compiler.
5128$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5129set X $ac_compile
5130ac_compiler=$2
5131for ac_option in --version -v -V -qversion; do
5132  { { ac_try="$ac_compiler $ac_option >&5"
5133case "(($ac_try" in
5134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135  *) ac_try_echo=$ac_try;;
5136esac
5137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5138$as_echo "$ac_try_echo"; } >&5
5139  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5140  ac_status=$?
5141  if test -s conftest.err; then
5142    sed '10a\
5143... rest of stderr output deleted ...
5144         10q' conftest.err >conftest.er1
5145    cat conftest.er1 >&5
5146  fi
5147  rm -f conftest.er1 conftest.err
5148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5149  test $ac_status = 0; }
5150done
5151
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5153$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5154if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159
5160int
5161main ()
5162{
5163#ifndef __GNUC__
5164       choke me
5165#endif
5166
5167  ;
5168  return 0;
5169}
5170_ACEOF
5171if ac_fn_cxx_try_compile "$LINENO"; then :
5172  ac_compiler_gnu=yes
5173else
5174  ac_compiler_gnu=no
5175fi
5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5178
5179fi
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5181$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5182if test $ac_compiler_gnu = yes; then
5183  GXX=yes
5184else
5185  GXX=
5186fi
5187ac_test_CXXFLAGS=${CXXFLAGS+set}
5188ac_save_CXXFLAGS=$CXXFLAGS
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5190$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5191if test "${ac_cv_prog_cxx_g+set}" = set; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5195   ac_cxx_werror_flag=yes
5196   ac_cv_prog_cxx_g=no
5197   CXXFLAGS="-g"
5198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h.  */
5200
5201int
5202main ()
5203{
5204
5205  ;
5206  return 0;
5207}
5208_ACEOF
5209if ac_fn_cxx_try_compile "$LINENO"; then :
5210  ac_cv_prog_cxx_g=yes
5211else
5212  CXXFLAGS=""
5213      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214/* end confdefs.h.  */
5215
5216int
5217main ()
5218{
5219
5220  ;
5221  return 0;
5222}
5223_ACEOF
5224if ac_fn_cxx_try_compile "$LINENO"; then :
5225
5226else
5227  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5228	 CXXFLAGS="-g"
5229	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230/* end confdefs.h.  */
5231
5232int
5233main ()
5234{
5235
5236  ;
5237  return 0;
5238}
5239_ACEOF
5240if ac_fn_cxx_try_compile "$LINENO"; then :
5241  ac_cv_prog_cxx_g=yes
5242fi
5243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244fi
5245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246fi
5247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5249fi
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5251$as_echo "$ac_cv_prog_cxx_g" >&6; }
5252if test "$ac_test_CXXFLAGS" = set; then
5253  CXXFLAGS=$ac_save_CXXFLAGS
5254elif test $ac_cv_prog_cxx_g = yes; then
5255  if test "$GXX" = yes; then
5256    CXXFLAGS="-g -O2"
5257  else
5258    CXXFLAGS="-g"
5259  fi
5260else
5261  if test "$GXX" = yes; then
5262    CXXFLAGS="$CXXFLAGS"
5263  else
5264    CXXFLAGS=
5265  fi
5266fi
5267ac_ext=c
5268ac_cpp='$CPP $CPPFLAGS'
5269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5271ac_compiler_gnu=$ac_cv_c_compiler_gnu
5272
5273depcc="$CXX"  am_compiler_list=
5274
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5276$as_echo_n "checking dependency style of $depcc... " >&6; }
5277if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5278  $as_echo_n "(cached) " >&6
5279else
5280  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5281  # We make a subdir and do the tests there.  Otherwise we can end up
5282  # making bogus files that we don't know about and never remove.  For
5283  # instance it was reported that on HP-UX the gcc test will end up
5284  # making a dummy file named `D' -- because `-MD' means `put the output
5285  # in D'.
5286  mkdir conftest.dir
5287  # Copy depcomp to subdir because otherwise we won't find it if we're
5288  # using a relative directory.
5289  cp "$am_depcomp" conftest.dir
5290  cd conftest.dir
5291  # We will build objects and dependencies in a subdirectory because
5292  # it helps to detect inapplicable dependency modes.  For instance
5293  # both Tru64's cc and ICC support -MD to output dependencies as a
5294  # side effect of compilation, but ICC will put the dependencies in
5295  # the current directory while Tru64 will put them in the object
5296  # directory.
5297  mkdir sub
5298
5299  am_cv_CXX_dependencies_compiler_type=none
5300  if test "$am_compiler_list" = ""; then
5301     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5302  fi
5303  am__universal=false
5304  case " $depcc " in #(
5305     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5306     esac
5307
5308  for depmode in $am_compiler_list; do
5309    # Setup a source with many dependencies, because some compilers
5310    # like to wrap large dependency lists on column 80 (with \), and
5311    # we should not choose a depcomp mode which is confused by this.
5312    #
5313    # We need to recreate these files for each test, as the compiler may
5314    # overwrite some of them when testing with obscure command lines.
5315    # This happens at least with the AIX C compiler.
5316    : > sub/conftest.c
5317    for i in 1 2 3 4 5 6; do
5318      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5319      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5320      # Solaris 8's {/usr,}/bin/sh.
5321      touch sub/conftst$i.h
5322    done
5323    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5324
5325    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5326    # mode.  It turns out that the SunPro C++ compiler does not properly
5327    # handle `-M -o', and we need to detect this.  Also, some Intel
5328    # versions had trouble with output in subdirs
5329    am__obj=sub/conftest.${OBJEXT-o}
5330    am__minus_obj="-o $am__obj"
5331    case $depmode in
5332    gcc)
5333      # This depmode causes a compiler race in universal mode.
5334      test "$am__universal" = false || continue
5335      ;;
5336    nosideeffect)
5337      # after this tag, mechanisms are not by side-effect, so they'll
5338      # only be used when explicitly requested
5339      if test "x$enable_dependency_tracking" = xyes; then
5340	continue
5341      else
5342	break
5343      fi
5344      ;;
5345    msvisualcpp | msvcmsys)
5346      # This compiler won't grok `-c -o', but also, the minuso test has
5347      # not run yet.  These depmodes are late enough in the game, and
5348      # so weak that their functioning should not be impacted.
5349      am__obj=conftest.${OBJEXT-o}
5350      am__minus_obj=
5351      ;;
5352    none) break ;;
5353    esac
5354    if depmode=$depmode \
5355       source=sub/conftest.c object=$am__obj \
5356       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5357       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5358         >/dev/null 2>conftest.err &&
5359       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5360       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5361       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5362       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5363      # icc doesn't choke on unknown options, it will just issue warnings
5364      # or remarks (even with -Werror).  So we grep stderr for any message
5365      # that says an option was ignored or not supported.
5366      # When given -MP, icc 7.0 and 7.1 complain thusly:
5367      #   icc: Command line warning: ignoring option '-M'; no argument required
5368      # The diagnosis changed in icc 8.0:
5369      #   icc: Command line remark: option '-MP' not supported
5370      if (grep 'ignoring option' conftest.err ||
5371          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5372        am_cv_CXX_dependencies_compiler_type=$depmode
5373        break
5374      fi
5375    fi
5376  done
5377
5378  cd ..
5379  rm -rf conftest.dir
5380else
5381  am_cv_CXX_dependencies_compiler_type=none
5382fi
5383
5384fi
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5386$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5387CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5388
5389 if
5390  test "x$enable_dependency_tracking" != xno \
5391  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5392  am__fastdepCXX_TRUE=
5393  am__fastdepCXX_FALSE='#'
5394else
5395  am__fastdepCXX_TRUE='#'
5396  am__fastdepCXX_FALSE=
5397fi
5398
5399
5400
5401if test "x$GXX" = xyes; then
5402	CXXFLAGS="$CXXFLAGS"
5403fi
5404# Check whether --enable-debug was given.
5405if test "${enable_debug+set}" = set; then :
5406  enableval=$enable_debug; test "$enableval" = "yes" && CXXFLAGS="-g"
5407fi
5408
5409if test "x$GXX" = xyes; then
5410	CXXFLAGS="$CXXFLAGS -Wall"
5411fi
5412
5413
5414# Check whether --enable-shared was given.
5415if test "${enable_shared+set}" = set; then :
5416  enableval=$enable_shared; p=${PACKAGE-default}
5417    case $enableval in
5418    yes) enable_shared=yes ;;
5419    no) enable_shared=no ;;
5420    *)
5421      enable_shared=no
5422      # Look at the argument we got.  We use all the common list separators.
5423      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5424      for pkg in $enableval; do
5425	IFS="$lt_save_ifs"
5426	if test "X$pkg" = "X$p"; then
5427	  enable_shared=yes
5428	fi
5429      done
5430      IFS="$lt_save_ifs"
5431      ;;
5432    esac
5433else
5434  enable_shared=no
5435fi
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445case `pwd` in
5446  *\ * | *\	*)
5447    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5448$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5449esac
5450
5451
5452
5453macro_version='2.2.6b'
5454macro_revision='1.3017'
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468ltmain="$ac_aux_dir/ltmain.sh"
5469
5470# Make sure we can run config.sub.
5471$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5472  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5473
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5475$as_echo_n "checking build system type... " >&6; }
5476if test "${ac_cv_build+set}" = set; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479  ac_build_alias=$build_alias
5480test "x$ac_build_alias" = x &&
5481  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5482test "x$ac_build_alias" = x &&
5483  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5484ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5485  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5486
5487fi
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5489$as_echo "$ac_cv_build" >&6; }
5490case $ac_cv_build in
5491*-*-*) ;;
5492*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5493esac
5494build=$ac_cv_build
5495ac_save_IFS=$IFS; IFS='-'
5496set x $ac_cv_build
5497shift
5498build_cpu=$1
5499build_vendor=$2
5500shift; shift
5501# Remember, the first character of IFS is used to create $*,
5502# except with old shells:
5503build_os=$*
5504IFS=$ac_save_IFS
5505case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5506
5507
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5509$as_echo_n "checking host system type... " >&6; }
5510if test "${ac_cv_host+set}" = set; then :
5511  $as_echo_n "(cached) " >&6
5512else
5513  if test "x$host_alias" = x; then
5514  ac_cv_host=$ac_cv_build
5515else
5516  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5517    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5518fi
5519
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5522$as_echo "$ac_cv_host" >&6; }
5523case $ac_cv_host in
5524*-*-*) ;;
5525*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5526esac
5527host=$ac_cv_host
5528ac_save_IFS=$IFS; IFS='-'
5529set x $ac_cv_host
5530shift
5531host_cpu=$1
5532host_vendor=$2
5533shift; shift
5534# Remember, the first character of IFS is used to create $*,
5535# except with old shells:
5536host_os=$*
5537IFS=$ac_save_IFS
5538case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5539
5540
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5542$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5543if test "${ac_cv_path_SED+set}" = set; then :
5544  $as_echo_n "(cached) " >&6
5545else
5546            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5547     for ac_i in 1 2 3 4 5 6 7; do
5548       ac_script="$ac_script$as_nl$ac_script"
5549     done
5550     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5551     { ac_script=; unset ac_script;}
5552     if test -z "$SED"; then
5553  ac_path_SED_found=false
5554  # Loop through the user's path and test for each of PROGNAME-LIST
5555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558  IFS=$as_save_IFS
5559  test -z "$as_dir" && as_dir=.
5560    for ac_prog in sed gsed; do
5561    for ac_exec_ext in '' $ac_executable_extensions; do
5562      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5563      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5564# Check for GNU ac_path_SED and select it if it is found.
5565  # Check for GNU $ac_path_SED
5566case `"$ac_path_SED" --version 2>&1` in
5567*GNU*)
5568  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5569*)
5570  ac_count=0
5571  $as_echo_n 0123456789 >"conftest.in"
5572  while :
5573  do
5574    cat "conftest.in" "conftest.in" >"conftest.tmp"
5575    mv "conftest.tmp" "conftest.in"
5576    cp "conftest.in" "conftest.nl"
5577    $as_echo '' >> "conftest.nl"
5578    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5579    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5580    as_fn_arith $ac_count + 1 && ac_count=$as_val
5581    if test $ac_count -gt ${ac_path_SED_max-0}; then
5582      # Best one so far, save it but keep looking for a better one
5583      ac_cv_path_SED="$ac_path_SED"
5584      ac_path_SED_max=$ac_count
5585    fi
5586    # 10*(2^10) chars as input seems more than enough
5587    test $ac_count -gt 10 && break
5588  done
5589  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5590esac
5591
5592      $ac_path_SED_found && break 3
5593    done
5594  done
5595  done
5596IFS=$as_save_IFS
5597  if test -z "$ac_cv_path_SED"; then
5598    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5599  fi
5600else
5601  ac_cv_path_SED=$SED
5602fi
5603
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5606$as_echo "$ac_cv_path_SED" >&6; }
5607 SED="$ac_cv_path_SED"
5608  rm -f conftest.sed
5609
5610test -z "$SED" && SED=sed
5611Xsed="$SED -e 1s/^X//"
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5624$as_echo_n "checking for fgrep... " >&6; }
5625if test "${ac_cv_path_FGREP+set}" = set; then :
5626  $as_echo_n "(cached) " >&6
5627else
5628  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5629   then ac_cv_path_FGREP="$GREP -F"
5630   else
5631     if test -z "$FGREP"; then
5632  ac_path_FGREP_found=false
5633  # Loop through the user's path and test for each of PROGNAME-LIST
5634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5636do
5637  IFS=$as_save_IFS
5638  test -z "$as_dir" && as_dir=.
5639    for ac_prog in fgrep; do
5640    for ac_exec_ext in '' $ac_executable_extensions; do
5641      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5642      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5643# Check for GNU ac_path_FGREP and select it if it is found.
5644  # Check for GNU $ac_path_FGREP
5645case `"$ac_path_FGREP" --version 2>&1` in
5646*GNU*)
5647  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5648*)
5649  ac_count=0
5650  $as_echo_n 0123456789 >"conftest.in"
5651  while :
5652  do
5653    cat "conftest.in" "conftest.in" >"conftest.tmp"
5654    mv "conftest.tmp" "conftest.in"
5655    cp "conftest.in" "conftest.nl"
5656    $as_echo 'FGREP' >> "conftest.nl"
5657    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5658    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5659    as_fn_arith $ac_count + 1 && ac_count=$as_val
5660    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5661      # Best one so far, save it but keep looking for a better one
5662      ac_cv_path_FGREP="$ac_path_FGREP"
5663      ac_path_FGREP_max=$ac_count
5664    fi
5665    # 10*(2^10) chars as input seems more than enough
5666    test $ac_count -gt 10 && break
5667  done
5668  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5669esac
5670
5671      $ac_path_FGREP_found && break 3
5672    done
5673  done
5674  done
5675IFS=$as_save_IFS
5676  if test -z "$ac_cv_path_FGREP"; then
5677    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5678  fi
5679else
5680  ac_cv_path_FGREP=$FGREP
5681fi
5682
5683   fi
5684fi
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5686$as_echo "$ac_cv_path_FGREP" >&6; }
5687 FGREP="$ac_cv_path_FGREP"
5688
5689
5690test -z "$GREP" && GREP=grep
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710# Check whether --with-gnu-ld was given.
5711if test "${with_gnu_ld+set}" = set; then :
5712  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5713else
5714  with_gnu_ld=no
5715fi
5716
5717ac_prog=ld
5718if test "$GCC" = yes; then
5719  # Check if gcc -print-prog-name=ld gives a path.
5720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5721$as_echo_n "checking for ld used by $CC... " >&6; }
5722  case $host in
5723  *-*-mingw*)
5724    # gcc leaves a trailing carriage return which upsets mingw
5725    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5726  *)
5727    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5728  esac
5729  case $ac_prog in
5730    # Accept absolute paths.
5731    [\\/]* | ?:[\\/]*)
5732      re_direlt='/[^/][^/]*/\.\./'
5733      # Canonicalize the pathname of ld
5734      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5735      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5736	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5737      done
5738      test -z "$LD" && LD="$ac_prog"
5739      ;;
5740  "")
5741    # If it fails, then pretend we aren't using GCC.
5742    ac_prog=ld
5743    ;;
5744  *)
5745    # If it is relative, then search for the first ld in PATH.
5746    with_gnu_ld=unknown
5747    ;;
5748  esac
5749elif test "$with_gnu_ld" = yes; then
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5751$as_echo_n "checking for GNU ld... " >&6; }
5752else
5753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5754$as_echo_n "checking for non-GNU ld... " >&6; }
5755fi
5756if test "${lt_cv_path_LD+set}" = set; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  if test -z "$LD"; then
5760  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5761  for ac_dir in $PATH; do
5762    IFS="$lt_save_ifs"
5763    test -z "$ac_dir" && ac_dir=.
5764    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5765      lt_cv_path_LD="$ac_dir/$ac_prog"
5766      # Check to see if the program is GNU ld.  I'd rather use --version,
5767      # but apparently some variants of GNU ld only accept -v.
5768      # Break only if it was the GNU/non-GNU ld that we prefer.
5769      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5770      *GNU* | *'with BFD'*)
5771	test "$with_gnu_ld" != no && break
5772	;;
5773      *)
5774	test "$with_gnu_ld" != yes && break
5775	;;
5776      esac
5777    fi
5778  done
5779  IFS="$lt_save_ifs"
5780else
5781  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5782fi
5783fi
5784
5785LD="$lt_cv_path_LD"
5786if test -n "$LD"; then
5787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5788$as_echo "$LD" >&6; }
5789else
5790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791$as_echo "no" >&6; }
5792fi
5793test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5795$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5796if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5797  $as_echo_n "(cached) " >&6
5798else
5799  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5800case `$LD -v 2>&1 </dev/null` in
5801*GNU* | *'with BFD'*)
5802  lt_cv_prog_gnu_ld=yes
5803  ;;
5804*)
5805  lt_cv_prog_gnu_ld=no
5806  ;;
5807esac
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5810$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5811with_gnu_ld=$lt_cv_prog_gnu_ld
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5822$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5823if test "${lt_cv_path_NM+set}" = set; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  if test -n "$NM"; then
5827  # Let the user override the test.
5828  lt_cv_path_NM="$NM"
5829else
5830  lt_nm_to_check="${ac_tool_prefix}nm"
5831  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5832    lt_nm_to_check="$lt_nm_to_check nm"
5833  fi
5834  for lt_tmp_nm in $lt_nm_to_check; do
5835    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5836    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5837      IFS="$lt_save_ifs"
5838      test -z "$ac_dir" && ac_dir=.
5839      tmp_nm="$ac_dir/$lt_tmp_nm"
5840      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5841	# Check to see if the nm accepts a BSD-compat flag.
5842	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5843	#   nm: unknown option "B" ignored
5844	# Tru64's nm complains that /dev/null is an invalid object file
5845	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5846	*/dev/null* | *'Invalid file or object type'*)
5847	  lt_cv_path_NM="$tmp_nm -B"
5848	  break
5849	  ;;
5850	*)
5851	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5852	  */dev/null*)
5853	    lt_cv_path_NM="$tmp_nm -p"
5854	    break
5855	    ;;
5856	  *)
5857	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5858	    continue # so that we can try to find one that supports BSD flags
5859	    ;;
5860	  esac
5861	  ;;
5862	esac
5863      fi
5864    done
5865    IFS="$lt_save_ifs"
5866  done
5867  : ${lt_cv_path_NM=no}
5868fi
5869fi
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5871$as_echo "$lt_cv_path_NM" >&6; }
5872if test "$lt_cv_path_NM" != "no"; then
5873  NM="$lt_cv_path_NM"
5874else
5875  # Didn't find any BSD compatible name lister, look for dumpbin.
5876  if test -n "$ac_tool_prefix"; then
5877  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5878  do
5879    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882$as_echo_n "checking for $ac_word... " >&6; }
5883if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5884  $as_echo_n "(cached) " >&6
5885else
5886  if test -n "$DUMPBIN"; then
5887  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5888else
5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892  IFS=$as_save_IFS
5893  test -z "$as_dir" && as_dir=.
5894    for ac_exec_ext in '' $ac_executable_extensions; do
5895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898    break 2
5899  fi
5900done
5901  done
5902IFS=$as_save_IFS
5903
5904fi
5905fi
5906DUMPBIN=$ac_cv_prog_DUMPBIN
5907if test -n "$DUMPBIN"; then
5908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5909$as_echo "$DUMPBIN" >&6; }
5910else
5911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
5914
5915
5916    test -n "$DUMPBIN" && break
5917  done
5918fi
5919if test -z "$DUMPBIN"; then
5920  ac_ct_DUMPBIN=$DUMPBIN
5921  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5922do
5923  # Extract the first word of "$ac_prog", so it can be a program name with args.
5924set dummy $ac_prog; ac_word=$2
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926$as_echo_n "checking for $ac_word... " >&6; }
5927if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  if test -n "$ac_ct_DUMPBIN"; then
5931  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936  IFS=$as_save_IFS
5937  test -z "$as_dir" && as_dir=.
5938    for ac_exec_ext in '' $ac_executable_extensions; do
5939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942    break 2
5943  fi
5944done
5945  done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5951if test -n "$ac_ct_DUMPBIN"; then
5952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5953$as_echo "$ac_ct_DUMPBIN" >&6; }
5954else
5955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956$as_echo "no" >&6; }
5957fi
5958
5959
5960  test -n "$ac_ct_DUMPBIN" && break
5961done
5962
5963  if test "x$ac_ct_DUMPBIN" = x; then
5964    DUMPBIN=":"
5965  else
5966    case $cross_compiling:$ac_tool_warned in
5967yes:)
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970ac_tool_warned=yes ;;
5971esac
5972    DUMPBIN=$ac_ct_DUMPBIN
5973  fi
5974fi
5975
5976
5977  if test "$DUMPBIN" != ":"; then
5978    NM="$DUMPBIN"
5979  fi
5980fi
5981test -z "$NM" && NM=nm
5982
5983
5984
5985
5986
5987
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5989$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5990if test "${lt_cv_nm_interface+set}" = set; then :
5991  $as_echo_n "(cached) " >&6
5992else
5993  lt_cv_nm_interface="BSD nm"
5994  echo "int some_variable = 0;" > conftest.$ac_ext
5995  (eval echo "\"\$as_me:5995: $ac_compile\"" >&5)
5996  (eval "$ac_compile" 2>conftest.err)
5997  cat conftest.err >&5
5998  (eval echo "\"\$as_me:5998: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5999  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6000  cat conftest.err >&5
6001  (eval echo "\"\$as_me:6001: output\"" >&5)
6002  cat conftest.out >&5
6003  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6004    lt_cv_nm_interface="MS dumpbin"
6005  fi
6006  rm -f conftest*
6007fi
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6009$as_echo "$lt_cv_nm_interface" >&6; }
6010
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6012$as_echo_n "checking whether ln -s works... " >&6; }
6013LN_S=$as_ln_s
6014if test "$LN_S" = "ln -s"; then
6015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6016$as_echo "yes" >&6; }
6017else
6018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6019$as_echo "no, using $LN_S" >&6; }
6020fi
6021
6022# find the maximum length of command line arguments
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6024$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6025if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028    i=0
6029  teststring="ABCD"
6030
6031  case $build_os in
6032  msdosdjgpp*)
6033    # On DJGPP, this test can blow up pretty badly due to problems in libc
6034    # (any single argument exceeding 2000 bytes causes a buffer overrun
6035    # during glob expansion).  Even if it were fixed, the result of this
6036    # check would be larger than it should be.
6037    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6038    ;;
6039
6040  gnu*)
6041    # Under GNU Hurd, this test is not required because there is
6042    # no limit to the length of command line arguments.
6043    # Libtool will interpret -1 as no limit whatsoever
6044    lt_cv_sys_max_cmd_len=-1;
6045    ;;
6046
6047  cygwin* | mingw* | cegcc*)
6048    # On Win9x/ME, this test blows up -- it succeeds, but takes
6049    # about 5 minutes as the teststring grows exponentially.
6050    # Worse, since 9x/ME are not pre-emptively multitasking,
6051    # you end up with a "frozen" computer, even though with patience
6052    # the test eventually succeeds (with a max line length of 256k).
6053    # Instead, let's just punt: use the minimum linelength reported by
6054    # all of the supported platforms: 8192 (on NT/2K/XP).
6055    lt_cv_sys_max_cmd_len=8192;
6056    ;;
6057
6058  amigaos*)
6059    # On AmigaOS with pdksh, this test takes hours, literally.
6060    # So we just punt and use a minimum line length of 8192.
6061    lt_cv_sys_max_cmd_len=8192;
6062    ;;
6063
6064  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6065    # This has been around since 386BSD, at least.  Likely further.
6066    if test -x /sbin/sysctl; then
6067      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6068    elif test -x /usr/sbin/sysctl; then
6069      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6070    else
6071      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6072    fi
6073    # And add a safety zone
6074    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6076    ;;
6077
6078  interix*)
6079    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6080    lt_cv_sys_max_cmd_len=196608
6081    ;;
6082
6083  osf*)
6084    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6085    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6086    # nice to cause kernel panics so lets avoid the loop below.
6087    # First set a reasonable default.
6088    lt_cv_sys_max_cmd_len=16384
6089    #
6090    if test -x /sbin/sysconfig; then
6091      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6092        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6093      esac
6094    fi
6095    ;;
6096  sco3.2v5*)
6097    lt_cv_sys_max_cmd_len=102400
6098    ;;
6099  sysv5* | sco5v6* | sysv4.2uw2*)
6100    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6101    if test -n "$kargmax"; then
6102      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6103    else
6104      lt_cv_sys_max_cmd_len=32768
6105    fi
6106    ;;
6107  *)
6108    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6109    if test -n "$lt_cv_sys_max_cmd_len"; then
6110      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6111      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6112    else
6113      # Make teststring a little bigger before we do anything with it.
6114      # a 1K string should be a reasonable start.
6115      for i in 1 2 3 4 5 6 7 8 ; do
6116        teststring=$teststring$teststring
6117      done
6118      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6119      # If test is not a shell built-in, we'll probably end up computing a
6120      # maximum length that is only half of the actual maximum length, but
6121      # we can't tell.
6122      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6123	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6124	      test $i != 17 # 1/2 MB should be enough
6125      do
6126        i=`expr $i + 1`
6127        teststring=$teststring$teststring
6128      done
6129      # Only check the string length outside the loop.
6130      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6131      teststring=
6132      # Add a significant safety factor because C++ compilers can tack on
6133      # massive amounts of additional arguments before passing them to the
6134      # linker.  It appears as though 1/2 is a usable value.
6135      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6136    fi
6137    ;;
6138  esac
6139
6140fi
6141
6142if test -n $lt_cv_sys_max_cmd_len ; then
6143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6144$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6145else
6146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6147$as_echo "none" >&6; }
6148fi
6149max_cmd_len=$lt_cv_sys_max_cmd_len
6150
6151
6152
6153
6154
6155
6156: ${CP="cp -f"}
6157: ${MV="mv -f"}
6158: ${RM="rm -f"}
6159
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6161$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6162# Try some XSI features
6163xsi_shell=no
6164( _lt_dummy="a/b/c"
6165  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6166      = c,a/b,, \
6167    && eval 'test $(( 1 + 1 )) -eq 2 \
6168    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6169  && xsi_shell=yes
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6171$as_echo "$xsi_shell" >&6; }
6172
6173
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6175$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6176lt_shell_append=no
6177( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6178    >/dev/null 2>&1 \
6179  && lt_shell_append=yes
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6181$as_echo "$lt_shell_append" >&6; }
6182
6183
6184if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6185  lt_unset=unset
6186else
6187  lt_unset=false
6188fi
6189
6190
6191
6192
6193
6194# test EBCDIC or ASCII
6195case `echo X|tr X '\101'` in
6196 A) # ASCII based system
6197    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6198  lt_SP2NL='tr \040 \012'
6199  lt_NL2SP='tr \015\012 \040\040'
6200  ;;
6201 *) # EBCDIC based system
6202  lt_SP2NL='tr \100 \n'
6203  lt_NL2SP='tr \r\n \100\100'
6204  ;;
6205esac
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6216$as_echo_n "checking for $LD option to reload object files... " >&6; }
6217if test "${lt_cv_ld_reload_flag+set}" = set; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  lt_cv_ld_reload_flag='-r'
6221fi
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6223$as_echo "$lt_cv_ld_reload_flag" >&6; }
6224reload_flag=$lt_cv_ld_reload_flag
6225case $reload_flag in
6226"" | " "*) ;;
6227*) reload_flag=" $reload_flag" ;;
6228esac
6229reload_cmds='$LD$reload_flag -o $output$reload_objs'
6230case $host_os in
6231  darwin*)
6232    if test "$GCC" = yes; then
6233      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6234    else
6235      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6236    fi
6237    ;;
6238esac
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248if test -n "$ac_tool_prefix"; then
6249  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6250set dummy ${ac_tool_prefix}objdump; ac_word=$2
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252$as_echo_n "checking for $ac_word... " >&6; }
6253if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6254  $as_echo_n "(cached) " >&6
6255else
6256  if test -n "$OBJDUMP"; then
6257  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262  IFS=$as_save_IFS
6263  test -z "$as_dir" && as_dir=.
6264    for ac_exec_ext in '' $ac_executable_extensions; do
6265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268    break 2
6269  fi
6270done
6271  done
6272IFS=$as_save_IFS
6273
6274fi
6275fi
6276OBJDUMP=$ac_cv_prog_OBJDUMP
6277if test -n "$OBJDUMP"; then
6278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6279$as_echo "$OBJDUMP" >&6; }
6280else
6281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282$as_echo "no" >&6; }
6283fi
6284
6285
6286fi
6287if test -z "$ac_cv_prog_OBJDUMP"; then
6288  ac_ct_OBJDUMP=$OBJDUMP
6289  # Extract the first word of "objdump", so it can be a program name with args.
6290set dummy objdump; ac_word=$2
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292$as_echo_n "checking for $ac_word... " >&6; }
6293if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6294  $as_echo_n "(cached) " >&6
6295else
6296  if test -n "$ac_ct_OBJDUMP"; then
6297  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6298else
6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300for as_dir in $PATH
6301do
6302  IFS=$as_save_IFS
6303  test -z "$as_dir" && as_dir=.
6304    for ac_exec_ext in '' $ac_executable_extensions; do
6305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308    break 2
6309  fi
6310done
6311  done
6312IFS=$as_save_IFS
6313
6314fi
6315fi
6316ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6317if test -n "$ac_ct_OBJDUMP"; then
6318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6319$as_echo "$ac_ct_OBJDUMP" >&6; }
6320else
6321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322$as_echo "no" >&6; }
6323fi
6324
6325  if test "x$ac_ct_OBJDUMP" = x; then
6326    OBJDUMP="false"
6327  else
6328    case $cross_compiling:$ac_tool_warned in
6329yes:)
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332ac_tool_warned=yes ;;
6333esac
6334    OBJDUMP=$ac_ct_OBJDUMP
6335  fi
6336else
6337  OBJDUMP="$ac_cv_prog_OBJDUMP"
6338fi
6339
6340test -z "$OBJDUMP" && OBJDUMP=objdump
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6351$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6352if test "${lt_cv_deplibs_check_method+set}" = set; then :
6353  $as_echo_n "(cached) " >&6
6354else
6355  lt_cv_file_magic_cmd='$MAGIC_CMD'
6356lt_cv_file_magic_test_file=
6357lt_cv_deplibs_check_method='unknown'
6358# Need to set the preceding variable on all platforms that support
6359# interlibrary dependencies.
6360# 'none' -- dependencies not supported.
6361# `unknown' -- same as none, but documents that we really don't know.
6362# 'pass_all' -- all dependencies passed with no checks.
6363# 'test_compile' -- check by making test program.
6364# 'file_magic [[regex]]' -- check by looking for files in library path
6365# which responds to the $file_magic_cmd with a given extended regex.
6366# If you have `file' or equivalent on your system and you're not sure
6367# whether `pass_all' will *always* work, you probably want this one.
6368
6369case $host_os in
6370aix[4-9]*)
6371  lt_cv_deplibs_check_method=pass_all
6372  ;;
6373
6374beos*)
6375  lt_cv_deplibs_check_method=pass_all
6376  ;;
6377
6378bsdi[45]*)
6379  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6380  lt_cv_file_magic_cmd='/usr/bin/file -L'
6381  lt_cv_file_magic_test_file=/shlib/libc.so
6382  ;;
6383
6384cygwin*)
6385  # func_win32_libid is a shell function defined in ltmain.sh
6386  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6387  lt_cv_file_magic_cmd='func_win32_libid'
6388  ;;
6389
6390mingw* | pw32*)
6391  # Base MSYS/MinGW do not provide the 'file' command needed by
6392  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6393  # unless we find 'file', for example because we are cross-compiling.
6394  if ( file / ) >/dev/null 2>&1; then
6395    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6396    lt_cv_file_magic_cmd='func_win32_libid'
6397  else
6398    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6399    lt_cv_file_magic_cmd='$OBJDUMP -f'
6400  fi
6401  ;;
6402
6403cegcc)
6404  # use the weaker test based on 'objdump'. See mingw*.
6405  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6406  lt_cv_file_magic_cmd='$OBJDUMP -f'
6407  ;;
6408
6409darwin* | rhapsody*)
6410  lt_cv_deplibs_check_method=pass_all
6411  ;;
6412
6413freebsd* | dragonfly*)
6414  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6415    case $host_cpu in
6416    i*86 )
6417      # Not sure whether the presence of OpenBSD here was a mistake.
6418      # Let's accept both of them until this is cleared up.
6419      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6420      lt_cv_file_magic_cmd=/usr/bin/file
6421      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6422      ;;
6423    esac
6424  else
6425    lt_cv_deplibs_check_method=pass_all
6426  fi
6427  ;;
6428
6429gnu*)
6430  lt_cv_deplibs_check_method=pass_all
6431  ;;
6432
6433hpux10.20* | hpux11*)
6434  lt_cv_file_magic_cmd=/usr/bin/file
6435  case $host_cpu in
6436  ia64*)
6437    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6438    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6439    ;;
6440  hppa*64*)
6441    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]'
6442    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6443    ;;
6444  *)
6445    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6446    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6447    ;;
6448  esac
6449  ;;
6450
6451interix[3-9]*)
6452  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6453  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6454  ;;
6455
6456irix5* | irix6* | nonstopux*)
6457  case $LD in
6458  *-32|*"-32 ") libmagic=32-bit;;
6459  *-n32|*"-n32 ") libmagic=N32;;
6460  *-64|*"-64 ") libmagic=64-bit;;
6461  *) libmagic=never-match;;
6462  esac
6463  lt_cv_deplibs_check_method=pass_all
6464  ;;
6465
6466# This must be Linux ELF.
6467linux* | k*bsd*-gnu | kopensolaris*-gnu)
6468  lt_cv_deplibs_check_method=pass_all
6469  ;;
6470
6471netbsd* | netbsdelf*-gnu)
6472  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6473    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6474  else
6475    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6476  fi
6477  ;;
6478
6479newos6*)
6480  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6481  lt_cv_file_magic_cmd=/usr/bin/file
6482  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6483  ;;
6484
6485*nto* | *qnx*)
6486  lt_cv_deplibs_check_method=pass_all
6487  ;;
6488
6489openbsd*)
6490  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6491    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6492  else
6493    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6494  fi
6495  ;;
6496
6497osf3* | osf4* | osf5*)
6498  lt_cv_deplibs_check_method=pass_all
6499  ;;
6500
6501rdos*)
6502  lt_cv_deplibs_check_method=pass_all
6503  ;;
6504
6505solaris*)
6506  lt_cv_deplibs_check_method=pass_all
6507  ;;
6508
6509sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6510  lt_cv_deplibs_check_method=pass_all
6511  ;;
6512
6513sysv4 | sysv4.3*)
6514  case $host_vendor in
6515  motorola)
6516    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]'
6517    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6518    ;;
6519  ncr)
6520    lt_cv_deplibs_check_method=pass_all
6521    ;;
6522  sequent)
6523    lt_cv_file_magic_cmd='/bin/file'
6524    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6525    ;;
6526  sni)
6527    lt_cv_file_magic_cmd='/bin/file'
6528    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6529    lt_cv_file_magic_test_file=/lib/libc.so
6530    ;;
6531  siemens)
6532    lt_cv_deplibs_check_method=pass_all
6533    ;;
6534  pc)
6535    lt_cv_deplibs_check_method=pass_all
6536    ;;
6537  esac
6538  ;;
6539
6540tpf*)
6541  lt_cv_deplibs_check_method=pass_all
6542  ;;
6543esac
6544
6545fi
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6547$as_echo "$lt_cv_deplibs_check_method" >&6; }
6548file_magic_cmd=$lt_cv_file_magic_cmd
6549deplibs_check_method=$lt_cv_deplibs_check_method
6550test -z "$deplibs_check_method" && deplibs_check_method=unknown
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563if test -n "$ac_tool_prefix"; then
6564  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6565set dummy ${ac_tool_prefix}ar; ac_word=$2
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567$as_echo_n "checking for $ac_word... " >&6; }
6568if test "${ac_cv_prog_AR+set}" = set; then :
6569  $as_echo_n "(cached) " >&6
6570else
6571  if test -n "$AR"; then
6572  ac_cv_prog_AR="$AR" # Let the user override the test.
6573else
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577  IFS=$as_save_IFS
6578  test -z "$as_dir" && as_dir=.
6579    for ac_exec_ext in '' $ac_executable_extensions; do
6580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581    ac_cv_prog_AR="${ac_tool_prefix}ar"
6582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583    break 2
6584  fi
6585done
6586  done
6587IFS=$as_save_IFS
6588
6589fi
6590fi
6591AR=$ac_cv_prog_AR
6592if test -n "$AR"; then
6593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6594$as_echo "$AR" >&6; }
6595else
6596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597$as_echo "no" >&6; }
6598fi
6599
6600
6601fi
6602if test -z "$ac_cv_prog_AR"; then
6603  ac_ct_AR=$AR
6604  # Extract the first word of "ar", so it can be a program name with args.
6605set dummy ar; ac_word=$2
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607$as_echo_n "checking for $ac_word... " >&6; }
6608if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6609  $as_echo_n "(cached) " >&6
6610else
6611  if test -n "$ac_ct_AR"; then
6612  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6613else
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617  IFS=$as_save_IFS
6618  test -z "$as_dir" && as_dir=.
6619    for ac_exec_ext in '' $ac_executable_extensions; do
6620  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621    ac_cv_prog_ac_ct_AR="ar"
6622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623    break 2
6624  fi
6625done
6626  done
6627IFS=$as_save_IFS
6628
6629fi
6630fi
6631ac_ct_AR=$ac_cv_prog_ac_ct_AR
6632if test -n "$ac_ct_AR"; then
6633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6634$as_echo "$ac_ct_AR" >&6; }
6635else
6636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637$as_echo "no" >&6; }
6638fi
6639
6640  if test "x$ac_ct_AR" = x; then
6641    AR="false"
6642  else
6643    case $cross_compiling:$ac_tool_warned in
6644yes:)
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647ac_tool_warned=yes ;;
6648esac
6649    AR=$ac_ct_AR
6650  fi
6651else
6652  AR="$ac_cv_prog_AR"
6653fi
6654
6655test -z "$AR" && AR=ar
6656test -z "$AR_FLAGS" && AR_FLAGS=cru
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668if test -n "$ac_tool_prefix"; then
6669  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6670set dummy ${ac_tool_prefix}strip; ac_word=$2
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672$as_echo_n "checking for $ac_word... " >&6; }
6673if test "${ac_cv_prog_STRIP+set}" = set; then :
6674  $as_echo_n "(cached) " >&6
6675else
6676  if test -n "$STRIP"; then
6677  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6678else
6679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680for as_dir in $PATH
6681do
6682  IFS=$as_save_IFS
6683  test -z "$as_dir" && as_dir=.
6684    for ac_exec_ext in '' $ac_executable_extensions; do
6685  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688    break 2
6689  fi
6690done
6691  done
6692IFS=$as_save_IFS
6693
6694fi
6695fi
6696STRIP=$ac_cv_prog_STRIP
6697if test -n "$STRIP"; then
6698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6699$as_echo "$STRIP" >&6; }
6700else
6701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702$as_echo "no" >&6; }
6703fi
6704
6705
6706fi
6707if test -z "$ac_cv_prog_STRIP"; then
6708  ac_ct_STRIP=$STRIP
6709  # Extract the first word of "strip", so it can be a program name with args.
6710set dummy strip; ac_word=$2
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712$as_echo_n "checking for $ac_word... " >&6; }
6713if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6714  $as_echo_n "(cached) " >&6
6715else
6716  if test -n "$ac_ct_STRIP"; then
6717  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6718else
6719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720for as_dir in $PATH
6721do
6722  IFS=$as_save_IFS
6723  test -z "$as_dir" && as_dir=.
6724    for ac_exec_ext in '' $ac_executable_extensions; do
6725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726    ac_cv_prog_ac_ct_STRIP="strip"
6727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728    break 2
6729  fi
6730done
6731  done
6732IFS=$as_save_IFS
6733
6734fi
6735fi
6736ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6737if test -n "$ac_ct_STRIP"; then
6738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6739$as_echo "$ac_ct_STRIP" >&6; }
6740else
6741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742$as_echo "no" >&6; }
6743fi
6744
6745  if test "x$ac_ct_STRIP" = x; then
6746    STRIP=":"
6747  else
6748    case $cross_compiling:$ac_tool_warned in
6749yes:)
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6752ac_tool_warned=yes ;;
6753esac
6754    STRIP=$ac_ct_STRIP
6755  fi
6756else
6757  STRIP="$ac_cv_prog_STRIP"
6758fi
6759
6760test -z "$STRIP" && STRIP=:
6761
6762
6763
6764
6765
6766
6767if test -n "$ac_tool_prefix"; then
6768  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6769set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771$as_echo_n "checking for $ac_word... " >&6; }
6772if test "${ac_cv_prog_RANLIB+set}" = set; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  if test -n "$RANLIB"; then
6776  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781  IFS=$as_save_IFS
6782  test -z "$as_dir" && as_dir=.
6783    for ac_exec_ext in '' $ac_executable_extensions; do
6784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787    break 2
6788  fi
6789done
6790  done
6791IFS=$as_save_IFS
6792
6793fi
6794fi
6795RANLIB=$ac_cv_prog_RANLIB
6796if test -n "$RANLIB"; then
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6798$as_echo "$RANLIB" >&6; }
6799else
6800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801$as_echo "no" >&6; }
6802fi
6803
6804
6805fi
6806if test -z "$ac_cv_prog_RANLIB"; then
6807  ac_ct_RANLIB=$RANLIB
6808  # Extract the first word of "ranlib", so it can be a program name with args.
6809set dummy ranlib; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6813  $as_echo_n "(cached) " >&6
6814else
6815  if test -n "$ac_ct_RANLIB"; then
6816  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821  IFS=$as_save_IFS
6822  test -z "$as_dir" && as_dir=.
6823    for ac_exec_ext in '' $ac_executable_extensions; do
6824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825    ac_cv_prog_ac_ct_RANLIB="ranlib"
6826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827    break 2
6828  fi
6829done
6830  done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6836if test -n "$ac_ct_RANLIB"; then
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6838$as_echo "$ac_ct_RANLIB" >&6; }
6839else
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844  if test "x$ac_ct_RANLIB" = x; then
6845    RANLIB=":"
6846  else
6847    case $cross_compiling:$ac_tool_warned in
6848yes:)
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851ac_tool_warned=yes ;;
6852esac
6853    RANLIB=$ac_ct_RANLIB
6854  fi
6855else
6856  RANLIB="$ac_cv_prog_RANLIB"
6857fi
6858
6859test -z "$RANLIB" && RANLIB=:
6860
6861
6862
6863
6864
6865
6866# Determine commands to create old-style static archives.
6867old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6868old_postinstall_cmds='chmod 644 $oldlib'
6869old_postuninstall_cmds=
6870
6871if test -n "$RANLIB"; then
6872  case $host_os in
6873  openbsd*)
6874    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6875    ;;
6876  *)
6877    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6878    ;;
6879  esac
6880  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6881fi
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916# If no C compiler was specified, use CC.
6917LTCC=${LTCC-"$CC"}
6918
6919# If no C compiler flags were specified, use CFLAGS.
6920LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6921
6922# Allow CC to be a program name with arguments.
6923compiler=$CC
6924
6925
6926# Check for command to grab the raw symbol name followed by C symbol from nm.
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6928$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6929if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932
6933# These are sane defaults that work on at least a few old systems.
6934# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6935
6936# Character class describing NM global symbol codes.
6937symcode='[BCDEGRST]'
6938
6939# Regexp to match symbols that can be accessed directly from C.
6940sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6941
6942# Define system-specific variables.
6943case $host_os in
6944aix*)
6945  symcode='[BCDT]'
6946  ;;
6947cygwin* | mingw* | pw32* | cegcc*)
6948  symcode='[ABCDGISTW]'
6949  ;;
6950hpux*)
6951  if test "$host_cpu" = ia64; then
6952    symcode='[ABCDEGRST]'
6953  fi
6954  ;;
6955irix* | nonstopux*)
6956  symcode='[BCDEGRST]'
6957  ;;
6958osf*)
6959  symcode='[BCDEGQRST]'
6960  ;;
6961solaris*)
6962  symcode='[BDRT]'
6963  ;;
6964sco3.2v5*)
6965  symcode='[DT]'
6966  ;;
6967sysv4.2uw2*)
6968  symcode='[DT]'
6969  ;;
6970sysv5* | sco5v6* | unixware* | OpenUNIX*)
6971  symcode='[ABDT]'
6972  ;;
6973sysv4)
6974  symcode='[DFNSTU]'
6975  ;;
6976esac
6977
6978# If we're using GNU nm, then use its standard symbol codes.
6979case `$NM -V 2>&1` in
6980*GNU* | *'with BFD'*)
6981  symcode='[ABCDGIRSTW]' ;;
6982esac
6983
6984# Transform an extracted symbol line into a proper C declaration.
6985# Some systems (esp. on ia64) link data and code symbols differently,
6986# so use this general approach.
6987lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6988
6989# Transform an extracted symbol line into symbol name and symbol address
6990lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6991lt_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'"
6992
6993# Handle CRLF in mingw tool chain
6994opt_cr=
6995case $build_os in
6996mingw*)
6997  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6998  ;;
6999esac
7000
7001# Try without a prefix underscore, then with it.
7002for ac_symprfx in "" "_"; do
7003
7004  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7005  symxfrm="\\1 $ac_symprfx\\2 \\2"
7006
7007  # Write the raw and C identifiers.
7008  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7009    # Fake it for dumpbin and say T for any non-static function
7010    # and D for any global variable.
7011    # Also find C++ and __fastcall symbols from MSVC++,
7012    # which start with @ or ?.
7013    lt_cv_sys_global_symbol_pipe="$AWK '"\
7014"     {last_section=section; section=\$ 3};"\
7015"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7016"     \$ 0!~/External *\|/{next};"\
7017"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7018"     {if(hide[section]) next};"\
7019"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7020"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7021"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7022"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7023"     ' prfx=^$ac_symprfx"
7024  else
7025    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7026  fi
7027
7028  # Check to see that the pipe works correctly.
7029  pipe_works=no
7030
7031  rm -f conftest*
7032  cat > conftest.$ac_ext <<_LT_EOF
7033#ifdef __cplusplus
7034extern "C" {
7035#endif
7036char nm_test_var;
7037void nm_test_func(void);
7038void nm_test_func(void){}
7039#ifdef __cplusplus
7040}
7041#endif
7042int main(){nm_test_var='a';nm_test_func();return(0);}
7043_LT_EOF
7044
7045  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7046  (eval $ac_compile) 2>&5
7047  ac_status=$?
7048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049  test $ac_status = 0; }; then
7050    # Now try to grab the symbols.
7051    nlist=conftest.nm
7052    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7053  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7054  ac_status=$?
7055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7056  test $ac_status = 0; } && test -s "$nlist"; then
7057      # Try sorting and uniquifying the output.
7058      if sort "$nlist" | uniq > "$nlist"T; then
7059	mv -f "$nlist"T "$nlist"
7060      else
7061	rm -f "$nlist"T
7062      fi
7063
7064      # Make sure that we snagged all the symbols we need.
7065      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7066	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7067	  cat <<_LT_EOF > conftest.$ac_ext
7068#ifdef __cplusplus
7069extern "C" {
7070#endif
7071
7072_LT_EOF
7073	  # Now generate the symbol file.
7074	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7075
7076	  cat <<_LT_EOF >> conftest.$ac_ext
7077
7078/* The mapping between symbol names and symbols.  */
7079const struct {
7080  const char *name;
7081  void       *address;
7082}
7083lt__PROGRAM__LTX_preloaded_symbols[] =
7084{
7085  { "@PROGRAM@", (void *) 0 },
7086_LT_EOF
7087	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7088	  cat <<\_LT_EOF >> conftest.$ac_ext
7089  {0, (void *) 0}
7090};
7091
7092/* This works around a problem in FreeBSD linker */
7093#ifdef FREEBSD_WORKAROUND
7094static const void *lt_preloaded_setup() {
7095  return lt__PROGRAM__LTX_preloaded_symbols;
7096}
7097#endif
7098
7099#ifdef __cplusplus
7100}
7101#endif
7102_LT_EOF
7103	  # Now try linking the two files.
7104	  mv conftest.$ac_objext conftstm.$ac_objext
7105	  lt_save_LIBS="$LIBS"
7106	  lt_save_CFLAGS="$CFLAGS"
7107	  LIBS="conftstm.$ac_objext"
7108	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7109	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7110  (eval $ac_link) 2>&5
7111  ac_status=$?
7112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7113  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7114	    pipe_works=yes
7115	  fi
7116	  LIBS="$lt_save_LIBS"
7117	  CFLAGS="$lt_save_CFLAGS"
7118	else
7119	  echo "cannot find nm_test_func in $nlist" >&5
7120	fi
7121      else
7122	echo "cannot find nm_test_var in $nlist" >&5
7123      fi
7124    else
7125      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7126    fi
7127  else
7128    echo "$progname: failed program was:" >&5
7129    cat conftest.$ac_ext >&5
7130  fi
7131  rm -rf conftest* conftst*
7132
7133  # Do not use the global_symbol_pipe unless it works.
7134  if test "$pipe_works" = yes; then
7135    break
7136  else
7137    lt_cv_sys_global_symbol_pipe=
7138  fi
7139done
7140
7141fi
7142
7143if test -z "$lt_cv_sys_global_symbol_pipe"; then
7144  lt_cv_sys_global_symbol_to_cdecl=
7145fi
7146if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7148$as_echo "failed" >&6; }
7149else
7150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7151$as_echo "ok" >&6; }
7152fi
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175# Check whether --enable-libtool-lock was given.
7176if test "${enable_libtool_lock+set}" = set; then :
7177  enableval=$enable_libtool_lock;
7178fi
7179
7180test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7181
7182# Some flags need to be propagated to the compiler or linker for good
7183# libtool support.
7184case $host in
7185ia64-*-hpux*)
7186  # Find out which ABI we are using.
7187  echo 'int i;' > conftest.$ac_ext
7188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7189  (eval $ac_compile) 2>&5
7190  ac_status=$?
7191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192  test $ac_status = 0; }; then
7193    case `/usr/bin/file conftest.$ac_objext` in
7194      *ELF-32*)
7195	HPUX_IA64_MODE="32"
7196	;;
7197      *ELF-64*)
7198	HPUX_IA64_MODE="64"
7199	;;
7200    esac
7201  fi
7202  rm -rf conftest*
7203  ;;
7204*-*-irix6*)
7205  # Find out which ABI we are using.
7206  echo '#line 7206 "configure"' > conftest.$ac_ext
7207  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7208  (eval $ac_compile) 2>&5
7209  ac_status=$?
7210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7211  test $ac_status = 0; }; then
7212    if test "$lt_cv_prog_gnu_ld" = yes; then
7213      case `/usr/bin/file conftest.$ac_objext` in
7214	*32-bit*)
7215	  LD="${LD-ld} -melf32bsmip"
7216	  ;;
7217	*N32*)
7218	  LD="${LD-ld} -melf32bmipn32"
7219	  ;;
7220	*64-bit*)
7221	  LD="${LD-ld} -melf64bmip"
7222	;;
7223      esac
7224    else
7225      case `/usr/bin/file conftest.$ac_objext` in
7226	*32-bit*)
7227	  LD="${LD-ld} -32"
7228	  ;;
7229	*N32*)
7230	  LD="${LD-ld} -n32"
7231	  ;;
7232	*64-bit*)
7233	  LD="${LD-ld} -64"
7234	  ;;
7235      esac
7236    fi
7237  fi
7238  rm -rf conftest*
7239  ;;
7240
7241x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7242s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7243  # Find out which ABI we are using.
7244  echo 'int i;' > conftest.$ac_ext
7245  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7246  (eval $ac_compile) 2>&5
7247  ac_status=$?
7248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249  test $ac_status = 0; }; then
7250    case `/usr/bin/file conftest.o` in
7251      *32-bit*)
7252	case $host in
7253	  x86_64-*kfreebsd*-gnu)
7254	    LD="${LD-ld} -m elf_i386_fbsd"
7255	    ;;
7256	  x86_64-*linux*)
7257	    LD="${LD-ld} -m elf_i386"
7258	    ;;
7259	  ppc64-*linux*|powerpc64-*linux*)
7260	    LD="${LD-ld} -m elf32ppclinux"
7261	    ;;
7262	  s390x-*linux*)
7263	    LD="${LD-ld} -m elf_s390"
7264	    ;;
7265	  sparc64-*linux*)
7266	    LD="${LD-ld} -m elf32_sparc"
7267	    ;;
7268	esac
7269	;;
7270      *64-bit*)
7271	case $host in
7272	  x86_64-*kfreebsd*-gnu)
7273	    LD="${LD-ld} -m elf_x86_64_fbsd"
7274	    ;;
7275	  x86_64-*linux*)
7276	    LD="${LD-ld} -m elf_x86_64"
7277	    ;;
7278	  ppc*-*linux*|powerpc*-*linux*)
7279	    LD="${LD-ld} -m elf64ppc"
7280	    ;;
7281	  s390*-*linux*|s390*-*tpf*)
7282	    LD="${LD-ld} -m elf64_s390"
7283	    ;;
7284	  sparc*-*linux*)
7285	    LD="${LD-ld} -m elf64_sparc"
7286	    ;;
7287	esac
7288	;;
7289    esac
7290  fi
7291  rm -rf conftest*
7292  ;;
7293
7294*-*-sco3.2v5*)
7295  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7296  SAVE_CFLAGS="$CFLAGS"
7297  CFLAGS="$CFLAGS -belf"
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7299$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7300if test "${lt_cv_cc_needs_belf+set}" = set; then :
7301  $as_echo_n "(cached) " >&6
7302else
7303  ac_ext=c
7304ac_cpp='$CPP $CPPFLAGS'
7305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307ac_compiler_gnu=$ac_cv_c_compiler_gnu
7308
7309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310/* end confdefs.h.  */
7311
7312int
7313main ()
7314{
7315
7316  ;
7317  return 0;
7318}
7319_ACEOF
7320if ac_fn_c_try_link "$LINENO"; then :
7321  lt_cv_cc_needs_belf=yes
7322else
7323  lt_cv_cc_needs_belf=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext \
7326    conftest$ac_exeext conftest.$ac_ext
7327     ac_ext=c
7328ac_cpp='$CPP $CPPFLAGS'
7329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7331ac_compiler_gnu=$ac_cv_c_compiler_gnu
7332
7333fi
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7335$as_echo "$lt_cv_cc_needs_belf" >&6; }
7336  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7337    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7338    CFLAGS="$SAVE_CFLAGS"
7339  fi
7340  ;;
7341sparc*-*solaris*)
7342  # Find out which ABI we are using.
7343  echo 'int i;' > conftest.$ac_ext
7344  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7345  (eval $ac_compile) 2>&5
7346  ac_status=$?
7347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348  test $ac_status = 0; }; then
7349    case `/usr/bin/file conftest.o` in
7350    *64-bit*)
7351      case $lt_cv_prog_gnu_ld in
7352      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7353      *)
7354	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7355	  LD="${LD-ld} -64"
7356	fi
7357	;;
7358      esac
7359      ;;
7360    esac
7361  fi
7362  rm -rf conftest*
7363  ;;
7364esac
7365
7366need_locks="$enable_libtool_lock"
7367
7368
7369  case $host_os in
7370    rhapsody* | darwin*)
7371    if test -n "$ac_tool_prefix"; then
7372  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7373set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375$as_echo_n "checking for $ac_word... " >&6; }
7376if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7377  $as_echo_n "(cached) " >&6
7378else
7379  if test -n "$DSYMUTIL"; then
7380  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7381else
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385  IFS=$as_save_IFS
7386  test -z "$as_dir" && as_dir=.
7387    for ac_exec_ext in '' $ac_executable_extensions; do
7388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391    break 2
7392  fi
7393done
7394  done
7395IFS=$as_save_IFS
7396
7397fi
7398fi
7399DSYMUTIL=$ac_cv_prog_DSYMUTIL
7400if test -n "$DSYMUTIL"; then
7401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7402$as_echo "$DSYMUTIL" >&6; }
7403else
7404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405$as_echo "no" >&6; }
7406fi
7407
7408
7409fi
7410if test -z "$ac_cv_prog_DSYMUTIL"; then
7411  ac_ct_DSYMUTIL=$DSYMUTIL
7412  # Extract the first word of "dsymutil", so it can be a program name with args.
7413set dummy dsymutil; ac_word=$2
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415$as_echo_n "checking for $ac_word... " >&6; }
7416if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7417  $as_echo_n "(cached) " >&6
7418else
7419  if test -n "$ac_ct_DSYMUTIL"; then
7420  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7421else
7422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425  IFS=$as_save_IFS
7426  test -z "$as_dir" && as_dir=.
7427    for ac_exec_ext in '' $ac_executable_extensions; do
7428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431    break 2
7432  fi
7433done
7434  done
7435IFS=$as_save_IFS
7436
7437fi
7438fi
7439ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7440if test -n "$ac_ct_DSYMUTIL"; then
7441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7442$as_echo "$ac_ct_DSYMUTIL" >&6; }
7443else
7444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445$as_echo "no" >&6; }
7446fi
7447
7448  if test "x$ac_ct_DSYMUTIL" = x; then
7449    DSYMUTIL=":"
7450  else
7451    case $cross_compiling:$ac_tool_warned in
7452yes:)
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7455ac_tool_warned=yes ;;
7456esac
7457    DSYMUTIL=$ac_ct_DSYMUTIL
7458  fi
7459else
7460  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7461fi
7462
7463    if test -n "$ac_tool_prefix"; then
7464  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7465set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467$as_echo_n "checking for $ac_word... " >&6; }
7468if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7469  $as_echo_n "(cached) " >&6
7470else
7471  if test -n "$NMEDIT"; then
7472  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477  IFS=$as_save_IFS
7478  test -z "$as_dir" && as_dir=.
7479    for ac_exec_ext in '' $ac_executable_extensions; do
7480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483    break 2
7484  fi
7485done
7486  done
7487IFS=$as_save_IFS
7488
7489fi
7490fi
7491NMEDIT=$ac_cv_prog_NMEDIT
7492if test -n "$NMEDIT"; then
7493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7494$as_echo "$NMEDIT" >&6; }
7495else
7496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497$as_echo "no" >&6; }
7498fi
7499
7500
7501fi
7502if test -z "$ac_cv_prog_NMEDIT"; then
7503  ac_ct_NMEDIT=$NMEDIT
7504  # Extract the first word of "nmedit", so it can be a program name with args.
7505set dummy nmedit; ac_word=$2
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507$as_echo_n "checking for $ac_word... " >&6; }
7508if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7509  $as_echo_n "(cached) " >&6
7510else
7511  if test -n "$ac_ct_NMEDIT"; then
7512  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7513else
7514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517  IFS=$as_save_IFS
7518  test -z "$as_dir" && as_dir=.
7519    for ac_exec_ext in '' $ac_executable_extensions; do
7520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523    break 2
7524  fi
7525done
7526  done
7527IFS=$as_save_IFS
7528
7529fi
7530fi
7531ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7532if test -n "$ac_ct_NMEDIT"; then
7533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7534$as_echo "$ac_ct_NMEDIT" >&6; }
7535else
7536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537$as_echo "no" >&6; }
7538fi
7539
7540  if test "x$ac_ct_NMEDIT" = x; then
7541    NMEDIT=":"
7542  else
7543    case $cross_compiling:$ac_tool_warned in
7544yes:)
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7547ac_tool_warned=yes ;;
7548esac
7549    NMEDIT=$ac_ct_NMEDIT
7550  fi
7551else
7552  NMEDIT="$ac_cv_prog_NMEDIT"
7553fi
7554
7555    if test -n "$ac_tool_prefix"; then
7556  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7557set dummy ${ac_tool_prefix}lipo; ac_word=$2
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559$as_echo_n "checking for $ac_word... " >&6; }
7560if test "${ac_cv_prog_LIPO+set}" = set; then :
7561  $as_echo_n "(cached) " >&6
7562else
7563  if test -n "$LIPO"; then
7564  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7565else
7566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567for as_dir in $PATH
7568do
7569  IFS=$as_save_IFS
7570  test -z "$as_dir" && as_dir=.
7571    for ac_exec_ext in '' $ac_executable_extensions; do
7572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575    break 2
7576  fi
7577done
7578  done
7579IFS=$as_save_IFS
7580
7581fi
7582fi
7583LIPO=$ac_cv_prog_LIPO
7584if test -n "$LIPO"; then
7585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7586$as_echo "$LIPO" >&6; }
7587else
7588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589$as_echo "no" >&6; }
7590fi
7591
7592
7593fi
7594if test -z "$ac_cv_prog_LIPO"; then
7595  ac_ct_LIPO=$LIPO
7596  # Extract the first word of "lipo", so it can be a program name with args.
7597set dummy lipo; ac_word=$2
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599$as_echo_n "checking for $ac_word... " >&6; }
7600if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7601  $as_echo_n "(cached) " >&6
7602else
7603  if test -n "$ac_ct_LIPO"; then
7604  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7605else
7606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607for as_dir in $PATH
7608do
7609  IFS=$as_save_IFS
7610  test -z "$as_dir" && as_dir=.
7611    for ac_exec_ext in '' $ac_executable_extensions; do
7612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613    ac_cv_prog_ac_ct_LIPO="lipo"
7614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615    break 2
7616  fi
7617done
7618  done
7619IFS=$as_save_IFS
7620
7621fi
7622fi
7623ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7624if test -n "$ac_ct_LIPO"; then
7625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7626$as_echo "$ac_ct_LIPO" >&6; }
7627else
7628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629$as_echo "no" >&6; }
7630fi
7631
7632  if test "x$ac_ct_LIPO" = x; then
7633    LIPO=":"
7634  else
7635    case $cross_compiling:$ac_tool_warned in
7636yes:)
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639ac_tool_warned=yes ;;
7640esac
7641    LIPO=$ac_ct_LIPO
7642  fi
7643else
7644  LIPO="$ac_cv_prog_LIPO"
7645fi
7646
7647    if test -n "$ac_tool_prefix"; then
7648  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7649set dummy ${ac_tool_prefix}otool; ac_word=$2
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651$as_echo_n "checking for $ac_word... " >&6; }
7652if test "${ac_cv_prog_OTOOL+set}" = set; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  if test -n "$OTOOL"; then
7656  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7657else
7658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659for as_dir in $PATH
7660do
7661  IFS=$as_save_IFS
7662  test -z "$as_dir" && as_dir=.
7663    for ac_exec_ext in '' $ac_executable_extensions; do
7664  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667    break 2
7668  fi
7669done
7670  done
7671IFS=$as_save_IFS
7672
7673fi
7674fi
7675OTOOL=$ac_cv_prog_OTOOL
7676if test -n "$OTOOL"; then
7677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7678$as_echo "$OTOOL" >&6; }
7679else
7680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681$as_echo "no" >&6; }
7682fi
7683
7684
7685fi
7686if test -z "$ac_cv_prog_OTOOL"; then
7687  ac_ct_OTOOL=$OTOOL
7688  # Extract the first word of "otool", so it can be a program name with args.
7689set dummy otool; ac_word=$2
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691$as_echo_n "checking for $ac_word... " >&6; }
7692if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  if test -n "$ac_ct_OTOOL"; then
7696  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7697else
7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701  IFS=$as_save_IFS
7702  test -z "$as_dir" && as_dir=.
7703    for ac_exec_ext in '' $ac_executable_extensions; do
7704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7705    ac_cv_prog_ac_ct_OTOOL="otool"
7706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707    break 2
7708  fi
7709done
7710  done
7711IFS=$as_save_IFS
7712
7713fi
7714fi
7715ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7716if test -n "$ac_ct_OTOOL"; then
7717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7718$as_echo "$ac_ct_OTOOL" >&6; }
7719else
7720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721$as_echo "no" >&6; }
7722fi
7723
7724  if test "x$ac_ct_OTOOL" = x; then
7725    OTOOL=":"
7726  else
7727    case $cross_compiling:$ac_tool_warned in
7728yes:)
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7731ac_tool_warned=yes ;;
7732esac
7733    OTOOL=$ac_ct_OTOOL
7734  fi
7735else
7736  OTOOL="$ac_cv_prog_OTOOL"
7737fi
7738
7739    if test -n "$ac_tool_prefix"; then
7740  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7741set dummy ${ac_tool_prefix}otool64; ac_word=$2
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743$as_echo_n "checking for $ac_word... " >&6; }
7744if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747  if test -n "$OTOOL64"; then
7748  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7749else
7750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753  IFS=$as_save_IFS
7754  test -z "$as_dir" && as_dir=.
7755    for ac_exec_ext in '' $ac_executable_extensions; do
7756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759    break 2
7760  fi
7761done
7762  done
7763IFS=$as_save_IFS
7764
7765fi
7766fi
7767OTOOL64=$ac_cv_prog_OTOOL64
7768if test -n "$OTOOL64"; then
7769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7770$as_echo "$OTOOL64" >&6; }
7771else
7772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773$as_echo "no" >&6; }
7774fi
7775
7776
7777fi
7778if test -z "$ac_cv_prog_OTOOL64"; then
7779  ac_ct_OTOOL64=$OTOOL64
7780  # Extract the first word of "otool64", so it can be a program name with args.
7781set dummy otool64; ac_word=$2
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783$as_echo_n "checking for $ac_word... " >&6; }
7784if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7785  $as_echo_n "(cached) " >&6
7786else
7787  if test -n "$ac_ct_OTOOL64"; then
7788  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7789else
7790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791for as_dir in $PATH
7792do
7793  IFS=$as_save_IFS
7794  test -z "$as_dir" && as_dir=.
7795    for ac_exec_ext in '' $ac_executable_extensions; do
7796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797    ac_cv_prog_ac_ct_OTOOL64="otool64"
7798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799    break 2
7800  fi
7801done
7802  done
7803IFS=$as_save_IFS
7804
7805fi
7806fi
7807ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7808if test -n "$ac_ct_OTOOL64"; then
7809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7810$as_echo "$ac_ct_OTOOL64" >&6; }
7811else
7812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813$as_echo "no" >&6; }
7814fi
7815
7816  if test "x$ac_ct_OTOOL64" = x; then
7817    OTOOL64=":"
7818  else
7819    case $cross_compiling:$ac_tool_warned in
7820yes:)
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7823ac_tool_warned=yes ;;
7824esac
7825    OTOOL64=$ac_ct_OTOOL64
7826  fi
7827else
7828  OTOOL64="$ac_cv_prog_OTOOL64"
7829fi
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7858$as_echo_n "checking for -single_module linker flag... " >&6; }
7859if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  lt_cv_apple_cc_single_mod=no
7863      if test -z "${LT_MULTI_MODULE}"; then
7864	# By default we will add the -single_module flag. You can override
7865	# by either setting the environment variable LT_MULTI_MODULE
7866	# non-empty at configure time, or by adding -multi_module to the
7867	# link flags.
7868	rm -rf libconftest.dylib*
7869	echo "int foo(void){return 1;}" > conftest.c
7870	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871-dynamiclib -Wl,-single_module conftest.c" >&5
7872	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7874        _lt_result=$?
7875	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7876	  lt_cv_apple_cc_single_mod=yes
7877	else
7878	  cat conftest.err >&5
7879	fi
7880	rm -rf libconftest.dylib*
7881	rm -f conftest.*
7882      fi
7883fi
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7885$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7887$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7888if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7889  $as_echo_n "(cached) " >&6
7890else
7891  lt_cv_ld_exported_symbols_list=no
7892      save_LDFLAGS=$LDFLAGS
7893      echo "_main" > conftest.sym
7894      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7895      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896/* end confdefs.h.  */
7897
7898int
7899main ()
7900{
7901
7902  ;
7903  return 0;
7904}
7905_ACEOF
7906if ac_fn_c_try_link "$LINENO"; then :
7907  lt_cv_ld_exported_symbols_list=yes
7908else
7909  lt_cv_ld_exported_symbols_list=no
7910fi
7911rm -f core conftest.err conftest.$ac_objext \
7912    conftest$ac_exeext conftest.$ac_ext
7913	LDFLAGS="$save_LDFLAGS"
7914
7915fi
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7917$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7918    case $host_os in
7919    rhapsody* | darwin1.[012])
7920      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7921    darwin1.*)
7922      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7923    darwin*) # darwin 5.x on
7924      # if running on 10.5 or later, the deployment target defaults
7925      # to the OS version, if on x86, and 10.4, the deployment
7926      # target defaults to 10.4. Don't you love it?
7927      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7928	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7929	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7930	10.[012]*)
7931	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7932	10.*)
7933	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7934      esac
7935    ;;
7936  esac
7937    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7938      _lt_dar_single_mod='$single_module'
7939    fi
7940    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7941      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7942    else
7943      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7944    fi
7945    if test "$DSYMUTIL" != ":"; then
7946      _lt_dsymutil='~$DSYMUTIL $lib || :'
7947    else
7948      _lt_dsymutil=
7949    fi
7950    ;;
7951  esac
7952
7953for ac_header in dlfcn.h
7954do :
7955  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7956"
7957if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7958  cat >>confdefs.h <<_ACEOF
7959#define HAVE_DLFCN_H 1
7960_ACEOF
7961
7962fi
7963
7964done
7965
7966
7967
7968ac_ext=cpp
7969ac_cpp='$CXXCPP $CPPFLAGS'
7970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7973if test -z "$CXX"; then
7974  if test -n "$CCC"; then
7975    CXX=$CCC
7976  else
7977    if test -n "$ac_tool_prefix"; then
7978  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7979  do
7980    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7981set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983$as_echo_n "checking for $ac_word... " >&6; }
7984if test "${ac_cv_prog_CXX+set}" = set; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  if test -n "$CXX"; then
7988  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7989else
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993  IFS=$as_save_IFS
7994  test -z "$as_dir" && as_dir=.
7995    for ac_exec_ext in '' $ac_executable_extensions; do
7996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999    break 2
8000  fi
8001done
8002  done
8003IFS=$as_save_IFS
8004
8005fi
8006fi
8007CXX=$ac_cv_prog_CXX
8008if test -n "$CXX"; then
8009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8010$as_echo "$CXX" >&6; }
8011else
8012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013$as_echo "no" >&6; }
8014fi
8015
8016
8017    test -n "$CXX" && break
8018  done
8019fi
8020if test -z "$CXX"; then
8021  ac_ct_CXX=$CXX
8022  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8023do
8024  # Extract the first word of "$ac_prog", so it can be a program name with args.
8025set dummy $ac_prog; ac_word=$2
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027$as_echo_n "checking for $ac_word... " >&6; }
8028if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8029  $as_echo_n "(cached) " >&6
8030else
8031  if test -n "$ac_ct_CXX"; then
8032  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8033else
8034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035for as_dir in $PATH
8036do
8037  IFS=$as_save_IFS
8038  test -z "$as_dir" && as_dir=.
8039    for ac_exec_ext in '' $ac_executable_extensions; do
8040  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8041    ac_cv_prog_ac_ct_CXX="$ac_prog"
8042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043    break 2
8044  fi
8045done
8046  done
8047IFS=$as_save_IFS
8048
8049fi
8050fi
8051ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8052if test -n "$ac_ct_CXX"; then
8053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8054$as_echo "$ac_ct_CXX" >&6; }
8055else
8056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057$as_echo "no" >&6; }
8058fi
8059
8060
8061  test -n "$ac_ct_CXX" && break
8062done
8063
8064  if test "x$ac_ct_CXX" = x; then
8065    CXX="g++"
8066  else
8067    case $cross_compiling:$ac_tool_warned in
8068yes:)
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8071ac_tool_warned=yes ;;
8072esac
8073    CXX=$ac_ct_CXX
8074  fi
8075fi
8076
8077  fi
8078fi
8079# Provide some information about the compiler.
8080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8081set X $ac_compile
8082ac_compiler=$2
8083for ac_option in --version -v -V -qversion; do
8084  { { ac_try="$ac_compiler $ac_option >&5"
8085case "(($ac_try" in
8086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087  *) ac_try_echo=$ac_try;;
8088esac
8089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8090$as_echo "$ac_try_echo"; } >&5
8091  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8092  ac_status=$?
8093  if test -s conftest.err; then
8094    sed '10a\
8095... rest of stderr output deleted ...
8096         10q' conftest.err >conftest.er1
8097    cat conftest.er1 >&5
8098  fi
8099  rm -f conftest.er1 conftest.err
8100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8101  test $ac_status = 0; }
8102done
8103
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8105$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8106if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h.  */
8111
8112int
8113main ()
8114{
8115#ifndef __GNUC__
8116       choke me
8117#endif
8118
8119  ;
8120  return 0;
8121}
8122_ACEOF
8123if ac_fn_cxx_try_compile "$LINENO"; then :
8124  ac_compiler_gnu=yes
8125else
8126  ac_compiler_gnu=no
8127fi
8128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8130
8131fi
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8133$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8134if test $ac_compiler_gnu = yes; then
8135  GXX=yes
8136else
8137  GXX=
8138fi
8139ac_test_CXXFLAGS=${CXXFLAGS+set}
8140ac_save_CXXFLAGS=$CXXFLAGS
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8142$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8143if test "${ac_cv_prog_cxx_g+set}" = set; then :
8144  $as_echo_n "(cached) " >&6
8145else
8146  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8147   ac_cxx_werror_flag=yes
8148   ac_cv_prog_cxx_g=no
8149   CXXFLAGS="-g"
8150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151/* end confdefs.h.  */
8152
8153int
8154main ()
8155{
8156
8157  ;
8158  return 0;
8159}
8160_ACEOF
8161if ac_fn_cxx_try_compile "$LINENO"; then :
8162  ac_cv_prog_cxx_g=yes
8163else
8164  CXXFLAGS=""
8165      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h.  */
8167
8168int
8169main ()
8170{
8171
8172  ;
8173  return 0;
8174}
8175_ACEOF
8176if ac_fn_cxx_try_compile "$LINENO"; then :
8177
8178else
8179  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8180	 CXXFLAGS="-g"
8181	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182/* end confdefs.h.  */
8183
8184int
8185main ()
8186{
8187
8188  ;
8189  return 0;
8190}
8191_ACEOF
8192if ac_fn_cxx_try_compile "$LINENO"; then :
8193  ac_cv_prog_cxx_g=yes
8194fi
8195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196fi
8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198fi
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8201fi
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8203$as_echo "$ac_cv_prog_cxx_g" >&6; }
8204if test "$ac_test_CXXFLAGS" = set; then
8205  CXXFLAGS=$ac_save_CXXFLAGS
8206elif test $ac_cv_prog_cxx_g = yes; then
8207  if test "$GXX" = yes; then
8208    CXXFLAGS="-g -O2"
8209  else
8210    CXXFLAGS="-g"
8211  fi
8212else
8213  if test "$GXX" = yes; then
8214    CXXFLAGS="$CXXFLAGS"
8215  else
8216    CXXFLAGS=
8217  fi
8218fi
8219ac_ext=c
8220ac_cpp='$CPP $CPPFLAGS'
8221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8223ac_compiler_gnu=$ac_cv_c_compiler_gnu
8224
8225depcc="$CXX"  am_compiler_list=
8226
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8228$as_echo_n "checking dependency style of $depcc... " >&6; }
8229if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8230  $as_echo_n "(cached) " >&6
8231else
8232  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8233  # We make a subdir and do the tests there.  Otherwise we can end up
8234  # making bogus files that we don't know about and never remove.  For
8235  # instance it was reported that on HP-UX the gcc test will end up
8236  # making a dummy file named `D' -- because `-MD' means `put the output
8237  # in D'.
8238  mkdir conftest.dir
8239  # Copy depcomp to subdir because otherwise we won't find it if we're
8240  # using a relative directory.
8241  cp "$am_depcomp" conftest.dir
8242  cd conftest.dir
8243  # We will build objects and dependencies in a subdirectory because
8244  # it helps to detect inapplicable dependency modes.  For instance
8245  # both Tru64's cc and ICC support -MD to output dependencies as a
8246  # side effect of compilation, but ICC will put the dependencies in
8247  # the current directory while Tru64 will put them in the object
8248  # directory.
8249  mkdir sub
8250
8251  am_cv_CXX_dependencies_compiler_type=none
8252  if test "$am_compiler_list" = ""; then
8253     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8254  fi
8255  am__universal=false
8256  case " $depcc " in #(
8257     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8258     esac
8259
8260  for depmode in $am_compiler_list; do
8261    # Setup a source with many dependencies, because some compilers
8262    # like to wrap large dependency lists on column 80 (with \), and
8263    # we should not choose a depcomp mode which is confused by this.
8264    #
8265    # We need to recreate these files for each test, as the compiler may
8266    # overwrite some of them when testing with obscure command lines.
8267    # This happens at least with the AIX C compiler.
8268    : > sub/conftest.c
8269    for i in 1 2 3 4 5 6; do
8270      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8271      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8272      # Solaris 8's {/usr,}/bin/sh.
8273      touch sub/conftst$i.h
8274    done
8275    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8276
8277    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8278    # mode.  It turns out that the SunPro C++ compiler does not properly
8279    # handle `-M -o', and we need to detect this.  Also, some Intel
8280    # versions had trouble with output in subdirs
8281    am__obj=sub/conftest.${OBJEXT-o}
8282    am__minus_obj="-o $am__obj"
8283    case $depmode in
8284    gcc)
8285      # This depmode causes a compiler race in universal mode.
8286      test "$am__universal" = false || continue
8287      ;;
8288    nosideeffect)
8289      # after this tag, mechanisms are not by side-effect, so they'll
8290      # only be used when explicitly requested
8291      if test "x$enable_dependency_tracking" = xyes; then
8292	continue
8293      else
8294	break
8295      fi
8296      ;;
8297    msvisualcpp | msvcmsys)
8298      # This compiler won't grok `-c -o', but also, the minuso test has
8299      # not run yet.  These depmodes are late enough in the game, and
8300      # so weak that their functioning should not be impacted.
8301      am__obj=conftest.${OBJEXT-o}
8302      am__minus_obj=
8303      ;;
8304    none) break ;;
8305    esac
8306    if depmode=$depmode \
8307       source=sub/conftest.c object=$am__obj \
8308       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8309       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8310         >/dev/null 2>conftest.err &&
8311       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8312       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8313       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8314       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8315      # icc doesn't choke on unknown options, it will just issue warnings
8316      # or remarks (even with -Werror).  So we grep stderr for any message
8317      # that says an option was ignored or not supported.
8318      # When given -MP, icc 7.0 and 7.1 complain thusly:
8319      #   icc: Command line warning: ignoring option '-M'; no argument required
8320      # The diagnosis changed in icc 8.0:
8321      #   icc: Command line remark: option '-MP' not supported
8322      if (grep 'ignoring option' conftest.err ||
8323          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8324        am_cv_CXX_dependencies_compiler_type=$depmode
8325        break
8326      fi
8327    fi
8328  done
8329
8330  cd ..
8331  rm -rf conftest.dir
8332else
8333  am_cv_CXX_dependencies_compiler_type=none
8334fi
8335
8336fi
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8338$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8339CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8340
8341 if
8342  test "x$enable_dependency_tracking" != xno \
8343  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8344  am__fastdepCXX_TRUE=
8345  am__fastdepCXX_FALSE='#'
8346else
8347  am__fastdepCXX_TRUE='#'
8348  am__fastdepCXX_FALSE=
8349fi
8350
8351
8352if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8353    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8354    (test "X$CXX" != "Xg++"))) ; then
8355  ac_ext=cpp
8356ac_cpp='$CXXCPP $CPPFLAGS'
8357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8361$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8362if test -z "$CXXCPP"; then
8363  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8364  $as_echo_n "(cached) " >&6
8365else
8366      # Double quotes because CXXCPP needs to be expanded
8367    for CXXCPP in "$CXX -E" "/lib/cpp"
8368    do
8369      ac_preproc_ok=false
8370for ac_cxx_preproc_warn_flag in '' yes
8371do
8372  # Use a header file that comes with gcc, so configuring glibc
8373  # with a fresh cross-compiler works.
8374  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8375  # <limits.h> exists even on freestanding compilers.
8376  # On the NeXT, cc -E runs the code through the compiler's parser,
8377  # not just through cpp. "Syntax error" is here to catch this case.
8378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379/* end confdefs.h.  */
8380#ifdef __STDC__
8381# include <limits.h>
8382#else
8383# include <assert.h>
8384#endif
8385		     Syntax error
8386_ACEOF
8387if ac_fn_cxx_try_cpp "$LINENO"; then :
8388
8389else
8390  # Broken: fails on valid input.
8391continue
8392fi
8393rm -f conftest.err conftest.$ac_ext
8394
8395  # OK, works on sane cases.  Now check whether nonexistent headers
8396  # can be detected and how.
8397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h.  */
8399#include <ac_nonexistent.h>
8400_ACEOF
8401if ac_fn_cxx_try_cpp "$LINENO"; then :
8402  # Broken: success on invalid input.
8403continue
8404else
8405  # Passes both tests.
8406ac_preproc_ok=:
8407break
8408fi
8409rm -f conftest.err conftest.$ac_ext
8410
8411done
8412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8413rm -f conftest.err conftest.$ac_ext
8414if $ac_preproc_ok; then :
8415  break
8416fi
8417
8418    done
8419    ac_cv_prog_CXXCPP=$CXXCPP
8420
8421fi
8422  CXXCPP=$ac_cv_prog_CXXCPP
8423else
8424  ac_cv_prog_CXXCPP=$CXXCPP
8425fi
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8427$as_echo "$CXXCPP" >&6; }
8428ac_preproc_ok=false
8429for ac_cxx_preproc_warn_flag in '' yes
8430do
8431  # Use a header file that comes with gcc, so configuring glibc
8432  # with a fresh cross-compiler works.
8433  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8434  # <limits.h> exists even on freestanding compilers.
8435  # On the NeXT, cc -E runs the code through the compiler's parser,
8436  # not just through cpp. "Syntax error" is here to catch this case.
8437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438/* end confdefs.h.  */
8439#ifdef __STDC__
8440# include <limits.h>
8441#else
8442# include <assert.h>
8443#endif
8444		     Syntax error
8445_ACEOF
8446if ac_fn_cxx_try_cpp "$LINENO"; then :
8447
8448else
8449  # Broken: fails on valid input.
8450continue
8451fi
8452rm -f conftest.err conftest.$ac_ext
8453
8454  # OK, works on sane cases.  Now check whether nonexistent headers
8455  # can be detected and how.
8456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h.  */
8458#include <ac_nonexistent.h>
8459_ACEOF
8460if ac_fn_cxx_try_cpp "$LINENO"; then :
8461  # Broken: success on invalid input.
8462continue
8463else
8464  # Passes both tests.
8465ac_preproc_ok=:
8466break
8467fi
8468rm -f conftest.err conftest.$ac_ext
8469
8470done
8471# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8472rm -f conftest.err conftest.$ac_ext
8473if $ac_preproc_ok; then :
8474
8475else
8476  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8478_lt_caught_CXX_error=yes; }
8479fi
8480
8481ac_ext=c
8482ac_cpp='$CPP $CPPFLAGS'
8483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8485ac_compiler_gnu=$ac_cv_c_compiler_gnu
8486
8487else
8488  _lt_caught_CXX_error=yes
8489fi
8490
8491
8492
8493
8494
8495# Set options
8496
8497
8498
8499        enable_dlopen=no
8500
8501
8502  enable_win32_dll=no
8503
8504
8505
8506  # Check whether --enable-static was given.
8507if test "${enable_static+set}" = set; then :
8508  enableval=$enable_static; p=${PACKAGE-default}
8509    case $enableval in
8510    yes) enable_static=yes ;;
8511    no) enable_static=no ;;
8512    *)
8513     enable_static=no
8514      # Look at the argument we got.  We use all the common list separators.
8515      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8516      for pkg in $enableval; do
8517	IFS="$lt_save_ifs"
8518	if test "X$pkg" = "X$p"; then
8519	  enable_static=yes
8520	fi
8521      done
8522      IFS="$lt_save_ifs"
8523      ;;
8524    esac
8525else
8526  enable_static=yes
8527fi
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538# Check whether --with-pic was given.
8539if test "${with_pic+set}" = set; then :
8540  withval=$with_pic; pic_mode="$withval"
8541else
8542  pic_mode=default
8543fi
8544
8545
8546test -z "$pic_mode" && pic_mode=default
8547
8548
8549
8550
8551
8552
8553
8554  # Check whether --enable-fast-install was given.
8555if test "${enable_fast_install+set}" = set; then :
8556  enableval=$enable_fast_install; p=${PACKAGE-default}
8557    case $enableval in
8558    yes) enable_fast_install=yes ;;
8559    no) enable_fast_install=no ;;
8560    *)
8561      enable_fast_install=no
8562      # Look at the argument we got.  We use all the common list separators.
8563      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8564      for pkg in $enableval; do
8565	IFS="$lt_save_ifs"
8566	if test "X$pkg" = "X$p"; then
8567	  enable_fast_install=yes
8568	fi
8569      done
8570      IFS="$lt_save_ifs"
8571      ;;
8572    esac
8573else
8574  enable_fast_install=yes
8575fi
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587# This can be used to rebuild libtool when needed
8588LIBTOOL_DEPS="$ltmain"
8589
8590# Always use our own libtool.
8591LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617test -z "$LN_S" && LN_S="ln -s"
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632if test -n "${ZSH_VERSION+set}" ; then
8633   setopt NO_GLOB_SUBST
8634fi
8635
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8637$as_echo_n "checking for objdir... " >&6; }
8638if test "${lt_cv_objdir+set}" = set; then :
8639  $as_echo_n "(cached) " >&6
8640else
8641  rm -f .libs 2>/dev/null
8642mkdir .libs 2>/dev/null
8643if test -d .libs; then
8644  lt_cv_objdir=.libs
8645else
8646  # MS-DOS does not allow filenames that begin with a dot.
8647  lt_cv_objdir=_libs
8648fi
8649rmdir .libs 2>/dev/null
8650fi
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8652$as_echo "$lt_cv_objdir" >&6; }
8653objdir=$lt_cv_objdir
8654
8655
8656
8657
8658
8659cat >>confdefs.h <<_ACEOF
8660#define LT_OBJDIR "$lt_cv_objdir/"
8661_ACEOF
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679case $host_os in
8680aix3*)
8681  # AIX sometimes has problems with the GCC collect2 program.  For some
8682  # reason, if we set the COLLECT_NAMES environment variable, the problems
8683  # vanish in a puff of smoke.
8684  if test "X${COLLECT_NAMES+set}" != Xset; then
8685    COLLECT_NAMES=
8686    export COLLECT_NAMES
8687  fi
8688  ;;
8689esac
8690
8691# Sed substitution that helps us do robust quoting.  It backslashifies
8692# metacharacters that are still active within double-quoted strings.
8693sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8694
8695# Same as above, but do not quote variable references.
8696double_quote_subst='s/\(["`\\]\)/\\\1/g'
8697
8698# Sed substitution to delay expansion of an escaped shell variable in a
8699# double_quote_subst'ed string.
8700delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8701
8702# Sed substitution to delay expansion of an escaped single quote.
8703delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8704
8705# Sed substitution to avoid accidental globbing in evaled expressions
8706no_glob_subst='s/\*/\\\*/g'
8707
8708# Global variables:
8709ofile=libtool
8710can_build_shared=yes
8711
8712# All known linkers require a `.a' archive for static linking (except MSVC,
8713# which needs '.lib').
8714libext=a
8715
8716with_gnu_ld="$lt_cv_prog_gnu_ld"
8717
8718old_CC="$CC"
8719old_CFLAGS="$CFLAGS"
8720
8721# Set sane defaults for various variables
8722test -z "$CC" && CC=cc
8723test -z "$LTCC" && LTCC=$CC
8724test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8725test -z "$LD" && LD=ld
8726test -z "$ac_objext" && ac_objext=o
8727
8728for cc_temp in $compiler""; do
8729  case $cc_temp in
8730    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8731    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8732    \-*) ;;
8733    *) break;;
8734  esac
8735done
8736cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8737
8738
8739# Only perform the check for file, if the check method requires it
8740test -z "$MAGIC_CMD" && MAGIC_CMD=file
8741case $deplibs_check_method in
8742file_magic*)
8743  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8745$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8746if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8747  $as_echo_n "(cached) " >&6
8748else
8749  case $MAGIC_CMD in
8750[\\/*] |  ?:[\\/]*)
8751  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8752  ;;
8753*)
8754  lt_save_MAGIC_CMD="$MAGIC_CMD"
8755  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8756  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8757  for ac_dir in $ac_dummy; do
8758    IFS="$lt_save_ifs"
8759    test -z "$ac_dir" && ac_dir=.
8760    if test -f $ac_dir/${ac_tool_prefix}file; then
8761      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8762      if test -n "$file_magic_test_file"; then
8763	case $deplibs_check_method in
8764	"file_magic "*)
8765	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8766	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8767	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8768	    $EGREP "$file_magic_regex" > /dev/null; then
8769	    :
8770	  else
8771	    cat <<_LT_EOF 1>&2
8772
8773*** Warning: the command libtool uses to detect shared libraries,
8774*** $file_magic_cmd, produces output that libtool cannot recognize.
8775*** The result is that libtool may fail to recognize shared libraries
8776*** as such.  This will affect the creation of libtool libraries that
8777*** depend on shared libraries, but programs linked with such libtool
8778*** libraries will work regardless of this problem.  Nevertheless, you
8779*** may want to report the problem to your system manager and/or to
8780*** bug-libtool@gnu.org
8781
8782_LT_EOF
8783	  fi ;;
8784	esac
8785      fi
8786      break
8787    fi
8788  done
8789  IFS="$lt_save_ifs"
8790  MAGIC_CMD="$lt_save_MAGIC_CMD"
8791  ;;
8792esac
8793fi
8794
8795MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8796if test -n "$MAGIC_CMD"; then
8797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8798$as_echo "$MAGIC_CMD" >&6; }
8799else
8800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801$as_echo "no" >&6; }
8802fi
8803
8804
8805
8806
8807
8808if test -z "$lt_cv_path_MAGIC_CMD"; then
8809  if test -n "$ac_tool_prefix"; then
8810    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8811$as_echo_n "checking for file... " >&6; }
8812if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8813  $as_echo_n "(cached) " >&6
8814else
8815  case $MAGIC_CMD in
8816[\\/*] |  ?:[\\/]*)
8817  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8818  ;;
8819*)
8820  lt_save_MAGIC_CMD="$MAGIC_CMD"
8821  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8822  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8823  for ac_dir in $ac_dummy; do
8824    IFS="$lt_save_ifs"
8825    test -z "$ac_dir" && ac_dir=.
8826    if test -f $ac_dir/file; then
8827      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8828      if test -n "$file_magic_test_file"; then
8829	case $deplibs_check_method in
8830	"file_magic "*)
8831	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8832	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8833	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8834	    $EGREP "$file_magic_regex" > /dev/null; then
8835	    :
8836	  else
8837	    cat <<_LT_EOF 1>&2
8838
8839*** Warning: the command libtool uses to detect shared libraries,
8840*** $file_magic_cmd, produces output that libtool cannot recognize.
8841*** The result is that libtool may fail to recognize shared libraries
8842*** as such.  This will affect the creation of libtool libraries that
8843*** depend on shared libraries, but programs linked with such libtool
8844*** libraries will work regardless of this problem.  Nevertheless, you
8845*** may want to report the problem to your system manager and/or to
8846*** bug-libtool@gnu.org
8847
8848_LT_EOF
8849	  fi ;;
8850	esac
8851      fi
8852      break
8853    fi
8854  done
8855  IFS="$lt_save_ifs"
8856  MAGIC_CMD="$lt_save_MAGIC_CMD"
8857  ;;
8858esac
8859fi
8860
8861MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8862if test -n "$MAGIC_CMD"; then
8863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8864$as_echo "$MAGIC_CMD" >&6; }
8865else
8866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867$as_echo "no" >&6; }
8868fi
8869
8870
8871  else
8872    MAGIC_CMD=:
8873  fi
8874fi
8875
8876  fi
8877  ;;
8878esac
8879
8880# Use C for the default configuration in the libtool script
8881
8882lt_save_CC="$CC"
8883ac_ext=c
8884ac_cpp='$CPP $CPPFLAGS'
8885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8887ac_compiler_gnu=$ac_cv_c_compiler_gnu
8888
8889
8890# Source file extension for C test sources.
8891ac_ext=c
8892
8893# Object file extension for compiled C test sources.
8894objext=o
8895objext=$objext
8896
8897# Code to be used in simple compile tests
8898lt_simple_compile_test_code="int some_variable = 0;"
8899
8900# Code to be used in simple link tests
8901lt_simple_link_test_code='int main(){return(0);}'
8902
8903
8904
8905
8906
8907
8908
8909# If no C compiler was specified, use CC.
8910LTCC=${LTCC-"$CC"}
8911
8912# If no C compiler flags were specified, use CFLAGS.
8913LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8914
8915# Allow CC to be a program name with arguments.
8916compiler=$CC
8917
8918# Save the default compiler, since it gets overwritten when the other
8919# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8920compiler_DEFAULT=$CC
8921
8922# save warnings/boilerplate of simple test code
8923ac_outfile=conftest.$ac_objext
8924echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8925eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8926_lt_compiler_boilerplate=`cat conftest.err`
8927$RM conftest*
8928
8929ac_outfile=conftest.$ac_objext
8930echo "$lt_simple_link_test_code" >conftest.$ac_ext
8931eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8932_lt_linker_boilerplate=`cat conftest.err`
8933$RM -r conftest*
8934
8935
8936if test -n "$compiler"; then
8937
8938lt_prog_compiler_no_builtin_flag=
8939
8940if test "$GCC" = yes; then
8941  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8942
8943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8944$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8945if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8946  $as_echo_n "(cached) " >&6
8947else
8948  lt_cv_prog_compiler_rtti_exceptions=no
8949   ac_outfile=conftest.$ac_objext
8950   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8951   lt_compiler_flag="-fno-rtti -fno-exceptions"
8952   # Insert the option either (1) after the last *FLAGS variable, or
8953   # (2) before a word containing "conftest.", or (3) at the end.
8954   # Note that $ac_compile itself does not contain backslashes and begins
8955   # with a dollar sign (not a hyphen), so the echo should work correctly.
8956   # The option is referenced via a variable to avoid confusing sed.
8957   lt_compile=`echo "$ac_compile" | $SED \
8958   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8959   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8960   -e 's:$: $lt_compiler_flag:'`
8961   (eval echo "\"\$as_me:8961: $lt_compile\"" >&5)
8962   (eval "$lt_compile" 2>conftest.err)
8963   ac_status=$?
8964   cat conftest.err >&5
8965   echo "$as_me:8965: \$? = $ac_status" >&5
8966   if (exit $ac_status) && test -s "$ac_outfile"; then
8967     # The compiler can only warn and ignore the option if not recognized
8968     # So say no if there are warnings other than the usual output.
8969     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8970     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8971     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8972       lt_cv_prog_compiler_rtti_exceptions=yes
8973     fi
8974   fi
8975   $RM conftest*
8976
8977fi
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8979$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8980
8981if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8982    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8983else
8984    :
8985fi
8986
8987fi
8988
8989
8990
8991
8992
8993
8994  lt_prog_compiler_wl=
8995lt_prog_compiler_pic=
8996lt_prog_compiler_static=
8997
8998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8999$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9000
9001  if test "$GCC" = yes; then
9002    lt_prog_compiler_wl='-Wl,'
9003    lt_prog_compiler_static='-static'
9004
9005    case $host_os in
9006      aix*)
9007      # All AIX code is PIC.
9008      if test "$host_cpu" = ia64; then
9009	# AIX 5 now supports IA64 processor
9010	lt_prog_compiler_static='-Bstatic'
9011      fi
9012      ;;
9013
9014    amigaos*)
9015      case $host_cpu in
9016      powerpc)
9017            # see comment about AmigaOS4 .so support
9018            lt_prog_compiler_pic='-fPIC'
9019        ;;
9020      m68k)
9021            # FIXME: we need at least 68020 code to build shared libraries, but
9022            # adding the `-m68020' flag to GCC prevents building anything better,
9023            # like `-m68040'.
9024            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9025        ;;
9026      esac
9027      ;;
9028
9029    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9030      # PIC is the default for these OSes.
9031      ;;
9032
9033    mingw* | cygwin* | pw32* | os2* | cegcc*)
9034      # This hack is so that the source file can tell whether it is being
9035      # built for inclusion in a dll (and should export symbols for example).
9036      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9037      # (--disable-auto-import) libraries
9038      lt_prog_compiler_pic='-DDLL_EXPORT'
9039      ;;
9040
9041    darwin* | rhapsody*)
9042      # PIC is the default on this platform
9043      # Common symbols not allowed in MH_DYLIB files
9044      lt_prog_compiler_pic='-fno-common'
9045      ;;
9046
9047    hpux*)
9048      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9049      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9050      # sets the default TLS model and affects inlining.
9051      case $host_cpu in
9052      hppa*64*)
9053	# +Z the default
9054	;;
9055      *)
9056	lt_prog_compiler_pic='-fPIC'
9057	;;
9058      esac
9059      ;;
9060
9061    interix[3-9]*)
9062      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9063      # Instead, we relocate shared libraries at runtime.
9064      ;;
9065
9066    msdosdjgpp*)
9067      # Just because we use GCC doesn't mean we suddenly get shared libraries
9068      # on systems that don't support them.
9069      lt_prog_compiler_can_build_shared=no
9070      enable_shared=no
9071      ;;
9072
9073    *nto* | *qnx*)
9074      # QNX uses GNU C++, but need to define -shared option too, otherwise
9075      # it will coredump.
9076      lt_prog_compiler_pic='-fPIC -shared'
9077      ;;
9078
9079    sysv4*MP*)
9080      if test -d /usr/nec; then
9081	lt_prog_compiler_pic=-Kconform_pic
9082      fi
9083      ;;
9084
9085    *)
9086      lt_prog_compiler_pic='-fPIC'
9087      ;;
9088    esac
9089  else
9090    # PORTME Check for flag to pass linker flags through the system compiler.
9091    case $host_os in
9092    aix*)
9093      lt_prog_compiler_wl='-Wl,'
9094      if test "$host_cpu" = ia64; then
9095	# AIX 5 now supports IA64 processor
9096	lt_prog_compiler_static='-Bstatic'
9097      else
9098	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9099      fi
9100      ;;
9101
9102    mingw* | cygwin* | pw32* | os2* | cegcc*)
9103      # This hack is so that the source file can tell whether it is being
9104      # built for inclusion in a dll (and should export symbols for example).
9105      lt_prog_compiler_pic='-DDLL_EXPORT'
9106      ;;
9107
9108    hpux9* | hpux10* | hpux11*)
9109      lt_prog_compiler_wl='-Wl,'
9110      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9111      # not for PA HP-UX.
9112      case $host_cpu in
9113      hppa*64*|ia64*)
9114	# +Z the default
9115	;;
9116      *)
9117	lt_prog_compiler_pic='+Z'
9118	;;
9119      esac
9120      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9121      lt_prog_compiler_static='${wl}-a ${wl}archive'
9122      ;;
9123
9124    irix5* | irix6* | nonstopux*)
9125      lt_prog_compiler_wl='-Wl,'
9126      # PIC (with -KPIC) is the default.
9127      lt_prog_compiler_static='-non_shared'
9128      ;;
9129
9130    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9131      case $cc_basename in
9132      # old Intel for x86_64 which still supported -KPIC.
9133      ecc*)
9134	lt_prog_compiler_wl='-Wl,'
9135	lt_prog_compiler_pic='-KPIC'
9136	lt_prog_compiler_static='-static'
9137        ;;
9138      # icc used to be incompatible with GCC.
9139      # ICC 10 doesn't accept -KPIC any more.
9140      icc* | ifort*)
9141	lt_prog_compiler_wl='-Wl,'
9142	lt_prog_compiler_pic='-fPIC'
9143	lt_prog_compiler_static='-static'
9144        ;;
9145      # Lahey Fortran 8.1.
9146      lf95*)
9147	lt_prog_compiler_wl='-Wl,'
9148	lt_prog_compiler_pic='--shared'
9149	lt_prog_compiler_static='--static'
9150	;;
9151      pgcc* | pgf77* | pgf90* | pgf95*)
9152        # Portland Group compilers (*not* the Pentium gcc compiler,
9153	# which looks to be a dead project)
9154	lt_prog_compiler_wl='-Wl,'
9155	lt_prog_compiler_pic='-fpic'
9156	lt_prog_compiler_static='-Bstatic'
9157        ;;
9158      ccc*)
9159        lt_prog_compiler_wl='-Wl,'
9160        # All Alpha code is PIC.
9161        lt_prog_compiler_static='-non_shared'
9162        ;;
9163      xl*)
9164	# IBM XL C 8.0/Fortran 10.1 on PPC
9165	lt_prog_compiler_wl='-Wl,'
9166	lt_prog_compiler_pic='-qpic'
9167	lt_prog_compiler_static='-qstaticlink'
9168	;;
9169      *)
9170	case `$CC -V 2>&1 | sed 5q` in
9171	*Sun\ C*)
9172	  # Sun C 5.9
9173	  lt_prog_compiler_pic='-KPIC'
9174	  lt_prog_compiler_static='-Bstatic'
9175	  lt_prog_compiler_wl='-Wl,'
9176	  ;;
9177	*Sun\ F*)
9178	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9179	  lt_prog_compiler_pic='-KPIC'
9180	  lt_prog_compiler_static='-Bstatic'
9181	  lt_prog_compiler_wl=''
9182	  ;;
9183	esac
9184	;;
9185      esac
9186      ;;
9187
9188    newsos6)
9189      lt_prog_compiler_pic='-KPIC'
9190      lt_prog_compiler_static='-Bstatic'
9191      ;;
9192
9193    *nto* | *qnx*)
9194      # QNX uses GNU C++, but need to define -shared option too, otherwise
9195      # it will coredump.
9196      lt_prog_compiler_pic='-fPIC -shared'
9197      ;;
9198
9199    osf3* | osf4* | osf5*)
9200      lt_prog_compiler_wl='-Wl,'
9201      # All OSF/1 code is PIC.
9202      lt_prog_compiler_static='-non_shared'
9203      ;;
9204
9205    rdos*)
9206      lt_prog_compiler_static='-non_shared'
9207      ;;
9208
9209    solaris*)
9210      lt_prog_compiler_pic='-KPIC'
9211      lt_prog_compiler_static='-Bstatic'
9212      case $cc_basename in
9213      f77* | f90* | f95*)
9214	lt_prog_compiler_wl='-Qoption ld ';;
9215      *)
9216	lt_prog_compiler_wl='-Wl,';;
9217      esac
9218      ;;
9219
9220    sunos4*)
9221      lt_prog_compiler_wl='-Qoption ld '
9222      lt_prog_compiler_pic='-PIC'
9223      lt_prog_compiler_static='-Bstatic'
9224      ;;
9225
9226    sysv4 | sysv4.2uw2* | sysv4.3*)
9227      lt_prog_compiler_wl='-Wl,'
9228      lt_prog_compiler_pic='-KPIC'
9229      lt_prog_compiler_static='-Bstatic'
9230      ;;
9231
9232    sysv4*MP*)
9233      if test -d /usr/nec ;then
9234	lt_prog_compiler_pic='-Kconform_pic'
9235	lt_prog_compiler_static='-Bstatic'
9236      fi
9237      ;;
9238
9239    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9240      lt_prog_compiler_wl='-Wl,'
9241      lt_prog_compiler_pic='-KPIC'
9242      lt_prog_compiler_static='-Bstatic'
9243      ;;
9244
9245    unicos*)
9246      lt_prog_compiler_wl='-Wl,'
9247      lt_prog_compiler_can_build_shared=no
9248      ;;
9249
9250    uts4*)
9251      lt_prog_compiler_pic='-pic'
9252      lt_prog_compiler_static='-Bstatic'
9253      ;;
9254
9255    *)
9256      lt_prog_compiler_can_build_shared=no
9257      ;;
9258    esac
9259  fi
9260
9261case $host_os in
9262  # For platforms which do not support PIC, -DPIC is meaningless:
9263  *djgpp*)
9264    lt_prog_compiler_pic=
9265    ;;
9266  *)
9267    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9268    ;;
9269esac
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9271$as_echo "$lt_prog_compiler_pic" >&6; }
9272
9273
9274
9275
9276
9277
9278#
9279# Check to make sure the PIC flag actually works.
9280#
9281if test -n "$lt_prog_compiler_pic"; then
9282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9283$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9284if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9285  $as_echo_n "(cached) " >&6
9286else
9287  lt_cv_prog_compiler_pic_works=no
9288   ac_outfile=conftest.$ac_objext
9289   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9290   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9291   # Insert the option either (1) after the last *FLAGS variable, or
9292   # (2) before a word containing "conftest.", or (3) at the end.
9293   # Note that $ac_compile itself does not contain backslashes and begins
9294   # with a dollar sign (not a hyphen), so the echo should work correctly.
9295   # The option is referenced via a variable to avoid confusing sed.
9296   lt_compile=`echo "$ac_compile" | $SED \
9297   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9298   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9299   -e 's:$: $lt_compiler_flag:'`
9300   (eval echo "\"\$as_me:9300: $lt_compile\"" >&5)
9301   (eval "$lt_compile" 2>conftest.err)
9302   ac_status=$?
9303   cat conftest.err >&5
9304   echo "$as_me:9304: \$? = $ac_status" >&5
9305   if (exit $ac_status) && test -s "$ac_outfile"; then
9306     # The compiler can only warn and ignore the option if not recognized
9307     # So say no if there are warnings other than the usual output.
9308     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9309     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9310     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9311       lt_cv_prog_compiler_pic_works=yes
9312     fi
9313   fi
9314   $RM conftest*
9315
9316fi
9317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9318$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9319
9320if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9321    case $lt_prog_compiler_pic in
9322     "" | " "*) ;;
9323     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9324     esac
9325else
9326    lt_prog_compiler_pic=
9327     lt_prog_compiler_can_build_shared=no
9328fi
9329
9330fi
9331
9332
9333
9334
9335
9336
9337#
9338# Check to make sure the static flag actually works.
9339#
9340wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9342$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9343if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9344  $as_echo_n "(cached) " >&6
9345else
9346  lt_cv_prog_compiler_static_works=no
9347   save_LDFLAGS="$LDFLAGS"
9348   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9349   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9350   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9351     # The linker can only warn and ignore the option if not recognized
9352     # So say no if there are warnings
9353     if test -s conftest.err; then
9354       # Append any errors to the config.log.
9355       cat conftest.err 1>&5
9356       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9357       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9358       if diff conftest.exp conftest.er2 >/dev/null; then
9359         lt_cv_prog_compiler_static_works=yes
9360       fi
9361     else
9362       lt_cv_prog_compiler_static_works=yes
9363     fi
9364   fi
9365   $RM -r conftest*
9366   LDFLAGS="$save_LDFLAGS"
9367
9368fi
9369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9370$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9371
9372if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9373    :
9374else
9375    lt_prog_compiler_static=
9376fi
9377
9378
9379
9380
9381
9382
9383
9384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9385$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9386if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9387  $as_echo_n "(cached) " >&6
9388else
9389  lt_cv_prog_compiler_c_o=no
9390   $RM -r conftest 2>/dev/null
9391   mkdir conftest
9392   cd conftest
9393   mkdir out
9394   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9395
9396   lt_compiler_flag="-o out/conftest2.$ac_objext"
9397   # Insert the option either (1) after the last *FLAGS variable, or
9398   # (2) before a word containing "conftest.", or (3) at the end.
9399   # Note that $ac_compile itself does not contain backslashes and begins
9400   # with a dollar sign (not a hyphen), so the echo should work correctly.
9401   lt_compile=`echo "$ac_compile" | $SED \
9402   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9403   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9404   -e 's:$: $lt_compiler_flag:'`
9405   (eval echo "\"\$as_me:9405: $lt_compile\"" >&5)
9406   (eval "$lt_compile" 2>out/conftest.err)
9407   ac_status=$?
9408   cat out/conftest.err >&5
9409   echo "$as_me:9409: \$? = $ac_status" >&5
9410   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9411   then
9412     # The compiler can only warn and ignore the option if not recognized
9413     # So say no if there are warnings
9414     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9415     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9416     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9417       lt_cv_prog_compiler_c_o=yes
9418     fi
9419   fi
9420   chmod u+w . 2>&5
9421   $RM conftest*
9422   # SGI C++ compiler will create directory out/ii_files/ for
9423   # template instantiation
9424   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9425   $RM out/* && rmdir out
9426   cd ..
9427   $RM -r conftest
9428   $RM conftest*
9429
9430fi
9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9432$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9433
9434
9435
9436
9437
9438
9439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9440$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9441if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9442  $as_echo_n "(cached) " >&6
9443else
9444  lt_cv_prog_compiler_c_o=no
9445   $RM -r conftest 2>/dev/null
9446   mkdir conftest
9447   cd conftest
9448   mkdir out
9449   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9450
9451   lt_compiler_flag="-o out/conftest2.$ac_objext"
9452   # Insert the option either (1) after the last *FLAGS variable, or
9453   # (2) before a word containing "conftest.", or (3) at the end.
9454   # Note that $ac_compile itself does not contain backslashes and begins
9455   # with a dollar sign (not a hyphen), so the echo should work correctly.
9456   lt_compile=`echo "$ac_compile" | $SED \
9457   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9458   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9459   -e 's:$: $lt_compiler_flag:'`
9460   (eval echo "\"\$as_me:9460: $lt_compile\"" >&5)
9461   (eval "$lt_compile" 2>out/conftest.err)
9462   ac_status=$?
9463   cat out/conftest.err >&5
9464   echo "$as_me:9464: \$? = $ac_status" >&5
9465   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9466   then
9467     # The compiler can only warn and ignore the option if not recognized
9468     # So say no if there are warnings
9469     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9470     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9471     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9472       lt_cv_prog_compiler_c_o=yes
9473     fi
9474   fi
9475   chmod u+w . 2>&5
9476   $RM conftest*
9477   # SGI C++ compiler will create directory out/ii_files/ for
9478   # template instantiation
9479   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9480   $RM out/* && rmdir out
9481   cd ..
9482   $RM -r conftest
9483   $RM conftest*
9484
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9487$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9488
9489
9490
9491
9492hard_links="nottested"
9493if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9494  # do not overwrite the value of need_locks provided by the user
9495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9496$as_echo_n "checking if we can lock with hard links... " >&6; }
9497  hard_links=yes
9498  $RM conftest*
9499  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9500  touch conftest.a
9501  ln conftest.a conftest.b 2>&5 || hard_links=no
9502  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9504$as_echo "$hard_links" >&6; }
9505  if test "$hard_links" = no; then
9506    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9507$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9508    need_locks=warn
9509  fi
9510else
9511  need_locks=no
9512fi
9513
9514
9515
9516
9517
9518
9519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9520$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9521
9522  runpath_var=
9523  allow_undefined_flag=
9524  always_export_symbols=no
9525  archive_cmds=
9526  archive_expsym_cmds=
9527  compiler_needs_object=no
9528  enable_shared_with_static_runtimes=no
9529  export_dynamic_flag_spec=
9530  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9531  hardcode_automatic=no
9532  hardcode_direct=no
9533  hardcode_direct_absolute=no
9534  hardcode_libdir_flag_spec=
9535  hardcode_libdir_flag_spec_ld=
9536  hardcode_libdir_separator=
9537  hardcode_minus_L=no
9538  hardcode_shlibpath_var=unsupported
9539  inherit_rpath=no
9540  link_all_deplibs=unknown
9541  module_cmds=
9542  module_expsym_cmds=
9543  old_archive_from_new_cmds=
9544  old_archive_from_expsyms_cmds=
9545  thread_safe_flag_spec=
9546  whole_archive_flag_spec=
9547  # include_expsyms should be a list of space-separated symbols to be *always*
9548  # included in the symbol list
9549  include_expsyms=
9550  # exclude_expsyms can be an extended regexp of symbols to exclude
9551  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9552  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9553  # as well as any symbol that contains `d'.
9554  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9555  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9556  # platforms (ab)use it in PIC code, but their linkers get confused if
9557  # the symbol is explicitly referenced.  Since portable code cannot
9558  # rely on this symbol name, it's probably fine to never include it in
9559  # preloaded symbol tables.
9560  # Exclude shared library initialization/finalization symbols.
9561  extract_expsyms_cmds=
9562
9563  case $host_os in
9564  cygwin* | mingw* | pw32* | cegcc*)
9565    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9566    # When not using gcc, we currently assume that we are using
9567    # Microsoft Visual C++.
9568    if test "$GCC" != yes; then
9569      with_gnu_ld=no
9570    fi
9571    ;;
9572  interix*)
9573    # we just hope/assume this is gcc and not c89 (= MSVC++)
9574    with_gnu_ld=yes
9575    ;;
9576  openbsd*)
9577    with_gnu_ld=no
9578    ;;
9579  linux* | k*bsd*-gnu)
9580    link_all_deplibs=no
9581    ;;
9582  esac
9583
9584  ld_shlibs=yes
9585  if test "$with_gnu_ld" = yes; then
9586    # If archive_cmds runs LD, not CC, wlarc should be empty
9587    wlarc='${wl}'
9588
9589    # Set some defaults for GNU ld with shared library support. These
9590    # are reset later if shared libraries are not supported. Putting them
9591    # here allows them to be overridden if necessary.
9592    runpath_var=LD_RUN_PATH
9593    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9594    export_dynamic_flag_spec='${wl}--export-dynamic'
9595    # ancient GNU ld didn't support --whole-archive et. al.
9596    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9597      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9598    else
9599      whole_archive_flag_spec=
9600    fi
9601    supports_anon_versioning=no
9602    case `$LD -v 2>&1` in
9603      *GNU\ gold*) supports_anon_versioning=yes ;;
9604      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9605      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9606      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9607      *\ 2.11.*) ;; # other 2.11 versions
9608      *) supports_anon_versioning=yes ;;
9609    esac
9610
9611    # See if GNU ld supports shared libraries.
9612    case $host_os in
9613    aix[3-9]*)
9614      # On AIX/PPC, the GNU linker is very broken
9615      if test "$host_cpu" != ia64; then
9616	ld_shlibs=no
9617	cat <<_LT_EOF 1>&2
9618
9619*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9620*** to be unable to reliably create shared libraries on AIX.
9621*** Therefore, libtool is disabling shared libraries support.  If you
9622*** really care for shared libraries, you may want to modify your PATH
9623*** so that a non-GNU linker is found, and then restart.
9624
9625_LT_EOF
9626      fi
9627      ;;
9628
9629    amigaos*)
9630      case $host_cpu in
9631      powerpc)
9632            # see comment about AmigaOS4 .so support
9633            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9634            archive_expsym_cmds=''
9635        ;;
9636      m68k)
9637            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)'
9638            hardcode_libdir_flag_spec='-L$libdir'
9639            hardcode_minus_L=yes
9640        ;;
9641      esac
9642      ;;
9643
9644    beos*)
9645      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9646	allow_undefined_flag=unsupported
9647	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9648	# support --undefined.  This deserves some investigation.  FIXME
9649	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650      else
9651	ld_shlibs=no
9652      fi
9653      ;;
9654
9655    cygwin* | mingw* | pw32* | cegcc*)
9656      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9657      # as there is no search path for DLLs.
9658      hardcode_libdir_flag_spec='-L$libdir'
9659      allow_undefined_flag=unsupported
9660      always_export_symbols=no
9661      enable_shared_with_static_runtimes=yes
9662      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9663
9664      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9665        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9666	# If the export-symbols file already is a .def file (1st line
9667	# is EXPORTS), use it as is; otherwise, prepend...
9668	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9669	  cp $export_symbols $output_objdir/$soname.def;
9670	else
9671	  echo EXPORTS > $output_objdir/$soname.def;
9672	  cat $export_symbols >> $output_objdir/$soname.def;
9673	fi~
9674	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9675      else
9676	ld_shlibs=no
9677      fi
9678      ;;
9679
9680    interix[3-9]*)
9681      hardcode_direct=no
9682      hardcode_shlibpath_var=no
9683      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9684      export_dynamic_flag_spec='${wl}-E'
9685      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9686      # Instead, shared libraries are loaded at an image base (0x10000000 by
9687      # default) and relocated if they conflict, which is a slow very memory
9688      # consuming and fragmenting process.  To avoid this, we pick a random,
9689      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9690      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9691      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9692      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'
9693      ;;
9694
9695    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9696      tmp_diet=no
9697      if test "$host_os" = linux-dietlibc; then
9698	case $cc_basename in
9699	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9700	esac
9701      fi
9702      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9703	 && test "$tmp_diet" = no
9704      then
9705	tmp_addflag=
9706	tmp_sharedflag='-shared'
9707	case $cc_basename,$host_cpu in
9708        pgcc*)				# Portland Group C compiler
9709	  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'
9710	  tmp_addflag=' $pic_flag'
9711	  ;;
9712	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9713	  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'
9714	  tmp_addflag=' $pic_flag -Mnomain' ;;
9715	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9716	  tmp_addflag=' -i_dynamic' ;;
9717	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9718	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9719	ifc* | ifort*)			# Intel Fortran compiler
9720	  tmp_addflag=' -nofor_main' ;;
9721	lf95*)				# Lahey Fortran 8.1
9722	  whole_archive_flag_spec=
9723	  tmp_sharedflag='--shared' ;;
9724	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9725	  tmp_sharedflag='-qmkshrobj'
9726	  tmp_addflag= ;;
9727	esac
9728	case `$CC -V 2>&1 | sed 5q` in
9729	*Sun\ C*)			# Sun C 5.9
9730	  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'
9731	  compiler_needs_object=yes
9732	  tmp_sharedflag='-G' ;;
9733	*Sun\ F*)			# Sun Fortran 8.3
9734	  tmp_sharedflag='-G' ;;
9735	esac
9736	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9737
9738        if test "x$supports_anon_versioning" = xyes; then
9739          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9740	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9741	    echo "local: *; };" >> $output_objdir/$libname.ver~
9742	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9743        fi
9744
9745	case $cc_basename in
9746	xlf*)
9747	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9748	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9749	  hardcode_libdir_flag_spec=
9750	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9751	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9752	  if test "x$supports_anon_versioning" = xyes; then
9753	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9754	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9755	      echo "local: *; };" >> $output_objdir/$libname.ver~
9756	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9757	  fi
9758	  ;;
9759	esac
9760      else
9761        ld_shlibs=no
9762      fi
9763      ;;
9764
9765    netbsd* | netbsdelf*-gnu)
9766      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9767	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9768	wlarc=
9769      else
9770	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9771	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9772      fi
9773      ;;
9774
9775    solaris*)
9776      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9777	ld_shlibs=no
9778	cat <<_LT_EOF 1>&2
9779
9780*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9781*** create shared libraries on Solaris systems.  Therefore, libtool
9782*** is disabling shared libraries support.  We urge you to upgrade GNU
9783*** binutils to release 2.9.1 or newer.  Another option is to modify
9784*** your PATH or compiler configuration so that the native linker is
9785*** used, and then restart.
9786
9787_LT_EOF
9788      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9789	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9791      else
9792	ld_shlibs=no
9793      fi
9794      ;;
9795
9796    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9797      case `$LD -v 2>&1` in
9798        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9799	ld_shlibs=no
9800	cat <<_LT_EOF 1>&2
9801
9802*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9803*** reliably create shared libraries on SCO systems.  Therefore, libtool
9804*** is disabling shared libraries support.  We urge you to upgrade GNU
9805*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9806*** your PATH or compiler configuration so that the native linker is
9807*** used, and then restart.
9808
9809_LT_EOF
9810	;;
9811	*)
9812	  # For security reasons, it is highly recommended that you always
9813	  # use absolute paths for naming shared libraries, and exclude the
9814	  # DT_RUNPATH tag from executables and libraries.  But doing so
9815	  # requires that you compile everything twice, which is a pain.
9816	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9817	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9818	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9819	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9820	  else
9821	    ld_shlibs=no
9822	  fi
9823	;;
9824      esac
9825      ;;
9826
9827    sunos4*)
9828      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9829      wlarc=
9830      hardcode_direct=yes
9831      hardcode_shlibpath_var=no
9832      ;;
9833
9834    *)
9835      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9836	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9838      else
9839	ld_shlibs=no
9840      fi
9841      ;;
9842    esac
9843
9844    if test "$ld_shlibs" = no; then
9845      runpath_var=
9846      hardcode_libdir_flag_spec=
9847      export_dynamic_flag_spec=
9848      whole_archive_flag_spec=
9849    fi
9850  else
9851    # PORTME fill in a description of your system's linker (not GNU ld)
9852    case $host_os in
9853    aix3*)
9854      allow_undefined_flag=unsupported
9855      always_export_symbols=yes
9856      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'
9857      # Note: this linker hardcodes the directories in LIBPATH if there
9858      # are no directories specified by -L.
9859      hardcode_minus_L=yes
9860      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9861	# Neither direct hardcoding nor static linking is supported with a
9862	# broken collect2.
9863	hardcode_direct=unsupported
9864      fi
9865      ;;
9866
9867    aix[4-9]*)
9868      if test "$host_cpu" = ia64; then
9869	# On IA64, the linker does run time linking by default, so we don't
9870	# have to do anything special.
9871	aix_use_runtimelinking=no
9872	exp_sym_flag='-Bexport'
9873	no_entry_flag=""
9874      else
9875	# If we're using GNU nm, then we don't want the "-C" option.
9876	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9877	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9878	  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'
9879	else
9880	  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'
9881	fi
9882	aix_use_runtimelinking=no
9883
9884	# Test if we are trying to use run time linking or normal
9885	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9886	# need to do runtime linking.
9887	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9888	  for ld_flag in $LDFLAGS; do
9889	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9890	    aix_use_runtimelinking=yes
9891	    break
9892	  fi
9893	  done
9894	  ;;
9895	esac
9896
9897	exp_sym_flag='-bexport'
9898	no_entry_flag='-bnoentry'
9899      fi
9900
9901      # When large executables or shared objects are built, AIX ld can
9902      # have problems creating the table of contents.  If linking a library
9903      # or program results in "error TOC overflow" add -mminimal-toc to
9904      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9905      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9906
9907      archive_cmds=''
9908      hardcode_direct=yes
9909      hardcode_direct_absolute=yes
9910      hardcode_libdir_separator=':'
9911      link_all_deplibs=yes
9912      file_list_spec='${wl}-f,'
9913
9914      if test "$GCC" = yes; then
9915	case $host_os in aix4.[012]|aix4.[012].*)
9916	# We only want to do this on AIX 4.2 and lower, the check
9917	# below for broken collect2 doesn't work under 4.3+
9918	  collect2name=`${CC} -print-prog-name=collect2`
9919	  if test -f "$collect2name" &&
9920	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9921	  then
9922	  # We have reworked collect2
9923	  :
9924	  else
9925	  # We have old collect2
9926	  hardcode_direct=unsupported
9927	  # It fails to find uninstalled libraries when the uninstalled
9928	  # path is not listed in the libpath.  Setting hardcode_minus_L
9929	  # to unsupported forces relinking
9930	  hardcode_minus_L=yes
9931	  hardcode_libdir_flag_spec='-L$libdir'
9932	  hardcode_libdir_separator=
9933	  fi
9934	  ;;
9935	esac
9936	shared_flag='-shared'
9937	if test "$aix_use_runtimelinking" = yes; then
9938	  shared_flag="$shared_flag "'${wl}-G'
9939	fi
9940	link_all_deplibs=no
9941      else
9942	# not using gcc
9943	if test "$host_cpu" = ia64; then
9944	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9945	# chokes on -Wl,-G. The following line is correct:
9946	  shared_flag='-G'
9947	else
9948	  if test "$aix_use_runtimelinking" = yes; then
9949	    shared_flag='${wl}-G'
9950	  else
9951	    shared_flag='${wl}-bM:SRE'
9952	  fi
9953	fi
9954      fi
9955
9956      export_dynamic_flag_spec='${wl}-bexpall'
9957      # It seems that -bexpall does not export symbols beginning with
9958      # underscore (_), so it is better to generate a list of symbols to export.
9959      always_export_symbols=yes
9960      if test "$aix_use_runtimelinking" = yes; then
9961	# Warning - without using the other runtime loading flags (-brtl),
9962	# -berok will link without error, but may produce a broken library.
9963	allow_undefined_flag='-berok'
9964        # Determine the default libpath from the value encoded in an
9965        # empty executable.
9966        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967/* end confdefs.h.  */
9968
9969int
9970main ()
9971{
9972
9973  ;
9974  return 0;
9975}
9976_ACEOF
9977if ac_fn_c_try_link "$LINENO"; then :
9978
9979lt_aix_libpath_sed='
9980    /Import File Strings/,/^$/ {
9981	/^0/ {
9982	    s/^0  *\(.*\)$/\1/
9983	    p
9984	}
9985    }'
9986aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9987# Check for a 64-bit object if we didn't find anything.
9988if test -z "$aix_libpath"; then
9989  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9990fi
9991fi
9992rm -f core conftest.err conftest.$ac_objext \
9993    conftest$ac_exeext conftest.$ac_ext
9994if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9995
9996        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9997        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"
9998      else
9999	if test "$host_cpu" = ia64; then
10000	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10001	  allow_undefined_flag="-z nodefs"
10002	  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"
10003	else
10004	 # Determine the default libpath from the value encoded in an
10005	 # empty executable.
10006	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007/* end confdefs.h.  */
10008
10009int
10010main ()
10011{
10012
10013  ;
10014  return 0;
10015}
10016_ACEOF
10017if ac_fn_c_try_link "$LINENO"; then :
10018
10019lt_aix_libpath_sed='
10020    /Import File Strings/,/^$/ {
10021	/^0/ {
10022	    s/^0  *\(.*\)$/\1/
10023	    p
10024	}
10025    }'
10026aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10027# Check for a 64-bit object if we didn't find anything.
10028if test -z "$aix_libpath"; then
10029  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10030fi
10031fi
10032rm -f core conftest.err conftest.$ac_objext \
10033    conftest$ac_exeext conftest.$ac_ext
10034if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10035
10036	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10037	  # Warning - without using the other run time loading flags,
10038	  # -berok will link without error, but may produce a broken library.
10039	  no_undefined_flag=' ${wl}-bernotok'
10040	  allow_undefined_flag=' ${wl}-berok'
10041	  # Exported symbols can be pulled into shared objects from archives
10042	  whole_archive_flag_spec='$convenience'
10043	  archive_cmds_need_lc=yes
10044	  # This is similar to how AIX traditionally builds its shared libraries.
10045	  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'
10046	fi
10047      fi
10048      ;;
10049
10050    amigaos*)
10051      case $host_cpu in
10052      powerpc)
10053            # see comment about AmigaOS4 .so support
10054            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10055            archive_expsym_cmds=''
10056        ;;
10057      m68k)
10058            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)'
10059            hardcode_libdir_flag_spec='-L$libdir'
10060            hardcode_minus_L=yes
10061        ;;
10062      esac
10063      ;;
10064
10065    bsdi[45]*)
10066      export_dynamic_flag_spec=-rdynamic
10067      ;;
10068
10069    cygwin* | mingw* | pw32* | cegcc*)
10070      # When not using gcc, we currently assume that we are using
10071      # Microsoft Visual C++.
10072      # hardcode_libdir_flag_spec is actually meaningless, as there is
10073      # no search path for DLLs.
10074      hardcode_libdir_flag_spec=' '
10075      allow_undefined_flag=unsupported
10076      # Tell ltmain to make .lib files, not .a files.
10077      libext=lib
10078      # Tell ltmain to make .dll files, not .so files.
10079      shrext_cmds=".dll"
10080      # FIXME: Setting linknames here is a bad hack.
10081      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10082      # The linker will automatically build a .lib file if we build a DLL.
10083      old_archive_from_new_cmds='true'
10084      # FIXME: Should let the user specify the lib program.
10085      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10086      fix_srcfile_path='`cygpath -w "$srcfile"`'
10087      enable_shared_with_static_runtimes=yes
10088      ;;
10089
10090    darwin* | rhapsody*)
10091
10092
10093  archive_cmds_need_lc=no
10094  hardcode_direct=no
10095  hardcode_automatic=yes
10096  hardcode_shlibpath_var=unsupported
10097  whole_archive_flag_spec=''
10098  link_all_deplibs=yes
10099  allow_undefined_flag="$_lt_dar_allow_undefined"
10100  case $cc_basename in
10101     ifort*) _lt_dar_can_shared=yes ;;
10102     *) _lt_dar_can_shared=$GCC ;;
10103  esac
10104  if test "$_lt_dar_can_shared" = "yes"; then
10105    output_verbose_link_cmd=echo
10106    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10107    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10108    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}"
10109    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}"
10110
10111  else
10112  ld_shlibs=no
10113  fi
10114
10115      ;;
10116
10117    dgux*)
10118      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119      hardcode_libdir_flag_spec='-L$libdir'
10120      hardcode_shlibpath_var=no
10121      ;;
10122
10123    freebsd1*)
10124      ld_shlibs=no
10125      ;;
10126
10127    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10128    # support.  Future versions do this automatically, but an explicit c++rt0.o
10129    # does not break anything, and helps significantly (at the cost of a little
10130    # extra space).
10131    freebsd2.2*)
10132      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10133      hardcode_libdir_flag_spec='-R$libdir'
10134      hardcode_direct=yes
10135      hardcode_shlibpath_var=no
10136      ;;
10137
10138    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10139    freebsd2*)
10140      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10141      hardcode_direct=yes
10142      hardcode_minus_L=yes
10143      hardcode_shlibpath_var=no
10144      ;;
10145
10146    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10147    freebsd* | dragonfly*)
10148      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10149      hardcode_libdir_flag_spec='-R$libdir'
10150      hardcode_direct=yes
10151      hardcode_shlibpath_var=no
10152      ;;
10153
10154    hpux9*)
10155      if test "$GCC" = yes; then
10156	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'
10157      else
10158	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'
10159      fi
10160      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10161      hardcode_libdir_separator=:
10162      hardcode_direct=yes
10163
10164      # hardcode_minus_L: Not really in the search PATH,
10165      # but as the default location of the library.
10166      hardcode_minus_L=yes
10167      export_dynamic_flag_spec='${wl}-E'
10168      ;;
10169
10170    hpux10*)
10171      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10172	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10173      else
10174	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10175      fi
10176      if test "$with_gnu_ld" = no; then
10177	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10178	hardcode_libdir_flag_spec_ld='+b $libdir'
10179	hardcode_libdir_separator=:
10180	hardcode_direct=yes
10181	hardcode_direct_absolute=yes
10182	export_dynamic_flag_spec='${wl}-E'
10183	# hardcode_minus_L: Not really in the search PATH,
10184	# but as the default location of the library.
10185	hardcode_minus_L=yes
10186      fi
10187      ;;
10188
10189    hpux11*)
10190      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10191	case $host_cpu in
10192	hppa*64*)
10193	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10194	  ;;
10195	ia64*)
10196	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10197	  ;;
10198	*)
10199	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10200	  ;;
10201	esac
10202      else
10203	case $host_cpu in
10204	hppa*64*)
10205	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10206	  ;;
10207	ia64*)
10208	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10209	  ;;
10210	*)
10211	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10212	  ;;
10213	esac
10214      fi
10215      if test "$with_gnu_ld" = no; then
10216	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10217	hardcode_libdir_separator=:
10218
10219	case $host_cpu in
10220	hppa*64*|ia64*)
10221	  hardcode_direct=no
10222	  hardcode_shlibpath_var=no
10223	  ;;
10224	*)
10225	  hardcode_direct=yes
10226	  hardcode_direct_absolute=yes
10227	  export_dynamic_flag_spec='${wl}-E'
10228
10229	  # hardcode_minus_L: Not really in the search PATH,
10230	  # but as the default location of the library.
10231	  hardcode_minus_L=yes
10232	  ;;
10233	esac
10234      fi
10235      ;;
10236
10237    irix5* | irix6* | nonstopux*)
10238      if test "$GCC" = yes; then
10239	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'
10240	# Try to use the -exported_symbol ld option, if it does not
10241	# work, assume that -exports_file does not work either and
10242	# implicitly export all symbols.
10243        save_LDFLAGS="$LDFLAGS"
10244        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10245        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246/* end confdefs.h.  */
10247int foo(void) {}
10248_ACEOF
10249if ac_fn_c_try_link "$LINENO"; then :
10250  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'
10251
10252fi
10253rm -f core conftest.err conftest.$ac_objext \
10254    conftest$ac_exeext conftest.$ac_ext
10255        LDFLAGS="$save_LDFLAGS"
10256      else
10257	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'
10258	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'
10259      fi
10260      archive_cmds_need_lc='no'
10261      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10262      hardcode_libdir_separator=:
10263      inherit_rpath=yes
10264      link_all_deplibs=yes
10265      ;;
10266
10267    netbsd* | netbsdelf*-gnu)
10268      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10269	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10270      else
10271	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10272      fi
10273      hardcode_libdir_flag_spec='-R$libdir'
10274      hardcode_direct=yes
10275      hardcode_shlibpath_var=no
10276      ;;
10277
10278    newsos6)
10279      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280      hardcode_direct=yes
10281      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10282      hardcode_libdir_separator=:
10283      hardcode_shlibpath_var=no
10284      ;;
10285
10286    *nto* | *qnx*)
10287      ;;
10288
10289    openbsd*)
10290      if test -f /usr/libexec/ld.so; then
10291	hardcode_direct=yes
10292	hardcode_shlibpath_var=no
10293	hardcode_direct_absolute=yes
10294	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10295	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10296	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10297	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10298	  export_dynamic_flag_spec='${wl}-E'
10299	else
10300	  case $host_os in
10301	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10302	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10303	     hardcode_libdir_flag_spec='-R$libdir'
10304	     ;;
10305	   *)
10306	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10307	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10308	     ;;
10309	  esac
10310	fi
10311      else
10312	ld_shlibs=no
10313      fi
10314      ;;
10315
10316    os2*)
10317      hardcode_libdir_flag_spec='-L$libdir'
10318      hardcode_minus_L=yes
10319      allow_undefined_flag=unsupported
10320      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'
10321      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10322      ;;
10323
10324    osf3*)
10325      if test "$GCC" = yes; then
10326	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10327	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'
10328      else
10329	allow_undefined_flag=' -expect_unresolved \*'
10330	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'
10331      fi
10332      archive_cmds_need_lc='no'
10333      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10334      hardcode_libdir_separator=:
10335      ;;
10336
10337    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10338      if test "$GCC" = yes; then
10339	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10340	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'
10341	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10342      else
10343	allow_undefined_flag=' -expect_unresolved \*'
10344	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'
10345	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~
10346	$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'
10347
10348	# Both c and cxx compiler support -rpath directly
10349	hardcode_libdir_flag_spec='-rpath $libdir'
10350      fi
10351      archive_cmds_need_lc='no'
10352      hardcode_libdir_separator=:
10353      ;;
10354
10355    solaris*)
10356      no_undefined_flag=' -z defs'
10357      if test "$GCC" = yes; then
10358	wlarc='${wl}'
10359	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10360	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10361	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10362      else
10363	case `$CC -V 2>&1` in
10364	*"Compilers 5.0"*)
10365	  wlarc=''
10366	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10367	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10368	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10369	  ;;
10370	*)
10371	  wlarc='${wl}'
10372	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10373	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10374	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10375	  ;;
10376	esac
10377      fi
10378      hardcode_libdir_flag_spec='-R$libdir'
10379      hardcode_shlibpath_var=no
10380      case $host_os in
10381      solaris2.[0-5] | solaris2.[0-5].*) ;;
10382      *)
10383	# The compiler driver will combine and reorder linker options,
10384	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10385	# but is careful enough not to reorder.
10386	# Supported since Solaris 2.6 (maybe 2.5.1?)
10387	if test "$GCC" = yes; then
10388	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10389	else
10390	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10391	fi
10392	;;
10393      esac
10394      link_all_deplibs=yes
10395      ;;
10396
10397    sunos4*)
10398      if test "x$host_vendor" = xsequent; then
10399	# Use $CC to link under sequent, because it throws in some extra .o
10400	# files that make .init and .fini sections work.
10401	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10402      else
10403	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10404      fi
10405      hardcode_libdir_flag_spec='-L$libdir'
10406      hardcode_direct=yes
10407      hardcode_minus_L=yes
10408      hardcode_shlibpath_var=no
10409      ;;
10410
10411    sysv4)
10412      case $host_vendor in
10413	sni)
10414	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10415	  hardcode_direct=yes # is this really true???
10416	;;
10417	siemens)
10418	  ## LD is ld it makes a PLAMLIB
10419	  ## CC just makes a GrossModule.
10420	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10421	  reload_cmds='$CC -r -o $output$reload_objs'
10422	  hardcode_direct=no
10423        ;;
10424	motorola)
10425	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10426	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10427	;;
10428      esac
10429      runpath_var='LD_RUN_PATH'
10430      hardcode_shlibpath_var=no
10431      ;;
10432
10433    sysv4.3*)
10434      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10435      hardcode_shlibpath_var=no
10436      export_dynamic_flag_spec='-Bexport'
10437      ;;
10438
10439    sysv4*MP*)
10440      if test -d /usr/nec; then
10441	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10442	hardcode_shlibpath_var=no
10443	runpath_var=LD_RUN_PATH
10444	hardcode_runpath_var=yes
10445	ld_shlibs=yes
10446      fi
10447      ;;
10448
10449    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10450      no_undefined_flag='${wl}-z,text'
10451      archive_cmds_need_lc=no
10452      hardcode_shlibpath_var=no
10453      runpath_var='LD_RUN_PATH'
10454
10455      if test "$GCC" = yes; then
10456	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458      else
10459	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10460	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10461      fi
10462      ;;
10463
10464    sysv5* | sco3.2v5* | sco5v6*)
10465      # Note: We can NOT use -z defs as we might desire, because we do not
10466      # link with -lc, and that would cause any symbols used from libc to
10467      # always be unresolved, which means just about no library would
10468      # ever link correctly.  If we're not using GNU ld we use -z text
10469      # though, which does catch some bad symbols but isn't as heavy-handed
10470      # as -z defs.
10471      no_undefined_flag='${wl}-z,text'
10472      allow_undefined_flag='${wl}-z,nodefs'
10473      archive_cmds_need_lc=no
10474      hardcode_shlibpath_var=no
10475      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10476      hardcode_libdir_separator=':'
10477      link_all_deplibs=yes
10478      export_dynamic_flag_spec='${wl}-Bexport'
10479      runpath_var='LD_RUN_PATH'
10480
10481      if test "$GCC" = yes; then
10482	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484      else
10485	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10487      fi
10488      ;;
10489
10490    uts4*)
10491      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10492      hardcode_libdir_flag_spec='-L$libdir'
10493      hardcode_shlibpath_var=no
10494      ;;
10495
10496    *)
10497      ld_shlibs=no
10498      ;;
10499    esac
10500
10501    if test x$host_vendor = xsni; then
10502      case $host in
10503      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10504	export_dynamic_flag_spec='${wl}-Blargedynsym'
10505	;;
10506      esac
10507    fi
10508  fi
10509
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10511$as_echo "$ld_shlibs" >&6; }
10512test "$ld_shlibs" = no && can_build_shared=no
10513
10514with_gnu_ld=$with_gnu_ld
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530#
10531# Do we need to explicitly link libc?
10532#
10533case "x$archive_cmds_need_lc" in
10534x|xyes)
10535  # Assume -lc should be added
10536  archive_cmds_need_lc=yes
10537
10538  if test "$enable_shared" = yes && test "$GCC" = yes; then
10539    case $archive_cmds in
10540    *'~'*)
10541      # FIXME: we may have to deal with multi-command sequences.
10542      ;;
10543    '$CC '*)
10544      # Test whether the compiler implicitly links with -lc since on some
10545      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10546      # to ld, don't add -lc before -lgcc.
10547      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10548$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10549      $RM conftest*
10550      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10551
10552      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10553  (eval $ac_compile) 2>&5
10554  ac_status=$?
10555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10556  test $ac_status = 0; } 2>conftest.err; then
10557        soname=conftest
10558        lib=conftest
10559        libobjs=conftest.$ac_objext
10560        deplibs=
10561        wl=$lt_prog_compiler_wl
10562	pic_flag=$lt_prog_compiler_pic
10563        compiler_flags=-v
10564        linker_flags=-v
10565        verstring=
10566        output_objdir=.
10567        libname=conftest
10568        lt_save_allow_undefined_flag=$allow_undefined_flag
10569        allow_undefined_flag=
10570        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10571  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10572  ac_status=$?
10573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10574  test $ac_status = 0; }
10575        then
10576	  archive_cmds_need_lc=no
10577        else
10578	  archive_cmds_need_lc=yes
10579        fi
10580        allow_undefined_flag=$lt_save_allow_undefined_flag
10581      else
10582        cat conftest.err 1>&5
10583      fi
10584      $RM conftest*
10585      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10586$as_echo "$archive_cmds_need_lc" >&6; }
10587      ;;
10588    esac
10589  fi
10590  ;;
10591esac
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10750$as_echo_n "checking dynamic linker characteristics... " >&6; }
10751
10752if test "$GCC" = yes; then
10753  case $host_os in
10754    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10755    *) lt_awk_arg="/^libraries:/" ;;
10756  esac
10757  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10758  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10759    # if the path contains ";" then we assume it to be the separator
10760    # otherwise default to the standard path separator (i.e. ":") - it is
10761    # assumed that no part of a normal pathname contains ";" but that should
10762    # okay in the real world where ";" in dirpaths is itself problematic.
10763    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10764  else
10765    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10766  fi
10767  # Ok, now we have the path, separated by spaces, we can step through it
10768  # and add multilib dir if necessary.
10769  lt_tmp_lt_search_path_spec=
10770  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10771  for lt_sys_path in $lt_search_path_spec; do
10772    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10773      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10774    else
10775      test -d "$lt_sys_path" && \
10776	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10777    fi
10778  done
10779  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10780BEGIN {RS=" "; FS="/|\n";} {
10781  lt_foo="";
10782  lt_count=0;
10783  for (lt_i = NF; lt_i > 0; lt_i--) {
10784    if ($lt_i != "" && $lt_i != ".") {
10785      if ($lt_i == "..") {
10786        lt_count++;
10787      } else {
10788        if (lt_count == 0) {
10789          lt_foo="/" $lt_i lt_foo;
10790        } else {
10791          lt_count--;
10792        }
10793      }
10794    }
10795  }
10796  if (lt_foo != "") { lt_freq[lt_foo]++; }
10797  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10798}'`
10799  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10800else
10801  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10802fi
10803library_names_spec=
10804libname_spec='lib$name'
10805soname_spec=
10806shrext_cmds=".so"
10807postinstall_cmds=
10808postuninstall_cmds=
10809finish_cmds=
10810finish_eval=
10811shlibpath_var=
10812shlibpath_overrides_runpath=unknown
10813version_type=none
10814dynamic_linker="$host_os ld.so"
10815sys_lib_dlsearch_path_spec="/lib /usr/lib"
10816need_lib_prefix=unknown
10817hardcode_into_libs=no
10818
10819# when you set need_version to no, make sure it does not cause -set_version
10820# flags to be left without arguments
10821need_version=unknown
10822
10823case $host_os in
10824aix3*)
10825  version_type=linux
10826  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10827  shlibpath_var=LIBPATH
10828
10829  # AIX 3 has no versioning support, so we append a major version to the name.
10830  soname_spec='${libname}${release}${shared_ext}$major'
10831  ;;
10832
10833aix[4-9]*)
10834  version_type=linux
10835  need_lib_prefix=no
10836  need_version=no
10837  hardcode_into_libs=yes
10838  if test "$host_cpu" = ia64; then
10839    # AIX 5 supports IA64
10840    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10841    shlibpath_var=LD_LIBRARY_PATH
10842  else
10843    # With GCC up to 2.95.x, collect2 would create an import file
10844    # for dependence libraries.  The import file would start with
10845    # the line `#! .'.  This would cause the generated library to
10846    # depend on `.', always an invalid library.  This was fixed in
10847    # development snapshots of GCC prior to 3.0.
10848    case $host_os in
10849      aix4 | aix4.[01] | aix4.[01].*)
10850      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10851	   echo ' yes '
10852	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10853	:
10854      else
10855	can_build_shared=no
10856      fi
10857      ;;
10858    esac
10859    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10860    # soname into executable. Probably we can add versioning support to
10861    # collect2, so additional links can be useful in future.
10862    if test "$aix_use_runtimelinking" = yes; then
10863      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10864      # instead of lib<name>.a to let people know that these are not
10865      # typical AIX shared libraries.
10866      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867    else
10868      # We preserve .a as extension for shared libraries through AIX4.2
10869      # and later when we are not doing run time linking.
10870      library_names_spec='${libname}${release}.a $libname.a'
10871      soname_spec='${libname}${release}${shared_ext}$major'
10872    fi
10873    shlibpath_var=LIBPATH
10874  fi
10875  ;;
10876
10877amigaos*)
10878  case $host_cpu in
10879  powerpc)
10880    # Since July 2007 AmigaOS4 officially supports .so libraries.
10881    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10882    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883    ;;
10884  m68k)
10885    library_names_spec='$libname.ixlibrary $libname.a'
10886    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10887    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'
10888    ;;
10889  esac
10890  ;;
10891
10892beos*)
10893  library_names_spec='${libname}${shared_ext}'
10894  dynamic_linker="$host_os ld.so"
10895  shlibpath_var=LIBRARY_PATH
10896  ;;
10897
10898bsdi[45]*)
10899  version_type=linux
10900  need_version=no
10901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902  soname_spec='${libname}${release}${shared_ext}$major'
10903  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10904  shlibpath_var=LD_LIBRARY_PATH
10905  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10906  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10907  # the default ld.so.conf also contains /usr/contrib/lib and
10908  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10909  # libtool to hard-code these into programs
10910  ;;
10911
10912cygwin* | mingw* | pw32* | cegcc*)
10913  version_type=windows
10914  shrext_cmds=".dll"
10915  need_version=no
10916  need_lib_prefix=no
10917
10918  case $GCC,$host_os in
10919  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10920    library_names_spec='$libname.dll.a'
10921    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10922    postinstall_cmds='base_file=`basename \${file}`~
10923      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10924      dldir=$destdir/`dirname \$dlpath`~
10925      test -d \$dldir || mkdir -p \$dldir~
10926      $install_prog $dir/$dlname \$dldir/$dlname~
10927      chmod a+x \$dldir/$dlname~
10928      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10929        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10930      fi'
10931    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10932      dlpath=$dir/\$dldll~
10933       $RM \$dlpath'
10934    shlibpath_overrides_runpath=yes
10935
10936    case $host_os in
10937    cygwin*)
10938      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10939      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10940      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10941      ;;
10942    mingw* | cegcc*)
10943      # MinGW DLLs use traditional 'lib' prefix
10944      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10945      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10946      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10947        # It is most probably a Windows format PATH printed by
10948        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10949        # path with ; separators, and with drive letters. We can handle the
10950        # drive letters (cygwin fileutils understands them), so leave them,
10951        # especially as we might pass files found there to a mingw objdump,
10952        # which wouldn't understand a cygwinified path. Ahh.
10953        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10954      else
10955        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10956      fi
10957      ;;
10958    pw32*)
10959      # pw32 DLLs use 'pw' prefix rather than 'lib'
10960      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10961      ;;
10962    esac
10963    ;;
10964
10965  *)
10966    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10967    ;;
10968  esac
10969  dynamic_linker='Win32 ld.exe'
10970  # FIXME: first we should search . and the directory the executable is in
10971  shlibpath_var=PATH
10972  ;;
10973
10974darwin* | rhapsody*)
10975  dynamic_linker="$host_os dyld"
10976  version_type=darwin
10977  need_lib_prefix=no
10978  need_version=no
10979  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10980  soname_spec='${libname}${release}${major}$shared_ext'
10981  shlibpath_overrides_runpath=yes
10982  shlibpath_var=DYLD_LIBRARY_PATH
10983  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10984
10985  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10986  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10987  ;;
10988
10989dgux*)
10990  version_type=linux
10991  need_lib_prefix=no
10992  need_version=no
10993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10994  soname_spec='${libname}${release}${shared_ext}$major'
10995  shlibpath_var=LD_LIBRARY_PATH
10996  ;;
10997
10998freebsd1*)
10999  dynamic_linker=no
11000  ;;
11001
11002freebsd* | dragonfly*)
11003  # DragonFly does not have aout.  When/if they implement a new
11004  # versioning mechanism, adjust this.
11005  if test -x /usr/bin/objformat; then
11006    objformat=`/usr/bin/objformat`
11007  else
11008    case $host_os in
11009    freebsd[123]*) objformat=aout ;;
11010    *) objformat=elf ;;
11011    esac
11012  fi
11013  version_type=freebsd-$objformat
11014  case $version_type in
11015    freebsd-elf*)
11016      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11017      need_version=no
11018      need_lib_prefix=no
11019      ;;
11020    freebsd-*)
11021      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11022      need_version=yes
11023      ;;
11024  esac
11025  shlibpath_var=LD_LIBRARY_PATH
11026  case $host_os in
11027  freebsd2*)
11028    shlibpath_overrides_runpath=yes
11029    ;;
11030  freebsd3.[01]* | freebsdelf3.[01]*)
11031    shlibpath_overrides_runpath=yes
11032    hardcode_into_libs=yes
11033    ;;
11034  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11035  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11036    shlibpath_overrides_runpath=no
11037    hardcode_into_libs=yes
11038    ;;
11039  *) # from 4.6 on, and DragonFly
11040    shlibpath_overrides_runpath=yes
11041    hardcode_into_libs=yes
11042    ;;
11043  esac
11044  ;;
11045
11046gnu*)
11047  version_type=linux
11048  need_lib_prefix=no
11049  need_version=no
11050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11051  soname_spec='${libname}${release}${shared_ext}$major'
11052  shlibpath_var=LD_LIBRARY_PATH
11053  hardcode_into_libs=yes
11054  ;;
11055
11056hpux9* | hpux10* | hpux11*)
11057  # Give a soname corresponding to the major version so that dld.sl refuses to
11058  # link against other versions.
11059  version_type=sunos
11060  need_lib_prefix=no
11061  need_version=no
11062  case $host_cpu in
11063  ia64*)
11064    shrext_cmds='.so'
11065    hardcode_into_libs=yes
11066    dynamic_linker="$host_os dld.so"
11067    shlibpath_var=LD_LIBRARY_PATH
11068    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11069    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070    soname_spec='${libname}${release}${shared_ext}$major'
11071    if test "X$HPUX_IA64_MODE" = X32; then
11072      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11073    else
11074      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11075    fi
11076    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11077    ;;
11078  hppa*64*)
11079    shrext_cmds='.sl'
11080    hardcode_into_libs=yes
11081    dynamic_linker="$host_os dld.sl"
11082    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11083    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11084    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085    soname_spec='${libname}${release}${shared_ext}$major'
11086    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11087    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11088    ;;
11089  *)
11090    shrext_cmds='.sl'
11091    dynamic_linker="$host_os dld.sl"
11092    shlibpath_var=SHLIB_PATH
11093    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11094    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095    soname_spec='${libname}${release}${shared_ext}$major'
11096    ;;
11097  esac
11098  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11099  postinstall_cmds='chmod 555 $lib'
11100  ;;
11101
11102interix[3-9]*)
11103  version_type=linux
11104  need_lib_prefix=no
11105  need_version=no
11106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11107  soname_spec='${libname}${release}${shared_ext}$major'
11108  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11109  shlibpath_var=LD_LIBRARY_PATH
11110  shlibpath_overrides_runpath=no
11111  hardcode_into_libs=yes
11112  ;;
11113
11114irix5* | irix6* | nonstopux*)
11115  case $host_os in
11116    nonstopux*) version_type=nonstopux ;;
11117    *)
11118	if test "$lt_cv_prog_gnu_ld" = yes; then
11119		version_type=linux
11120	else
11121		version_type=irix
11122	fi ;;
11123  esac
11124  need_lib_prefix=no
11125  need_version=no
11126  soname_spec='${libname}${release}${shared_ext}$major'
11127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11128  case $host_os in
11129  irix5* | nonstopux*)
11130    libsuff= shlibsuff=
11131    ;;
11132  *)
11133    case $LD in # libtool.m4 will add one of these switches to LD
11134    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11135      libsuff= shlibsuff= libmagic=32-bit;;
11136    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11137      libsuff=32 shlibsuff=N32 libmagic=N32;;
11138    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11139      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11140    *) libsuff= shlibsuff= libmagic=never-match;;
11141    esac
11142    ;;
11143  esac
11144  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11145  shlibpath_overrides_runpath=no
11146  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11147  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11148  hardcode_into_libs=yes
11149  ;;
11150
11151# No shared lib support for Linux oldld, aout, or coff.
11152linux*oldld* | linux*aout* | linux*coff*)
11153  dynamic_linker=no
11154  ;;
11155
11156# This must be Linux ELF.
11157linux* | k*bsd*-gnu | kopensolaris*-gnu)
11158  version_type=linux
11159  need_lib_prefix=no
11160  need_version=no
11161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162  soname_spec='${libname}${release}${shared_ext}$major'
11163  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11164  shlibpath_var=LD_LIBRARY_PATH
11165  shlibpath_overrides_runpath=no
11166  # Some binutils ld are patched to set DT_RUNPATH
11167  save_LDFLAGS=$LDFLAGS
11168  save_libdir=$libdir
11169  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11170       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172/* end confdefs.h.  */
11173
11174int
11175main ()
11176{
11177
11178  ;
11179  return 0;
11180}
11181_ACEOF
11182if ac_fn_c_try_link "$LINENO"; then :
11183  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11184  shlibpath_overrides_runpath=yes
11185fi
11186fi
11187rm -f core conftest.err conftest.$ac_objext \
11188    conftest$ac_exeext conftest.$ac_ext
11189  LDFLAGS=$save_LDFLAGS
11190  libdir=$save_libdir
11191
11192  # This implies no fast_install, which is unacceptable.
11193  # Some rework will be needed to allow for fast_install
11194  # before this can be enabled.
11195  hardcode_into_libs=yes
11196
11197  # Append ld.so.conf contents to the search path
11198  if test -f /etc/ld.so.conf; then
11199    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' ' '`
11200    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11201  fi
11202
11203  # We used to test for /lib/ld.so.1 and disable shared libraries on
11204  # powerpc, because MkLinux only supported shared libraries with the
11205  # GNU dynamic linker.  Since this was broken with cross compilers,
11206  # most powerpc-linux boxes support dynamic linking these days and
11207  # people can always --disable-shared, the test was removed, and we
11208  # assume the GNU/Linux dynamic linker is in use.
11209  dynamic_linker='GNU/Linux ld.so'
11210  ;;
11211
11212netbsdelf*-gnu)
11213  version_type=linux
11214  need_lib_prefix=no
11215  need_version=no
11216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11217  soname_spec='${libname}${release}${shared_ext}$major'
11218  shlibpath_var=LD_LIBRARY_PATH
11219  shlibpath_overrides_runpath=no
11220  hardcode_into_libs=yes
11221  dynamic_linker='NetBSD ld.elf_so'
11222  ;;
11223
11224netbsd*)
11225  version_type=sunos
11226  need_lib_prefix=no
11227  need_version=no
11228  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11229    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11230    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11231    dynamic_linker='NetBSD (a.out) ld.so'
11232  else
11233    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11234    soname_spec='${libname}${release}${shared_ext}$major'
11235    dynamic_linker='NetBSD ld.elf_so'
11236  fi
11237  shlibpath_var=LD_LIBRARY_PATH
11238  shlibpath_overrides_runpath=yes
11239  hardcode_into_libs=yes
11240  ;;
11241
11242newsos6)
11243  version_type=linux
11244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245  shlibpath_var=LD_LIBRARY_PATH
11246  shlibpath_overrides_runpath=yes
11247  ;;
11248
11249*nto* | *qnx*)
11250  version_type=qnx
11251  need_lib_prefix=no
11252  need_version=no
11253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254  soname_spec='${libname}${release}${shared_ext}$major'
11255  shlibpath_var=LD_LIBRARY_PATH
11256  shlibpath_overrides_runpath=no
11257  hardcode_into_libs=yes
11258  dynamic_linker='ldqnx.so'
11259  ;;
11260
11261openbsd*)
11262  version_type=sunos
11263  sys_lib_dlsearch_path_spec="/usr/lib"
11264  need_lib_prefix=no
11265  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11266  case $host_os in
11267    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11268    *)				need_version=no  ;;
11269  esac
11270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11271  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11272  shlibpath_var=LD_LIBRARY_PATH
11273  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11274    case $host_os in
11275      openbsd2.[89] | openbsd2.[89].*)
11276	shlibpath_overrides_runpath=no
11277	;;
11278      *)
11279	shlibpath_overrides_runpath=yes
11280	;;
11281      esac
11282  else
11283    shlibpath_overrides_runpath=yes
11284  fi
11285  ;;
11286
11287os2*)
11288  libname_spec='$name'
11289  shrext_cmds=".dll"
11290  need_lib_prefix=no
11291  library_names_spec='$libname${shared_ext} $libname.a'
11292  dynamic_linker='OS/2 ld.exe'
11293  shlibpath_var=LIBPATH
11294  ;;
11295
11296osf3* | osf4* | osf5*)
11297  version_type=osf
11298  need_lib_prefix=no
11299  need_version=no
11300  soname_spec='${libname}${release}${shared_ext}$major'
11301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302  shlibpath_var=LD_LIBRARY_PATH
11303  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11304  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11305  ;;
11306
11307rdos*)
11308  dynamic_linker=no
11309  ;;
11310
11311solaris*)
11312  version_type=linux
11313  need_lib_prefix=no
11314  need_version=no
11315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316  soname_spec='${libname}${release}${shared_ext}$major'
11317  shlibpath_var=LD_LIBRARY_PATH
11318  shlibpath_overrides_runpath=yes
11319  hardcode_into_libs=yes
11320  # ldd complains unless libraries are executable
11321  postinstall_cmds='chmod +x $lib'
11322  ;;
11323
11324sunos4*)
11325  version_type=sunos
11326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11327  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11328  shlibpath_var=LD_LIBRARY_PATH
11329  shlibpath_overrides_runpath=yes
11330  if test "$with_gnu_ld" = yes; then
11331    need_lib_prefix=no
11332  fi
11333  need_version=yes
11334  ;;
11335
11336sysv4 | sysv4.3*)
11337  version_type=linux
11338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339  soname_spec='${libname}${release}${shared_ext}$major'
11340  shlibpath_var=LD_LIBRARY_PATH
11341  case $host_vendor in
11342    sni)
11343      shlibpath_overrides_runpath=no
11344      need_lib_prefix=no
11345      runpath_var=LD_RUN_PATH
11346      ;;
11347    siemens)
11348      need_lib_prefix=no
11349      ;;
11350    motorola)
11351      need_lib_prefix=no
11352      need_version=no
11353      shlibpath_overrides_runpath=no
11354      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11355      ;;
11356  esac
11357  ;;
11358
11359sysv4*MP*)
11360  if test -d /usr/nec ;then
11361    version_type=linux
11362    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11363    soname_spec='$libname${shared_ext}.$major'
11364    shlibpath_var=LD_LIBRARY_PATH
11365  fi
11366  ;;
11367
11368sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11369  version_type=freebsd-elf
11370  need_lib_prefix=no
11371  need_version=no
11372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11373  soname_spec='${libname}${release}${shared_ext}$major'
11374  shlibpath_var=LD_LIBRARY_PATH
11375  shlibpath_overrides_runpath=yes
11376  hardcode_into_libs=yes
11377  if test "$with_gnu_ld" = yes; then
11378    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11379  else
11380    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11381    case $host_os in
11382      sco3.2v5*)
11383        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11384	;;
11385    esac
11386  fi
11387  sys_lib_dlsearch_path_spec='/usr/lib'
11388  ;;
11389
11390tpf*)
11391  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11392  version_type=linux
11393  need_lib_prefix=no
11394  need_version=no
11395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396  shlibpath_var=LD_LIBRARY_PATH
11397  shlibpath_overrides_runpath=no
11398  hardcode_into_libs=yes
11399  ;;
11400
11401uts4*)
11402  version_type=linux
11403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404  soname_spec='${libname}${release}${shared_ext}$major'
11405  shlibpath_var=LD_LIBRARY_PATH
11406  ;;
11407
11408*)
11409  dynamic_linker=no
11410  ;;
11411esac
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11413$as_echo "$dynamic_linker" >&6; }
11414test "$dynamic_linker" = no && can_build_shared=no
11415
11416variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11417if test "$GCC" = yes; then
11418  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11419fi
11420
11421if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11422  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11423fi
11424if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11425  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11426fi
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11515$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11516hardcode_action=
11517if test -n "$hardcode_libdir_flag_spec" ||
11518   test -n "$runpath_var" ||
11519   test "X$hardcode_automatic" = "Xyes" ; then
11520
11521  # We can hardcode non-existent directories.
11522  if test "$hardcode_direct" != no &&
11523     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11524     # have to relink, otherwise we might link with an installed library
11525     # when we should be linking with a yet-to-be-installed one
11526     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11527     test "$hardcode_minus_L" != no; then
11528    # Linking always hardcodes the temporary library directory.
11529    hardcode_action=relink
11530  else
11531    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11532    hardcode_action=immediate
11533  fi
11534else
11535  # We cannot hardcode anything, or else we can only hardcode existing
11536  # directories.
11537  hardcode_action=unsupported
11538fi
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11540$as_echo "$hardcode_action" >&6; }
11541
11542if test "$hardcode_action" = relink ||
11543   test "$inherit_rpath" = yes; then
11544  # Fast installation is not supported
11545  enable_fast_install=no
11546elif test "$shlibpath_overrides_runpath" = yes ||
11547     test "$enable_shared" = no; then
11548  # Fast installation is not necessary
11549  enable_fast_install=needless
11550fi
11551
11552
11553
11554
11555
11556
11557  if test "x$enable_dlopen" != xyes; then
11558  enable_dlopen=unknown
11559  enable_dlopen_self=unknown
11560  enable_dlopen_self_static=unknown
11561else
11562  lt_cv_dlopen=no
11563  lt_cv_dlopen_libs=
11564
11565  case $host_os in
11566  beos*)
11567    lt_cv_dlopen="load_add_on"
11568    lt_cv_dlopen_libs=
11569    lt_cv_dlopen_self=yes
11570    ;;
11571
11572  mingw* | pw32* | cegcc*)
11573    lt_cv_dlopen="LoadLibrary"
11574    lt_cv_dlopen_libs=
11575    ;;
11576
11577  cygwin*)
11578    lt_cv_dlopen="dlopen"
11579    lt_cv_dlopen_libs=
11580    ;;
11581
11582  darwin*)
11583  # if libdl is installed we need to link against it
11584    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11585$as_echo_n "checking for dlopen in -ldl... " >&6; }
11586if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11587  $as_echo_n "(cached) " >&6
11588else
11589  ac_check_lib_save_LIBS=$LIBS
11590LIBS="-ldl  $LIBS"
11591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592/* end confdefs.h.  */
11593
11594/* Override any GCC internal prototype to avoid an error.
11595   Use char because int might match the return type of a GCC
11596   builtin and then its argument prototype would still apply.  */
11597#ifdef __cplusplus
11598extern "C"
11599#endif
11600char dlopen ();
11601int
11602main ()
11603{
11604return dlopen ();
11605  ;
11606  return 0;
11607}
11608_ACEOF
11609if ac_fn_c_try_link "$LINENO"; then :
11610  ac_cv_lib_dl_dlopen=yes
11611else
11612  ac_cv_lib_dl_dlopen=no
11613fi
11614rm -f core conftest.err conftest.$ac_objext \
11615    conftest$ac_exeext conftest.$ac_ext
11616LIBS=$ac_check_lib_save_LIBS
11617fi
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11619$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11620if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11621  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11622else
11623
11624    lt_cv_dlopen="dyld"
11625    lt_cv_dlopen_libs=
11626    lt_cv_dlopen_self=yes
11627
11628fi
11629
11630    ;;
11631
11632  *)
11633    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11634if test "x$ac_cv_func_shl_load" = x""yes; then :
11635  lt_cv_dlopen="shl_load"
11636else
11637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11638$as_echo_n "checking for shl_load in -ldld... " >&6; }
11639if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11640  $as_echo_n "(cached) " >&6
11641else
11642  ac_check_lib_save_LIBS=$LIBS
11643LIBS="-ldld  $LIBS"
11644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645/* end confdefs.h.  */
11646
11647/* Override any GCC internal prototype to avoid an error.
11648   Use char because int might match the return type of a GCC
11649   builtin and then its argument prototype would still apply.  */
11650#ifdef __cplusplus
11651extern "C"
11652#endif
11653char shl_load ();
11654int
11655main ()
11656{
11657return shl_load ();
11658  ;
11659  return 0;
11660}
11661_ACEOF
11662if ac_fn_c_try_link "$LINENO"; then :
11663  ac_cv_lib_dld_shl_load=yes
11664else
11665  ac_cv_lib_dld_shl_load=no
11666fi
11667rm -f core conftest.err conftest.$ac_objext \
11668    conftest$ac_exeext conftest.$ac_ext
11669LIBS=$ac_check_lib_save_LIBS
11670fi
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11672$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11673if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11674  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11675else
11676  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11677if test "x$ac_cv_func_dlopen" = x""yes; then :
11678  lt_cv_dlopen="dlopen"
11679else
11680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11681$as_echo_n "checking for dlopen in -ldl... " >&6; }
11682if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11683  $as_echo_n "(cached) " >&6
11684else
11685  ac_check_lib_save_LIBS=$LIBS
11686LIBS="-ldl  $LIBS"
11687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688/* end confdefs.h.  */
11689
11690/* Override any GCC internal prototype to avoid an error.
11691   Use char because int might match the return type of a GCC
11692   builtin and then its argument prototype would still apply.  */
11693#ifdef __cplusplus
11694extern "C"
11695#endif
11696char dlopen ();
11697int
11698main ()
11699{
11700return dlopen ();
11701  ;
11702  return 0;
11703}
11704_ACEOF
11705if ac_fn_c_try_link "$LINENO"; then :
11706  ac_cv_lib_dl_dlopen=yes
11707else
11708  ac_cv_lib_dl_dlopen=no
11709fi
11710rm -f core conftest.err conftest.$ac_objext \
11711    conftest$ac_exeext conftest.$ac_ext
11712LIBS=$ac_check_lib_save_LIBS
11713fi
11714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11715$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11716if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11717  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11718else
11719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11720$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11721if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11722  $as_echo_n "(cached) " >&6
11723else
11724  ac_check_lib_save_LIBS=$LIBS
11725LIBS="-lsvld  $LIBS"
11726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727/* end confdefs.h.  */
11728
11729/* Override any GCC internal prototype to avoid an error.
11730   Use char because int might match the return type of a GCC
11731   builtin and then its argument prototype would still apply.  */
11732#ifdef __cplusplus
11733extern "C"
11734#endif
11735char dlopen ();
11736int
11737main ()
11738{
11739return dlopen ();
11740  ;
11741  return 0;
11742}
11743_ACEOF
11744if ac_fn_c_try_link "$LINENO"; then :
11745  ac_cv_lib_svld_dlopen=yes
11746else
11747  ac_cv_lib_svld_dlopen=no
11748fi
11749rm -f core conftest.err conftest.$ac_objext \
11750    conftest$ac_exeext conftest.$ac_ext
11751LIBS=$ac_check_lib_save_LIBS
11752fi
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11754$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11755if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11756  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11757else
11758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11759$as_echo_n "checking for dld_link in -ldld... " >&6; }
11760if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11761  $as_echo_n "(cached) " >&6
11762else
11763  ac_check_lib_save_LIBS=$LIBS
11764LIBS="-ldld  $LIBS"
11765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766/* end confdefs.h.  */
11767
11768/* Override any GCC internal prototype to avoid an error.
11769   Use char because int might match the return type of a GCC
11770   builtin and then its argument prototype would still apply.  */
11771#ifdef __cplusplus
11772extern "C"
11773#endif
11774char dld_link ();
11775int
11776main ()
11777{
11778return dld_link ();
11779  ;
11780  return 0;
11781}
11782_ACEOF
11783if ac_fn_c_try_link "$LINENO"; then :
11784  ac_cv_lib_dld_dld_link=yes
11785else
11786  ac_cv_lib_dld_dld_link=no
11787fi
11788rm -f core conftest.err conftest.$ac_objext \
11789    conftest$ac_exeext conftest.$ac_ext
11790LIBS=$ac_check_lib_save_LIBS
11791fi
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11793$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11794if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11795  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11796fi
11797
11798
11799fi
11800
11801
11802fi
11803
11804
11805fi
11806
11807
11808fi
11809
11810
11811fi
11812
11813    ;;
11814  esac
11815
11816  if test "x$lt_cv_dlopen" != xno; then
11817    enable_dlopen=yes
11818  else
11819    enable_dlopen=no
11820  fi
11821
11822  case $lt_cv_dlopen in
11823  dlopen)
11824    save_CPPFLAGS="$CPPFLAGS"
11825    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11826
11827    save_LDFLAGS="$LDFLAGS"
11828    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11829
11830    save_LIBS="$LIBS"
11831    LIBS="$lt_cv_dlopen_libs $LIBS"
11832
11833    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11834$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11835if test "${lt_cv_dlopen_self+set}" = set; then :
11836  $as_echo_n "(cached) " >&6
11837else
11838  	  if test "$cross_compiling" = yes; then :
11839  lt_cv_dlopen_self=cross
11840else
11841  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11842  lt_status=$lt_dlunknown
11843  cat > conftest.$ac_ext <<_LT_EOF
11844#line 11844 "configure"
11845#include "confdefs.h"
11846
11847#if HAVE_DLFCN_H
11848#include <dlfcn.h>
11849#endif
11850
11851#include <stdio.h>
11852
11853#ifdef RTLD_GLOBAL
11854#  define LT_DLGLOBAL		RTLD_GLOBAL
11855#else
11856#  ifdef DL_GLOBAL
11857#    define LT_DLGLOBAL		DL_GLOBAL
11858#  else
11859#    define LT_DLGLOBAL		0
11860#  endif
11861#endif
11862
11863/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11864   find out it does not work in some platform. */
11865#ifndef LT_DLLAZY_OR_NOW
11866#  ifdef RTLD_LAZY
11867#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11868#  else
11869#    ifdef DL_LAZY
11870#      define LT_DLLAZY_OR_NOW		DL_LAZY
11871#    else
11872#      ifdef RTLD_NOW
11873#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11874#      else
11875#        ifdef DL_NOW
11876#          define LT_DLLAZY_OR_NOW	DL_NOW
11877#        else
11878#          define LT_DLLAZY_OR_NOW	0
11879#        endif
11880#      endif
11881#    endif
11882#  endif
11883#endif
11884
11885void fnord() { int i=42;}
11886int main ()
11887{
11888  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11889  int status = $lt_dlunknown;
11890
11891  if (self)
11892    {
11893      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11894      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11895      /* dlclose (self); */
11896    }
11897  else
11898    puts (dlerror ());
11899
11900  return status;
11901}
11902_LT_EOF
11903  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11904  (eval $ac_link) 2>&5
11905  ac_status=$?
11906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11907  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11908    (./conftest; exit; ) >&5 2>/dev/null
11909    lt_status=$?
11910    case x$lt_status in
11911      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11912      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11913      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11914    esac
11915  else :
11916    # compilation failed
11917    lt_cv_dlopen_self=no
11918  fi
11919fi
11920rm -fr conftest*
11921
11922
11923fi
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11925$as_echo "$lt_cv_dlopen_self" >&6; }
11926
11927    if test "x$lt_cv_dlopen_self" = xyes; then
11928      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11929      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11930$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11931if test "${lt_cv_dlopen_self_static+set}" = set; then :
11932  $as_echo_n "(cached) " >&6
11933else
11934  	  if test "$cross_compiling" = yes; then :
11935  lt_cv_dlopen_self_static=cross
11936else
11937  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11938  lt_status=$lt_dlunknown
11939  cat > conftest.$ac_ext <<_LT_EOF
11940#line 11940 "configure"
11941#include "confdefs.h"
11942
11943#if HAVE_DLFCN_H
11944#include <dlfcn.h>
11945#endif
11946
11947#include <stdio.h>
11948
11949#ifdef RTLD_GLOBAL
11950#  define LT_DLGLOBAL		RTLD_GLOBAL
11951#else
11952#  ifdef DL_GLOBAL
11953#    define LT_DLGLOBAL		DL_GLOBAL
11954#  else
11955#    define LT_DLGLOBAL		0
11956#  endif
11957#endif
11958
11959/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11960   find out it does not work in some platform. */
11961#ifndef LT_DLLAZY_OR_NOW
11962#  ifdef RTLD_LAZY
11963#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11964#  else
11965#    ifdef DL_LAZY
11966#      define LT_DLLAZY_OR_NOW		DL_LAZY
11967#    else
11968#      ifdef RTLD_NOW
11969#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11970#      else
11971#        ifdef DL_NOW
11972#          define LT_DLLAZY_OR_NOW	DL_NOW
11973#        else
11974#          define LT_DLLAZY_OR_NOW	0
11975#        endif
11976#      endif
11977#    endif
11978#  endif
11979#endif
11980
11981void fnord() { int i=42;}
11982int main ()
11983{
11984  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11985  int status = $lt_dlunknown;
11986
11987  if (self)
11988    {
11989      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11990      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11991      /* dlclose (self); */
11992    }
11993  else
11994    puts (dlerror ());
11995
11996  return status;
11997}
11998_LT_EOF
11999  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12000  (eval $ac_link) 2>&5
12001  ac_status=$?
12002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12004    (./conftest; exit; ) >&5 2>/dev/null
12005    lt_status=$?
12006    case x$lt_status in
12007      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12008      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12009      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12010    esac
12011  else :
12012    # compilation failed
12013    lt_cv_dlopen_self_static=no
12014  fi
12015fi
12016rm -fr conftest*
12017
12018
12019fi
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12021$as_echo "$lt_cv_dlopen_self_static" >&6; }
12022    fi
12023
12024    CPPFLAGS="$save_CPPFLAGS"
12025    LDFLAGS="$save_LDFLAGS"
12026    LIBS="$save_LIBS"
12027    ;;
12028  esac
12029
12030  case $lt_cv_dlopen_self in
12031  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12032  *) enable_dlopen_self=unknown ;;
12033  esac
12034
12035  case $lt_cv_dlopen_self_static in
12036  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12037  *) enable_dlopen_self_static=unknown ;;
12038  esac
12039fi
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057striplib=
12058old_striplib=
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12060$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12061if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12062  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12063  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12065$as_echo "yes" >&6; }
12066else
12067# FIXME - insert some real tests, host_os isn't really good enough
12068  case $host_os in
12069  darwin*)
12070    if test -n "$STRIP" ; then
12071      striplib="$STRIP -x"
12072      old_striplib="$STRIP -S"
12073      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12074$as_echo "yes" >&6; }
12075    else
12076      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077$as_echo "no" >&6; }
12078    fi
12079    ;;
12080  *)
12081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082$as_echo "no" >&6; }
12083    ;;
12084  esac
12085fi
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098  # Report which library types will actually be built
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12100$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12102$as_echo "$can_build_shared" >&6; }
12103
12104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12105$as_echo_n "checking whether to build shared libraries... " >&6; }
12106  test "$can_build_shared" = "no" && enable_shared=no
12107
12108  # On AIX, shared libraries and static libraries use the same namespace, and
12109  # are all built from PIC.
12110  case $host_os in
12111  aix3*)
12112    test "$enable_shared" = yes && enable_static=no
12113    if test -n "$RANLIB"; then
12114      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12115      postinstall_cmds='$RANLIB $lib'
12116    fi
12117    ;;
12118
12119  aix[4-9]*)
12120    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12121      test "$enable_shared" = yes && enable_static=no
12122    fi
12123    ;;
12124  esac
12125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12126$as_echo "$enable_shared" >&6; }
12127
12128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12129$as_echo_n "checking whether to build static libraries... " >&6; }
12130  # Make sure either enable_shared or enable_static is yes.
12131  test "$enable_shared" = yes || enable_static=yes
12132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12133$as_echo "$enable_static" >&6; }
12134
12135
12136
12137
12138fi
12139ac_ext=c
12140ac_cpp='$CPP $CPPFLAGS'
12141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12143ac_compiler_gnu=$ac_cv_c_compiler_gnu
12144
12145CC="$lt_save_CC"
12146
12147
12148ac_ext=cpp
12149ac_cpp='$CXXCPP $CPPFLAGS'
12150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12153
12154archive_cmds_need_lc_CXX=no
12155allow_undefined_flag_CXX=
12156always_export_symbols_CXX=no
12157archive_expsym_cmds_CXX=
12158compiler_needs_object_CXX=no
12159export_dynamic_flag_spec_CXX=
12160hardcode_direct_CXX=no
12161hardcode_direct_absolute_CXX=no
12162hardcode_libdir_flag_spec_CXX=
12163hardcode_libdir_flag_spec_ld_CXX=
12164hardcode_libdir_separator_CXX=
12165hardcode_minus_L_CXX=no
12166hardcode_shlibpath_var_CXX=unsupported
12167hardcode_automatic_CXX=no
12168inherit_rpath_CXX=no
12169module_cmds_CXX=
12170module_expsym_cmds_CXX=
12171link_all_deplibs_CXX=unknown
12172old_archive_cmds_CXX=$old_archive_cmds
12173no_undefined_flag_CXX=
12174whole_archive_flag_spec_CXX=
12175enable_shared_with_static_runtimes_CXX=no
12176
12177# Source file extension for C++ test sources.
12178ac_ext=cpp
12179
12180# Object file extension for compiled C++ test sources.
12181objext=o
12182objext_CXX=$objext
12183
12184# No sense in running all these tests if we already determined that
12185# the CXX compiler isn't working.  Some variables (like enable_shared)
12186# are currently assumed to apply to all compilers on this platform,
12187# and will be corrupted by setting them based on a non-working compiler.
12188if test "$_lt_caught_CXX_error" != yes; then
12189  # Code to be used in simple compile tests
12190  lt_simple_compile_test_code="int some_variable = 0;"
12191
12192  # Code to be used in simple link tests
12193  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12194
12195  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12196
12197
12198
12199
12200
12201
12202# If no C compiler was specified, use CC.
12203LTCC=${LTCC-"$CC"}
12204
12205# If no C compiler flags were specified, use CFLAGS.
12206LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12207
12208# Allow CC to be a program name with arguments.
12209compiler=$CC
12210
12211
12212  # save warnings/boilerplate of simple test code
12213  ac_outfile=conftest.$ac_objext
12214echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12215eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12216_lt_compiler_boilerplate=`cat conftest.err`
12217$RM conftest*
12218
12219  ac_outfile=conftest.$ac_objext
12220echo "$lt_simple_link_test_code" >conftest.$ac_ext
12221eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12222_lt_linker_boilerplate=`cat conftest.err`
12223$RM -r conftest*
12224
12225
12226  # Allow CC to be a program name with arguments.
12227  lt_save_CC=$CC
12228  lt_save_LD=$LD
12229  lt_save_GCC=$GCC
12230  GCC=$GXX
12231  lt_save_with_gnu_ld=$with_gnu_ld
12232  lt_save_path_LD=$lt_cv_path_LD
12233  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12234    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12235  else
12236    $as_unset lt_cv_prog_gnu_ld
12237  fi
12238  if test -n "${lt_cv_path_LDCXX+set}"; then
12239    lt_cv_path_LD=$lt_cv_path_LDCXX
12240  else
12241    $as_unset lt_cv_path_LD
12242  fi
12243  test -z "${LDCXX+set}" || LD=$LDCXX
12244  CC=${CXX-"c++"}
12245  compiler=$CC
12246  compiler_CXX=$CC
12247  for cc_temp in $compiler""; do
12248  case $cc_temp in
12249    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12250    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12251    \-*) ;;
12252    *) break;;
12253  esac
12254done
12255cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12256
12257
12258  if test -n "$compiler"; then
12259    # We don't want -fno-exception when compiling C++ code, so set the
12260    # no_builtin_flag separately
12261    if test "$GXX" = yes; then
12262      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12263    else
12264      lt_prog_compiler_no_builtin_flag_CXX=
12265    fi
12266
12267    if test "$GXX" = yes; then
12268      # Set up default GNU C++ configuration
12269
12270
12271
12272# Check whether --with-gnu-ld was given.
12273if test "${with_gnu_ld+set}" = set; then :
12274  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12275else
12276  with_gnu_ld=no
12277fi
12278
12279ac_prog=ld
12280if test "$GCC" = yes; then
12281  # Check if gcc -print-prog-name=ld gives a path.
12282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12283$as_echo_n "checking for ld used by $CC... " >&6; }
12284  case $host in
12285  *-*-mingw*)
12286    # gcc leaves a trailing carriage return which upsets mingw
12287    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12288  *)
12289    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12290  esac
12291  case $ac_prog in
12292    # Accept absolute paths.
12293    [\\/]* | ?:[\\/]*)
12294      re_direlt='/[^/][^/]*/\.\./'
12295      # Canonicalize the pathname of ld
12296      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12297      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12298	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12299      done
12300      test -z "$LD" && LD="$ac_prog"
12301      ;;
12302  "")
12303    # If it fails, then pretend we aren't using GCC.
12304    ac_prog=ld
12305    ;;
12306  *)
12307    # If it is relative, then search for the first ld in PATH.
12308    with_gnu_ld=unknown
12309    ;;
12310  esac
12311elif test "$with_gnu_ld" = yes; then
12312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12313$as_echo_n "checking for GNU ld... " >&6; }
12314else
12315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12316$as_echo_n "checking for non-GNU ld... " >&6; }
12317fi
12318if test "${lt_cv_path_LD+set}" = set; then :
12319  $as_echo_n "(cached) " >&6
12320else
12321  if test -z "$LD"; then
12322  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12323  for ac_dir in $PATH; do
12324    IFS="$lt_save_ifs"
12325    test -z "$ac_dir" && ac_dir=.
12326    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12327      lt_cv_path_LD="$ac_dir/$ac_prog"
12328      # Check to see if the program is GNU ld.  I'd rather use --version,
12329      # but apparently some variants of GNU ld only accept -v.
12330      # Break only if it was the GNU/non-GNU ld that we prefer.
12331      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12332      *GNU* | *'with BFD'*)
12333	test "$with_gnu_ld" != no && break
12334	;;
12335      *)
12336	test "$with_gnu_ld" != yes && break
12337	;;
12338      esac
12339    fi
12340  done
12341  IFS="$lt_save_ifs"
12342else
12343  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12344fi
12345fi
12346
12347LD="$lt_cv_path_LD"
12348if test -n "$LD"; then
12349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12350$as_echo "$LD" >&6; }
12351else
12352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353$as_echo "no" >&6; }
12354fi
12355test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12357$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12358if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12359  $as_echo_n "(cached) " >&6
12360else
12361  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12362case `$LD -v 2>&1 </dev/null` in
12363*GNU* | *'with BFD'*)
12364  lt_cv_prog_gnu_ld=yes
12365  ;;
12366*)
12367  lt_cv_prog_gnu_ld=no
12368  ;;
12369esac
12370fi
12371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12372$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12373with_gnu_ld=$lt_cv_prog_gnu_ld
12374
12375
12376
12377
12378
12379
12380
12381      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12382      # archiving commands below assume that GNU ld is being used.
12383      if test "$with_gnu_ld" = yes; then
12384        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12385        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'
12386
12387        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12388        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12389
12390        # If archive_cmds runs LD, not CC, wlarc should be empty
12391        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12392        #     investigate it a little bit more. (MM)
12393        wlarc='${wl}'
12394
12395        # ancient GNU ld didn't support --whole-archive et. al.
12396        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12397	  $GREP 'no-whole-archive' > /dev/null; then
12398          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12399        else
12400          whole_archive_flag_spec_CXX=
12401        fi
12402      else
12403        with_gnu_ld=no
12404        wlarc=
12405
12406        # A generic and very simple default shared library creation
12407        # command for GNU C++ for the case where it uses the native
12408        # linker, instead of GNU ld.  If possible, this setting should
12409        # overridden to take advantage of the native linker features on
12410        # the platform it is being used on.
12411        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12412      fi
12413
12414      # Commands to make compiler produce verbose output that lists
12415      # what "hidden" libraries, object files and flags are used when
12416      # linking a shared library.
12417      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12418
12419    else
12420      GXX=no
12421      with_gnu_ld=no
12422      wlarc=
12423    fi
12424
12425    # PORTME: fill in a description of your system's C++ link characteristics
12426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12427$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12428    ld_shlibs_CXX=yes
12429    case $host_os in
12430      aix3*)
12431        # FIXME: insert proper C++ library support
12432        ld_shlibs_CXX=no
12433        ;;
12434      aix[4-9]*)
12435        if test "$host_cpu" = ia64; then
12436          # On IA64, the linker does run time linking by default, so we don't
12437          # have to do anything special.
12438          aix_use_runtimelinking=no
12439          exp_sym_flag='-Bexport'
12440          no_entry_flag=""
12441        else
12442          aix_use_runtimelinking=no
12443
12444          # Test if we are trying to use run time linking or normal
12445          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12446          # need to do runtime linking.
12447          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12448	    for ld_flag in $LDFLAGS; do
12449	      case $ld_flag in
12450	      *-brtl*)
12451	        aix_use_runtimelinking=yes
12452	        break
12453	        ;;
12454	      esac
12455	    done
12456	    ;;
12457          esac
12458
12459          exp_sym_flag='-bexport'
12460          no_entry_flag='-bnoentry'
12461        fi
12462
12463        # When large executables or shared objects are built, AIX ld can
12464        # have problems creating the table of contents.  If linking a library
12465        # or program results in "error TOC overflow" add -mminimal-toc to
12466        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12467        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12468
12469        archive_cmds_CXX=''
12470        hardcode_direct_CXX=yes
12471        hardcode_direct_absolute_CXX=yes
12472        hardcode_libdir_separator_CXX=':'
12473        link_all_deplibs_CXX=yes
12474        file_list_spec_CXX='${wl}-f,'
12475
12476        if test "$GXX" = yes; then
12477          case $host_os in aix4.[012]|aix4.[012].*)
12478          # We only want to do this on AIX 4.2 and lower, the check
12479          # below for broken collect2 doesn't work under 4.3+
12480	  collect2name=`${CC} -print-prog-name=collect2`
12481	  if test -f "$collect2name" &&
12482	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12483	  then
12484	    # We have reworked collect2
12485	    :
12486	  else
12487	    # We have old collect2
12488	    hardcode_direct_CXX=unsupported
12489	    # It fails to find uninstalled libraries when the uninstalled
12490	    # path is not listed in the libpath.  Setting hardcode_minus_L
12491	    # to unsupported forces relinking
12492	    hardcode_minus_L_CXX=yes
12493	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12494	    hardcode_libdir_separator_CXX=
12495	  fi
12496          esac
12497          shared_flag='-shared'
12498	  if test "$aix_use_runtimelinking" = yes; then
12499	    shared_flag="$shared_flag "'${wl}-G'
12500	  fi
12501        else
12502          # not using gcc
12503          if test "$host_cpu" = ia64; then
12504	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12505	  # chokes on -Wl,-G. The following line is correct:
12506	  shared_flag='-G'
12507          else
12508	    if test "$aix_use_runtimelinking" = yes; then
12509	      shared_flag='${wl}-G'
12510	    else
12511	      shared_flag='${wl}-bM:SRE'
12512	    fi
12513          fi
12514        fi
12515
12516        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12517        # It seems that -bexpall does not export symbols beginning with
12518        # underscore (_), so it is better to generate a list of symbols to
12519	# export.
12520        always_export_symbols_CXX=yes
12521        if test "$aix_use_runtimelinking" = yes; then
12522          # Warning - without using the other runtime loading flags (-brtl),
12523          # -berok will link without error, but may produce a broken library.
12524          allow_undefined_flag_CXX='-berok'
12525          # Determine the default libpath from the value encoded in an empty
12526          # executable.
12527          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528/* end confdefs.h.  */
12529
12530int
12531main ()
12532{
12533
12534  ;
12535  return 0;
12536}
12537_ACEOF
12538if ac_fn_cxx_try_link "$LINENO"; then :
12539
12540lt_aix_libpath_sed='
12541    /Import File Strings/,/^$/ {
12542	/^0/ {
12543	    s/^0  *\(.*\)$/\1/
12544	    p
12545	}
12546    }'
12547aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12548# Check for a 64-bit object if we didn't find anything.
12549if test -z "$aix_libpath"; then
12550  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12551fi
12552fi
12553rm -f core conftest.err conftest.$ac_objext \
12554    conftest$ac_exeext conftest.$ac_ext
12555if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12556
12557          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12558
12559          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"
12560        else
12561          if test "$host_cpu" = ia64; then
12562	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12563	    allow_undefined_flag_CXX="-z nodefs"
12564	    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"
12565          else
12566	    # Determine the default libpath from the value encoded in an
12567	    # empty executable.
12568	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569/* end confdefs.h.  */
12570
12571int
12572main ()
12573{
12574
12575  ;
12576  return 0;
12577}
12578_ACEOF
12579if ac_fn_cxx_try_link "$LINENO"; then :
12580
12581lt_aix_libpath_sed='
12582    /Import File Strings/,/^$/ {
12583	/^0/ {
12584	    s/^0  *\(.*\)$/\1/
12585	    p
12586	}
12587    }'
12588aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12589# Check for a 64-bit object if we didn't find anything.
12590if test -z "$aix_libpath"; then
12591  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12592fi
12593fi
12594rm -f core conftest.err conftest.$ac_objext \
12595    conftest$ac_exeext conftest.$ac_ext
12596if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12597
12598	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12599	    # Warning - without using the other run time loading flags,
12600	    # -berok will link without error, but may produce a broken library.
12601	    no_undefined_flag_CXX=' ${wl}-bernotok'
12602	    allow_undefined_flag_CXX=' ${wl}-berok'
12603	    # Exported symbols can be pulled into shared objects from archives
12604	    whole_archive_flag_spec_CXX='$convenience'
12605	    archive_cmds_need_lc_CXX=yes
12606	    # This is similar to how AIX traditionally builds its shared
12607	    # libraries.
12608	    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'
12609          fi
12610        fi
12611        ;;
12612
12613      beos*)
12614	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12615	  allow_undefined_flag_CXX=unsupported
12616	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12617	  # support --undefined.  This deserves some investigation.  FIXME
12618	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619	else
12620	  ld_shlibs_CXX=no
12621	fi
12622	;;
12623
12624      chorus*)
12625        case $cc_basename in
12626          *)
12627	  # FIXME: insert proper C++ library support
12628	  ld_shlibs_CXX=no
12629	  ;;
12630        esac
12631        ;;
12632
12633      cygwin* | mingw* | pw32* | cegcc*)
12634        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12635        # as there is no search path for DLLs.
12636        hardcode_libdir_flag_spec_CXX='-L$libdir'
12637        allow_undefined_flag_CXX=unsupported
12638        always_export_symbols_CXX=no
12639        enable_shared_with_static_runtimes_CXX=yes
12640
12641        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12642          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'
12643          # If the export-symbols file already is a .def file (1st line
12644          # is EXPORTS), use it as is; otherwise, prepend...
12645          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12646	    cp $export_symbols $output_objdir/$soname.def;
12647          else
12648	    echo EXPORTS > $output_objdir/$soname.def;
12649	    cat $export_symbols >> $output_objdir/$soname.def;
12650          fi~
12651          $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'
12652        else
12653          ld_shlibs_CXX=no
12654        fi
12655        ;;
12656      darwin* | rhapsody*)
12657
12658
12659  archive_cmds_need_lc_CXX=no
12660  hardcode_direct_CXX=no
12661  hardcode_automatic_CXX=yes
12662  hardcode_shlibpath_var_CXX=unsupported
12663  whole_archive_flag_spec_CXX=''
12664  link_all_deplibs_CXX=yes
12665  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12666  case $cc_basename in
12667     ifort*) _lt_dar_can_shared=yes ;;
12668     *) _lt_dar_can_shared=$GCC ;;
12669  esac
12670  if test "$_lt_dar_can_shared" = "yes"; then
12671    output_verbose_link_cmd=echo
12672    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}"
12673    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12674    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}"
12675    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}"
12676       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12677      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}"
12678      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}"
12679    fi
12680
12681  else
12682  ld_shlibs_CXX=no
12683  fi
12684
12685	;;
12686
12687      dgux*)
12688        case $cc_basename in
12689          ec++*)
12690	    # FIXME: insert proper C++ library support
12691	    ld_shlibs_CXX=no
12692	    ;;
12693          ghcx*)
12694	    # Green Hills C++ Compiler
12695	    # FIXME: insert proper C++ library support
12696	    ld_shlibs_CXX=no
12697	    ;;
12698          *)
12699	    # FIXME: insert proper C++ library support
12700	    ld_shlibs_CXX=no
12701	    ;;
12702        esac
12703        ;;
12704
12705      freebsd[12]*)
12706        # C++ shared libraries reported to be fairly broken before
12707	# switch to ELF
12708        ld_shlibs_CXX=no
12709        ;;
12710
12711      freebsd-elf*)
12712        archive_cmds_need_lc_CXX=no
12713        ;;
12714
12715      freebsd* | dragonfly*)
12716        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12717        # conventions
12718        ld_shlibs_CXX=yes
12719        ;;
12720
12721      gnu*)
12722        ;;
12723
12724      hpux9*)
12725        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12726        hardcode_libdir_separator_CXX=:
12727        export_dynamic_flag_spec_CXX='${wl}-E'
12728        hardcode_direct_CXX=yes
12729        hardcode_minus_L_CXX=yes # Not in the search PATH,
12730				             # but as the default
12731				             # location of the library.
12732
12733        case $cc_basename in
12734          CC*)
12735            # FIXME: insert proper C++ library support
12736            ld_shlibs_CXX=no
12737            ;;
12738          aCC*)
12739            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'
12740            # Commands to make compiler produce verbose output that lists
12741            # what "hidden" libraries, object files and flags are used when
12742            # linking a shared library.
12743            #
12744            # There doesn't appear to be a way to prevent this compiler from
12745            # explicitly linking system object files so we need to strip them
12746            # from the output so that they don't get included in the library
12747            # dependencies.
12748            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'
12749            ;;
12750          *)
12751            if test "$GXX" = yes; then
12752              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'
12753            else
12754              # FIXME: insert proper C++ library support
12755              ld_shlibs_CXX=no
12756            fi
12757            ;;
12758        esac
12759        ;;
12760
12761      hpux10*|hpux11*)
12762        if test $with_gnu_ld = no; then
12763	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12764	  hardcode_libdir_separator_CXX=:
12765
12766          case $host_cpu in
12767            hppa*64*|ia64*)
12768              ;;
12769            *)
12770	      export_dynamic_flag_spec_CXX='${wl}-E'
12771              ;;
12772          esac
12773        fi
12774        case $host_cpu in
12775          hppa*64*|ia64*)
12776            hardcode_direct_CXX=no
12777            hardcode_shlibpath_var_CXX=no
12778            ;;
12779          *)
12780            hardcode_direct_CXX=yes
12781            hardcode_direct_absolute_CXX=yes
12782            hardcode_minus_L_CXX=yes # Not in the search PATH,
12783					         # but as the default
12784					         # location of the library.
12785            ;;
12786        esac
12787
12788        case $cc_basename in
12789          CC*)
12790	    # FIXME: insert proper C++ library support
12791	    ld_shlibs_CXX=no
12792	    ;;
12793          aCC*)
12794	    case $host_cpu in
12795	      hppa*64*)
12796	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12797	        ;;
12798	      ia64*)
12799	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12800	        ;;
12801	      *)
12802	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12803	        ;;
12804	    esac
12805	    # Commands to make compiler produce verbose output that lists
12806	    # what "hidden" libraries, object files and flags are used when
12807	    # linking a shared library.
12808	    #
12809	    # There doesn't appear to be a way to prevent this compiler from
12810	    # explicitly linking system object files so we need to strip them
12811	    # from the output so that they don't get included in the library
12812	    # dependencies.
12813	    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'
12814	    ;;
12815          *)
12816	    if test "$GXX" = yes; then
12817	      if test $with_gnu_ld = no; then
12818	        case $host_cpu in
12819	          hppa*64*)
12820	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12821	            ;;
12822	          ia64*)
12823	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12824	            ;;
12825	          *)
12826	            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'
12827	            ;;
12828	        esac
12829	      fi
12830	    else
12831	      # FIXME: insert proper C++ library support
12832	      ld_shlibs_CXX=no
12833	    fi
12834	    ;;
12835        esac
12836        ;;
12837
12838      interix[3-9]*)
12839	hardcode_direct_CXX=no
12840	hardcode_shlibpath_var_CXX=no
12841	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12842	export_dynamic_flag_spec_CXX='${wl}-E'
12843	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12844	# Instead, shared libraries are loaded at an image base (0x10000000 by
12845	# default) and relocated if they conflict, which is a slow very memory
12846	# consuming and fragmenting process.  To avoid this, we pick a random,
12847	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12848	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12849	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'
12850	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'
12851	;;
12852      irix5* | irix6*)
12853        case $cc_basename in
12854          CC*)
12855	    # SGI C++
12856	    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'
12857
12858	    # Archives containing C++ object files must be created using
12859	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12860	    # necessary to make sure instantiated templates are included
12861	    # in the archive.
12862	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12863	    ;;
12864          *)
12865	    if test "$GXX" = yes; then
12866	      if test "$with_gnu_ld" = no; then
12867	        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'
12868	      else
12869	        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'
12870	      fi
12871	    fi
12872	    link_all_deplibs_CXX=yes
12873	    ;;
12874        esac
12875        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12876        hardcode_libdir_separator_CXX=:
12877        inherit_rpath_CXX=yes
12878        ;;
12879
12880      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12881        case $cc_basename in
12882          KCC*)
12883	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12884
12885	    # KCC will only create a shared library if the output file
12886	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12887	    # to its proper name (with version) after linking.
12888	    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'
12889	    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'
12890	    # Commands to make compiler produce verbose output that lists
12891	    # what "hidden" libraries, object files and flags are used when
12892	    # linking a shared library.
12893	    #
12894	    # There doesn't appear to be a way to prevent this compiler from
12895	    # explicitly linking system object files so we need to strip them
12896	    # from the output so that they don't get included in the library
12897	    # dependencies.
12898	    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'
12899
12900	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12901	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12902
12903	    # Archives containing C++ object files must be created using
12904	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12905	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12906	    ;;
12907	  icpc* | ecpc* )
12908	    # Intel C++
12909	    with_gnu_ld=yes
12910	    # version 8.0 and above of icpc choke on multiply defined symbols
12911	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12912	    # earlier do not add the objects themselves.
12913	    case `$CC -V 2>&1` in
12914	      *"Version 7."*)
12915	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916		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'
12917		;;
12918	      *)  # Version 8.0 or newer
12919	        tmp_idyn=
12920	        case $host_cpu in
12921		  ia64*) tmp_idyn=' -i_dynamic';;
12922		esac
12923	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12924		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'
12925		;;
12926	    esac
12927	    archive_cmds_need_lc_CXX=no
12928	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12929	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12930	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12931	    ;;
12932          pgCC* | pgcpp*)
12933            # Portland Group C++ compiler
12934	    case `$CC -V` in
12935	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12936	      prelink_cmds_CXX='tpldir=Template.dir~
12937		rm -rf $tpldir~
12938		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12939		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12940	      old_archive_cmds_CXX='tpldir=Template.dir~
12941		rm -rf $tpldir~
12942		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12943		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12944		$RANLIB $oldlib'
12945	      archive_cmds_CXX='tpldir=Template.dir~
12946		rm -rf $tpldir~
12947		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12948		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12949	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12950		rm -rf $tpldir~
12951		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12952		$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'
12953	      ;;
12954	    *) # Version 6 will use weak symbols
12955	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12956	      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'
12957	      ;;
12958	    esac
12959
12960	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12961	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12962	    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'
12963            ;;
12964	  cxx*)
12965	    # Compaq C++
12966	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12967	    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'
12968
12969	    runpath_var=LD_RUN_PATH
12970	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12971	    hardcode_libdir_separator_CXX=:
12972
12973	    # Commands to make compiler produce verbose output that lists
12974	    # what "hidden" libraries, object files and flags are used when
12975	    # linking a shared library.
12976	    #
12977	    # There doesn't appear to be a way to prevent this compiler from
12978	    # explicitly linking system object files so we need to strip them
12979	    # from the output so that they don't get included in the library
12980	    # dependencies.
12981	    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'
12982	    ;;
12983	  xl*)
12984	    # IBM XL 8.0 on PPC, with GNU ld
12985	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12986	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12987	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12988	    if test "x$supports_anon_versioning" = xyes; then
12989	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12990		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12991		echo "local: *; };" >> $output_objdir/$libname.ver~
12992		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12993	    fi
12994	    ;;
12995	  *)
12996	    case `$CC -V 2>&1 | sed 5q` in
12997	    *Sun\ C*)
12998	      # Sun C++ 5.9
12999	      no_undefined_flag_CXX=' -zdefs'
13000	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13001	      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'
13002	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13003	      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'
13004	      compiler_needs_object_CXX=yes
13005
13006	      # Not sure whether something based on
13007	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13008	      # would be better.
13009	      output_verbose_link_cmd='echo'
13010
13011	      # Archives containing C++ object files must be created using
13012	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13013	      # necessary to make sure instantiated templates are included
13014	      # in the archive.
13015	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13016	      ;;
13017	    esac
13018	    ;;
13019	esac
13020	;;
13021
13022      lynxos*)
13023        # FIXME: insert proper C++ library support
13024	ld_shlibs_CXX=no
13025	;;
13026
13027      m88k*)
13028        # FIXME: insert proper C++ library support
13029        ld_shlibs_CXX=no
13030	;;
13031
13032      mvs*)
13033        case $cc_basename in
13034          cxx*)
13035	    # FIXME: insert proper C++ library support
13036	    ld_shlibs_CXX=no
13037	    ;;
13038	  *)
13039	    # FIXME: insert proper C++ library support
13040	    ld_shlibs_CXX=no
13041	    ;;
13042	esac
13043	;;
13044
13045      netbsd*)
13046        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13047	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13048	  wlarc=
13049	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13050	  hardcode_direct_CXX=yes
13051	  hardcode_shlibpath_var_CXX=no
13052	fi
13053	# Workaround some broken pre-1.5 toolchains
13054	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13055	;;
13056
13057      *nto* | *qnx*)
13058        ld_shlibs_CXX=yes
13059	;;
13060
13061      openbsd2*)
13062        # C++ shared libraries are fairly broken
13063	ld_shlibs_CXX=no
13064	;;
13065
13066      openbsd*)
13067	if test -f /usr/libexec/ld.so; then
13068	  hardcode_direct_CXX=yes
13069	  hardcode_shlibpath_var_CXX=no
13070	  hardcode_direct_absolute_CXX=yes
13071	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13072	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13073	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13074	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13075	    export_dynamic_flag_spec_CXX='${wl}-E'
13076	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13077	  fi
13078	  output_verbose_link_cmd=echo
13079	else
13080	  ld_shlibs_CXX=no
13081	fi
13082	;;
13083
13084      osf3* | osf4* | osf5*)
13085        case $cc_basename in
13086          KCC*)
13087	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13088
13089	    # KCC will only create a shared library if the output file
13090	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13091	    # to its proper name (with version) after linking.
13092	    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'
13093
13094	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13095	    hardcode_libdir_separator_CXX=:
13096
13097	    # Archives containing C++ object files must be created using
13098	    # the KAI C++ compiler.
13099	    case $host in
13100	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13101	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13102	    esac
13103	    ;;
13104          RCC*)
13105	    # Rational C++ 2.4.1
13106	    # FIXME: insert proper C++ library support
13107	    ld_shlibs_CXX=no
13108	    ;;
13109          cxx*)
13110	    case $host in
13111	      osf3*)
13112	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13113	        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'
13114	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13115		;;
13116	      *)
13117	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13118	        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'
13119	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13120	          echo "-hidden">> $lib.exp~
13121	          $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~
13122	          $RM $lib.exp'
13123	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13124		;;
13125	    esac
13126
13127	    hardcode_libdir_separator_CXX=:
13128
13129	    # Commands to make compiler produce verbose output that lists
13130	    # what "hidden" libraries, object files and flags are used when
13131	    # linking a shared library.
13132	    #
13133	    # There doesn't appear to be a way to prevent this compiler from
13134	    # explicitly linking system object files so we need to strip them
13135	    # from the output so that they don't get included in the library
13136	    # dependencies.
13137	    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'
13138	    ;;
13139	  *)
13140	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13141	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13142	      case $host in
13143	        osf3*)
13144	          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'
13145		  ;;
13146	        *)
13147	          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'
13148		  ;;
13149	      esac
13150
13151	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13152	      hardcode_libdir_separator_CXX=:
13153
13154	      # Commands to make compiler produce verbose output that lists
13155	      # what "hidden" libraries, object files and flags are used when
13156	      # linking a shared library.
13157	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13158
13159	    else
13160	      # FIXME: insert proper C++ library support
13161	      ld_shlibs_CXX=no
13162	    fi
13163	    ;;
13164        esac
13165        ;;
13166
13167      psos*)
13168        # FIXME: insert proper C++ library support
13169        ld_shlibs_CXX=no
13170        ;;
13171
13172      sunos4*)
13173        case $cc_basename in
13174          CC*)
13175	    # Sun C++ 4.x
13176	    # FIXME: insert proper C++ library support
13177	    ld_shlibs_CXX=no
13178	    ;;
13179          lcc*)
13180	    # Lucid
13181	    # FIXME: insert proper C++ library support
13182	    ld_shlibs_CXX=no
13183	    ;;
13184          *)
13185	    # FIXME: insert proper C++ library support
13186	    ld_shlibs_CXX=no
13187	    ;;
13188        esac
13189        ;;
13190
13191      solaris*)
13192        case $cc_basename in
13193          CC*)
13194	    # Sun C++ 4.2, 5.x and Centerline C++
13195            archive_cmds_need_lc_CXX=yes
13196	    no_undefined_flag_CXX=' -zdefs'
13197	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13198	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13199	      $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'
13200
13201	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13202	    hardcode_shlibpath_var_CXX=no
13203	    case $host_os in
13204	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13205	      *)
13206		# The compiler driver will combine and reorder linker options,
13207		# but understands `-z linker_flag'.
13208	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13209		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13210	        ;;
13211	    esac
13212	    link_all_deplibs_CXX=yes
13213
13214	    output_verbose_link_cmd='echo'
13215
13216	    # Archives containing C++ object files must be created using
13217	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13218	    # necessary to make sure instantiated templates are included
13219	    # in the archive.
13220	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13221	    ;;
13222          gcx*)
13223	    # Green Hills C++ Compiler
13224	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13225
13226	    # The C++ compiler must be used to create the archive.
13227	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13228	    ;;
13229          *)
13230	    # GNU C++ compiler with Solaris linker
13231	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13232	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13233	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13234	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13235	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13236		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13237
13238	        # Commands to make compiler produce verbose output that lists
13239	        # what "hidden" libraries, object files and flags are used when
13240	        # linking a shared library.
13241	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13242	      else
13243	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13244	        # platform.
13245	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13246	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13247		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13248
13249	        # Commands to make compiler produce verbose output that lists
13250	        # what "hidden" libraries, object files and flags are used when
13251	        # linking a shared library.
13252	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13253	      fi
13254
13255	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13256	      case $host_os in
13257		solaris2.[0-5] | solaris2.[0-5].*) ;;
13258		*)
13259		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13260		  ;;
13261	      esac
13262	    fi
13263	    ;;
13264        esac
13265        ;;
13266
13267    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13268      no_undefined_flag_CXX='${wl}-z,text'
13269      archive_cmds_need_lc_CXX=no
13270      hardcode_shlibpath_var_CXX=no
13271      runpath_var='LD_RUN_PATH'
13272
13273      case $cc_basename in
13274        CC*)
13275	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13276	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13277	  ;;
13278	*)
13279	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13280	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13281	  ;;
13282      esac
13283      ;;
13284
13285      sysv5* | sco3.2v5* | sco5v6*)
13286	# Note: We can NOT use -z defs as we might desire, because we do not
13287	# link with -lc, and that would cause any symbols used from libc to
13288	# always be unresolved, which means just about no library would
13289	# ever link correctly.  If we're not using GNU ld we use -z text
13290	# though, which does catch some bad symbols but isn't as heavy-handed
13291	# as -z defs.
13292	no_undefined_flag_CXX='${wl}-z,text'
13293	allow_undefined_flag_CXX='${wl}-z,nodefs'
13294	archive_cmds_need_lc_CXX=no
13295	hardcode_shlibpath_var_CXX=no
13296	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13297	hardcode_libdir_separator_CXX=':'
13298	link_all_deplibs_CXX=yes
13299	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13300	runpath_var='LD_RUN_PATH'
13301
13302	case $cc_basename in
13303          CC*)
13304	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13306	    ;;
13307	  *)
13308	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13310	    ;;
13311	esac
13312      ;;
13313
13314      tandem*)
13315        case $cc_basename in
13316          NCC*)
13317	    # NonStop-UX NCC 3.20
13318	    # FIXME: insert proper C++ library support
13319	    ld_shlibs_CXX=no
13320	    ;;
13321          *)
13322	    # FIXME: insert proper C++ library support
13323	    ld_shlibs_CXX=no
13324	    ;;
13325        esac
13326        ;;
13327
13328      vxworks*)
13329        # FIXME: insert proper C++ library support
13330        ld_shlibs_CXX=no
13331        ;;
13332
13333      *)
13334        # FIXME: insert proper C++ library support
13335        ld_shlibs_CXX=no
13336        ;;
13337    esac
13338
13339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13340$as_echo "$ld_shlibs_CXX" >&6; }
13341    test "$ld_shlibs_CXX" = no && can_build_shared=no
13342
13343    GCC_CXX="$GXX"
13344    LD_CXX="$LD"
13345
13346    ## CAVEAT EMPTOR:
13347    ## There is no encapsulation within the following macros, do not change
13348    ## the running order or otherwise move them around unless you know exactly
13349    ## what you are doing...
13350    # Dependencies to place before and after the object being linked:
13351predep_objects_CXX=
13352postdep_objects_CXX=
13353predeps_CXX=
13354postdeps_CXX=
13355compiler_lib_search_path_CXX=
13356
13357cat > conftest.$ac_ext <<_LT_EOF
13358class Foo
13359{
13360public:
13361  Foo (void) { a = 0; }
13362private:
13363  int a;
13364};
13365_LT_EOF
13366
13367if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13368  (eval $ac_compile) 2>&5
13369  ac_status=$?
13370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371  test $ac_status = 0; }; then
13372  # Parse the compiler output and extract the necessary
13373  # objects, libraries and library flags.
13374
13375  # Sentinel used to keep track of whether or not we are before
13376  # the conftest object file.
13377  pre_test_object_deps_done=no
13378
13379  for p in `eval "$output_verbose_link_cmd"`; do
13380    case $p in
13381
13382    -L* | -R* | -l*)
13383       # Some compilers place space between "-{L,R}" and the path.
13384       # Remove the space.
13385       if test $p = "-L" ||
13386          test $p = "-R"; then
13387	 prev=$p
13388	 continue
13389       else
13390	 prev=
13391       fi
13392
13393       if test "$pre_test_object_deps_done" = no; then
13394	 case $p in
13395	 -L* | -R*)
13396	   # Internal compiler library paths should come after those
13397	   # provided the user.  The postdeps already come after the
13398	   # user supplied libs so there is no need to process them.
13399	   if test -z "$compiler_lib_search_path_CXX"; then
13400	     compiler_lib_search_path_CXX="${prev}${p}"
13401	   else
13402	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13403	   fi
13404	   ;;
13405	 # The "-l" case would never come before the object being
13406	 # linked, so don't bother handling this case.
13407	 esac
13408       else
13409	 if test -z "$postdeps_CXX"; then
13410	   postdeps_CXX="${prev}${p}"
13411	 else
13412	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13413	 fi
13414       fi
13415       ;;
13416
13417    *.$objext)
13418       # This assumes that the test object file only shows up
13419       # once in the compiler output.
13420       if test "$p" = "conftest.$objext"; then
13421	 pre_test_object_deps_done=yes
13422	 continue
13423       fi
13424
13425       if test "$pre_test_object_deps_done" = no; then
13426	 if test -z "$predep_objects_CXX"; then
13427	   predep_objects_CXX="$p"
13428	 else
13429	   predep_objects_CXX="$predep_objects_CXX $p"
13430	 fi
13431       else
13432	 if test -z "$postdep_objects_CXX"; then
13433	   postdep_objects_CXX="$p"
13434	 else
13435	   postdep_objects_CXX="$postdep_objects_CXX $p"
13436	 fi
13437       fi
13438       ;;
13439
13440    *) ;; # Ignore the rest.
13441
13442    esac
13443  done
13444
13445  # Clean up.
13446  rm -f a.out a.exe
13447else
13448  echo "libtool.m4: error: problem compiling CXX test program"
13449fi
13450
13451$RM -f confest.$objext
13452
13453# PORTME: override above test on systems where it is broken
13454case $host_os in
13455interix[3-9]*)
13456  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13457  # hack all around it, let's just trust "g++" to DTRT.
13458  predep_objects_CXX=
13459  postdep_objects_CXX=
13460  postdeps_CXX=
13461  ;;
13462
13463linux*)
13464  case `$CC -V 2>&1 | sed 5q` in
13465  *Sun\ C*)
13466    # Sun C++ 5.9
13467
13468    # The more standards-conforming stlport4 library is
13469    # incompatible with the Cstd library. Avoid specifying
13470    # it if it's in CXXFLAGS. Ignore libCrun as
13471    # -library=stlport4 depends on it.
13472    case " $CXX $CXXFLAGS " in
13473    *" -library=stlport4 "*)
13474      solaris_use_stlport4=yes
13475      ;;
13476    esac
13477
13478    if test "$solaris_use_stlport4" != yes; then
13479      postdeps_CXX='-library=Cstd -library=Crun'
13480    fi
13481    ;;
13482  esac
13483  ;;
13484
13485solaris*)
13486  case $cc_basename in
13487  CC*)
13488    # The more standards-conforming stlport4 library is
13489    # incompatible with the Cstd library. Avoid specifying
13490    # it if it's in CXXFLAGS. Ignore libCrun as
13491    # -library=stlport4 depends on it.
13492    case " $CXX $CXXFLAGS " in
13493    *" -library=stlport4 "*)
13494      solaris_use_stlport4=yes
13495      ;;
13496    esac
13497
13498    # Adding this requires a known-good setup of shared libraries for
13499    # Sun compiler versions before 5.6, else PIC objects from an old
13500    # archive will be linked into the output, leading to subtle bugs.
13501    if test "$solaris_use_stlport4" != yes; then
13502      postdeps_CXX='-library=Cstd -library=Crun'
13503    fi
13504    ;;
13505  esac
13506  ;;
13507esac
13508
13509
13510case " $postdeps_CXX " in
13511*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13512esac
13513 compiler_lib_search_dirs_CXX=
13514if test -n "${compiler_lib_search_path_CXX}"; then
13515 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13516fi
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    lt_prog_compiler_wl_CXX=
13549lt_prog_compiler_pic_CXX=
13550lt_prog_compiler_static_CXX=
13551
13552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13553$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13554
13555  # C++ specific cases for pic, static, wl, etc.
13556  if test "$GXX" = yes; then
13557    lt_prog_compiler_wl_CXX='-Wl,'
13558    lt_prog_compiler_static_CXX='-static'
13559
13560    case $host_os in
13561    aix*)
13562      # All AIX code is PIC.
13563      if test "$host_cpu" = ia64; then
13564	# AIX 5 now supports IA64 processor
13565	lt_prog_compiler_static_CXX='-Bstatic'
13566      fi
13567      ;;
13568
13569    amigaos*)
13570      case $host_cpu in
13571      powerpc)
13572            # see comment about AmigaOS4 .so support
13573            lt_prog_compiler_pic_CXX='-fPIC'
13574        ;;
13575      m68k)
13576            # FIXME: we need at least 68020 code to build shared libraries, but
13577            # adding the `-m68020' flag to GCC prevents building anything better,
13578            # like `-m68040'.
13579            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13580        ;;
13581      esac
13582      ;;
13583
13584    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13585      # PIC is the default for these OSes.
13586      ;;
13587    mingw* | cygwin* | os2* | pw32* | cegcc*)
13588      # This hack is so that the source file can tell whether it is being
13589      # built for inclusion in a dll (and should export symbols for example).
13590      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13591      # (--disable-auto-import) libraries
13592      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13593      ;;
13594    darwin* | rhapsody*)
13595      # PIC is the default on this platform
13596      # Common symbols not allowed in MH_DYLIB files
13597      lt_prog_compiler_pic_CXX='-fno-common'
13598      ;;
13599    *djgpp*)
13600      # DJGPP does not support shared libraries at all
13601      lt_prog_compiler_pic_CXX=
13602      ;;
13603    interix[3-9]*)
13604      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13605      # Instead, we relocate shared libraries at runtime.
13606      ;;
13607    sysv4*MP*)
13608      if test -d /usr/nec; then
13609	lt_prog_compiler_pic_CXX=-Kconform_pic
13610      fi
13611      ;;
13612    hpux*)
13613      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13614      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13615      # sets the default TLS model and affects inlining.
13616      case $host_cpu in
13617      hppa*64*)
13618	;;
13619      *)
13620	lt_prog_compiler_pic_CXX='-fPIC'
13621	;;
13622      esac
13623      ;;
13624    *qnx* | *nto*)
13625      # QNX uses GNU C++, but need to define -shared option too, otherwise
13626      # it will coredump.
13627      lt_prog_compiler_pic_CXX='-fPIC -shared'
13628      ;;
13629    *)
13630      lt_prog_compiler_pic_CXX='-fPIC'
13631      ;;
13632    esac
13633  else
13634    case $host_os in
13635      aix[4-9]*)
13636	# All AIX code is PIC.
13637	if test "$host_cpu" = ia64; then
13638	  # AIX 5 now supports IA64 processor
13639	  lt_prog_compiler_static_CXX='-Bstatic'
13640	else
13641	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13642	fi
13643	;;
13644      chorus*)
13645	case $cc_basename in
13646	cxch68*)
13647	  # Green Hills C++ Compiler
13648	  # _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"
13649	  ;;
13650	esac
13651	;;
13652      dgux*)
13653	case $cc_basename in
13654	  ec++*)
13655	    lt_prog_compiler_pic_CXX='-KPIC'
13656	    ;;
13657	  ghcx*)
13658	    # Green Hills C++ Compiler
13659	    lt_prog_compiler_pic_CXX='-pic'
13660	    ;;
13661	  *)
13662	    ;;
13663	esac
13664	;;
13665      freebsd* | dragonfly*)
13666	# FreeBSD uses GNU C++
13667	;;
13668      hpux9* | hpux10* | hpux11*)
13669	case $cc_basename in
13670	  CC*)
13671	    lt_prog_compiler_wl_CXX='-Wl,'
13672	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13673	    if test "$host_cpu" != ia64; then
13674	      lt_prog_compiler_pic_CXX='+Z'
13675	    fi
13676	    ;;
13677	  aCC*)
13678	    lt_prog_compiler_wl_CXX='-Wl,'
13679	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13680	    case $host_cpu in
13681	    hppa*64*|ia64*)
13682	      # +Z the default
13683	      ;;
13684	    *)
13685	      lt_prog_compiler_pic_CXX='+Z'
13686	      ;;
13687	    esac
13688	    ;;
13689	  *)
13690	    ;;
13691	esac
13692	;;
13693      interix*)
13694	# This is c89, which is MS Visual C++ (no shared libs)
13695	# Anyone wants to do a port?
13696	;;
13697      irix5* | irix6* | nonstopux*)
13698	case $cc_basename in
13699	  CC*)
13700	    lt_prog_compiler_wl_CXX='-Wl,'
13701	    lt_prog_compiler_static_CXX='-non_shared'
13702	    # CC pic flag -KPIC is the default.
13703	    ;;
13704	  *)
13705	    ;;
13706	esac
13707	;;
13708      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13709	case $cc_basename in
13710	  KCC*)
13711	    # KAI C++ Compiler
13712	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13713	    lt_prog_compiler_pic_CXX='-fPIC'
13714	    ;;
13715	  ecpc* )
13716	    # old Intel C++ for x86_64 which still supported -KPIC.
13717	    lt_prog_compiler_wl_CXX='-Wl,'
13718	    lt_prog_compiler_pic_CXX='-KPIC'
13719	    lt_prog_compiler_static_CXX='-static'
13720	    ;;
13721	  icpc* )
13722	    # Intel C++, used to be incompatible with GCC.
13723	    # ICC 10 doesn't accept -KPIC any more.
13724	    lt_prog_compiler_wl_CXX='-Wl,'
13725	    lt_prog_compiler_pic_CXX='-fPIC'
13726	    lt_prog_compiler_static_CXX='-static'
13727	    ;;
13728	  pgCC* | pgcpp*)
13729	    # Portland Group C++ compiler
13730	    lt_prog_compiler_wl_CXX='-Wl,'
13731	    lt_prog_compiler_pic_CXX='-fpic'
13732	    lt_prog_compiler_static_CXX='-Bstatic'
13733	    ;;
13734	  cxx*)
13735	    # Compaq C++
13736	    # Make sure the PIC flag is empty.  It appears that all Alpha
13737	    # Linux and Compaq Tru64 Unix objects are PIC.
13738	    lt_prog_compiler_pic_CXX=
13739	    lt_prog_compiler_static_CXX='-non_shared'
13740	    ;;
13741	  xlc* | xlC*)
13742	    # IBM XL 8.0 on PPC
13743	    lt_prog_compiler_wl_CXX='-Wl,'
13744	    lt_prog_compiler_pic_CXX='-qpic'
13745	    lt_prog_compiler_static_CXX='-qstaticlink'
13746	    ;;
13747	  *)
13748	    case `$CC -V 2>&1 | sed 5q` in
13749	    *Sun\ C*)
13750	      # Sun C++ 5.9
13751	      lt_prog_compiler_pic_CXX='-KPIC'
13752	      lt_prog_compiler_static_CXX='-Bstatic'
13753	      lt_prog_compiler_wl_CXX='-Qoption ld '
13754	      ;;
13755	    esac
13756	    ;;
13757	esac
13758	;;
13759      lynxos*)
13760	;;
13761      m88k*)
13762	;;
13763      mvs*)
13764	case $cc_basename in
13765	  cxx*)
13766	    lt_prog_compiler_pic_CXX='-W c,exportall'
13767	    ;;
13768	  *)
13769	    ;;
13770	esac
13771	;;
13772      netbsd* | netbsdelf*-gnu)
13773	;;
13774      *qnx* | *nto*)
13775        # QNX uses GNU C++, but need to define -shared option too, otherwise
13776        # it will coredump.
13777        lt_prog_compiler_pic_CXX='-fPIC -shared'
13778        ;;
13779      osf3* | osf4* | osf5*)
13780	case $cc_basename in
13781	  KCC*)
13782	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13783	    ;;
13784	  RCC*)
13785	    # Rational C++ 2.4.1
13786	    lt_prog_compiler_pic_CXX='-pic'
13787	    ;;
13788	  cxx*)
13789	    # Digital/Compaq C++
13790	    lt_prog_compiler_wl_CXX='-Wl,'
13791	    # Make sure the PIC flag is empty.  It appears that all Alpha
13792	    # Linux and Compaq Tru64 Unix objects are PIC.
13793	    lt_prog_compiler_pic_CXX=
13794	    lt_prog_compiler_static_CXX='-non_shared'
13795	    ;;
13796	  *)
13797	    ;;
13798	esac
13799	;;
13800      psos*)
13801	;;
13802      solaris*)
13803	case $cc_basename in
13804	  CC*)
13805	    # Sun C++ 4.2, 5.x and Centerline C++
13806	    lt_prog_compiler_pic_CXX='-KPIC'
13807	    lt_prog_compiler_static_CXX='-Bstatic'
13808	    lt_prog_compiler_wl_CXX='-Qoption ld '
13809	    ;;
13810	  gcx*)
13811	    # Green Hills C++ Compiler
13812	    lt_prog_compiler_pic_CXX='-PIC'
13813	    ;;
13814	  *)
13815	    ;;
13816	esac
13817	;;
13818      sunos4*)
13819	case $cc_basename in
13820	  CC*)
13821	    # Sun C++ 4.x
13822	    lt_prog_compiler_pic_CXX='-pic'
13823	    lt_prog_compiler_static_CXX='-Bstatic'
13824	    ;;
13825	  lcc*)
13826	    # Lucid
13827	    lt_prog_compiler_pic_CXX='-pic'
13828	    ;;
13829	  *)
13830	    ;;
13831	esac
13832	;;
13833      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13834	case $cc_basename in
13835	  CC*)
13836	    lt_prog_compiler_wl_CXX='-Wl,'
13837	    lt_prog_compiler_pic_CXX='-KPIC'
13838	    lt_prog_compiler_static_CXX='-Bstatic'
13839	    ;;
13840	esac
13841	;;
13842      tandem*)
13843	case $cc_basename in
13844	  NCC*)
13845	    # NonStop-UX NCC 3.20
13846	    lt_prog_compiler_pic_CXX='-KPIC'
13847	    ;;
13848	  *)
13849	    ;;
13850	esac
13851	;;
13852      vxworks*)
13853	;;
13854      *)
13855	lt_prog_compiler_can_build_shared_CXX=no
13856	;;
13857    esac
13858  fi
13859
13860case $host_os in
13861  # For platforms which do not support PIC, -DPIC is meaningless:
13862  *djgpp*)
13863    lt_prog_compiler_pic_CXX=
13864    ;;
13865  *)
13866    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13867    ;;
13868esac
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13870$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13871
13872
13873
13874#
13875# Check to make sure the PIC flag actually works.
13876#
13877if test -n "$lt_prog_compiler_pic_CXX"; then
13878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13879$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13880if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13881  $as_echo_n "(cached) " >&6
13882else
13883  lt_cv_prog_compiler_pic_works_CXX=no
13884   ac_outfile=conftest.$ac_objext
13885   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13886   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13887   # Insert the option either (1) after the last *FLAGS variable, or
13888   # (2) before a word containing "conftest.", or (3) at the end.
13889   # Note that $ac_compile itself does not contain backslashes and begins
13890   # with a dollar sign (not a hyphen), so the echo should work correctly.
13891   # The option is referenced via a variable to avoid confusing sed.
13892   lt_compile=`echo "$ac_compile" | $SED \
13893   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13894   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13895   -e 's:$: $lt_compiler_flag:'`
13896   (eval echo "\"\$as_me:13896: $lt_compile\"" >&5)
13897   (eval "$lt_compile" 2>conftest.err)
13898   ac_status=$?
13899   cat conftest.err >&5
13900   echo "$as_me:13900: \$? = $ac_status" >&5
13901   if (exit $ac_status) && test -s "$ac_outfile"; then
13902     # The compiler can only warn and ignore the option if not recognized
13903     # So say no if there are warnings other than the usual output.
13904     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13905     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13906     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13907       lt_cv_prog_compiler_pic_works_CXX=yes
13908     fi
13909   fi
13910   $RM conftest*
13911
13912fi
13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13914$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13915
13916if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13917    case $lt_prog_compiler_pic_CXX in
13918     "" | " "*) ;;
13919     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13920     esac
13921else
13922    lt_prog_compiler_pic_CXX=
13923     lt_prog_compiler_can_build_shared_CXX=no
13924fi
13925
13926fi
13927
13928
13929
13930#
13931# Check to make sure the static flag actually works.
13932#
13933wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13935$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13936if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13937  $as_echo_n "(cached) " >&6
13938else
13939  lt_cv_prog_compiler_static_works_CXX=no
13940   save_LDFLAGS="$LDFLAGS"
13941   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13942   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13943   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13944     # The linker can only warn and ignore the option if not recognized
13945     # So say no if there are warnings
13946     if test -s conftest.err; then
13947       # Append any errors to the config.log.
13948       cat conftest.err 1>&5
13949       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13950       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13951       if diff conftest.exp conftest.er2 >/dev/null; then
13952         lt_cv_prog_compiler_static_works_CXX=yes
13953       fi
13954     else
13955       lt_cv_prog_compiler_static_works_CXX=yes
13956     fi
13957   fi
13958   $RM -r conftest*
13959   LDFLAGS="$save_LDFLAGS"
13960
13961fi
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13963$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13964
13965if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13966    :
13967else
13968    lt_prog_compiler_static_CXX=
13969fi
13970
13971
13972
13973
13974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13975$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13976if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13977  $as_echo_n "(cached) " >&6
13978else
13979  lt_cv_prog_compiler_c_o_CXX=no
13980   $RM -r conftest 2>/dev/null
13981   mkdir conftest
13982   cd conftest
13983   mkdir out
13984   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13985
13986   lt_compiler_flag="-o out/conftest2.$ac_objext"
13987   # Insert the option either (1) after the last *FLAGS variable, or
13988   # (2) before a word containing "conftest.", or (3) at the end.
13989   # Note that $ac_compile itself does not contain backslashes and begins
13990   # with a dollar sign (not a hyphen), so the echo should work correctly.
13991   lt_compile=`echo "$ac_compile" | $SED \
13992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13994   -e 's:$: $lt_compiler_flag:'`
13995   (eval echo "\"\$as_me:13995: $lt_compile\"" >&5)
13996   (eval "$lt_compile" 2>out/conftest.err)
13997   ac_status=$?
13998   cat out/conftest.err >&5
13999   echo "$as_me:13999: \$? = $ac_status" >&5
14000   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14001   then
14002     # The compiler can only warn and ignore the option if not recognized
14003     # So say no if there are warnings
14004     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14005     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14006     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14007       lt_cv_prog_compiler_c_o_CXX=yes
14008     fi
14009   fi
14010   chmod u+w . 2>&5
14011   $RM conftest*
14012   # SGI C++ compiler will create directory out/ii_files/ for
14013   # template instantiation
14014   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14015   $RM out/* && rmdir out
14016   cd ..
14017   $RM -r conftest
14018   $RM conftest*
14019
14020fi
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14022$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14023
14024
14025
14026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14027$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14028if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14029  $as_echo_n "(cached) " >&6
14030else
14031  lt_cv_prog_compiler_c_o_CXX=no
14032   $RM -r conftest 2>/dev/null
14033   mkdir conftest
14034   cd conftest
14035   mkdir out
14036   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14037
14038   lt_compiler_flag="-o out/conftest2.$ac_objext"
14039   # Insert the option either (1) after the last *FLAGS variable, or
14040   # (2) before a word containing "conftest.", or (3) at the end.
14041   # Note that $ac_compile itself does not contain backslashes and begins
14042   # with a dollar sign (not a hyphen), so the echo should work correctly.
14043   lt_compile=`echo "$ac_compile" | $SED \
14044   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14045   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14046   -e 's:$: $lt_compiler_flag:'`
14047   (eval echo "\"\$as_me:14047: $lt_compile\"" >&5)
14048   (eval "$lt_compile" 2>out/conftest.err)
14049   ac_status=$?
14050   cat out/conftest.err >&5
14051   echo "$as_me:14051: \$? = $ac_status" >&5
14052   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14053   then
14054     # The compiler can only warn and ignore the option if not recognized
14055     # So say no if there are warnings
14056     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14057     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14058     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14059       lt_cv_prog_compiler_c_o_CXX=yes
14060     fi
14061   fi
14062   chmod u+w . 2>&5
14063   $RM conftest*
14064   # SGI C++ compiler will create directory out/ii_files/ for
14065   # template instantiation
14066   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14067   $RM out/* && rmdir out
14068   cd ..
14069   $RM -r conftest
14070   $RM conftest*
14071
14072fi
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14074$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14075
14076
14077
14078
14079hard_links="nottested"
14080if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14081  # do not overwrite the value of need_locks provided by the user
14082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14083$as_echo_n "checking if we can lock with hard links... " >&6; }
14084  hard_links=yes
14085  $RM conftest*
14086  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14087  touch conftest.a
14088  ln conftest.a conftest.b 2>&5 || hard_links=no
14089  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14091$as_echo "$hard_links" >&6; }
14092  if test "$hard_links" = no; then
14093    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14094$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14095    need_locks=warn
14096  fi
14097else
14098  need_locks=no
14099fi
14100
14101
14102
14103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14104$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14105
14106  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14107  case $host_os in
14108  aix[4-9]*)
14109    # If we're using GNU nm, then we don't want the "-C" option.
14110    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14111    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14112      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'
14113    else
14114      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'
14115    fi
14116    ;;
14117  pw32*)
14118    export_symbols_cmds_CXX="$ltdll_cmds"
14119  ;;
14120  cygwin* | mingw* | cegcc*)
14121    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'
14122  ;;
14123  linux* | k*bsd*-gnu)
14124    link_all_deplibs_CXX=no
14125  ;;
14126  *)
14127    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14128  ;;
14129  esac
14130  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14131
14132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14133$as_echo "$ld_shlibs_CXX" >&6; }
14134test "$ld_shlibs_CXX" = no && can_build_shared=no
14135
14136with_gnu_ld_CXX=$with_gnu_ld
14137
14138
14139
14140
14141
14142
14143#
14144# Do we need to explicitly link libc?
14145#
14146case "x$archive_cmds_need_lc_CXX" in
14147x|xyes)
14148  # Assume -lc should be added
14149  archive_cmds_need_lc_CXX=yes
14150
14151  if test "$enable_shared" = yes && test "$GCC" = yes; then
14152    case $archive_cmds_CXX in
14153    *'~'*)
14154      # FIXME: we may have to deal with multi-command sequences.
14155      ;;
14156    '$CC '*)
14157      # Test whether the compiler implicitly links with -lc since on some
14158      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14159      # to ld, don't add -lc before -lgcc.
14160      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14161$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14162      $RM conftest*
14163      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14164
14165      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14166  (eval $ac_compile) 2>&5
14167  ac_status=$?
14168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14169  test $ac_status = 0; } 2>conftest.err; then
14170        soname=conftest
14171        lib=conftest
14172        libobjs=conftest.$ac_objext
14173        deplibs=
14174        wl=$lt_prog_compiler_wl_CXX
14175	pic_flag=$lt_prog_compiler_pic_CXX
14176        compiler_flags=-v
14177        linker_flags=-v
14178        verstring=
14179        output_objdir=.
14180        libname=conftest
14181        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14182        allow_undefined_flag_CXX=
14183        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14184  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14185  ac_status=$?
14186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14187  test $ac_status = 0; }
14188        then
14189	  archive_cmds_need_lc_CXX=no
14190        else
14191	  archive_cmds_need_lc_CXX=yes
14192        fi
14193        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14194      else
14195        cat conftest.err 1>&5
14196      fi
14197      $RM conftest*
14198      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14199$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14200      ;;
14201    esac
14202  fi
14203  ;;
14204esac
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
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14270$as_echo_n "checking dynamic linker characteristics... " >&6; }
14271
14272library_names_spec=
14273libname_spec='lib$name'
14274soname_spec=
14275shrext_cmds=".so"
14276postinstall_cmds=
14277postuninstall_cmds=
14278finish_cmds=
14279finish_eval=
14280shlibpath_var=
14281shlibpath_overrides_runpath=unknown
14282version_type=none
14283dynamic_linker="$host_os ld.so"
14284sys_lib_dlsearch_path_spec="/lib /usr/lib"
14285need_lib_prefix=unknown
14286hardcode_into_libs=no
14287
14288# when you set need_version to no, make sure it does not cause -set_version
14289# flags to be left without arguments
14290need_version=unknown
14291
14292case $host_os in
14293aix3*)
14294  version_type=linux
14295  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14296  shlibpath_var=LIBPATH
14297
14298  # AIX 3 has no versioning support, so we append a major version to the name.
14299  soname_spec='${libname}${release}${shared_ext}$major'
14300  ;;
14301
14302aix[4-9]*)
14303  version_type=linux
14304  need_lib_prefix=no
14305  need_version=no
14306  hardcode_into_libs=yes
14307  if test "$host_cpu" = ia64; then
14308    # AIX 5 supports IA64
14309    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14310    shlibpath_var=LD_LIBRARY_PATH
14311  else
14312    # With GCC up to 2.95.x, collect2 would create an import file
14313    # for dependence libraries.  The import file would start with
14314    # the line `#! .'.  This would cause the generated library to
14315    # depend on `.', always an invalid library.  This was fixed in
14316    # development snapshots of GCC prior to 3.0.
14317    case $host_os in
14318      aix4 | aix4.[01] | aix4.[01].*)
14319      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14320	   echo ' yes '
14321	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14322	:
14323      else
14324	can_build_shared=no
14325      fi
14326      ;;
14327    esac
14328    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14329    # soname into executable. Probably we can add versioning support to
14330    # collect2, so additional links can be useful in future.
14331    if test "$aix_use_runtimelinking" = yes; then
14332      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14333      # instead of lib<name>.a to let people know that these are not
14334      # typical AIX shared libraries.
14335      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336    else
14337      # We preserve .a as extension for shared libraries through AIX4.2
14338      # and later when we are not doing run time linking.
14339      library_names_spec='${libname}${release}.a $libname.a'
14340      soname_spec='${libname}${release}${shared_ext}$major'
14341    fi
14342    shlibpath_var=LIBPATH
14343  fi
14344  ;;
14345
14346amigaos*)
14347  case $host_cpu in
14348  powerpc)
14349    # Since July 2007 AmigaOS4 officially supports .so libraries.
14350    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14351    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14352    ;;
14353  m68k)
14354    library_names_spec='$libname.ixlibrary $libname.a'
14355    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14356    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'
14357    ;;
14358  esac
14359  ;;
14360
14361beos*)
14362  library_names_spec='${libname}${shared_ext}'
14363  dynamic_linker="$host_os ld.so"
14364  shlibpath_var=LIBRARY_PATH
14365  ;;
14366
14367bsdi[45]*)
14368  version_type=linux
14369  need_version=no
14370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371  soname_spec='${libname}${release}${shared_ext}$major'
14372  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14373  shlibpath_var=LD_LIBRARY_PATH
14374  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14375  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14376  # the default ld.so.conf also contains /usr/contrib/lib and
14377  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14378  # libtool to hard-code these into programs
14379  ;;
14380
14381cygwin* | mingw* | pw32* | cegcc*)
14382  version_type=windows
14383  shrext_cmds=".dll"
14384  need_version=no
14385  need_lib_prefix=no
14386
14387  case $GCC,$host_os in
14388  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14389    library_names_spec='$libname.dll.a'
14390    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14391    postinstall_cmds='base_file=`basename \${file}`~
14392      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14393      dldir=$destdir/`dirname \$dlpath`~
14394      test -d \$dldir || mkdir -p \$dldir~
14395      $install_prog $dir/$dlname \$dldir/$dlname~
14396      chmod a+x \$dldir/$dlname~
14397      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14398        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14399      fi'
14400    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14401      dlpath=$dir/\$dldll~
14402       $RM \$dlpath'
14403    shlibpath_overrides_runpath=yes
14404
14405    case $host_os in
14406    cygwin*)
14407      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14408      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14409      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14410      ;;
14411    mingw* | cegcc*)
14412      # MinGW DLLs use traditional 'lib' prefix
14413      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14414      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14415      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14416        # It is most probably a Windows format PATH printed by
14417        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14418        # path with ; separators, and with drive letters. We can handle the
14419        # drive letters (cygwin fileutils understands them), so leave them,
14420        # especially as we might pass files found there to a mingw objdump,
14421        # which wouldn't understand a cygwinified path. Ahh.
14422        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14423      else
14424        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14425      fi
14426      ;;
14427    pw32*)
14428      # pw32 DLLs use 'pw' prefix rather than 'lib'
14429      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14430      ;;
14431    esac
14432    ;;
14433
14434  *)
14435    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14436    ;;
14437  esac
14438  dynamic_linker='Win32 ld.exe'
14439  # FIXME: first we should search . and the directory the executable is in
14440  shlibpath_var=PATH
14441  ;;
14442
14443darwin* | rhapsody*)
14444  dynamic_linker="$host_os dyld"
14445  version_type=darwin
14446  need_lib_prefix=no
14447  need_version=no
14448  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14449  soname_spec='${libname}${release}${major}$shared_ext'
14450  shlibpath_overrides_runpath=yes
14451  shlibpath_var=DYLD_LIBRARY_PATH
14452  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14453
14454  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14455  ;;
14456
14457dgux*)
14458  version_type=linux
14459  need_lib_prefix=no
14460  need_version=no
14461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14462  soname_spec='${libname}${release}${shared_ext}$major'
14463  shlibpath_var=LD_LIBRARY_PATH
14464  ;;
14465
14466freebsd1*)
14467  dynamic_linker=no
14468  ;;
14469
14470freebsd* | dragonfly*)
14471  # DragonFly does not have aout.  When/if they implement a new
14472  # versioning mechanism, adjust this.
14473  if test -x /usr/bin/objformat; then
14474    objformat=`/usr/bin/objformat`
14475  else
14476    case $host_os in
14477    freebsd[123]*) objformat=aout ;;
14478    *) objformat=elf ;;
14479    esac
14480  fi
14481  version_type=freebsd-$objformat
14482  case $version_type in
14483    freebsd-elf*)
14484      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14485      need_version=no
14486      need_lib_prefix=no
14487      ;;
14488    freebsd-*)
14489      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14490      need_version=yes
14491      ;;
14492  esac
14493  shlibpath_var=LD_LIBRARY_PATH
14494  case $host_os in
14495  freebsd2*)
14496    shlibpath_overrides_runpath=yes
14497    ;;
14498  freebsd3.[01]* | freebsdelf3.[01]*)
14499    shlibpath_overrides_runpath=yes
14500    hardcode_into_libs=yes
14501    ;;
14502  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14503  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14504    shlibpath_overrides_runpath=no
14505    hardcode_into_libs=yes
14506    ;;
14507  *) # from 4.6 on, and DragonFly
14508    shlibpath_overrides_runpath=yes
14509    hardcode_into_libs=yes
14510    ;;
14511  esac
14512  ;;
14513
14514gnu*)
14515  version_type=linux
14516  need_lib_prefix=no
14517  need_version=no
14518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14519  soname_spec='${libname}${release}${shared_ext}$major'
14520  shlibpath_var=LD_LIBRARY_PATH
14521  hardcode_into_libs=yes
14522  ;;
14523
14524hpux9* | hpux10* | hpux11*)
14525  # Give a soname corresponding to the major version so that dld.sl refuses to
14526  # link against other versions.
14527  version_type=sunos
14528  need_lib_prefix=no
14529  need_version=no
14530  case $host_cpu in
14531  ia64*)
14532    shrext_cmds='.so'
14533    hardcode_into_libs=yes
14534    dynamic_linker="$host_os dld.so"
14535    shlibpath_var=LD_LIBRARY_PATH
14536    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14537    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538    soname_spec='${libname}${release}${shared_ext}$major'
14539    if test "X$HPUX_IA64_MODE" = X32; then
14540      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14541    else
14542      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14543    fi
14544    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14545    ;;
14546  hppa*64*)
14547    shrext_cmds='.sl'
14548    hardcode_into_libs=yes
14549    dynamic_linker="$host_os dld.sl"
14550    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14551    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14552    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553    soname_spec='${libname}${release}${shared_ext}$major'
14554    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14555    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14556    ;;
14557  *)
14558    shrext_cmds='.sl'
14559    dynamic_linker="$host_os dld.sl"
14560    shlibpath_var=SHLIB_PATH
14561    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14562    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14563    soname_spec='${libname}${release}${shared_ext}$major'
14564    ;;
14565  esac
14566  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14567  postinstall_cmds='chmod 555 $lib'
14568  ;;
14569
14570interix[3-9]*)
14571  version_type=linux
14572  need_lib_prefix=no
14573  need_version=no
14574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14575  soname_spec='${libname}${release}${shared_ext}$major'
14576  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14577  shlibpath_var=LD_LIBRARY_PATH
14578  shlibpath_overrides_runpath=no
14579  hardcode_into_libs=yes
14580  ;;
14581
14582irix5* | irix6* | nonstopux*)
14583  case $host_os in
14584    nonstopux*) version_type=nonstopux ;;
14585    *)
14586	if test "$lt_cv_prog_gnu_ld" = yes; then
14587		version_type=linux
14588	else
14589		version_type=irix
14590	fi ;;
14591  esac
14592  need_lib_prefix=no
14593  need_version=no
14594  soname_spec='${libname}${release}${shared_ext}$major'
14595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14596  case $host_os in
14597  irix5* | nonstopux*)
14598    libsuff= shlibsuff=
14599    ;;
14600  *)
14601    case $LD in # libtool.m4 will add one of these switches to LD
14602    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14603      libsuff= shlibsuff= libmagic=32-bit;;
14604    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14605      libsuff=32 shlibsuff=N32 libmagic=N32;;
14606    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14607      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14608    *) libsuff= shlibsuff= libmagic=never-match;;
14609    esac
14610    ;;
14611  esac
14612  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14613  shlibpath_overrides_runpath=no
14614  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14615  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14616  hardcode_into_libs=yes
14617  ;;
14618
14619# No shared lib support for Linux oldld, aout, or coff.
14620linux*oldld* | linux*aout* | linux*coff*)
14621  dynamic_linker=no
14622  ;;
14623
14624# This must be Linux ELF.
14625linux* | k*bsd*-gnu | kopensolaris*-gnu)
14626  version_type=linux
14627  need_lib_prefix=no
14628  need_version=no
14629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630  soname_spec='${libname}${release}${shared_ext}$major'
14631  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14632  shlibpath_var=LD_LIBRARY_PATH
14633  shlibpath_overrides_runpath=no
14634  # Some binutils ld are patched to set DT_RUNPATH
14635  save_LDFLAGS=$LDFLAGS
14636  save_libdir=$libdir
14637  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14638       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640/* end confdefs.h.  */
14641
14642int
14643main ()
14644{
14645
14646  ;
14647  return 0;
14648}
14649_ACEOF
14650if ac_fn_cxx_try_link "$LINENO"; then :
14651  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14652  shlibpath_overrides_runpath=yes
14653fi
14654fi
14655rm -f core conftest.err conftest.$ac_objext \
14656    conftest$ac_exeext conftest.$ac_ext
14657  LDFLAGS=$save_LDFLAGS
14658  libdir=$save_libdir
14659
14660  # This implies no fast_install, which is unacceptable.
14661  # Some rework will be needed to allow for fast_install
14662  # before this can be enabled.
14663  hardcode_into_libs=yes
14664
14665  # Append ld.so.conf contents to the search path
14666  if test -f /etc/ld.so.conf; then
14667    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' ' '`
14668    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14669  fi
14670
14671  # We used to test for /lib/ld.so.1 and disable shared libraries on
14672  # powerpc, because MkLinux only supported shared libraries with the
14673  # GNU dynamic linker.  Since this was broken with cross compilers,
14674  # most powerpc-linux boxes support dynamic linking these days and
14675  # people can always --disable-shared, the test was removed, and we
14676  # assume the GNU/Linux dynamic linker is in use.
14677  dynamic_linker='GNU/Linux ld.so'
14678  ;;
14679
14680netbsdelf*-gnu)
14681  version_type=linux
14682  need_lib_prefix=no
14683  need_version=no
14684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14685  soname_spec='${libname}${release}${shared_ext}$major'
14686  shlibpath_var=LD_LIBRARY_PATH
14687  shlibpath_overrides_runpath=no
14688  hardcode_into_libs=yes
14689  dynamic_linker='NetBSD ld.elf_so'
14690  ;;
14691
14692netbsd*)
14693  version_type=sunos
14694  need_lib_prefix=no
14695  need_version=no
14696  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14697    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14698    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14699    dynamic_linker='NetBSD (a.out) ld.so'
14700  else
14701    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14702    soname_spec='${libname}${release}${shared_ext}$major'
14703    dynamic_linker='NetBSD ld.elf_so'
14704  fi
14705  shlibpath_var=LD_LIBRARY_PATH
14706  shlibpath_overrides_runpath=yes
14707  hardcode_into_libs=yes
14708  ;;
14709
14710newsos6)
14711  version_type=linux
14712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713  shlibpath_var=LD_LIBRARY_PATH
14714  shlibpath_overrides_runpath=yes
14715  ;;
14716
14717*nto* | *qnx*)
14718  version_type=qnx
14719  need_lib_prefix=no
14720  need_version=no
14721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722  soname_spec='${libname}${release}${shared_ext}$major'
14723  shlibpath_var=LD_LIBRARY_PATH
14724  shlibpath_overrides_runpath=no
14725  hardcode_into_libs=yes
14726  dynamic_linker='ldqnx.so'
14727  ;;
14728
14729openbsd*)
14730  version_type=sunos
14731  sys_lib_dlsearch_path_spec="/usr/lib"
14732  need_lib_prefix=no
14733  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14734  case $host_os in
14735    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14736    *)				need_version=no  ;;
14737  esac
14738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14739  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14740  shlibpath_var=LD_LIBRARY_PATH
14741  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14742    case $host_os in
14743      openbsd2.[89] | openbsd2.[89].*)
14744	shlibpath_overrides_runpath=no
14745	;;
14746      *)
14747	shlibpath_overrides_runpath=yes
14748	;;
14749      esac
14750  else
14751    shlibpath_overrides_runpath=yes
14752  fi
14753  ;;
14754
14755os2*)
14756  libname_spec='$name'
14757  shrext_cmds=".dll"
14758  need_lib_prefix=no
14759  library_names_spec='$libname${shared_ext} $libname.a'
14760  dynamic_linker='OS/2 ld.exe'
14761  shlibpath_var=LIBPATH
14762  ;;
14763
14764osf3* | osf4* | osf5*)
14765  version_type=osf
14766  need_lib_prefix=no
14767  need_version=no
14768  soname_spec='${libname}${release}${shared_ext}$major'
14769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770  shlibpath_var=LD_LIBRARY_PATH
14771  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14772  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14773  ;;
14774
14775rdos*)
14776  dynamic_linker=no
14777  ;;
14778
14779solaris*)
14780  version_type=linux
14781  need_lib_prefix=no
14782  need_version=no
14783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784  soname_spec='${libname}${release}${shared_ext}$major'
14785  shlibpath_var=LD_LIBRARY_PATH
14786  shlibpath_overrides_runpath=yes
14787  hardcode_into_libs=yes
14788  # ldd complains unless libraries are executable
14789  postinstall_cmds='chmod +x $lib'
14790  ;;
14791
14792sunos4*)
14793  version_type=sunos
14794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14795  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14796  shlibpath_var=LD_LIBRARY_PATH
14797  shlibpath_overrides_runpath=yes
14798  if test "$with_gnu_ld" = yes; then
14799    need_lib_prefix=no
14800  fi
14801  need_version=yes
14802  ;;
14803
14804sysv4 | sysv4.3*)
14805  version_type=linux
14806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807  soname_spec='${libname}${release}${shared_ext}$major'
14808  shlibpath_var=LD_LIBRARY_PATH
14809  case $host_vendor in
14810    sni)
14811      shlibpath_overrides_runpath=no
14812      need_lib_prefix=no
14813      runpath_var=LD_RUN_PATH
14814      ;;
14815    siemens)
14816      need_lib_prefix=no
14817      ;;
14818    motorola)
14819      need_lib_prefix=no
14820      need_version=no
14821      shlibpath_overrides_runpath=no
14822      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14823      ;;
14824  esac
14825  ;;
14826
14827sysv4*MP*)
14828  if test -d /usr/nec ;then
14829    version_type=linux
14830    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14831    soname_spec='$libname${shared_ext}.$major'
14832    shlibpath_var=LD_LIBRARY_PATH
14833  fi
14834  ;;
14835
14836sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14837  version_type=freebsd-elf
14838  need_lib_prefix=no
14839  need_version=no
14840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14841  soname_spec='${libname}${release}${shared_ext}$major'
14842  shlibpath_var=LD_LIBRARY_PATH
14843  shlibpath_overrides_runpath=yes
14844  hardcode_into_libs=yes
14845  if test "$with_gnu_ld" = yes; then
14846    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14847  else
14848    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14849    case $host_os in
14850      sco3.2v5*)
14851        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14852	;;
14853    esac
14854  fi
14855  sys_lib_dlsearch_path_spec='/usr/lib'
14856  ;;
14857
14858tpf*)
14859  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14860  version_type=linux
14861  need_lib_prefix=no
14862  need_version=no
14863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864  shlibpath_var=LD_LIBRARY_PATH
14865  shlibpath_overrides_runpath=no
14866  hardcode_into_libs=yes
14867  ;;
14868
14869uts4*)
14870  version_type=linux
14871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872  soname_spec='${libname}${release}${shared_ext}$major'
14873  shlibpath_var=LD_LIBRARY_PATH
14874  ;;
14875
14876*)
14877  dynamic_linker=no
14878  ;;
14879esac
14880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14881$as_echo "$dynamic_linker" >&6; }
14882test "$dynamic_linker" = no && can_build_shared=no
14883
14884variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14885if test "$GCC" = yes; then
14886  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14887fi
14888
14889if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14890  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14891fi
14892if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14893  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14894fi
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14932$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14933hardcode_action_CXX=
14934if test -n "$hardcode_libdir_flag_spec_CXX" ||
14935   test -n "$runpath_var_CXX" ||
14936   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14937
14938  # We can hardcode non-existent directories.
14939  if test "$hardcode_direct_CXX" != no &&
14940     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14941     # have to relink, otherwise we might link with an installed library
14942     # when we should be linking with a yet-to-be-installed one
14943     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14944     test "$hardcode_minus_L_CXX" != no; then
14945    # Linking always hardcodes the temporary library directory.
14946    hardcode_action_CXX=relink
14947  else
14948    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14949    hardcode_action_CXX=immediate
14950  fi
14951else
14952  # We cannot hardcode anything, or else we can only hardcode existing
14953  # directories.
14954  hardcode_action_CXX=unsupported
14955fi
14956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14957$as_echo "$hardcode_action_CXX" >&6; }
14958
14959if test "$hardcode_action_CXX" = relink ||
14960   test "$inherit_rpath_CXX" = yes; then
14961  # Fast installation is not supported
14962  enable_fast_install=no
14963elif test "$shlibpath_overrides_runpath" = yes ||
14964     test "$enable_shared" = no; then
14965  # Fast installation is not necessary
14966  enable_fast_install=needless
14967fi
14968
14969
14970
14971
14972
14973
14974
14975  fi # test -n "$compiler"
14976
14977  CC=$lt_save_CC
14978  LDCXX=$LD
14979  LD=$lt_save_LD
14980  GCC=$lt_save_GCC
14981  with_gnu_ld=$lt_save_with_gnu_ld
14982  lt_cv_path_LDCXX=$lt_cv_path_LD
14983  lt_cv_path_LD=$lt_save_path_LD
14984  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14985  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14986fi # test "$_lt_caught_CXX_error" != yes
14987
14988ac_ext=c
14989ac_cpp='$CPP $CPPFLAGS'
14990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14992ac_compiler_gnu=$ac_cv_c_compiler_gnu
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006        ac_config_commands="$ac_config_commands libtool"
15007
15008
15009
15010
15011# Only expand once:
15012
15013
15014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15015$as_echo_n "checking whether ln -s works... " >&6; }
15016LN_S=$as_ln_s
15017if test "$LN_S" = "ln -s"; then
15018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15019$as_echo "yes" >&6; }
15020else
15021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15022$as_echo "no, using $LN_S" >&6; }
15023fi
15024
15025
15026# Checks for libraries.
15027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
15028$as_echo_n "checking for pow in -lm... " >&6; }
15029if test "${ac_cv_lib_m_pow+set}" = set; then :
15030  $as_echo_n "(cached) " >&6
15031else
15032  ac_check_lib_save_LIBS=$LIBS
15033LIBS="-lm  $LIBS"
15034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035/* end confdefs.h.  */
15036
15037/* Override any GCC internal prototype to avoid an error.
15038   Use char because int might match the return type of a GCC
15039   builtin and then its argument prototype would still apply.  */
15040#ifdef __cplusplus
15041extern "C"
15042#endif
15043char pow ();
15044int
15045main ()
15046{
15047return pow ();
15048  ;
15049  return 0;
15050}
15051_ACEOF
15052if ac_fn_c_try_link "$LINENO"; then :
15053  ac_cv_lib_m_pow=yes
15054else
15055  ac_cv_lib_m_pow=no
15056fi
15057rm -f core conftest.err conftest.$ac_objext \
15058    conftest$ac_exeext conftest.$ac_ext
15059LIBS=$ac_check_lib_save_LIBS
15060fi
15061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
15062$as_echo "$ac_cv_lib_m_pow" >&6; }
15063if test "x$ac_cv_lib_m_pow" = x""yes; then :
15064  cat >>confdefs.h <<_ACEOF
15065#define HAVE_LIBM 1
15066_ACEOF
15067
15068  LIBS="-lm $LIBS"
15069
15070else
15071  as_fn_error "-lm was not found but required." "$LINENO" 5
15072fi
15073
15074
15075# Check whether --enable-bzip2 was given.
15076if test "${enable_bzip2+set}" = set; then :
15077  enableval=$enable_bzip2;
15078fi
15079
15080if test "x$enable_bzip2" != "xno" ; then
15081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
15082$as_echo_n "checking for BZ2_bzBuffToBuffCompress in -lbz2... " >&6; }
15083if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then :
15084  $as_echo_n "(cached) " >&6
15085else
15086  ac_check_lib_save_LIBS=$LIBS
15087LIBS="-lbz2  $LIBS"
15088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089/* end confdefs.h.  */
15090
15091/* Override any GCC internal prototype to avoid an error.
15092   Use char because int might match the return type of a GCC
15093   builtin and then its argument prototype would still apply.  */
15094#ifdef __cplusplus
15095extern "C"
15096#endif
15097char BZ2_bzBuffToBuffCompress ();
15098int
15099main ()
15100{
15101return BZ2_bzBuffToBuffCompress ();
15102  ;
15103  return 0;
15104}
15105_ACEOF
15106if ac_fn_c_try_link "$LINENO"; then :
15107  ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
15108else
15109  ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no
15110fi
15111rm -f core conftest.err conftest.$ac_objext \
15112    conftest$ac_exeext conftest.$ac_ext
15113LIBS=$ac_check_lib_save_LIBS
15114fi
15115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5
15116$as_echo "$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6; }
15117if test "x$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" = x""yes; then :
15118  BZIP2=-lbz2
15119
15120$as_echo "#define HAVE_LIBBZ2 /**/" >>confdefs.h
15121
15122fi
15123
15124fi
15125
15126# Checks for header files.
15127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15128$as_echo_n "checking for ANSI C header files... " >&6; }
15129if test "${ac_cv_header_stdc+set}" = set; then :
15130  $as_echo_n "(cached) " >&6
15131else
15132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133/* end confdefs.h.  */
15134#include <stdlib.h>
15135#include <stdarg.h>
15136#include <string.h>
15137#include <float.h>
15138
15139int
15140main ()
15141{
15142
15143  ;
15144  return 0;
15145}
15146_ACEOF
15147if ac_fn_c_try_compile "$LINENO"; then :
15148  ac_cv_header_stdc=yes
15149else
15150  ac_cv_header_stdc=no
15151fi
15152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15153
15154if test $ac_cv_header_stdc = yes; then
15155  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157/* end confdefs.h.  */
15158#include <string.h>
15159
15160_ACEOF
15161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15162  $EGREP "memchr" >/dev/null 2>&1; then :
15163
15164else
15165  ac_cv_header_stdc=no
15166fi
15167rm -f conftest*
15168
15169fi
15170
15171if test $ac_cv_header_stdc = yes; then
15172  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174/* end confdefs.h.  */
15175#include <stdlib.h>
15176
15177_ACEOF
15178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15179  $EGREP "free" >/dev/null 2>&1; then :
15180
15181else
15182  ac_cv_header_stdc=no
15183fi
15184rm -f conftest*
15185
15186fi
15187
15188if test $ac_cv_header_stdc = yes; then
15189  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15190  if test "$cross_compiling" = yes; then :
15191  :
15192else
15193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194/* end confdefs.h.  */
15195#include <ctype.h>
15196#include <stdlib.h>
15197#if ((' ' & 0x0FF) == 0x020)
15198# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15199# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15200#else
15201# define ISLOWER(c) \
15202		   (('a' <= (c) && (c) <= 'i') \
15203		     || ('j' <= (c) && (c) <= 'r') \
15204		     || ('s' <= (c) && (c) <= 'z'))
15205# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15206#endif
15207
15208#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15209int
15210main ()
15211{
15212  int i;
15213  for (i = 0; i < 256; i++)
15214    if (XOR (islower (i), ISLOWER (i))
15215	|| toupper (i) != TOUPPER (i))
15216      return 2;
15217  return 0;
15218}
15219_ACEOF
15220if ac_fn_c_try_run "$LINENO"; then :
15221
15222else
15223  ac_cv_header_stdc=no
15224fi
15225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15226  conftest.$ac_objext conftest.beam conftest.$ac_ext
15227fi
15228
15229fi
15230fi
15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15232$as_echo "$ac_cv_header_stdc" >&6; }
15233if test $ac_cv_header_stdc = yes; then
15234
15235$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15236
15237fi
15238
15239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15240$as_echo_n "checking for X... " >&6; }
15241
15242
15243# Check whether --with-x was given.
15244if test "${with_x+set}" = set; then :
15245  withval=$with_x;
15246fi
15247
15248# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15249if test "x$with_x" = xno; then
15250  # The user explicitly disabled X.
15251  have_x=disabled
15252else
15253  case $x_includes,$x_libraries in #(
15254    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15255    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15256  $as_echo_n "(cached) " >&6
15257else
15258  # One or both of the vars are not set, and there is no cached value.
15259ac_x_includes=no ac_x_libraries=no
15260rm -f -r conftest.dir
15261if mkdir conftest.dir; then
15262  cd conftest.dir
15263  cat >Imakefile <<'_ACEOF'
15264incroot:
15265	@echo incroot='${INCROOT}'
15266usrlibdir:
15267	@echo usrlibdir='${USRLIBDIR}'
15268libdir:
15269	@echo libdir='${LIBDIR}'
15270_ACEOF
15271  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15272    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15273    for ac_var in incroot usrlibdir libdir; do
15274      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15275    done
15276    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15277    for ac_extension in a so sl dylib la dll; do
15278      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15279	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15280	ac_im_usrlibdir=$ac_im_libdir; break
15281      fi
15282    done
15283    # Screen out bogus values from the imake configuration.  They are
15284    # bogus both because they are the default anyway, and because
15285    # using them would break gcc on systems where it needs fixed includes.
15286    case $ac_im_incroot in
15287	/usr/include) ac_x_includes= ;;
15288	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15289    esac
15290    case $ac_im_usrlibdir in
15291	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
15292	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15293    esac
15294  fi
15295  cd ..
15296  rm -f -r conftest.dir
15297fi
15298
15299# Standard set of common directories for X headers.
15300# Check X11 before X11Rn because it is often a symlink to the current release.
15301ac_x_header_dirs='
15302/usr/X11/include
15303/usr/X11R7/include
15304/usr/X11R6/include
15305/usr/X11R5/include
15306/usr/X11R4/include
15307
15308/usr/include/X11
15309/usr/include/X11R7
15310/usr/include/X11R6
15311/usr/include/X11R5
15312/usr/include/X11R4
15313
15314/usr/local/X11/include
15315/usr/local/X11R7/include
15316/usr/local/X11R6/include
15317/usr/local/X11R5/include
15318/usr/local/X11R4/include
15319
15320/usr/local/include/X11
15321/usr/local/include/X11R7
15322/usr/local/include/X11R6
15323/usr/local/include/X11R5
15324/usr/local/include/X11R4
15325
15326/usr/X386/include
15327/usr/x386/include
15328/usr/XFree86/include/X11
15329
15330/usr/include
15331/usr/local/include
15332/usr/unsupported/include
15333/usr/athena/include
15334/usr/local/x11r5/include
15335/usr/lpp/Xamples/include
15336
15337/usr/openwin/include
15338/usr/openwin/share/include'
15339
15340if test "$ac_x_includes" = no; then
15341  # Guess where to find include files, by looking for Xlib.h.
15342  # First, try using that file with no special directory specified.
15343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344/* end confdefs.h.  */
15345#include <X11/Xlib.h>
15346_ACEOF
15347if ac_fn_c_try_cpp "$LINENO"; then :
15348  # We can compile using X headers with no special include directory.
15349ac_x_includes=
15350else
15351  for ac_dir in $ac_x_header_dirs; do
15352  if test -r "$ac_dir/X11/Xlib.h"; then
15353    ac_x_includes=$ac_dir
15354    break
15355  fi
15356done
15357fi
15358rm -f conftest.err conftest.$ac_ext
15359fi # $ac_x_includes = no
15360
15361if test "$ac_x_libraries" = no; then
15362  # Check for the libraries.
15363  # See if we find them without any special options.
15364  # Don't add to $LIBS permanently.
15365  ac_save_LIBS=$LIBS
15366  LIBS="-lX11 $LIBS"
15367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368/* end confdefs.h.  */
15369#include <X11/Xlib.h>
15370int
15371main ()
15372{
15373XrmInitialize ()
15374  ;
15375  return 0;
15376}
15377_ACEOF
15378if ac_fn_c_try_link "$LINENO"; then :
15379  LIBS=$ac_save_LIBS
15380# We can link X programs with no special library path.
15381ac_x_libraries=
15382else
15383  LIBS=$ac_save_LIBS
15384for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15385do
15386  # Don't even attempt the hair of trying to link an X program!
15387  for ac_extension in a so sl dylib la dll; do
15388    if test -r "$ac_dir/libX11.$ac_extension"; then
15389      ac_x_libraries=$ac_dir
15390      break 2
15391    fi
15392  done
15393done
15394fi
15395rm -f core conftest.err conftest.$ac_objext \
15396    conftest$ac_exeext conftest.$ac_ext
15397fi # $ac_x_libraries = no
15398
15399case $ac_x_includes,$ac_x_libraries in #(
15400  no,* | *,no | *\'*)
15401    # Didn't find X, or a directory has "'" in its name.
15402    ac_cv_have_x="have_x=no";; #(
15403  *)
15404    # Record where we found X for the cache.
15405    ac_cv_have_x="have_x=yes\
15406	ac_x_includes='$ac_x_includes'\
15407	ac_x_libraries='$ac_x_libraries'"
15408esac
15409fi
15410;; #(
15411    *) have_x=yes;;
15412  esac
15413  eval "$ac_cv_have_x"
15414fi # $with_x != no
15415
15416if test "$have_x" != yes; then
15417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15418$as_echo "$have_x" >&6; }
15419  no_x=yes
15420else
15421  # If each of the values was on the command line, it overrides each guess.
15422  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15423  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15424  # Update the cache value to reflect the command line values.
15425  ac_cv_have_x="have_x=yes\
15426	ac_x_includes='$x_includes'\
15427	ac_x_libraries='$x_libraries'"
15428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15429$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15430fi
15431
15432if test "$no_x" = yes; then
15433  # Not all programs may use this symbol, but it does not hurt to define it.
15434
15435$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
15436
15437  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
15438else
15439  if test -n "$x_includes"; then
15440    X_CFLAGS="$X_CFLAGS -I$x_includes"
15441  fi
15442
15443  # It would also be nice to do this for all -L options, not just this one.
15444  if test -n "$x_libraries"; then
15445    X_LIBS="$X_LIBS -L$x_libraries"
15446    # For Solaris; some versions of Sun CC require a space after -R and
15447    # others require no space.  Words are not sufficient . . . .
15448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
15449$as_echo_n "checking whether -R must be followed by a space... " >&6; }
15450    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
15451    ac_xsave_c_werror_flag=$ac_c_werror_flag
15452    ac_c_werror_flag=yes
15453    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454/* end confdefs.h.  */
15455
15456int
15457main ()
15458{
15459
15460  ;
15461  return 0;
15462}
15463_ACEOF
15464if ac_fn_c_try_link "$LINENO"; then :
15465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15466$as_echo "no" >&6; }
15467       X_LIBS="$X_LIBS -R$x_libraries"
15468else
15469  LIBS="$ac_xsave_LIBS -R $x_libraries"
15470       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471/* end confdefs.h.  */
15472
15473int
15474main ()
15475{
15476
15477  ;
15478  return 0;
15479}
15480_ACEOF
15481if ac_fn_c_try_link "$LINENO"; then :
15482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15483$as_echo "yes" >&6; }
15484	  X_LIBS="$X_LIBS -R $x_libraries"
15485else
15486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
15487$as_echo "neither works" >&6; }
15488fi
15489rm -f core conftest.err conftest.$ac_objext \
15490    conftest$ac_exeext conftest.$ac_ext
15491fi
15492rm -f core conftest.err conftest.$ac_objext \
15493    conftest$ac_exeext conftest.$ac_ext
15494    ac_c_werror_flag=$ac_xsave_c_werror_flag
15495    LIBS=$ac_xsave_LIBS
15496  fi
15497
15498  # Check for system-dependent libraries X programs must link with.
15499  # Do this before checking for the system-independent R6 libraries
15500  # (-lICE), since we may need -lsocket or whatever for X linking.
15501
15502  if test "$ISC" = yes; then
15503    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
15504  else
15505    # Martyn Johnson says this is needed for Ultrix, if the X
15506    # libraries were built with DECnet support.  And Karl Berry says
15507    # the Alpha needs dnet_stub (dnet does not exist).
15508    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
15509    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510/* end confdefs.h.  */
15511
15512/* Override any GCC internal prototype to avoid an error.
15513   Use char because int might match the return type of a GCC
15514   builtin and then its argument prototype would still apply.  */
15515#ifdef __cplusplus
15516extern "C"
15517#endif
15518char XOpenDisplay ();
15519int
15520main ()
15521{
15522return XOpenDisplay ();
15523  ;
15524  return 0;
15525}
15526_ACEOF
15527if ac_fn_c_try_link "$LINENO"; then :
15528
15529else
15530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
15531$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
15532if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
15533  $as_echo_n "(cached) " >&6
15534else
15535  ac_check_lib_save_LIBS=$LIBS
15536LIBS="-ldnet  $LIBS"
15537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538/* end confdefs.h.  */
15539
15540/* Override any GCC internal prototype to avoid an error.
15541   Use char because int might match the return type of a GCC
15542   builtin and then its argument prototype would still apply.  */
15543#ifdef __cplusplus
15544extern "C"
15545#endif
15546char dnet_ntoa ();
15547int
15548main ()
15549{
15550return dnet_ntoa ();
15551  ;
15552  return 0;
15553}
15554_ACEOF
15555if ac_fn_c_try_link "$LINENO"; then :
15556  ac_cv_lib_dnet_dnet_ntoa=yes
15557else
15558  ac_cv_lib_dnet_dnet_ntoa=no
15559fi
15560rm -f core conftest.err conftest.$ac_objext \
15561    conftest$ac_exeext conftest.$ac_ext
15562LIBS=$ac_check_lib_save_LIBS
15563fi
15564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
15565$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
15566if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
15567  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
15568fi
15569
15570    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
15571      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
15572$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
15573if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
15574  $as_echo_n "(cached) " >&6
15575else
15576  ac_check_lib_save_LIBS=$LIBS
15577LIBS="-ldnet_stub  $LIBS"
15578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579/* end confdefs.h.  */
15580
15581/* Override any GCC internal prototype to avoid an error.
15582   Use char because int might match the return type of a GCC
15583   builtin and then its argument prototype would still apply.  */
15584#ifdef __cplusplus
15585extern "C"
15586#endif
15587char dnet_ntoa ();
15588int
15589main ()
15590{
15591return dnet_ntoa ();
15592  ;
15593  return 0;
15594}
15595_ACEOF
15596if ac_fn_c_try_link "$LINENO"; then :
15597  ac_cv_lib_dnet_stub_dnet_ntoa=yes
15598else
15599  ac_cv_lib_dnet_stub_dnet_ntoa=no
15600fi
15601rm -f core conftest.err conftest.$ac_objext \
15602    conftest$ac_exeext conftest.$ac_ext
15603LIBS=$ac_check_lib_save_LIBS
15604fi
15605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
15606$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
15607if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
15608  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
15609fi
15610
15611    fi
15612fi
15613rm -f core conftest.err conftest.$ac_objext \
15614    conftest$ac_exeext conftest.$ac_ext
15615    LIBS="$ac_xsave_LIBS"
15616
15617    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
15618    # to get the SysV transport functions.
15619    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
15620    # needs -lnsl.
15621    # The nsl library prevents programs from opening the X display
15622    # on Irix 5.2, according to T.E. Dickey.
15623    # The functions gethostbyname, getservbyname, and inet_addr are
15624    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
15625    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15626if test "x$ac_cv_func_gethostbyname" = x""yes; then :
15627
15628fi
15629
15630    if test $ac_cv_func_gethostbyname = no; then
15631      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15632$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15633if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
15634  $as_echo_n "(cached) " >&6
15635else
15636  ac_check_lib_save_LIBS=$LIBS
15637LIBS="-lnsl  $LIBS"
15638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639/* end confdefs.h.  */
15640
15641/* Override any GCC internal prototype to avoid an error.
15642   Use char because int might match the return type of a GCC
15643   builtin and then its argument prototype would still apply.  */
15644#ifdef __cplusplus
15645extern "C"
15646#endif
15647char gethostbyname ();
15648int
15649main ()
15650{
15651return gethostbyname ();
15652  ;
15653  return 0;
15654}
15655_ACEOF
15656if ac_fn_c_try_link "$LINENO"; then :
15657  ac_cv_lib_nsl_gethostbyname=yes
15658else
15659  ac_cv_lib_nsl_gethostbyname=no
15660fi
15661rm -f core conftest.err conftest.$ac_objext \
15662    conftest$ac_exeext conftest.$ac_ext
15663LIBS=$ac_check_lib_save_LIBS
15664fi
15665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15666$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15667if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
15668  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15669fi
15670
15671      if test $ac_cv_lib_nsl_gethostbyname = no; then
15672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
15673$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
15674if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
15675  $as_echo_n "(cached) " >&6
15676else
15677  ac_check_lib_save_LIBS=$LIBS
15678LIBS="-lbsd  $LIBS"
15679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680/* end confdefs.h.  */
15681
15682/* Override any GCC internal prototype to avoid an error.
15683   Use char because int might match the return type of a GCC
15684   builtin and then its argument prototype would still apply.  */
15685#ifdef __cplusplus
15686extern "C"
15687#endif
15688char gethostbyname ();
15689int
15690main ()
15691{
15692return gethostbyname ();
15693  ;
15694  return 0;
15695}
15696_ACEOF
15697if ac_fn_c_try_link "$LINENO"; then :
15698  ac_cv_lib_bsd_gethostbyname=yes
15699else
15700  ac_cv_lib_bsd_gethostbyname=no
15701fi
15702rm -f core conftest.err conftest.$ac_objext \
15703    conftest$ac_exeext conftest.$ac_ext
15704LIBS=$ac_check_lib_save_LIBS
15705fi
15706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
15707$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
15708if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
15709  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
15710fi
15711
15712      fi
15713    fi
15714
15715    # lieder@skyler.mavd.honeywell.com says without -lsocket,
15716    # socket/setsockopt and other routines are undefined under SCO ODT
15717    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
15718    # on later versions), says Simon Leinen: it contains gethostby*
15719    # variants that don't use the name server (or something).  -lsocket
15720    # must be given before -lnsl if both are needed.  We assume that
15721    # if connect needs -lnsl, so does gethostbyname.
15722    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15723if test "x$ac_cv_func_connect" = x""yes; then :
15724
15725fi
15726
15727    if test $ac_cv_func_connect = no; then
15728      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15729$as_echo_n "checking for connect in -lsocket... " >&6; }
15730if test "${ac_cv_lib_socket_connect+set}" = set; then :
15731  $as_echo_n "(cached) " >&6
15732else
15733  ac_check_lib_save_LIBS=$LIBS
15734LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736/* end confdefs.h.  */
15737
15738/* Override any GCC internal prototype to avoid an error.
15739   Use char because int might match the return type of a GCC
15740   builtin and then its argument prototype would still apply.  */
15741#ifdef __cplusplus
15742extern "C"
15743#endif
15744char connect ();
15745int
15746main ()
15747{
15748return connect ();
15749  ;
15750  return 0;
15751}
15752_ACEOF
15753if ac_fn_c_try_link "$LINENO"; then :
15754  ac_cv_lib_socket_connect=yes
15755else
15756  ac_cv_lib_socket_connect=no
15757fi
15758rm -f core conftest.err conftest.$ac_objext \
15759    conftest$ac_exeext conftest.$ac_ext
15760LIBS=$ac_check_lib_save_LIBS
15761fi
15762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15763$as_echo "$ac_cv_lib_socket_connect" >&6; }
15764if test "x$ac_cv_lib_socket_connect" = x""yes; then :
15765  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15766fi
15767
15768    fi
15769
15770    # Guillermo Gomez says -lposix is necessary on A/UX.
15771    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
15772if test "x$ac_cv_func_remove" = x""yes; then :
15773
15774fi
15775
15776    if test $ac_cv_func_remove = no; then
15777      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
15778$as_echo_n "checking for remove in -lposix... " >&6; }
15779if test "${ac_cv_lib_posix_remove+set}" = set; then :
15780  $as_echo_n "(cached) " >&6
15781else
15782  ac_check_lib_save_LIBS=$LIBS
15783LIBS="-lposix  $LIBS"
15784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785/* end confdefs.h.  */
15786
15787/* Override any GCC internal prototype to avoid an error.
15788   Use char because int might match the return type of a GCC
15789   builtin and then its argument prototype would still apply.  */
15790#ifdef __cplusplus
15791extern "C"
15792#endif
15793char remove ();
15794int
15795main ()
15796{
15797return remove ();
15798  ;
15799  return 0;
15800}
15801_ACEOF
15802if ac_fn_c_try_link "$LINENO"; then :
15803  ac_cv_lib_posix_remove=yes
15804else
15805  ac_cv_lib_posix_remove=no
15806fi
15807rm -f core conftest.err conftest.$ac_objext \
15808    conftest$ac_exeext conftest.$ac_ext
15809LIBS=$ac_check_lib_save_LIBS
15810fi
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
15812$as_echo "$ac_cv_lib_posix_remove" >&6; }
15813if test "x$ac_cv_lib_posix_remove" = x""yes; then :
15814  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15815fi
15816
15817    fi
15818
15819    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15820    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
15821if test "x$ac_cv_func_shmat" = x""yes; then :
15822
15823fi
15824
15825    if test $ac_cv_func_shmat = no; then
15826      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
15827$as_echo_n "checking for shmat in -lipc... " >&6; }
15828if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
15829  $as_echo_n "(cached) " >&6
15830else
15831  ac_check_lib_save_LIBS=$LIBS
15832LIBS="-lipc  $LIBS"
15833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834/* end confdefs.h.  */
15835
15836/* Override any GCC internal prototype to avoid an error.
15837   Use char because int might match the return type of a GCC
15838   builtin and then its argument prototype would still apply.  */
15839#ifdef __cplusplus
15840extern "C"
15841#endif
15842char shmat ();
15843int
15844main ()
15845{
15846return shmat ();
15847  ;
15848  return 0;
15849}
15850_ACEOF
15851if ac_fn_c_try_link "$LINENO"; then :
15852  ac_cv_lib_ipc_shmat=yes
15853else
15854  ac_cv_lib_ipc_shmat=no
15855fi
15856rm -f core conftest.err conftest.$ac_objext \
15857    conftest$ac_exeext conftest.$ac_ext
15858LIBS=$ac_check_lib_save_LIBS
15859fi
15860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
15861$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
15862if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
15863  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15864fi
15865
15866    fi
15867  fi
15868
15869  # Check for libraries that X11R6 Xt/Xaw programs need.
15870  ac_save_LDFLAGS=$LDFLAGS
15871  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15872  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15873  # check for ICE first), but we must link in the order -lSM -lICE or
15874  # we get undefined symbols.  So assume we have SM if we have ICE.
15875  # These have to be linked with before -lX11, unlike the other
15876  # libraries we check for below, so use a different variable.
15877  # John Interrante, Karl Berry
15878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
15879$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
15880if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
15881  $as_echo_n "(cached) " >&6
15882else
15883  ac_check_lib_save_LIBS=$LIBS
15884LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886/* end confdefs.h.  */
15887
15888/* Override any GCC internal prototype to avoid an error.
15889   Use char because int might match the return type of a GCC
15890   builtin and then its argument prototype would still apply.  */
15891#ifdef __cplusplus
15892extern "C"
15893#endif
15894char IceConnectionNumber ();
15895int
15896main ()
15897{
15898return IceConnectionNumber ();
15899  ;
15900  return 0;
15901}
15902_ACEOF
15903if ac_fn_c_try_link "$LINENO"; then :
15904  ac_cv_lib_ICE_IceConnectionNumber=yes
15905else
15906  ac_cv_lib_ICE_IceConnectionNumber=no
15907fi
15908rm -f core conftest.err conftest.$ac_objext \
15909    conftest$ac_exeext conftest.$ac_ext
15910LIBS=$ac_check_lib_save_LIBS
15911fi
15912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
15913$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
15914if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
15915  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15916fi
15917
15918  LDFLAGS=$ac_save_LDFLAGS
15919
15920fi
15921
15922
15923if test "x${ac_cv_have_x+set}" = set; then
15924	as_fn_error "X11 is missing but required." "$LINENO" 5
15925fi
15926
15927CFLAGS="$CFLAGS $X_CFLAGS"
15928CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15929LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
15930
15931# Checks for typedefs, structures, and compiler characteristics.
15932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15933$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15934if test "${ac_cv_c_const+set}" = set; then :
15935  $as_echo_n "(cached) " >&6
15936else
15937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938/* end confdefs.h.  */
15939
15940int
15941main ()
15942{
15943/* FIXME: Include the comments suggested by Paul. */
15944#ifndef __cplusplus
15945  /* Ultrix mips cc rejects this.  */
15946  typedef int charset[2];
15947  const charset cs;
15948  /* SunOS 4.1.1 cc rejects this.  */
15949  char const *const *pcpcc;
15950  char **ppc;
15951  /* NEC SVR4.0.2 mips cc rejects this.  */
15952  struct point {int x, y;};
15953  static struct point const zero = {0,0};
15954  /* AIX XL C 1.02.0.0 rejects this.
15955     It does not let you subtract one const X* pointer from another in
15956     an arm of an if-expression whose if-part is not a constant
15957     expression */
15958  const char *g = "string";
15959  pcpcc = &g + (g ? g-g : 0);
15960  /* HPUX 7.0 cc rejects these. */
15961  ++pcpcc;
15962  ppc = (char**) pcpcc;
15963  pcpcc = (char const *const *) ppc;
15964  { /* SCO 3.2v4 cc rejects this.  */
15965    char *t;
15966    char const *s = 0 ? (char *) 0 : (char const *) 0;
15967
15968    *t++ = 0;
15969    if (s) return 0;
15970  }
15971  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15972    int x[] = {25, 17};
15973    const int *foo = &x[0];
15974    ++foo;
15975  }
15976  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15977    typedef const int *iptr;
15978    iptr p = 0;
15979    ++p;
15980  }
15981  { /* AIX XL C 1.02.0.0 rejects this saying
15982       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15983    struct s { int j; const int *ap[3]; };
15984    struct s *b; b->j = 5;
15985  }
15986  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15987    const int foo = 10;
15988    if (!foo) return 0;
15989  }
15990  return !cs[0] && !zero.x;
15991#endif
15992
15993  ;
15994  return 0;
15995}
15996_ACEOF
15997if ac_fn_c_try_compile "$LINENO"; then :
15998  ac_cv_c_const=yes
15999else
16000  ac_cv_c_const=no
16001fi
16002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16003fi
16004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16005$as_echo "$ac_cv_c_const" >&6; }
16006if test $ac_cv_c_const = no; then
16007
16008$as_echo "#define const /**/" >>confdefs.h
16009
16010fi
16011
16012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16013$as_echo_n "checking for inline... " >&6; }
16014if test "${ac_cv_c_inline+set}" = set; then :
16015  $as_echo_n "(cached) " >&6
16016else
16017  ac_cv_c_inline=no
16018for ac_kw in inline __inline__ __inline; do
16019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020/* end confdefs.h.  */
16021#ifndef __cplusplus
16022typedef int foo_t;
16023static $ac_kw foo_t static_foo () {return 0; }
16024$ac_kw foo_t foo () {return 0; }
16025#endif
16026
16027_ACEOF
16028if ac_fn_c_try_compile "$LINENO"; then :
16029  ac_cv_c_inline=$ac_kw
16030fi
16031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032  test "$ac_cv_c_inline" != no && break
16033done
16034
16035fi
16036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16037$as_echo "$ac_cv_c_inline" >&6; }
16038
16039case $ac_cv_c_inline in
16040  inline | yes) ;;
16041  *)
16042    case $ac_cv_c_inline in
16043      no) ac_val=;;
16044      *) ac_val=$ac_cv_c_inline;;
16045    esac
16046    cat >>confdefs.h <<_ACEOF
16047#ifndef __cplusplus
16048#define inline $ac_val
16049#endif
16050_ACEOF
16051    ;;
16052esac
16053
16054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16055$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16056if test "${ac_cv_header_time+set}" = set; then :
16057  $as_echo_n "(cached) " >&6
16058else
16059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060/* end confdefs.h.  */
16061#include <sys/types.h>
16062#include <sys/time.h>
16063#include <time.h>
16064
16065int
16066main ()
16067{
16068if ((struct tm *) 0)
16069return 0;
16070  ;
16071  return 0;
16072}
16073_ACEOF
16074if ac_fn_c_try_compile "$LINENO"; then :
16075  ac_cv_header_time=yes
16076else
16077  ac_cv_header_time=no
16078fi
16079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080fi
16081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16082$as_echo "$ac_cv_header_time" >&6; }
16083if test $ac_cv_header_time = yes; then
16084
16085$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16086
16087fi
16088
16089
16090# Checks for library functions.
16091for ac_func in getopt
16092do :
16093  ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
16094if test "x$ac_cv_func_getopt" = x""yes; then :
16095  cat >>confdefs.h <<_ACEOF
16096#define HAVE_GETOPT 1
16097_ACEOF
16098
16099else
16100  as_fn_error "getopt is missing but required." "$LINENO" 5
16101fi
16102done
16103
16104for ac_header in getopt.h bzlib.h
16105do :
16106  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16107ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16108eval as_val=\$$as_ac_Header
16109   if test "x$as_val" = x""yes; then :
16110  cat >>confdefs.h <<_ACEOF
16111#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16112_ACEOF
16113
16114fi
16115
16116done
16117
16118
16119for ac_func in gettimeofday
16120do :
16121  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16122if test "x$ac_cv_func_gettimeofday" = x""yes; then :
16123  cat >>confdefs.h <<_ACEOF
16124#define HAVE_GETTIMEOFDAY 1
16125_ACEOF
16126
16127else
16128  as_fn_error "gettimeofday is missing but required." "$LINENO" 5
16129fi
16130done
16131
16132
16133for ac_func in nanosleep
16134do :
16135  ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
16136if test "x$ac_cv_func_nanosleep" = x""yes; then :
16137  cat >>confdefs.h <<_ACEOF
16138#define HAVE_NANOSLEEP 1
16139_ACEOF
16140
16141fi
16142done
16143
16144if test "x$ac_cv_func_nanosleep" = "xno" ; then
16145	echo "Hrm, maybe nanosleep is in -lrt";
16146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
16147$as_echo_n "checking for nanosleep in -lrt... " >&6; }
16148if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
16149  $as_echo_n "(cached) " >&6
16150else
16151  ac_check_lib_save_LIBS=$LIBS
16152LIBS="-lrt  $LIBS"
16153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154/* end confdefs.h.  */
16155
16156/* Override any GCC internal prototype to avoid an error.
16157   Use char because int might match the return type of a GCC
16158   builtin and then its argument prototype would still apply.  */
16159#ifdef __cplusplus
16160extern "C"
16161#endif
16162char nanosleep ();
16163int
16164main ()
16165{
16166return nanosleep ();
16167  ;
16168  return 0;
16169}
16170_ACEOF
16171if ac_fn_c_try_link "$LINENO"; then :
16172  ac_cv_lib_rt_nanosleep=yes
16173else
16174  ac_cv_lib_rt_nanosleep=no
16175fi
16176rm -f core conftest.err conftest.$ac_objext \
16177    conftest$ac_exeext conftest.$ac_ext
16178LIBS=$ac_check_lib_save_LIBS
16179fi
16180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
16181$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
16182if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
16183  cat >>confdefs.h <<_ACEOF
16184#define HAVE_LIBRT 1
16185_ACEOF
16186
16187  LIBS="-lrt $LIBS"
16188
16189fi
16190
16191
16192	unset ac_cv_func_nanosleep
16193	for ac_func in nanosleep
16194do :
16195  ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
16196if test "x$ac_cv_func_nanosleep" = x""yes; then :
16197  cat >>confdefs.h <<_ACEOF
16198#define HAVE_NANOSLEEP 1
16199_ACEOF
16200
16201fi
16202done
16203
16204fi
16205
16206for ac_func in random_r nrand48
16207do :
16208  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16209ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16210eval as_val=\$$as_ac_var
16211   if test "x$as_val" = x""yes; then :
16212  cat >>confdefs.h <<_ACEOF
16213#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16214_ACEOF
16215
16216fi
16217done
16218
16219
16220# Check for ImageMagick.
16221
16222
16223if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16224	if test -n "$ac_tool_prefix"; then
16225  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16226set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16228$as_echo_n "checking for $ac_word... " >&6; }
16229if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16230  $as_echo_n "(cached) " >&6
16231else
16232  case $PKG_CONFIG in
16233  [\\/]* | ?:[\\/]*)
16234  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16235  ;;
16236  *)
16237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16238for as_dir in $PATH
16239do
16240  IFS=$as_save_IFS
16241  test -z "$as_dir" && as_dir=.
16242    for ac_exec_ext in '' $ac_executable_extensions; do
16243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16244    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16246    break 2
16247  fi
16248done
16249  done
16250IFS=$as_save_IFS
16251
16252  ;;
16253esac
16254fi
16255PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16256if test -n "$PKG_CONFIG"; then
16257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16258$as_echo "$PKG_CONFIG" >&6; }
16259else
16260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16261$as_echo "no" >&6; }
16262fi
16263
16264
16265fi
16266if test -z "$ac_cv_path_PKG_CONFIG"; then
16267  ac_pt_PKG_CONFIG=$PKG_CONFIG
16268  # Extract the first word of "pkg-config", so it can be a program name with args.
16269set dummy pkg-config; ac_word=$2
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16271$as_echo_n "checking for $ac_word... " >&6; }
16272if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16273  $as_echo_n "(cached) " >&6
16274else
16275  case $ac_pt_PKG_CONFIG in
16276  [\\/]* | ?:[\\/]*)
16277  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16278  ;;
16279  *)
16280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16281for as_dir in $PATH
16282do
16283  IFS=$as_save_IFS
16284  test -z "$as_dir" && as_dir=.
16285    for ac_exec_ext in '' $ac_executable_extensions; do
16286  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16287    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16289    break 2
16290  fi
16291done
16292  done
16293IFS=$as_save_IFS
16294
16295  ;;
16296esac
16297fi
16298ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16299if test -n "$ac_pt_PKG_CONFIG"; then
16300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16301$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16302else
16303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304$as_echo "no" >&6; }
16305fi
16306
16307  if test "x$ac_pt_PKG_CONFIG" = x; then
16308    PKG_CONFIG=""
16309  else
16310    case $cross_compiling:$ac_tool_warned in
16311yes:)
16312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16314ac_tool_warned=yes ;;
16315esac
16316    PKG_CONFIG=$ac_pt_PKG_CONFIG
16317  fi
16318else
16319  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16320fi
16321
16322fi
16323if test -n "$PKG_CONFIG"; then
16324	_pkg_min_version=0.9.0
16325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16326$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16327	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16329$as_echo "yes" >&6; }
16330	else
16331		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16332$as_echo "no" >&6; }
16333		PKG_CONFIG=""
16334	fi
16335
16336fi
16337
16338pkg_failed=no
16339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wand" >&5
16340$as_echo_n "checking for Wand... " >&6; }
16341
16342if test -n "$PKG_CONFIG"; then
16343    if test -n "$Wand_CFLAGS"; then
16344        pkg_cv_Wand_CFLAGS="$Wand_CFLAGS"
16345    else
16346        if test -n "$PKG_CONFIG" && \
16347    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Wand >= 6.4\""; } >&5
16348  ($PKG_CONFIG --exists --print-errors "Wand >= 6.4") 2>&5
16349  ac_status=$?
16350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16351  test $ac_status = 0; }; then
16352  pkg_cv_Wand_CFLAGS=`$PKG_CONFIG --cflags "Wand >= 6.4" 2>/dev/null`
16353else
16354  pkg_failed=yes
16355fi
16356    fi
16357else
16358	pkg_failed=untried
16359fi
16360if test -n "$PKG_CONFIG"; then
16361    if test -n "$Wand_LIBS"; then
16362        pkg_cv_Wand_LIBS="$Wand_LIBS"
16363    else
16364        if test -n "$PKG_CONFIG" && \
16365    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Wand >= 6.4\""; } >&5
16366  ($PKG_CONFIG --exists --print-errors "Wand >= 6.4") 2>&5
16367  ac_status=$?
16368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16369  test $ac_status = 0; }; then
16370  pkg_cv_Wand_LIBS=`$PKG_CONFIG --libs "Wand >= 6.4" 2>/dev/null`
16371else
16372  pkg_failed=yes
16373fi
16374    fi
16375else
16376	pkg_failed=untried
16377fi
16378
16379
16380
16381if test $pkg_failed = yes; then
16382
16383if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16384        _pkg_short_errors_supported=yes
16385else
16386        _pkg_short_errors_supported=no
16387fi
16388        if test $_pkg_short_errors_supported = yes; then
16389	        Wand_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Wand >= 6.4"`
16390        else
16391	        Wand_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Wand >= 6.4"`
16392        fi
16393	# Put the nasty error message in config.log where it belongs
16394	echo "$Wand_PKG_ERRORS" >&5
16395
16396	as_fn_error "Package requirements (Wand >= 6.4) were not met:
16397
16398$Wand_PKG_ERRORS
16399
16400Consider adjusting the PKG_CONFIG_PATH environment variable if you
16401installed software in a non-standard prefix.
16402
16403Alternatively, you may set the environment variables Wand_CFLAGS
16404and Wand_LIBS to avoid the need to call pkg-config.
16405See the pkg-config man page for more details.
16406" "$LINENO" 5
16407elif test $pkg_failed = untried; then
16408	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16410as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
16411is in your PATH or set the PKG_CONFIG environment variable to the full
16412path to pkg-config.
16413
16414Alternatively, you may set the environment variables Wand_CFLAGS
16415and Wand_LIBS to avoid the need to call pkg-config.
16416See the pkg-config man page for more details.
16417
16418To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16419See \`config.log' for more details." "$LINENO" 5; }
16420else
16421	Wand_CFLAGS=$pkg_cv_Wand_CFLAGS
16422	Wand_LIBS=$pkg_cv_Wand_LIBS
16423        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16424$as_echo "yes" >&6; }
16425	:
16426fi
16427
16428if test -d src/skyrocket_sounds ; then
16429	# Check whether --enable-sound was given.
16430if test "${enable_sound+set}" = set; then :
16431  enableval=$enable_sound;
16432fi
16433
16434else
16435	echo "Audio samples not found, disabling sound.";
16436	enable_sound=no
16437fi
16438
16439if test "x$enable_sound" != "xno" ; then
16440
16441pkg_failed=no
16442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freealut" >&5
16443$as_echo_n "checking for freealut... " >&6; }
16444
16445if test -n "$PKG_CONFIG"; then
16446    if test -n "$freealut_CFLAGS"; then
16447        pkg_cv_freealut_CFLAGS="$freealut_CFLAGS"
16448    else
16449        if test -n "$PKG_CONFIG" && \
16450    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freealut >= 1.0.0\""; } >&5
16451  ($PKG_CONFIG --exists --print-errors "freealut >= 1.0.0") 2>&5
16452  ac_status=$?
16453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16454  test $ac_status = 0; }; then
16455  pkg_cv_freealut_CFLAGS=`$PKG_CONFIG --cflags "freealut >= 1.0.0" 2>/dev/null`
16456else
16457  pkg_failed=yes
16458fi
16459    fi
16460else
16461	pkg_failed=untried
16462fi
16463if test -n "$PKG_CONFIG"; then
16464    if test -n "$freealut_LIBS"; then
16465        pkg_cv_freealut_LIBS="$freealut_LIBS"
16466    else
16467        if test -n "$PKG_CONFIG" && \
16468    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freealut >= 1.0.0\""; } >&5
16469  ($PKG_CONFIG --exists --print-errors "freealut >= 1.0.0") 2>&5
16470  ac_status=$?
16471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16472  test $ac_status = 0; }; then
16473  pkg_cv_freealut_LIBS=`$PKG_CONFIG --libs "freealut >= 1.0.0" 2>/dev/null`
16474else
16475  pkg_failed=yes
16476fi
16477    fi
16478else
16479	pkg_failed=untried
16480fi
16481
16482
16483
16484if test $pkg_failed = yes; then
16485
16486if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16487        _pkg_short_errors_supported=yes
16488else
16489        _pkg_short_errors_supported=no
16490fi
16491        if test $_pkg_short_errors_supported = yes; then
16492	        freealut_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freealut >= 1.0.0"`
16493        else
16494	        freealut_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freealut >= 1.0.0"`
16495        fi
16496	# Put the nasty error message in config.log where it belongs
16497	echo "$freealut_PKG_ERRORS" >&5
16498
16499	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16500$as_echo "no" >&6; }
16501                 if false; then
16502  WITHSOUND_TRUE=
16503  WITHSOUND_FALSE='#'
16504else
16505  WITHSOUND_TRUE='#'
16506  WITHSOUND_FALSE=
16507fi
16508
16509elif test $pkg_failed = untried; then
16510	 if false; then
16511  WITHSOUND_TRUE=
16512  WITHSOUND_FALSE='#'
16513else
16514  WITHSOUND_TRUE='#'
16515  WITHSOUND_FALSE=
16516fi
16517
16518else
16519	freealut_CFLAGS=$pkg_cv_freealut_CFLAGS
16520	freealut_LIBS=$pkg_cv_freealut_LIBS
16521        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16522$as_echo "yes" >&6; }
16523	 if true; then
16524  WITHSOUND_TRUE=
16525  WITHSOUND_FALSE='#'
16526else
16527  WITHSOUND_TRUE='#'
16528  WITHSOUND_FALSE=
16529fi
16530
16531$as_echo "#define HAVE_OPENAL /**/" >>confdefs.h
16532
16533fi
16534else
16535	 if false; then
16536  WITHSOUND_TRUE=
16537  WITHSOUND_FALSE='#'
16538else
16539  WITHSOUND_TRUE='#'
16540  WITHSOUND_FALSE=
16541fi
16542
16543fi
16544
16545for ac_header in pthread.h
16546do :
16547  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16548if test "x$ac_cv_header_pthread_h" = x""yes; then :
16549  cat >>confdefs.h <<_ACEOF
16550#define HAVE_PTHREAD_H 1
16551_ACEOF
16552
16553fi
16554
16555done
16556
16557if test "x$ac_cv_header_pthread_h" = "xyes" ; then
16558	# Maybe we don't need to link squat
16559	for ac_func in pthread_create
16560do :
16561  ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
16562if test "x$ac_cv_func_pthread_create" = x""yes; then :
16563  cat >>confdefs.h <<_ACEOF
16564#define HAVE_PTHREAD_CREATE 1
16565_ACEOF
16566
16567fi
16568done
16569
16570
16571	if test "x$ac_cv_func_pthread_create" = "xno" ; then
16572		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16573$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16574if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
16575  $as_echo_n "(cached) " >&6
16576else
16577  ac_check_lib_save_LIBS=$LIBS
16578LIBS="-lpthread  $LIBS"
16579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580/* end confdefs.h.  */
16581
16582/* Override any GCC internal prototype to avoid an error.
16583   Use char because int might match the return type of a GCC
16584   builtin and then its argument prototype would still apply.  */
16585#ifdef __cplusplus
16586extern "C"
16587#endif
16588char pthread_create ();
16589int
16590main ()
16591{
16592return pthread_create ();
16593  ;
16594  return 0;
16595}
16596_ACEOF
16597if ac_fn_c_try_link "$LINENO"; then :
16598  ac_cv_lib_pthread_pthread_create=yes
16599else
16600  ac_cv_lib_pthread_pthread_create=no
16601fi
16602rm -f core conftest.err conftest.$ac_objext \
16603    conftest$ac_exeext conftest.$ac_ext
16604LIBS=$ac_check_lib_save_LIBS
16605fi
16606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16607$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16608if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
16609  PTHREAD_LIBS="-lpthread"
16610
16611fi
16612
16613
16614		if test "x$ac_cv_lib_pthread_pthread_create" = "xno" ; then
16615			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
16616$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
16617if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
16618  $as_echo_n "(cached) " >&6
16619else
16620  ac_check_lib_save_LIBS=$LIBS
16621LIBS="-lc_r  $LIBS"
16622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623/* end confdefs.h.  */
16624
16625/* Override any GCC internal prototype to avoid an error.
16626   Use char because int might match the return type of a GCC
16627   builtin and then its argument prototype would still apply.  */
16628#ifdef __cplusplus
16629extern "C"
16630#endif
16631char pthread_create ();
16632int
16633main ()
16634{
16635return pthread_create ();
16636  ;
16637  return 0;
16638}
16639_ACEOF
16640if ac_fn_c_try_link "$LINENO"; then :
16641  ac_cv_lib_c_r_pthread_create=yes
16642else
16643  ac_cv_lib_c_r_pthread_create=no
16644fi
16645rm -f core conftest.err conftest.$ac_objext \
16646    conftest$ac_exeext conftest.$ac_ext
16647LIBS=$ac_check_lib_save_LIBS
16648fi
16649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16650$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
16651if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
16652  PTHREAD_LIBS="-lc_r"
16653
16654fi
16655
16656
16657			if test "x$ac_cv_lib_c_r_pthread_create" = "xno"; then
16658				missing_pthread=yes
16659			fi
16660		fi
16661	fi
16662else
16663	missing_pthread=yes
16664fi
16665
16666if test "x$missing_pthread" = "xyes" ; then
16667	as_fn_error "pthreads is missing but required." "$LINENO" 5
16668fi
16669
16670# Check for OpenGL headers first.
16671ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
16672if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
16673
16674fi
16675
16676
16677
16678if test "x$ac_cv_header_GL_gl_h" = "xno" ; then
16679	CFLAGS="$CFLAGS -I/usr/openwin/share/include"
16680	CPPFLAGS="$CPPFLAGS -I/usr/openwin/share/include"
16681
16682	echo "Hrm, maybe GL/gl.h is in /usr/openwin/share/include";
16683	unset ac_cv_header_GL_gl_h
16684	ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
16685if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
16686
16687else
16688  as_fn_error "No gl.h found." "$LINENO" 5
16689fi
16690
16691
16692fi
16693
16694ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
16695if test "x$ac_cv_header_GL_glx_h" = x""yes; then :
16696
16697else
16698  as_fn_error "No glx.h found." "$LINENO" 5
16699fi
16700
16701
16702
16703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glNewList in -lGL" >&5
16704$as_echo_n "checking for glNewList in -lGL... " >&6; }
16705if test "${ac_cv_lib_GL_glNewList+set}" = set; then :
16706  $as_echo_n "(cached) " >&6
16707else
16708  ac_check_lib_save_LIBS=$LIBS
16709LIBS="-lGL  $LIBS"
16710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711/* end confdefs.h.  */
16712
16713/* Override any GCC internal prototype to avoid an error.
16714   Use char because int might match the return type of a GCC
16715   builtin and then its argument prototype would still apply.  */
16716#ifdef __cplusplus
16717extern "C"
16718#endif
16719char glNewList ();
16720int
16721main ()
16722{
16723return glNewList ();
16724  ;
16725  return 0;
16726}
16727_ACEOF
16728if ac_fn_c_try_link "$LINENO"; then :
16729  ac_cv_lib_GL_glNewList=yes
16730else
16731  ac_cv_lib_GL_glNewList=no
16732fi
16733rm -f core conftest.err conftest.$ac_objext \
16734    conftest$ac_exeext conftest.$ac_ext
16735LIBS=$ac_check_lib_save_LIBS
16736fi
16737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glNewList" >&5
16738$as_echo "$ac_cv_lib_GL_glNewList" >&6; }
16739if test "x$ac_cv_lib_GL_glNewList" = x""yes; then :
16740  cat >>confdefs.h <<_ACEOF
16741#define HAVE_LIBGL 1
16742_ACEOF
16743
16744  LIBS="-lGL $LIBS"
16745
16746fi
16747
16748if test "x$ac_cv_lib_GL_glNewList" = "xno" ; then
16749                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glNewList in -lMesaGL" >&5
16750$as_echo_n "checking for glNewList in -lMesaGL... " >&6; }
16751if test "${ac_cv_lib_MesaGL_glNewList+set}" = set; then :
16752  $as_echo_n "(cached) " >&6
16753else
16754  ac_check_lib_save_LIBS=$LIBS
16755LIBS="-lMesaGL  $LIBS"
16756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757/* end confdefs.h.  */
16758
16759/* Override any GCC internal prototype to avoid an error.
16760   Use char because int might match the return type of a GCC
16761   builtin and then its argument prototype would still apply.  */
16762#ifdef __cplusplus
16763extern "C"
16764#endif
16765char glNewList ();
16766int
16767main ()
16768{
16769return glNewList ();
16770  ;
16771  return 0;
16772}
16773_ACEOF
16774if ac_fn_c_try_link "$LINENO"; then :
16775  ac_cv_lib_MesaGL_glNewList=yes
16776else
16777  ac_cv_lib_MesaGL_glNewList=no
16778fi
16779rm -f core conftest.err conftest.$ac_objext \
16780    conftest$ac_exeext conftest.$ac_ext
16781LIBS=$ac_check_lib_save_LIBS
16782fi
16783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glNewList" >&5
16784$as_echo "$ac_cv_lib_MesaGL_glNewList" >&6; }
16785if test "x$ac_cv_lib_MesaGL_glNewList" = x""yes; then :
16786  cat >>confdefs.h <<_ACEOF
16787#define HAVE_LIBMESAGL 1
16788_ACEOF
16789
16790  LIBS="-lMesaGL $LIBS"
16791
16792else
16793  as_fn_error "GL library was not found." "$LINENO" 5
16794fi
16795
16796fi
16797
16798# Check for GLU headers.
16799ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
16800if test "x$ac_cv_header_GL_glu_h" = x""yes; then :
16801
16802else
16803  as_fn_error "No glu.h found." "$LINENO" 5
16804fi
16805
16806
16807
16808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
16809$as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
16810if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then :
16811  $as_echo_n "(cached) " >&6
16812else
16813  ac_check_lib_save_LIBS=$LIBS
16814LIBS="-lGLU  $LIBS"
16815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816/* end confdefs.h.  */
16817
16818/* Override any GCC internal prototype to avoid an error.
16819   Use char because int might match the return type of a GCC
16820   builtin and then its argument prototype would still apply.  */
16821#ifdef __cplusplus
16822extern "C"
16823#endif
16824char gluLookAt ();
16825int
16826main ()
16827{
16828return gluLookAt ();
16829  ;
16830  return 0;
16831}
16832_ACEOF
16833if ac_fn_c_try_link "$LINENO"; then :
16834  ac_cv_lib_GLU_gluLookAt=yes
16835else
16836  ac_cv_lib_GLU_gluLookAt=no
16837fi
16838rm -f core conftest.err conftest.$ac_objext \
16839    conftest$ac_exeext conftest.$ac_ext
16840LIBS=$ac_check_lib_save_LIBS
16841fi
16842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
16843$as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
16844if test "x$ac_cv_lib_GLU_gluLookAt" = x""yes; then :
16845  cat >>confdefs.h <<_ACEOF
16846#define HAVE_LIBGLU 1
16847_ACEOF
16848
16849  LIBS="-lGLU $LIBS"
16850
16851fi
16852
16853if test "x$ac_cv_lib_GLU_gluLookAt" = "xno"; then
16854                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lMesaGLU" >&5
16855$as_echo_n "checking for gluLookAt in -lMesaGLU... " >&6; }
16856if test "${ac_cv_lib_MesaGLU_gluLookAt+set}" = set; then :
16857  $as_echo_n "(cached) " >&6
16858else
16859  ac_check_lib_save_LIBS=$LIBS
16860LIBS="-lMesaGLU  $LIBS"
16861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862/* end confdefs.h.  */
16863
16864/* Override any GCC internal prototype to avoid an error.
16865   Use char because int might match the return type of a GCC
16866   builtin and then its argument prototype would still apply.  */
16867#ifdef __cplusplus
16868extern "C"
16869#endif
16870char gluLookAt ();
16871int
16872main ()
16873{
16874return gluLookAt ();
16875  ;
16876  return 0;
16877}
16878_ACEOF
16879if ac_fn_c_try_link "$LINENO"; then :
16880  ac_cv_lib_MesaGLU_gluLookAt=yes
16881else
16882  ac_cv_lib_MesaGLU_gluLookAt=no
16883fi
16884rm -f core conftest.err conftest.$ac_objext \
16885    conftest$ac_exeext conftest.$ac_ext
16886LIBS=$ac_check_lib_save_LIBS
16887fi
16888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGLU_gluLookAt" >&5
16889$as_echo "$ac_cv_lib_MesaGLU_gluLookAt" >&6; }
16890if test "x$ac_cv_lib_MesaGLU_gluLookAt" = x""yes; then :
16891  cat >>confdefs.h <<_ACEOF
16892#define HAVE_LIBMESAGLU 1
16893_ACEOF
16894
16895  LIBS="-lMesaGLU $LIBS"
16896
16897else
16898  as_fn_error "GLU library was not found." "$LINENO" 5
16899fi
16900
16901fi
16902
16903for ac_header in GL/glew.h
16904do :
16905  ac_fn_c_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default"
16906if test "x$ac_cv_header_GL_glew_h" = x""yes; then :
16907  cat >>confdefs.h <<_ACEOF
16908#define HAVE_GL_GLEW_H 1
16909_ACEOF
16910
16911fi
16912
16913done
16914
16915
16916if test "x$ac_cv_header_GL_glew_h" = "xyes" ; then
16917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glewInit in -lGLEW" >&5
16918$as_echo_n "checking for glewInit in -lGLEW... " >&6; }
16919if test "${ac_cv_lib_GLEW_glewInit+set}" = set; then :
16920  $as_echo_n "(cached) " >&6
16921else
16922  ac_check_lib_save_LIBS=$LIBS
16923LIBS="-lGLEW  $LIBS"
16924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925/* end confdefs.h.  */
16926
16927/* Override any GCC internal prototype to avoid an error.
16928   Use char because int might match the return type of a GCC
16929   builtin and then its argument prototype would still apply.  */
16930#ifdef __cplusplus
16931extern "C"
16932#endif
16933char glewInit ();
16934int
16935main ()
16936{
16937return glewInit ();
16938  ;
16939  return 0;
16940}
16941_ACEOF
16942if ac_fn_c_try_link "$LINENO"; then :
16943  ac_cv_lib_GLEW_glewInit=yes
16944else
16945  ac_cv_lib_GLEW_glewInit=no
16946fi
16947rm -f core conftest.err conftest.$ac_objext \
16948    conftest$ac_exeext conftest.$ac_ext
16949LIBS=$ac_check_lib_save_LIBS
16950fi
16951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLEW_glewInit" >&5
16952$as_echo "$ac_cv_lib_GLEW_glewInit" >&6; }
16953if test "x$ac_cv_lib_GLEW_glewInit" = x""yes; then :
16954  GLEW=-lGLEW
16955
16956$as_echo "#define HAVE_GLEW /**/" >>confdefs.h
16957
16958else
16959  as_fn_error "Install GLEW 1.3.1 or better" "$LINENO" 5
16960fi
16961
16962	 if test "x$ac_cv_lib_GLEW_glewInit" = "xyes"; then
16963  WITHGLEW_TRUE=
16964  WITHGLEW_FALSE='#'
16965else
16966  WITHGLEW_TRUE='#'
16967  WITHGLEW_FALSE=
16968fi
16969
16970else
16971	 if false; then
16972  WITHGLEW_TRUE=
16973  WITHGLEW_FALSE='#'
16974else
16975  WITHGLEW_TRUE='#'
16976  WITHGLEW_FALSE=
16977fi
16978
16979fi
16980
16981ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" "#include <X11/Xlib.h>
16982"
16983if test "x$ac_cv_header_X11_extensions_dpms_h" = x""yes; then :
16984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DPMSInfo" >&5
16985$as_echo_n "checking for library containing DPMSInfo... " >&6; }
16986if test "${ac_cv_search_DPMSInfo+set}" = set; then :
16987  $as_echo_n "(cached) " >&6
16988else
16989  ac_func_search_save_LIBS=$LIBS
16990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991/* end confdefs.h.  */
16992
16993/* Override any GCC internal prototype to avoid an error.
16994   Use char because int might match the return type of a GCC
16995   builtin and then its argument prototype would still apply.  */
16996#ifdef __cplusplus
16997extern "C"
16998#endif
16999char DPMSInfo ();
17000int
17001main ()
17002{
17003return DPMSInfo ();
17004  ;
17005  return 0;
17006}
17007_ACEOF
17008for ac_lib in '' Xext; do
17009  if test -z "$ac_lib"; then
17010    ac_res="none required"
17011  else
17012    ac_res=-l$ac_lib
17013    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17014  fi
17015  if ac_fn_c_try_link "$LINENO"; then :
17016  ac_cv_search_DPMSInfo=$ac_res
17017fi
17018rm -f core conftest.err conftest.$ac_objext \
17019    conftest$ac_exeext
17020  if test "${ac_cv_search_DPMSInfo+set}" = set; then :
17021  break
17022fi
17023done
17024if test "${ac_cv_search_DPMSInfo+set}" = set; then :
17025
17026else
17027  ac_cv_search_DPMSInfo=no
17028fi
17029rm conftest.$ac_ext
17030LIBS=$ac_func_search_save_LIBS
17031fi
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DPMSInfo" >&5
17033$as_echo "$ac_cv_search_DPMSInfo" >&6; }
17034ac_res=$ac_cv_search_DPMSInfo
17035if test "$ac_res" != no; then :
17036  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17037
17038$as_echo "#define HAVE_DPMS_EXT /**/" >>confdefs.h
17039
17040fi
17041
17042fi
17043
17044
17045
17046
17047# Check whether --with-configdir was given.
17048if test "${with_configdir+set}" = set; then :
17049  withval=$with_configdir;
17050fi
17051
17052
17053if test "$with_configdir" != "" ; then
17054	configdir=$with_configdir
17055
17056	INSTALL_XSCREENSAVER_CONFIG_FILES=yes
17057else
17058	which_xscreensaverdemo=`which xscreensaver-demo 2> /dev/null`
17059	if test -x "$which_xscreensaverdemo" ; then
17060		with_configdir=`strings $which_xscreensaverdemo | grep "\/config"`
17061
17062		if test -d "$with_configdir" ; then
17063			configdir=$with_configdir
17064
17065			INSTALL_XSCREENSAVER_CONFIG_FILES=yes
17066		fi
17067	fi
17068fi
17069
17070 if test "$INSTALL_XSCREENSAVER_CONFIG_FILES" = "yes"; then
17071  INSTALL_XSCREENSAVER_CONFIG_FILES_TRUE=
17072  INSTALL_XSCREENSAVER_CONFIG_FILES_FALSE='#'
17073else
17074  INSTALL_XSCREENSAVER_CONFIG_FILES_TRUE='#'
17075  INSTALL_XSCREENSAVER_CONFIG_FILES_FALSE=
17076fi
17077
17078
17079
17080# Check whether --with-kdessconfigdir was given.
17081if test "${with_kdessconfigdir+set}" = set; then :
17082  withval=$with_kdessconfigdir;
17083fi
17084
17085
17086if test "$with_kdessconfigdir" != "" ; then
17087	kdessconfigdir=$with_kdessconfigdir
17088
17089	INSTALL_KDE_CONFIG_FILES=yes
17090else
17091	if `which kde4-config 2> /dev/null`; then
17092		for ii in `kde4-config --path services | sed -e 's/:/\n/g' | grep \`kde4-config --prefix\``; do
17093			with_kdessconfigdir=$ii/ScreenSavers
17094
17095			if test -d "$with_kdessconfigdir" ; then
17096				kdessconfigdir=$with_kdessconfigdir
17097
17098				INSTALL_KDE_CONFIG_FILES=yes
17099				break
17100			fi
17101		done
17102	fi
17103fi
17104
17105 if test "$INSTALL_KDE_CONFIG_FILES" = "yes"; then
17106  INSTALL_KDE_CONFIG_FILES_TRUE=
17107  INSTALL_KDE_CONFIG_FILES_FALSE='#'
17108else
17109  INSTALL_KDE_CONFIG_FILES_TRUE='#'
17110  INSTALL_KDE_CONFIG_FILES_FALSE=
17111fi
17112
17113
17114
17115pkg_failed=no
17116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for quesoglc" >&5
17117$as_echo_n "checking for quesoglc... " >&6; }
17118
17119if test -n "$PKG_CONFIG"; then
17120    if test -n "$quesoglc_CFLAGS"; then
17121        pkg_cv_quesoglc_CFLAGS="$quesoglc_CFLAGS"
17122    else
17123        if test -n "$PKG_CONFIG" && \
17124    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quesoglc >= 0.7\""; } >&5
17125  ($PKG_CONFIG --exists --print-errors "quesoglc >= 0.7") 2>&5
17126  ac_status=$?
17127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17128  test $ac_status = 0; }; then
17129  pkg_cv_quesoglc_CFLAGS=`$PKG_CONFIG --cflags "quesoglc >= 0.7" 2>/dev/null`
17130else
17131  pkg_failed=yes
17132fi
17133    fi
17134else
17135	pkg_failed=untried
17136fi
17137if test -n "$PKG_CONFIG"; then
17138    if test -n "$quesoglc_LIBS"; then
17139        pkg_cv_quesoglc_LIBS="$quesoglc_LIBS"
17140    else
17141        if test -n "$PKG_CONFIG" && \
17142    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"quesoglc >= 0.7\""; } >&5
17143  ($PKG_CONFIG --exists --print-errors "quesoglc >= 0.7") 2>&5
17144  ac_status=$?
17145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17146  test $ac_status = 0; }; then
17147  pkg_cv_quesoglc_LIBS=`$PKG_CONFIG --libs "quesoglc >= 0.7" 2>/dev/null`
17148else
17149  pkg_failed=yes
17150fi
17151    fi
17152else
17153	pkg_failed=untried
17154fi
17155
17156
17157
17158if test $pkg_failed = yes; then
17159
17160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17161        _pkg_short_errors_supported=yes
17162else
17163        _pkg_short_errors_supported=no
17164fi
17165        if test $_pkg_short_errors_supported = yes; then
17166	        quesoglc_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "quesoglc >= 0.7"`
17167        else
17168	        quesoglc_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "quesoglc >= 0.7"`
17169        fi
17170	# Put the nasty error message in config.log where it belongs
17171	echo "$quesoglc_PKG_ERRORS" >&5
17172
17173	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17174$as_echo "no" >&6; }
17175
17176$as_echo "#define MISSING_GLC /**/" >>confdefs.h
17177
17178elif test $pkg_failed = untried; then
17179
17180$as_echo "#define MISSING_GLC /**/" >>confdefs.h
17181
17182else
17183	quesoglc_CFLAGS=$pkg_cv_quesoglc_CFLAGS
17184	quesoglc_LIBS=$pkg_cv_quesoglc_LIBS
17185        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17186$as_echo "yes" >&6; }
17187
17188$as_echo "#define HAVE_GLC /**/" >>confdefs.h
17189
17190fi
17191
17192ac_config_files="$ac_config_files Makefile src/Makefile src/Implicit/Makefile src/rsMath/Makefile src/PixelCity/Makefile utils/Makefile"
17193
17194cat >confcache <<\_ACEOF
17195# This file is a shell script that caches the results of configure
17196# tests run on this system so they can be shared between configure
17197# scripts and configure runs, see configure's option --config-cache.
17198# It is not useful on other systems.  If it contains results you don't
17199# want to keep, you may remove or edit it.
17200#
17201# config.status only pays attention to the cache file if you give it
17202# the --recheck option to rerun configure.
17203#
17204# `ac_cv_env_foo' variables (set or unset) will be overridden when
17205# loading this file, other *unset* `ac_cv_foo' will be assigned the
17206# following values.
17207
17208_ACEOF
17209
17210# The following way of writing the cache mishandles newlines in values,
17211# but we know of no workaround that is simple, portable, and efficient.
17212# So, we kill variables containing newlines.
17213# Ultrix sh set writes to stderr and can't be redirected directly,
17214# and sets the high bit in the cache file unless we assign to the vars.
17215(
17216  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17217    eval ac_val=\$$ac_var
17218    case $ac_val in #(
17219    *${as_nl}*)
17220      case $ac_var in #(
17221      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17222$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17223      esac
17224      case $ac_var in #(
17225      _ | IFS | as_nl) ;; #(
17226      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17227      *) { eval $ac_var=; unset $ac_var;} ;;
17228      esac ;;
17229    esac
17230  done
17231
17232  (set) 2>&1 |
17233    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17234    *${as_nl}ac_space=\ *)
17235      # `set' does not quote correctly, so add quotes: double-quote
17236      # substitution turns \\\\ into \\, and sed turns \\ into \.
17237      sed -n \
17238	"s/'/'\\\\''/g;
17239	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17240      ;; #(
17241    *)
17242      # `set' quotes correctly as required by POSIX, so do not add quotes.
17243      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17244      ;;
17245    esac |
17246    sort
17247) |
17248  sed '
17249     /^ac_cv_env_/b end
17250     t clear
17251     :clear
17252     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17253     t end
17254     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17255     :end' >>confcache
17256if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17257  if test -w "$cache_file"; then
17258    test "x$cache_file" != "x/dev/null" &&
17259      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17260$as_echo "$as_me: updating cache $cache_file" >&6;}
17261    cat confcache >$cache_file
17262  else
17263    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17264$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17265  fi
17266fi
17267rm -f confcache
17268
17269test "x$prefix" = xNONE && prefix=$ac_default_prefix
17270# Let make expand exec_prefix.
17271test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17272
17273DEFS=-DHAVE_CONFIG_H
17274
17275ac_libobjs=
17276ac_ltlibobjs=
17277for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17278  # 1. Remove the extension, and $U if already installed.
17279  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17280  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17281  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17282  #    will be set to the directory where LIBOBJS objects are built.
17283  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17284  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17285done
17286LIBOBJS=$ac_libobjs
17287
17288LTLIBOBJS=$ac_ltlibobjs
17289
17290
17291 if test -n "$EXEEXT"; then
17292  am__EXEEXT_TRUE=
17293  am__EXEEXT_FALSE='#'
17294else
17295  am__EXEEXT_TRUE='#'
17296  am__EXEEXT_FALSE=
17297fi
17298
17299if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17300  as_fn_error "conditional \"AMDEP\" was never defined.
17301Usually this means the macro was only invoked conditionally." "$LINENO" 5
17302fi
17303if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17304  as_fn_error "conditional \"am__fastdepCC\" was never defined.
17305Usually this means the macro was only invoked conditionally." "$LINENO" 5
17306fi
17307
17308if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17309  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17310Usually this means the macro was only invoked conditionally." "$LINENO" 5
17311fi
17312if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17313  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17314Usually this means the macro was only invoked conditionally." "$LINENO" 5
17315fi
17316if test -z "${WITHSOUND_TRUE}" && test -z "${WITHSOUND_FALSE}"; then
17317  as_fn_error "conditional \"WITHSOUND\" was never defined.
17318Usually this means the macro was only invoked conditionally." "$LINENO" 5
17319fi
17320if test -z "${WITHSOUND_TRUE}" && test -z "${WITHSOUND_FALSE}"; then
17321  as_fn_error "conditional \"WITHSOUND\" was never defined.
17322Usually this means the macro was only invoked conditionally." "$LINENO" 5
17323fi
17324if test -z "${WITHSOUND_TRUE}" && test -z "${WITHSOUND_FALSE}"; then
17325  as_fn_error "conditional \"WITHSOUND\" was never defined.
17326Usually this means the macro was only invoked conditionally." "$LINENO" 5
17327fi
17328if test -z "${WITHGLEW_TRUE}" && test -z "${WITHGLEW_FALSE}"; then
17329  as_fn_error "conditional \"WITHGLEW\" was never defined.
17330Usually this means the macro was only invoked conditionally." "$LINENO" 5
17331fi
17332if test -z "${WITHGLEW_TRUE}" && test -z "${WITHGLEW_FALSE}"; then
17333  as_fn_error "conditional \"WITHGLEW\" was never defined.
17334Usually this means the macro was only invoked conditionally." "$LINENO" 5
17335fi
17336if test -z "${INSTALL_XSCREENSAVER_CONFIG_FILES_TRUE}" && test -z "${INSTALL_XSCREENSAVER_CONFIG_FILES_FALSE}"; then
17337  as_fn_error "conditional \"INSTALL_XSCREENSAVER_CONFIG_FILES\" was never defined.
17338Usually this means the macro was only invoked conditionally." "$LINENO" 5
17339fi
17340if test -z "${INSTALL_KDE_CONFIG_FILES_TRUE}" && test -z "${INSTALL_KDE_CONFIG_FILES_FALSE}"; then
17341  as_fn_error "conditional \"INSTALL_KDE_CONFIG_FILES\" was never defined.
17342Usually this means the macro was only invoked conditionally." "$LINENO" 5
17343fi
17344
17345: ${CONFIG_STATUS=./config.status}
17346ac_write_fail=0
17347ac_clean_files_save=$ac_clean_files
17348ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17349{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17350$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17351as_write_fail=0
17352cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17353#! $SHELL
17354# Generated by $as_me.
17355# Run this file to recreate the current configuration.
17356# Compiler output produced by configure, useful for debugging
17357# configure, is in config.log if it exists.
17358
17359debug=false
17360ac_cs_recheck=false
17361ac_cs_silent=false
17362
17363SHELL=\${CONFIG_SHELL-$SHELL}
17364export SHELL
17365_ASEOF
17366cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17367## -------------------- ##
17368## M4sh Initialization. ##
17369## -------------------- ##
17370
17371# Be more Bourne compatible
17372DUALCASE=1; export DUALCASE # for MKS sh
17373if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17374  emulate sh
17375  NULLCMD=:
17376  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17377  # is contrary to our usage.  Disable this feature.
17378  alias -g '${1+"$@"}'='"$@"'
17379  setopt NO_GLOB_SUBST
17380else
17381  case `(set -o) 2>/dev/null` in #(
17382  *posix*) :
17383    set -o posix ;; #(
17384  *) :
17385     ;;
17386esac
17387fi
17388
17389
17390as_nl='
17391'
17392export as_nl
17393# Printing a long string crashes Solaris 7 /usr/bin/printf.
17394as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17395as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17396as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17397# Prefer a ksh shell builtin over an external printf program on Solaris,
17398# but without wasting forks for bash or zsh.
17399if test -z "$BASH_VERSION$ZSH_VERSION" \
17400    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17401  as_echo='print -r --'
17402  as_echo_n='print -rn --'
17403elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17404  as_echo='printf %s\n'
17405  as_echo_n='printf %s'
17406else
17407  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17408    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17409    as_echo_n='/usr/ucb/echo -n'
17410  else
17411    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17412    as_echo_n_body='eval
17413      arg=$1;
17414      case $arg in #(
17415      *"$as_nl"*)
17416	expr "X$arg" : "X\\(.*\\)$as_nl";
17417	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17418      esac;
17419      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17420    '
17421    export as_echo_n_body
17422    as_echo_n='sh -c $as_echo_n_body as_echo'
17423  fi
17424  export as_echo_body
17425  as_echo='sh -c $as_echo_body as_echo'
17426fi
17427
17428# The user is always right.
17429if test "${PATH_SEPARATOR+set}" != set; then
17430  PATH_SEPARATOR=:
17431  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17432    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17433      PATH_SEPARATOR=';'
17434  }
17435fi
17436
17437
17438# IFS
17439# We need space, tab and new line, in precisely that order.  Quoting is
17440# there to prevent editors from complaining about space-tab.
17441# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17442# splitting by setting IFS to empty value.)
17443IFS=" ""	$as_nl"
17444
17445# Find who we are.  Look in the path if we contain no directory separator.
17446case $0 in #((
17447  *[\\/]* ) as_myself=$0 ;;
17448  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17449for as_dir in $PATH
17450do
17451  IFS=$as_save_IFS
17452  test -z "$as_dir" && as_dir=.
17453    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17454  done
17455IFS=$as_save_IFS
17456
17457     ;;
17458esac
17459# We did not find ourselves, most probably we were run as `sh COMMAND'
17460# in which case we are not to be found in the path.
17461if test "x$as_myself" = x; then
17462  as_myself=$0
17463fi
17464if test ! -f "$as_myself"; then
17465  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17466  exit 1
17467fi
17468
17469# Unset variables that we do not need and which cause bugs (e.g. in
17470# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17471# suppresses any "Segmentation fault" message there.  '((' could
17472# trigger a bug in pdksh 5.2.14.
17473for as_var in BASH_ENV ENV MAIL MAILPATH
17474do eval test x\${$as_var+set} = xset \
17475  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17476done
17477PS1='$ '
17478PS2='> '
17479PS4='+ '
17480
17481# NLS nuisances.
17482LC_ALL=C
17483export LC_ALL
17484LANGUAGE=C
17485export LANGUAGE
17486
17487# CDPATH.
17488(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17489
17490
17491# as_fn_error ERROR [LINENO LOG_FD]
17492# ---------------------------------
17493# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17494# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17495# script with status $?, using 1 if that was 0.
17496as_fn_error ()
17497{
17498  as_status=$?; test $as_status -eq 0 && as_status=1
17499  if test "$3"; then
17500    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17501    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17502  fi
17503  $as_echo "$as_me: error: $1" >&2
17504  as_fn_exit $as_status
17505} # as_fn_error
17506
17507
17508# as_fn_set_status STATUS
17509# -----------------------
17510# Set $? to STATUS, without forking.
17511as_fn_set_status ()
17512{
17513  return $1
17514} # as_fn_set_status
17515
17516# as_fn_exit STATUS
17517# -----------------
17518# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17519as_fn_exit ()
17520{
17521  set +e
17522  as_fn_set_status $1
17523  exit $1
17524} # as_fn_exit
17525
17526# as_fn_unset VAR
17527# ---------------
17528# Portably unset VAR.
17529as_fn_unset ()
17530{
17531  { eval $1=; unset $1;}
17532}
17533as_unset=as_fn_unset
17534# as_fn_append VAR VALUE
17535# ----------------------
17536# Append the text in VALUE to the end of the definition contained in VAR. Take
17537# advantage of any shell optimizations that allow amortized linear growth over
17538# repeated appends, instead of the typical quadratic growth present in naive
17539# implementations.
17540if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17541  eval 'as_fn_append ()
17542  {
17543    eval $1+=\$2
17544  }'
17545else
17546  as_fn_append ()
17547  {
17548    eval $1=\$$1\$2
17549  }
17550fi # as_fn_append
17551
17552# as_fn_arith ARG...
17553# ------------------
17554# Perform arithmetic evaluation on the ARGs, and store the result in the
17555# global $as_val. Take advantage of shells that can avoid forks. The arguments
17556# must be portable across $(()) and expr.
17557if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17558  eval 'as_fn_arith ()
17559  {
17560    as_val=$(( $* ))
17561  }'
17562else
17563  as_fn_arith ()
17564  {
17565    as_val=`expr "$@" || test $? -eq 1`
17566  }
17567fi # as_fn_arith
17568
17569
17570if expr a : '\(a\)' >/dev/null 2>&1 &&
17571   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17572  as_expr=expr
17573else
17574  as_expr=false
17575fi
17576
17577if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17578  as_basename=basename
17579else
17580  as_basename=false
17581fi
17582
17583if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17584  as_dirname=dirname
17585else
17586  as_dirname=false
17587fi
17588
17589as_me=`$as_basename -- "$0" ||
17590$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17591	 X"$0" : 'X\(//\)$' \| \
17592	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17593$as_echo X/"$0" |
17594    sed '/^.*\/\([^/][^/]*\)\/*$/{
17595	    s//\1/
17596	    q
17597	  }
17598	  /^X\/\(\/\/\)$/{
17599	    s//\1/
17600	    q
17601	  }
17602	  /^X\/\(\/\).*/{
17603	    s//\1/
17604	    q
17605	  }
17606	  s/.*/./; q'`
17607
17608# Avoid depending upon Character Ranges.
17609as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17610as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17611as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17612as_cr_digits='0123456789'
17613as_cr_alnum=$as_cr_Letters$as_cr_digits
17614
17615ECHO_C= ECHO_N= ECHO_T=
17616case `echo -n x` in #(((((
17617-n*)
17618  case `echo 'xy\c'` in
17619  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17620  xy)  ECHO_C='\c';;
17621  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17622       ECHO_T='	';;
17623  esac;;
17624*)
17625  ECHO_N='-n';;
17626esac
17627
17628rm -f conf$$ conf$$.exe conf$$.file
17629if test -d conf$$.dir; then
17630  rm -f conf$$.dir/conf$$.file
17631else
17632  rm -f conf$$.dir
17633  mkdir conf$$.dir 2>/dev/null
17634fi
17635if (echo >conf$$.file) 2>/dev/null; then
17636  if ln -s conf$$.file conf$$ 2>/dev/null; then
17637    as_ln_s='ln -s'
17638    # ... but there are two gotchas:
17639    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17640    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17641    # In both cases, we have to default to `cp -p'.
17642    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17643      as_ln_s='cp -p'
17644  elif ln conf$$.file conf$$ 2>/dev/null; then
17645    as_ln_s=ln
17646  else
17647    as_ln_s='cp -p'
17648  fi
17649else
17650  as_ln_s='cp -p'
17651fi
17652rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17653rmdir conf$$.dir 2>/dev/null
17654
17655
17656# as_fn_mkdir_p
17657# -------------
17658# Create "$as_dir" as a directory, including parents if necessary.
17659as_fn_mkdir_p ()
17660{
17661
17662  case $as_dir in #(
17663  -*) as_dir=./$as_dir;;
17664  esac
17665  test -d "$as_dir" || eval $as_mkdir_p || {
17666    as_dirs=
17667    while :; do
17668      case $as_dir in #(
17669      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17670      *) as_qdir=$as_dir;;
17671      esac
17672      as_dirs="'$as_qdir' $as_dirs"
17673      as_dir=`$as_dirname -- "$as_dir" ||
17674$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17675	 X"$as_dir" : 'X\(//\)[^/]' \| \
17676	 X"$as_dir" : 'X\(//\)$' \| \
17677	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17678$as_echo X"$as_dir" |
17679    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17680	    s//\1/
17681	    q
17682	  }
17683	  /^X\(\/\/\)[^/].*/{
17684	    s//\1/
17685	    q
17686	  }
17687	  /^X\(\/\/\)$/{
17688	    s//\1/
17689	    q
17690	  }
17691	  /^X\(\/\).*/{
17692	    s//\1/
17693	    q
17694	  }
17695	  s/.*/./; q'`
17696      test -d "$as_dir" && break
17697    done
17698    test -z "$as_dirs" || eval "mkdir $as_dirs"
17699  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17700
17701
17702} # as_fn_mkdir_p
17703if mkdir -p . 2>/dev/null; then
17704  as_mkdir_p='mkdir -p "$as_dir"'
17705else
17706  test -d ./-p && rmdir ./-p
17707  as_mkdir_p=false
17708fi
17709
17710if test -x / >/dev/null 2>&1; then
17711  as_test_x='test -x'
17712else
17713  if ls -dL / >/dev/null 2>&1; then
17714    as_ls_L_option=L
17715  else
17716    as_ls_L_option=
17717  fi
17718  as_test_x='
17719    eval sh -c '\''
17720      if test -d "$1"; then
17721	test -d "$1/.";
17722      else
17723	case $1 in #(
17724	-*)set "./$1";;
17725	esac;
17726	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17727	???[sx]*):;;*)false;;esac;fi
17728    '\'' sh
17729  '
17730fi
17731as_executable_p=$as_test_x
17732
17733# Sed expression to map a string onto a valid CPP name.
17734as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17735
17736# Sed expression to map a string onto a valid variable name.
17737as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17738
17739
17740exec 6>&1
17741## ----------------------------------- ##
17742## Main body of $CONFIG_STATUS script. ##
17743## ----------------------------------- ##
17744_ASEOF
17745test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17746
17747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17748# Save the log message, to keep $0 and so on meaningful, and to
17749# report actual input values of CONFIG_FILES etc. instead of their
17750# values after options handling.
17751ac_log="
17752This file was extended by $as_me, which was
17753generated by GNU Autoconf 2.65.  Invocation command line was
17754
17755  CONFIG_FILES    = $CONFIG_FILES
17756  CONFIG_HEADERS  = $CONFIG_HEADERS
17757  CONFIG_LINKS    = $CONFIG_LINKS
17758  CONFIG_COMMANDS = $CONFIG_COMMANDS
17759  $ $0 $@
17760
17761on `(hostname || uname -n) 2>/dev/null | sed 1q`
17762"
17763
17764_ACEOF
17765
17766case $ac_config_files in *"
17767"*) set x $ac_config_files; shift; ac_config_files=$*;;
17768esac
17769
17770case $ac_config_headers in *"
17771"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17772esac
17773
17774
17775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17776# Files that config.status was made for.
17777config_files="$ac_config_files"
17778config_headers="$ac_config_headers"
17779config_commands="$ac_config_commands"
17780
17781_ACEOF
17782
17783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17784ac_cs_usage="\
17785\`$as_me' instantiates files and other configuration actions
17786from templates according to the current configuration.  Unless the files
17787and actions are specified as TAGs, all are instantiated by default.
17788
17789Usage: $0 [OPTION]... [TAG]...
17790
17791  -h, --help       print this help, then exit
17792  -V, --version    print version number and configuration settings, then exit
17793      --config     print configuration, then exit
17794  -q, --quiet, --silent
17795                   do not print progress messages
17796  -d, --debug      don't remove temporary files
17797      --recheck    update $as_me by reconfiguring in the same conditions
17798      --file=FILE[:TEMPLATE]
17799                   instantiate the configuration file FILE
17800      --header=FILE[:TEMPLATE]
17801                   instantiate the configuration header FILE
17802
17803Configuration files:
17804$config_files
17805
17806Configuration headers:
17807$config_headers
17808
17809Configuration commands:
17810$config_commands
17811
17812Report bugs to the package provider."
17813
17814_ACEOF
17815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17816ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17817ac_cs_version="\\
17818config.status
17819configured by $0, generated by GNU Autoconf 2.65,
17820  with options \\"\$ac_cs_config\\"
17821
17822Copyright (C) 2009 Free Software Foundation, Inc.
17823This config.status script is free software; the Free Software Foundation
17824gives unlimited permission to copy, distribute and modify it."
17825
17826ac_pwd='$ac_pwd'
17827srcdir='$srcdir'
17828INSTALL='$INSTALL'
17829MKDIR_P='$MKDIR_P'
17830AWK='$AWK'
17831test -n "\$AWK" || AWK=awk
17832_ACEOF
17833
17834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17835# The default lists apply if the user does not specify any file.
17836ac_need_defaults=:
17837while test $# != 0
17838do
17839  case $1 in
17840  --*=*)
17841    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17842    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17843    ac_shift=:
17844    ;;
17845  *)
17846    ac_option=$1
17847    ac_optarg=$2
17848    ac_shift=shift
17849    ;;
17850  esac
17851
17852  case $ac_option in
17853  # Handling of the options.
17854  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17855    ac_cs_recheck=: ;;
17856  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17857    $as_echo "$ac_cs_version"; exit ;;
17858  --config | --confi | --conf | --con | --co | --c )
17859    $as_echo "$ac_cs_config"; exit ;;
17860  --debug | --debu | --deb | --de | --d | -d )
17861    debug=: ;;
17862  --file | --fil | --fi | --f )
17863    $ac_shift
17864    case $ac_optarg in
17865    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17866    esac
17867    as_fn_append CONFIG_FILES " '$ac_optarg'"
17868    ac_need_defaults=false;;
17869  --header | --heade | --head | --hea )
17870    $ac_shift
17871    case $ac_optarg in
17872    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17873    esac
17874    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17875    ac_need_defaults=false;;
17876  --he | --h)
17877    # Conflict between --help and --header
17878    as_fn_error "ambiguous option: \`$1'
17879Try \`$0 --help' for more information.";;
17880  --help | --hel | -h )
17881    $as_echo "$ac_cs_usage"; exit ;;
17882  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17883  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17884    ac_cs_silent=: ;;
17885
17886  # This is an error.
17887  -*) as_fn_error "unrecognized option: \`$1'
17888Try \`$0 --help' for more information." ;;
17889
17890  *) as_fn_append ac_config_targets " $1"
17891     ac_need_defaults=false ;;
17892
17893  esac
17894  shift
17895done
17896
17897ac_configure_extra_args=
17898
17899if $ac_cs_silent; then
17900  exec 6>/dev/null
17901  ac_configure_extra_args="$ac_configure_extra_args --silent"
17902fi
17903
17904_ACEOF
17905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17906if \$ac_cs_recheck; then
17907  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17908  shift
17909  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17910  CONFIG_SHELL='$SHELL'
17911  export CONFIG_SHELL
17912  exec "\$@"
17913fi
17914
17915_ACEOF
17916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17917exec 5>>config.log
17918{
17919  echo
17920  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17921## Running $as_me. ##
17922_ASBOX
17923  $as_echo "$ac_log"
17924} >&5
17925
17926_ACEOF
17927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17928#
17929# INIT-COMMANDS
17930#
17931AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17932
17933
17934# The HP-UX ksh and POSIX shell print the target directory to stdout
17935# if CDPATH is set.
17936(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17937
17938sed_quote_subst='$sed_quote_subst'
17939double_quote_subst='$double_quote_subst'
17940delay_variable_subst='$delay_variable_subst'
17941enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17942macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17943macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17944enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17945pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17946enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17947host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17948host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17949host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17950build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17951build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17952build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17953SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17954Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17955GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17956EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17957FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17958LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17959NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17960LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17961max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17962ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17963exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17964lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17965lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17966lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17967reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17968reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17969OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17970deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17971file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17972AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17973AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17974STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17975RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17976old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17977old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17978old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17979CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17980CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17981compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17982GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17983lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17984lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17985lt_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"`'
17986lt_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"`'
17987objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17988SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17989ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17990MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17991lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17992lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17993lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17994lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17995lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17996need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17997DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17998NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17999LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18000OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18001OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18002libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18003shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18004extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18005archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18006enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18007export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18008whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18009compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18010old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18011old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18012archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18013archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18014module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18015module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18016with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18017allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18018no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18019hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18020hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18021hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18022hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18023hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18024hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18025hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18026hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18027inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18028link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18029fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18030always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18031export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18032exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18033include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18034prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18035file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18036variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18037need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18038need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18039version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18040runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18041shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18042shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18043libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18044library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18045soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18046postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18047postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18048finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18049finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18050hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18051sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18052sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18053hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18054enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18055enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18056enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18057old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18058striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18059compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18060predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18061postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18062predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18063postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18064compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18065LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18066old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18067compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18068GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18069lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18070lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18071lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18072lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18073lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18074archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18075enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18076export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18077whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18078compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18079old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18080old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18081archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18082archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18083module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18084module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18085with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18086allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18087no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18088hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18089hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18090hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18091hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18092hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18093hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18094hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18095hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18096inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18097link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18098fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18099always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18100export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18101exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18102include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18103prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18104file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18105hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18106compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18107predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18108postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18109predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18110postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18111compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18112
18113LTCC='$LTCC'
18114LTCFLAGS='$LTCFLAGS'
18115compiler='$compiler_DEFAULT'
18116
18117# Quote evaled strings.
18118for var in SED \
18119GREP \
18120EGREP \
18121FGREP \
18122LD \
18123NM \
18124LN_S \
18125lt_SP2NL \
18126lt_NL2SP \
18127reload_flag \
18128OBJDUMP \
18129deplibs_check_method \
18130file_magic_cmd \
18131AR \
18132AR_FLAGS \
18133STRIP \
18134RANLIB \
18135CC \
18136CFLAGS \
18137compiler \
18138lt_cv_sys_global_symbol_pipe \
18139lt_cv_sys_global_symbol_to_cdecl \
18140lt_cv_sys_global_symbol_to_c_name_address \
18141lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18142SHELL \
18143ECHO \
18144lt_prog_compiler_no_builtin_flag \
18145lt_prog_compiler_wl \
18146lt_prog_compiler_pic \
18147lt_prog_compiler_static \
18148lt_cv_prog_compiler_c_o \
18149need_locks \
18150DSYMUTIL \
18151NMEDIT \
18152LIPO \
18153OTOOL \
18154OTOOL64 \
18155shrext_cmds \
18156export_dynamic_flag_spec \
18157whole_archive_flag_spec \
18158compiler_needs_object \
18159with_gnu_ld \
18160allow_undefined_flag \
18161no_undefined_flag \
18162hardcode_libdir_flag_spec \
18163hardcode_libdir_flag_spec_ld \
18164hardcode_libdir_separator \
18165fix_srcfile_path \
18166exclude_expsyms \
18167include_expsyms \
18168file_list_spec \
18169variables_saved_for_relink \
18170libname_spec \
18171library_names_spec \
18172soname_spec \
18173finish_eval \
18174old_striplib \
18175striplib \
18176compiler_lib_search_dirs \
18177predep_objects \
18178postdep_objects \
18179predeps \
18180postdeps \
18181compiler_lib_search_path \
18182LD_CXX \
18183compiler_CXX \
18184lt_prog_compiler_no_builtin_flag_CXX \
18185lt_prog_compiler_wl_CXX \
18186lt_prog_compiler_pic_CXX \
18187lt_prog_compiler_static_CXX \
18188lt_cv_prog_compiler_c_o_CXX \
18189export_dynamic_flag_spec_CXX \
18190whole_archive_flag_spec_CXX \
18191compiler_needs_object_CXX \
18192with_gnu_ld_CXX \
18193allow_undefined_flag_CXX \
18194no_undefined_flag_CXX \
18195hardcode_libdir_flag_spec_CXX \
18196hardcode_libdir_flag_spec_ld_CXX \
18197hardcode_libdir_separator_CXX \
18198fix_srcfile_path_CXX \
18199exclude_expsyms_CXX \
18200include_expsyms_CXX \
18201file_list_spec_CXX \
18202compiler_lib_search_dirs_CXX \
18203predep_objects_CXX \
18204postdep_objects_CXX \
18205predeps_CXX \
18206postdeps_CXX \
18207compiler_lib_search_path_CXX; do
18208    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18209    *[\\\\\\\`\\"\\\$]*)
18210      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18211      ;;
18212    *)
18213      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18214      ;;
18215    esac
18216done
18217
18218# Double-quote double-evaled strings.
18219for var in reload_cmds \
18220old_postinstall_cmds \
18221old_postuninstall_cmds \
18222old_archive_cmds \
18223extract_expsyms_cmds \
18224old_archive_from_new_cmds \
18225old_archive_from_expsyms_cmds \
18226archive_cmds \
18227archive_expsym_cmds \
18228module_cmds \
18229module_expsym_cmds \
18230export_symbols_cmds \
18231prelink_cmds \
18232postinstall_cmds \
18233postuninstall_cmds \
18234finish_cmds \
18235sys_lib_search_path_spec \
18236sys_lib_dlsearch_path_spec \
18237old_archive_cmds_CXX \
18238old_archive_from_new_cmds_CXX \
18239old_archive_from_expsyms_cmds_CXX \
18240archive_cmds_CXX \
18241archive_expsym_cmds_CXX \
18242module_cmds_CXX \
18243module_expsym_cmds_CXX \
18244export_symbols_cmds_CXX \
18245prelink_cmds_CXX; do
18246    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18247    *[\\\\\\\`\\"\\\$]*)
18248      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18249      ;;
18250    *)
18251      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18252      ;;
18253    esac
18254done
18255
18256# Fix-up fallback echo if it was mangled by the above quoting rules.
18257case \$lt_ECHO in
18258*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18259  ;;
18260esac
18261
18262ac_aux_dir='$ac_aux_dir'
18263xsi_shell='$xsi_shell'
18264lt_shell_append='$lt_shell_append'
18265
18266# See if we are running on zsh, and set the options which allow our
18267# commands through without removal of \ escapes INIT.
18268if test -n "\${ZSH_VERSION+set}" ; then
18269   setopt NO_GLOB_SUBST
18270fi
18271
18272
18273    PACKAGE='$PACKAGE'
18274    VERSION='$VERSION'
18275    TIMESTAMP='$TIMESTAMP'
18276    RM='$RM'
18277    ofile='$ofile'
18278
18279
18280
18281
18282
18283
18284_ACEOF
18285
18286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18287
18288# Handling of arguments.
18289for ac_config_target in $ac_config_targets
18290do
18291  case $ac_config_target in
18292    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18293    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18294    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18295    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18296    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18297    "src/Implicit/Makefile") CONFIG_FILES="$CONFIG_FILES src/Implicit/Makefile" ;;
18298    "src/rsMath/Makefile") CONFIG_FILES="$CONFIG_FILES src/rsMath/Makefile" ;;
18299    "src/PixelCity/Makefile") CONFIG_FILES="$CONFIG_FILES src/PixelCity/Makefile" ;;
18300    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
18301
18302  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18303  esac
18304done
18305
18306
18307# If the user did not use the arguments to specify the items to instantiate,
18308# then the envvar interface is used.  Set only those that are not.
18309# We use the long form for the default assignment because of an extremely
18310# bizarre bug on SunOS 4.1.3.
18311if $ac_need_defaults; then
18312  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18313  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18314  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18315fi
18316
18317# Have a temporary directory for convenience.  Make it in the build tree
18318# simply because there is no reason against having it here, and in addition,
18319# creating and moving files from /tmp can sometimes cause problems.
18320# Hook for its removal unless debugging.
18321# Note that there is a small window in which the directory will not be cleaned:
18322# after its creation but before its name has been assigned to `$tmp'.
18323$debug ||
18324{
18325  tmp=
18326  trap 'exit_status=$?
18327  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18328' 0
18329  trap 'as_fn_exit 1' 1 2 13 15
18330}
18331# Create a (secure) tmp directory for tmp files.
18332
18333{
18334  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18335  test -n "$tmp" && test -d "$tmp"
18336}  ||
18337{
18338  tmp=./conf$$-$RANDOM
18339  (umask 077 && mkdir "$tmp")
18340} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18341
18342# Set up the scripts for CONFIG_FILES section.
18343# No need to generate them if there are no CONFIG_FILES.
18344# This happens for instance with `./config.status config.h'.
18345if test -n "$CONFIG_FILES"; then
18346
18347
18348ac_cr=`echo X | tr X '\015'`
18349# On cygwin, bash can eat \r inside `` if the user requested igncr.
18350# But we know of no other shell where ac_cr would be empty at this
18351# point, so we can use a bashism as a fallback.
18352if test "x$ac_cr" = x; then
18353  eval ac_cr=\$\'\\r\'
18354fi
18355ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18356if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18357  ac_cs_awk_cr='\r'
18358else
18359  ac_cs_awk_cr=$ac_cr
18360fi
18361
18362echo 'BEGIN {' >"$tmp/subs1.awk" &&
18363_ACEOF
18364
18365
18366{
18367  echo "cat >conf$$subs.awk <<_ACEOF" &&
18368  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18369  echo "_ACEOF"
18370} >conf$$subs.sh ||
18371  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18372ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18373ac_delim='%!_!# '
18374for ac_last_try in false false false false false :; do
18375  . ./conf$$subs.sh ||
18376    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18377
18378  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18379  if test $ac_delim_n = $ac_delim_num; then
18380    break
18381  elif $ac_last_try; then
18382    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18383  else
18384    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18385  fi
18386done
18387rm -f conf$$subs.sh
18388
18389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18390cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18391_ACEOF
18392sed -n '
18393h
18394s/^/S["/; s/!.*/"]=/
18395p
18396g
18397s/^[^!]*!//
18398:repl
18399t repl
18400s/'"$ac_delim"'$//
18401t delim
18402:nl
18403h
18404s/\(.\{148\}\)..*/\1/
18405t more1
18406s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18407p
18408n
18409b repl
18410:more1
18411s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18412p
18413g
18414s/.\{148\}//
18415t nl
18416:delim
18417h
18418s/\(.\{148\}\)..*/\1/
18419t more2
18420s/["\\]/\\&/g; s/^/"/; s/$/"/
18421p
18422b
18423:more2
18424s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18425p
18426g
18427s/.\{148\}//
18428t delim
18429' <conf$$subs.awk | sed '
18430/^[^""]/{
18431  N
18432  s/\n//
18433}
18434' >>$CONFIG_STATUS || ac_write_fail=1
18435rm -f conf$$subs.awk
18436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18437_ACAWK
18438cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18439  for (key in S) S_is_set[key] = 1
18440  FS = ""
18441
18442}
18443{
18444  line = $ 0
18445  nfields = split(line, field, "@")
18446  substed = 0
18447  len = length(field[1])
18448  for (i = 2; i < nfields; i++) {
18449    key = field[i]
18450    keylen = length(key)
18451    if (S_is_set[key]) {
18452      value = S[key]
18453      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18454      len += length(value) + length(field[++i])
18455      substed = 1
18456    } else
18457      len += 1 + keylen
18458  }
18459
18460  print line
18461}
18462
18463_ACAWK
18464_ACEOF
18465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18466if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18467  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18468else
18469  cat
18470fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18471  || as_fn_error "could not setup config files machinery" "$LINENO" 5
18472_ACEOF
18473
18474# VPATH may cause trouble with some makes, so we remove $(srcdir),
18475# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18476# trailing colons and then remove the whole line if VPATH becomes empty
18477# (actually we leave an empty line to preserve line numbers).
18478if test "x$srcdir" = x.; then
18479  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18480s/:*\$(srcdir):*/:/
18481s/:*\${srcdir}:*/:/
18482s/:*@srcdir@:*/:/
18483s/^\([^=]*=[	 ]*\):*/\1/
18484s/:*$//
18485s/^[^=]*=[	 ]*$//
18486}'
18487fi
18488
18489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18490fi # test -n "$CONFIG_FILES"
18491
18492# Set up the scripts for CONFIG_HEADERS section.
18493# No need to generate them if there are no CONFIG_HEADERS.
18494# This happens for instance with `./config.status Makefile'.
18495if test -n "$CONFIG_HEADERS"; then
18496cat >"$tmp/defines.awk" <<\_ACAWK ||
18497BEGIN {
18498_ACEOF
18499
18500# Transform confdefs.h into an awk script `defines.awk', embedded as
18501# here-document in config.status, that substitutes the proper values into
18502# config.h.in to produce config.h.
18503
18504# Create a delimiter string that does not exist in confdefs.h, to ease
18505# handling of long lines.
18506ac_delim='%!_!# '
18507for ac_last_try in false false :; do
18508  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18509  if test -z "$ac_t"; then
18510    break
18511  elif $ac_last_try; then
18512    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18513  else
18514    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18515  fi
18516done
18517
18518# For the awk script, D is an array of macro values keyed by name,
18519# likewise P contains macro parameters if any.  Preserve backslash
18520# newline sequences.
18521
18522ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18523sed -n '
18524s/.\{148\}/&'"$ac_delim"'/g
18525t rset
18526:rset
18527s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18528t def
18529d
18530:def
18531s/\\$//
18532t bsnl
18533s/["\\]/\\&/g
18534s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18535D["\1"]=" \3"/p
18536s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18537d
18538:bsnl
18539s/["\\]/\\&/g
18540s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18541D["\1"]=" \3\\\\\\n"\\/p
18542t cont
18543s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18544t cont
18545d
18546:cont
18547n
18548s/.\{148\}/&'"$ac_delim"'/g
18549t clear
18550:clear
18551s/\\$//
18552t bsnlc
18553s/["\\]/\\&/g; s/^/"/; s/$/"/p
18554d
18555:bsnlc
18556s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18557b cont
18558' <confdefs.h | sed '
18559s/'"$ac_delim"'/"\\\
18560"/g' >>$CONFIG_STATUS || ac_write_fail=1
18561
18562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18563  for (key in D) D_is_set[key] = 1
18564  FS = ""
18565}
18566/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18567  line = \$ 0
18568  split(line, arg, " ")
18569  if (arg[1] == "#") {
18570    defundef = arg[2]
18571    mac1 = arg[3]
18572  } else {
18573    defundef = substr(arg[1], 2)
18574    mac1 = arg[2]
18575  }
18576  split(mac1, mac2, "(") #)
18577  macro = mac2[1]
18578  prefix = substr(line, 1, index(line, defundef) - 1)
18579  if (D_is_set[macro]) {
18580    # Preserve the white space surrounding the "#".
18581    print prefix "define", macro P[macro] D[macro]
18582    next
18583  } else {
18584    # Replace #undef with comments.  This is necessary, for example,
18585    # in the case of _POSIX_SOURCE, which is predefined and required
18586    # on some systems where configure will not decide to define it.
18587    if (defundef == "undef") {
18588      print "/*", prefix defundef, macro, "*/"
18589      next
18590    }
18591  }
18592}
18593{ print }
18594_ACAWK
18595_ACEOF
18596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18597  as_fn_error "could not setup config headers machinery" "$LINENO" 5
18598fi # test -n "$CONFIG_HEADERS"
18599
18600
18601eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18602shift
18603for ac_tag
18604do
18605  case $ac_tag in
18606  :[FHLC]) ac_mode=$ac_tag; continue;;
18607  esac
18608  case $ac_mode$ac_tag in
18609  :[FHL]*:*);;
18610  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18611  :[FH]-) ac_tag=-:-;;
18612  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18613  esac
18614  ac_save_IFS=$IFS
18615  IFS=:
18616  set x $ac_tag
18617  IFS=$ac_save_IFS
18618  shift
18619  ac_file=$1
18620  shift
18621
18622  case $ac_mode in
18623  :L) ac_source=$1;;
18624  :[FH])
18625    ac_file_inputs=
18626    for ac_f
18627    do
18628      case $ac_f in
18629      -) ac_f="$tmp/stdin";;
18630      *) # Look for the file first in the build tree, then in the source tree
18631	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18632	 # because $ac_f cannot contain `:'.
18633	 test -f "$ac_f" ||
18634	   case $ac_f in
18635	   [\\/$]*) false;;
18636	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18637	   esac ||
18638	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18639      esac
18640      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18641      as_fn_append ac_file_inputs " '$ac_f'"
18642    done
18643
18644    # Let's still pretend it is `configure' which instantiates (i.e., don't
18645    # use $as_me), people would be surprised to read:
18646    #    /* config.h.  Generated by config.status.  */
18647    configure_input='Generated from '`
18648	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18649	`' by configure.'
18650    if test x"$ac_file" != x-; then
18651      configure_input="$ac_file.  $configure_input"
18652      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18653$as_echo "$as_me: creating $ac_file" >&6;}
18654    fi
18655    # Neutralize special characters interpreted by sed in replacement strings.
18656    case $configure_input in #(
18657    *\&* | *\|* | *\\* )
18658       ac_sed_conf_input=`$as_echo "$configure_input" |
18659       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18660    *) ac_sed_conf_input=$configure_input;;
18661    esac
18662
18663    case $ac_tag in
18664    *:-:* | *:-) cat >"$tmp/stdin" \
18665      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18666    esac
18667    ;;
18668  esac
18669
18670  ac_dir=`$as_dirname -- "$ac_file" ||
18671$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18672	 X"$ac_file" : 'X\(//\)[^/]' \| \
18673	 X"$ac_file" : 'X\(//\)$' \| \
18674	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18675$as_echo X"$ac_file" |
18676    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18677	    s//\1/
18678	    q
18679	  }
18680	  /^X\(\/\/\)[^/].*/{
18681	    s//\1/
18682	    q
18683	  }
18684	  /^X\(\/\/\)$/{
18685	    s//\1/
18686	    q
18687	  }
18688	  /^X\(\/\).*/{
18689	    s//\1/
18690	    q
18691	  }
18692	  s/.*/./; q'`
18693  as_dir="$ac_dir"; as_fn_mkdir_p
18694  ac_builddir=.
18695
18696case "$ac_dir" in
18697.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18698*)
18699  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18700  # A ".." for each directory in $ac_dir_suffix.
18701  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18702  case $ac_top_builddir_sub in
18703  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18704  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18705  esac ;;
18706esac
18707ac_abs_top_builddir=$ac_pwd
18708ac_abs_builddir=$ac_pwd$ac_dir_suffix
18709# for backward compatibility:
18710ac_top_builddir=$ac_top_build_prefix
18711
18712case $srcdir in
18713  .)  # We are building in place.
18714    ac_srcdir=.
18715    ac_top_srcdir=$ac_top_builddir_sub
18716    ac_abs_top_srcdir=$ac_pwd ;;
18717  [\\/]* | ?:[\\/]* )  # Absolute name.
18718    ac_srcdir=$srcdir$ac_dir_suffix;
18719    ac_top_srcdir=$srcdir
18720    ac_abs_top_srcdir=$srcdir ;;
18721  *) # Relative name.
18722    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18723    ac_top_srcdir=$ac_top_build_prefix$srcdir
18724    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18725esac
18726ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18727
18728
18729  case $ac_mode in
18730  :F)
18731  #
18732  # CONFIG_FILE
18733  #
18734
18735  case $INSTALL in
18736  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18737  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18738  esac
18739  ac_MKDIR_P=$MKDIR_P
18740  case $MKDIR_P in
18741  [\\/$]* | ?:[\\/]* ) ;;
18742  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18743  esac
18744_ACEOF
18745
18746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18747# If the template does not know about datarootdir, expand it.
18748# FIXME: This hack should be removed a few years after 2.60.
18749ac_datarootdir_hack=; ac_datarootdir_seen=
18750ac_sed_dataroot='
18751/datarootdir/ {
18752  p
18753  q
18754}
18755/@datadir@/p
18756/@docdir@/p
18757/@infodir@/p
18758/@localedir@/p
18759/@mandir@/p'
18760case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18761*datarootdir*) ac_datarootdir_seen=yes;;
18762*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18763  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18764$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18765_ACEOF
18766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18767  ac_datarootdir_hack='
18768  s&@datadir@&$datadir&g
18769  s&@docdir@&$docdir&g
18770  s&@infodir@&$infodir&g
18771  s&@localedir@&$localedir&g
18772  s&@mandir@&$mandir&g
18773  s&\\\${datarootdir}&$datarootdir&g' ;;
18774esac
18775_ACEOF
18776
18777# Neutralize VPATH when `$srcdir' = `.'.
18778# Shell code in configure.ac might set extrasub.
18779# FIXME: do we really want to maintain this feature?
18780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18781ac_sed_extra="$ac_vpsub
18782$extrasub
18783_ACEOF
18784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18785:t
18786/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18787s|@configure_input@|$ac_sed_conf_input|;t t
18788s&@top_builddir@&$ac_top_builddir_sub&;t t
18789s&@top_build_prefix@&$ac_top_build_prefix&;t t
18790s&@srcdir@&$ac_srcdir&;t t
18791s&@abs_srcdir@&$ac_abs_srcdir&;t t
18792s&@top_srcdir@&$ac_top_srcdir&;t t
18793s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18794s&@builddir@&$ac_builddir&;t t
18795s&@abs_builddir@&$ac_abs_builddir&;t t
18796s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18797s&@INSTALL@&$ac_INSTALL&;t t
18798s&@MKDIR_P@&$ac_MKDIR_P&;t t
18799$ac_datarootdir_hack
18800"
18801eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18802  || as_fn_error "could not create $ac_file" "$LINENO" 5
18803
18804test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18805  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18806  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18807  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18808which seems to be undefined.  Please make sure it is defined." >&5
18809$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18810which seems to be undefined.  Please make sure it is defined." >&2;}
18811
18812  rm -f "$tmp/stdin"
18813  case $ac_file in
18814  -) cat "$tmp/out" && rm -f "$tmp/out";;
18815  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18816  esac \
18817  || as_fn_error "could not create $ac_file" "$LINENO" 5
18818 ;;
18819  :H)
18820  #
18821  # CONFIG_HEADER
18822  #
18823  if test x"$ac_file" != x-; then
18824    {
18825      $as_echo "/* $configure_input  */" \
18826      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18827    } >"$tmp/config.h" \
18828      || as_fn_error "could not create $ac_file" "$LINENO" 5
18829    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18830      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18831$as_echo "$as_me: $ac_file is unchanged" >&6;}
18832    else
18833      rm -f "$ac_file"
18834      mv "$tmp/config.h" "$ac_file" \
18835	|| as_fn_error "could not create $ac_file" "$LINENO" 5
18836    fi
18837  else
18838    $as_echo "/* $configure_input  */" \
18839      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18840      || as_fn_error "could not create -" "$LINENO" 5
18841  fi
18842# Compute "$ac_file"'s index in $config_headers.
18843_am_arg="$ac_file"
18844_am_stamp_count=1
18845for _am_header in $config_headers :; do
18846  case $_am_header in
18847    $_am_arg | $_am_arg:* )
18848      break ;;
18849    * )
18850      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18851  esac
18852done
18853echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18854$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18855	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18856	 X"$_am_arg" : 'X\(//\)$' \| \
18857	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18858$as_echo X"$_am_arg" |
18859    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18860	    s//\1/
18861	    q
18862	  }
18863	  /^X\(\/\/\)[^/].*/{
18864	    s//\1/
18865	    q
18866	  }
18867	  /^X\(\/\/\)$/{
18868	    s//\1/
18869	    q
18870	  }
18871	  /^X\(\/\).*/{
18872	    s//\1/
18873	    q
18874	  }
18875	  s/.*/./; q'`/stamp-h$_am_stamp_count
18876 ;;
18877
18878  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18879$as_echo "$as_me: executing $ac_file commands" >&6;}
18880 ;;
18881  esac
18882
18883
18884  case $ac_file$ac_mode in
18885    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18886  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18887  # are listed without --file.  Let's play safe and only enable the eval
18888  # if we detect the quoting.
18889  case $CONFIG_FILES in
18890  *\'*) eval set x "$CONFIG_FILES" ;;
18891  *)   set x $CONFIG_FILES ;;
18892  esac
18893  shift
18894  for mf
18895  do
18896    # Strip MF so we end up with the name of the file.
18897    mf=`echo "$mf" | sed -e 's/:.*$//'`
18898    # Check whether this is an Automake generated Makefile or not.
18899    # We used to match only the files named `Makefile.in', but
18900    # some people rename them; so instead we look at the file content.
18901    # Grep'ing the first line is not enough: some people post-process
18902    # each Makefile.in and add a new line on top of each file to say so.
18903    # Grep'ing the whole file is not good either: AIX grep has a line
18904    # limit of 2048, but all sed's we know have understand at least 4000.
18905    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18906      dirpart=`$as_dirname -- "$mf" ||
18907$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18908	 X"$mf" : 'X\(//\)[^/]' \| \
18909	 X"$mf" : 'X\(//\)$' \| \
18910	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18911$as_echo X"$mf" |
18912    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18913	    s//\1/
18914	    q
18915	  }
18916	  /^X\(\/\/\)[^/].*/{
18917	    s//\1/
18918	    q
18919	  }
18920	  /^X\(\/\/\)$/{
18921	    s//\1/
18922	    q
18923	  }
18924	  /^X\(\/\).*/{
18925	    s//\1/
18926	    q
18927	  }
18928	  s/.*/./; q'`
18929    else
18930      continue
18931    fi
18932    # Extract the definition of DEPDIR, am__include, and am__quote
18933    # from the Makefile without running `make'.
18934    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18935    test -z "$DEPDIR" && continue
18936    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18937    test -z "am__include" && continue
18938    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18939    # When using ansi2knr, U may be empty or an underscore; expand it
18940    U=`sed -n 's/^U = //p' < "$mf"`
18941    # Find all dependency output files, they are included files with
18942    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18943    # simplest approach to changing $(DEPDIR) to its actual value in the
18944    # expansion.
18945    for file in `sed -n "
18946      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18947	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18948      # Make sure the directory exists.
18949      test -f "$dirpart/$file" && continue
18950      fdir=`$as_dirname -- "$file" ||
18951$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18952	 X"$file" : 'X\(//\)[^/]' \| \
18953	 X"$file" : 'X\(//\)$' \| \
18954	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18955$as_echo X"$file" |
18956    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18957	    s//\1/
18958	    q
18959	  }
18960	  /^X\(\/\/\)[^/].*/{
18961	    s//\1/
18962	    q
18963	  }
18964	  /^X\(\/\/\)$/{
18965	    s//\1/
18966	    q
18967	  }
18968	  /^X\(\/\).*/{
18969	    s//\1/
18970	    q
18971	  }
18972	  s/.*/./; q'`
18973      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18974      # echo "creating $dirpart/$file"
18975      echo '# dummy' > "$dirpart/$file"
18976    done
18977  done
18978}
18979 ;;
18980    "libtool":C)
18981
18982    # See if we are running on zsh, and set the options which allow our
18983    # commands through without removal of \ escapes.
18984    if test -n "${ZSH_VERSION+set}" ; then
18985      setopt NO_GLOB_SUBST
18986    fi
18987
18988    cfgfile="${ofile}T"
18989    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18990    $RM "$cfgfile"
18991
18992    cat <<_LT_EOF >> "$cfgfile"
18993#! $SHELL
18994
18995# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18996# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18997# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18998# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18999#
19000#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19001#                 2006, 2007, 2008 Free Software Foundation, Inc.
19002#   Written by Gordon Matzigkeit, 1996
19003#
19004#   This file is part of GNU Libtool.
19005#
19006# GNU Libtool is free software; you can redistribute it and/or
19007# modify it under the terms of the GNU General Public License as
19008# published by the Free Software Foundation; either version 2 of
19009# the License, or (at your option) any later version.
19010#
19011# As a special exception to the GNU General Public License,
19012# if you distribute this file as part of a program or library that
19013# is built using GNU Libtool, you may include this file under the
19014# same distribution terms that you use for the rest of that program.
19015#
19016# GNU Libtool is distributed in the hope that it will be useful,
19017# but WITHOUT ANY WARRANTY; without even the implied warranty of
19018# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19019# GNU General Public License for more details.
19020#
19021# You should have received a copy of the GNU General Public License
19022# along with GNU Libtool; see the file COPYING.  If not, a copy
19023# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19024# obtained by writing to the Free Software Foundation, Inc.,
19025# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19026
19027
19028# The names of the tagged configurations supported by this script.
19029available_tags="CXX "
19030
19031# ### BEGIN LIBTOOL CONFIG
19032
19033# Whether or not to build shared libraries.
19034build_libtool_libs=$enable_shared
19035
19036# Which release of libtool.m4 was used?
19037macro_version=$macro_version
19038macro_revision=$macro_revision
19039
19040# Whether or not to build static libraries.
19041build_old_libs=$enable_static
19042
19043# What type of objects to build.
19044pic_mode=$pic_mode
19045
19046# Whether or not to optimize for fast installation.
19047fast_install=$enable_fast_install
19048
19049# The host system.
19050host_alias=$host_alias
19051host=$host
19052host_os=$host_os
19053
19054# The build system.
19055build_alias=$build_alias
19056build=$build
19057build_os=$build_os
19058
19059# A sed program that does not truncate output.
19060SED=$lt_SED
19061
19062# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19063Xsed="\$SED -e 1s/^X//"
19064
19065# A grep program that handles long lines.
19066GREP=$lt_GREP
19067
19068# An ERE matcher.
19069EGREP=$lt_EGREP
19070
19071# A literal string matcher.
19072FGREP=$lt_FGREP
19073
19074# A BSD- or MS-compatible name lister.
19075NM=$lt_NM
19076
19077# Whether we need soft or hard links.
19078LN_S=$lt_LN_S
19079
19080# What is the maximum length of a command?
19081max_cmd_len=$max_cmd_len
19082
19083# Object file suffix (normally "o").
19084objext=$ac_objext
19085
19086# Executable file suffix (normally "").
19087exeext=$exeext
19088
19089# whether the shell understands "unset".
19090lt_unset=$lt_unset
19091
19092# turn spaces into newlines.
19093SP2NL=$lt_lt_SP2NL
19094
19095# turn newlines into spaces.
19096NL2SP=$lt_lt_NL2SP
19097
19098# How to create reloadable object files.
19099reload_flag=$lt_reload_flag
19100reload_cmds=$lt_reload_cmds
19101
19102# An object symbol dumper.
19103OBJDUMP=$lt_OBJDUMP
19104
19105# Method to check whether dependent libraries are shared objects.
19106deplibs_check_method=$lt_deplibs_check_method
19107
19108# Command to use when deplibs_check_method == "file_magic".
19109file_magic_cmd=$lt_file_magic_cmd
19110
19111# The archiver.
19112AR=$lt_AR
19113AR_FLAGS=$lt_AR_FLAGS
19114
19115# A symbol stripping program.
19116STRIP=$lt_STRIP
19117
19118# Commands used to install an old-style archive.
19119RANLIB=$lt_RANLIB
19120old_postinstall_cmds=$lt_old_postinstall_cmds
19121old_postuninstall_cmds=$lt_old_postuninstall_cmds
19122
19123# A C compiler.
19124LTCC=$lt_CC
19125
19126# LTCC compiler flags.
19127LTCFLAGS=$lt_CFLAGS
19128
19129# Take the output of nm and produce a listing of raw symbols and C names.
19130global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19131
19132# Transform the output of nm in a proper C declaration.
19133global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19134
19135# Transform the output of nm in a C name address pair.
19136global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19137
19138# Transform the output of nm in a C name address pair when lib prefix is needed.
19139global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19140
19141# The name of the directory that contains temporary libtool files.
19142objdir=$objdir
19143
19144# Shell to use when invoking shell scripts.
19145SHELL=$lt_SHELL
19146
19147# An echo program that does not interpret backslashes.
19148ECHO=$lt_ECHO
19149
19150# Used to examine libraries when file_magic_cmd begins with "file".
19151MAGIC_CMD=$MAGIC_CMD
19152
19153# Must we lock files when doing compilation?
19154need_locks=$lt_need_locks
19155
19156# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19157DSYMUTIL=$lt_DSYMUTIL
19158
19159# Tool to change global to local symbols on Mac OS X.
19160NMEDIT=$lt_NMEDIT
19161
19162# Tool to manipulate fat objects and archives on Mac OS X.
19163LIPO=$lt_LIPO
19164
19165# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19166OTOOL=$lt_OTOOL
19167
19168# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19169OTOOL64=$lt_OTOOL64
19170
19171# Old archive suffix (normally "a").
19172libext=$libext
19173
19174# Shared library suffix (normally ".so").
19175shrext_cmds=$lt_shrext_cmds
19176
19177# The commands to extract the exported symbol list from a shared archive.
19178extract_expsyms_cmds=$lt_extract_expsyms_cmds
19179
19180# Variables whose values should be saved in libtool wrapper scripts and
19181# restored at link time.
19182variables_saved_for_relink=$lt_variables_saved_for_relink
19183
19184# Do we need the "lib" prefix for modules?
19185need_lib_prefix=$need_lib_prefix
19186
19187# Do we need a version for libraries?
19188need_version=$need_version
19189
19190# Library versioning type.
19191version_type=$version_type
19192
19193# Shared library runtime path variable.
19194runpath_var=$runpath_var
19195
19196# Shared library path variable.
19197shlibpath_var=$shlibpath_var
19198
19199# Is shlibpath searched before the hard-coded library search path?
19200shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19201
19202# Format of library name prefix.
19203libname_spec=$lt_libname_spec
19204
19205# List of archive names.  First name is the real one, the rest are links.
19206# The last name is the one that the linker finds with -lNAME
19207library_names_spec=$lt_library_names_spec
19208
19209# The coded name of the library, if different from the real name.
19210soname_spec=$lt_soname_spec
19211
19212# Command to use after installation of a shared archive.
19213postinstall_cmds=$lt_postinstall_cmds
19214
19215# Command to use after uninstallation of a shared archive.
19216postuninstall_cmds=$lt_postuninstall_cmds
19217
19218# Commands used to finish a libtool library installation in a directory.
19219finish_cmds=$lt_finish_cmds
19220
19221# As "finish_cmds", except a single script fragment to be evaled but
19222# not shown.
19223finish_eval=$lt_finish_eval
19224
19225# Whether we should hardcode library paths into libraries.
19226hardcode_into_libs=$hardcode_into_libs
19227
19228# Compile-time system search path for libraries.
19229sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19230
19231# Run-time system search path for libraries.
19232sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19233
19234# Whether dlopen is supported.
19235dlopen_support=$enable_dlopen
19236
19237# Whether dlopen of programs is supported.
19238dlopen_self=$enable_dlopen_self
19239
19240# Whether dlopen of statically linked programs is supported.
19241dlopen_self_static=$enable_dlopen_self_static
19242
19243# Commands to strip libraries.
19244old_striplib=$lt_old_striplib
19245striplib=$lt_striplib
19246
19247
19248# The linker used to build libraries.
19249LD=$lt_LD
19250
19251# Commands used to build an old-style archive.
19252old_archive_cmds=$lt_old_archive_cmds
19253
19254# A language specific compiler.
19255CC=$lt_compiler
19256
19257# Is the compiler the GNU compiler?
19258with_gcc=$GCC
19259
19260# Compiler flag to turn off builtin functions.
19261no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19262
19263# How to pass a linker flag through the compiler.
19264wl=$lt_lt_prog_compiler_wl
19265
19266# Additional compiler flags for building library objects.
19267pic_flag=$lt_lt_prog_compiler_pic
19268
19269# Compiler flag to prevent dynamic linking.
19270link_static_flag=$lt_lt_prog_compiler_static
19271
19272# Does compiler simultaneously support -c and -o options?
19273compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19274
19275# Whether or not to add -lc for building shared libraries.
19276build_libtool_need_lc=$archive_cmds_need_lc
19277
19278# Whether or not to disallow shared libs when runtime libs are static.
19279allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19280
19281# Compiler flag to allow reflexive dlopens.
19282export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19283
19284# Compiler flag to generate shared objects directly from archives.
19285whole_archive_flag_spec=$lt_whole_archive_flag_spec
19286
19287# Whether the compiler copes with passing no objects directly.
19288compiler_needs_object=$lt_compiler_needs_object
19289
19290# Create an old-style archive from a shared archive.
19291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19292
19293# Create a temporary old-style archive to link instead of a shared archive.
19294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19295
19296# Commands used to build a shared archive.
19297archive_cmds=$lt_archive_cmds
19298archive_expsym_cmds=$lt_archive_expsym_cmds
19299
19300# Commands used to build a loadable module if different from building
19301# a shared archive.
19302module_cmds=$lt_module_cmds
19303module_expsym_cmds=$lt_module_expsym_cmds
19304
19305# Whether we are building with GNU ld or not.
19306with_gnu_ld=$lt_with_gnu_ld
19307
19308# Flag that allows shared libraries with undefined symbols to be built.
19309allow_undefined_flag=$lt_allow_undefined_flag
19310
19311# Flag that enforces no undefined symbols.
19312no_undefined_flag=$lt_no_undefined_flag
19313
19314# Flag to hardcode \$libdir into a binary during linking.
19315# This must work even if \$libdir does not exist
19316hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19317
19318# If ld is used when linking, flag to hardcode \$libdir into a binary
19319# during linking.  This must work even if \$libdir does not exist.
19320hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19321
19322# Whether we need a single "-rpath" flag with a separated argument.
19323hardcode_libdir_separator=$lt_hardcode_libdir_separator
19324
19325# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19326# DIR into the resulting binary.
19327hardcode_direct=$hardcode_direct
19328
19329# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19330# DIR into the resulting binary and the resulting library dependency is
19331# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19332# library is relocated.
19333hardcode_direct_absolute=$hardcode_direct_absolute
19334
19335# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19336# into the resulting binary.
19337hardcode_minus_L=$hardcode_minus_L
19338
19339# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19340# into the resulting binary.
19341hardcode_shlibpath_var=$hardcode_shlibpath_var
19342
19343# Set to "yes" if building a shared library automatically hardcodes DIR
19344# into the library and all subsequent libraries and executables linked
19345# against it.
19346hardcode_automatic=$hardcode_automatic
19347
19348# Set to yes if linker adds runtime paths of dependent libraries
19349# to runtime path list.
19350inherit_rpath=$inherit_rpath
19351
19352# Whether libtool must link a program against all its dependency libraries.
19353link_all_deplibs=$link_all_deplibs
19354
19355# Fix the shell variable \$srcfile for the compiler.
19356fix_srcfile_path=$lt_fix_srcfile_path
19357
19358# Set to "yes" if exported symbols are required.
19359always_export_symbols=$always_export_symbols
19360
19361# The commands to list exported symbols.
19362export_symbols_cmds=$lt_export_symbols_cmds
19363
19364# Symbols that should not be listed in the preloaded symbols.
19365exclude_expsyms=$lt_exclude_expsyms
19366
19367# Symbols that must always be exported.
19368include_expsyms=$lt_include_expsyms
19369
19370# Commands necessary for linking programs (against libraries) with templates.
19371prelink_cmds=$lt_prelink_cmds
19372
19373# Specify filename containing input files.
19374file_list_spec=$lt_file_list_spec
19375
19376# How to hardcode a shared library path into an executable.
19377hardcode_action=$hardcode_action
19378
19379# The directories searched by this compiler when creating a shared library.
19380compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19381
19382# Dependencies to place before and after the objects being linked to
19383# create a shared library.
19384predep_objects=$lt_predep_objects
19385postdep_objects=$lt_postdep_objects
19386predeps=$lt_predeps
19387postdeps=$lt_postdeps
19388
19389# The library search path used internally by the compiler when linking
19390# a shared library.
19391compiler_lib_search_path=$lt_compiler_lib_search_path
19392
19393# ### END LIBTOOL CONFIG
19394
19395_LT_EOF
19396
19397  case $host_os in
19398  aix3*)
19399    cat <<\_LT_EOF >> "$cfgfile"
19400# AIX sometimes has problems with the GCC collect2 program.  For some
19401# reason, if we set the COLLECT_NAMES environment variable, the problems
19402# vanish in a puff of smoke.
19403if test "X${COLLECT_NAMES+set}" != Xset; then
19404  COLLECT_NAMES=
19405  export COLLECT_NAMES
19406fi
19407_LT_EOF
19408    ;;
19409  esac
19410
19411
19412ltmain="$ac_aux_dir/ltmain.sh"
19413
19414
19415  # We use sed instead of cat because bash on DJGPP gets confused if
19416  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19417  # text mode, it properly converts lines to CR/LF.  This bash problem
19418  # is reportedly fixed, but why not run on old versions too?
19419  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19420    || (rm -f "$cfgfile"; exit 1)
19421
19422  case $xsi_shell in
19423  yes)
19424    cat << \_LT_EOF >> "$cfgfile"
19425
19426# func_dirname file append nondir_replacement
19427# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19428# otherwise set result to NONDIR_REPLACEMENT.
19429func_dirname ()
19430{
19431  case ${1} in
19432    */*) func_dirname_result="${1%/*}${2}" ;;
19433    *  ) func_dirname_result="${3}" ;;
19434  esac
19435}
19436
19437# func_basename file
19438func_basename ()
19439{
19440  func_basename_result="${1##*/}"
19441}
19442
19443# func_dirname_and_basename file append nondir_replacement
19444# perform func_basename and func_dirname in a single function
19445# call:
19446#   dirname:  Compute the dirname of FILE.  If nonempty,
19447#             add APPEND to the result, otherwise set result
19448#             to NONDIR_REPLACEMENT.
19449#             value returned in "$func_dirname_result"
19450#   basename: Compute filename of FILE.
19451#             value retuned in "$func_basename_result"
19452# Implementation must be kept synchronized with func_dirname
19453# and func_basename. For efficiency, we do not delegate to
19454# those functions but instead duplicate the functionality here.
19455func_dirname_and_basename ()
19456{
19457  case ${1} in
19458    */*) func_dirname_result="${1%/*}${2}" ;;
19459    *  ) func_dirname_result="${3}" ;;
19460  esac
19461  func_basename_result="${1##*/}"
19462}
19463
19464# func_stripname prefix suffix name
19465# strip PREFIX and SUFFIX off of NAME.
19466# PREFIX and SUFFIX must not contain globbing or regex special
19467# characters, hashes, percent signs, but SUFFIX may contain a leading
19468# dot (in which case that matches only a dot).
19469func_stripname ()
19470{
19471  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19472  # positional parameters, so assign one to ordinary parameter first.
19473  func_stripname_result=${3}
19474  func_stripname_result=${func_stripname_result#"${1}"}
19475  func_stripname_result=${func_stripname_result%"${2}"}
19476}
19477
19478# func_opt_split
19479func_opt_split ()
19480{
19481  func_opt_split_opt=${1%%=*}
19482  func_opt_split_arg=${1#*=}
19483}
19484
19485# func_lo2o object
19486func_lo2o ()
19487{
19488  case ${1} in
19489    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19490    *)    func_lo2o_result=${1} ;;
19491  esac
19492}
19493
19494# func_xform libobj-or-source
19495func_xform ()
19496{
19497  func_xform_result=${1%.*}.lo
19498}
19499
19500# func_arith arithmetic-term...
19501func_arith ()
19502{
19503  func_arith_result=$(( $* ))
19504}
19505
19506# func_len string
19507# STRING may not start with a hyphen.
19508func_len ()
19509{
19510  func_len_result=${#1}
19511}
19512
19513_LT_EOF
19514    ;;
19515  *) # Bourne compatible functions.
19516    cat << \_LT_EOF >> "$cfgfile"
19517
19518# func_dirname file append nondir_replacement
19519# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19520# otherwise set result to NONDIR_REPLACEMENT.
19521func_dirname ()
19522{
19523  # Extract subdirectory from the argument.
19524  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19525  if test "X$func_dirname_result" = "X${1}"; then
19526    func_dirname_result="${3}"
19527  else
19528    func_dirname_result="$func_dirname_result${2}"
19529  fi
19530}
19531
19532# func_basename file
19533func_basename ()
19534{
19535  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19536}
19537
19538
19539# func_stripname prefix suffix name
19540# strip PREFIX and SUFFIX off of NAME.
19541# PREFIX and SUFFIX must not contain globbing or regex special
19542# characters, hashes, percent signs, but SUFFIX may contain a leading
19543# dot (in which case that matches only a dot).
19544# func_strip_suffix prefix name
19545func_stripname ()
19546{
19547  case ${2} in
19548    .*) func_stripname_result=`$ECHO "X${3}" \
19549           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19550    *)  func_stripname_result=`$ECHO "X${3}" \
19551           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19552  esac
19553}
19554
19555# sed scripts:
19556my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19557my_sed_long_arg='1s/^-[^=]*=//'
19558
19559# func_opt_split
19560func_opt_split ()
19561{
19562  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19563  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19564}
19565
19566# func_lo2o object
19567func_lo2o ()
19568{
19569  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19570}
19571
19572# func_xform libobj-or-source
19573func_xform ()
19574{
19575  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19576}
19577
19578# func_arith arithmetic-term...
19579func_arith ()
19580{
19581  func_arith_result=`expr "$@"`
19582}
19583
19584# func_len string
19585# STRING may not start with a hyphen.
19586func_len ()
19587{
19588  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19589}
19590
19591_LT_EOF
19592esac
19593
19594case $lt_shell_append in
19595  yes)
19596    cat << \_LT_EOF >> "$cfgfile"
19597
19598# func_append var value
19599# Append VALUE to the end of shell variable VAR.
19600func_append ()
19601{
19602  eval "$1+=\$2"
19603}
19604_LT_EOF
19605    ;;
19606  *)
19607    cat << \_LT_EOF >> "$cfgfile"
19608
19609# func_append var value
19610# Append VALUE to the end of shell variable VAR.
19611func_append ()
19612{
19613  eval "$1=\$$1\$2"
19614}
19615
19616_LT_EOF
19617    ;;
19618  esac
19619
19620
19621  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19622    || (rm -f "$cfgfile"; exit 1)
19623
19624  mv -f "$cfgfile" "$ofile" ||
19625    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19626  chmod +x "$ofile"
19627
19628
19629    cat <<_LT_EOF >> "$ofile"
19630
19631# ### BEGIN LIBTOOL TAG CONFIG: CXX
19632
19633# The linker used to build libraries.
19634LD=$lt_LD_CXX
19635
19636# Commands used to build an old-style archive.
19637old_archive_cmds=$lt_old_archive_cmds_CXX
19638
19639# A language specific compiler.
19640CC=$lt_compiler_CXX
19641
19642# Is the compiler the GNU compiler?
19643with_gcc=$GCC_CXX
19644
19645# Compiler flag to turn off builtin functions.
19646no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19647
19648# How to pass a linker flag through the compiler.
19649wl=$lt_lt_prog_compiler_wl_CXX
19650
19651# Additional compiler flags for building library objects.
19652pic_flag=$lt_lt_prog_compiler_pic_CXX
19653
19654# Compiler flag to prevent dynamic linking.
19655link_static_flag=$lt_lt_prog_compiler_static_CXX
19656
19657# Does compiler simultaneously support -c and -o options?
19658compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19659
19660# Whether or not to add -lc for building shared libraries.
19661build_libtool_need_lc=$archive_cmds_need_lc_CXX
19662
19663# Whether or not to disallow shared libs when runtime libs are static.
19664allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19665
19666# Compiler flag to allow reflexive dlopens.
19667export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19668
19669# Compiler flag to generate shared objects directly from archives.
19670whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19671
19672# Whether the compiler copes with passing no objects directly.
19673compiler_needs_object=$lt_compiler_needs_object_CXX
19674
19675# Create an old-style archive from a shared archive.
19676old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19677
19678# Create a temporary old-style archive to link instead of a shared archive.
19679old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19680
19681# Commands used to build a shared archive.
19682archive_cmds=$lt_archive_cmds_CXX
19683archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19684
19685# Commands used to build a loadable module if different from building
19686# a shared archive.
19687module_cmds=$lt_module_cmds_CXX
19688module_expsym_cmds=$lt_module_expsym_cmds_CXX
19689
19690# Whether we are building with GNU ld or not.
19691with_gnu_ld=$lt_with_gnu_ld_CXX
19692
19693# Flag that allows shared libraries with undefined symbols to be built.
19694allow_undefined_flag=$lt_allow_undefined_flag_CXX
19695
19696# Flag that enforces no undefined symbols.
19697no_undefined_flag=$lt_no_undefined_flag_CXX
19698
19699# Flag to hardcode \$libdir into a binary during linking.
19700# This must work even if \$libdir does not exist
19701hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19702
19703# If ld is used when linking, flag to hardcode \$libdir into a binary
19704# during linking.  This must work even if \$libdir does not exist.
19705hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19706
19707# Whether we need a single "-rpath" flag with a separated argument.
19708hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19709
19710# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19711# DIR into the resulting binary.
19712hardcode_direct=$hardcode_direct_CXX
19713
19714# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19715# DIR into the resulting binary and the resulting library dependency is
19716# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19717# library is relocated.
19718hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19719
19720# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19721# into the resulting binary.
19722hardcode_minus_L=$hardcode_minus_L_CXX
19723
19724# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19725# into the resulting binary.
19726hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19727
19728# Set to "yes" if building a shared library automatically hardcodes DIR
19729# into the library and all subsequent libraries and executables linked
19730# against it.
19731hardcode_automatic=$hardcode_automatic_CXX
19732
19733# Set to yes if linker adds runtime paths of dependent libraries
19734# to runtime path list.
19735inherit_rpath=$inherit_rpath_CXX
19736
19737# Whether libtool must link a program against all its dependency libraries.
19738link_all_deplibs=$link_all_deplibs_CXX
19739
19740# Fix the shell variable \$srcfile for the compiler.
19741fix_srcfile_path=$lt_fix_srcfile_path_CXX
19742
19743# Set to "yes" if exported symbols are required.
19744always_export_symbols=$always_export_symbols_CXX
19745
19746# The commands to list exported symbols.
19747export_symbols_cmds=$lt_export_symbols_cmds_CXX
19748
19749# Symbols that should not be listed in the preloaded symbols.
19750exclude_expsyms=$lt_exclude_expsyms_CXX
19751
19752# Symbols that must always be exported.
19753include_expsyms=$lt_include_expsyms_CXX
19754
19755# Commands necessary for linking programs (against libraries) with templates.
19756prelink_cmds=$lt_prelink_cmds_CXX
19757
19758# Specify filename containing input files.
19759file_list_spec=$lt_file_list_spec_CXX
19760
19761# How to hardcode a shared library path into an executable.
19762hardcode_action=$hardcode_action_CXX
19763
19764# The directories searched by this compiler when creating a shared library.
19765compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19766
19767# Dependencies to place before and after the objects being linked to
19768# create a shared library.
19769predep_objects=$lt_predep_objects_CXX
19770postdep_objects=$lt_postdep_objects_CXX
19771predeps=$lt_predeps_CXX
19772postdeps=$lt_postdeps_CXX
19773
19774# The library search path used internally by the compiler when linking
19775# a shared library.
19776compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19777
19778# ### END LIBTOOL TAG CONFIG: CXX
19779_LT_EOF
19780
19781 ;;
19782
19783  esac
19784done # for ac_tag
19785
19786
19787as_fn_exit 0
19788_ACEOF
19789ac_clean_files=$ac_clean_files_save
19790
19791test $ac_write_fail = 0 ||
19792  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19793
19794
19795# configure is writing to config.log, and then calls config.status.
19796# config.status does its own redirection, appending to config.log.
19797# Unfortunately, on DOS this fails, as config.log is still kept open
19798# by configure, so config.status won't be able to write to it; its
19799# output is simply discarded.  So we exec the FD to /dev/null,
19800# effectively closing config.log, so it can be properly (re)opened and
19801# appended to by config.status.  When coming back to configure, we
19802# need to make the FD available again.
19803if test "$no_create" != yes; then
19804  ac_cs_success=:
19805  ac_config_status_args=
19806  test "$silent" = yes &&
19807    ac_config_status_args="$ac_config_status_args --quiet"
19808  exec 5>/dev/null
19809  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19810  exec 5>>config.log
19811  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19812  # would make configure fail if this is the last instruction.
19813  $ac_cs_success || as_fn_exit $?
19814fi
19815if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19816  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19817$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19818fi
19819
19820