xref: /libev/configure (revision e3a38431)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
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 [email protected] 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
367  if test "$4"; then
368    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370  fi
371  $as_echo "$as_me: error: $2" >&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, old GNU/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="ev_epoll.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
747CPP
748OTOOL64
749OTOOL
750LIPO
751NMEDIT
752DSYMUTIL
753lt_ECHO
754RANLIB
755AR
756OBJDUMP
757LN_S
758NM
759ac_ct_DUMPBIN
760DUMPBIN
761LD
762FGREP
763EGREP
764GREP
765SED
766am__fastdepCC_FALSE
767am__fastdepCC_TRUE
768CCDEPMODE
769AMDEPBACKSLASH
770AMDEP_FALSE
771AMDEP_TRUE
772am__quote
773am__include
774DEPDIR
775OBJEXT
776EXEEXT
777ac_ct_CC
778CPPFLAGS
779LDFLAGS
780CFLAGS
781CC
782host_os
783host_vendor
784host_cpu
785host
786build_os
787build_vendor
788build_cpu
789build
790LIBTOOL
791MAINT
792MAINTAINER_MODE_FALSE
793MAINTAINER_MODE_TRUE
794am__untar
795am__tar
796AMTAR
797am__leading_dot
798SET_MAKE
799AWK
800mkdir_p
801MKDIR_P
802INSTALL_STRIP_PROGRAM
803STRIP
804install_sh
805MAKEINFO
806AUTOHEADER
807AUTOMAKE
808AUTOCONF
809ACLOCAL
810VERSION
811PACKAGE
812CYGPATH_W
813am__isrc
814INSTALL_DATA
815INSTALL_SCRIPT
816INSTALL_PROGRAM
817target_alias
818host_alias
819build_alias
820LIBS
821ECHO_T
822ECHO_N
823ECHO_C
824DEFS
825mandir
826localedir
827libdir
828psdir
829pdfdir
830dvidir
831htmldir
832infodir
833docdir
834oldincludedir
835includedir
836localstatedir
837sharedstatedir
838sysconfdir
839datadir
840datarootdir
841libexecdir
842sbindir
843bindir
844program_transform_name
845prefix
846exec_prefix
847PACKAGE_URL
848PACKAGE_BUGREPORT
849PACKAGE_STRING
850PACKAGE_VERSION
851PACKAGE_TARNAME
852PACKAGE_NAME
853PATH_SEPARATOR
854SHELL'
855ac_subst_files=''
856ac_user_opts='
857enable_option_checking
858enable_maintainer_mode
859enable_shared
860enable_static
861with_pic
862enable_fast_install
863enable_dependency_tracking
864with_gnu_ld
865enable_libtool_lock
866'
867      ac_precious_vars='build_alias
868host_alias
869target_alias
870CC
871CFLAGS
872LDFLAGS
873LIBS
874CPPFLAGS
875CPP'
876
877
878# Initialize some variables set by options.
879ac_init_help=
880ac_init_version=false
881ac_unrecognized_opts=
882ac_unrecognized_sep=
883# The variables have the same names as the options, with
884# dashes changed to underlines.
885cache_file=/dev/null
886exec_prefix=NONE
887no_create=
888no_recursion=
889prefix=NONE
890program_prefix=NONE
891program_suffix=NONE
892program_transform_name=s,x,x,
893silent=
894site=
895srcdir=
896verbose=
897x_includes=NONE
898x_libraries=NONE
899
900# Installation directory options.
901# These are left unexpanded so users can "make install exec_prefix=/foo"
902# and all the variables that are supposed to be based on exec_prefix
903# by default will actually change.
904# Use braces instead of parens because sh, perl, etc. also accept them.
905# (The list follows the same order as the GNU Coding Standards.)
906bindir='${exec_prefix}/bin'
907sbindir='${exec_prefix}/sbin'
908libexecdir='${exec_prefix}/libexec'
909datarootdir='${prefix}/share'
910datadir='${datarootdir}'
911sysconfdir='${prefix}/etc'
912sharedstatedir='${prefix}/com'
913localstatedir='${prefix}/var'
914includedir='${prefix}/include'
915oldincludedir='/usr/include'
916docdir='${datarootdir}/doc/${PACKAGE}'
917infodir='${datarootdir}/info'
918htmldir='${docdir}'
919dvidir='${docdir}'
920pdfdir='${docdir}'
921psdir='${docdir}'
922libdir='${exec_prefix}/lib'
923localedir='${datarootdir}/locale'
924mandir='${datarootdir}/man'
925
926ac_prev=
927ac_dashdash=
928for ac_option
929do
930  # If the previous option needs an argument, assign it.
931  if test -n "$ac_prev"; then
932    eval $ac_prev=\$ac_option
933    ac_prev=
934    continue
935  fi
936
937  case $ac_option in
938  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939  *=)   ac_optarg= ;;
940  *)    ac_optarg=yes ;;
941  esac
942
943  # Accept the important Cygnus configure options, so we can diagnose typos.
944
945  case $ac_dashdash$ac_option in
946  --)
947    ac_dashdash=yes ;;
948
949  -bindir | --bindir | --bindi | --bind | --bin | --bi)
950    ac_prev=bindir ;;
951  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952    bindir=$ac_optarg ;;
953
954  -build | --build | --buil | --bui | --bu)
955    ac_prev=build_alias ;;
956  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957    build_alias=$ac_optarg ;;
958
959  -cache-file | --cache-file | --cache-fil | --cache-fi \
960  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961    ac_prev=cache_file ;;
962  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964    cache_file=$ac_optarg ;;
965
966  --config-cache | -C)
967    cache_file=config.cache ;;
968
969  -datadir | --datadir | --datadi | --datad)
970    ac_prev=datadir ;;
971  -datadir=* | --datadir=* | --datadi=* | --datad=*)
972    datadir=$ac_optarg ;;
973
974  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975  | --dataroo | --dataro | --datar)
976    ac_prev=datarootdir ;;
977  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979    datarootdir=$ac_optarg ;;
980
981  -disable-* | --disable-*)
982    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983    # Reject names that are not valid shell variable names.
984    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985      as_fn_error $? "invalid feature name: $ac_useropt"
986    ac_useropt_orig=$ac_useropt
987    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988    case $ac_user_opts in
989      *"
990"enable_$ac_useropt"
991"*) ;;
992      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993	 ac_unrecognized_sep=', ';;
994    esac
995    eval enable_$ac_useropt=no ;;
996
997  -docdir | --docdir | --docdi | --doc | --do)
998    ac_prev=docdir ;;
999  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000    docdir=$ac_optarg ;;
1001
1002  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003    ac_prev=dvidir ;;
1004  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005    dvidir=$ac_optarg ;;
1006
1007  -enable-* | --enable-*)
1008    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009    # Reject names that are not valid shell variable names.
1010    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011      as_fn_error $? "invalid feature name: $ac_useropt"
1012    ac_useropt_orig=$ac_useropt
1013    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014    case $ac_user_opts in
1015      *"
1016"enable_$ac_useropt"
1017"*) ;;
1018      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019	 ac_unrecognized_sep=', ';;
1020    esac
1021    eval enable_$ac_useropt=\$ac_optarg ;;
1022
1023  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025  | --exec | --exe | --ex)
1026    ac_prev=exec_prefix ;;
1027  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029  | --exec=* | --exe=* | --ex=*)
1030    exec_prefix=$ac_optarg ;;
1031
1032  -gas | --gas | --ga | --g)
1033    # Obsolete; use --with-gas.
1034    with_gas=yes ;;
1035
1036  -help | --help | --hel | --he | -h)
1037    ac_init_help=long ;;
1038  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039    ac_init_help=recursive ;;
1040  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041    ac_init_help=short ;;
1042
1043  -host | --host | --hos | --ho)
1044    ac_prev=host_alias ;;
1045  -host=* | --host=* | --hos=* | --ho=*)
1046    host_alias=$ac_optarg ;;
1047
1048  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049    ac_prev=htmldir ;;
1050  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051  | --ht=*)
1052    htmldir=$ac_optarg ;;
1053
1054  -includedir | --includedir | --includedi | --included | --include \
1055  | --includ | --inclu | --incl | --inc)
1056    ac_prev=includedir ;;
1057  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058  | --includ=* | --inclu=* | --incl=* | --inc=*)
1059    includedir=$ac_optarg ;;
1060
1061  -infodir | --infodir | --infodi | --infod | --info | --inf)
1062    ac_prev=infodir ;;
1063  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064    infodir=$ac_optarg ;;
1065
1066  -libdir | --libdir | --libdi | --libd)
1067    ac_prev=libdir ;;
1068  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069    libdir=$ac_optarg ;;
1070
1071  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072  | --libexe | --libex | --libe)
1073    ac_prev=libexecdir ;;
1074  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075  | --libexe=* | --libex=* | --libe=*)
1076    libexecdir=$ac_optarg ;;
1077
1078  -localedir | --localedir | --localedi | --localed | --locale)
1079    ac_prev=localedir ;;
1080  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081    localedir=$ac_optarg ;;
1082
1083  -localstatedir | --localstatedir | --localstatedi | --localstated \
1084  | --localstate | --localstat | --localsta | --localst | --locals)
1085    ac_prev=localstatedir ;;
1086  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088    localstatedir=$ac_optarg ;;
1089
1090  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091    ac_prev=mandir ;;
1092  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093    mandir=$ac_optarg ;;
1094
1095  -nfp | --nfp | --nf)
1096    # Obsolete; use --without-fp.
1097    with_fp=no ;;
1098
1099  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100  | --no-cr | --no-c | -n)
1101    no_create=yes ;;
1102
1103  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105    no_recursion=yes ;;
1106
1107  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109  | --oldin | --oldi | --old | --ol | --o)
1110    ac_prev=oldincludedir ;;
1111  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114    oldincludedir=$ac_optarg ;;
1115
1116  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117    ac_prev=prefix ;;
1118  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119    prefix=$ac_optarg ;;
1120
1121  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122  | --program-pre | --program-pr | --program-p)
1123    ac_prev=program_prefix ;;
1124  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126    program_prefix=$ac_optarg ;;
1127
1128  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129  | --program-suf | --program-su | --program-s)
1130    ac_prev=program_suffix ;;
1131  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133    program_suffix=$ac_optarg ;;
1134
1135  -program-transform-name | --program-transform-name \
1136  | --program-transform-nam | --program-transform-na \
1137  | --program-transform-n | --program-transform- \
1138  | --program-transform | --program-transfor \
1139  | --program-transfo | --program-transf \
1140  | --program-trans | --program-tran \
1141  | --progr-tra | --program-tr | --program-t)
1142    ac_prev=program_transform_name ;;
1143  -program-transform-name=* | --program-transform-name=* \
1144  | --program-transform-nam=* | --program-transform-na=* \
1145  | --program-transform-n=* | --program-transform-=* \
1146  | --program-transform=* | --program-transfor=* \
1147  | --program-transfo=* | --program-transf=* \
1148  | --program-trans=* | --program-tran=* \
1149  | --progr-tra=* | --program-tr=* | --program-t=*)
1150    program_transform_name=$ac_optarg ;;
1151
1152  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153    ac_prev=pdfdir ;;
1154  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155    pdfdir=$ac_optarg ;;
1156
1157  -psdir | --psdir | --psdi | --psd | --ps)
1158    ac_prev=psdir ;;
1159  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160    psdir=$ac_optarg ;;
1161
1162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163  | -silent | --silent | --silen | --sile | --sil)
1164    silent=yes ;;
1165
1166  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167    ac_prev=sbindir ;;
1168  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169  | --sbi=* | --sb=*)
1170    sbindir=$ac_optarg ;;
1171
1172  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174  | --sharedst | --shareds | --shared | --share | --shar \
1175  | --sha | --sh)
1176    ac_prev=sharedstatedir ;;
1177  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180  | --sha=* | --sh=*)
1181    sharedstatedir=$ac_optarg ;;
1182
1183  -site | --site | --sit)
1184    ac_prev=site ;;
1185  -site=* | --site=* | --sit=*)
1186    site=$ac_optarg ;;
1187
1188  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189    ac_prev=srcdir ;;
1190  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191    srcdir=$ac_optarg ;;
1192
1193  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194  | --syscon | --sysco | --sysc | --sys | --sy)
1195    ac_prev=sysconfdir ;;
1196  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198    sysconfdir=$ac_optarg ;;
1199
1200  -target | --target | --targe | --targ | --tar | --ta | --t)
1201    ac_prev=target_alias ;;
1202  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203    target_alias=$ac_optarg ;;
1204
1205  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206    verbose=yes ;;
1207
1208  -version | --version | --versio | --versi | --vers | -V)
1209    ac_init_version=: ;;
1210
1211  -with-* | --with-*)
1212    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215      as_fn_error $? "invalid package name: $ac_useropt"
1216    ac_useropt_orig=$ac_useropt
1217    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218    case $ac_user_opts in
1219      *"
1220"with_$ac_useropt"
1221"*) ;;
1222      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223	 ac_unrecognized_sep=', ';;
1224    esac
1225    eval with_$ac_useropt=\$ac_optarg ;;
1226
1227  -without-* | --without-*)
1228    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231      as_fn_error $? "invalid package name: $ac_useropt"
1232    ac_useropt_orig=$ac_useropt
1233    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234    case $ac_user_opts in
1235      *"
1236"with_$ac_useropt"
1237"*) ;;
1238      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239	 ac_unrecognized_sep=', ';;
1240    esac
1241    eval with_$ac_useropt=no ;;
1242
1243  --x)
1244    # Obsolete; use --with-x.
1245    with_x=yes ;;
1246
1247  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248  | --x-incl | --x-inc | --x-in | --x-i)
1249    ac_prev=x_includes ;;
1250  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252    x_includes=$ac_optarg ;;
1253
1254  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256    ac_prev=x_libraries ;;
1257  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259    x_libraries=$ac_optarg ;;
1260
1261  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262Try \`$0 --help' for more information"
1263    ;;
1264
1265  *=*)
1266    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267    # Reject names that are not valid shell variable names.
1268    case $ac_envvar in #(
1269      '' | [0-9]* | *[!_$as_cr_alnum]* )
1270      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271    esac
1272    eval $ac_envvar=\$ac_optarg
1273    export $ac_envvar ;;
1274
1275  *)
1276    # FIXME: should be removed in autoconf 3.0.
1277    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1281    ;;
1282
1283  esac
1284done
1285
1286if test -n "$ac_prev"; then
1287  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288  as_fn_error $? "missing argument to $ac_option"
1289fi
1290
1291if test -n "$ac_unrecognized_opts"; then
1292  case $enable_option_checking in
1293    no) ;;
1294    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296  esac
1297fi
1298
1299# Check all directory arguments for consistency.
1300for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301		datadir sysconfdir sharedstatedir localstatedir includedir \
1302		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303		libdir localedir mandir
1304do
1305  eval ac_val=\$$ac_var
1306  # Remove trailing slashes.
1307  case $ac_val in
1308    */ )
1309      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310      eval $ac_var=\$ac_val;;
1311  esac
1312  # Be sure to have absolute directory names.
1313  case $ac_val in
1314    [\\/$]* | ?:[\\/]* )  continue;;
1315    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316  esac
1317  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318done
1319
1320# There might be people who depend on the old broken behavior: `$host'
1321# used to hold the argument of --host etc.
1322# FIXME: To remove some day.
1323build=$build_alias
1324host=$host_alias
1325target=$target_alias
1326
1327# FIXME: To remove some day.
1328if test "x$host_alias" != x; then
1329  if test "x$build_alias" = x; then
1330    cross_compiling=maybe
1331    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1332    If a cross compiler is detected then cross compile mode will be used" >&2
1333  elif test "x$build_alias" != "x$host_alias"; then
1334    cross_compiling=yes
1335  fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
1342
1343
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347  as_fn_error $? "working directory cannot be determined"
1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349  as_fn_error $? "pwd does not report name of working directory"
1350
1351
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354  ac_srcdir_defaulted=yes
1355  # Try the directory containing this script, then the parent directory.
1356  ac_confdir=`$as_dirname -- "$as_myself" ||
1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358	 X"$as_myself" : 'X\(//\)[^/]' \| \
1359	 X"$as_myself" : 'X\(//\)$' \| \
1360	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361$as_echo X"$as_myself" |
1362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363	    s//\1/
1364	    q
1365	  }
1366	  /^X\(\/\/\)[^/].*/{
1367	    s//\1/
1368	    q
1369	  }
1370	  /^X\(\/\/\)$/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\).*/{
1375	    s//\1/
1376	    q
1377	  }
1378	  s/.*/./; q'`
1379  srcdir=$ac_confdir
1380  if test ! -r "$srcdir/$ac_unique_file"; then
1381    srcdir=..
1382  fi
1383else
1384  ac_srcdir_defaulted=no
1385fi
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389fi
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
1392	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393	pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396  srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
1404for ac_var in $ac_precious_vars; do
1405  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406  eval ac_env_${ac_var}_value=\$${ac_var}
1407  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409done
1410
1411#
1412# Report the --help message.
1413#
1414if test "$ac_init_help" = "long"; then
1415  # Omit some internal or obsolete options to make the list less imposing.
1416  # This message is too long to be a string in the A/UX 3.1 sh.
1417  cat <<_ACEOF
1418\`configure' configures this package to adapt to many kinds of systems.
1419
1420Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425Defaults for the options are specified in brackets.
1426
1427Configuration:
1428  -h, --help              display this help and exit
1429      --help=short        display options specific to this package
1430      --help=recursive    display the short help of all the included packages
1431  -V, --version           display version information and exit
1432  -q, --quiet, --silent   do not print \`checking ...' messages
1433      --cache-file=FILE   cache test results in FILE [disabled]
1434  -C, --config-cache      alias for \`--cache-file=config.cache'
1435  -n, --no-create         do not create output files
1436      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438Installation directories:
1439  --prefix=PREFIX         install architecture-independent files in PREFIX
1440                          [$ac_default_prefix]
1441  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                          [PREFIX]
1443
1444By default, \`make install' will install all the files in
1445\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447for instance \`--prefix=\$HOME'.
1448
1449For better control, use the options below.
1450
1451Fine tuning of the installation directories:
1452  --bindir=DIR            user executables [EPREFIX/bin]
1453  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1454  --libexecdir=DIR        program executables [EPREFIX/libexec]
1455  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1456  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1457  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1458  --libdir=DIR            object code libraries [EPREFIX/lib]
1459  --includedir=DIR        C header files [PREFIX/include]
1460  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1461  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1462  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1463  --infodir=DIR           info documentation [DATAROOTDIR/info]
1464  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1465  --mandir=DIR            man documentation [DATAROOTDIR/man]
1466  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1467  --htmldir=DIR           html documentation [DOCDIR]
1468  --dvidir=DIR            dvi documentation [DOCDIR]
1469  --pdfdir=DIR            pdf documentation [DOCDIR]
1470  --psdir=DIR             ps documentation [DOCDIR]
1471_ACEOF
1472
1473  cat <<\_ACEOF
1474
1475Program names:
1476  --program-prefix=PREFIX            prepend PREFIX to installed program names
1477  --program-suffix=SUFFIX            append SUFFIX to installed program names
1478  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1479
1480System types:
1481  --build=BUILD     configure for building on BUILD [guessed]
1482  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1483_ACEOF
1484fi
1485
1486if test -n "$ac_init_help"; then
1487
1488  cat <<\_ACEOF
1489
1490Optional Features:
1491  --disable-option-checking  ignore unrecognized --enable/--with options
1492  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1493  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1494  --enable-maintainer-mode  enable make rules and dependencies not useful
1495			  (and sometimes confusing) to the casual installer
1496  --enable-shared[=PKGS]  build shared libraries [default=yes]
1497  --enable-static[=PKGS]  build static libraries [default=yes]
1498  --enable-fast-install[=PKGS]
1499                          optimize for fast installation [default=yes]
1500  --disable-dependency-tracking  speeds up one-time build
1501  --enable-dependency-tracking   do not reject slow dependency extractors
1502  --disable-libtool-lock  avoid locking (might break parallel builds)
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-pic              try to use only PIC/non-PIC objects [default=use
1508                          both]
1509  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1510
1511Some influential environment variables:
1512  CC          C compiler command
1513  CFLAGS      C compiler flags
1514  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1515              nonstandard directory <lib dir>
1516  LIBS        libraries to pass to the linker, e.g. -l<library>
1517  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518              you have headers in a nonstandard directory <include dir>
1519  CPP         C preprocessor
1520
1521Use these variables to override the choices made by `configure' or to help
1522it to find libraries and programs with nonstandard names/locations.
1523
1524Report bugs to the package provider.
1525_ACEOF
1526ac_status=$?
1527fi
1528
1529if test "$ac_init_help" = "recursive"; then
1530  # If there are subdirs, report their specific --help.
1531  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532    test -d "$ac_dir" ||
1533      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534      continue
1535    ac_builddir=.
1536
1537case "$ac_dir" in
1538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539*)
1540  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1541  # A ".." for each directory in $ac_dir_suffix.
1542  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543  case $ac_top_builddir_sub in
1544  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546  esac ;;
1547esac
1548ac_abs_top_builddir=$ac_pwd
1549ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550# for backward compatibility:
1551ac_top_builddir=$ac_top_build_prefix
1552
1553case $srcdir in
1554  .)  # We are building in place.
1555    ac_srcdir=.
1556    ac_top_srcdir=$ac_top_builddir_sub
1557    ac_abs_top_srcdir=$ac_pwd ;;
1558  [\\/]* | ?:[\\/]* )  # Absolute name.
1559    ac_srcdir=$srcdir$ac_dir_suffix;
1560    ac_top_srcdir=$srcdir
1561    ac_abs_top_srcdir=$srcdir ;;
1562  *) # Relative name.
1563    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564    ac_top_srcdir=$ac_top_build_prefix$srcdir
1565    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566esac
1567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569    cd "$ac_dir" || { ac_status=$?; continue; }
1570    # Check for guested configure.
1571    if test -f "$ac_srcdir/configure.gnu"; then
1572      echo &&
1573      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574    elif test -f "$ac_srcdir/configure"; then
1575      echo &&
1576      $SHELL "$ac_srcdir/configure" --help=recursive
1577    else
1578      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579    fi || ac_status=$?
1580    cd "$ac_pwd" || { ac_status=$?; break; }
1581  done
1582fi
1583
1584test -n "$ac_init_help" && exit $ac_status
1585if $ac_init_version; then
1586  cat <<\_ACEOF
1587configure
1588generated by GNU Autoconf 2.67
1589
1590Copyright (C) 2010 Free Software Foundation, Inc.
1591This configure script is free software; the Free Software Foundation
1592gives unlimited permission to copy, distribute and modify it.
1593_ACEOF
1594  exit
1595fi
1596
1597## ------------------------ ##
1598## Autoconf initialization. ##
1599## ------------------------ ##
1600
1601# ac_fn_c_try_compile LINENO
1602# --------------------------
1603# Try to compile conftest.$ac_ext, and return whether this succeeded.
1604ac_fn_c_try_compile ()
1605{
1606  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607  rm -f conftest.$ac_objext
1608  if { { ac_try="$ac_compile"
1609case "(($ac_try" in
1610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611  *) ac_try_echo=$ac_try;;
1612esac
1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614$as_echo "$ac_try_echo"; } >&5
1615  (eval "$ac_compile") 2>conftest.err
1616  ac_status=$?
1617  if test -s conftest.err; then
1618    grep -v '^ *+' conftest.err >conftest.er1
1619    cat conftest.er1 >&5
1620    mv -f conftest.er1 conftest.err
1621  fi
1622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623  test $ac_status = 0; } && {
1624	 test -z "$ac_c_werror_flag" ||
1625	 test ! -s conftest.err
1626       } && test -s conftest.$ac_objext; then :
1627  ac_retval=0
1628else
1629  $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632	ac_retval=1
1633fi
1634  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635  as_fn_set_status $ac_retval
1636
1637} # ac_fn_c_try_compile
1638
1639# ac_fn_c_try_link LINENO
1640# -----------------------
1641# Try to link conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_link ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  rm -f conftest.$ac_objext conftest$ac_exeext
1646  if { { ac_try="$ac_link"
1647case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5
1653  (eval "$ac_link") 2>conftest.err
1654  ac_status=$?
1655  if test -s conftest.err; then
1656    grep -v '^ *+' conftest.err >conftest.er1
1657    cat conftest.er1 >&5
1658    mv -f conftest.er1 conftest.err
1659  fi
1660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } && {
1662	 test -z "$ac_c_werror_flag" ||
1663	 test ! -s conftest.err
1664       } && test -s conftest$ac_exeext && {
1665	 test "$cross_compiling" = yes ||
1666	 $as_test_x conftest$ac_exeext
1667       }; then :
1668  ac_retval=0
1669else
1670  $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673	ac_retval=1
1674fi
1675  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1676  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1677  # interfere with the next link command; also delete a directory that is
1678  # left behind by Apple's compiler.  We do this before executing the actions.
1679  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1680  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681  as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_link
1684
1685# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1686# -------------------------------------------------------
1687# Tests whether HEADER exists and can be compiled using the include files in
1688# INCLUDES, setting the cache variable VAR accordingly.
1689ac_fn_c_check_header_compile ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if eval "test \"\${$3+set}\"" = set; then :
1695  $as_echo_n "(cached) " >&6
1696else
1697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698/* end confdefs.h.  */
1699$4
1700#include <$2>
1701_ACEOF
1702if ac_fn_c_try_compile "$LINENO"; then :
1703  eval "$3=yes"
1704else
1705  eval "$3=no"
1706fi
1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708fi
1709eval ac_res=\$$3
1710	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711$as_echo "$ac_res" >&6; }
1712  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713
1714} # ac_fn_c_check_header_compile
1715
1716# ac_fn_c_try_cpp LINENO
1717# ----------------------
1718# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_cpp ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  if { { ac_try="$ac_cpp conftest.$ac_ext"
1723case "(($ac_try" in
1724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725  *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1730  ac_status=$?
1731  if test -s conftest.err; then
1732    grep -v '^ *+' conftest.err >conftest.er1
1733    cat conftest.er1 >&5
1734    mv -f conftest.er1 conftest.err
1735  fi
1736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737  test $ac_status = 0; } > conftest.i && {
1738	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1739	 test ! -s conftest.err
1740       }; then :
1741  ac_retval=0
1742else
1743  $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746    ac_retval=1
1747fi
1748  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749  as_fn_set_status $ac_retval
1750
1751} # ac_fn_c_try_cpp
1752
1753# ac_fn_c_try_run LINENO
1754# ----------------------
1755# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1756# that executables *can* be run.
1757ac_fn_c_try_run ()
1758{
1759  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760  if { { ac_try="$ac_link"
1761case "(($ac_try" in
1762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763  *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767  (eval "$ac_link") 2>&5
1768  ac_status=$?
1769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1771  { { case "(($ac_try" in
1772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773  *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777  (eval "$ac_try") 2>&5
1778  ac_status=$?
1779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780  test $ac_status = 0; }; }; then :
1781  ac_retval=0
1782else
1783  $as_echo "$as_me: program exited with status $ac_status" >&5
1784       $as_echo "$as_me: failed program was:" >&5
1785sed 's/^/| /' conftest.$ac_ext >&5
1786
1787       ac_retval=$ac_status
1788fi
1789  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791  as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_run
1794
1795# ac_fn_c_check_func LINENO FUNC VAR
1796# ----------------------------------
1797# Tests whether FUNC exists, setting the cache variable VAR accordingly
1798ac_fn_c_check_func ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval "test \"\${$3+set}\"" = set; then :
1804  $as_echo_n "(cached) " >&6
1805else
1806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h.  */
1808/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1809   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1810#define $2 innocuous_$2
1811
1812/* System header to define __stub macros and hopefully few prototypes,
1813    which can conflict with char $2 (); below.
1814    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1815    <limits.h> exists even on freestanding compilers.  */
1816
1817#ifdef __STDC__
1818# include <limits.h>
1819#else
1820# include <assert.h>
1821#endif
1822
1823#undef $2
1824
1825/* Override any GCC internal prototype to avoid an error.
1826   Use char because int might match the return type of a GCC
1827   builtin and then its argument prototype would still apply.  */
1828#ifdef __cplusplus
1829extern "C"
1830#endif
1831char $2 ();
1832/* The GNU C library defines this for functions which it implements
1833    to always fail with ENOSYS.  Some functions are actually named
1834    something starting with __ and the normal name is an alias.  */
1835#if defined __stub_$2 || defined __stub___$2
1836choke me
1837#endif
1838
1839int
1840main ()
1841{
1842return $2 ();
1843  ;
1844  return 0;
1845}
1846_ACEOF
1847if ac_fn_c_try_link "$LINENO"; then :
1848  eval "$3=yes"
1849else
1850  eval "$3=no"
1851fi
1852rm -f core conftest.err conftest.$ac_objext \
1853    conftest$ac_exeext conftest.$ac_ext
1854fi
1855eval ac_res=\$$3
1856	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857$as_echo "$ac_res" >&6; }
1858  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859
1860} # ac_fn_c_check_func
1861
1862# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1863# -------------------------------------------------------
1864# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1865# the include files in INCLUDES and setting the cache variable VAR
1866# accordingly.
1867ac_fn_c_check_header_mongrel ()
1868{
1869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870  if eval "test \"\${$3+set}\"" = set; then :
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval "test \"\${$3+set}\"" = set; then :
1874  $as_echo_n "(cached) " >&6
1875fi
1876eval ac_res=\$$3
1877	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
1879else
1880  # Is the header compilable?
1881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1882$as_echo_n "checking $2 usability... " >&6; }
1883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h.  */
1885$4
1886#include <$2>
1887_ACEOF
1888if ac_fn_c_try_compile "$LINENO"; then :
1889  ac_header_compiler=yes
1890else
1891  ac_header_compiler=no
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1895$as_echo "$ac_header_compiler" >&6; }
1896
1897# Is the header present?
1898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1899$as_echo_n "checking $2 presence... " >&6; }
1900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h.  */
1902#include <$2>
1903_ACEOF
1904if ac_fn_c_try_cpp "$LINENO"; then :
1905  ac_header_preproc=yes
1906else
1907  ac_header_preproc=no
1908fi
1909rm -f conftest.err conftest.i conftest.$ac_ext
1910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1911$as_echo "$ac_header_preproc" >&6; }
1912
1913# So?  What about this header?
1914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1915  yes:no: )
1916    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1917$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1918    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1919$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1920    ;;
1921  no:yes:* )
1922    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1923$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1924    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1925$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1926    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1927$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1928    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1929$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1930    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1931$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1932    ;;
1933esac
1934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
1936if eval "test \"\${$3+set}\"" = set; then :
1937  $as_echo_n "(cached) " >&6
1938else
1939  eval "$3=\$ac_header_compiler"
1940fi
1941eval ac_res=\$$3
1942	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944fi
1945  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
1947} # ac_fn_c_check_header_mongrel
1948cat >config.log <<_ACEOF
1949This file contains any messages produced by compilers while
1950running configure, to aid debugging if configure makes a mistake.
1951
1952It was created by $as_me, which was
1953generated by GNU Autoconf 2.67.  Invocation command line was
1954
1955  $ $0 $@
1956
1957_ACEOF
1958exec 5>>config.log
1959{
1960cat <<_ASUNAME
1961## --------- ##
1962## Platform. ##
1963## --------- ##
1964
1965hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1966uname -m = `(uname -m) 2>/dev/null || echo unknown`
1967uname -r = `(uname -r) 2>/dev/null || echo unknown`
1968uname -s = `(uname -s) 2>/dev/null || echo unknown`
1969uname -v = `(uname -v) 2>/dev/null || echo unknown`
1970
1971/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1972/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1973
1974/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1975/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1976/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1977/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1978/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1979/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1980/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1981
1982_ASUNAME
1983
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987  IFS=$as_save_IFS
1988  test -z "$as_dir" && as_dir=.
1989    $as_echo "PATH: $as_dir"
1990  done
1991IFS=$as_save_IFS
1992
1993} >&5
1994
1995cat >&5 <<_ACEOF
1996
1997
1998## ----------- ##
1999## Core tests. ##
2000## ----------- ##
2001
2002_ACEOF
2003
2004
2005# Keep a trace of the command line.
2006# Strip out --no-create and --no-recursion so they do not pile up.
2007# Strip out --silent because we don't want to record it for future runs.
2008# Also quote any args containing shell meta-characters.
2009# Make two passes to allow for proper duplicate-argument suppression.
2010ac_configure_args=
2011ac_configure_args0=
2012ac_configure_args1=
2013ac_must_keep_next=false
2014for ac_pass in 1 2
2015do
2016  for ac_arg
2017  do
2018    case $ac_arg in
2019    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021    | -silent | --silent | --silen | --sile | --sil)
2022      continue ;;
2023    *\'*)
2024      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2025    esac
2026    case $ac_pass in
2027    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2028    2)
2029      as_fn_append ac_configure_args1 " '$ac_arg'"
2030      if test $ac_must_keep_next = true; then
2031	ac_must_keep_next=false # Got value, back to normal.
2032      else
2033	case $ac_arg in
2034	  *=* | --config-cache | -C | -disable-* | --disable-* \
2035	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037	  | -with-* | --with-* | -without-* | --without-* | --x)
2038	    case "$ac_configure_args0 " in
2039	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2040	    esac
2041	    ;;
2042	  -* ) ac_must_keep_next=true ;;
2043	esac
2044      fi
2045      as_fn_append ac_configure_args " '$ac_arg'"
2046      ;;
2047    esac
2048  done
2049done
2050{ ac_configure_args0=; unset ac_configure_args0;}
2051{ ac_configure_args1=; unset ac_configure_args1;}
2052
2053# When interrupted or exit'd, cleanup temporary files, and complete
2054# config.log.  We remove comments because anyway the quotes in there
2055# would cause problems or look ugly.
2056# WARNING: Use '\'' to represent an apostrophe within the trap.
2057# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2058trap 'exit_status=$?
2059  # Save into config.log some information that might help in debugging.
2060  {
2061    echo
2062
2063    $as_echo "## ---------------- ##
2064## Cache variables. ##
2065## ---------------- ##"
2066    echo
2067    # The following way of writing the cache mishandles newlines in values,
2068(
2069  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2070    eval ac_val=\$$ac_var
2071    case $ac_val in #(
2072    *${as_nl}*)
2073      case $ac_var in #(
2074      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2075$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2076      esac
2077      case $ac_var in #(
2078      _ | IFS | as_nl) ;; #(
2079      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2080      *) { eval $ac_var=; unset $ac_var;} ;;
2081      esac ;;
2082    esac
2083  done
2084  (set) 2>&1 |
2085    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2086    *${as_nl}ac_space=\ *)
2087      sed -n \
2088	"s/'\''/'\''\\\\'\'''\''/g;
2089	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2090      ;; #(
2091    *)
2092      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2093      ;;
2094    esac |
2095    sort
2096)
2097    echo
2098
2099    $as_echo "## ----------------- ##
2100## Output variables. ##
2101## ----------------- ##"
2102    echo
2103    for ac_var in $ac_subst_vars
2104    do
2105      eval ac_val=\$$ac_var
2106      case $ac_val in
2107      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108      esac
2109      $as_echo "$ac_var='\''$ac_val'\''"
2110    done | sort
2111    echo
2112
2113    if test -n "$ac_subst_files"; then
2114      $as_echo "## ------------------- ##
2115## File substitutions. ##
2116## ------------------- ##"
2117      echo
2118      for ac_var in $ac_subst_files
2119      do
2120	eval ac_val=\$$ac_var
2121	case $ac_val in
2122	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123	esac
2124	$as_echo "$ac_var='\''$ac_val'\''"
2125      done | sort
2126      echo
2127    fi
2128
2129    if test -s confdefs.h; then
2130      $as_echo "## ----------- ##
2131## confdefs.h. ##
2132## ----------- ##"
2133      echo
2134      cat confdefs.h
2135      echo
2136    fi
2137    test "$ac_signal" != 0 &&
2138      $as_echo "$as_me: caught signal $ac_signal"
2139    $as_echo "$as_me: exit $exit_status"
2140  } >&5
2141  rm -f core *.core core.conftest.* &&
2142    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2143    exit $exit_status
2144' 0
2145for ac_signal in 1 2 13 15; do
2146  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2147done
2148ac_signal=0
2149
2150# confdefs.h avoids OS command line length limits that DEFS can exceed.
2151rm -f -r conftest* confdefs.h
2152
2153$as_echo "/* confdefs.h */" > confdefs.h
2154
2155# Predefined preprocessor variables.
2156
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_NAME "$PACKAGE_NAME"
2159_ACEOF
2160
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2163_ACEOF
2164
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_VERSION "$PACKAGE_VERSION"
2167_ACEOF
2168
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_STRING "$PACKAGE_STRING"
2171_ACEOF
2172
2173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2175_ACEOF
2176
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_URL "$PACKAGE_URL"
2179_ACEOF
2180
2181
2182# Let the site file select an alternate cache file if it wants to.
2183# Prefer an explicitly selected file to automatically selected ones.
2184ac_site_file1=NONE
2185ac_site_file2=NONE
2186if test -n "$CONFIG_SITE"; then
2187  # We do not want a PATH search for config.site.
2188  case $CONFIG_SITE in #((
2189    -*)  ac_site_file1=./$CONFIG_SITE;;
2190    */*) ac_site_file1=$CONFIG_SITE;;
2191    *)   ac_site_file1=./$CONFIG_SITE;;
2192  esac
2193elif test "x$prefix" != xNONE; then
2194  ac_site_file1=$prefix/share/config.site
2195  ac_site_file2=$prefix/etc/config.site
2196else
2197  ac_site_file1=$ac_default_prefix/share/config.site
2198  ac_site_file2=$ac_default_prefix/etc/config.site
2199fi
2200for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2201do
2202  test "x$ac_site_file" = xNONE && continue
2203  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2204    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2205$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2206    sed 's/^/| /' "$ac_site_file" >&5
2207    . "$ac_site_file" \
2208      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210as_fn_error $? "failed to load site script $ac_site_file
2211See \`config.log' for more details" "$LINENO" 5 ; }
2212  fi
2213done
2214
2215if test -r "$cache_file"; then
2216  # Some versions of bash will fail to source /dev/null (special files
2217  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2218  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2219    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220$as_echo "$as_me: loading cache $cache_file" >&6;}
2221    case $cache_file in
2222      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2223      *)                      . "./$cache_file";;
2224    esac
2225  fi
2226else
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228$as_echo "$as_me: creating cache $cache_file" >&6;}
2229  >$cache_file
2230fi
2231
2232# Check that the precious variables saved in the cache have kept the same
2233# value.
2234ac_cache_corrupted=false
2235for ac_var in $ac_precious_vars; do
2236  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2237  eval ac_new_set=\$ac_env_${ac_var}_set
2238  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2239  eval ac_new_val=\$ac_env_${ac_var}_value
2240  case $ac_old_set,$ac_new_set in
2241    set,)
2242      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2243$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2244      ac_cache_corrupted=: ;;
2245    ,set)
2246      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2247$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2248      ac_cache_corrupted=: ;;
2249    ,);;
2250    *)
2251      if test "x$ac_old_val" != "x$ac_new_val"; then
2252	# differences in whitespace do not lead to failure.
2253	ac_old_val_w=`echo x $ac_old_val`
2254	ac_new_val_w=`echo x $ac_new_val`
2255	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2256	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2257$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2258	  ac_cache_corrupted=:
2259	else
2260	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2261$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2262	  eval $ac_var=\$ac_old_val
2263	fi
2264	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2265$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2266	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2267$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2268      fi;;
2269  esac
2270  # Pass precious variables to config.status.
2271  if test "$ac_new_set" = set; then
2272    case $ac_new_val in
2273    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2274    *) ac_arg=$ac_var=$ac_new_val ;;
2275    esac
2276    case " $ac_configure_args " in
2277      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2278      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2279    esac
2280  fi
2281done
2282if $ac_cache_corrupted; then
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2286$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2287  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2288fi
2289## -------------------- ##
2290## Main body of script. ##
2291## -------------------- ##
2292
2293ac_ext=c
2294ac_cpp='$CPP $CPPFLAGS'
2295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298
2299
2300
2301
2302am__api_version='1.11'
2303
2304ac_aux_dir=
2305for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2306  if test -f "$ac_dir/install-sh"; then
2307    ac_aux_dir=$ac_dir
2308    ac_install_sh="$ac_aux_dir/install-sh -c"
2309    break
2310  elif test -f "$ac_dir/install.sh"; then
2311    ac_aux_dir=$ac_dir
2312    ac_install_sh="$ac_aux_dir/install.sh -c"
2313    break
2314  elif test -f "$ac_dir/shtool"; then
2315    ac_aux_dir=$ac_dir
2316    ac_install_sh="$ac_aux_dir/shtool install -c"
2317    break
2318  fi
2319done
2320if test -z "$ac_aux_dir"; then
2321  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2322fi
2323
2324# These three variables are undocumented and unsupported,
2325# and are intended to be withdrawn in a future Autoconf release.
2326# They can cause serious problems if a builder's source tree is in a directory
2327# whose full name contains unusual characters.
2328ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2329ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2330ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2331
2332
2333# Find a good install program.  We prefer a C program (faster),
2334# so one script is as good as another.  But avoid the broken or
2335# incompatible versions:
2336# SysV /etc/install, /usr/sbin/install
2337# SunOS /usr/etc/install
2338# IRIX /sbin/install
2339# AIX /bin/install
2340# AmigaOS /C/install, which installs bootblocks on floppy discs
2341# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2342# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2343# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2344# OS/2's system install, which has a completely different semantic
2345# ./install, which can be erroneously created by make from ./install.sh.
2346# Reject install programs that cannot install multiple files.
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2348$as_echo_n "checking for a BSD-compatible install... " >&6; }
2349if test -z "$INSTALL"; then
2350if test "${ac_cv_path_install+set}" = set; then :
2351  $as_echo_n "(cached) " >&6
2352else
2353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354for as_dir in $PATH
2355do
2356  IFS=$as_save_IFS
2357  test -z "$as_dir" && as_dir=.
2358    # Account for people who put trailing slashes in PATH elements.
2359case $as_dir/ in #((
2360  ./ | .// | /[cC]/* | \
2361  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2362  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2363  /usr/ucb/* ) ;;
2364  *)
2365    # OSF1 and SCO ODT 3.0 have their own names for install.
2366    # Don't use installbsd from OSF since it installs stuff as root
2367    # by default.
2368    for ac_prog in ginstall scoinst install; do
2369      for ac_exec_ext in '' $ac_executable_extensions; do
2370	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2371	  if test $ac_prog = install &&
2372	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2373	    # AIX install.  It has an incompatible calling convention.
2374	    :
2375	  elif test $ac_prog = install &&
2376	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377	    # program-specific install script used by HP pwplus--don't use.
2378	    :
2379	  else
2380	    rm -rf conftest.one conftest.two conftest.dir
2381	    echo one > conftest.one
2382	    echo two > conftest.two
2383	    mkdir conftest.dir
2384	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2385	      test -s conftest.one && test -s conftest.two &&
2386	      test -s conftest.dir/conftest.one &&
2387	      test -s conftest.dir/conftest.two
2388	    then
2389	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2390	      break 3
2391	    fi
2392	  fi
2393	fi
2394      done
2395    done
2396    ;;
2397esac
2398
2399  done
2400IFS=$as_save_IFS
2401
2402rm -rf conftest.one conftest.two conftest.dir
2403
2404fi
2405  if test "${ac_cv_path_install+set}" = set; then
2406    INSTALL=$ac_cv_path_install
2407  else
2408    # As a last resort, use the slow shell script.  Don't cache a
2409    # value for INSTALL within a source directory, because that will
2410    # break other packages using the cache if that directory is
2411    # removed, or if the value is a relative name.
2412    INSTALL=$ac_install_sh
2413  fi
2414fi
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2416$as_echo "$INSTALL" >&6; }
2417
2418# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2419# It thinks the first close brace ends the variable substitution.
2420test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2421
2422test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2423
2424test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2425
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2427$as_echo_n "checking whether build environment is sane... " >&6; }
2428# Just in case
2429sleep 1
2430echo timestamp > conftest.file
2431# Reject unsafe characters in $srcdir or the absolute working directory
2432# name.  Accept space and tab only in the latter.
2433am_lf='
2434'
2435case `pwd` in
2436  *[\\\"\#\$\&\'\`$am_lf]*)
2437    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2438esac
2439case $srcdir in
2440  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2441    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2442esac
2443
2444# Do `set' in a subshell so we don't clobber the current shell's
2445# arguments.  Must try -L first in case configure is actually a
2446# symlink; some systems play weird games with the mod time of symlinks
2447# (eg FreeBSD returns the mod time of the symlink's containing
2448# directory).
2449if (
2450   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2451   if test "$*" = "X"; then
2452      # -L didn't work.
2453      set X `ls -t "$srcdir/configure" conftest.file`
2454   fi
2455   rm -f conftest.file
2456   if test "$*" != "X $srcdir/configure conftest.file" \
2457      && test "$*" != "X conftest.file $srcdir/configure"; then
2458
2459      # If neither matched, then we have a broken ls.  This can happen
2460      # if, for instance, CONFIG_SHELL is bash and it inherits a
2461      # broken ls alias from the environment.  This has actually
2462      # happened.  Such a system could not be considered "sane".
2463      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2464alias in your environment" "$LINENO" 5
2465   fi
2466
2467   test "$2" = conftest.file
2468   )
2469then
2470   # Ok.
2471   :
2472else
2473   as_fn_error $? "newly created file is older than distributed files!
2474Check your system clock" "$LINENO" 5
2475fi
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2477$as_echo "yes" >&6; }
2478test "$program_prefix" != NONE &&
2479  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2480# Use a double $ so make ignores it.
2481test "$program_suffix" != NONE &&
2482  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2483# Double any \ or $.
2484# By default was `s,x,x', remove it if useless.
2485ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2486program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2487
2488# expand $ac_aux_dir to an absolute path
2489am_aux_dir=`cd $ac_aux_dir && pwd`
2490
2491if test x"${MISSING+set}" != xset; then
2492  case $am_aux_dir in
2493  *\ * | *\	*)
2494    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2495  *)
2496    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2497  esac
2498fi
2499# Use eval to expand $SHELL
2500if eval "$MISSING --run true"; then
2501  am_missing_run="$MISSING --run "
2502else
2503  am_missing_run=
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2505$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2506fi
2507
2508if test x"${install_sh}" != xset; then
2509  case $am_aux_dir in
2510  *\ * | *\	*)
2511    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2512  *)
2513    install_sh="\${SHELL} $am_aux_dir/install-sh"
2514  esac
2515fi
2516
2517# Installed binaries are usually stripped using `strip' when the user
2518# run `make install-strip'.  However `strip' might not be the right
2519# tool to use in cross-compilation environments, therefore Automake
2520# will honor the `STRIP' environment variable to overrule this program.
2521if test "$cross_compiling" != no; then
2522  if test -n "$ac_tool_prefix"; then
2523  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2524set dummy ${ac_tool_prefix}strip; ac_word=$2
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526$as_echo_n "checking for $ac_word... " >&6; }
2527if test "${ac_cv_prog_STRIP+set}" = set; then :
2528  $as_echo_n "(cached) " >&6
2529else
2530  if test -n "$STRIP"; then
2531  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2532else
2533as_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    for ac_exec_ext in '' $ac_executable_extensions; do
2539  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542    break 2
2543  fi
2544done
2545  done
2546IFS=$as_save_IFS
2547
2548fi
2549fi
2550STRIP=$ac_cv_prog_STRIP
2551if test -n "$STRIP"; then
2552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2553$as_echo "$STRIP" >&6; }
2554else
2555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556$as_echo "no" >&6; }
2557fi
2558
2559
2560fi
2561if test -z "$ac_cv_prog_STRIP"; then
2562  ac_ct_STRIP=$STRIP
2563  # Extract the first word of "strip", so it can be a program name with args.
2564set dummy strip; ac_word=$2
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566$as_echo_n "checking for $ac_word... " >&6; }
2567if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2568  $as_echo_n "(cached) " >&6
2569else
2570  if test -n "$ac_ct_STRIP"; then
2571  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576  IFS=$as_save_IFS
2577  test -z "$as_dir" && as_dir=.
2578    for ac_exec_ext in '' $ac_executable_extensions; do
2579  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580    ac_cv_prog_ac_ct_STRIP="strip"
2581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582    break 2
2583  fi
2584done
2585  done
2586IFS=$as_save_IFS
2587
2588fi
2589fi
2590ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2591if test -n "$ac_ct_STRIP"; then
2592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2593$as_echo "$ac_ct_STRIP" >&6; }
2594else
2595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596$as_echo "no" >&6; }
2597fi
2598
2599  if test "x$ac_ct_STRIP" = x; then
2600    STRIP=":"
2601  else
2602    case $cross_compiling:$ac_tool_warned in
2603yes:)
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2606ac_tool_warned=yes ;;
2607esac
2608    STRIP=$ac_ct_STRIP
2609  fi
2610else
2611  STRIP="$ac_cv_prog_STRIP"
2612fi
2613
2614fi
2615INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2616
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2618$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2619if test -z "$MKDIR_P"; then
2620  if test "${ac_cv_path_mkdir+set}" = set; then :
2621  $as_echo_n "(cached) " >&6
2622else
2623  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2625do
2626  IFS=$as_save_IFS
2627  test -z "$as_dir" && as_dir=.
2628    for ac_prog in mkdir gmkdir; do
2629	 for ac_exec_ext in '' $ac_executable_extensions; do
2630	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2631	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2632	     'mkdir (GNU coreutils) '* | \
2633	     'mkdir (coreutils) '* | \
2634	     'mkdir (fileutils) '4.1*)
2635	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2636	       break 3;;
2637	   esac
2638	 done
2639       done
2640  done
2641IFS=$as_save_IFS
2642
2643fi
2644
2645  test -d ./--version && rmdir ./--version
2646  if test "${ac_cv_path_mkdir+set}" = set; then
2647    MKDIR_P="$ac_cv_path_mkdir -p"
2648  else
2649    # As a last resort, use the slow shell script.  Don't cache a
2650    # value for MKDIR_P within a source directory, because that will
2651    # break other packages using the cache if that directory is
2652    # removed, or if the value is a relative name.
2653    MKDIR_P="$ac_install_sh -d"
2654  fi
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2657$as_echo "$MKDIR_P" >&6; }
2658
2659mkdir_p="$MKDIR_P"
2660case $mkdir_p in
2661  [\\/$]* | ?:[\\/]*) ;;
2662  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2663esac
2664
2665for ac_prog in gawk mawk nawk awk
2666do
2667  # Extract the first word of "$ac_prog", so it can be a program name with args.
2668set dummy $ac_prog; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if test "${ac_cv_prog_AWK+set}" = set; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  if test -n "$AWK"; then
2675  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680  IFS=$as_save_IFS
2681  test -z "$as_dir" && as_dir=.
2682    for ac_exec_ext in '' $ac_executable_extensions; do
2683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684    ac_cv_prog_AWK="$ac_prog"
2685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686    break 2
2687  fi
2688done
2689  done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694AWK=$ac_cv_prog_AWK
2695if test -n "$AWK"; then
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2697$as_echo "$AWK" >&6; }
2698else
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703
2704  test -n "$AWK" && break
2705done
2706
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2709set x ${MAKE-make}
2710ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2711if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2712  $as_echo_n "(cached) " >&6
2713else
2714  cat >conftest.make <<\_ACEOF
2715SHELL = /bin/sh
2716all:
2717	@echo '@@@%%%=$(MAKE)=@@@%%%'
2718_ACEOF
2719# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2720case `${MAKE-make} -f conftest.make 2>/dev/null` in
2721  *@@@%%%=?*=@@@%%%*)
2722    eval ac_cv_prog_make_${ac_make}_set=yes;;
2723  *)
2724    eval ac_cv_prog_make_${ac_make}_set=no;;
2725esac
2726rm -f conftest.make
2727fi
2728if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2730$as_echo "yes" >&6; }
2731  SET_MAKE=
2732else
2733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734$as_echo "no" >&6; }
2735  SET_MAKE="MAKE=${MAKE-make}"
2736fi
2737
2738rm -rf .tst 2>/dev/null
2739mkdir .tst 2>/dev/null
2740if test -d .tst; then
2741  am__leading_dot=.
2742else
2743  am__leading_dot=_
2744fi
2745rmdir .tst 2>/dev/null
2746
2747if test "`cd $srcdir && pwd`" != "`pwd`"; then
2748  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2749  # is not polluted with repeated "-I."
2750  am__isrc=' -I$(srcdir)'
2751  # test to see if srcdir already configured
2752  if test -f $srcdir/config.status; then
2753    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2754  fi
2755fi
2756
2757# test whether we have cygpath
2758if test -z "$CYGPATH_W"; then
2759  if (cygpath --version) >/dev/null 2>/dev/null; then
2760    CYGPATH_W='cygpath -w'
2761  else
2762    CYGPATH_W=echo
2763  fi
2764fi
2765
2766
2767# Define the identity of the package.
2768 PACKAGE=libev
2769 VERSION=4.04
2770
2771
2772cat >>confdefs.h <<_ACEOF
2773#define PACKAGE "$PACKAGE"
2774_ACEOF
2775
2776
2777cat >>confdefs.h <<_ACEOF
2778#define VERSION "$VERSION"
2779_ACEOF
2780
2781# Some tools Automake needs.
2782
2783ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2784
2785
2786AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2787
2788
2789AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2790
2791
2792AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2793
2794
2795MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2796
2797# We need awk for the "check" target.  The system "awk" is bad on
2798# some platforms.
2799# Always define AMTAR for backward compatibility.
2800
2801AMTAR=${AMTAR-"${am_missing_run}tar"}
2802
2803am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2804
2805
2806
2807
2808 ac_config_headers="$ac_config_headers config.h"
2809
2810
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2812$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2813    # Check whether --enable-maintainer-mode was given.
2814if test "${enable_maintainer_mode+set}" = set; then :
2815  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2816else
2817  USE_MAINTAINER_MODE=no
2818fi
2819
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2821$as_echo "$USE_MAINTAINER_MODE" >&6; }
2822   if test $USE_MAINTAINER_MODE = yes; then
2823  MAINTAINER_MODE_TRUE=
2824  MAINTAINER_MODE_FALSE='#'
2825else
2826  MAINTAINER_MODE_TRUE='#'
2827  MAINTAINER_MODE_FALSE=
2828fi
2829
2830  MAINT=$MAINTAINER_MODE_TRUE
2831
2832
2833
2834
2835case `pwd` in
2836  *\ * | *\	*)
2837    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2838$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2839esac
2840
2841
2842
2843macro_version='2.2.6b'
2844macro_revision='1.3017'
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858ltmain="$ac_aux_dir/ltmain.sh"
2859
2860# Make sure we can run config.sub.
2861$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2862  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2863
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2865$as_echo_n "checking build system type... " >&6; }
2866if test "${ac_cv_build+set}" = set; then :
2867  $as_echo_n "(cached) " >&6
2868else
2869  ac_build_alias=$build_alias
2870test "x$ac_build_alias" = x &&
2871  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2872test "x$ac_build_alias" = x &&
2873  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2874ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2875  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2876
2877fi
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2879$as_echo "$ac_cv_build" >&6; }
2880case $ac_cv_build in
2881*-*-*) ;;
2882*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2883esac
2884build=$ac_cv_build
2885ac_save_IFS=$IFS; IFS='-'
2886set x $ac_cv_build
2887shift
2888build_cpu=$1
2889build_vendor=$2
2890shift; shift
2891# Remember, the first character of IFS is used to create $*,
2892# except with old shells:
2893build_os=$*
2894IFS=$ac_save_IFS
2895case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2896
2897
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2899$as_echo_n "checking host system type... " >&6; }
2900if test "${ac_cv_host+set}" = set; then :
2901  $as_echo_n "(cached) " >&6
2902else
2903  if test "x$host_alias" = x; then
2904  ac_cv_host=$ac_cv_build
2905else
2906  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2907    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2908fi
2909
2910fi
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2912$as_echo "$ac_cv_host" >&6; }
2913case $ac_cv_host in
2914*-*-*) ;;
2915*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2916esac
2917host=$ac_cv_host
2918ac_save_IFS=$IFS; IFS='-'
2919set x $ac_cv_host
2920shift
2921host_cpu=$1
2922host_vendor=$2
2923shift; shift
2924# Remember, the first character of IFS is used to create $*,
2925# except with old shells:
2926host_os=$*
2927IFS=$ac_save_IFS
2928case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2929
2930
2931DEPDIR="${am__leading_dot}deps"
2932
2933ac_config_commands="$ac_config_commands depfiles"
2934
2935
2936am_make=${MAKE-make}
2937cat > confinc << 'END'
2938am__doit:
2939	@echo this is the am__doit target
2940.PHONY: am__doit
2941END
2942# If we don't find an include directive, just comment out the code.
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2944$as_echo_n "checking for style of include used by $am_make... " >&6; }
2945am__include="#"
2946am__quote=
2947_am_result=none
2948# First try GNU make style include.
2949echo "include confinc" > confmf
2950# Ignore all kinds of additional output from `make'.
2951case `$am_make -s -f confmf 2> /dev/null` in #(
2952*the\ am__doit\ target*)
2953  am__include=include
2954  am__quote=
2955  _am_result=GNU
2956  ;;
2957esac
2958# Now try BSD make style include.
2959if test "$am__include" = "#"; then
2960   echo '.include "confinc"' > confmf
2961   case `$am_make -s -f confmf 2> /dev/null` in #(
2962   *the\ am__doit\ target*)
2963     am__include=.include
2964     am__quote="\""
2965     _am_result=BSD
2966     ;;
2967   esac
2968fi
2969
2970
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2972$as_echo "$_am_result" >&6; }
2973rm -f confinc confmf
2974
2975# Check whether --enable-dependency-tracking was given.
2976if test "${enable_dependency_tracking+set}" = set; then :
2977  enableval=$enable_dependency_tracking;
2978fi
2979
2980if test "x$enable_dependency_tracking" != xno; then
2981  am_depcomp="$ac_aux_dir/depcomp"
2982  AMDEPBACKSLASH='\'
2983fi
2984 if test "x$enable_dependency_tracking" != xno; then
2985  AMDEP_TRUE=
2986  AMDEP_FALSE='#'
2987else
2988  AMDEP_TRUE='#'
2989  AMDEP_FALSE=
2990fi
2991
2992
2993ac_ext=c
2994ac_cpp='$CPP $CPPFLAGS'
2995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998if test -n "$ac_tool_prefix"; then
2999  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3000set dummy ${ac_tool_prefix}gcc; ac_word=$2
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002$as_echo_n "checking for $ac_word... " >&6; }
3003if test "${ac_cv_prog_CC+set}" = set; then :
3004  $as_echo_n "(cached) " >&6
3005else
3006  if test -n "$CC"; then
3007  ac_cv_prog_CC="$CC" # Let the user override the test.
3008else
3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010for as_dir in $PATH
3011do
3012  IFS=$as_save_IFS
3013  test -z "$as_dir" && as_dir=.
3014    for ac_exec_ext in '' $ac_executable_extensions; do
3015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018    break 2
3019  fi
3020done
3021  done
3022IFS=$as_save_IFS
3023
3024fi
3025fi
3026CC=$ac_cv_prog_CC
3027if test -n "$CC"; then
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029$as_echo "$CC" >&6; }
3030else
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032$as_echo "no" >&6; }
3033fi
3034
3035
3036fi
3037if test -z "$ac_cv_prog_CC"; then
3038  ac_ct_CC=$CC
3039  # Extract the first word of "gcc", so it can be a program name with args.
3040set dummy gcc; ac_word=$2
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042$as_echo_n "checking for $ac_word... " >&6; }
3043if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3044  $as_echo_n "(cached) " >&6
3045else
3046  if test -n "$ac_ct_CC"; then
3047  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3048else
3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052  IFS=$as_save_IFS
3053  test -z "$as_dir" && as_dir=.
3054    for ac_exec_ext in '' $ac_executable_extensions; do
3055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056    ac_cv_prog_ac_ct_CC="gcc"
3057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058    break 2
3059  fi
3060done
3061  done
3062IFS=$as_save_IFS
3063
3064fi
3065fi
3066ac_ct_CC=$ac_cv_prog_ac_ct_CC
3067if test -n "$ac_ct_CC"; then
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3069$as_echo "$ac_ct_CC" >&6; }
3070else
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072$as_echo "no" >&6; }
3073fi
3074
3075  if test "x$ac_ct_CC" = x; then
3076    CC=""
3077  else
3078    case $cross_compiling:$ac_tool_warned in
3079yes:)
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082ac_tool_warned=yes ;;
3083esac
3084    CC=$ac_ct_CC
3085  fi
3086else
3087  CC="$ac_cv_prog_CC"
3088fi
3089
3090if test -z "$CC"; then
3091          if test -n "$ac_tool_prefix"; then
3092    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3093set dummy ${ac_tool_prefix}cc; ac_word=$2
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095$as_echo_n "checking for $ac_word... " >&6; }
3096if test "${ac_cv_prog_CC+set}" = set; then :
3097  $as_echo_n "(cached) " >&6
3098else
3099  if test -n "$CC"; then
3100  ac_cv_prog_CC="$CC" # Let the user override the test.
3101else
3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103for as_dir in $PATH
3104do
3105  IFS=$as_save_IFS
3106  test -z "$as_dir" && as_dir=.
3107    for ac_exec_ext in '' $ac_executable_extensions; do
3108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109    ac_cv_prog_CC="${ac_tool_prefix}cc"
3110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111    break 2
3112  fi
3113done
3114  done
3115IFS=$as_save_IFS
3116
3117fi
3118fi
3119CC=$ac_cv_prog_CC
3120if test -n "$CC"; then
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3122$as_echo "$CC" >&6; }
3123else
3124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125$as_echo "no" >&6; }
3126fi
3127
3128
3129  fi
3130fi
3131if test -z "$CC"; then
3132  # Extract the first word of "cc", so it can be a program name with args.
3133set dummy cc; ac_word=$2
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135$as_echo_n "checking for $ac_word... " >&6; }
3136if test "${ac_cv_prog_CC+set}" = set; then :
3137  $as_echo_n "(cached) " >&6
3138else
3139  if test -n "$CC"; then
3140  ac_cv_prog_CC="$CC" # Let the user override the test.
3141else
3142  ac_prog_rejected=no
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146  IFS=$as_save_IFS
3147  test -z "$as_dir" && as_dir=.
3148    for ac_exec_ext in '' $ac_executable_extensions; do
3149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3151       ac_prog_rejected=yes
3152       continue
3153     fi
3154    ac_cv_prog_CC="cc"
3155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156    break 2
3157  fi
3158done
3159  done
3160IFS=$as_save_IFS
3161
3162if test $ac_prog_rejected = yes; then
3163  # We found a bogon in the path, so make sure we never use it.
3164  set dummy $ac_cv_prog_CC
3165  shift
3166  if test $# != 0; then
3167    # We chose a different compiler from the bogus one.
3168    # However, it has the same basename, so the bogon will be chosen
3169    # first if we set CC to just the basename; use the full file name.
3170    shift
3171    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3172  fi
3173fi
3174fi
3175fi
3176CC=$ac_cv_prog_CC
3177if test -n "$CC"; then
3178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179$as_echo "$CC" >&6; }
3180else
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182$as_echo "no" >&6; }
3183fi
3184
3185
3186fi
3187if test -z "$CC"; then
3188  if test -n "$ac_tool_prefix"; then
3189  for ac_prog in cl.exe
3190  do
3191    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3192set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194$as_echo_n "checking for $ac_word... " >&6; }
3195if test "${ac_cv_prog_CC+set}" = set; then :
3196  $as_echo_n "(cached) " >&6
3197else
3198  if test -n "$CC"; then
3199  ac_cv_prog_CC="$CC" # Let the user override the test.
3200else
3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH
3203do
3204  IFS=$as_save_IFS
3205  test -z "$as_dir" && as_dir=.
3206    for ac_exec_ext in '' $ac_executable_extensions; do
3207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210    break 2
3211  fi
3212done
3213  done
3214IFS=$as_save_IFS
3215
3216fi
3217fi
3218CC=$ac_cv_prog_CC
3219if test -n "$CC"; then
3220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3221$as_echo "$CC" >&6; }
3222else
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224$as_echo "no" >&6; }
3225fi
3226
3227
3228    test -n "$CC" && break
3229  done
3230fi
3231if test -z "$CC"; then
3232  ac_ct_CC=$CC
3233  for ac_prog in cl.exe
3234do
3235  # Extract the first word of "$ac_prog", so it can be a program name with args.
3236set dummy $ac_prog; ac_word=$2
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238$as_echo_n "checking for $ac_word... " >&6; }
3239if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3240  $as_echo_n "(cached) " >&6
3241else
3242  if test -n "$ac_ct_CC"; then
3243  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3244else
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248  IFS=$as_save_IFS
3249  test -z "$as_dir" && as_dir=.
3250    for ac_exec_ext in '' $ac_executable_extensions; do
3251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252    ac_cv_prog_ac_ct_CC="$ac_prog"
3253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254    break 2
3255  fi
3256done
3257  done
3258IFS=$as_save_IFS
3259
3260fi
3261fi
3262ac_ct_CC=$ac_cv_prog_ac_ct_CC
3263if test -n "$ac_ct_CC"; then
3264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3265$as_echo "$ac_ct_CC" >&6; }
3266else
3267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268$as_echo "no" >&6; }
3269fi
3270
3271
3272  test -n "$ac_ct_CC" && break
3273done
3274
3275  if test "x$ac_ct_CC" = x; then
3276    CC=""
3277  else
3278    case $cross_compiling:$ac_tool_warned in
3279yes:)
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3282ac_tool_warned=yes ;;
3283esac
3284    CC=$ac_ct_CC
3285  fi
3286fi
3287
3288fi
3289
3290
3291test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293as_fn_error $? "no acceptable C compiler found in \$PATH
3294See \`config.log' for more details" "$LINENO" 5 ; }
3295
3296# Provide some information about the compiler.
3297$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3298set X $ac_compile
3299ac_compiler=$2
3300for ac_option in --version -v -V -qversion; do
3301  { { ac_try="$ac_compiler $ac_option >&5"
3302case "(($ac_try" in
3303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304  *) ac_try_echo=$ac_try;;
3305esac
3306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307$as_echo "$ac_try_echo"; } >&5
3308  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3309  ac_status=$?
3310  if test -s conftest.err; then
3311    sed '10a\
3312... rest of stderr output deleted ...
3313         10q' conftest.err >conftest.er1
3314    cat conftest.er1 >&5
3315  fi
3316  rm -f conftest.er1 conftest.err
3317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318  test $ac_status = 0; }
3319done
3320
3321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322/* end confdefs.h.  */
3323
3324int
3325main ()
3326{
3327
3328  ;
3329  return 0;
3330}
3331_ACEOF
3332ac_clean_files_save=$ac_clean_files
3333ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3334# Try to create an executable without -o first, disregard a.out.
3335# It will help us diagnose broken compilers, and finding out an intuition
3336# of exeext.
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3338$as_echo_n "checking whether the C compiler works... " >&6; }
3339ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3340
3341# The possible output files:
3342ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3343
3344ac_rmfiles=
3345for ac_file in $ac_files
3346do
3347  case $ac_file in
3348    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3349    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3350  esac
3351done
3352rm -f $ac_rmfiles
3353
3354if { { ac_try="$ac_link_default"
3355case "(($ac_try" in
3356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357  *) ac_try_echo=$ac_try;;
3358esac
3359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360$as_echo "$ac_try_echo"; } >&5
3361  (eval "$ac_link_default") 2>&5
3362  ac_status=$?
3363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364  test $ac_status = 0; }; then :
3365  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3366# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3367# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3368# so that the user can short-circuit this test for compilers unknown to
3369# Autoconf.
3370for ac_file in $ac_files ''
3371do
3372  test -f "$ac_file" || continue
3373  case $ac_file in
3374    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3375	;;
3376    [ab].out )
3377	# We found the default executable, but exeext='' is most
3378	# certainly right.
3379	break;;
3380    *.* )
3381	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3382	then :; else
3383	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384	fi
3385	# We set ac_cv_exeext here because the later test for it is not
3386	# safe: cross compilers may not add the suffix if given an `-o'
3387	# argument, so we may need to know it at that point already.
3388	# Even if this section looks crufty: it has the advantage of
3389	# actually working.
3390	break;;
3391    * )
3392	break;;
3393  esac
3394done
3395test "$ac_cv_exeext" = no && ac_cv_exeext=
3396
3397else
3398  ac_file=''
3399fi
3400if test -z "$ac_file"; then :
3401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402$as_echo "no" >&6; }
3403$as_echo "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
3406{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408as_fn_error 77 "C compiler cannot create executables
3409See \`config.log' for more details" "$LINENO" 5 ; }
3410else
3411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3412$as_echo "yes" >&6; }
3413fi
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3415$as_echo_n "checking for C compiler default output file name... " >&6; }
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3417$as_echo "$ac_file" >&6; }
3418ac_exeext=$ac_cv_exeext
3419
3420rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421ac_clean_files=$ac_clean_files_save
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3423$as_echo_n "checking for suffix of executables... " >&6; }
3424if { { ac_try="$ac_link"
3425case "(($ac_try" in
3426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427  *) ac_try_echo=$ac_try;;
3428esac
3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430$as_echo "$ac_try_echo"; } >&5
3431  (eval "$ac_link") 2>&5
3432  ac_status=$?
3433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434  test $ac_status = 0; }; then :
3435  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3436# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3437# work properly (i.e., refer to `conftest.exe'), while it won't with
3438# `rm'.
3439for ac_file in conftest.exe conftest conftest.*; do
3440  test -f "$ac_file" || continue
3441  case $ac_file in
3442    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444	  break;;
3445    * ) break;;
3446  esac
3447done
3448else
3449  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3452See \`config.log' for more details" "$LINENO" 5 ; }
3453fi
3454rm -f conftest conftest$ac_cv_exeext
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3456$as_echo "$ac_cv_exeext" >&6; }
3457
3458rm -f conftest.$ac_ext
3459EXEEXT=$ac_cv_exeext
3460ac_exeext=$EXEEXT
3461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h.  */
3463#include <stdio.h>
3464int
3465main ()
3466{
3467FILE *f = fopen ("conftest.out", "w");
3468 return ferror (f) || fclose (f) != 0;
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474ac_clean_files="$ac_clean_files conftest.out"
3475# Check that the compiler produces executables we can run.  If not, either
3476# the compiler is broken, or we cross compile.
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3478$as_echo_n "checking whether we are cross compiling... " >&6; }
3479if test "$cross_compiling" != yes; then
3480  { { ac_try="$ac_link"
3481case "(($ac_try" in
3482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483  *) ac_try_echo=$ac_try;;
3484esac
3485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486$as_echo "$ac_try_echo"; } >&5
3487  (eval "$ac_link") 2>&5
3488  ac_status=$?
3489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490  test $ac_status = 0; }
3491  if { ac_try='./conftest$ac_cv_exeext'
3492  { { case "(($ac_try" in
3493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494  *) ac_try_echo=$ac_try;;
3495esac
3496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497$as_echo "$ac_try_echo"; } >&5
3498  (eval "$ac_try") 2>&5
3499  ac_status=$?
3500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501  test $ac_status = 0; }; }; then
3502    cross_compiling=no
3503  else
3504    if test "$cross_compiling" = maybe; then
3505	cross_compiling=yes
3506    else
3507	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509as_fn_error $? "cannot run C compiled programs.
3510If you meant to cross compile, use \`--host'.
3511See \`config.log' for more details" "$LINENO" 5 ; }
3512    fi
3513  fi
3514fi
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3516$as_echo "$cross_compiling" >&6; }
3517
3518rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3519ac_clean_files=$ac_clean_files_save
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3521$as_echo_n "checking for suffix of object files... " >&6; }
3522if test "${ac_cv_objext+set}" = set; then :
3523  $as_echo_n "(cached) " >&6
3524else
3525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526/* end confdefs.h.  */
3527
3528int
3529main ()
3530{
3531
3532  ;
3533  return 0;
3534}
3535_ACEOF
3536rm -f conftest.o conftest.obj
3537if { { ac_try="$ac_compile"
3538case "(($ac_try" in
3539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540  *) ac_try_echo=$ac_try;;
3541esac
3542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543$as_echo "$ac_try_echo"; } >&5
3544  (eval "$ac_compile") 2>&5
3545  ac_status=$?
3546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547  test $ac_status = 0; }; then :
3548  for ac_file in conftest.o conftest.obj conftest.*; do
3549  test -f "$ac_file" || continue;
3550  case $ac_file in
3551    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3552    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3553       break;;
3554  esac
3555done
3556else
3557  $as_echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
3559
3560{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562as_fn_error $? "cannot compute suffix of object files: cannot compile
3563See \`config.log' for more details" "$LINENO" 5 ; }
3564fi
3565rm -f conftest.$ac_cv_objext conftest.$ac_ext
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3568$as_echo "$ac_cv_objext" >&6; }
3569OBJEXT=$ac_cv_objext
3570ac_objext=$OBJEXT
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3572$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3573if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3574  $as_echo_n "(cached) " >&6
3575else
3576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h.  */
3578
3579int
3580main ()
3581{
3582#ifndef __GNUC__
3583       choke me
3584#endif
3585
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590if ac_fn_c_try_compile "$LINENO"; then :
3591  ac_compiler_gnu=yes
3592else
3593  ac_compiler_gnu=no
3594fi
3595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596ac_cv_c_compiler_gnu=$ac_compiler_gnu
3597
3598fi
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3600$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3601if test $ac_compiler_gnu = yes; then
3602  GCC=yes
3603else
3604  GCC=
3605fi
3606ac_test_CFLAGS=${CFLAGS+set}
3607ac_save_CFLAGS=$CFLAGS
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3609$as_echo_n "checking whether $CC accepts -g... " >&6; }
3610if test "${ac_cv_prog_cc_g+set}" = set; then :
3611  $as_echo_n "(cached) " >&6
3612else
3613  ac_save_c_werror_flag=$ac_c_werror_flag
3614   ac_c_werror_flag=yes
3615   ac_cv_prog_cc_g=no
3616   CFLAGS="-g"
3617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618/* end confdefs.h.  */
3619
3620int
3621main ()
3622{
3623
3624  ;
3625  return 0;
3626}
3627_ACEOF
3628if ac_fn_c_try_compile "$LINENO"; then :
3629  ac_cv_prog_cc_g=yes
3630else
3631  CFLAGS=""
3632      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h.  */
3634
3635int
3636main ()
3637{
3638
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643if ac_fn_c_try_compile "$LINENO"; then :
3644
3645else
3646  ac_c_werror_flag=$ac_save_c_werror_flag
3647	 CFLAGS="-g"
3648	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
3654
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659if ac_fn_c_try_compile "$LINENO"; then :
3660  ac_cv_prog_cc_g=yes
3661fi
3662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663fi
3664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665fi
3666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667   ac_c_werror_flag=$ac_save_c_werror_flag
3668fi
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3670$as_echo "$ac_cv_prog_cc_g" >&6; }
3671if test "$ac_test_CFLAGS" = set; then
3672  CFLAGS=$ac_save_CFLAGS
3673elif test $ac_cv_prog_cc_g = yes; then
3674  if test "$GCC" = yes; then
3675    CFLAGS="-g -O2"
3676  else
3677    CFLAGS="-g"
3678  fi
3679else
3680  if test "$GCC" = yes; then
3681    CFLAGS="-O2"
3682  else
3683    CFLAGS=
3684  fi
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3687$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3688if test "${ac_cv_prog_cc_c89+set}" = set; then :
3689  $as_echo_n "(cached) " >&6
3690else
3691  ac_cv_prog_cc_c89=no
3692ac_save_CC=$CC
3693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h.  */
3695#include <stdarg.h>
3696#include <stdio.h>
3697#include <sys/types.h>
3698#include <sys/stat.h>
3699/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3700struct buf { int x; };
3701FILE * (*rcsopen) (struct buf *, struct stat *, int);
3702static char *e (p, i)
3703     char **p;
3704     int i;
3705{
3706  return p[i];
3707}
3708static char *f (char * (*g) (char **, int), char **p, ...)
3709{
3710  char *s;
3711  va_list v;
3712  va_start (v,p);
3713  s = g (p, va_arg (v,int));
3714  va_end (v);
3715  return s;
3716}
3717
3718/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3719   function prototypes and stuff, but not '\xHH' hex character constants.
3720   These don't provoke an error unfortunately, instead are silently treated
3721   as 'x'.  The following induces an error, until -std is added to get
3722   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3723   array size at least.  It's necessary to write '\x00'==0 to get something
3724   that's true only with -std.  */
3725int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3726
3727/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3728   inside strings and character constants.  */
3729#define FOO(x) 'x'
3730int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3731
3732int test (int i, double x);
3733struct s1 {int (*f) (int a);};
3734struct s2 {int (*f) (double a);};
3735int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3736int argc;
3737char **argv;
3738int
3739main ()
3740{
3741return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3747	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3748do
3749  CC="$ac_save_CC $ac_arg"
3750  if ac_fn_c_try_compile "$LINENO"; then :
3751  ac_cv_prog_cc_c89=$ac_arg
3752fi
3753rm -f core conftest.err conftest.$ac_objext
3754  test "x$ac_cv_prog_cc_c89" != "xno" && break
3755done
3756rm -f conftest.$ac_ext
3757CC=$ac_save_CC
3758
3759fi
3760# AC_CACHE_VAL
3761case "x$ac_cv_prog_cc_c89" in
3762  x)
3763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3764$as_echo "none needed" >&6; } ;;
3765  xno)
3766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3767$as_echo "unsupported" >&6; } ;;
3768  *)
3769    CC="$CC $ac_cv_prog_cc_c89"
3770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3771$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3772esac
3773if test "x$ac_cv_prog_cc_c89" != xno; then :
3774
3775fi
3776
3777ac_ext=c
3778ac_cpp='$CPP $CPPFLAGS'
3779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783depcc="$CC"   am_compiler_list=
3784
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3786$as_echo_n "checking dependency style of $depcc... " >&6; }
3787if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3788  $as_echo_n "(cached) " >&6
3789else
3790  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3791  # We make a subdir and do the tests there.  Otherwise we can end up
3792  # making bogus files that we don't know about and never remove.  For
3793  # instance it was reported that on HP-UX the gcc test will end up
3794  # making a dummy file named `D' -- because `-MD' means `put the output
3795  # in D'.
3796  mkdir conftest.dir
3797  # Copy depcomp to subdir because otherwise we won't find it if we're
3798  # using a relative directory.
3799  cp "$am_depcomp" conftest.dir
3800  cd conftest.dir
3801  # We will build objects and dependencies in a subdirectory because
3802  # it helps to detect inapplicable dependency modes.  For instance
3803  # both Tru64's cc and ICC support -MD to output dependencies as a
3804  # side effect of compilation, but ICC will put the dependencies in
3805  # the current directory while Tru64 will put them in the object
3806  # directory.
3807  mkdir sub
3808
3809  am_cv_CC_dependencies_compiler_type=none
3810  if test "$am_compiler_list" = ""; then
3811     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3812  fi
3813  am__universal=false
3814  case " $depcc " in #(
3815     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3816     esac
3817
3818  for depmode in $am_compiler_list; do
3819    # Setup a source with many dependencies, because some compilers
3820    # like to wrap large dependency lists on column 80 (with \), and
3821    # we should not choose a depcomp mode which is confused by this.
3822    #
3823    # We need to recreate these files for each test, as the compiler may
3824    # overwrite some of them when testing with obscure command lines.
3825    # This happens at least with the AIX C compiler.
3826    : > sub/conftest.c
3827    for i in 1 2 3 4 5 6; do
3828      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3829      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3830      # Solaris 8's {/usr,}/bin/sh.
3831      touch sub/conftst$i.h
3832    done
3833    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3834
3835    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3836    # mode.  It turns out that the SunPro C++ compiler does not properly
3837    # handle `-M -o', and we need to detect this.  Also, some Intel
3838    # versions had trouble with output in subdirs
3839    am__obj=sub/conftest.${OBJEXT-o}
3840    am__minus_obj="-o $am__obj"
3841    case $depmode in
3842    gcc)
3843      # This depmode causes a compiler race in universal mode.
3844      test "$am__universal" = false || continue
3845      ;;
3846    nosideeffect)
3847      # after this tag, mechanisms are not by side-effect, so they'll
3848      # only be used when explicitly requested
3849      if test "x$enable_dependency_tracking" = xyes; then
3850	continue
3851      else
3852	break
3853      fi
3854      ;;
3855    msvisualcpp | msvcmsys)
3856      # This compiler won't grok `-c -o', but also, the minuso test has
3857      # not run yet.  These depmodes are late enough in the game, and
3858      # so weak that their functioning should not be impacted.
3859      am__obj=conftest.${OBJEXT-o}
3860      am__minus_obj=
3861      ;;
3862    none) break ;;
3863    esac
3864    if depmode=$depmode \
3865       source=sub/conftest.c object=$am__obj \
3866       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3867       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3868         >/dev/null 2>conftest.err &&
3869       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3870       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3871       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3872       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3873      # icc doesn't choke on unknown options, it will just issue warnings
3874      # or remarks (even with -Werror).  So we grep stderr for any message
3875      # that says an option was ignored or not supported.
3876      # When given -MP, icc 7.0 and 7.1 complain thusly:
3877      #   icc: Command line warning: ignoring option '-M'; no argument required
3878      # The diagnosis changed in icc 8.0:
3879      #   icc: Command line remark: option '-MP' not supported
3880      if (grep 'ignoring option' conftest.err ||
3881          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3882        am_cv_CC_dependencies_compiler_type=$depmode
3883        break
3884      fi
3885    fi
3886  done
3887
3888  cd ..
3889  rm -rf conftest.dir
3890else
3891  am_cv_CC_dependencies_compiler_type=none
3892fi
3893
3894fi
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3896$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3897CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3898
3899 if
3900  test "x$enable_dependency_tracking" != xno \
3901  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3902  am__fastdepCC_TRUE=
3903  am__fastdepCC_FALSE='#'
3904else
3905  am__fastdepCC_TRUE='#'
3906  am__fastdepCC_FALSE=
3907fi
3908
3909
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3911$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3912if test "${ac_cv_path_SED+set}" = set; then :
3913  $as_echo_n "(cached) " >&6
3914else
3915            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3916     for ac_i in 1 2 3 4 5 6 7; do
3917       ac_script="$ac_script$as_nl$ac_script"
3918     done
3919     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3920     { ac_script=; unset ac_script;}
3921     if test -z "$SED"; then
3922  ac_path_SED_found=false
3923  # Loop through the user's path and test for each of PROGNAME-LIST
3924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
3926do
3927  IFS=$as_save_IFS
3928  test -z "$as_dir" && as_dir=.
3929    for ac_prog in sed gsed; do
3930    for ac_exec_ext in '' $ac_executable_extensions; do
3931      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3932      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3933# Check for GNU ac_path_SED and select it if it is found.
3934  # Check for GNU $ac_path_SED
3935case `"$ac_path_SED" --version 2>&1` in
3936*GNU*)
3937  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3938*)
3939  ac_count=0
3940  $as_echo_n 0123456789 >"conftest.in"
3941  while :
3942  do
3943    cat "conftest.in" "conftest.in" >"conftest.tmp"
3944    mv "conftest.tmp" "conftest.in"
3945    cp "conftest.in" "conftest.nl"
3946    $as_echo '' >> "conftest.nl"
3947    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949    as_fn_arith $ac_count + 1 && ac_count=$as_val
3950    if test $ac_count -gt ${ac_path_SED_max-0}; then
3951      # Best one so far, save it but keep looking for a better one
3952      ac_cv_path_SED="$ac_path_SED"
3953      ac_path_SED_max=$ac_count
3954    fi
3955    # 10*(2^10) chars as input seems more than enough
3956    test $ac_count -gt 10 && break
3957  done
3958  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959esac
3960
3961      $ac_path_SED_found && break 3
3962    done
3963  done
3964  done
3965IFS=$as_save_IFS
3966  if test -z "$ac_cv_path_SED"; then
3967    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3968  fi
3969else
3970  ac_cv_path_SED=$SED
3971fi
3972
3973fi
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3975$as_echo "$ac_cv_path_SED" >&6; }
3976 SED="$ac_cv_path_SED"
3977  rm -f conftest.sed
3978
3979test -z "$SED" && SED=sed
3980Xsed="$SED -e 1s/^X//"
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3993$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3994if test "${ac_cv_path_GREP+set}" = set; then :
3995  $as_echo_n "(cached) " >&6
3996else
3997  if test -z "$GREP"; then
3998  ac_path_GREP_found=false
3999  # Loop through the user's path and test for each of PROGNAME-LIST
4000  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4002do
4003  IFS=$as_save_IFS
4004  test -z "$as_dir" && as_dir=.
4005    for ac_prog in grep ggrep; do
4006    for ac_exec_ext in '' $ac_executable_extensions; do
4007      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4008      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4009# Check for GNU ac_path_GREP and select it if it is found.
4010  # Check for GNU $ac_path_GREP
4011case `"$ac_path_GREP" --version 2>&1` in
4012*GNU*)
4013  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4014*)
4015  ac_count=0
4016  $as_echo_n 0123456789 >"conftest.in"
4017  while :
4018  do
4019    cat "conftest.in" "conftest.in" >"conftest.tmp"
4020    mv "conftest.tmp" "conftest.in"
4021    cp "conftest.in" "conftest.nl"
4022    $as_echo 'GREP' >> "conftest.nl"
4023    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4024    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4025    as_fn_arith $ac_count + 1 && ac_count=$as_val
4026    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4027      # Best one so far, save it but keep looking for a better one
4028      ac_cv_path_GREP="$ac_path_GREP"
4029      ac_path_GREP_max=$ac_count
4030    fi
4031    # 10*(2^10) chars as input seems more than enough
4032    test $ac_count -gt 10 && break
4033  done
4034  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4035esac
4036
4037      $ac_path_GREP_found && break 3
4038    done
4039  done
4040  done
4041IFS=$as_save_IFS
4042  if test -z "$ac_cv_path_GREP"; then
4043    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4044  fi
4045else
4046  ac_cv_path_GREP=$GREP
4047fi
4048
4049fi
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4051$as_echo "$ac_cv_path_GREP" >&6; }
4052 GREP="$ac_cv_path_GREP"
4053
4054
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4056$as_echo_n "checking for egrep... " >&6; }
4057if test "${ac_cv_path_EGREP+set}" = set; then :
4058  $as_echo_n "(cached) " >&6
4059else
4060  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061   then ac_cv_path_EGREP="$GREP -E"
4062   else
4063     if test -z "$EGREP"; then
4064  ac_path_EGREP_found=false
4065  # Loop through the user's path and test for each of PROGNAME-LIST
4066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068do
4069  IFS=$as_save_IFS
4070  test -z "$as_dir" && as_dir=.
4071    for ac_prog in egrep; do
4072    for ac_exec_ext in '' $ac_executable_extensions; do
4073      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4074      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4075# Check for GNU ac_path_EGREP and select it if it is found.
4076  # Check for GNU $ac_path_EGREP
4077case `"$ac_path_EGREP" --version 2>&1` in
4078*GNU*)
4079  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4080*)
4081  ac_count=0
4082  $as_echo_n 0123456789 >"conftest.in"
4083  while :
4084  do
4085    cat "conftest.in" "conftest.in" >"conftest.tmp"
4086    mv "conftest.tmp" "conftest.in"
4087    cp "conftest.in" "conftest.nl"
4088    $as_echo 'EGREP' >> "conftest.nl"
4089    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091    as_fn_arith $ac_count + 1 && ac_count=$as_val
4092    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4093      # Best one so far, save it but keep looking for a better one
4094      ac_cv_path_EGREP="$ac_path_EGREP"
4095      ac_path_EGREP_max=$ac_count
4096    fi
4097    # 10*(2^10) chars as input seems more than enough
4098    test $ac_count -gt 10 && break
4099  done
4100  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101esac
4102
4103      $ac_path_EGREP_found && break 3
4104    done
4105  done
4106  done
4107IFS=$as_save_IFS
4108  if test -z "$ac_cv_path_EGREP"; then
4109    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4110  fi
4111else
4112  ac_cv_path_EGREP=$EGREP
4113fi
4114
4115   fi
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4118$as_echo "$ac_cv_path_EGREP" >&6; }
4119 EGREP="$ac_cv_path_EGREP"
4120
4121
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4123$as_echo_n "checking for fgrep... " >&6; }
4124if test "${ac_cv_path_FGREP+set}" = set; then :
4125  $as_echo_n "(cached) " >&6
4126else
4127  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4128   then ac_cv_path_FGREP="$GREP -F"
4129   else
4130     if test -z "$FGREP"; then
4131  ac_path_FGREP_found=false
4132  # Loop through the user's path and test for each of PROGNAME-LIST
4133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4135do
4136  IFS=$as_save_IFS
4137  test -z "$as_dir" && as_dir=.
4138    for ac_prog in fgrep; do
4139    for ac_exec_ext in '' $ac_executable_extensions; do
4140      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4141      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4142# Check for GNU ac_path_FGREP and select it if it is found.
4143  # Check for GNU $ac_path_FGREP
4144case `"$ac_path_FGREP" --version 2>&1` in
4145*GNU*)
4146  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4147*)
4148  ac_count=0
4149  $as_echo_n 0123456789 >"conftest.in"
4150  while :
4151  do
4152    cat "conftest.in" "conftest.in" >"conftest.tmp"
4153    mv "conftest.tmp" "conftest.in"
4154    cp "conftest.in" "conftest.nl"
4155    $as_echo 'FGREP' >> "conftest.nl"
4156    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158    as_fn_arith $ac_count + 1 && ac_count=$as_val
4159    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4160      # Best one so far, save it but keep looking for a better one
4161      ac_cv_path_FGREP="$ac_path_FGREP"
4162      ac_path_FGREP_max=$ac_count
4163    fi
4164    # 10*(2^10) chars as input seems more than enough
4165    test $ac_count -gt 10 && break
4166  done
4167  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4168esac
4169
4170      $ac_path_FGREP_found && break 3
4171    done
4172  done
4173  done
4174IFS=$as_save_IFS
4175  if test -z "$ac_cv_path_FGREP"; then
4176    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4177  fi
4178else
4179  ac_cv_path_FGREP=$FGREP
4180fi
4181
4182   fi
4183fi
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4185$as_echo "$ac_cv_path_FGREP" >&6; }
4186 FGREP="$ac_cv_path_FGREP"
4187
4188
4189test -z "$GREP" && GREP=grep
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209# Check whether --with-gnu-ld was given.
4210if test "${with_gnu_ld+set}" = set; then :
4211  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4212else
4213  with_gnu_ld=no
4214fi
4215
4216ac_prog=ld
4217if test "$GCC" = yes; then
4218  # Check if gcc -print-prog-name=ld gives a path.
4219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4220$as_echo_n "checking for ld used by $CC... " >&6; }
4221  case $host in
4222  *-*-mingw*)
4223    # gcc leaves a trailing carriage return which upsets mingw
4224    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4225  *)
4226    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4227  esac
4228  case $ac_prog in
4229    # Accept absolute paths.
4230    [\\/]* | ?:[\\/]*)
4231      re_direlt='/[^/][^/]*/\.\./'
4232      # Canonicalize the pathname of ld
4233      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4234      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4235	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4236      done
4237      test -z "$LD" && LD="$ac_prog"
4238      ;;
4239  "")
4240    # If it fails, then pretend we aren't using GCC.
4241    ac_prog=ld
4242    ;;
4243  *)
4244    # If it is relative, then search for the first ld in PATH.
4245    with_gnu_ld=unknown
4246    ;;
4247  esac
4248elif test "$with_gnu_ld" = yes; then
4249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4250$as_echo_n "checking for GNU ld... " >&6; }
4251else
4252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4253$as_echo_n "checking for non-GNU ld... " >&6; }
4254fi
4255if test "${lt_cv_path_LD+set}" = set; then :
4256  $as_echo_n "(cached) " >&6
4257else
4258  if test -z "$LD"; then
4259  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4260  for ac_dir in $PATH; do
4261    IFS="$lt_save_ifs"
4262    test -z "$ac_dir" && ac_dir=.
4263    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4264      lt_cv_path_LD="$ac_dir/$ac_prog"
4265      # Check to see if the program is GNU ld.  I'd rather use --version,
4266      # but apparently some variants of GNU ld only accept -v.
4267      # Break only if it was the GNU/non-GNU ld that we prefer.
4268      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4269      *GNU* | *'with BFD'*)
4270	test "$with_gnu_ld" != no && break
4271	;;
4272      *)
4273	test "$with_gnu_ld" != yes && break
4274	;;
4275      esac
4276    fi
4277  done
4278  IFS="$lt_save_ifs"
4279else
4280  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4281fi
4282fi
4283
4284LD="$lt_cv_path_LD"
4285if test -n "$LD"; then
4286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4287$as_echo "$LD" >&6; }
4288else
4289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
4291fi
4292test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4294$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4295if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4296  $as_echo_n "(cached) " >&6
4297else
4298  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4299case `$LD -v 2>&1 </dev/null` in
4300*GNU* | *'with BFD'*)
4301  lt_cv_prog_gnu_ld=yes
4302  ;;
4303*)
4304  lt_cv_prog_gnu_ld=no
4305  ;;
4306esac
4307fi
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4309$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4310with_gnu_ld=$lt_cv_prog_gnu_ld
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4321$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4322if test "${lt_cv_path_NM+set}" = set; then :
4323  $as_echo_n "(cached) " >&6
4324else
4325  if test -n "$NM"; then
4326  # Let the user override the test.
4327  lt_cv_path_NM="$NM"
4328else
4329  lt_nm_to_check="${ac_tool_prefix}nm"
4330  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4331    lt_nm_to_check="$lt_nm_to_check nm"
4332  fi
4333  for lt_tmp_nm in $lt_nm_to_check; do
4334    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4335    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4336      IFS="$lt_save_ifs"
4337      test -z "$ac_dir" && ac_dir=.
4338      tmp_nm="$ac_dir/$lt_tmp_nm"
4339      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4340	# Check to see if the nm accepts a BSD-compat flag.
4341	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4342	#   nm: unknown option "B" ignored
4343	# Tru64's nm complains that /dev/null is an invalid object file
4344	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4345	*/dev/null* | *'Invalid file or object type'*)
4346	  lt_cv_path_NM="$tmp_nm -B"
4347	  break
4348	  ;;
4349	*)
4350	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4351	  */dev/null*)
4352	    lt_cv_path_NM="$tmp_nm -p"
4353	    break
4354	    ;;
4355	  *)
4356	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4357	    continue # so that we can try to find one that supports BSD flags
4358	    ;;
4359	  esac
4360	  ;;
4361	esac
4362      fi
4363    done
4364    IFS="$lt_save_ifs"
4365  done
4366  : ${lt_cv_path_NM=no}
4367fi
4368fi
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4370$as_echo "$lt_cv_path_NM" >&6; }
4371if test "$lt_cv_path_NM" != "no"; then
4372  NM="$lt_cv_path_NM"
4373else
4374  # Didn't find any BSD compatible name lister, look for dumpbin.
4375  if test -n "$ac_tool_prefix"; then
4376  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4377  do
4378    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4379set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4381$as_echo_n "checking for $ac_word... " >&6; }
4382if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385  if test -n "$DUMPBIN"; then
4386  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4387else
4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391  IFS=$as_save_IFS
4392  test -z "$as_dir" && as_dir=.
4393    for ac_exec_ext in '' $ac_executable_extensions; do
4394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397    break 2
4398  fi
4399done
4400  done
4401IFS=$as_save_IFS
4402
4403fi
4404fi
4405DUMPBIN=$ac_cv_prog_DUMPBIN
4406if test -n "$DUMPBIN"; then
4407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4408$as_echo "$DUMPBIN" >&6; }
4409else
4410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411$as_echo "no" >&6; }
4412fi
4413
4414
4415    test -n "$DUMPBIN" && break
4416  done
4417fi
4418if test -z "$DUMPBIN"; then
4419  ac_ct_DUMPBIN=$DUMPBIN
4420  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4421do
4422  # Extract the first word of "$ac_prog", so it can be a program name with args.
4423set dummy $ac_prog; ac_word=$2
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425$as_echo_n "checking for $ac_word... " >&6; }
4426if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4427  $as_echo_n "(cached) " >&6
4428else
4429  if test -n "$ac_ct_DUMPBIN"; then
4430  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435  IFS=$as_save_IFS
4436  test -z "$as_dir" && as_dir=.
4437    for ac_exec_ext in '' $ac_executable_extensions; do
4438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441    break 2
4442  fi
4443done
4444  done
4445IFS=$as_save_IFS
4446
4447fi
4448fi
4449ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4450if test -n "$ac_ct_DUMPBIN"; then
4451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4452$as_echo "$ac_ct_DUMPBIN" >&6; }
4453else
4454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455$as_echo "no" >&6; }
4456fi
4457
4458
4459  test -n "$ac_ct_DUMPBIN" && break
4460done
4461
4462  if test "x$ac_ct_DUMPBIN" = x; then
4463    DUMPBIN=":"
4464  else
4465    case $cross_compiling:$ac_tool_warned in
4466yes:)
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4469ac_tool_warned=yes ;;
4470esac
4471    DUMPBIN=$ac_ct_DUMPBIN
4472  fi
4473fi
4474
4475
4476  if test "$DUMPBIN" != ":"; then
4477    NM="$DUMPBIN"
4478  fi
4479fi
4480test -z "$NM" && NM=nm
4481
4482
4483
4484
4485
4486
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4488$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4489if test "${lt_cv_nm_interface+set}" = set; then :
4490  $as_echo_n "(cached) " >&6
4491else
4492  lt_cv_nm_interface="BSD nm"
4493  echo "int some_variable = 0;" > conftest.$ac_ext
4494  (eval echo "\"\$as_me:4494: $ac_compile\"" >&5)
4495  (eval "$ac_compile" 2>conftest.err)
4496  cat conftest.err >&5
4497  (eval echo "\"\$as_me:4497: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4498  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4499  cat conftest.err >&5
4500  (eval echo "\"\$as_me:4500: output\"" >&5)
4501  cat conftest.out >&5
4502  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4503    lt_cv_nm_interface="MS dumpbin"
4504  fi
4505  rm -f conftest*
4506fi
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4508$as_echo "$lt_cv_nm_interface" >&6; }
4509
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4511$as_echo_n "checking whether ln -s works... " >&6; }
4512LN_S=$as_ln_s
4513if test "$LN_S" = "ln -s"; then
4514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4515$as_echo "yes" >&6; }
4516else
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4518$as_echo "no, using $LN_S" >&6; }
4519fi
4520
4521# find the maximum length of command line arguments
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4523$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4524if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4525  $as_echo_n "(cached) " >&6
4526else
4527    i=0
4528  teststring="ABCD"
4529
4530  case $build_os in
4531  msdosdjgpp*)
4532    # On DJGPP, this test can blow up pretty badly due to problems in libc
4533    # (any single argument exceeding 2000 bytes causes a buffer overrun
4534    # during glob expansion).  Even if it were fixed, the result of this
4535    # check would be larger than it should be.
4536    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4537    ;;
4538
4539  gnu*)
4540    # Under GNU Hurd, this test is not required because there is
4541    # no limit to the length of command line arguments.
4542    # Libtool will interpret -1 as no limit whatsoever
4543    lt_cv_sys_max_cmd_len=-1;
4544    ;;
4545
4546  cygwin* | mingw* | cegcc*)
4547    # On Win9x/ME, this test blows up -- it succeeds, but takes
4548    # about 5 minutes as the teststring grows exponentially.
4549    # Worse, since 9x/ME are not pre-emptively multitasking,
4550    # you end up with a "frozen" computer, even though with patience
4551    # the test eventually succeeds (with a max line length of 256k).
4552    # Instead, let's just punt: use the minimum linelength reported by
4553    # all of the supported platforms: 8192 (on NT/2K/XP).
4554    lt_cv_sys_max_cmd_len=8192;
4555    ;;
4556
4557  amigaos*)
4558    # On AmigaOS with pdksh, this test takes hours, literally.
4559    # So we just punt and use a minimum line length of 8192.
4560    lt_cv_sys_max_cmd_len=8192;
4561    ;;
4562
4563  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4564    # This has been around since 386BSD, at least.  Likely further.
4565    if test -x /sbin/sysctl; then
4566      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4567    elif test -x /usr/sbin/sysctl; then
4568      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4569    else
4570      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4571    fi
4572    # And add a safety zone
4573    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4574    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4575    ;;
4576
4577  interix*)
4578    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4579    lt_cv_sys_max_cmd_len=196608
4580    ;;
4581
4582  osf*)
4583    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4584    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4585    # nice to cause kernel panics so lets avoid the loop below.
4586    # First set a reasonable default.
4587    lt_cv_sys_max_cmd_len=16384
4588    #
4589    if test -x /sbin/sysconfig; then
4590      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4591        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4592      esac
4593    fi
4594    ;;
4595  sco3.2v5*)
4596    lt_cv_sys_max_cmd_len=102400
4597    ;;
4598  sysv5* | sco5v6* | sysv4.2uw2*)
4599    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4600    if test -n "$kargmax"; then
4601      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4602    else
4603      lt_cv_sys_max_cmd_len=32768
4604    fi
4605    ;;
4606  *)
4607    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4608    if test -n "$lt_cv_sys_max_cmd_len"; then
4609      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4610      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4611    else
4612      # Make teststring a little bigger before we do anything with it.
4613      # a 1K string should be a reasonable start.
4614      for i in 1 2 3 4 5 6 7 8 ; do
4615        teststring=$teststring$teststring
4616      done
4617      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4618      # If test is not a shell built-in, we'll probably end up computing a
4619      # maximum length that is only half of the actual maximum length, but
4620      # we can't tell.
4621      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4622	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4623	      test $i != 17 # 1/2 MB should be enough
4624      do
4625        i=`expr $i + 1`
4626        teststring=$teststring$teststring
4627      done
4628      # Only check the string length outside the loop.
4629      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4630      teststring=
4631      # Add a significant safety factor because C++ compilers can tack on
4632      # massive amounts of additional arguments before passing them to the
4633      # linker.  It appears as though 1/2 is a usable value.
4634      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4635    fi
4636    ;;
4637  esac
4638
4639fi
4640
4641if test -n $lt_cv_sys_max_cmd_len ; then
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4643$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4644else
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4646$as_echo "none" >&6; }
4647fi
4648max_cmd_len=$lt_cv_sys_max_cmd_len
4649
4650
4651
4652
4653
4654
4655: ${CP="cp -f"}
4656: ${MV="mv -f"}
4657: ${RM="rm -f"}
4658
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4660$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4661# Try some XSI features
4662xsi_shell=no
4663( _lt_dummy="a/b/c"
4664  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4665      = c,a/b,, \
4666    && eval 'test $(( 1 + 1 )) -eq 2 \
4667    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4668  && xsi_shell=yes
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4670$as_echo "$xsi_shell" >&6; }
4671
4672
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4674$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4675lt_shell_append=no
4676( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4677    >/dev/null 2>&1 \
4678  && lt_shell_append=yes
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4680$as_echo "$lt_shell_append" >&6; }
4681
4682
4683if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4684  lt_unset=unset
4685else
4686  lt_unset=false
4687fi
4688
4689
4690
4691
4692
4693# test EBCDIC or ASCII
4694case `echo X|tr X '\101'` in
4695 A) # ASCII based system
4696    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4697  lt_SP2NL='tr \040 \012'
4698  lt_NL2SP='tr \015\012 \040\040'
4699  ;;
4700 *) # EBCDIC based system
4701  lt_SP2NL='tr \100 \n'
4702  lt_NL2SP='tr \r\n \100\100'
4703  ;;
4704esac
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4715$as_echo_n "checking for $LD option to reload object files... " >&6; }
4716if test "${lt_cv_ld_reload_flag+set}" = set; then :
4717  $as_echo_n "(cached) " >&6
4718else
4719  lt_cv_ld_reload_flag='-r'
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4722$as_echo "$lt_cv_ld_reload_flag" >&6; }
4723reload_flag=$lt_cv_ld_reload_flag
4724case $reload_flag in
4725"" | " "*) ;;
4726*) reload_flag=" $reload_flag" ;;
4727esac
4728reload_cmds='$LD$reload_flag -o $output$reload_objs'
4729case $host_os in
4730  darwin*)
4731    if test "$GCC" = yes; then
4732      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4733    else
4734      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4735    fi
4736    ;;
4737esac
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747if test -n "$ac_tool_prefix"; then
4748  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4749set dummy ${ac_tool_prefix}objdump; ac_word=$2
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751$as_echo_n "checking for $ac_word... " >&6; }
4752if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  if test -n "$OBJDUMP"; then
4756  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4757else
4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759for as_dir in $PATH
4760do
4761  IFS=$as_save_IFS
4762  test -z "$as_dir" && as_dir=.
4763    for ac_exec_ext in '' $ac_executable_extensions; do
4764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4767    break 2
4768  fi
4769done
4770  done
4771IFS=$as_save_IFS
4772
4773fi
4774fi
4775OBJDUMP=$ac_cv_prog_OBJDUMP
4776if test -n "$OBJDUMP"; then
4777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4778$as_echo "$OBJDUMP" >&6; }
4779else
4780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781$as_echo "no" >&6; }
4782fi
4783
4784
4785fi
4786if test -z "$ac_cv_prog_OBJDUMP"; then
4787  ac_ct_OBJDUMP=$OBJDUMP
4788  # Extract the first word of "objdump", so it can be a program name with args.
4789set dummy objdump; ac_word=$2
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791$as_echo_n "checking for $ac_word... " >&6; }
4792if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4793  $as_echo_n "(cached) " >&6
4794else
4795  if test -n "$ac_ct_OBJDUMP"; then
4796  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4797else
4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801  IFS=$as_save_IFS
4802  test -z "$as_dir" && as_dir=.
4803    for ac_exec_ext in '' $ac_executable_extensions; do
4804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807    break 2
4808  fi
4809done
4810  done
4811IFS=$as_save_IFS
4812
4813fi
4814fi
4815ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4816if test -n "$ac_ct_OBJDUMP"; then
4817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4818$as_echo "$ac_ct_OBJDUMP" >&6; }
4819else
4820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821$as_echo "no" >&6; }
4822fi
4823
4824  if test "x$ac_ct_OBJDUMP" = x; then
4825    OBJDUMP="false"
4826  else
4827    case $cross_compiling:$ac_tool_warned in
4828yes:)
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831ac_tool_warned=yes ;;
4832esac
4833    OBJDUMP=$ac_ct_OBJDUMP
4834  fi
4835else
4836  OBJDUMP="$ac_cv_prog_OBJDUMP"
4837fi
4838
4839test -z "$OBJDUMP" && OBJDUMP=objdump
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4850$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4851if test "${lt_cv_deplibs_check_method+set}" = set; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  lt_cv_file_magic_cmd='$MAGIC_CMD'
4855lt_cv_file_magic_test_file=
4856lt_cv_deplibs_check_method='unknown'
4857# Need to set the preceding variable on all platforms that support
4858# interlibrary dependencies.
4859# 'none' -- dependencies not supported.
4860# `unknown' -- same as none, but documents that we really don't know.
4861# 'pass_all' -- all dependencies passed with no checks.
4862# 'test_compile' -- check by making test program.
4863# 'file_magic [[regex]]' -- check by looking for files in library path
4864# which responds to the $file_magic_cmd with a given extended regex.
4865# If you have `file' or equivalent on your system and you're not sure
4866# whether `pass_all' will *always* work, you probably want this one.
4867
4868case $host_os in
4869aix[4-9]*)
4870  lt_cv_deplibs_check_method=pass_all
4871  ;;
4872
4873beos*)
4874  lt_cv_deplibs_check_method=pass_all
4875  ;;
4876
4877bsdi[45]*)
4878  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4879  lt_cv_file_magic_cmd='/usr/bin/file -L'
4880  lt_cv_file_magic_test_file=/shlib/libc.so
4881  ;;
4882
4883cygwin*)
4884  # func_win32_libid is a shell function defined in ltmain.sh
4885  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4886  lt_cv_file_magic_cmd='func_win32_libid'
4887  ;;
4888
4889mingw* | pw32*)
4890  # Base MSYS/MinGW do not provide the 'file' command needed by
4891  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4892  # unless we find 'file', for example because we are cross-compiling.
4893  if ( file / ) >/dev/null 2>&1; then
4894    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4895    lt_cv_file_magic_cmd='func_win32_libid'
4896  else
4897    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4898    lt_cv_file_magic_cmd='$OBJDUMP -f'
4899  fi
4900  ;;
4901
4902cegcc)
4903  # use the weaker test based on 'objdump'. See mingw*.
4904  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4905  lt_cv_file_magic_cmd='$OBJDUMP -f'
4906  ;;
4907
4908darwin* | rhapsody*)
4909  lt_cv_deplibs_check_method=pass_all
4910  ;;
4911
4912freebsd* | dragonfly*)
4913  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4914    case $host_cpu in
4915    i*86 )
4916      # Not sure whether the presence of OpenBSD here was a mistake.
4917      # Let's accept both of them until this is cleared up.
4918      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4919      lt_cv_file_magic_cmd=/usr/bin/file
4920      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4921      ;;
4922    esac
4923  else
4924    lt_cv_deplibs_check_method=pass_all
4925  fi
4926  ;;
4927
4928gnu*)
4929  lt_cv_deplibs_check_method=pass_all
4930  ;;
4931
4932hpux10.20* | hpux11*)
4933  lt_cv_file_magic_cmd=/usr/bin/file
4934  case $host_cpu in
4935  ia64*)
4936    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4937    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4938    ;;
4939  hppa*64*)
4940    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]'
4941    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4942    ;;
4943  *)
4944    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4945    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4946    ;;
4947  esac
4948  ;;
4949
4950interix[3-9]*)
4951  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4952  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4953  ;;
4954
4955irix5* | irix6* | nonstopux*)
4956  case $LD in
4957  *-32|*"-32 ") libmagic=32-bit;;
4958  *-n32|*"-n32 ") libmagic=N32;;
4959  *-64|*"-64 ") libmagic=64-bit;;
4960  *) libmagic=never-match;;
4961  esac
4962  lt_cv_deplibs_check_method=pass_all
4963  ;;
4964
4965# This must be Linux ELF.
4966linux* | k*bsd*-gnu | kopensolaris*-gnu)
4967  lt_cv_deplibs_check_method=pass_all
4968  ;;
4969
4970netbsd* | netbsdelf*-gnu)
4971  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4972    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4973  else
4974    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4975  fi
4976  ;;
4977
4978newos6*)
4979  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4980  lt_cv_file_magic_cmd=/usr/bin/file
4981  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4982  ;;
4983
4984*nto* | *qnx*)
4985  lt_cv_deplibs_check_method=pass_all
4986  ;;
4987
4988openbsd*)
4989  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4990    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4991  else
4992    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4993  fi
4994  ;;
4995
4996osf3* | osf4* | osf5*)
4997  lt_cv_deplibs_check_method=pass_all
4998  ;;
4999
5000rdos*)
5001  lt_cv_deplibs_check_method=pass_all
5002  ;;
5003
5004solaris*)
5005  lt_cv_deplibs_check_method=pass_all
5006  ;;
5007
5008sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5009  lt_cv_deplibs_check_method=pass_all
5010  ;;
5011
5012sysv4 | sysv4.3*)
5013  case $host_vendor in
5014  motorola)
5015    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]'
5016    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5017    ;;
5018  ncr)
5019    lt_cv_deplibs_check_method=pass_all
5020    ;;
5021  sequent)
5022    lt_cv_file_magic_cmd='/bin/file'
5023    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5024    ;;
5025  sni)
5026    lt_cv_file_magic_cmd='/bin/file'
5027    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5028    lt_cv_file_magic_test_file=/lib/libc.so
5029    ;;
5030  siemens)
5031    lt_cv_deplibs_check_method=pass_all
5032    ;;
5033  pc)
5034    lt_cv_deplibs_check_method=pass_all
5035    ;;
5036  esac
5037  ;;
5038
5039tpf*)
5040  lt_cv_deplibs_check_method=pass_all
5041  ;;
5042esac
5043
5044fi
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5046$as_echo "$lt_cv_deplibs_check_method" >&6; }
5047file_magic_cmd=$lt_cv_file_magic_cmd
5048deplibs_check_method=$lt_cv_deplibs_check_method
5049test -z "$deplibs_check_method" && deplibs_check_method=unknown
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062if test -n "$ac_tool_prefix"; then
5063  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5064set dummy ${ac_tool_prefix}ar; ac_word=$2
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066$as_echo_n "checking for $ac_word... " >&6; }
5067if test "${ac_cv_prog_AR+set}" = set; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  if test -n "$AR"; then
5071  ac_cv_prog_AR="$AR" # Let the user override the test.
5072else
5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076  IFS=$as_save_IFS
5077  test -z "$as_dir" && as_dir=.
5078    for ac_exec_ext in '' $ac_executable_extensions; do
5079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080    ac_cv_prog_AR="${ac_tool_prefix}ar"
5081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082    break 2
5083  fi
5084done
5085  done
5086IFS=$as_save_IFS
5087
5088fi
5089fi
5090AR=$ac_cv_prog_AR
5091if test -n "$AR"; then
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5093$as_echo "$AR" >&6; }
5094else
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096$as_echo "no" >&6; }
5097fi
5098
5099
5100fi
5101if test -z "$ac_cv_prog_AR"; then
5102  ac_ct_AR=$AR
5103  # Extract the first word of "ar", so it can be a program name with args.
5104set dummy ar; ac_word=$2
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106$as_echo_n "checking for $ac_word... " >&6; }
5107if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5108  $as_echo_n "(cached) " >&6
5109else
5110  if test -n "$ac_ct_AR"; then
5111  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5112else
5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116  IFS=$as_save_IFS
5117  test -z "$as_dir" && as_dir=.
5118    for ac_exec_ext in '' $ac_executable_extensions; do
5119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120    ac_cv_prog_ac_ct_AR="ar"
5121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122    break 2
5123  fi
5124done
5125  done
5126IFS=$as_save_IFS
5127
5128fi
5129fi
5130ac_ct_AR=$ac_cv_prog_ac_ct_AR
5131if test -n "$ac_ct_AR"; then
5132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5133$as_echo "$ac_ct_AR" >&6; }
5134else
5135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136$as_echo "no" >&6; }
5137fi
5138
5139  if test "x$ac_ct_AR" = x; then
5140    AR="false"
5141  else
5142    case $cross_compiling:$ac_tool_warned in
5143yes:)
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5146ac_tool_warned=yes ;;
5147esac
5148    AR=$ac_ct_AR
5149  fi
5150else
5151  AR="$ac_cv_prog_AR"
5152fi
5153
5154test -z "$AR" && AR=ar
5155test -z "$AR_FLAGS" && AR_FLAGS=cru
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167if test -n "$ac_tool_prefix"; then
5168  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5169set dummy ${ac_tool_prefix}strip; ac_word=$2
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171$as_echo_n "checking for $ac_word... " >&6; }
5172if test "${ac_cv_prog_STRIP+set}" = set; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175  if test -n "$STRIP"; then
5176  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181  IFS=$as_save_IFS
5182  test -z "$as_dir" && as_dir=.
5183    for ac_exec_ext in '' $ac_executable_extensions; do
5184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187    break 2
5188  fi
5189done
5190  done
5191IFS=$as_save_IFS
5192
5193fi
5194fi
5195STRIP=$ac_cv_prog_STRIP
5196if test -n "$STRIP"; then
5197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5198$as_echo "$STRIP" >&6; }
5199else
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201$as_echo "no" >&6; }
5202fi
5203
5204
5205fi
5206if test -z "$ac_cv_prog_STRIP"; then
5207  ac_ct_STRIP=$STRIP
5208  # Extract the first word of "strip", so it can be a program name with args.
5209set dummy strip; ac_word=$2
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211$as_echo_n "checking for $ac_word... " >&6; }
5212if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5213  $as_echo_n "(cached) " >&6
5214else
5215  if test -n "$ac_ct_STRIP"; then
5216  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221  IFS=$as_save_IFS
5222  test -z "$as_dir" && as_dir=.
5223    for ac_exec_ext in '' $ac_executable_extensions; do
5224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225    ac_cv_prog_ac_ct_STRIP="strip"
5226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227    break 2
5228  fi
5229done
5230  done
5231IFS=$as_save_IFS
5232
5233fi
5234fi
5235ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5236if test -n "$ac_ct_STRIP"; then
5237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5238$as_echo "$ac_ct_STRIP" >&6; }
5239else
5240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241$as_echo "no" >&6; }
5242fi
5243
5244  if test "x$ac_ct_STRIP" = x; then
5245    STRIP=":"
5246  else
5247    case $cross_compiling:$ac_tool_warned in
5248yes:)
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251ac_tool_warned=yes ;;
5252esac
5253    STRIP=$ac_ct_STRIP
5254  fi
5255else
5256  STRIP="$ac_cv_prog_STRIP"
5257fi
5258
5259test -z "$STRIP" && STRIP=:
5260
5261
5262
5263
5264
5265
5266if test -n "$ac_tool_prefix"; then
5267  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5268set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270$as_echo_n "checking for $ac_word... " >&6; }
5271if test "${ac_cv_prog_RANLIB+set}" = set; then :
5272  $as_echo_n "(cached) " >&6
5273else
5274  if test -n "$RANLIB"; then
5275  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5276else
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282    for ac_exec_ext in '' $ac_executable_extensions; do
5283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286    break 2
5287  fi
5288done
5289  done
5290IFS=$as_save_IFS
5291
5292fi
5293fi
5294RANLIB=$ac_cv_prog_RANLIB
5295if test -n "$RANLIB"; then
5296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5297$as_echo "$RANLIB" >&6; }
5298else
5299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300$as_echo "no" >&6; }
5301fi
5302
5303
5304fi
5305if test -z "$ac_cv_prog_RANLIB"; then
5306  ac_ct_RANLIB=$RANLIB
5307  # Extract the first word of "ranlib", so it can be a program name with args.
5308set dummy ranlib; ac_word=$2
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310$as_echo_n "checking for $ac_word... " >&6; }
5311if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314  if test -n "$ac_ct_RANLIB"; then
5315  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5316else
5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH
5319do
5320  IFS=$as_save_IFS
5321  test -z "$as_dir" && as_dir=.
5322    for ac_exec_ext in '' $ac_executable_extensions; do
5323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324    ac_cv_prog_ac_ct_RANLIB="ranlib"
5325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326    break 2
5327  fi
5328done
5329  done
5330IFS=$as_save_IFS
5331
5332fi
5333fi
5334ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5335if test -n "$ac_ct_RANLIB"; then
5336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5337$as_echo "$ac_ct_RANLIB" >&6; }
5338else
5339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340$as_echo "no" >&6; }
5341fi
5342
5343  if test "x$ac_ct_RANLIB" = x; then
5344    RANLIB=":"
5345  else
5346    case $cross_compiling:$ac_tool_warned in
5347yes:)
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5350ac_tool_warned=yes ;;
5351esac
5352    RANLIB=$ac_ct_RANLIB
5353  fi
5354else
5355  RANLIB="$ac_cv_prog_RANLIB"
5356fi
5357
5358test -z "$RANLIB" && RANLIB=:
5359
5360
5361
5362
5363
5364
5365# Determine commands to create old-style static archives.
5366old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5367old_postinstall_cmds='chmod 644 $oldlib'
5368old_postuninstall_cmds=
5369
5370if test -n "$RANLIB"; then
5371  case $host_os in
5372  openbsd*)
5373    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5374    ;;
5375  *)
5376    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5377    ;;
5378  esac
5379  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5380fi
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415# If no C compiler was specified, use CC.
5416LTCC=${LTCC-"$CC"}
5417
5418# If no C compiler flags were specified, use CFLAGS.
5419LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5420
5421# Allow CC to be a program name with arguments.
5422compiler=$CC
5423
5424
5425# Check for command to grab the raw symbol name followed by C symbol from nm.
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5427$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5428if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5429  $as_echo_n "(cached) " >&6
5430else
5431
5432# These are sane defaults that work on at least a few old systems.
5433# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5434
5435# Character class describing NM global symbol codes.
5436symcode='[BCDEGRST]'
5437
5438# Regexp to match symbols that can be accessed directly from C.
5439sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5440
5441# Define system-specific variables.
5442case $host_os in
5443aix*)
5444  symcode='[BCDT]'
5445  ;;
5446cygwin* | mingw* | pw32* | cegcc*)
5447  symcode='[ABCDGISTW]'
5448  ;;
5449hpux*)
5450  if test "$host_cpu" = ia64; then
5451    symcode='[ABCDEGRST]'
5452  fi
5453  ;;
5454irix* | nonstopux*)
5455  symcode='[BCDEGRST]'
5456  ;;
5457osf*)
5458  symcode='[BCDEGQRST]'
5459  ;;
5460solaris*)
5461  symcode='[BDRT]'
5462  ;;
5463sco3.2v5*)
5464  symcode='[DT]'
5465  ;;
5466sysv4.2uw2*)
5467  symcode='[DT]'
5468  ;;
5469sysv5* | sco5v6* | unixware* | OpenUNIX*)
5470  symcode='[ABDT]'
5471  ;;
5472sysv4)
5473  symcode='[DFNSTU]'
5474  ;;
5475esac
5476
5477# If we're using GNU nm, then use its standard symbol codes.
5478case `$NM -V 2>&1` in
5479*GNU* | *'with BFD'*)
5480  symcode='[ABCDGIRSTW]' ;;
5481esac
5482
5483# Transform an extracted symbol line into a proper C declaration.
5484# Some systems (esp. on ia64) link data and code symbols differently,
5485# so use this general approach.
5486lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5487
5488# Transform an extracted symbol line into symbol name and symbol address
5489lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5490lt_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'"
5491
5492# Handle CRLF in mingw tool chain
5493opt_cr=
5494case $build_os in
5495mingw*)
5496  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5497  ;;
5498esac
5499
5500# Try without a prefix underscore, then with it.
5501for ac_symprfx in "" "_"; do
5502
5503  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5504  symxfrm="\\1 $ac_symprfx\\2 \\2"
5505
5506  # Write the raw and C identifiers.
5507  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5508    # Fake it for dumpbin and say T for any non-static function
5509    # and D for any global variable.
5510    # Also find C++ and __fastcall symbols from MSVC++,
5511    # which start with @ or ?.
5512    lt_cv_sys_global_symbol_pipe="$AWK '"\
5513"     {last_section=section; section=\$ 3};"\
5514"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5515"     \$ 0!~/External *\|/{next};"\
5516"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5517"     {if(hide[section]) next};"\
5518"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5519"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5520"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5521"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5522"     ' prfx=^$ac_symprfx"
5523  else
5524    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5525  fi
5526
5527  # Check to see that the pipe works correctly.
5528  pipe_works=no
5529
5530  rm -f conftest*
5531  cat > conftest.$ac_ext <<_LT_EOF
5532#ifdef __cplusplus
5533extern "C" {
5534#endif
5535char nm_test_var;
5536void nm_test_func(void);
5537void nm_test_func(void){}
5538#ifdef __cplusplus
5539}
5540#endif
5541int main(){nm_test_var='a';nm_test_func();return(0);}
5542_LT_EOF
5543
5544  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5545  (eval $ac_compile) 2>&5
5546  ac_status=$?
5547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5548  test $ac_status = 0; }; then
5549    # Now try to grab the symbols.
5550    nlist=conftest.nm
5551    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5552  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5553  ac_status=$?
5554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5555  test $ac_status = 0; } && test -s "$nlist"; then
5556      # Try sorting and uniquifying the output.
5557      if sort "$nlist" | uniq > "$nlist"T; then
5558	mv -f "$nlist"T "$nlist"
5559      else
5560	rm -f "$nlist"T
5561      fi
5562
5563      # Make sure that we snagged all the symbols we need.
5564      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5565	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5566	  cat <<_LT_EOF > conftest.$ac_ext
5567#ifdef __cplusplus
5568extern "C" {
5569#endif
5570
5571_LT_EOF
5572	  # Now generate the symbol file.
5573	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5574
5575	  cat <<_LT_EOF >> conftest.$ac_ext
5576
5577/* The mapping between symbol names and symbols.  */
5578const struct {
5579  const char *name;
5580  void       *address;
5581}
5582lt__PROGRAM__LTX_preloaded_symbols[] =
5583{
5584  { "@PROGRAM@", (void *) 0 },
5585_LT_EOF
5586	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5587	  cat <<\_LT_EOF >> conftest.$ac_ext
5588  {0, (void *) 0}
5589};
5590
5591/* This works around a problem in FreeBSD linker */
5592#ifdef FREEBSD_WORKAROUND
5593static const void *lt_preloaded_setup() {
5594  return lt__PROGRAM__LTX_preloaded_symbols;
5595}
5596#endif
5597
5598#ifdef __cplusplus
5599}
5600#endif
5601_LT_EOF
5602	  # Now try linking the two files.
5603	  mv conftest.$ac_objext conftstm.$ac_objext
5604	  lt_save_LIBS="$LIBS"
5605	  lt_save_CFLAGS="$CFLAGS"
5606	  LIBS="conftstm.$ac_objext"
5607	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5608	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5609  (eval $ac_link) 2>&5
5610  ac_status=$?
5611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5612  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5613	    pipe_works=yes
5614	  fi
5615	  LIBS="$lt_save_LIBS"
5616	  CFLAGS="$lt_save_CFLAGS"
5617	else
5618	  echo "cannot find nm_test_func in $nlist" >&5
5619	fi
5620      else
5621	echo "cannot find nm_test_var in $nlist" >&5
5622      fi
5623    else
5624      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5625    fi
5626  else
5627    echo "$progname: failed program was:" >&5
5628    cat conftest.$ac_ext >&5
5629  fi
5630  rm -rf conftest* conftst*
5631
5632  # Do not use the global_symbol_pipe unless it works.
5633  if test "$pipe_works" = yes; then
5634    break
5635  else
5636    lt_cv_sys_global_symbol_pipe=
5637  fi
5638done
5639
5640fi
5641
5642if test -z "$lt_cv_sys_global_symbol_pipe"; then
5643  lt_cv_sys_global_symbol_to_cdecl=
5644fi
5645if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5647$as_echo "failed" >&6; }
5648else
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5650$as_echo "ok" >&6; }
5651fi
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675# Check whether --enable-libtool-lock was given.
5676if test "${enable_libtool_lock+set}" = set; then :
5677  enableval=$enable_libtool_lock;
5678fi
5679
5680test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5681
5682# Some flags need to be propagated to the compiler or linker for good
5683# libtool support.
5684case $host in
5685ia64-*-hpux*)
5686  # Find out which ABI we are using.
5687  echo 'int i;' > conftest.$ac_ext
5688  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5689  (eval $ac_compile) 2>&5
5690  ac_status=$?
5691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692  test $ac_status = 0; }; then
5693    case `/usr/bin/file conftest.$ac_objext` in
5694      *ELF-32*)
5695	HPUX_IA64_MODE="32"
5696	;;
5697      *ELF-64*)
5698	HPUX_IA64_MODE="64"
5699	;;
5700    esac
5701  fi
5702  rm -rf conftest*
5703  ;;
5704*-*-irix6*)
5705  # Find out which ABI we are using.
5706  echo '#line 5706 "configure"' > conftest.$ac_ext
5707  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5708  (eval $ac_compile) 2>&5
5709  ac_status=$?
5710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711  test $ac_status = 0; }; then
5712    if test "$lt_cv_prog_gnu_ld" = yes; then
5713      case `/usr/bin/file conftest.$ac_objext` in
5714	*32-bit*)
5715	  LD="${LD-ld} -melf32bsmip"
5716	  ;;
5717	*N32*)
5718	  LD="${LD-ld} -melf32bmipn32"
5719	  ;;
5720	*64-bit*)
5721	  LD="${LD-ld} -melf64bmip"
5722	;;
5723      esac
5724    else
5725      case `/usr/bin/file conftest.$ac_objext` in
5726	*32-bit*)
5727	  LD="${LD-ld} -32"
5728	  ;;
5729	*N32*)
5730	  LD="${LD-ld} -n32"
5731	  ;;
5732	*64-bit*)
5733	  LD="${LD-ld} -64"
5734	  ;;
5735      esac
5736    fi
5737  fi
5738  rm -rf conftest*
5739  ;;
5740
5741x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5742s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5743  # Find out which ABI we are using.
5744  echo 'int i;' > conftest.$ac_ext
5745  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5746  (eval $ac_compile) 2>&5
5747  ac_status=$?
5748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749  test $ac_status = 0; }; then
5750    case `/usr/bin/file conftest.o` in
5751      *32-bit*)
5752	case $host in
5753	  x86_64-*kfreebsd*-gnu)
5754	    LD="${LD-ld} -m elf_i386_fbsd"
5755	    ;;
5756	  x86_64-*linux*)
5757	    LD="${LD-ld} -m elf_i386"
5758	    ;;
5759	  ppc64-*linux*|powerpc64-*linux*)
5760	    LD="${LD-ld} -m elf32ppclinux"
5761	    ;;
5762	  s390x-*linux*)
5763	    LD="${LD-ld} -m elf_s390"
5764	    ;;
5765	  sparc64-*linux*)
5766	    LD="${LD-ld} -m elf32_sparc"
5767	    ;;
5768	esac
5769	;;
5770      *64-bit*)
5771	case $host in
5772	  x86_64-*kfreebsd*-gnu)
5773	    LD="${LD-ld} -m elf_x86_64_fbsd"
5774	    ;;
5775	  x86_64-*linux*)
5776	    LD="${LD-ld} -m elf_x86_64"
5777	    ;;
5778	  ppc*-*linux*|powerpc*-*linux*)
5779	    LD="${LD-ld} -m elf64ppc"
5780	    ;;
5781	  s390*-*linux*|s390*-*tpf*)
5782	    LD="${LD-ld} -m elf64_s390"
5783	    ;;
5784	  sparc*-*linux*)
5785	    LD="${LD-ld} -m elf64_sparc"
5786	    ;;
5787	esac
5788	;;
5789    esac
5790  fi
5791  rm -rf conftest*
5792  ;;
5793
5794*-*-sco3.2v5*)
5795  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5796  SAVE_CFLAGS="$CFLAGS"
5797  CFLAGS="$CFLAGS -belf"
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5799$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5800if test "${lt_cv_cc_needs_belf+set}" = set; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  ac_ext=c
5804ac_cpp='$CPP $CPPFLAGS'
5805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807ac_compiler_gnu=$ac_cv_c_compiler_gnu
5808
5809     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810/* end confdefs.h.  */
5811
5812int
5813main ()
5814{
5815
5816  ;
5817  return 0;
5818}
5819_ACEOF
5820if ac_fn_c_try_link "$LINENO"; then :
5821  lt_cv_cc_needs_belf=yes
5822else
5823  lt_cv_cc_needs_belf=no
5824fi
5825rm -f core conftest.err conftest.$ac_objext \
5826    conftest$ac_exeext conftest.$ac_ext
5827     ac_ext=c
5828ac_cpp='$CPP $CPPFLAGS'
5829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831ac_compiler_gnu=$ac_cv_c_compiler_gnu
5832
5833fi
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5835$as_echo "$lt_cv_cc_needs_belf" >&6; }
5836  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5837    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5838    CFLAGS="$SAVE_CFLAGS"
5839  fi
5840  ;;
5841sparc*-*solaris*)
5842  # Find out which ABI we are using.
5843  echo 'int i;' > conftest.$ac_ext
5844  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5845  (eval $ac_compile) 2>&5
5846  ac_status=$?
5847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5848  test $ac_status = 0; }; then
5849    case `/usr/bin/file conftest.o` in
5850    *64-bit*)
5851      case $lt_cv_prog_gnu_ld in
5852      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5853      *)
5854	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5855	  LD="${LD-ld} -64"
5856	fi
5857	;;
5858      esac
5859      ;;
5860    esac
5861  fi
5862  rm -rf conftest*
5863  ;;
5864esac
5865
5866need_locks="$enable_libtool_lock"
5867
5868
5869  case $host_os in
5870    rhapsody* | darwin*)
5871    if test -n "$ac_tool_prefix"; then
5872  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5873set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875$as_echo_n "checking for $ac_word... " >&6; }
5876if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5877  $as_echo_n "(cached) " >&6
5878else
5879  if test -n "$DSYMUTIL"; then
5880  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885  IFS=$as_save_IFS
5886  test -z "$as_dir" && as_dir=.
5887    for ac_exec_ext in '' $ac_executable_extensions; do
5888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891    break 2
5892  fi
5893done
5894  done
5895IFS=$as_save_IFS
5896
5897fi
5898fi
5899DSYMUTIL=$ac_cv_prog_DSYMUTIL
5900if test -n "$DSYMUTIL"; then
5901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5902$as_echo "$DSYMUTIL" >&6; }
5903else
5904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905$as_echo "no" >&6; }
5906fi
5907
5908
5909fi
5910if test -z "$ac_cv_prog_DSYMUTIL"; then
5911  ac_ct_DSYMUTIL=$DSYMUTIL
5912  # Extract the first word of "dsymutil", so it can be a program name with args.
5913set dummy dsymutil; ac_word=$2
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915$as_echo_n "checking for $ac_word... " >&6; }
5916if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  if test -n "$ac_ct_DSYMUTIL"; then
5920  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5921else
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925  IFS=$as_save_IFS
5926  test -z "$as_dir" && as_dir=.
5927    for ac_exec_ext in '' $ac_executable_extensions; do
5928  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931    break 2
5932  fi
5933done
5934  done
5935IFS=$as_save_IFS
5936
5937fi
5938fi
5939ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5940if test -n "$ac_ct_DSYMUTIL"; then
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5942$as_echo "$ac_ct_DSYMUTIL" >&6; }
5943else
5944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945$as_echo "no" >&6; }
5946fi
5947
5948  if test "x$ac_ct_DSYMUTIL" = x; then
5949    DSYMUTIL=":"
5950  else
5951    case $cross_compiling:$ac_tool_warned in
5952yes:)
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955ac_tool_warned=yes ;;
5956esac
5957    DSYMUTIL=$ac_ct_DSYMUTIL
5958  fi
5959else
5960  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5961fi
5962
5963    if test -n "$ac_tool_prefix"; then
5964  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5965set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967$as_echo_n "checking for $ac_word... " >&6; }
5968if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  if test -n "$NMEDIT"; then
5972  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5973else
5974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975for as_dir in $PATH
5976do
5977  IFS=$as_save_IFS
5978  test -z "$as_dir" && as_dir=.
5979    for ac_exec_ext in '' $ac_executable_extensions; do
5980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983    break 2
5984  fi
5985done
5986  done
5987IFS=$as_save_IFS
5988
5989fi
5990fi
5991NMEDIT=$ac_cv_prog_NMEDIT
5992if test -n "$NMEDIT"; then
5993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5994$as_echo "$NMEDIT" >&6; }
5995else
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997$as_echo "no" >&6; }
5998fi
5999
6000
6001fi
6002if test -z "$ac_cv_prog_NMEDIT"; then
6003  ac_ct_NMEDIT=$NMEDIT
6004  # Extract the first word of "nmedit", so it can be a program name with args.
6005set dummy nmedit; ac_word=$2
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007$as_echo_n "checking for $ac_word... " >&6; }
6008if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6009  $as_echo_n "(cached) " >&6
6010else
6011  if test -n "$ac_ct_NMEDIT"; then
6012  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6013else
6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017  IFS=$as_save_IFS
6018  test -z "$as_dir" && as_dir=.
6019    for ac_exec_ext in '' $ac_executable_extensions; do
6020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6021    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023    break 2
6024  fi
6025done
6026  done
6027IFS=$as_save_IFS
6028
6029fi
6030fi
6031ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6032if test -n "$ac_ct_NMEDIT"; then
6033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6034$as_echo "$ac_ct_NMEDIT" >&6; }
6035else
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037$as_echo "no" >&6; }
6038fi
6039
6040  if test "x$ac_ct_NMEDIT" = x; then
6041    NMEDIT=":"
6042  else
6043    case $cross_compiling:$ac_tool_warned in
6044yes:)
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6047ac_tool_warned=yes ;;
6048esac
6049    NMEDIT=$ac_ct_NMEDIT
6050  fi
6051else
6052  NMEDIT="$ac_cv_prog_NMEDIT"
6053fi
6054
6055    if test -n "$ac_tool_prefix"; then
6056  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6057set dummy ${ac_tool_prefix}lipo; ac_word=$2
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059$as_echo_n "checking for $ac_word... " >&6; }
6060if test "${ac_cv_prog_LIPO+set}" = set; then :
6061  $as_echo_n "(cached) " >&6
6062else
6063  if test -n "$LIPO"; then
6064  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6065else
6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069  IFS=$as_save_IFS
6070  test -z "$as_dir" && as_dir=.
6071    for ac_exec_ext in '' $ac_executable_extensions; do
6072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6073    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075    break 2
6076  fi
6077done
6078  done
6079IFS=$as_save_IFS
6080
6081fi
6082fi
6083LIPO=$ac_cv_prog_LIPO
6084if test -n "$LIPO"; then
6085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6086$as_echo "$LIPO" >&6; }
6087else
6088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089$as_echo "no" >&6; }
6090fi
6091
6092
6093fi
6094if test -z "$ac_cv_prog_LIPO"; then
6095  ac_ct_LIPO=$LIPO
6096  # Extract the first word of "lipo", so it can be a program name with args.
6097set dummy lipo; ac_word=$2
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099$as_echo_n "checking for $ac_word... " >&6; }
6100if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6101  $as_echo_n "(cached) " >&6
6102else
6103  if test -n "$ac_ct_LIPO"; then
6104  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6105else
6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107for as_dir in $PATH
6108do
6109  IFS=$as_save_IFS
6110  test -z "$as_dir" && as_dir=.
6111    for ac_exec_ext in '' $ac_executable_extensions; do
6112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6113    ac_cv_prog_ac_ct_LIPO="lipo"
6114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115    break 2
6116  fi
6117done
6118  done
6119IFS=$as_save_IFS
6120
6121fi
6122fi
6123ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6124if test -n "$ac_ct_LIPO"; then
6125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6126$as_echo "$ac_ct_LIPO" >&6; }
6127else
6128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129$as_echo "no" >&6; }
6130fi
6131
6132  if test "x$ac_ct_LIPO" = x; then
6133    LIPO=":"
6134  else
6135    case $cross_compiling:$ac_tool_warned in
6136yes:)
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139ac_tool_warned=yes ;;
6140esac
6141    LIPO=$ac_ct_LIPO
6142  fi
6143else
6144  LIPO="$ac_cv_prog_LIPO"
6145fi
6146
6147    if test -n "$ac_tool_prefix"; then
6148  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6149set dummy ${ac_tool_prefix}otool; ac_word=$2
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151$as_echo_n "checking for $ac_word... " >&6; }
6152if test "${ac_cv_prog_OTOOL+set}" = set; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  if test -n "$OTOOL"; then
6156  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161  IFS=$as_save_IFS
6162  test -z "$as_dir" && as_dir=.
6163    for ac_exec_ext in '' $ac_executable_extensions; do
6164  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167    break 2
6168  fi
6169done
6170  done
6171IFS=$as_save_IFS
6172
6173fi
6174fi
6175OTOOL=$ac_cv_prog_OTOOL
6176if test -n "$OTOOL"; then
6177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6178$as_echo "$OTOOL" >&6; }
6179else
6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184
6185fi
6186if test -z "$ac_cv_prog_OTOOL"; then
6187  ac_ct_OTOOL=$OTOOL
6188  # Extract the first word of "otool", so it can be a program name with args.
6189set dummy otool; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6193  $as_echo_n "(cached) " >&6
6194else
6195  if test -n "$ac_ct_OTOOL"; then
6196  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201  IFS=$as_save_IFS
6202  test -z "$as_dir" && as_dir=.
6203    for ac_exec_ext in '' $ac_executable_extensions; do
6204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205    ac_cv_prog_ac_ct_OTOOL="otool"
6206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207    break 2
6208  fi
6209done
6210  done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6216if test -n "$ac_ct_OTOOL"; then
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6218$as_echo "$ac_ct_OTOOL" >&6; }
6219else
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224  if test "x$ac_ct_OTOOL" = x; then
6225    OTOOL=":"
6226  else
6227    case $cross_compiling:$ac_tool_warned in
6228yes:)
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6231ac_tool_warned=yes ;;
6232esac
6233    OTOOL=$ac_ct_OTOOL
6234  fi
6235else
6236  OTOOL="$ac_cv_prog_OTOOL"
6237fi
6238
6239    if test -n "$ac_tool_prefix"; then
6240  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6241set dummy ${ac_tool_prefix}otool64; ac_word=$2
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243$as_echo_n "checking for $ac_word... " >&6; }
6244if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6245  $as_echo_n "(cached) " >&6
6246else
6247  if test -n "$OTOOL64"; then
6248  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6249else
6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253  IFS=$as_save_IFS
6254  test -z "$as_dir" && as_dir=.
6255    for ac_exec_ext in '' $ac_executable_extensions; do
6256  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259    break 2
6260  fi
6261done
6262  done
6263IFS=$as_save_IFS
6264
6265fi
6266fi
6267OTOOL64=$ac_cv_prog_OTOOL64
6268if test -n "$OTOOL64"; then
6269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6270$as_echo "$OTOOL64" >&6; }
6271else
6272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273$as_echo "no" >&6; }
6274fi
6275
6276
6277fi
6278if test -z "$ac_cv_prog_OTOOL64"; then
6279  ac_ct_OTOOL64=$OTOOL64
6280  # Extract the first word of "otool64", so it can be a program name with args.
6281set dummy otool64; ac_word=$2
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283$as_echo_n "checking for $ac_word... " >&6; }
6284if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  if test -n "$ac_ct_OTOOL64"; then
6288  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293  IFS=$as_save_IFS
6294  test -z "$as_dir" && as_dir=.
6295    for ac_exec_ext in '' $ac_executable_extensions; do
6296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297    ac_cv_prog_ac_ct_OTOOL64="otool64"
6298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299    break 2
6300  fi
6301done
6302  done
6303IFS=$as_save_IFS
6304
6305fi
6306fi
6307ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6308if test -n "$ac_ct_OTOOL64"; then
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6310$as_echo "$ac_ct_OTOOL64" >&6; }
6311else
6312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313$as_echo "no" >&6; }
6314fi
6315
6316  if test "x$ac_ct_OTOOL64" = x; then
6317    OTOOL64=":"
6318  else
6319    case $cross_compiling:$ac_tool_warned in
6320yes:)
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323ac_tool_warned=yes ;;
6324esac
6325    OTOOL64=$ac_ct_OTOOL64
6326  fi
6327else
6328  OTOOL64="$ac_cv_prog_OTOOL64"
6329fi
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6358$as_echo_n "checking for -single_module linker flag... " >&6; }
6359if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6360  $as_echo_n "(cached) " >&6
6361else
6362  lt_cv_apple_cc_single_mod=no
6363      if test -z "${LT_MULTI_MODULE}"; then
6364	# By default we will add the -single_module flag. You can override
6365	# by either setting the environment variable LT_MULTI_MODULE
6366	# non-empty at configure time, or by adding -multi_module to the
6367	# link flags.
6368	rm -rf libconftest.dylib*
6369	echo "int foo(void){return 1;}" > conftest.c
6370	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6371-dynamiclib -Wl,-single_module conftest.c" >&5
6372	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6373	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6374        _lt_result=$?
6375	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6376	  lt_cv_apple_cc_single_mod=yes
6377	else
6378	  cat conftest.err >&5
6379	fi
6380	rm -rf libconftest.dylib*
6381	rm -f conftest.*
6382      fi
6383fi
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6385$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6386    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6387$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6388if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391  lt_cv_ld_exported_symbols_list=no
6392      save_LDFLAGS=$LDFLAGS
6393      echo "_main" > conftest.sym
6394      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6395      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396/* end confdefs.h.  */
6397
6398int
6399main ()
6400{
6401
6402  ;
6403  return 0;
6404}
6405_ACEOF
6406if ac_fn_c_try_link "$LINENO"; then :
6407  lt_cv_ld_exported_symbols_list=yes
6408else
6409  lt_cv_ld_exported_symbols_list=no
6410fi
6411rm -f core conftest.err conftest.$ac_objext \
6412    conftest$ac_exeext conftest.$ac_ext
6413	LDFLAGS="$save_LDFLAGS"
6414
6415fi
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6417$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6418    case $host_os in
6419    rhapsody* | darwin1.[012])
6420      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6421    darwin1.*)
6422      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6423    darwin*) # darwin 5.x on
6424      # if running on 10.5 or later, the deployment target defaults
6425      # to the OS version, if on x86, and 10.4, the deployment
6426      # target defaults to 10.4. Don't you love it?
6427      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6428	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6429	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6430	10.[012]*)
6431	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6432	10.*)
6433	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6434      esac
6435    ;;
6436  esac
6437    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6438      _lt_dar_single_mod='$single_module'
6439    fi
6440    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6441      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6442    else
6443      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6444    fi
6445    if test "$DSYMUTIL" != ":"; then
6446      _lt_dsymutil='~$DSYMUTIL $lib || :'
6447    else
6448      _lt_dsymutil=
6449    fi
6450    ;;
6451  esac
6452
6453ac_ext=c
6454ac_cpp='$CPP $CPPFLAGS'
6455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6457ac_compiler_gnu=$ac_cv_c_compiler_gnu
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6459$as_echo_n "checking how to run the C preprocessor... " >&6; }
6460# On Suns, sometimes $CPP names a directory.
6461if test -n "$CPP" && test -d "$CPP"; then
6462  CPP=
6463fi
6464if test -z "$CPP"; then
6465  if test "${ac_cv_prog_CPP+set}" = set; then :
6466  $as_echo_n "(cached) " >&6
6467else
6468      # Double quotes because CPP needs to be expanded
6469    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6470    do
6471      ac_preproc_ok=false
6472for ac_c_preproc_warn_flag in '' yes
6473do
6474  # Use a header file that comes with gcc, so configuring glibc
6475  # with a fresh cross-compiler works.
6476  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6477  # <limits.h> exists even on freestanding compilers.
6478  # On the NeXT, cc -E runs the code through the compiler's parser,
6479  # not just through cpp. "Syntax error" is here to catch this case.
6480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481/* end confdefs.h.  */
6482#ifdef __STDC__
6483# include <limits.h>
6484#else
6485# include <assert.h>
6486#endif
6487		     Syntax error
6488_ACEOF
6489if ac_fn_c_try_cpp "$LINENO"; then :
6490
6491else
6492  # Broken: fails on valid input.
6493continue
6494fi
6495rm -f conftest.err conftest.i conftest.$ac_ext
6496
6497  # OK, works on sane cases.  Now check whether nonexistent headers
6498  # can be detected and how.
6499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500/* end confdefs.h.  */
6501#include <ac_nonexistent.h>
6502_ACEOF
6503if ac_fn_c_try_cpp "$LINENO"; then :
6504  # Broken: success on invalid input.
6505continue
6506else
6507  # Passes both tests.
6508ac_preproc_ok=:
6509break
6510fi
6511rm -f conftest.err conftest.i conftest.$ac_ext
6512
6513done
6514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6515rm -f conftest.i conftest.err conftest.$ac_ext
6516if $ac_preproc_ok; then :
6517  break
6518fi
6519
6520    done
6521    ac_cv_prog_CPP=$CPP
6522
6523fi
6524  CPP=$ac_cv_prog_CPP
6525else
6526  ac_cv_prog_CPP=$CPP
6527fi
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6529$as_echo "$CPP" >&6; }
6530ac_preproc_ok=false
6531for ac_c_preproc_warn_flag in '' yes
6532do
6533  # Use a header file that comes with gcc, so configuring glibc
6534  # with a fresh cross-compiler works.
6535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6536  # <limits.h> exists even on freestanding compilers.
6537  # On the NeXT, cc -E runs the code through the compiler's parser,
6538  # not just through cpp. "Syntax error" is here to catch this case.
6539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h.  */
6541#ifdef __STDC__
6542# include <limits.h>
6543#else
6544# include <assert.h>
6545#endif
6546		     Syntax error
6547_ACEOF
6548if ac_fn_c_try_cpp "$LINENO"; then :
6549
6550else
6551  # Broken: fails on valid input.
6552continue
6553fi
6554rm -f conftest.err conftest.i conftest.$ac_ext
6555
6556  # OK, works on sane cases.  Now check whether nonexistent headers
6557  # can be detected and how.
6558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559/* end confdefs.h.  */
6560#include <ac_nonexistent.h>
6561_ACEOF
6562if ac_fn_c_try_cpp "$LINENO"; then :
6563  # Broken: success on invalid input.
6564continue
6565else
6566  # Passes both tests.
6567ac_preproc_ok=:
6568break
6569fi
6570rm -f conftest.err conftest.i conftest.$ac_ext
6571
6572done
6573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6574rm -f conftest.i conftest.err conftest.$ac_ext
6575if $ac_preproc_ok; then :
6576
6577else
6578  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6580as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6581See \`config.log' for more details" "$LINENO" 5 ; }
6582fi
6583
6584ac_ext=c
6585ac_cpp='$CPP $CPPFLAGS'
6586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6588ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589
6590
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6592$as_echo_n "checking for ANSI C header files... " >&6; }
6593if test "${ac_cv_header_stdc+set}" = set; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598#include <stdlib.h>
6599#include <stdarg.h>
6600#include <string.h>
6601#include <float.h>
6602
6603int
6604main ()
6605{
6606
6607  ;
6608  return 0;
6609}
6610_ACEOF
6611if ac_fn_c_try_compile "$LINENO"; then :
6612  ac_cv_header_stdc=yes
6613else
6614  ac_cv_header_stdc=no
6615fi
6616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617
6618if test $ac_cv_header_stdc = yes; then
6619  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621/* end confdefs.h.  */
6622#include <string.h>
6623
6624_ACEOF
6625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6626  $EGREP "memchr" >/dev/null 2>&1; then :
6627
6628else
6629  ac_cv_header_stdc=no
6630fi
6631rm -f conftest*
6632
6633fi
6634
6635if test $ac_cv_header_stdc = yes; then
6636  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h.  */
6639#include <stdlib.h>
6640
6641_ACEOF
6642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6643  $EGREP "free" >/dev/null 2>&1; then :
6644
6645else
6646  ac_cv_header_stdc=no
6647fi
6648rm -f conftest*
6649
6650fi
6651
6652if test $ac_cv_header_stdc = yes; then
6653  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6654  if test "$cross_compiling" = yes; then :
6655  :
6656else
6657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h.  */
6659#include <ctype.h>
6660#include <stdlib.h>
6661#if ((' ' & 0x0FF) == 0x020)
6662# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6663# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6664#else
6665# define ISLOWER(c) \
6666		   (('a' <= (c) && (c) <= 'i') \
6667		     || ('j' <= (c) && (c) <= 'r') \
6668		     || ('s' <= (c) && (c) <= 'z'))
6669# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6670#endif
6671
6672#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6673int
6674main ()
6675{
6676  int i;
6677  for (i = 0; i < 256; i++)
6678    if (XOR (islower (i), ISLOWER (i))
6679	|| toupper (i) != TOUPPER (i))
6680      return 2;
6681  return 0;
6682}
6683_ACEOF
6684if ac_fn_c_try_run "$LINENO"; then :
6685
6686else
6687  ac_cv_header_stdc=no
6688fi
6689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6690  conftest.$ac_objext conftest.beam conftest.$ac_ext
6691fi
6692
6693fi
6694fi
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6696$as_echo "$ac_cv_header_stdc" >&6; }
6697if test $ac_cv_header_stdc = yes; then
6698
6699$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6700
6701fi
6702
6703# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6704for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6705		  inttypes.h stdint.h unistd.h
6706do :
6707  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6708ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6709"
6710if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6711  cat >>confdefs.h <<_ACEOF
6712#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6713_ACEOF
6714
6715fi
6716
6717done
6718
6719
6720for ac_header in dlfcn.h
6721do :
6722  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6723"
6724if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6725  cat >>confdefs.h <<_ACEOF
6726#define HAVE_DLFCN_H 1
6727_ACEOF
6728
6729fi
6730
6731done
6732
6733
6734
6735# Set options
6736
6737
6738
6739        enable_dlopen=no
6740
6741
6742  enable_win32_dll=no
6743
6744
6745            # Check whether --enable-shared was given.
6746if test "${enable_shared+set}" = set; then :
6747  enableval=$enable_shared; p=${PACKAGE-default}
6748    case $enableval in
6749    yes) enable_shared=yes ;;
6750    no) enable_shared=no ;;
6751    *)
6752      enable_shared=no
6753      # Look at the argument we got.  We use all the common list separators.
6754      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6755      for pkg in $enableval; do
6756	IFS="$lt_save_ifs"
6757	if test "X$pkg" = "X$p"; then
6758	  enable_shared=yes
6759	fi
6760      done
6761      IFS="$lt_save_ifs"
6762      ;;
6763    esac
6764else
6765  enable_shared=yes
6766fi
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776  # Check whether --enable-static was given.
6777if test "${enable_static+set}" = set; then :
6778  enableval=$enable_static; p=${PACKAGE-default}
6779    case $enableval in
6780    yes) enable_static=yes ;;
6781    no) enable_static=no ;;
6782    *)
6783     enable_static=no
6784      # Look at the argument we got.  We use all the common list separators.
6785      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6786      for pkg in $enableval; do
6787	IFS="$lt_save_ifs"
6788	if test "X$pkg" = "X$p"; then
6789	  enable_static=yes
6790	fi
6791      done
6792      IFS="$lt_save_ifs"
6793      ;;
6794    esac
6795else
6796  enable_static=yes
6797fi
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808# Check whether --with-pic was given.
6809if test "${with_pic+set}" = set; then :
6810  withval=$with_pic; pic_mode="$withval"
6811else
6812  pic_mode=default
6813fi
6814
6815
6816test -z "$pic_mode" && pic_mode=default
6817
6818
6819
6820
6821
6822
6823
6824  # Check whether --enable-fast-install was given.
6825if test "${enable_fast_install+set}" = set; then :
6826  enableval=$enable_fast_install; p=${PACKAGE-default}
6827    case $enableval in
6828    yes) enable_fast_install=yes ;;
6829    no) enable_fast_install=no ;;
6830    *)
6831      enable_fast_install=no
6832      # Look at the argument we got.  We use all the common list separators.
6833      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6834      for pkg in $enableval; do
6835	IFS="$lt_save_ifs"
6836	if test "X$pkg" = "X$p"; then
6837	  enable_fast_install=yes
6838	fi
6839      done
6840      IFS="$lt_save_ifs"
6841      ;;
6842    esac
6843else
6844  enable_fast_install=yes
6845fi
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857# This can be used to rebuild libtool when needed
6858LIBTOOL_DEPS="$ltmain"
6859
6860# Always use our own libtool.
6861LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887test -z "$LN_S" && LN_S="ln -s"
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902if test -n "${ZSH_VERSION+set}" ; then
6903   setopt NO_GLOB_SUBST
6904fi
6905
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6907$as_echo_n "checking for objdir... " >&6; }
6908if test "${lt_cv_objdir+set}" = set; then :
6909  $as_echo_n "(cached) " >&6
6910else
6911  rm -f .libs 2>/dev/null
6912mkdir .libs 2>/dev/null
6913if test -d .libs; then
6914  lt_cv_objdir=.libs
6915else
6916  # MS-DOS does not allow filenames that begin with a dot.
6917  lt_cv_objdir=_libs
6918fi
6919rmdir .libs 2>/dev/null
6920fi
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6922$as_echo "$lt_cv_objdir" >&6; }
6923objdir=$lt_cv_objdir
6924
6925
6926
6927
6928
6929cat >>confdefs.h <<_ACEOF
6930#define LT_OBJDIR "$lt_cv_objdir/"
6931_ACEOF
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949case $host_os in
6950aix3*)
6951  # AIX sometimes has problems with the GCC collect2 program.  For some
6952  # reason, if we set the COLLECT_NAMES environment variable, the problems
6953  # vanish in a puff of smoke.
6954  if test "X${COLLECT_NAMES+set}" != Xset; then
6955    COLLECT_NAMES=
6956    export COLLECT_NAMES
6957  fi
6958  ;;
6959esac
6960
6961# Sed substitution that helps us do robust quoting.  It backslashifies
6962# metacharacters that are still active within double-quoted strings.
6963sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6964
6965# Same as above, but do not quote variable references.
6966double_quote_subst='s/\(["`\\]\)/\\\1/g'
6967
6968# Sed substitution to delay expansion of an escaped shell variable in a
6969# double_quote_subst'ed string.
6970delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6971
6972# Sed substitution to delay expansion of an escaped single quote.
6973delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6974
6975# Sed substitution to avoid accidental globbing in evaled expressions
6976no_glob_subst='s/\*/\\\*/g'
6977
6978# Global variables:
6979ofile=libtool
6980can_build_shared=yes
6981
6982# All known linkers require a `.a' archive for static linking (except MSVC,
6983# which needs '.lib').
6984libext=a
6985
6986with_gnu_ld="$lt_cv_prog_gnu_ld"
6987
6988old_CC="$CC"
6989old_CFLAGS="$CFLAGS"
6990
6991# Set sane defaults for various variables
6992test -z "$CC" && CC=cc
6993test -z "$LTCC" && LTCC=$CC
6994test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6995test -z "$LD" && LD=ld
6996test -z "$ac_objext" && ac_objext=o
6997
6998for cc_temp in $compiler""; do
6999  case $cc_temp in
7000    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7001    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7002    \-*) ;;
7003    *) break;;
7004  esac
7005done
7006cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7007
7008
7009# Only perform the check for file, if the check method requires it
7010test -z "$MAGIC_CMD" && MAGIC_CMD=file
7011case $deplibs_check_method in
7012file_magic*)
7013  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7015$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7016if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7017  $as_echo_n "(cached) " >&6
7018else
7019  case $MAGIC_CMD in
7020[\\/*] |  ?:[\\/]*)
7021  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7022  ;;
7023*)
7024  lt_save_MAGIC_CMD="$MAGIC_CMD"
7025  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7026  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7027  for ac_dir in $ac_dummy; do
7028    IFS="$lt_save_ifs"
7029    test -z "$ac_dir" && ac_dir=.
7030    if test -f $ac_dir/${ac_tool_prefix}file; then
7031      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7032      if test -n "$file_magic_test_file"; then
7033	case $deplibs_check_method in
7034	"file_magic "*)
7035	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7036	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7037	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7038	    $EGREP "$file_magic_regex" > /dev/null; then
7039	    :
7040	  else
7041	    cat <<_LT_EOF 1>&2
7042
7043*** Warning: the command libtool uses to detect shared libraries,
7044*** $file_magic_cmd, produces output that libtool cannot recognize.
7045*** The result is that libtool may fail to recognize shared libraries
7046*** as such.  This will affect the creation of libtool libraries that
7047*** depend on shared libraries, but programs linked with such libtool
7048*** libraries will work regardless of this problem.  Nevertheless, you
7049*** may want to report the problem to your system manager and/or to
7050*** [email protected]
7051
7052_LT_EOF
7053	  fi ;;
7054	esac
7055      fi
7056      break
7057    fi
7058  done
7059  IFS="$lt_save_ifs"
7060  MAGIC_CMD="$lt_save_MAGIC_CMD"
7061  ;;
7062esac
7063fi
7064
7065MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7066if test -n "$MAGIC_CMD"; then
7067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7068$as_echo "$MAGIC_CMD" >&6; }
7069else
7070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071$as_echo "no" >&6; }
7072fi
7073
7074
7075
7076
7077
7078if test -z "$lt_cv_path_MAGIC_CMD"; then
7079  if test -n "$ac_tool_prefix"; then
7080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7081$as_echo_n "checking for file... " >&6; }
7082if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7083  $as_echo_n "(cached) " >&6
7084else
7085  case $MAGIC_CMD in
7086[\\/*] |  ?:[\\/]*)
7087  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7088  ;;
7089*)
7090  lt_save_MAGIC_CMD="$MAGIC_CMD"
7091  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7092  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7093  for ac_dir in $ac_dummy; do
7094    IFS="$lt_save_ifs"
7095    test -z "$ac_dir" && ac_dir=.
7096    if test -f $ac_dir/file; then
7097      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7098      if test -n "$file_magic_test_file"; then
7099	case $deplibs_check_method in
7100	"file_magic "*)
7101	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7102	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7103	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7104	    $EGREP "$file_magic_regex" > /dev/null; then
7105	    :
7106	  else
7107	    cat <<_LT_EOF 1>&2
7108
7109*** Warning: the command libtool uses to detect shared libraries,
7110*** $file_magic_cmd, produces output that libtool cannot recognize.
7111*** The result is that libtool may fail to recognize shared libraries
7112*** as such.  This will affect the creation of libtool libraries that
7113*** depend on shared libraries, but programs linked with such libtool
7114*** libraries will work regardless of this problem.  Nevertheless, you
7115*** may want to report the problem to your system manager and/or to
7116*** [email protected]
7117
7118_LT_EOF
7119	  fi ;;
7120	esac
7121      fi
7122      break
7123    fi
7124  done
7125  IFS="$lt_save_ifs"
7126  MAGIC_CMD="$lt_save_MAGIC_CMD"
7127  ;;
7128esac
7129fi
7130
7131MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7132if test -n "$MAGIC_CMD"; then
7133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7134$as_echo "$MAGIC_CMD" >&6; }
7135else
7136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137$as_echo "no" >&6; }
7138fi
7139
7140
7141  else
7142    MAGIC_CMD=:
7143  fi
7144fi
7145
7146  fi
7147  ;;
7148esac
7149
7150# Use C for the default configuration in the libtool script
7151
7152lt_save_CC="$CC"
7153ac_ext=c
7154ac_cpp='$CPP $CPPFLAGS'
7155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157ac_compiler_gnu=$ac_cv_c_compiler_gnu
7158
7159
7160# Source file extension for C test sources.
7161ac_ext=c
7162
7163# Object file extension for compiled C test sources.
7164objext=o
7165objext=$objext
7166
7167# Code to be used in simple compile tests
7168lt_simple_compile_test_code="int some_variable = 0;"
7169
7170# Code to be used in simple link tests
7171lt_simple_link_test_code='int main(){return(0);}'
7172
7173
7174
7175
7176
7177
7178
7179# If no C compiler was specified, use CC.
7180LTCC=${LTCC-"$CC"}
7181
7182# If no C compiler flags were specified, use CFLAGS.
7183LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7184
7185# Allow CC to be a program name with arguments.
7186compiler=$CC
7187
7188# Save the default compiler, since it gets overwritten when the other
7189# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7190compiler_DEFAULT=$CC
7191
7192# save warnings/boilerplate of simple test code
7193ac_outfile=conftest.$ac_objext
7194echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7195eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7196_lt_compiler_boilerplate=`cat conftest.err`
7197$RM conftest*
7198
7199ac_outfile=conftest.$ac_objext
7200echo "$lt_simple_link_test_code" >conftest.$ac_ext
7201eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7202_lt_linker_boilerplate=`cat conftest.err`
7203$RM -r conftest*
7204
7205
7206if test -n "$compiler"; then
7207
7208lt_prog_compiler_no_builtin_flag=
7209
7210if test "$GCC" = yes; then
7211  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7212
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7214$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7215if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7216  $as_echo_n "(cached) " >&6
7217else
7218  lt_cv_prog_compiler_rtti_exceptions=no
7219   ac_outfile=conftest.$ac_objext
7220   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7221   lt_compiler_flag="-fno-rtti -fno-exceptions"
7222   # Insert the option either (1) after the last *FLAGS variable, or
7223   # (2) before a word containing "conftest.", or (3) at the end.
7224   # Note that $ac_compile itself does not contain backslashes and begins
7225   # with a dollar sign (not a hyphen), so the echo should work correctly.
7226   # The option is referenced via a variable to avoid confusing sed.
7227   lt_compile=`echo "$ac_compile" | $SED \
7228   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7229   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7230   -e 's:$: $lt_compiler_flag:'`
7231   (eval echo "\"\$as_me:7231: $lt_compile\"" >&5)
7232   (eval "$lt_compile" 2>conftest.err)
7233   ac_status=$?
7234   cat conftest.err >&5
7235   echo "$as_me:7235: \$? = $ac_status" >&5
7236   if (exit $ac_status) && test -s "$ac_outfile"; then
7237     # The compiler can only warn and ignore the option if not recognized
7238     # So say no if there are warnings other than the usual output.
7239     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7240     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7241     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7242       lt_cv_prog_compiler_rtti_exceptions=yes
7243     fi
7244   fi
7245   $RM conftest*
7246
7247fi
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7249$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7250
7251if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7252    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7253else
7254    :
7255fi
7256
7257fi
7258
7259
7260
7261
7262
7263
7264  lt_prog_compiler_wl=
7265lt_prog_compiler_pic=
7266lt_prog_compiler_static=
7267
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7269$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7270
7271  if test "$GCC" = yes; then
7272    lt_prog_compiler_wl='-Wl,'
7273    lt_prog_compiler_static='-static'
7274
7275    case $host_os in
7276      aix*)
7277      # All AIX code is PIC.
7278      if test "$host_cpu" = ia64; then
7279	# AIX 5 now supports IA64 processor
7280	lt_prog_compiler_static='-Bstatic'
7281      fi
7282      ;;
7283
7284    amigaos*)
7285      case $host_cpu in
7286      powerpc)
7287            # see comment about AmigaOS4 .so support
7288            lt_prog_compiler_pic='-fPIC'
7289        ;;
7290      m68k)
7291            # FIXME: we need at least 68020 code to build shared libraries, but
7292            # adding the `-m68020' flag to GCC prevents building anything better,
7293            # like `-m68040'.
7294            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7295        ;;
7296      esac
7297      ;;
7298
7299    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7300      # PIC is the default for these OSes.
7301      ;;
7302
7303    mingw* | cygwin* | pw32* | os2* | cegcc*)
7304      # This hack is so that the source file can tell whether it is being
7305      # built for inclusion in a dll (and should export symbols for example).
7306      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7307      # (--disable-auto-import) libraries
7308      lt_prog_compiler_pic='-DDLL_EXPORT'
7309      ;;
7310
7311    darwin* | rhapsody*)
7312      # PIC is the default on this platform
7313      # Common symbols not allowed in MH_DYLIB files
7314      lt_prog_compiler_pic='-fno-common'
7315      ;;
7316
7317    hpux*)
7318      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7319      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7320      # sets the default TLS model and affects inlining.
7321      case $host_cpu in
7322      hppa*64*)
7323	# +Z the default
7324	;;
7325      *)
7326	lt_prog_compiler_pic='-fPIC'
7327	;;
7328      esac
7329      ;;
7330
7331    interix[3-9]*)
7332      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7333      # Instead, we relocate shared libraries at runtime.
7334      ;;
7335
7336    msdosdjgpp*)
7337      # Just because we use GCC doesn't mean we suddenly get shared libraries
7338      # on systems that don't support them.
7339      lt_prog_compiler_can_build_shared=no
7340      enable_shared=no
7341      ;;
7342
7343    *nto* | *qnx*)
7344      # QNX uses GNU C++, but need to define -shared option too, otherwise
7345      # it will coredump.
7346      lt_prog_compiler_pic='-fPIC -shared'
7347      ;;
7348
7349    sysv4*MP*)
7350      if test -d /usr/nec; then
7351	lt_prog_compiler_pic=-Kconform_pic
7352      fi
7353      ;;
7354
7355    *)
7356      lt_prog_compiler_pic='-fPIC'
7357      ;;
7358    esac
7359  else
7360    # PORTME Check for flag to pass linker flags through the system compiler.
7361    case $host_os in
7362    aix*)
7363      lt_prog_compiler_wl='-Wl,'
7364      if test "$host_cpu" = ia64; then
7365	# AIX 5 now supports IA64 processor
7366	lt_prog_compiler_static='-Bstatic'
7367      else
7368	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7369      fi
7370      ;;
7371
7372    mingw* | cygwin* | pw32* | os2* | cegcc*)
7373      # This hack is so that the source file can tell whether it is being
7374      # built for inclusion in a dll (and should export symbols for example).
7375      lt_prog_compiler_pic='-DDLL_EXPORT'
7376      ;;
7377
7378    hpux9* | hpux10* | hpux11*)
7379      lt_prog_compiler_wl='-Wl,'
7380      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7381      # not for PA HP-UX.
7382      case $host_cpu in
7383      hppa*64*|ia64*)
7384	# +Z the default
7385	;;
7386      *)
7387	lt_prog_compiler_pic='+Z'
7388	;;
7389      esac
7390      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7391      lt_prog_compiler_static='${wl}-a ${wl}archive'
7392      ;;
7393
7394    irix5* | irix6* | nonstopux*)
7395      lt_prog_compiler_wl='-Wl,'
7396      # PIC (with -KPIC) is the default.
7397      lt_prog_compiler_static='-non_shared'
7398      ;;
7399
7400    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7401      case $cc_basename in
7402      # old Intel for x86_64 which still supported -KPIC.
7403      ecc*)
7404	lt_prog_compiler_wl='-Wl,'
7405	lt_prog_compiler_pic='-KPIC'
7406	lt_prog_compiler_static='-static'
7407        ;;
7408      # icc used to be incompatible with GCC.
7409      # ICC 10 doesn't accept -KPIC any more.
7410      icc* | ifort*)
7411	lt_prog_compiler_wl='-Wl,'
7412	lt_prog_compiler_pic='-fPIC'
7413	lt_prog_compiler_static='-static'
7414        ;;
7415      # Lahey Fortran 8.1.
7416      lf95*)
7417	lt_prog_compiler_wl='-Wl,'
7418	lt_prog_compiler_pic='--shared'
7419	lt_prog_compiler_static='--static'
7420	;;
7421      pgcc* | pgf77* | pgf90* | pgf95*)
7422        # Portland Group compilers (*not* the Pentium gcc compiler,
7423	# which looks to be a dead project)
7424	lt_prog_compiler_wl='-Wl,'
7425	lt_prog_compiler_pic='-fpic'
7426	lt_prog_compiler_static='-Bstatic'
7427        ;;
7428      ccc*)
7429        lt_prog_compiler_wl='-Wl,'
7430        # All Alpha code is PIC.
7431        lt_prog_compiler_static='-non_shared'
7432        ;;
7433      xl*)
7434	# IBM XL C 8.0/Fortran 10.1 on PPC
7435	lt_prog_compiler_wl='-Wl,'
7436	lt_prog_compiler_pic='-qpic'
7437	lt_prog_compiler_static='-qstaticlink'
7438	;;
7439      *)
7440	case `$CC -V 2>&1 | sed 5q` in
7441	*Sun\ C*)
7442	  # Sun C 5.9
7443	  lt_prog_compiler_pic='-KPIC'
7444	  lt_prog_compiler_static='-Bstatic'
7445	  lt_prog_compiler_wl='-Wl,'
7446	  ;;
7447	*Sun\ F*)
7448	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7449	  lt_prog_compiler_pic='-KPIC'
7450	  lt_prog_compiler_static='-Bstatic'
7451	  lt_prog_compiler_wl=''
7452	  ;;
7453	esac
7454	;;
7455      esac
7456      ;;
7457
7458    newsos6)
7459      lt_prog_compiler_pic='-KPIC'
7460      lt_prog_compiler_static='-Bstatic'
7461      ;;
7462
7463    *nto* | *qnx*)
7464      # QNX uses GNU C++, but need to define -shared option too, otherwise
7465      # it will coredump.
7466      lt_prog_compiler_pic='-fPIC -shared'
7467      ;;
7468
7469    osf3* | osf4* | osf5*)
7470      lt_prog_compiler_wl='-Wl,'
7471      # All OSF/1 code is PIC.
7472      lt_prog_compiler_static='-non_shared'
7473      ;;
7474
7475    rdos*)
7476      lt_prog_compiler_static='-non_shared'
7477      ;;
7478
7479    solaris*)
7480      lt_prog_compiler_pic='-KPIC'
7481      lt_prog_compiler_static='-Bstatic'
7482      case $cc_basename in
7483      f77* | f90* | f95*)
7484	lt_prog_compiler_wl='-Qoption ld ';;
7485      *)
7486	lt_prog_compiler_wl='-Wl,';;
7487      esac
7488      ;;
7489
7490    sunos4*)
7491      lt_prog_compiler_wl='-Qoption ld '
7492      lt_prog_compiler_pic='-PIC'
7493      lt_prog_compiler_static='-Bstatic'
7494      ;;
7495
7496    sysv4 | sysv4.2uw2* | sysv4.3*)
7497      lt_prog_compiler_wl='-Wl,'
7498      lt_prog_compiler_pic='-KPIC'
7499      lt_prog_compiler_static='-Bstatic'
7500      ;;
7501
7502    sysv4*MP*)
7503      if test -d /usr/nec ;then
7504	lt_prog_compiler_pic='-Kconform_pic'
7505	lt_prog_compiler_static='-Bstatic'
7506      fi
7507      ;;
7508
7509    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7510      lt_prog_compiler_wl='-Wl,'
7511      lt_prog_compiler_pic='-KPIC'
7512      lt_prog_compiler_static='-Bstatic'
7513      ;;
7514
7515    unicos*)
7516      lt_prog_compiler_wl='-Wl,'
7517      lt_prog_compiler_can_build_shared=no
7518      ;;
7519
7520    uts4*)
7521      lt_prog_compiler_pic='-pic'
7522      lt_prog_compiler_static='-Bstatic'
7523      ;;
7524
7525    *)
7526      lt_prog_compiler_can_build_shared=no
7527      ;;
7528    esac
7529  fi
7530
7531case $host_os in
7532  # For platforms which do not support PIC, -DPIC is meaningless:
7533  *djgpp*)
7534    lt_prog_compiler_pic=
7535    ;;
7536  *)
7537    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7538    ;;
7539esac
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7541$as_echo "$lt_prog_compiler_pic" >&6; }
7542
7543
7544
7545
7546
7547
7548#
7549# Check to make sure the PIC flag actually works.
7550#
7551if test -n "$lt_prog_compiler_pic"; then
7552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7553$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7554if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7555  $as_echo_n "(cached) " >&6
7556else
7557  lt_cv_prog_compiler_pic_works=no
7558   ac_outfile=conftest.$ac_objext
7559   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7560   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7561   # Insert the option either (1) after the last *FLAGS variable, or
7562   # (2) before a word containing "conftest.", or (3) at the end.
7563   # Note that $ac_compile itself does not contain backslashes and begins
7564   # with a dollar sign (not a hyphen), so the echo should work correctly.
7565   # The option is referenced via a variable to avoid confusing sed.
7566   lt_compile=`echo "$ac_compile" | $SED \
7567   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7568   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7569   -e 's:$: $lt_compiler_flag:'`
7570   (eval echo "\"\$as_me:7570: $lt_compile\"" >&5)
7571   (eval "$lt_compile" 2>conftest.err)
7572   ac_status=$?
7573   cat conftest.err >&5
7574   echo "$as_me:7574: \$? = $ac_status" >&5
7575   if (exit $ac_status) && test -s "$ac_outfile"; then
7576     # The compiler can only warn and ignore the option if not recognized
7577     # So say no if there are warnings other than the usual output.
7578     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7579     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7580     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7581       lt_cv_prog_compiler_pic_works=yes
7582     fi
7583   fi
7584   $RM conftest*
7585
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7588$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7589
7590if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7591    case $lt_prog_compiler_pic in
7592     "" | " "*) ;;
7593     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7594     esac
7595else
7596    lt_prog_compiler_pic=
7597     lt_prog_compiler_can_build_shared=no
7598fi
7599
7600fi
7601
7602
7603
7604
7605
7606
7607#
7608# Check to make sure the static flag actually works.
7609#
7610wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7612$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7613if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7614  $as_echo_n "(cached) " >&6
7615else
7616  lt_cv_prog_compiler_static_works=no
7617   save_LDFLAGS="$LDFLAGS"
7618   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7619   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7620   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7621     # The linker can only warn and ignore the option if not recognized
7622     # So say no if there are warnings
7623     if test -s conftest.err; then
7624       # Append any errors to the config.log.
7625       cat conftest.err 1>&5
7626       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7627       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7628       if diff conftest.exp conftest.er2 >/dev/null; then
7629         lt_cv_prog_compiler_static_works=yes
7630       fi
7631     else
7632       lt_cv_prog_compiler_static_works=yes
7633     fi
7634   fi
7635   $RM -r conftest*
7636   LDFLAGS="$save_LDFLAGS"
7637
7638fi
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7640$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7641
7642if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7643    :
7644else
7645    lt_prog_compiler_static=
7646fi
7647
7648
7649
7650
7651
7652
7653
7654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7655$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7656if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7657  $as_echo_n "(cached) " >&6
7658else
7659  lt_cv_prog_compiler_c_o=no
7660   $RM -r conftest 2>/dev/null
7661   mkdir conftest
7662   cd conftest
7663   mkdir out
7664   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7665
7666   lt_compiler_flag="-o out/conftest2.$ac_objext"
7667   # Insert the option either (1) after the last *FLAGS variable, or
7668   # (2) before a word containing "conftest.", or (3) at the end.
7669   # Note that $ac_compile itself does not contain backslashes and begins
7670   # with a dollar sign (not a hyphen), so the echo should work correctly.
7671   lt_compile=`echo "$ac_compile" | $SED \
7672   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7673   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7674   -e 's:$: $lt_compiler_flag:'`
7675   (eval echo "\"\$as_me:7675: $lt_compile\"" >&5)
7676   (eval "$lt_compile" 2>out/conftest.err)
7677   ac_status=$?
7678   cat out/conftest.err >&5
7679   echo "$as_me:7679: \$? = $ac_status" >&5
7680   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7681   then
7682     # The compiler can only warn and ignore the option if not recognized
7683     # So say no if there are warnings
7684     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7685     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7686     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7687       lt_cv_prog_compiler_c_o=yes
7688     fi
7689   fi
7690   chmod u+w . 2>&5
7691   $RM conftest*
7692   # SGI C++ compiler will create directory out/ii_files/ for
7693   # template instantiation
7694   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7695   $RM out/* && rmdir out
7696   cd ..
7697   $RM -r conftest
7698   $RM conftest*
7699
7700fi
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7702$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7703
7704
7705
7706
7707
7708
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7710$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7711if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  lt_cv_prog_compiler_c_o=no
7715   $RM -r conftest 2>/dev/null
7716   mkdir conftest
7717   cd conftest
7718   mkdir out
7719   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7720
7721   lt_compiler_flag="-o out/conftest2.$ac_objext"
7722   # Insert the option either (1) after the last *FLAGS variable, or
7723   # (2) before a word containing "conftest.", or (3) at the end.
7724   # Note that $ac_compile itself does not contain backslashes and begins
7725   # with a dollar sign (not a hyphen), so the echo should work correctly.
7726   lt_compile=`echo "$ac_compile" | $SED \
7727   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7728   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7729   -e 's:$: $lt_compiler_flag:'`
7730   (eval echo "\"\$as_me:7730: $lt_compile\"" >&5)
7731   (eval "$lt_compile" 2>out/conftest.err)
7732   ac_status=$?
7733   cat out/conftest.err >&5
7734   echo "$as_me:7734: \$? = $ac_status" >&5
7735   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7736   then
7737     # The compiler can only warn and ignore the option if not recognized
7738     # So say no if there are warnings
7739     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7740     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7741     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7742       lt_cv_prog_compiler_c_o=yes
7743     fi
7744   fi
7745   chmod u+w . 2>&5
7746   $RM conftest*
7747   # SGI C++ compiler will create directory out/ii_files/ for
7748   # template instantiation
7749   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7750   $RM out/* && rmdir out
7751   cd ..
7752   $RM -r conftest
7753   $RM conftest*
7754
7755fi
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7757$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7758
7759
7760
7761
7762hard_links="nottested"
7763if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7764  # do not overwrite the value of need_locks provided by the user
7765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7766$as_echo_n "checking if we can lock with hard links... " >&6; }
7767  hard_links=yes
7768  $RM conftest*
7769  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7770  touch conftest.a
7771  ln conftest.a conftest.b 2>&5 || hard_links=no
7772  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7774$as_echo "$hard_links" >&6; }
7775  if test "$hard_links" = no; then
7776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7777$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7778    need_locks=warn
7779  fi
7780else
7781  need_locks=no
7782fi
7783
7784
7785
7786
7787
7788
7789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7790$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7791
7792  runpath_var=
7793  allow_undefined_flag=
7794  always_export_symbols=no
7795  archive_cmds=
7796  archive_expsym_cmds=
7797  compiler_needs_object=no
7798  enable_shared_with_static_runtimes=no
7799  export_dynamic_flag_spec=
7800  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7801  hardcode_automatic=no
7802  hardcode_direct=no
7803  hardcode_direct_absolute=no
7804  hardcode_libdir_flag_spec=
7805  hardcode_libdir_flag_spec_ld=
7806  hardcode_libdir_separator=
7807  hardcode_minus_L=no
7808  hardcode_shlibpath_var=unsupported
7809  inherit_rpath=no
7810  link_all_deplibs=unknown
7811  module_cmds=
7812  module_expsym_cmds=
7813  old_archive_from_new_cmds=
7814  old_archive_from_expsyms_cmds=
7815  thread_safe_flag_spec=
7816  whole_archive_flag_spec=
7817  # include_expsyms should be a list of space-separated symbols to be *always*
7818  # included in the symbol list
7819  include_expsyms=
7820  # exclude_expsyms can be an extended regexp of symbols to exclude
7821  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7822  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7823  # as well as any symbol that contains `d'.
7824  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7825  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7826  # platforms (ab)use it in PIC code, but their linkers get confused if
7827  # the symbol is explicitly referenced.  Since portable code cannot
7828  # rely on this symbol name, it's probably fine to never include it in
7829  # preloaded symbol tables.
7830  # Exclude shared library initialization/finalization symbols.
7831  extract_expsyms_cmds=
7832
7833  case $host_os in
7834  cygwin* | mingw* | pw32* | cegcc*)
7835    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7836    # When not using gcc, we currently assume that we are using
7837    # Microsoft Visual C++.
7838    if test "$GCC" != yes; then
7839      with_gnu_ld=no
7840    fi
7841    ;;
7842  interix*)
7843    # we just hope/assume this is gcc and not c89 (= MSVC++)
7844    with_gnu_ld=yes
7845    ;;
7846  openbsd*)
7847    with_gnu_ld=no
7848    ;;
7849  linux* | k*bsd*-gnu)
7850    link_all_deplibs=no
7851    ;;
7852  esac
7853
7854  ld_shlibs=yes
7855  if test "$with_gnu_ld" = yes; then
7856    # If archive_cmds runs LD, not CC, wlarc should be empty
7857    wlarc='${wl}'
7858
7859    # Set some defaults for GNU ld with shared library support. These
7860    # are reset later if shared libraries are not supported. Putting them
7861    # here allows them to be overridden if necessary.
7862    runpath_var=LD_RUN_PATH
7863    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7864    export_dynamic_flag_spec='${wl}--export-dynamic'
7865    # ancient GNU ld didn't support --whole-archive et. al.
7866    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7867      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7868    else
7869      whole_archive_flag_spec=
7870    fi
7871    supports_anon_versioning=no
7872    case `$LD -v 2>&1` in
7873      *GNU\ gold*) supports_anon_versioning=yes ;;
7874      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7875      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7876      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7877      *\ 2.11.*) ;; # other 2.11 versions
7878      *) supports_anon_versioning=yes ;;
7879    esac
7880
7881    # See if GNU ld supports shared libraries.
7882    case $host_os in
7883    aix[3-9]*)
7884      # On AIX/PPC, the GNU linker is very broken
7885      if test "$host_cpu" != ia64; then
7886	ld_shlibs=no
7887	cat <<_LT_EOF 1>&2
7888
7889*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7890*** to be unable to reliably create shared libraries on AIX.
7891*** Therefore, libtool is disabling shared libraries support.  If you
7892*** really care for shared libraries, you may want to modify your PATH
7893*** so that a non-GNU linker is found, and then restart.
7894
7895_LT_EOF
7896      fi
7897      ;;
7898
7899    amigaos*)
7900      case $host_cpu in
7901      powerpc)
7902            # see comment about AmigaOS4 .so support
7903            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7904            archive_expsym_cmds=''
7905        ;;
7906      m68k)
7907            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)'
7908            hardcode_libdir_flag_spec='-L$libdir'
7909            hardcode_minus_L=yes
7910        ;;
7911      esac
7912      ;;
7913
7914    beos*)
7915      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7916	allow_undefined_flag=unsupported
7917	# Joseph Beckenbach <[email protected]> says some releases of gcc
7918	# support --undefined.  This deserves some investigation.  FIXME
7919	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7920      else
7921	ld_shlibs=no
7922      fi
7923      ;;
7924
7925    cygwin* | mingw* | pw32* | cegcc*)
7926      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7927      # as there is no search path for DLLs.
7928      hardcode_libdir_flag_spec='-L$libdir'
7929      allow_undefined_flag=unsupported
7930      always_export_symbols=no
7931      enable_shared_with_static_runtimes=yes
7932      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7933
7934      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7935        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7936	# If the export-symbols file already is a .def file (1st line
7937	# is EXPORTS), use it as is; otherwise, prepend...
7938	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7939	  cp $export_symbols $output_objdir/$soname.def;
7940	else
7941	  echo EXPORTS > $output_objdir/$soname.def;
7942	  cat $export_symbols >> $output_objdir/$soname.def;
7943	fi~
7944	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7945      else
7946	ld_shlibs=no
7947      fi
7948      ;;
7949
7950    interix[3-9]*)
7951      hardcode_direct=no
7952      hardcode_shlibpath_var=no
7953      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7954      export_dynamic_flag_spec='${wl}-E'
7955      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7956      # Instead, shared libraries are loaded at an image base (0x10000000 by
7957      # default) and relocated if they conflict, which is a slow very memory
7958      # consuming and fragmenting process.  To avoid this, we pick a random,
7959      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7960      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7961      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7962      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'
7963      ;;
7964
7965    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7966      tmp_diet=no
7967      if test "$host_os" = linux-dietlibc; then
7968	case $cc_basename in
7969	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7970	esac
7971      fi
7972      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7973	 && test "$tmp_diet" = no
7974      then
7975	tmp_addflag=
7976	tmp_sharedflag='-shared'
7977	case $cc_basename,$host_cpu in
7978        pgcc*)				# Portland Group C compiler
7979	  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'
7980	  tmp_addflag=' $pic_flag'
7981	  ;;
7982	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7983	  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'
7984	  tmp_addflag=' $pic_flag -Mnomain' ;;
7985	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7986	  tmp_addflag=' -i_dynamic' ;;
7987	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7988	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7989	ifc* | ifort*)			# Intel Fortran compiler
7990	  tmp_addflag=' -nofor_main' ;;
7991	lf95*)				# Lahey Fortran 8.1
7992	  whole_archive_flag_spec=
7993	  tmp_sharedflag='--shared' ;;
7994	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7995	  tmp_sharedflag='-qmkshrobj'
7996	  tmp_addflag= ;;
7997	esac
7998	case `$CC -V 2>&1 | sed 5q` in
7999	*Sun\ C*)			# Sun C 5.9
8000	  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'
8001	  compiler_needs_object=yes
8002	  tmp_sharedflag='-G' ;;
8003	*Sun\ F*)			# Sun Fortran 8.3
8004	  tmp_sharedflag='-G' ;;
8005	esac
8006	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8007
8008        if test "x$supports_anon_versioning" = xyes; then
8009          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8010	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8011	    echo "local: *; };" >> $output_objdir/$libname.ver~
8012	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8013        fi
8014
8015	case $cc_basename in
8016	xlf*)
8017	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8018	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8019	  hardcode_libdir_flag_spec=
8020	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8021	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8022	  if test "x$supports_anon_versioning" = xyes; then
8023	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8024	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8025	      echo "local: *; };" >> $output_objdir/$libname.ver~
8026	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8027	  fi
8028	  ;;
8029	esac
8030      else
8031        ld_shlibs=no
8032      fi
8033      ;;
8034
8035    netbsd* | netbsdelf*-gnu)
8036      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8037	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8038	wlarc=
8039      else
8040	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8041	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8042      fi
8043      ;;
8044
8045    solaris*)
8046      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8047	ld_shlibs=no
8048	cat <<_LT_EOF 1>&2
8049
8050*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8051*** create shared libraries on Solaris systems.  Therefore, libtool
8052*** is disabling shared libraries support.  We urge you to upgrade GNU
8053*** binutils to release 2.9.1 or newer.  Another option is to modify
8054*** your PATH or compiler configuration so that the native linker is
8055*** used, and then restart.
8056
8057_LT_EOF
8058      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8059	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8060	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8061      else
8062	ld_shlibs=no
8063      fi
8064      ;;
8065
8066    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8067      case `$LD -v 2>&1` in
8068        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8069	ld_shlibs=no
8070	cat <<_LT_EOF 1>&2
8071
8072*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8073*** reliably create shared libraries on SCO systems.  Therefore, libtool
8074*** is disabling shared libraries support.  We urge you to upgrade GNU
8075*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8076*** your PATH or compiler configuration so that the native linker is
8077*** used, and then restart.
8078
8079_LT_EOF
8080	;;
8081	*)
8082	  # For security reasons, it is highly recommended that you always
8083	  # use absolute paths for naming shared libraries, and exclude the
8084	  # DT_RUNPATH tag from executables and libraries.  But doing so
8085	  # requires that you compile everything twice, which is a pain.
8086	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8087	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8088	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8089	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8090	  else
8091	    ld_shlibs=no
8092	  fi
8093	;;
8094      esac
8095      ;;
8096
8097    sunos4*)
8098      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8099      wlarc=
8100      hardcode_direct=yes
8101      hardcode_shlibpath_var=no
8102      ;;
8103
8104    *)
8105      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8106	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8107	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8108      else
8109	ld_shlibs=no
8110      fi
8111      ;;
8112    esac
8113
8114    if test "$ld_shlibs" = no; then
8115      runpath_var=
8116      hardcode_libdir_flag_spec=
8117      export_dynamic_flag_spec=
8118      whole_archive_flag_spec=
8119    fi
8120  else
8121    # PORTME fill in a description of your system's linker (not GNU ld)
8122    case $host_os in
8123    aix3*)
8124      allow_undefined_flag=unsupported
8125      always_export_symbols=yes
8126      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'
8127      # Note: this linker hardcodes the directories in LIBPATH if there
8128      # are no directories specified by -L.
8129      hardcode_minus_L=yes
8130      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8131	# Neither direct hardcoding nor static linking is supported with a
8132	# broken collect2.
8133	hardcode_direct=unsupported
8134      fi
8135      ;;
8136
8137    aix[4-9]*)
8138      if test "$host_cpu" = ia64; then
8139	# On IA64, the linker does run time linking by default, so we don't
8140	# have to do anything special.
8141	aix_use_runtimelinking=no
8142	exp_sym_flag='-Bexport'
8143	no_entry_flag=""
8144      else
8145	# If we're using GNU nm, then we don't want the "-C" option.
8146	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8147	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8148	  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'
8149	else
8150	  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'
8151	fi
8152	aix_use_runtimelinking=no
8153
8154	# Test if we are trying to use run time linking or normal
8155	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8156	# need to do runtime linking.
8157	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8158	  for ld_flag in $LDFLAGS; do
8159	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8160	    aix_use_runtimelinking=yes
8161	    break
8162	  fi
8163	  done
8164	  ;;
8165	esac
8166
8167	exp_sym_flag='-bexport'
8168	no_entry_flag='-bnoentry'
8169      fi
8170
8171      # When large executables or shared objects are built, AIX ld can
8172      # have problems creating the table of contents.  If linking a library
8173      # or program results in "error TOC overflow" add -mminimal-toc to
8174      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8175      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8176
8177      archive_cmds=''
8178      hardcode_direct=yes
8179      hardcode_direct_absolute=yes
8180      hardcode_libdir_separator=':'
8181      link_all_deplibs=yes
8182      file_list_spec='${wl}-f,'
8183
8184      if test "$GCC" = yes; then
8185	case $host_os in aix4.[012]|aix4.[012].*)
8186	# We only want to do this on AIX 4.2 and lower, the check
8187	# below for broken collect2 doesn't work under 4.3+
8188	  collect2name=`${CC} -print-prog-name=collect2`
8189	  if test -f "$collect2name" &&
8190	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8191	  then
8192	  # We have reworked collect2
8193	  :
8194	  else
8195	  # We have old collect2
8196	  hardcode_direct=unsupported
8197	  # It fails to find uninstalled libraries when the uninstalled
8198	  # path is not listed in the libpath.  Setting hardcode_minus_L
8199	  # to unsupported forces relinking
8200	  hardcode_minus_L=yes
8201	  hardcode_libdir_flag_spec='-L$libdir'
8202	  hardcode_libdir_separator=
8203	  fi
8204	  ;;
8205	esac
8206	shared_flag='-shared'
8207	if test "$aix_use_runtimelinking" = yes; then
8208	  shared_flag="$shared_flag "'${wl}-G'
8209	fi
8210	link_all_deplibs=no
8211      else
8212	# not using gcc
8213	if test "$host_cpu" = ia64; then
8214	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8215	# chokes on -Wl,-G. The following line is correct:
8216	  shared_flag='-G'
8217	else
8218	  if test "$aix_use_runtimelinking" = yes; then
8219	    shared_flag='${wl}-G'
8220	  else
8221	    shared_flag='${wl}-bM:SRE'
8222	  fi
8223	fi
8224      fi
8225
8226      export_dynamic_flag_spec='${wl}-bexpall'
8227      # It seems that -bexpall does not export symbols beginning with
8228      # underscore (_), so it is better to generate a list of symbols to export.
8229      always_export_symbols=yes
8230      if test "$aix_use_runtimelinking" = yes; then
8231	# Warning - without using the other runtime loading flags (-brtl),
8232	# -berok will link without error, but may produce a broken library.
8233	allow_undefined_flag='-berok'
8234        # Determine the default libpath from the value encoded in an
8235        # empty executable.
8236        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237/* end confdefs.h.  */
8238
8239int
8240main ()
8241{
8242
8243  ;
8244  return 0;
8245}
8246_ACEOF
8247if ac_fn_c_try_link "$LINENO"; then :
8248
8249lt_aix_libpath_sed='
8250    /Import File Strings/,/^$/ {
8251	/^0/ {
8252	    s/^0  *\(.*\)$/\1/
8253	    p
8254	}
8255    }'
8256aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8257# Check for a 64-bit object if we didn't find anything.
8258if test -z "$aix_libpath"; then
8259  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8260fi
8261fi
8262rm -f core conftest.err conftest.$ac_objext \
8263    conftest$ac_exeext conftest.$ac_ext
8264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8265
8266        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8267        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"
8268      else
8269	if test "$host_cpu" = ia64; then
8270	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8271	  allow_undefined_flag="-z nodefs"
8272	  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"
8273	else
8274	 # Determine the default libpath from the value encoded in an
8275	 # empty executable.
8276	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h.  */
8278
8279int
8280main ()
8281{
8282
8283  ;
8284  return 0;
8285}
8286_ACEOF
8287if ac_fn_c_try_link "$LINENO"; then :
8288
8289lt_aix_libpath_sed='
8290    /Import File Strings/,/^$/ {
8291	/^0/ {
8292	    s/^0  *\(.*\)$/\1/
8293	    p
8294	}
8295    }'
8296aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8297# Check for a 64-bit object if we didn't find anything.
8298if test -z "$aix_libpath"; then
8299  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8300fi
8301fi
8302rm -f core conftest.err conftest.$ac_objext \
8303    conftest$ac_exeext conftest.$ac_ext
8304if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8305
8306	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8307	  # Warning - without using the other run time loading flags,
8308	  # -berok will link without error, but may produce a broken library.
8309	  no_undefined_flag=' ${wl}-bernotok'
8310	  allow_undefined_flag=' ${wl}-berok'
8311	  # Exported symbols can be pulled into shared objects from archives
8312	  whole_archive_flag_spec='$convenience'
8313	  archive_cmds_need_lc=yes
8314	  # This is similar to how AIX traditionally builds its shared libraries.
8315	  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'
8316	fi
8317      fi
8318      ;;
8319
8320    amigaos*)
8321      case $host_cpu in
8322      powerpc)
8323            # see comment about AmigaOS4 .so support
8324            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8325            archive_expsym_cmds=''
8326        ;;
8327      m68k)
8328            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)'
8329            hardcode_libdir_flag_spec='-L$libdir'
8330            hardcode_minus_L=yes
8331        ;;
8332      esac
8333      ;;
8334
8335    bsdi[45]*)
8336      export_dynamic_flag_spec=-rdynamic
8337      ;;
8338
8339    cygwin* | mingw* | pw32* | cegcc*)
8340      # When not using gcc, we currently assume that we are using
8341      # Microsoft Visual C++.
8342      # hardcode_libdir_flag_spec is actually meaningless, as there is
8343      # no search path for DLLs.
8344      hardcode_libdir_flag_spec=' '
8345      allow_undefined_flag=unsupported
8346      # Tell ltmain to make .lib files, not .a files.
8347      libext=lib
8348      # Tell ltmain to make .dll files, not .so files.
8349      shrext_cmds=".dll"
8350      # FIXME: Setting linknames here is a bad hack.
8351      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8352      # The linker will automatically build a .lib file if we build a DLL.
8353      old_archive_from_new_cmds='true'
8354      # FIXME: Should let the user specify the lib program.
8355      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8356      fix_srcfile_path='`cygpath -w "$srcfile"`'
8357      enable_shared_with_static_runtimes=yes
8358      ;;
8359
8360    darwin* | rhapsody*)
8361
8362
8363  archive_cmds_need_lc=no
8364  hardcode_direct=no
8365  hardcode_automatic=yes
8366  hardcode_shlibpath_var=unsupported
8367  whole_archive_flag_spec=''
8368  link_all_deplibs=yes
8369  allow_undefined_flag="$_lt_dar_allow_undefined"
8370  case $cc_basename in
8371     ifort*) _lt_dar_can_shared=yes ;;
8372     *) _lt_dar_can_shared=$GCC ;;
8373  esac
8374  if test "$_lt_dar_can_shared" = "yes"; then
8375    output_verbose_link_cmd=echo
8376    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8377    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8378    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}"
8379    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}"
8380
8381  else
8382  ld_shlibs=no
8383  fi
8384
8385      ;;
8386
8387    dgux*)
8388      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8389      hardcode_libdir_flag_spec='-L$libdir'
8390      hardcode_shlibpath_var=no
8391      ;;
8392
8393    freebsd1*)
8394      ld_shlibs=no
8395      ;;
8396
8397    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8398    # support.  Future versions do this automatically, but an explicit c++rt0.o
8399    # does not break anything, and helps significantly (at the cost of a little
8400    # extra space).
8401    freebsd2.2*)
8402      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8403      hardcode_libdir_flag_spec='-R$libdir'
8404      hardcode_direct=yes
8405      hardcode_shlibpath_var=no
8406      ;;
8407
8408    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8409    freebsd2*)
8410      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8411      hardcode_direct=yes
8412      hardcode_minus_L=yes
8413      hardcode_shlibpath_var=no
8414      ;;
8415
8416    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8417    freebsd* | dragonfly*)
8418      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8419      hardcode_libdir_flag_spec='-R$libdir'
8420      hardcode_direct=yes
8421      hardcode_shlibpath_var=no
8422      ;;
8423
8424    hpux9*)
8425      if test "$GCC" = yes; then
8426	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'
8427      else
8428	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'
8429      fi
8430      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8431      hardcode_libdir_separator=:
8432      hardcode_direct=yes
8433
8434      # hardcode_minus_L: Not really in the search PATH,
8435      # but as the default location of the library.
8436      hardcode_minus_L=yes
8437      export_dynamic_flag_spec='${wl}-E'
8438      ;;
8439
8440    hpux10*)
8441      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8442	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8443      else
8444	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8445      fi
8446      if test "$with_gnu_ld" = no; then
8447	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8448	hardcode_libdir_flag_spec_ld='+b $libdir'
8449	hardcode_libdir_separator=:
8450	hardcode_direct=yes
8451	hardcode_direct_absolute=yes
8452	export_dynamic_flag_spec='${wl}-E'
8453	# hardcode_minus_L: Not really in the search PATH,
8454	# but as the default location of the library.
8455	hardcode_minus_L=yes
8456      fi
8457      ;;
8458
8459    hpux11*)
8460      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8461	case $host_cpu in
8462	hppa*64*)
8463	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8464	  ;;
8465	ia64*)
8466	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8467	  ;;
8468	*)
8469	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8470	  ;;
8471	esac
8472      else
8473	case $host_cpu in
8474	hppa*64*)
8475	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8476	  ;;
8477	ia64*)
8478	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8479	  ;;
8480	*)
8481	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8482	  ;;
8483	esac
8484      fi
8485      if test "$with_gnu_ld" = no; then
8486	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8487	hardcode_libdir_separator=:
8488
8489	case $host_cpu in
8490	hppa*64*|ia64*)
8491	  hardcode_direct=no
8492	  hardcode_shlibpath_var=no
8493	  ;;
8494	*)
8495	  hardcode_direct=yes
8496	  hardcode_direct_absolute=yes
8497	  export_dynamic_flag_spec='${wl}-E'
8498
8499	  # hardcode_minus_L: Not really in the search PATH,
8500	  # but as the default location of the library.
8501	  hardcode_minus_L=yes
8502	  ;;
8503	esac
8504      fi
8505      ;;
8506
8507    irix5* | irix6* | nonstopux*)
8508      if test "$GCC" = yes; then
8509	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'
8510	# Try to use the -exported_symbol ld option, if it does not
8511	# work, assume that -exports_file does not work either and
8512	# implicitly export all symbols.
8513        save_LDFLAGS="$LDFLAGS"
8514        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8515        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516/* end confdefs.h.  */
8517int foo(void) {}
8518_ACEOF
8519if ac_fn_c_try_link "$LINENO"; then :
8520  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'
8521
8522fi
8523rm -f core conftest.err conftest.$ac_objext \
8524    conftest$ac_exeext conftest.$ac_ext
8525        LDFLAGS="$save_LDFLAGS"
8526      else
8527	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'
8528	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'
8529      fi
8530      archive_cmds_need_lc='no'
8531      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8532      hardcode_libdir_separator=:
8533      inherit_rpath=yes
8534      link_all_deplibs=yes
8535      ;;
8536
8537    netbsd* | netbsdelf*-gnu)
8538      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8539	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8540      else
8541	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8542      fi
8543      hardcode_libdir_flag_spec='-R$libdir'
8544      hardcode_direct=yes
8545      hardcode_shlibpath_var=no
8546      ;;
8547
8548    newsos6)
8549      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8550      hardcode_direct=yes
8551      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8552      hardcode_libdir_separator=:
8553      hardcode_shlibpath_var=no
8554      ;;
8555
8556    *nto* | *qnx*)
8557      ;;
8558
8559    openbsd*)
8560      if test -f /usr/libexec/ld.so; then
8561	hardcode_direct=yes
8562	hardcode_shlibpath_var=no
8563	hardcode_direct_absolute=yes
8564	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8565	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8566	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8567	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8568	  export_dynamic_flag_spec='${wl}-E'
8569	else
8570	  case $host_os in
8571	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8572	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8573	     hardcode_libdir_flag_spec='-R$libdir'
8574	     ;;
8575	   *)
8576	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8577	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8578	     ;;
8579	  esac
8580	fi
8581      else
8582	ld_shlibs=no
8583      fi
8584      ;;
8585
8586    os2*)
8587      hardcode_libdir_flag_spec='-L$libdir'
8588      hardcode_minus_L=yes
8589      allow_undefined_flag=unsupported
8590      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'
8591      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8592      ;;
8593
8594    osf3*)
8595      if test "$GCC" = yes; then
8596	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8597	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'
8598      else
8599	allow_undefined_flag=' -expect_unresolved \*'
8600	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'
8601      fi
8602      archive_cmds_need_lc='no'
8603      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8604      hardcode_libdir_separator=:
8605      ;;
8606
8607    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8608      if test "$GCC" = yes; then
8609	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8610	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'
8611	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8612      else
8613	allow_undefined_flag=' -expect_unresolved \*'
8614	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'
8615	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~
8616	$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'
8617
8618	# Both c and cxx compiler support -rpath directly
8619	hardcode_libdir_flag_spec='-rpath $libdir'
8620      fi
8621      archive_cmds_need_lc='no'
8622      hardcode_libdir_separator=:
8623      ;;
8624
8625    solaris*)
8626      no_undefined_flag=' -z defs'
8627      if test "$GCC" = yes; then
8628	wlarc='${wl}'
8629	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8630	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8631	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8632      else
8633	case `$CC -V 2>&1` in
8634	*"Compilers 5.0"*)
8635	  wlarc=''
8636	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8638	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8639	  ;;
8640	*)
8641	  wlarc='${wl}'
8642	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8643	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8644	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8645	  ;;
8646	esac
8647      fi
8648      hardcode_libdir_flag_spec='-R$libdir'
8649      hardcode_shlibpath_var=no
8650      case $host_os in
8651      solaris2.[0-5] | solaris2.[0-5].*) ;;
8652      *)
8653	# The compiler driver will combine and reorder linker options,
8654	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8655	# but is careful enough not to reorder.
8656	# Supported since Solaris 2.6 (maybe 2.5.1?)
8657	if test "$GCC" = yes; then
8658	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8659	else
8660	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8661	fi
8662	;;
8663      esac
8664      link_all_deplibs=yes
8665      ;;
8666
8667    sunos4*)
8668      if test "x$host_vendor" = xsequent; then
8669	# Use $CC to link under sequent, because it throws in some extra .o
8670	# files that make .init and .fini sections work.
8671	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8672      else
8673	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8674      fi
8675      hardcode_libdir_flag_spec='-L$libdir'
8676      hardcode_direct=yes
8677      hardcode_minus_L=yes
8678      hardcode_shlibpath_var=no
8679      ;;
8680
8681    sysv4)
8682      case $host_vendor in
8683	sni)
8684	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8685	  hardcode_direct=yes # is this really true???
8686	;;
8687	siemens)
8688	  ## LD is ld it makes a PLAMLIB
8689	  ## CC just makes a GrossModule.
8690	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8691	  reload_cmds='$CC -r -o $output$reload_objs'
8692	  hardcode_direct=no
8693        ;;
8694	motorola)
8695	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8697	;;
8698      esac
8699      runpath_var='LD_RUN_PATH'
8700      hardcode_shlibpath_var=no
8701      ;;
8702
8703    sysv4.3*)
8704      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8705      hardcode_shlibpath_var=no
8706      export_dynamic_flag_spec='-Bexport'
8707      ;;
8708
8709    sysv4*MP*)
8710      if test -d /usr/nec; then
8711	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712	hardcode_shlibpath_var=no
8713	runpath_var=LD_RUN_PATH
8714	hardcode_runpath_var=yes
8715	ld_shlibs=yes
8716      fi
8717      ;;
8718
8719    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8720      no_undefined_flag='${wl}-z,text'
8721      archive_cmds_need_lc=no
8722      hardcode_shlibpath_var=no
8723      runpath_var='LD_RUN_PATH'
8724
8725      if test "$GCC" = yes; then
8726	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8727	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8728      else
8729	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8730	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8731      fi
8732      ;;
8733
8734    sysv5* | sco3.2v5* | sco5v6*)
8735      # Note: We can NOT use -z defs as we might desire, because we do not
8736      # link with -lc, and that would cause any symbols used from libc to
8737      # always be unresolved, which means just about no library would
8738      # ever link correctly.  If we're not using GNU ld we use -z text
8739      # though, which does catch some bad symbols but isn't as heavy-handed
8740      # as -z defs.
8741      no_undefined_flag='${wl}-z,text'
8742      allow_undefined_flag='${wl}-z,nodefs'
8743      archive_cmds_need_lc=no
8744      hardcode_shlibpath_var=no
8745      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8746      hardcode_libdir_separator=':'
8747      link_all_deplibs=yes
8748      export_dynamic_flag_spec='${wl}-Bexport'
8749      runpath_var='LD_RUN_PATH'
8750
8751      if test "$GCC" = yes; then
8752	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8753	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8754      else
8755	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8756	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8757      fi
8758      ;;
8759
8760    uts4*)
8761      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8762      hardcode_libdir_flag_spec='-L$libdir'
8763      hardcode_shlibpath_var=no
8764      ;;
8765
8766    *)
8767      ld_shlibs=no
8768      ;;
8769    esac
8770
8771    if test x$host_vendor = xsni; then
8772      case $host in
8773      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8774	export_dynamic_flag_spec='${wl}-Blargedynsym'
8775	;;
8776      esac
8777    fi
8778  fi
8779
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8781$as_echo "$ld_shlibs" >&6; }
8782test "$ld_shlibs" = no && can_build_shared=no
8783
8784with_gnu_ld=$with_gnu_ld
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800#
8801# Do we need to explicitly link libc?
8802#
8803case "x$archive_cmds_need_lc" in
8804x|xyes)
8805  # Assume -lc should be added
8806  archive_cmds_need_lc=yes
8807
8808  if test "$enable_shared" = yes && test "$GCC" = yes; then
8809    case $archive_cmds in
8810    *'~'*)
8811      # FIXME: we may have to deal with multi-command sequences.
8812      ;;
8813    '$CC '*)
8814      # Test whether the compiler implicitly links with -lc since on some
8815      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8816      # to ld, don't add -lc before -lgcc.
8817      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8818$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8819      $RM conftest*
8820      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8821
8822      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8823  (eval $ac_compile) 2>&5
8824  ac_status=$?
8825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8826  test $ac_status = 0; } 2>conftest.err; then
8827        soname=conftest
8828        lib=conftest
8829        libobjs=conftest.$ac_objext
8830        deplibs=
8831        wl=$lt_prog_compiler_wl
8832	pic_flag=$lt_prog_compiler_pic
8833        compiler_flags=-v
8834        linker_flags=-v
8835        verstring=
8836        output_objdir=.
8837        libname=conftest
8838        lt_save_allow_undefined_flag=$allow_undefined_flag
8839        allow_undefined_flag=
8840        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8841  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8842  ac_status=$?
8843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8844  test $ac_status = 0; }
8845        then
8846	  archive_cmds_need_lc=no
8847        else
8848	  archive_cmds_need_lc=yes
8849        fi
8850        allow_undefined_flag=$lt_save_allow_undefined_flag
8851      else
8852        cat conftest.err 1>&5
8853      fi
8854      $RM conftest*
8855      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8856$as_echo "$archive_cmds_need_lc" >&6; }
8857      ;;
8858    esac
8859  fi
8860  ;;
8861esac
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9020$as_echo_n "checking dynamic linker characteristics... " >&6; }
9021
9022if test "$GCC" = yes; then
9023  case $host_os in
9024    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9025    *) lt_awk_arg="/^libraries:/" ;;
9026  esac
9027  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9028  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9029    # if the path contains ";" then we assume it to be the separator
9030    # otherwise default to the standard path separator (i.e. ":") - it is
9031    # assumed that no part of a normal pathname contains ";" but that should
9032    # okay in the real world where ";" in dirpaths is itself problematic.
9033    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9034  else
9035    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9036  fi
9037  # Ok, now we have the path, separated by spaces, we can step through it
9038  # and add multilib dir if necessary.
9039  lt_tmp_lt_search_path_spec=
9040  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9041  for lt_sys_path in $lt_search_path_spec; do
9042    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9043      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9044    else
9045      test -d "$lt_sys_path" && \
9046	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9047    fi
9048  done
9049  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9050BEGIN {RS=" "; FS="/|\n";} {
9051  lt_foo="";
9052  lt_count=0;
9053  for (lt_i = NF; lt_i > 0; lt_i--) {
9054    if ($lt_i != "" && $lt_i != ".") {
9055      if ($lt_i == "..") {
9056        lt_count++;
9057      } else {
9058        if (lt_count == 0) {
9059          lt_foo="/" $lt_i lt_foo;
9060        } else {
9061          lt_count--;
9062        }
9063      }
9064    }
9065  }
9066  if (lt_foo != "") { lt_freq[lt_foo]++; }
9067  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9068}'`
9069  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9070else
9071  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9072fi
9073library_names_spec=
9074libname_spec='lib$name'
9075soname_spec=
9076shrext_cmds=".so"
9077postinstall_cmds=
9078postuninstall_cmds=
9079finish_cmds=
9080finish_eval=
9081shlibpath_var=
9082shlibpath_overrides_runpath=unknown
9083version_type=none
9084dynamic_linker="$host_os ld.so"
9085sys_lib_dlsearch_path_spec="/lib /usr/lib"
9086need_lib_prefix=unknown
9087hardcode_into_libs=no
9088
9089# when you set need_version to no, make sure it does not cause -set_version
9090# flags to be left without arguments
9091need_version=unknown
9092
9093case $host_os in
9094aix3*)
9095  version_type=linux
9096  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9097  shlibpath_var=LIBPATH
9098
9099  # AIX 3 has no versioning support, so we append a major version to the name.
9100  soname_spec='${libname}${release}${shared_ext}$major'
9101  ;;
9102
9103aix[4-9]*)
9104  version_type=linux
9105  need_lib_prefix=no
9106  need_version=no
9107  hardcode_into_libs=yes
9108  if test "$host_cpu" = ia64; then
9109    # AIX 5 supports IA64
9110    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9111    shlibpath_var=LD_LIBRARY_PATH
9112  else
9113    # With GCC up to 2.95.x, collect2 would create an import file
9114    # for dependence libraries.  The import file would start with
9115    # the line `#! .'.  This would cause the generated library to
9116    # depend on `.', always an invalid library.  This was fixed in
9117    # development snapshots of GCC prior to 3.0.
9118    case $host_os in
9119      aix4 | aix4.[01] | aix4.[01].*)
9120      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9121	   echo ' yes '
9122	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9123	:
9124      else
9125	can_build_shared=no
9126      fi
9127      ;;
9128    esac
9129    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9130    # soname into executable. Probably we can add versioning support to
9131    # collect2, so additional links can be useful in future.
9132    if test "$aix_use_runtimelinking" = yes; then
9133      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9134      # instead of lib<name>.a to let people know that these are not
9135      # typical AIX shared libraries.
9136      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9137    else
9138      # We preserve .a as extension for shared libraries through AIX4.2
9139      # and later when we are not doing run time linking.
9140      library_names_spec='${libname}${release}.a $libname.a'
9141      soname_spec='${libname}${release}${shared_ext}$major'
9142    fi
9143    shlibpath_var=LIBPATH
9144  fi
9145  ;;
9146
9147amigaos*)
9148  case $host_cpu in
9149  powerpc)
9150    # Since July 2007 AmigaOS4 officially supports .so libraries.
9151    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9152    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153    ;;
9154  m68k)
9155    library_names_spec='$libname.ixlibrary $libname.a'
9156    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9157    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'
9158    ;;
9159  esac
9160  ;;
9161
9162beos*)
9163  library_names_spec='${libname}${shared_ext}'
9164  dynamic_linker="$host_os ld.so"
9165  shlibpath_var=LIBRARY_PATH
9166  ;;
9167
9168bsdi[45]*)
9169  version_type=linux
9170  need_version=no
9171  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172  soname_spec='${libname}${release}${shared_ext}$major'
9173  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9174  shlibpath_var=LD_LIBRARY_PATH
9175  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9176  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9177  # the default ld.so.conf also contains /usr/contrib/lib and
9178  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9179  # libtool to hard-code these into programs
9180  ;;
9181
9182cygwin* | mingw* | pw32* | cegcc*)
9183  version_type=windows
9184  shrext_cmds=".dll"
9185  need_version=no
9186  need_lib_prefix=no
9187
9188  case $GCC,$host_os in
9189  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9190    library_names_spec='$libname.dll.a'
9191    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9192    postinstall_cmds='base_file=`basename \${file}`~
9193      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9194      dldir=$destdir/`dirname \$dlpath`~
9195      test -d \$dldir || mkdir -p \$dldir~
9196      $install_prog $dir/$dlname \$dldir/$dlname~
9197      chmod a+x \$dldir/$dlname~
9198      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9199        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9200      fi'
9201    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9202      dlpath=$dir/\$dldll~
9203       $RM \$dlpath'
9204    shlibpath_overrides_runpath=yes
9205
9206    case $host_os in
9207    cygwin*)
9208      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9209      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9210      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9211      ;;
9212    mingw* | cegcc*)
9213      # MinGW DLLs use traditional 'lib' prefix
9214      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9215      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9216      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9217        # It is most probably a Windows format PATH printed by
9218        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9219        # path with ; separators, and with drive letters. We can handle the
9220        # drive letters (cygwin fileutils understands them), so leave them,
9221        # especially as we might pass files found there to a mingw objdump,
9222        # which wouldn't understand a cygwinified path. Ahh.
9223        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9224      else
9225        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9226      fi
9227      ;;
9228    pw32*)
9229      # pw32 DLLs use 'pw' prefix rather than 'lib'
9230      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9231      ;;
9232    esac
9233    ;;
9234
9235  *)
9236    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9237    ;;
9238  esac
9239  dynamic_linker='Win32 ld.exe'
9240  # FIXME: first we should search . and the directory the executable is in
9241  shlibpath_var=PATH
9242  ;;
9243
9244darwin* | rhapsody*)
9245  dynamic_linker="$host_os dyld"
9246  version_type=darwin
9247  need_lib_prefix=no
9248  need_version=no
9249  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9250  soname_spec='${libname}${release}${major}$shared_ext'
9251  shlibpath_overrides_runpath=yes
9252  shlibpath_var=DYLD_LIBRARY_PATH
9253  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9254
9255  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9256  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9257  ;;
9258
9259dgux*)
9260  version_type=linux
9261  need_lib_prefix=no
9262  need_version=no
9263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9264  soname_spec='${libname}${release}${shared_ext}$major'
9265  shlibpath_var=LD_LIBRARY_PATH
9266  ;;
9267
9268freebsd1*)
9269  dynamic_linker=no
9270  ;;
9271
9272freebsd* | dragonfly*)
9273  # DragonFly does not have aout.  When/if they implement a new
9274  # versioning mechanism, adjust this.
9275  if test -x /usr/bin/objformat; then
9276    objformat=`/usr/bin/objformat`
9277  else
9278    case $host_os in
9279    freebsd[123]*) objformat=aout ;;
9280    *) objformat=elf ;;
9281    esac
9282  fi
9283  version_type=freebsd-$objformat
9284  case $version_type in
9285    freebsd-elf*)
9286      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9287      need_version=no
9288      need_lib_prefix=no
9289      ;;
9290    freebsd-*)
9291      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9292      need_version=yes
9293      ;;
9294  esac
9295  shlibpath_var=LD_LIBRARY_PATH
9296  case $host_os in
9297  freebsd2*)
9298    shlibpath_overrides_runpath=yes
9299    ;;
9300  freebsd3.[01]* | freebsdelf3.[01]*)
9301    shlibpath_overrides_runpath=yes
9302    hardcode_into_libs=yes
9303    ;;
9304  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9305  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9306    shlibpath_overrides_runpath=no
9307    hardcode_into_libs=yes
9308    ;;
9309  *) # from 4.6 on, and DragonFly
9310    shlibpath_overrides_runpath=yes
9311    hardcode_into_libs=yes
9312    ;;
9313  esac
9314  ;;
9315
9316gnu*)
9317  version_type=linux
9318  need_lib_prefix=no
9319  need_version=no
9320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9321  soname_spec='${libname}${release}${shared_ext}$major'
9322  shlibpath_var=LD_LIBRARY_PATH
9323  hardcode_into_libs=yes
9324  ;;
9325
9326hpux9* | hpux10* | hpux11*)
9327  # Give a soname corresponding to the major version so that dld.sl refuses to
9328  # link against other versions.
9329  version_type=sunos
9330  need_lib_prefix=no
9331  need_version=no
9332  case $host_cpu in
9333  ia64*)
9334    shrext_cmds='.so'
9335    hardcode_into_libs=yes
9336    dynamic_linker="$host_os dld.so"
9337    shlibpath_var=LD_LIBRARY_PATH
9338    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9339    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340    soname_spec='${libname}${release}${shared_ext}$major'
9341    if test "X$HPUX_IA64_MODE" = X32; then
9342      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9343    else
9344      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9345    fi
9346    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9347    ;;
9348  hppa*64*)
9349    shrext_cmds='.sl'
9350    hardcode_into_libs=yes
9351    dynamic_linker="$host_os dld.sl"
9352    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9353    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355    soname_spec='${libname}${release}${shared_ext}$major'
9356    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9357    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9358    ;;
9359  *)
9360    shrext_cmds='.sl'
9361    dynamic_linker="$host_os dld.sl"
9362    shlibpath_var=SHLIB_PATH
9363    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9364    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365    soname_spec='${libname}${release}${shared_ext}$major'
9366    ;;
9367  esac
9368  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9369  postinstall_cmds='chmod 555 $lib'
9370  ;;
9371
9372interix[3-9]*)
9373  version_type=linux
9374  need_lib_prefix=no
9375  need_version=no
9376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9377  soname_spec='${libname}${release}${shared_ext}$major'
9378  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9379  shlibpath_var=LD_LIBRARY_PATH
9380  shlibpath_overrides_runpath=no
9381  hardcode_into_libs=yes
9382  ;;
9383
9384irix5* | irix6* | nonstopux*)
9385  case $host_os in
9386    nonstopux*) version_type=nonstopux ;;
9387    *)
9388	if test "$lt_cv_prog_gnu_ld" = yes; then
9389		version_type=linux
9390	else
9391		version_type=irix
9392	fi ;;
9393  esac
9394  need_lib_prefix=no
9395  need_version=no
9396  soname_spec='${libname}${release}${shared_ext}$major'
9397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9398  case $host_os in
9399  irix5* | nonstopux*)
9400    libsuff= shlibsuff=
9401    ;;
9402  *)
9403    case $LD in # libtool.m4 will add one of these switches to LD
9404    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9405      libsuff= shlibsuff= libmagic=32-bit;;
9406    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9407      libsuff=32 shlibsuff=N32 libmagic=N32;;
9408    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9409      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9410    *) libsuff= shlibsuff= libmagic=never-match;;
9411    esac
9412    ;;
9413  esac
9414  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9415  shlibpath_overrides_runpath=no
9416  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9417  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9418  hardcode_into_libs=yes
9419  ;;
9420
9421# No shared lib support for Linux oldld, aout, or coff.
9422linux*oldld* | linux*aout* | linux*coff*)
9423  dynamic_linker=no
9424  ;;
9425
9426# This must be Linux ELF.
9427linux* | k*bsd*-gnu | kopensolaris*-gnu)
9428  version_type=linux
9429  need_lib_prefix=no
9430  need_version=no
9431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432  soname_spec='${libname}${release}${shared_ext}$major'
9433  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9434  shlibpath_var=LD_LIBRARY_PATH
9435  shlibpath_overrides_runpath=no
9436  # Some binutils ld are patched to set DT_RUNPATH
9437  save_LDFLAGS=$LDFLAGS
9438  save_libdir=$libdir
9439  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9440       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442/* end confdefs.h.  */
9443
9444int
9445main ()
9446{
9447
9448  ;
9449  return 0;
9450}
9451_ACEOF
9452if ac_fn_c_try_link "$LINENO"; then :
9453  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9454  shlibpath_overrides_runpath=yes
9455fi
9456fi
9457rm -f core conftest.err conftest.$ac_objext \
9458    conftest$ac_exeext conftest.$ac_ext
9459  LDFLAGS=$save_LDFLAGS
9460  libdir=$save_libdir
9461
9462  # This implies no fast_install, which is unacceptable.
9463  # Some rework will be needed to allow for fast_install
9464  # before this can be enabled.
9465  hardcode_into_libs=yes
9466
9467  # Append ld.so.conf contents to the search path
9468  if test -f /etc/ld.so.conf; then
9469    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' ' '`
9470    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9471  fi
9472
9473  # We used to test for /lib/ld.so.1 and disable shared libraries on
9474  # powerpc, because MkLinux only supported shared libraries with the
9475  # GNU dynamic linker.  Since this was broken with cross compilers,
9476  # most powerpc-linux boxes support dynamic linking these days and
9477  # people can always --disable-shared, the test was removed, and we
9478  # assume the GNU/Linux dynamic linker is in use.
9479  dynamic_linker='GNU/Linux ld.so'
9480  ;;
9481
9482netbsdelf*-gnu)
9483  version_type=linux
9484  need_lib_prefix=no
9485  need_version=no
9486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9487  soname_spec='${libname}${release}${shared_ext}$major'
9488  shlibpath_var=LD_LIBRARY_PATH
9489  shlibpath_overrides_runpath=no
9490  hardcode_into_libs=yes
9491  dynamic_linker='NetBSD ld.elf_so'
9492  ;;
9493
9494netbsd*)
9495  version_type=sunos
9496  need_lib_prefix=no
9497  need_version=no
9498  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9499    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9500    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9501    dynamic_linker='NetBSD (a.out) ld.so'
9502  else
9503    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9504    soname_spec='${libname}${release}${shared_ext}$major'
9505    dynamic_linker='NetBSD ld.elf_so'
9506  fi
9507  shlibpath_var=LD_LIBRARY_PATH
9508  shlibpath_overrides_runpath=yes
9509  hardcode_into_libs=yes
9510  ;;
9511
9512newsos6)
9513  version_type=linux
9514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515  shlibpath_var=LD_LIBRARY_PATH
9516  shlibpath_overrides_runpath=yes
9517  ;;
9518
9519*nto* | *qnx*)
9520  version_type=qnx
9521  need_lib_prefix=no
9522  need_version=no
9523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524  soname_spec='${libname}${release}${shared_ext}$major'
9525  shlibpath_var=LD_LIBRARY_PATH
9526  shlibpath_overrides_runpath=no
9527  hardcode_into_libs=yes
9528  dynamic_linker='ldqnx.so'
9529  ;;
9530
9531openbsd*)
9532  version_type=sunos
9533  sys_lib_dlsearch_path_spec="/usr/lib"
9534  need_lib_prefix=no
9535  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9536  case $host_os in
9537    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9538    *)				need_version=no  ;;
9539  esac
9540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9542  shlibpath_var=LD_LIBRARY_PATH
9543  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9544    case $host_os in
9545      openbsd2.[89] | openbsd2.[89].*)
9546	shlibpath_overrides_runpath=no
9547	;;
9548      *)
9549	shlibpath_overrides_runpath=yes
9550	;;
9551      esac
9552  else
9553    shlibpath_overrides_runpath=yes
9554  fi
9555  ;;
9556
9557os2*)
9558  libname_spec='$name'
9559  shrext_cmds=".dll"
9560  need_lib_prefix=no
9561  library_names_spec='$libname${shared_ext} $libname.a'
9562  dynamic_linker='OS/2 ld.exe'
9563  shlibpath_var=LIBPATH
9564  ;;
9565
9566osf3* | osf4* | osf5*)
9567  version_type=osf
9568  need_lib_prefix=no
9569  need_version=no
9570  soname_spec='${libname}${release}${shared_ext}$major'
9571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572  shlibpath_var=LD_LIBRARY_PATH
9573  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9574  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9575  ;;
9576
9577rdos*)
9578  dynamic_linker=no
9579  ;;
9580
9581solaris*)
9582  version_type=linux
9583  need_lib_prefix=no
9584  need_version=no
9585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586  soname_spec='${libname}${release}${shared_ext}$major'
9587  shlibpath_var=LD_LIBRARY_PATH
9588  shlibpath_overrides_runpath=yes
9589  hardcode_into_libs=yes
9590  # ldd complains unless libraries are executable
9591  postinstall_cmds='chmod +x $lib'
9592  ;;
9593
9594sunos4*)
9595  version_type=sunos
9596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9597  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9598  shlibpath_var=LD_LIBRARY_PATH
9599  shlibpath_overrides_runpath=yes
9600  if test "$with_gnu_ld" = yes; then
9601    need_lib_prefix=no
9602  fi
9603  need_version=yes
9604  ;;
9605
9606sysv4 | sysv4.3*)
9607  version_type=linux
9608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609  soname_spec='${libname}${release}${shared_ext}$major'
9610  shlibpath_var=LD_LIBRARY_PATH
9611  case $host_vendor in
9612    sni)
9613      shlibpath_overrides_runpath=no
9614      need_lib_prefix=no
9615      runpath_var=LD_RUN_PATH
9616      ;;
9617    siemens)
9618      need_lib_prefix=no
9619      ;;
9620    motorola)
9621      need_lib_prefix=no
9622      need_version=no
9623      shlibpath_overrides_runpath=no
9624      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9625      ;;
9626  esac
9627  ;;
9628
9629sysv4*MP*)
9630  if test -d /usr/nec ;then
9631    version_type=linux
9632    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9633    soname_spec='$libname${shared_ext}.$major'
9634    shlibpath_var=LD_LIBRARY_PATH
9635  fi
9636  ;;
9637
9638sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9639  version_type=freebsd-elf
9640  need_lib_prefix=no
9641  need_version=no
9642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9643  soname_spec='${libname}${release}${shared_ext}$major'
9644  shlibpath_var=LD_LIBRARY_PATH
9645  shlibpath_overrides_runpath=yes
9646  hardcode_into_libs=yes
9647  if test "$with_gnu_ld" = yes; then
9648    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9649  else
9650    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9651    case $host_os in
9652      sco3.2v5*)
9653        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9654	;;
9655    esac
9656  fi
9657  sys_lib_dlsearch_path_spec='/usr/lib'
9658  ;;
9659
9660tpf*)
9661  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9662  version_type=linux
9663  need_lib_prefix=no
9664  need_version=no
9665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666  shlibpath_var=LD_LIBRARY_PATH
9667  shlibpath_overrides_runpath=no
9668  hardcode_into_libs=yes
9669  ;;
9670
9671uts4*)
9672  version_type=linux
9673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9674  soname_spec='${libname}${release}${shared_ext}$major'
9675  shlibpath_var=LD_LIBRARY_PATH
9676  ;;
9677
9678*)
9679  dynamic_linker=no
9680  ;;
9681esac
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9683$as_echo "$dynamic_linker" >&6; }
9684test "$dynamic_linker" = no && can_build_shared=no
9685
9686variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9687if test "$GCC" = yes; then
9688  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9689fi
9690
9691if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9692  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9693fi
9694if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9695  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9696fi
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9785$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9786hardcode_action=
9787if test -n "$hardcode_libdir_flag_spec" ||
9788   test -n "$runpath_var" ||
9789   test "X$hardcode_automatic" = "Xyes" ; then
9790
9791  # We can hardcode non-existent directories.
9792  if test "$hardcode_direct" != no &&
9793     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9794     # have to relink, otherwise we might link with an installed library
9795     # when we should be linking with a yet-to-be-installed one
9796     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9797     test "$hardcode_minus_L" != no; then
9798    # Linking always hardcodes the temporary library directory.
9799    hardcode_action=relink
9800  else
9801    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9802    hardcode_action=immediate
9803  fi
9804else
9805  # We cannot hardcode anything, or else we can only hardcode existing
9806  # directories.
9807  hardcode_action=unsupported
9808fi
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9810$as_echo "$hardcode_action" >&6; }
9811
9812if test "$hardcode_action" = relink ||
9813   test "$inherit_rpath" = yes; then
9814  # Fast installation is not supported
9815  enable_fast_install=no
9816elif test "$shlibpath_overrides_runpath" = yes ||
9817     test "$enable_shared" = no; then
9818  # Fast installation is not necessary
9819  enable_fast_install=needless
9820fi
9821
9822
9823
9824
9825
9826
9827  if test "x$enable_dlopen" != xyes; then
9828  enable_dlopen=unknown
9829  enable_dlopen_self=unknown
9830  enable_dlopen_self_static=unknown
9831else
9832  lt_cv_dlopen=no
9833  lt_cv_dlopen_libs=
9834
9835  case $host_os in
9836  beos*)
9837    lt_cv_dlopen="load_add_on"
9838    lt_cv_dlopen_libs=
9839    lt_cv_dlopen_self=yes
9840    ;;
9841
9842  mingw* | pw32* | cegcc*)
9843    lt_cv_dlopen="LoadLibrary"
9844    lt_cv_dlopen_libs=
9845    ;;
9846
9847  cygwin*)
9848    lt_cv_dlopen="dlopen"
9849    lt_cv_dlopen_libs=
9850    ;;
9851
9852  darwin*)
9853  # if libdl is installed we need to link against it
9854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9855$as_echo_n "checking for dlopen in -ldl... " >&6; }
9856if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9857  $as_echo_n "(cached) " >&6
9858else
9859  ac_check_lib_save_LIBS=$LIBS
9860LIBS="-ldl  $LIBS"
9861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862/* end confdefs.h.  */
9863
9864/* Override any GCC internal prototype to avoid an error.
9865   Use char because int might match the return type of a GCC
9866   builtin and then its argument prototype would still apply.  */
9867#ifdef __cplusplus
9868extern "C"
9869#endif
9870char dlopen ();
9871int
9872main ()
9873{
9874return dlopen ();
9875  ;
9876  return 0;
9877}
9878_ACEOF
9879if ac_fn_c_try_link "$LINENO"; then :
9880  ac_cv_lib_dl_dlopen=yes
9881else
9882  ac_cv_lib_dl_dlopen=no
9883fi
9884rm -f core conftest.err conftest.$ac_objext \
9885    conftest$ac_exeext conftest.$ac_ext
9886LIBS=$ac_check_lib_save_LIBS
9887fi
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9889$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9890if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9891  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9892else
9893
9894    lt_cv_dlopen="dyld"
9895    lt_cv_dlopen_libs=
9896    lt_cv_dlopen_self=yes
9897
9898fi
9899
9900    ;;
9901
9902  *)
9903    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9904if test "x$ac_cv_func_shl_load" = x""yes; then :
9905  lt_cv_dlopen="shl_load"
9906else
9907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9908$as_echo_n "checking for shl_load in -ldld... " >&6; }
9909if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9910  $as_echo_n "(cached) " >&6
9911else
9912  ac_check_lib_save_LIBS=$LIBS
9913LIBS="-ldld  $LIBS"
9914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915/* end confdefs.h.  */
9916
9917/* Override any GCC internal prototype to avoid an error.
9918   Use char because int might match the return type of a GCC
9919   builtin and then its argument prototype would still apply.  */
9920#ifdef __cplusplus
9921extern "C"
9922#endif
9923char shl_load ();
9924int
9925main ()
9926{
9927return shl_load ();
9928  ;
9929  return 0;
9930}
9931_ACEOF
9932if ac_fn_c_try_link "$LINENO"; then :
9933  ac_cv_lib_dld_shl_load=yes
9934else
9935  ac_cv_lib_dld_shl_load=no
9936fi
9937rm -f core conftest.err conftest.$ac_objext \
9938    conftest$ac_exeext conftest.$ac_ext
9939LIBS=$ac_check_lib_save_LIBS
9940fi
9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9942$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9943if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9944  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9945else
9946  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9947if test "x$ac_cv_func_dlopen" = x""yes; then :
9948  lt_cv_dlopen="dlopen"
9949else
9950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9951$as_echo_n "checking for dlopen in -ldl... " >&6; }
9952if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9953  $as_echo_n "(cached) " >&6
9954else
9955  ac_check_lib_save_LIBS=$LIBS
9956LIBS="-ldl  $LIBS"
9957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958/* end confdefs.h.  */
9959
9960/* Override any GCC internal prototype to avoid an error.
9961   Use char because int might match the return type of a GCC
9962   builtin and then its argument prototype would still apply.  */
9963#ifdef __cplusplus
9964extern "C"
9965#endif
9966char dlopen ();
9967int
9968main ()
9969{
9970return dlopen ();
9971  ;
9972  return 0;
9973}
9974_ACEOF
9975if ac_fn_c_try_link "$LINENO"; then :
9976  ac_cv_lib_dl_dlopen=yes
9977else
9978  ac_cv_lib_dl_dlopen=no
9979fi
9980rm -f core conftest.err conftest.$ac_objext \
9981    conftest$ac_exeext conftest.$ac_ext
9982LIBS=$ac_check_lib_save_LIBS
9983fi
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9985$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9986if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9987  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9988else
9989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9990$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9991if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9992  $as_echo_n "(cached) " >&6
9993else
9994  ac_check_lib_save_LIBS=$LIBS
9995LIBS="-lsvld  $LIBS"
9996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997/* end confdefs.h.  */
9998
9999/* Override any GCC internal prototype to avoid an error.
10000   Use char because int might match the return type of a GCC
10001   builtin and then its argument prototype would still apply.  */
10002#ifdef __cplusplus
10003extern "C"
10004#endif
10005char dlopen ();
10006int
10007main ()
10008{
10009return dlopen ();
10010  ;
10011  return 0;
10012}
10013_ACEOF
10014if ac_fn_c_try_link "$LINENO"; then :
10015  ac_cv_lib_svld_dlopen=yes
10016else
10017  ac_cv_lib_svld_dlopen=no
10018fi
10019rm -f core conftest.err conftest.$ac_objext \
10020    conftest$ac_exeext conftest.$ac_ext
10021LIBS=$ac_check_lib_save_LIBS
10022fi
10023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10024$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10025if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10026  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10027else
10028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10029$as_echo_n "checking for dld_link in -ldld... " >&6; }
10030if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10031  $as_echo_n "(cached) " >&6
10032else
10033  ac_check_lib_save_LIBS=$LIBS
10034LIBS="-ldld  $LIBS"
10035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036/* end confdefs.h.  */
10037
10038/* Override any GCC internal prototype to avoid an error.
10039   Use char because int might match the return type of a GCC
10040   builtin and then its argument prototype would still apply.  */
10041#ifdef __cplusplus
10042extern "C"
10043#endif
10044char dld_link ();
10045int
10046main ()
10047{
10048return dld_link ();
10049  ;
10050  return 0;
10051}
10052_ACEOF
10053if ac_fn_c_try_link "$LINENO"; then :
10054  ac_cv_lib_dld_dld_link=yes
10055else
10056  ac_cv_lib_dld_dld_link=no
10057fi
10058rm -f core conftest.err conftest.$ac_objext \
10059    conftest$ac_exeext conftest.$ac_ext
10060LIBS=$ac_check_lib_save_LIBS
10061fi
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10063$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10064if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10065  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10066fi
10067
10068
10069fi
10070
10071
10072fi
10073
10074
10075fi
10076
10077
10078fi
10079
10080
10081fi
10082
10083    ;;
10084  esac
10085
10086  if test "x$lt_cv_dlopen" != xno; then
10087    enable_dlopen=yes
10088  else
10089    enable_dlopen=no
10090  fi
10091
10092  case $lt_cv_dlopen in
10093  dlopen)
10094    save_CPPFLAGS="$CPPFLAGS"
10095    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10096
10097    save_LDFLAGS="$LDFLAGS"
10098    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10099
10100    save_LIBS="$LIBS"
10101    LIBS="$lt_cv_dlopen_libs $LIBS"
10102
10103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10104$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10105if test "${lt_cv_dlopen_self+set}" = set; then :
10106  $as_echo_n "(cached) " >&6
10107else
10108  	  if test "$cross_compiling" = yes; then :
10109  lt_cv_dlopen_self=cross
10110else
10111  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10112  lt_status=$lt_dlunknown
10113  cat > conftest.$ac_ext <<_LT_EOF
10114#line 10114 "configure"
10115#include "confdefs.h"
10116
10117#if HAVE_DLFCN_H
10118#include <dlfcn.h>
10119#endif
10120
10121#include <stdio.h>
10122
10123#ifdef RTLD_GLOBAL
10124#  define LT_DLGLOBAL		RTLD_GLOBAL
10125#else
10126#  ifdef DL_GLOBAL
10127#    define LT_DLGLOBAL		DL_GLOBAL
10128#  else
10129#    define LT_DLGLOBAL		0
10130#  endif
10131#endif
10132
10133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10134   find out it does not work in some platform. */
10135#ifndef LT_DLLAZY_OR_NOW
10136#  ifdef RTLD_LAZY
10137#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10138#  else
10139#    ifdef DL_LAZY
10140#      define LT_DLLAZY_OR_NOW		DL_LAZY
10141#    else
10142#      ifdef RTLD_NOW
10143#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10144#      else
10145#        ifdef DL_NOW
10146#          define LT_DLLAZY_OR_NOW	DL_NOW
10147#        else
10148#          define LT_DLLAZY_OR_NOW	0
10149#        endif
10150#      endif
10151#    endif
10152#  endif
10153#endif
10154
10155void fnord() { int i=42;}
10156int main ()
10157{
10158  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10159  int status = $lt_dlunknown;
10160
10161  if (self)
10162    {
10163      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10164      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10165      /* dlclose (self); */
10166    }
10167  else
10168    puts (dlerror ());
10169
10170  return status;
10171}
10172_LT_EOF
10173  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10174  (eval $ac_link) 2>&5
10175  ac_status=$?
10176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10177  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10178    (./conftest; exit; ) >&5 2>/dev/null
10179    lt_status=$?
10180    case x$lt_status in
10181      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10182      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10183      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10184    esac
10185  else :
10186    # compilation failed
10187    lt_cv_dlopen_self=no
10188  fi
10189fi
10190rm -fr conftest*
10191
10192
10193fi
10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10195$as_echo "$lt_cv_dlopen_self" >&6; }
10196
10197    if test "x$lt_cv_dlopen_self" = xyes; then
10198      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10199      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10200$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10201if test "${lt_cv_dlopen_self_static+set}" = set; then :
10202  $as_echo_n "(cached) " >&6
10203else
10204  	  if test "$cross_compiling" = yes; then :
10205  lt_cv_dlopen_self_static=cross
10206else
10207  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10208  lt_status=$lt_dlunknown
10209  cat > conftest.$ac_ext <<_LT_EOF
10210#line 10210 "configure"
10211#include "confdefs.h"
10212
10213#if HAVE_DLFCN_H
10214#include <dlfcn.h>
10215#endif
10216
10217#include <stdio.h>
10218
10219#ifdef RTLD_GLOBAL
10220#  define LT_DLGLOBAL		RTLD_GLOBAL
10221#else
10222#  ifdef DL_GLOBAL
10223#    define LT_DLGLOBAL		DL_GLOBAL
10224#  else
10225#    define LT_DLGLOBAL		0
10226#  endif
10227#endif
10228
10229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10230   find out it does not work in some platform. */
10231#ifndef LT_DLLAZY_OR_NOW
10232#  ifdef RTLD_LAZY
10233#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10234#  else
10235#    ifdef DL_LAZY
10236#      define LT_DLLAZY_OR_NOW		DL_LAZY
10237#    else
10238#      ifdef RTLD_NOW
10239#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10240#      else
10241#        ifdef DL_NOW
10242#          define LT_DLLAZY_OR_NOW	DL_NOW
10243#        else
10244#          define LT_DLLAZY_OR_NOW	0
10245#        endif
10246#      endif
10247#    endif
10248#  endif
10249#endif
10250
10251void fnord() { int i=42;}
10252int main ()
10253{
10254  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10255  int status = $lt_dlunknown;
10256
10257  if (self)
10258    {
10259      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10260      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10261      /* dlclose (self); */
10262    }
10263  else
10264    puts (dlerror ());
10265
10266  return status;
10267}
10268_LT_EOF
10269  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10270  (eval $ac_link) 2>&5
10271  ac_status=$?
10272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10273  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10274    (./conftest; exit; ) >&5 2>/dev/null
10275    lt_status=$?
10276    case x$lt_status in
10277      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10278      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10279      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10280    esac
10281  else :
10282    # compilation failed
10283    lt_cv_dlopen_self_static=no
10284  fi
10285fi
10286rm -fr conftest*
10287
10288
10289fi
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10291$as_echo "$lt_cv_dlopen_self_static" >&6; }
10292    fi
10293
10294    CPPFLAGS="$save_CPPFLAGS"
10295    LDFLAGS="$save_LDFLAGS"
10296    LIBS="$save_LIBS"
10297    ;;
10298  esac
10299
10300  case $lt_cv_dlopen_self in
10301  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10302  *) enable_dlopen_self=unknown ;;
10303  esac
10304
10305  case $lt_cv_dlopen_self_static in
10306  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10307  *) enable_dlopen_self_static=unknown ;;
10308  esac
10309fi
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327striplib=
10328old_striplib=
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10330$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10331if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10332  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10333  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10335$as_echo "yes" >&6; }
10336else
10337# FIXME - insert some real tests, host_os isn't really good enough
10338  case $host_os in
10339  darwin*)
10340    if test -n "$STRIP" ; then
10341      striplib="$STRIP -x"
10342      old_striplib="$STRIP -S"
10343      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10344$as_echo "yes" >&6; }
10345    else
10346      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347$as_echo "no" >&6; }
10348    fi
10349    ;;
10350  *)
10351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352$as_echo "no" >&6; }
10353    ;;
10354  esac
10355fi
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368  # Report which library types will actually be built
10369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10370$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10372$as_echo "$can_build_shared" >&6; }
10373
10374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10375$as_echo_n "checking whether to build shared libraries... " >&6; }
10376  test "$can_build_shared" = "no" && enable_shared=no
10377
10378  # On AIX, shared libraries and static libraries use the same namespace, and
10379  # are all built from PIC.
10380  case $host_os in
10381  aix3*)
10382    test "$enable_shared" = yes && enable_static=no
10383    if test -n "$RANLIB"; then
10384      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10385      postinstall_cmds='$RANLIB $lib'
10386    fi
10387    ;;
10388
10389  aix[4-9]*)
10390    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10391      test "$enable_shared" = yes && enable_static=no
10392    fi
10393    ;;
10394  esac
10395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10396$as_echo "$enable_shared" >&6; }
10397
10398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10399$as_echo_n "checking whether to build static libraries... " >&6; }
10400  # Make sure either enable_shared or enable_static is yes.
10401  test "$enable_shared" = yes || enable_static=yes
10402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10403$as_echo "$enable_static" >&6; }
10404
10405
10406
10407
10408fi
10409ac_ext=c
10410ac_cpp='$CPP $CPPFLAGS'
10411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10413ac_compiler_gnu=$ac_cv_c_compiler_gnu
10414
10415CC="$lt_save_CC"
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429        ac_config_commands="$ac_config_commands libtool"
10430
10431
10432
10433
10434# Only expand once:
10435
10436
10437
10438if test "x$GCC" = xyes ; then
10439  CFLAGS="-O3 $CFLAGS"
10440fi
10441
10442
10443for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
10444do :
10445  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10446ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10447if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10448  cat >>confdefs.h <<_ACEOF
10449#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10450_ACEOF
10451
10452fi
10453
10454done
10455
10456
10457for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
10458do :
10459  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10460ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10461if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10462  cat >>confdefs.h <<_ACEOF
10463#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10464_ACEOF
10465
10466fi
10467done
10468
10469
10470for ac_func in clock_gettime
10471do :
10472  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
10473if test "x$ac_cv_func_clock_gettime" = x""yes; then :
10474  cat >>confdefs.h <<_ACEOF
10475#define HAVE_CLOCK_GETTIME 1
10476_ACEOF
10477
10478else
10479
10480      if test $(uname) = Linux; then
10481      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
10482$as_echo_n "checking for clock_gettime syscall... " >&6; }
10483      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484/* end confdefs.h.  */
10485#include <unistd.h>
10486                       #include <sys/syscall.h>
10487                       #include <time.h>
10488int
10489main ()
10490{
10491struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
10492  ;
10493  return 0;
10494}
10495_ACEOF
10496if ac_fn_c_try_link "$LINENO"; then :
10497  ac_have_clock_syscall=1
10498
10499$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
10500
10501                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10502$as_echo "yes" >&6; }
10503else
10504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505$as_echo "no" >&6; }
10506fi
10507rm -f core conftest.err conftest.$ac_objext \
10508    conftest$ac_exeext conftest.$ac_ext
10509   fi
10510   if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
10511      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
10512$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
10513if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
10514  $as_echo_n "(cached) " >&6
10515else
10516  ac_check_lib_save_LIBS=$LIBS
10517LIBS="-lrt  $LIBS"
10518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519/* end confdefs.h.  */
10520
10521/* Override any GCC internal prototype to avoid an error.
10522   Use char because int might match the return type of a GCC
10523   builtin and then its argument prototype would still apply.  */
10524#ifdef __cplusplus
10525extern "C"
10526#endif
10527char clock_gettime ();
10528int
10529main ()
10530{
10531return clock_gettime ();
10532  ;
10533  return 0;
10534}
10535_ACEOF
10536if ac_fn_c_try_link "$LINENO"; then :
10537  ac_cv_lib_rt_clock_gettime=yes
10538else
10539  ac_cv_lib_rt_clock_gettime=no
10540fi
10541rm -f core conftest.err conftest.$ac_objext \
10542    conftest$ac_exeext conftest.$ac_ext
10543LIBS=$ac_check_lib_save_LIBS
10544fi
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
10546$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10547if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
10548  cat >>confdefs.h <<_ACEOF
10549#define HAVE_LIBRT 1
10550_ACEOF
10551
10552  LIBS="-lrt $LIBS"
10553
10554fi
10555
10556      unset ac_cv_func_clock_gettime
10557      for ac_func in clock_gettime
10558do :
10559  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
10560if test "x$ac_cv_func_clock_gettime" = x""yes; then :
10561  cat >>confdefs.h <<_ACEOF
10562#define HAVE_CLOCK_GETTIME 1
10563_ACEOF
10564
10565fi
10566done
10567
10568   fi
10569
10570fi
10571done
10572
10573
10574for ac_func in nanosleep
10575do :
10576  ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
10577if test "x$ac_cv_func_nanosleep" = x""yes; then :
10578  cat >>confdefs.h <<_ACEOF
10579#define HAVE_NANOSLEEP 1
10580_ACEOF
10581
10582else
10583
10584   if test -z "$LIBEV_M4_AVOID_LIBRT"; then
10585      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
10586$as_echo_n "checking for nanosleep in -lrt... " >&6; }
10587if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
10588  $as_echo_n "(cached) " >&6
10589else
10590  ac_check_lib_save_LIBS=$LIBS
10591LIBS="-lrt  $LIBS"
10592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593/* end confdefs.h.  */
10594
10595/* Override any GCC internal prototype to avoid an error.
10596   Use char because int might match the return type of a GCC
10597   builtin and then its argument prototype would still apply.  */
10598#ifdef __cplusplus
10599extern "C"
10600#endif
10601char nanosleep ();
10602int
10603main ()
10604{
10605return nanosleep ();
10606  ;
10607  return 0;
10608}
10609_ACEOF
10610if ac_fn_c_try_link "$LINENO"; then :
10611  ac_cv_lib_rt_nanosleep=yes
10612else
10613  ac_cv_lib_rt_nanosleep=no
10614fi
10615rm -f core conftest.err conftest.$ac_objext \
10616    conftest$ac_exeext conftest.$ac_ext
10617LIBS=$ac_check_lib_save_LIBS
10618fi
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
10620$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
10621if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
10622  cat >>confdefs.h <<_ACEOF
10623#define HAVE_LIBRT 1
10624_ACEOF
10625
10626  LIBS="-lrt $LIBS"
10627
10628fi
10629
10630      unset ac_cv_func_nanosleep
10631      for ac_func in nanosleep
10632do :
10633  ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
10634if test "x$ac_cv_func_nanosleep" = x""yes; then :
10635  cat >>confdefs.h <<_ACEOF
10636#define HAVE_NANOSLEEP 1
10637_ACEOF
10638
10639fi
10640done
10641
10642   fi
10643
10644fi
10645done
10646
10647
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
10649$as_echo_n "checking for ceil in -lm... " >&6; }
10650if test "${ac_cv_lib_m_ceil+set}" = set; then :
10651  $as_echo_n "(cached) " >&6
10652else
10653  ac_check_lib_save_LIBS=$LIBS
10654LIBS="-lm  $LIBS"
10655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656/* end confdefs.h.  */
10657
10658/* Override any GCC internal prototype to avoid an error.
10659   Use char because int might match the return type of a GCC
10660   builtin and then its argument prototype would still apply.  */
10661#ifdef __cplusplus
10662extern "C"
10663#endif
10664char ceil ();
10665int
10666main ()
10667{
10668return ceil ();
10669  ;
10670  return 0;
10671}
10672_ACEOF
10673if ac_fn_c_try_link "$LINENO"; then :
10674  ac_cv_lib_m_ceil=yes
10675else
10676  ac_cv_lib_m_ceil=no
10677fi
10678rm -f core conftest.err conftest.$ac_objext \
10679    conftest$ac_exeext conftest.$ac_ext
10680LIBS=$ac_check_lib_save_LIBS
10681fi
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
10683$as_echo "$ac_cv_lib_m_ceil" >&6; }
10684if test "x$ac_cv_lib_m_ceil" = x""yes; then :
10685  cat >>confdefs.h <<_ACEOF
10686#define HAVE_LIBM 1
10687_ACEOF
10688
10689  LIBS="-lm $LIBS"
10690
10691fi
10692
10693
10694
10695
10696ac_config_files="$ac_config_files Makefile"
10697
10698cat >confcache <<\_ACEOF
10699# This file is a shell script that caches the results of configure
10700# tests run on this system so they can be shared between configure
10701# scripts and configure runs, see configure's option --config-cache.
10702# It is not useful on other systems.  If it contains results you don't
10703# want to keep, you may remove or edit it.
10704#
10705# config.status only pays attention to the cache file if you give it
10706# the --recheck option to rerun configure.
10707#
10708# `ac_cv_env_foo' variables (set or unset) will be overridden when
10709# loading this file, other *unset* `ac_cv_foo' will be assigned the
10710# following values.
10711
10712_ACEOF
10713
10714# The following way of writing the cache mishandles newlines in values,
10715# but we know of no workaround that is simple, portable, and efficient.
10716# So, we kill variables containing newlines.
10717# Ultrix sh set writes to stderr and can't be redirected directly,
10718# and sets the high bit in the cache file unless we assign to the vars.
10719(
10720  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10721    eval ac_val=\$$ac_var
10722    case $ac_val in #(
10723    *${as_nl}*)
10724      case $ac_var in #(
10725      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10726$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10727      esac
10728      case $ac_var in #(
10729      _ | IFS | as_nl) ;; #(
10730      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10731      *) { eval $ac_var=; unset $ac_var;} ;;
10732      esac ;;
10733    esac
10734  done
10735
10736  (set) 2>&1 |
10737    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10738    *${as_nl}ac_space=\ *)
10739      # `set' does not quote correctly, so add quotes: double-quote
10740      # substitution turns \\\\ into \\, and sed turns \\ into \.
10741      sed -n \
10742	"s/'/'\\\\''/g;
10743	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10744      ;; #(
10745    *)
10746      # `set' quotes correctly as required by POSIX, so do not add quotes.
10747      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10748      ;;
10749    esac |
10750    sort
10751) |
10752  sed '
10753     /^ac_cv_env_/b end
10754     t clear
10755     :clear
10756     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10757     t end
10758     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10759     :end' >>confcache
10760if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10761  if test -w "$cache_file"; then
10762    test "x$cache_file" != "x/dev/null" &&
10763      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10764$as_echo "$as_me: updating cache $cache_file" >&6;}
10765    cat confcache >$cache_file
10766  else
10767    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10768$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10769  fi
10770fi
10771rm -f confcache
10772
10773test "x$prefix" = xNONE && prefix=$ac_default_prefix
10774# Let make expand exec_prefix.
10775test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10776
10777DEFS=-DHAVE_CONFIG_H
10778
10779ac_libobjs=
10780ac_ltlibobjs=
10781U=
10782for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10783  # 1. Remove the extension, and $U if already installed.
10784  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10785  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10786  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10787  #    will be set to the directory where LIBOBJS objects are built.
10788  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10789  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10790done
10791LIBOBJS=$ac_libobjs
10792
10793LTLIBOBJS=$ac_ltlibobjs
10794
10795
10796 if test -n "$EXEEXT"; then
10797  am__EXEEXT_TRUE=
10798  am__EXEEXT_FALSE='#'
10799else
10800  am__EXEEXT_TRUE='#'
10801  am__EXEEXT_FALSE=
10802fi
10803
10804if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10805  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10806Usually this means the macro was only invoked conditionally." "$LINENO" 5
10807fi
10808if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10809  as_fn_error $? "conditional \"AMDEP\" was never defined.
10810Usually this means the macro was only invoked conditionally." "$LINENO" 5
10811fi
10812if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10813  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10814Usually this means the macro was only invoked conditionally." "$LINENO" 5
10815fi
10816
10817: ${CONFIG_STATUS=./config.status}
10818ac_write_fail=0
10819ac_clean_files_save=$ac_clean_files
10820ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10822$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10823as_write_fail=0
10824cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10825#! $SHELL
10826# Generated by $as_me.
10827# Run this file to recreate the current configuration.
10828# Compiler output produced by configure, useful for debugging
10829# configure, is in config.log if it exists.
10830
10831debug=false
10832ac_cs_recheck=false
10833ac_cs_silent=false
10834
10835SHELL=\${CONFIG_SHELL-$SHELL}
10836export SHELL
10837_ASEOF
10838cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10839## -------------------- ##
10840## M4sh Initialization. ##
10841## -------------------- ##
10842
10843# Be more Bourne compatible
10844DUALCASE=1; export DUALCASE # for MKS sh
10845if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10846  emulate sh
10847  NULLCMD=:
10848  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10849  # is contrary to our usage.  Disable this feature.
10850  alias -g '${1+"$@"}'='"$@"'
10851  setopt NO_GLOB_SUBST
10852else
10853  case `(set -o) 2>/dev/null` in #(
10854  *posix*) :
10855    set -o posix ;; #(
10856  *) :
10857     ;;
10858esac
10859fi
10860
10861
10862as_nl='
10863'
10864export as_nl
10865# Printing a long string crashes Solaris 7 /usr/bin/printf.
10866as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10867as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10868as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10869# Prefer a ksh shell builtin over an external printf program on Solaris,
10870# but without wasting forks for bash or zsh.
10871if test -z "$BASH_VERSION$ZSH_VERSION" \
10872    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10873  as_echo='print -r --'
10874  as_echo_n='print -rn --'
10875elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10876  as_echo='printf %s\n'
10877  as_echo_n='printf %s'
10878else
10879  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10880    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10881    as_echo_n='/usr/ucb/echo -n'
10882  else
10883    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10884    as_echo_n_body='eval
10885      arg=$1;
10886      case $arg in #(
10887      *"$as_nl"*)
10888	expr "X$arg" : "X\\(.*\\)$as_nl";
10889	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10890      esac;
10891      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10892    '
10893    export as_echo_n_body
10894    as_echo_n='sh -c $as_echo_n_body as_echo'
10895  fi
10896  export as_echo_body
10897  as_echo='sh -c $as_echo_body as_echo'
10898fi
10899
10900# The user is always right.
10901if test "${PATH_SEPARATOR+set}" != set; then
10902  PATH_SEPARATOR=:
10903  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10904    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10905      PATH_SEPARATOR=';'
10906  }
10907fi
10908
10909
10910# IFS
10911# We need space, tab and new line, in precisely that order.  Quoting is
10912# there to prevent editors from complaining about space-tab.
10913# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10914# splitting by setting IFS to empty value.)
10915IFS=" ""	$as_nl"
10916
10917# Find who we are.  Look in the path if we contain no directory separator.
10918case $0 in #((
10919  *[\\/]* ) as_myself=$0 ;;
10920  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923  IFS=$as_save_IFS
10924  test -z "$as_dir" && as_dir=.
10925    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10926  done
10927IFS=$as_save_IFS
10928
10929     ;;
10930esac
10931# We did not find ourselves, most probably we were run as `sh COMMAND'
10932# in which case we are not to be found in the path.
10933if test "x$as_myself" = x; then
10934  as_myself=$0
10935fi
10936if test ! -f "$as_myself"; then
10937  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10938  exit 1
10939fi
10940
10941# Unset variables that we do not need and which cause bugs (e.g. in
10942# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10943# suppresses any "Segmentation fault" message there.  '((' could
10944# trigger a bug in pdksh 5.2.14.
10945for as_var in BASH_ENV ENV MAIL MAILPATH
10946do eval test x\${$as_var+set} = xset \
10947  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10948done
10949PS1='$ '
10950PS2='> '
10951PS4='+ '
10952
10953# NLS nuisances.
10954LC_ALL=C
10955export LC_ALL
10956LANGUAGE=C
10957export LANGUAGE
10958
10959# CDPATH.
10960(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10961
10962
10963# as_fn_error STATUS ERROR [LINENO LOG_FD]
10964# ----------------------------------------
10965# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10966# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10967# script with STATUS, using 1 if that was 0.
10968as_fn_error ()
10969{
10970  as_status=$1; test $as_status -eq 0 && as_status=1
10971  if test "$4"; then
10972    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10973    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10974  fi
10975  $as_echo "$as_me: error: $2" >&2
10976  as_fn_exit $as_status
10977} # as_fn_error
10978
10979
10980# as_fn_set_status STATUS
10981# -----------------------
10982# Set $? to STATUS, without forking.
10983as_fn_set_status ()
10984{
10985  return $1
10986} # as_fn_set_status
10987
10988# as_fn_exit STATUS
10989# -----------------
10990# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10991as_fn_exit ()
10992{
10993  set +e
10994  as_fn_set_status $1
10995  exit $1
10996} # as_fn_exit
10997
10998# as_fn_unset VAR
10999# ---------------
11000# Portably unset VAR.
11001as_fn_unset ()
11002{
11003  { eval $1=; unset $1;}
11004}
11005as_unset=as_fn_unset
11006# as_fn_append VAR VALUE
11007# ----------------------
11008# Append the text in VALUE to the end of the definition contained in VAR. Take
11009# advantage of any shell optimizations that allow amortized linear growth over
11010# repeated appends, instead of the typical quadratic growth present in naive
11011# implementations.
11012if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11013  eval 'as_fn_append ()
11014  {
11015    eval $1+=\$2
11016  }'
11017else
11018  as_fn_append ()
11019  {
11020    eval $1=\$$1\$2
11021  }
11022fi # as_fn_append
11023
11024# as_fn_arith ARG...
11025# ------------------
11026# Perform arithmetic evaluation on the ARGs, and store the result in the
11027# global $as_val. Take advantage of shells that can avoid forks. The arguments
11028# must be portable across $(()) and expr.
11029if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11030  eval 'as_fn_arith ()
11031  {
11032    as_val=$(( $* ))
11033  }'
11034else
11035  as_fn_arith ()
11036  {
11037    as_val=`expr "$@" || test $? -eq 1`
11038  }
11039fi # as_fn_arith
11040
11041
11042if expr a : '\(a\)' >/dev/null 2>&1 &&
11043   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11044  as_expr=expr
11045else
11046  as_expr=false
11047fi
11048
11049if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11050  as_basename=basename
11051else
11052  as_basename=false
11053fi
11054
11055if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11056  as_dirname=dirname
11057else
11058  as_dirname=false
11059fi
11060
11061as_me=`$as_basename -- "$0" ||
11062$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11063	 X"$0" : 'X\(//\)$' \| \
11064	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11065$as_echo X/"$0" |
11066    sed '/^.*\/\([^/][^/]*\)\/*$/{
11067	    s//\1/
11068	    q
11069	  }
11070	  /^X\/\(\/\/\)$/{
11071	    s//\1/
11072	    q
11073	  }
11074	  /^X\/\(\/\).*/{
11075	    s//\1/
11076	    q
11077	  }
11078	  s/.*/./; q'`
11079
11080# Avoid depending upon Character Ranges.
11081as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11082as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11083as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11084as_cr_digits='0123456789'
11085as_cr_alnum=$as_cr_Letters$as_cr_digits
11086
11087ECHO_C= ECHO_N= ECHO_T=
11088case `echo -n x` in #(((((
11089-n*)
11090  case `echo 'xy\c'` in
11091  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11092  xy)  ECHO_C='\c';;
11093  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11094       ECHO_T='	';;
11095  esac;;
11096*)
11097  ECHO_N='-n';;
11098esac
11099
11100rm -f conf$$ conf$$.exe conf$$.file
11101if test -d conf$$.dir; then
11102  rm -f conf$$.dir/conf$$.file
11103else
11104  rm -f conf$$.dir
11105  mkdir conf$$.dir 2>/dev/null
11106fi
11107if (echo >conf$$.file) 2>/dev/null; then
11108  if ln -s conf$$.file conf$$ 2>/dev/null; then
11109    as_ln_s='ln -s'
11110    # ... but there are two gotchas:
11111    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11112    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11113    # In both cases, we have to default to `cp -p'.
11114    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11115      as_ln_s='cp -p'
11116  elif ln conf$$.file conf$$ 2>/dev/null; then
11117    as_ln_s=ln
11118  else
11119    as_ln_s='cp -p'
11120  fi
11121else
11122  as_ln_s='cp -p'
11123fi
11124rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11125rmdir conf$$.dir 2>/dev/null
11126
11127
11128# as_fn_mkdir_p
11129# -------------
11130# Create "$as_dir" as a directory, including parents if necessary.
11131as_fn_mkdir_p ()
11132{
11133
11134  case $as_dir in #(
11135  -*) as_dir=./$as_dir;;
11136  esac
11137  test -d "$as_dir" || eval $as_mkdir_p || {
11138    as_dirs=
11139    while :; do
11140      case $as_dir in #(
11141      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11142      *) as_qdir=$as_dir;;
11143      esac
11144      as_dirs="'$as_qdir' $as_dirs"
11145      as_dir=`$as_dirname -- "$as_dir" ||
11146$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11147	 X"$as_dir" : 'X\(//\)[^/]' \| \
11148	 X"$as_dir" : 'X\(//\)$' \| \
11149	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11150$as_echo X"$as_dir" |
11151    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11152	    s//\1/
11153	    q
11154	  }
11155	  /^X\(\/\/\)[^/].*/{
11156	    s//\1/
11157	    q
11158	  }
11159	  /^X\(\/\/\)$/{
11160	    s//\1/
11161	    q
11162	  }
11163	  /^X\(\/\).*/{
11164	    s//\1/
11165	    q
11166	  }
11167	  s/.*/./; q'`
11168      test -d "$as_dir" && break
11169    done
11170    test -z "$as_dirs" || eval "mkdir $as_dirs"
11171  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11172
11173
11174} # as_fn_mkdir_p
11175if mkdir -p . 2>/dev/null; then
11176  as_mkdir_p='mkdir -p "$as_dir"'
11177else
11178  test -d ./-p && rmdir ./-p
11179  as_mkdir_p=false
11180fi
11181
11182if test -x / >/dev/null 2>&1; then
11183  as_test_x='test -x'
11184else
11185  if ls -dL / >/dev/null 2>&1; then
11186    as_ls_L_option=L
11187  else
11188    as_ls_L_option=
11189  fi
11190  as_test_x='
11191    eval sh -c '\''
11192      if test -d "$1"; then
11193	test -d "$1/.";
11194      else
11195	case $1 in #(
11196	-*)set "./$1";;
11197	esac;
11198	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11199	???[sx]*):;;*)false;;esac;fi
11200    '\'' sh
11201  '
11202fi
11203as_executable_p=$as_test_x
11204
11205# Sed expression to map a string onto a valid CPP name.
11206as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11207
11208# Sed expression to map a string onto a valid variable name.
11209as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11210
11211
11212exec 6>&1
11213## ----------------------------------- ##
11214## Main body of $CONFIG_STATUS script. ##
11215## ----------------------------------- ##
11216_ASEOF
11217test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11218
11219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11220# Save the log message, to keep $0 and so on meaningful, and to
11221# report actual input values of CONFIG_FILES etc. instead of their
11222# values after options handling.
11223ac_log="
11224This file was extended by $as_me, which was
11225generated by GNU Autoconf 2.67.  Invocation command line was
11226
11227  CONFIG_FILES    = $CONFIG_FILES
11228  CONFIG_HEADERS  = $CONFIG_HEADERS
11229  CONFIG_LINKS    = $CONFIG_LINKS
11230  CONFIG_COMMANDS = $CONFIG_COMMANDS
11231  $ $0 $@
11232
11233on `(hostname || uname -n) 2>/dev/null | sed 1q`
11234"
11235
11236_ACEOF
11237
11238case $ac_config_files in *"
11239"*) set x $ac_config_files; shift; ac_config_files=$*;;
11240esac
11241
11242case $ac_config_headers in *"
11243"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11244esac
11245
11246
11247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11248# Files that config.status was made for.
11249config_files="$ac_config_files"
11250config_headers="$ac_config_headers"
11251config_commands="$ac_config_commands"
11252
11253_ACEOF
11254
11255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11256ac_cs_usage="\
11257\`$as_me' instantiates files and other configuration actions
11258from templates according to the current configuration.  Unless the files
11259and actions are specified as TAGs, all are instantiated by default.
11260
11261Usage: $0 [OPTION]... [TAG]...
11262
11263  -h, --help       print this help, then exit
11264  -V, --version    print version number and configuration settings, then exit
11265      --config     print configuration, then exit
11266  -q, --quiet, --silent
11267                   do not print progress messages
11268  -d, --debug      don't remove temporary files
11269      --recheck    update $as_me by reconfiguring in the same conditions
11270      --file=FILE[:TEMPLATE]
11271                   instantiate the configuration file FILE
11272      --header=FILE[:TEMPLATE]
11273                   instantiate the configuration header FILE
11274
11275Configuration files:
11276$config_files
11277
11278Configuration headers:
11279$config_headers
11280
11281Configuration commands:
11282$config_commands
11283
11284Report bugs to the package provider."
11285
11286_ACEOF
11287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11288ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11289ac_cs_version="\\
11290config.status
11291configured by $0, generated by GNU Autoconf 2.67,
11292  with options \\"\$ac_cs_config\\"
11293
11294Copyright (C) 2010 Free Software Foundation, Inc.
11295This config.status script is free software; the Free Software Foundation
11296gives unlimited permission to copy, distribute and modify it."
11297
11298ac_pwd='$ac_pwd'
11299srcdir='$srcdir'
11300INSTALL='$INSTALL'
11301MKDIR_P='$MKDIR_P'
11302AWK='$AWK'
11303test -n "\$AWK" || AWK=awk
11304_ACEOF
11305
11306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11307# The default lists apply if the user does not specify any file.
11308ac_need_defaults=:
11309while test $# != 0
11310do
11311  case $1 in
11312  --*=?*)
11313    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11314    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11315    ac_shift=:
11316    ;;
11317  --*=)
11318    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11319    ac_optarg=
11320    ac_shift=:
11321    ;;
11322  *)
11323    ac_option=$1
11324    ac_optarg=$2
11325    ac_shift=shift
11326    ;;
11327  esac
11328
11329  case $ac_option in
11330  # Handling of the options.
11331  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11332    ac_cs_recheck=: ;;
11333  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11334    $as_echo "$ac_cs_version"; exit ;;
11335  --config | --confi | --conf | --con | --co | --c )
11336    $as_echo "$ac_cs_config"; exit ;;
11337  --debug | --debu | --deb | --de | --d | -d )
11338    debug=: ;;
11339  --file | --fil | --fi | --f )
11340    $ac_shift
11341    case $ac_optarg in
11342    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11343    '') as_fn_error $? "missing file argument" ;;
11344    esac
11345    as_fn_append CONFIG_FILES " '$ac_optarg'"
11346    ac_need_defaults=false;;
11347  --header | --heade | --head | --hea )
11348    $ac_shift
11349    case $ac_optarg in
11350    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11351    esac
11352    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11353    ac_need_defaults=false;;
11354  --he | --h)
11355    # Conflict between --help and --header
11356    as_fn_error $? "ambiguous option: \`$1'
11357Try \`$0 --help' for more information.";;
11358  --help | --hel | -h )
11359    $as_echo "$ac_cs_usage"; exit ;;
11360  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11361  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11362    ac_cs_silent=: ;;
11363
11364  # This is an error.
11365  -*) as_fn_error $? "unrecognized option: \`$1'
11366Try \`$0 --help' for more information." ;;
11367
11368  *) as_fn_append ac_config_targets " $1"
11369     ac_need_defaults=false ;;
11370
11371  esac
11372  shift
11373done
11374
11375ac_configure_extra_args=
11376
11377if $ac_cs_silent; then
11378  exec 6>/dev/null
11379  ac_configure_extra_args="$ac_configure_extra_args --silent"
11380fi
11381
11382_ACEOF
11383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11384if \$ac_cs_recheck; then
11385  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11386  shift
11387  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11388  CONFIG_SHELL='$SHELL'
11389  export CONFIG_SHELL
11390  exec "\$@"
11391fi
11392
11393_ACEOF
11394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11395exec 5>>config.log
11396{
11397  echo
11398  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11399## Running $as_me. ##
11400_ASBOX
11401  $as_echo "$ac_log"
11402} >&5
11403
11404_ACEOF
11405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11406#
11407# INIT-COMMANDS
11408#
11409AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11410
11411
11412# The HP-UX ksh and POSIX shell print the target directory to stdout
11413# if CDPATH is set.
11414(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11415
11416sed_quote_subst='$sed_quote_subst'
11417double_quote_subst='$double_quote_subst'
11418delay_variable_subst='$delay_variable_subst'
11419macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11420macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11421enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11422enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11423pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11424enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11425host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11426host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11427host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11428build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11429build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11430build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11431SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11432Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11433GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11434EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11435FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11436LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11437NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11438LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11439max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11440ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11441exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11442lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11443lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11444lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11445reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11446reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11447OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11448deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11449file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11450AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11451AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11452STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11453RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11454old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11455old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11456old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11457CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11458CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11459compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11460GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11461lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11462lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11463lt_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"`'
11464lt_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"`'
11465objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11466SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11467ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11468MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11469lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11470lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11471lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11472lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11473lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11474need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11475DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11476NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11477LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11478OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11479OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11480libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11481shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11482extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11483archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11484enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11485export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11486whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11487compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11488old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11489old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11490archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11491archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11492module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11493module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11494with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11495allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11496no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11497hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11498hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11499hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11500hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11501hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11502hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11503hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11504hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11505inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11506link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11507fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11508always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11509export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11510exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11511include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11512prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11513file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11514variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11515need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11516need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11517version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11518runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11519shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11520shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11521libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11522library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11523soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11524postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11525postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11526finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11527finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11528hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11529sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11530sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11531hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11532enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11533enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11534enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11535old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11536striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11537
11538LTCC='$LTCC'
11539LTCFLAGS='$LTCFLAGS'
11540compiler='$compiler_DEFAULT'
11541
11542# Quote evaled strings.
11543for var in SED \
11544GREP \
11545EGREP \
11546FGREP \
11547LD \
11548NM \
11549LN_S \
11550lt_SP2NL \
11551lt_NL2SP \
11552reload_flag \
11553OBJDUMP \
11554deplibs_check_method \
11555file_magic_cmd \
11556AR \
11557AR_FLAGS \
11558STRIP \
11559RANLIB \
11560CC \
11561CFLAGS \
11562compiler \
11563lt_cv_sys_global_symbol_pipe \
11564lt_cv_sys_global_symbol_to_cdecl \
11565lt_cv_sys_global_symbol_to_c_name_address \
11566lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11567SHELL \
11568ECHO \
11569lt_prog_compiler_no_builtin_flag \
11570lt_prog_compiler_wl \
11571lt_prog_compiler_pic \
11572lt_prog_compiler_static \
11573lt_cv_prog_compiler_c_o \
11574need_locks \
11575DSYMUTIL \
11576NMEDIT \
11577LIPO \
11578OTOOL \
11579OTOOL64 \
11580shrext_cmds \
11581export_dynamic_flag_spec \
11582whole_archive_flag_spec \
11583compiler_needs_object \
11584with_gnu_ld \
11585allow_undefined_flag \
11586no_undefined_flag \
11587hardcode_libdir_flag_spec \
11588hardcode_libdir_flag_spec_ld \
11589hardcode_libdir_separator \
11590fix_srcfile_path \
11591exclude_expsyms \
11592include_expsyms \
11593file_list_spec \
11594variables_saved_for_relink \
11595libname_spec \
11596library_names_spec \
11597soname_spec \
11598finish_eval \
11599old_striplib \
11600striplib; do
11601    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11602    *[\\\\\\\`\\"\\\$]*)
11603      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11604      ;;
11605    *)
11606      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11607      ;;
11608    esac
11609done
11610
11611# Double-quote double-evaled strings.
11612for var in reload_cmds \
11613old_postinstall_cmds \
11614old_postuninstall_cmds \
11615old_archive_cmds \
11616extract_expsyms_cmds \
11617old_archive_from_new_cmds \
11618old_archive_from_expsyms_cmds \
11619archive_cmds \
11620archive_expsym_cmds \
11621module_cmds \
11622module_expsym_cmds \
11623export_symbols_cmds \
11624prelink_cmds \
11625postinstall_cmds \
11626postuninstall_cmds \
11627finish_cmds \
11628sys_lib_search_path_spec \
11629sys_lib_dlsearch_path_spec; do
11630    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11631    *[\\\\\\\`\\"\\\$]*)
11632      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11633      ;;
11634    *)
11635      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11636      ;;
11637    esac
11638done
11639
11640# Fix-up fallback echo if it was mangled by the above quoting rules.
11641case \$lt_ECHO in
11642*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11643  ;;
11644esac
11645
11646ac_aux_dir='$ac_aux_dir'
11647xsi_shell='$xsi_shell'
11648lt_shell_append='$lt_shell_append'
11649
11650# See if we are running on zsh, and set the options which allow our
11651# commands through without removal of \ escapes INIT.
11652if test -n "\${ZSH_VERSION+set}" ; then
11653   setopt NO_GLOB_SUBST
11654fi
11655
11656
11657    PACKAGE='$PACKAGE'
11658    VERSION='$VERSION'
11659    TIMESTAMP='$TIMESTAMP'
11660    RM='$RM'
11661    ofile='$ofile'
11662
11663
11664
11665
11666_ACEOF
11667
11668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11669
11670# Handling of arguments.
11671for ac_config_target in $ac_config_targets
11672do
11673  case $ac_config_target in
11674    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11675    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11676    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11677    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11678
11679  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
11680  esac
11681done
11682
11683
11684# If the user did not use the arguments to specify the items to instantiate,
11685# then the envvar interface is used.  Set only those that are not.
11686# We use the long form for the default assignment because of an extremely
11687# bizarre bug on SunOS 4.1.3.
11688if $ac_need_defaults; then
11689  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11690  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11691  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11692fi
11693
11694# Have a temporary directory for convenience.  Make it in the build tree
11695# simply because there is no reason against having it here, and in addition,
11696# creating and moving files from /tmp can sometimes cause problems.
11697# Hook for its removal unless debugging.
11698# Note that there is a small window in which the directory will not be cleaned:
11699# after its creation but before its name has been assigned to `$tmp'.
11700$debug ||
11701{
11702  tmp=
11703  trap 'exit_status=$?
11704  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11705' 0
11706  trap 'as_fn_exit 1' 1 2 13 15
11707}
11708# Create a (secure) tmp directory for tmp files.
11709
11710{
11711  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11712  test -n "$tmp" && test -d "$tmp"
11713}  ||
11714{
11715  tmp=./conf$$-$RANDOM
11716  (umask 077 && mkdir "$tmp")
11717} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11718
11719# Set up the scripts for CONFIG_FILES section.
11720# No need to generate them if there are no CONFIG_FILES.
11721# This happens for instance with `./config.status config.h'.
11722if test -n "$CONFIG_FILES"; then
11723
11724
11725ac_cr=`echo X | tr X '\015'`
11726# On cygwin, bash can eat \r inside `` if the user requested igncr.
11727# But we know of no other shell where ac_cr would be empty at this
11728# point, so we can use a bashism as a fallback.
11729if test "x$ac_cr" = x; then
11730  eval ac_cr=\$\'\\r\'
11731fi
11732ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11733if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11734  ac_cs_awk_cr='\\r'
11735else
11736  ac_cs_awk_cr=$ac_cr
11737fi
11738
11739echo 'BEGIN {' >"$tmp/subs1.awk" &&
11740_ACEOF
11741
11742
11743{
11744  echo "cat >conf$$subs.awk <<_ACEOF" &&
11745  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11746  echo "_ACEOF"
11747} >conf$$subs.sh ||
11748  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11749ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11750ac_delim='%!_!# '
11751for ac_last_try in false false false false false :; do
11752  . ./conf$$subs.sh ||
11753    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11754
11755  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11756  if test $ac_delim_n = $ac_delim_num; then
11757    break
11758  elif $ac_last_try; then
11759    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11760  else
11761    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11762  fi
11763done
11764rm -f conf$$subs.sh
11765
11766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11767cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11768_ACEOF
11769sed -n '
11770h
11771s/^/S["/; s/!.*/"]=/
11772p
11773g
11774s/^[^!]*!//
11775:repl
11776t repl
11777s/'"$ac_delim"'$//
11778t delim
11779:nl
11780h
11781s/\(.\{148\}\)..*/\1/
11782t more1
11783s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11784p
11785n
11786b repl
11787:more1
11788s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11789p
11790g
11791s/.\{148\}//
11792t nl
11793:delim
11794h
11795s/\(.\{148\}\)..*/\1/
11796t more2
11797s/["\\]/\\&/g; s/^/"/; s/$/"/
11798p
11799b
11800:more2
11801s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11802p
11803g
11804s/.\{148\}//
11805t delim
11806' <conf$$subs.awk | sed '
11807/^[^""]/{
11808  N
11809  s/\n//
11810}
11811' >>$CONFIG_STATUS || ac_write_fail=1
11812rm -f conf$$subs.awk
11813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11814_ACAWK
11815cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11816  for (key in S) S_is_set[key] = 1
11817  FS = ""
11818
11819}
11820{
11821  line = $ 0
11822  nfields = split(line, field, "@")
11823  substed = 0
11824  len = length(field[1])
11825  for (i = 2; i < nfields; i++) {
11826    key = field[i]
11827    keylen = length(key)
11828    if (S_is_set[key]) {
11829      value = S[key]
11830      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11831      len += length(value) + length(field[++i])
11832      substed = 1
11833    } else
11834      len += 1 + keylen
11835  }
11836
11837  print line
11838}
11839
11840_ACAWK
11841_ACEOF
11842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11843if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11844  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11845else
11846  cat
11847fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11848  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11849_ACEOF
11850
11851# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11852# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11853# trailing colons and then remove the whole line if VPATH becomes empty
11854# (actually we leave an empty line to preserve line numbers).
11855if test "x$srcdir" = x.; then
11856  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11857h
11858s///
11859s/^/:/
11860s/[	 ]*$/:/
11861s/:\$(srcdir):/:/g
11862s/:\${srcdir}:/:/g
11863s/:@srcdir@:/:/g
11864s/^:*//
11865s/:*$//
11866x
11867s/\(=[	 ]*\).*/\1/
11868G
11869s/\n//
11870s/^[^=]*=[	 ]*$//
11871}'
11872fi
11873
11874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11875fi # test -n "$CONFIG_FILES"
11876
11877# Set up the scripts for CONFIG_HEADERS section.
11878# No need to generate them if there are no CONFIG_HEADERS.
11879# This happens for instance with `./config.status Makefile'.
11880if test -n "$CONFIG_HEADERS"; then
11881cat >"$tmp/defines.awk" <<\_ACAWK ||
11882BEGIN {
11883_ACEOF
11884
11885# Transform confdefs.h into an awk script `defines.awk', embedded as
11886# here-document in config.status, that substitutes the proper values into
11887# config.h.in to produce config.h.
11888
11889# Create a delimiter string that does not exist in confdefs.h, to ease
11890# handling of long lines.
11891ac_delim='%!_!# '
11892for ac_last_try in false false :; do
11893  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11894  if test -z "$ac_t"; then
11895    break
11896  elif $ac_last_try; then
11897    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11898  else
11899    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11900  fi
11901done
11902
11903# For the awk script, D is an array of macro values keyed by name,
11904# likewise P contains macro parameters if any.  Preserve backslash
11905# newline sequences.
11906
11907ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11908sed -n '
11909s/.\{148\}/&'"$ac_delim"'/g
11910t rset
11911:rset
11912s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11913t def
11914d
11915:def
11916s/\\$//
11917t bsnl
11918s/["\\]/\\&/g
11919s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11920D["\1"]=" \3"/p
11921s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11922d
11923:bsnl
11924s/["\\]/\\&/g
11925s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11926D["\1"]=" \3\\\\\\n"\\/p
11927t cont
11928s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11929t cont
11930d
11931:cont
11932n
11933s/.\{148\}/&'"$ac_delim"'/g
11934t clear
11935:clear
11936s/\\$//
11937t bsnlc
11938s/["\\]/\\&/g; s/^/"/; s/$/"/p
11939d
11940:bsnlc
11941s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11942b cont
11943' <confdefs.h | sed '
11944s/'"$ac_delim"'/"\\\
11945"/g' >>$CONFIG_STATUS || ac_write_fail=1
11946
11947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11948  for (key in D) D_is_set[key] = 1
11949  FS = ""
11950}
11951/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11952  line = \$ 0
11953  split(line, arg, " ")
11954  if (arg[1] == "#") {
11955    defundef = arg[2]
11956    mac1 = arg[3]
11957  } else {
11958    defundef = substr(arg[1], 2)
11959    mac1 = arg[2]
11960  }
11961  split(mac1, mac2, "(") #)
11962  macro = mac2[1]
11963  prefix = substr(line, 1, index(line, defundef) - 1)
11964  if (D_is_set[macro]) {
11965    # Preserve the white space surrounding the "#".
11966    print prefix "define", macro P[macro] D[macro]
11967    next
11968  } else {
11969    # Replace #undef with comments.  This is necessary, for example,
11970    # in the case of _POSIX_SOURCE, which is predefined and required
11971    # on some systems where configure will not decide to define it.
11972    if (defundef == "undef") {
11973      print "/*", prefix defundef, macro, "*/"
11974      next
11975    }
11976  }
11977}
11978{ print }
11979_ACAWK
11980_ACEOF
11981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11982  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11983fi # test -n "$CONFIG_HEADERS"
11984
11985
11986eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11987shift
11988for ac_tag
11989do
11990  case $ac_tag in
11991  :[FHLC]) ac_mode=$ac_tag; continue;;
11992  esac
11993  case $ac_mode$ac_tag in
11994  :[FHL]*:*);;
11995  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
11996  :[FH]-) ac_tag=-:-;;
11997  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11998  esac
11999  ac_save_IFS=$IFS
12000  IFS=:
12001  set x $ac_tag
12002  IFS=$ac_save_IFS
12003  shift
12004  ac_file=$1
12005  shift
12006
12007  case $ac_mode in
12008  :L) ac_source=$1;;
12009  :[FH])
12010    ac_file_inputs=
12011    for ac_f
12012    do
12013      case $ac_f in
12014      -) ac_f="$tmp/stdin";;
12015      *) # Look for the file first in the build tree, then in the source tree
12016	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12017	 # because $ac_f cannot contain `:'.
12018	 test -f "$ac_f" ||
12019	   case $ac_f in
12020	   [\\/$]*) false;;
12021	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12022	   esac ||
12023	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12024      esac
12025      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12026      as_fn_append ac_file_inputs " '$ac_f'"
12027    done
12028
12029    # Let's still pretend it is `configure' which instantiates (i.e., don't
12030    # use $as_me), people would be surprised to read:
12031    #    /* config.h.  Generated by config.status.  */
12032    configure_input='Generated from '`
12033	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12034	`' by configure.'
12035    if test x"$ac_file" != x-; then
12036      configure_input="$ac_file.  $configure_input"
12037      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12038$as_echo "$as_me: creating $ac_file" >&6;}
12039    fi
12040    # Neutralize special characters interpreted by sed in replacement strings.
12041    case $configure_input in #(
12042    *\&* | *\|* | *\\* )
12043       ac_sed_conf_input=`$as_echo "$configure_input" |
12044       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12045    *) ac_sed_conf_input=$configure_input;;
12046    esac
12047
12048    case $ac_tag in
12049    *:-:* | *:-) cat >"$tmp/stdin" \
12050      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
12051    esac
12052    ;;
12053  esac
12054
12055  ac_dir=`$as_dirname -- "$ac_file" ||
12056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12057	 X"$ac_file" : 'X\(//\)[^/]' \| \
12058	 X"$ac_file" : 'X\(//\)$' \| \
12059	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12060$as_echo X"$ac_file" |
12061    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12062	    s//\1/
12063	    q
12064	  }
12065	  /^X\(\/\/\)[^/].*/{
12066	    s//\1/
12067	    q
12068	  }
12069	  /^X\(\/\/\)$/{
12070	    s//\1/
12071	    q
12072	  }
12073	  /^X\(\/\).*/{
12074	    s//\1/
12075	    q
12076	  }
12077	  s/.*/./; q'`
12078  as_dir="$ac_dir"; as_fn_mkdir_p
12079  ac_builddir=.
12080
12081case "$ac_dir" in
12082.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12083*)
12084  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12085  # A ".." for each directory in $ac_dir_suffix.
12086  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12087  case $ac_top_builddir_sub in
12088  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12089  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12090  esac ;;
12091esac
12092ac_abs_top_builddir=$ac_pwd
12093ac_abs_builddir=$ac_pwd$ac_dir_suffix
12094# for backward compatibility:
12095ac_top_builddir=$ac_top_build_prefix
12096
12097case $srcdir in
12098  .)  # We are building in place.
12099    ac_srcdir=.
12100    ac_top_srcdir=$ac_top_builddir_sub
12101    ac_abs_top_srcdir=$ac_pwd ;;
12102  [\\/]* | ?:[\\/]* )  # Absolute name.
12103    ac_srcdir=$srcdir$ac_dir_suffix;
12104    ac_top_srcdir=$srcdir
12105    ac_abs_top_srcdir=$srcdir ;;
12106  *) # Relative name.
12107    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12108    ac_top_srcdir=$ac_top_build_prefix$srcdir
12109    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12110esac
12111ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12112
12113
12114  case $ac_mode in
12115  :F)
12116  #
12117  # CONFIG_FILE
12118  #
12119
12120  case $INSTALL in
12121  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12122  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12123  esac
12124  ac_MKDIR_P=$MKDIR_P
12125  case $MKDIR_P in
12126  [\\/$]* | ?:[\\/]* ) ;;
12127  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12128  esac
12129_ACEOF
12130
12131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12132# If the template does not know about datarootdir, expand it.
12133# FIXME: This hack should be removed a few years after 2.60.
12134ac_datarootdir_hack=; ac_datarootdir_seen=
12135ac_sed_dataroot='
12136/datarootdir/ {
12137  p
12138  q
12139}
12140/@datadir@/p
12141/@docdir@/p
12142/@infodir@/p
12143/@localedir@/p
12144/@mandir@/p'
12145case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12146*datarootdir*) ac_datarootdir_seen=yes;;
12147*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12148  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12149$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12150_ACEOF
12151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12152  ac_datarootdir_hack='
12153  s&@datadir@&$datadir&g
12154  s&@docdir@&$docdir&g
12155  s&@infodir@&$infodir&g
12156  s&@localedir@&$localedir&g
12157  s&@mandir@&$mandir&g
12158  s&\\\${datarootdir}&$datarootdir&g' ;;
12159esac
12160_ACEOF
12161
12162# Neutralize VPATH when `$srcdir' = `.'.
12163# Shell code in configure.ac might set extrasub.
12164# FIXME: do we really want to maintain this feature?
12165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12166ac_sed_extra="$ac_vpsub
12167$extrasub
12168_ACEOF
12169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12170:t
12171/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12172s|@configure_input@|$ac_sed_conf_input|;t t
12173s&@top_builddir@&$ac_top_builddir_sub&;t t
12174s&@top_build_prefix@&$ac_top_build_prefix&;t t
12175s&@srcdir@&$ac_srcdir&;t t
12176s&@abs_srcdir@&$ac_abs_srcdir&;t t
12177s&@top_srcdir@&$ac_top_srcdir&;t t
12178s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12179s&@builddir@&$ac_builddir&;t t
12180s&@abs_builddir@&$ac_abs_builddir&;t t
12181s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12182s&@INSTALL@&$ac_INSTALL&;t t
12183s&@MKDIR_P@&$ac_MKDIR_P&;t t
12184$ac_datarootdir_hack
12185"
12186eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12187  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12188
12189test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12190  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12191  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12192  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12193which seems to be undefined.  Please make sure it is defined" >&5
12194$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12195which seems to be undefined.  Please make sure it is defined" >&2;}
12196
12197  rm -f "$tmp/stdin"
12198  case $ac_file in
12199  -) cat "$tmp/out" && rm -f "$tmp/out";;
12200  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12201  esac \
12202  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12203 ;;
12204  :H)
12205  #
12206  # CONFIG_HEADER
12207  #
12208  if test x"$ac_file" != x-; then
12209    {
12210      $as_echo "/* $configure_input  */" \
12211      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12212    } >"$tmp/config.h" \
12213      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12214    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12215      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12216$as_echo "$as_me: $ac_file is unchanged" >&6;}
12217    else
12218      rm -f "$ac_file"
12219      mv "$tmp/config.h" "$ac_file" \
12220	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12221    fi
12222  else
12223    $as_echo "/* $configure_input  */" \
12224      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12225      || as_fn_error $? "could not create -" "$LINENO" 5
12226  fi
12227# Compute "$ac_file"'s index in $config_headers.
12228_am_arg="$ac_file"
12229_am_stamp_count=1
12230for _am_header in $config_headers :; do
12231  case $_am_header in
12232    $_am_arg | $_am_arg:* )
12233      break ;;
12234    * )
12235      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12236  esac
12237done
12238echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12239$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12240	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12241	 X"$_am_arg" : 'X\(//\)$' \| \
12242	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12243$as_echo X"$_am_arg" |
12244    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12245	    s//\1/
12246	    q
12247	  }
12248	  /^X\(\/\/\)[^/].*/{
12249	    s//\1/
12250	    q
12251	  }
12252	  /^X\(\/\/\)$/{
12253	    s//\1/
12254	    q
12255	  }
12256	  /^X\(\/\).*/{
12257	    s//\1/
12258	    q
12259	  }
12260	  s/.*/./; q'`/stamp-h$_am_stamp_count
12261 ;;
12262
12263  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12264$as_echo "$as_me: executing $ac_file commands" >&6;}
12265 ;;
12266  esac
12267
12268
12269  case $ac_file$ac_mode in
12270    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12271  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12272  # are listed without --file.  Let's play safe and only enable the eval
12273  # if we detect the quoting.
12274  case $CONFIG_FILES in
12275  *\'*) eval set x "$CONFIG_FILES" ;;
12276  *)   set x $CONFIG_FILES ;;
12277  esac
12278  shift
12279  for mf
12280  do
12281    # Strip MF so we end up with the name of the file.
12282    mf=`echo "$mf" | sed -e 's/:.*$//'`
12283    # Check whether this is an Automake generated Makefile or not.
12284    # We used to match only the files named `Makefile.in', but
12285    # some people rename them; so instead we look at the file content.
12286    # Grep'ing the first line is not enough: some people post-process
12287    # each Makefile.in and add a new line on top of each file to say so.
12288    # Grep'ing the whole file is not good either: AIX grep has a line
12289    # limit of 2048, but all sed's we know have understand at least 4000.
12290    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12291      dirpart=`$as_dirname -- "$mf" ||
12292$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12293	 X"$mf" : 'X\(//\)[^/]' \| \
12294	 X"$mf" : 'X\(//\)$' \| \
12295	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12296$as_echo X"$mf" |
12297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12298	    s//\1/
12299	    q
12300	  }
12301	  /^X\(\/\/\)[^/].*/{
12302	    s//\1/
12303	    q
12304	  }
12305	  /^X\(\/\/\)$/{
12306	    s//\1/
12307	    q
12308	  }
12309	  /^X\(\/\).*/{
12310	    s//\1/
12311	    q
12312	  }
12313	  s/.*/./; q'`
12314    else
12315      continue
12316    fi
12317    # Extract the definition of DEPDIR, am__include, and am__quote
12318    # from the Makefile without running `make'.
12319    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12320    test -z "$DEPDIR" && continue
12321    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12322    test -z "am__include" && continue
12323    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12324    # When using ansi2knr, U may be empty or an underscore; expand it
12325    U=`sed -n 's/^U = //p' < "$mf"`
12326    # Find all dependency output files, they are included files with
12327    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12328    # simplest approach to changing $(DEPDIR) to its actual value in the
12329    # expansion.
12330    for file in `sed -n "
12331      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12332	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12333      # Make sure the directory exists.
12334      test -f "$dirpart/$file" && continue
12335      fdir=`$as_dirname -- "$file" ||
12336$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12337	 X"$file" : 'X\(//\)[^/]' \| \
12338	 X"$file" : 'X\(//\)$' \| \
12339	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12340$as_echo X"$file" |
12341    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12342	    s//\1/
12343	    q
12344	  }
12345	  /^X\(\/\/\)[^/].*/{
12346	    s//\1/
12347	    q
12348	  }
12349	  /^X\(\/\/\)$/{
12350	    s//\1/
12351	    q
12352	  }
12353	  /^X\(\/\).*/{
12354	    s//\1/
12355	    q
12356	  }
12357	  s/.*/./; q'`
12358      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12359      # echo "creating $dirpart/$file"
12360      echo '# dummy' > "$dirpart/$file"
12361    done
12362  done
12363}
12364 ;;
12365    "libtool":C)
12366
12367    # See if we are running on zsh, and set the options which allow our
12368    # commands through without removal of \ escapes.
12369    if test -n "${ZSH_VERSION+set}" ; then
12370      setopt NO_GLOB_SUBST
12371    fi
12372
12373    cfgfile="${ofile}T"
12374    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12375    $RM "$cfgfile"
12376
12377    cat <<_LT_EOF >> "$cfgfile"
12378#! $SHELL
12379
12380# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12381# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12382# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12383# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12384#
12385#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12386#                 2006, 2007, 2008 Free Software Foundation, Inc.
12387#   Written by Gordon Matzigkeit, 1996
12388#
12389#   This file is part of GNU Libtool.
12390#
12391# GNU Libtool is free software; you can redistribute it and/or
12392# modify it under the terms of the GNU General Public License as
12393# published by the Free Software Foundation; either version 2 of
12394# the License, or (at your option) any later version.
12395#
12396# As a special exception to the GNU General Public License,
12397# if you distribute this file as part of a program or library that
12398# is built using GNU Libtool, you may include this file under the
12399# same distribution terms that you use for the rest of that program.
12400#
12401# GNU Libtool is distributed in the hope that it will be useful,
12402# but WITHOUT ANY WARRANTY; without even the implied warranty of
12403# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12404# GNU General Public License for more details.
12405#
12406# You should have received a copy of the GNU General Public License
12407# along with GNU Libtool; see the file COPYING.  If not, a copy
12408# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12409# obtained by writing to the Free Software Foundation, Inc.,
12410# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12411
12412
12413# The names of the tagged configurations supported by this script.
12414available_tags=""
12415
12416# ### BEGIN LIBTOOL CONFIG
12417
12418# Which release of libtool.m4 was used?
12419macro_version=$macro_version
12420macro_revision=$macro_revision
12421
12422# Whether or not to build shared libraries.
12423build_libtool_libs=$enable_shared
12424
12425# Whether or not to build static libraries.
12426build_old_libs=$enable_static
12427
12428# What type of objects to build.
12429pic_mode=$pic_mode
12430
12431# Whether or not to optimize for fast installation.
12432fast_install=$enable_fast_install
12433
12434# The host system.
12435host_alias=$host_alias
12436host=$host
12437host_os=$host_os
12438
12439# The build system.
12440build_alias=$build_alias
12441build=$build
12442build_os=$build_os
12443
12444# A sed program that does not truncate output.
12445SED=$lt_SED
12446
12447# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12448Xsed="\$SED -e 1s/^X//"
12449
12450# A grep program that handles long lines.
12451GREP=$lt_GREP
12452
12453# An ERE matcher.
12454EGREP=$lt_EGREP
12455
12456# A literal string matcher.
12457FGREP=$lt_FGREP
12458
12459# A BSD- or MS-compatible name lister.
12460NM=$lt_NM
12461
12462# Whether we need soft or hard links.
12463LN_S=$lt_LN_S
12464
12465# What is the maximum length of a command?
12466max_cmd_len=$max_cmd_len
12467
12468# Object file suffix (normally "o").
12469objext=$ac_objext
12470
12471# Executable file suffix (normally "").
12472exeext=$exeext
12473
12474# whether the shell understands "unset".
12475lt_unset=$lt_unset
12476
12477# turn spaces into newlines.
12478SP2NL=$lt_lt_SP2NL
12479
12480# turn newlines into spaces.
12481NL2SP=$lt_lt_NL2SP
12482
12483# How to create reloadable object files.
12484reload_flag=$lt_reload_flag
12485reload_cmds=$lt_reload_cmds
12486
12487# An object symbol dumper.
12488OBJDUMP=$lt_OBJDUMP
12489
12490# Method to check whether dependent libraries are shared objects.
12491deplibs_check_method=$lt_deplibs_check_method
12492
12493# Command to use when deplibs_check_method == "file_magic".
12494file_magic_cmd=$lt_file_magic_cmd
12495
12496# The archiver.
12497AR=$lt_AR
12498AR_FLAGS=$lt_AR_FLAGS
12499
12500# A symbol stripping program.
12501STRIP=$lt_STRIP
12502
12503# Commands used to install an old-style archive.
12504RANLIB=$lt_RANLIB
12505old_postinstall_cmds=$lt_old_postinstall_cmds
12506old_postuninstall_cmds=$lt_old_postuninstall_cmds
12507
12508# A C compiler.
12509LTCC=$lt_CC
12510
12511# LTCC compiler flags.
12512LTCFLAGS=$lt_CFLAGS
12513
12514# Take the output of nm and produce a listing of raw symbols and C names.
12515global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12516
12517# Transform the output of nm in a proper C declaration.
12518global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12519
12520# Transform the output of nm in a C name address pair.
12521global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12522
12523# Transform the output of nm in a C name address pair when lib prefix is needed.
12524global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12525
12526# The name of the directory that contains temporary libtool files.
12527objdir=$objdir
12528
12529# Shell to use when invoking shell scripts.
12530SHELL=$lt_SHELL
12531
12532# An echo program that does not interpret backslashes.
12533ECHO=$lt_ECHO
12534
12535# Used to examine libraries when file_magic_cmd begins with "file".
12536MAGIC_CMD=$MAGIC_CMD
12537
12538# Must we lock files when doing compilation?
12539need_locks=$lt_need_locks
12540
12541# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12542DSYMUTIL=$lt_DSYMUTIL
12543
12544# Tool to change global to local symbols on Mac OS X.
12545NMEDIT=$lt_NMEDIT
12546
12547# Tool to manipulate fat objects and archives on Mac OS X.
12548LIPO=$lt_LIPO
12549
12550# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12551OTOOL=$lt_OTOOL
12552
12553# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12554OTOOL64=$lt_OTOOL64
12555
12556# Old archive suffix (normally "a").
12557libext=$libext
12558
12559# Shared library suffix (normally ".so").
12560shrext_cmds=$lt_shrext_cmds
12561
12562# The commands to extract the exported symbol list from a shared archive.
12563extract_expsyms_cmds=$lt_extract_expsyms_cmds
12564
12565# Variables whose values should be saved in libtool wrapper scripts and
12566# restored at link time.
12567variables_saved_for_relink=$lt_variables_saved_for_relink
12568
12569# Do we need the "lib" prefix for modules?
12570need_lib_prefix=$need_lib_prefix
12571
12572# Do we need a version for libraries?
12573need_version=$need_version
12574
12575# Library versioning type.
12576version_type=$version_type
12577
12578# Shared library runtime path variable.
12579runpath_var=$runpath_var
12580
12581# Shared library path variable.
12582shlibpath_var=$shlibpath_var
12583
12584# Is shlibpath searched before the hard-coded library search path?
12585shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12586
12587# Format of library name prefix.
12588libname_spec=$lt_libname_spec
12589
12590# List of archive names.  First name is the real one, the rest are links.
12591# The last name is the one that the linker finds with -lNAME
12592library_names_spec=$lt_library_names_spec
12593
12594# The coded name of the library, if different from the real name.
12595soname_spec=$lt_soname_spec
12596
12597# Command to use after installation of a shared archive.
12598postinstall_cmds=$lt_postinstall_cmds
12599
12600# Command to use after uninstallation of a shared archive.
12601postuninstall_cmds=$lt_postuninstall_cmds
12602
12603# Commands used to finish a libtool library installation in a directory.
12604finish_cmds=$lt_finish_cmds
12605
12606# As "finish_cmds", except a single script fragment to be evaled but
12607# not shown.
12608finish_eval=$lt_finish_eval
12609
12610# Whether we should hardcode library paths into libraries.
12611hardcode_into_libs=$hardcode_into_libs
12612
12613# Compile-time system search path for libraries.
12614sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12615
12616# Run-time system search path for libraries.
12617sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12618
12619# Whether dlopen is supported.
12620dlopen_support=$enable_dlopen
12621
12622# Whether dlopen of programs is supported.
12623dlopen_self=$enable_dlopen_self
12624
12625# Whether dlopen of statically linked programs is supported.
12626dlopen_self_static=$enable_dlopen_self_static
12627
12628# Commands to strip libraries.
12629old_striplib=$lt_old_striplib
12630striplib=$lt_striplib
12631
12632
12633# The linker used to build libraries.
12634LD=$lt_LD
12635
12636# Commands used to build an old-style archive.
12637old_archive_cmds=$lt_old_archive_cmds
12638
12639# A language specific compiler.
12640CC=$lt_compiler
12641
12642# Is the compiler the GNU compiler?
12643with_gcc=$GCC
12644
12645# Compiler flag to turn off builtin functions.
12646no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12647
12648# How to pass a linker flag through the compiler.
12649wl=$lt_lt_prog_compiler_wl
12650
12651# Additional compiler flags for building library objects.
12652pic_flag=$lt_lt_prog_compiler_pic
12653
12654# Compiler flag to prevent dynamic linking.
12655link_static_flag=$lt_lt_prog_compiler_static
12656
12657# Does compiler simultaneously support -c and -o options?
12658compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12659
12660# Whether or not to add -lc for building shared libraries.
12661build_libtool_need_lc=$archive_cmds_need_lc
12662
12663# Whether or not to disallow shared libs when runtime libs are static.
12664allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12665
12666# Compiler flag to allow reflexive dlopens.
12667export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12668
12669# Compiler flag to generate shared objects directly from archives.
12670whole_archive_flag_spec=$lt_whole_archive_flag_spec
12671
12672# Whether the compiler copes with passing no objects directly.
12673compiler_needs_object=$lt_compiler_needs_object
12674
12675# Create an old-style archive from a shared archive.
12676old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12677
12678# Create a temporary old-style archive to link instead of a shared archive.
12679old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12680
12681# Commands used to build a shared archive.
12682archive_cmds=$lt_archive_cmds
12683archive_expsym_cmds=$lt_archive_expsym_cmds
12684
12685# Commands used to build a loadable module if different from building
12686# a shared archive.
12687module_cmds=$lt_module_cmds
12688module_expsym_cmds=$lt_module_expsym_cmds
12689
12690# Whether we are building with GNU ld or not.
12691with_gnu_ld=$lt_with_gnu_ld
12692
12693# Flag that allows shared libraries with undefined symbols to be built.
12694allow_undefined_flag=$lt_allow_undefined_flag
12695
12696# Flag that enforces no undefined symbols.
12697no_undefined_flag=$lt_no_undefined_flag
12698
12699# Flag to hardcode \$libdir into a binary during linking.
12700# This must work even if \$libdir does not exist
12701hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12702
12703# If ld is used when linking, flag to hardcode \$libdir into a binary
12704# during linking.  This must work even if \$libdir does not exist.
12705hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12706
12707# Whether we need a single "-rpath" flag with a separated argument.
12708hardcode_libdir_separator=$lt_hardcode_libdir_separator
12709
12710# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12711# DIR into the resulting binary.
12712hardcode_direct=$hardcode_direct
12713
12714# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12715# DIR into the resulting binary and the resulting library dependency is
12716# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12717# library is relocated.
12718hardcode_direct_absolute=$hardcode_direct_absolute
12719
12720# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12721# into the resulting binary.
12722hardcode_minus_L=$hardcode_minus_L
12723
12724# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12725# into the resulting binary.
12726hardcode_shlibpath_var=$hardcode_shlibpath_var
12727
12728# Set to "yes" if building a shared library automatically hardcodes DIR
12729# into the library and all subsequent libraries and executables linked
12730# against it.
12731hardcode_automatic=$hardcode_automatic
12732
12733# Set to yes if linker adds runtime paths of dependent libraries
12734# to runtime path list.
12735inherit_rpath=$inherit_rpath
12736
12737# Whether libtool must link a program against all its dependency libraries.
12738link_all_deplibs=$link_all_deplibs
12739
12740# Fix the shell variable \$srcfile for the compiler.
12741fix_srcfile_path=$lt_fix_srcfile_path
12742
12743# Set to "yes" if exported symbols are required.
12744always_export_symbols=$always_export_symbols
12745
12746# The commands to list exported symbols.
12747export_symbols_cmds=$lt_export_symbols_cmds
12748
12749# Symbols that should not be listed in the preloaded symbols.
12750exclude_expsyms=$lt_exclude_expsyms
12751
12752# Symbols that must always be exported.
12753include_expsyms=$lt_include_expsyms
12754
12755# Commands necessary for linking programs (against libraries) with templates.
12756prelink_cmds=$lt_prelink_cmds
12757
12758# Specify filename containing input files.
12759file_list_spec=$lt_file_list_spec
12760
12761# How to hardcode a shared library path into an executable.
12762hardcode_action=$hardcode_action
12763
12764# ### END LIBTOOL CONFIG
12765
12766_LT_EOF
12767
12768  case $host_os in
12769  aix3*)
12770    cat <<\_LT_EOF >> "$cfgfile"
12771# AIX sometimes has problems with the GCC collect2 program.  For some
12772# reason, if we set the COLLECT_NAMES environment variable, the problems
12773# vanish in a puff of smoke.
12774if test "X${COLLECT_NAMES+set}" != Xset; then
12775  COLLECT_NAMES=
12776  export COLLECT_NAMES
12777fi
12778_LT_EOF
12779    ;;
12780  esac
12781
12782
12783ltmain="$ac_aux_dir/ltmain.sh"
12784
12785
12786  # We use sed instead of cat because bash on DJGPP gets confused if
12787  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12788  # text mode, it properly converts lines to CR/LF.  This bash problem
12789  # is reportedly fixed, but why not run on old versions too?
12790  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12791    || (rm -f "$cfgfile"; exit 1)
12792
12793  case $xsi_shell in
12794  yes)
12795    cat << \_LT_EOF >> "$cfgfile"
12796
12797# func_dirname file append nondir_replacement
12798# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12799# otherwise set result to NONDIR_REPLACEMENT.
12800func_dirname ()
12801{
12802  case ${1} in
12803    */*) func_dirname_result="${1%/*}${2}" ;;
12804    *  ) func_dirname_result="${3}" ;;
12805  esac
12806}
12807
12808# func_basename file
12809func_basename ()
12810{
12811  func_basename_result="${1##*/}"
12812}
12813
12814# func_dirname_and_basename file append nondir_replacement
12815# perform func_basename and func_dirname in a single function
12816# call:
12817#   dirname:  Compute the dirname of FILE.  If nonempty,
12818#             add APPEND to the result, otherwise set result
12819#             to NONDIR_REPLACEMENT.
12820#             value returned in "$func_dirname_result"
12821#   basename: Compute filename of FILE.
12822#             value retuned in "$func_basename_result"
12823# Implementation must be kept synchronized with func_dirname
12824# and func_basename. For efficiency, we do not delegate to
12825# those functions but instead duplicate the functionality here.
12826func_dirname_and_basename ()
12827{
12828  case ${1} in
12829    */*) func_dirname_result="${1%/*}${2}" ;;
12830    *  ) func_dirname_result="${3}" ;;
12831  esac
12832  func_basename_result="${1##*/}"
12833}
12834
12835# func_stripname prefix suffix name
12836# strip PREFIX and SUFFIX off of NAME.
12837# PREFIX and SUFFIX must not contain globbing or regex special
12838# characters, hashes, percent signs, but SUFFIX may contain a leading
12839# dot (in which case that matches only a dot).
12840func_stripname ()
12841{
12842  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12843  # positional parameters, so assign one to ordinary parameter first.
12844  func_stripname_result=${3}
12845  func_stripname_result=${func_stripname_result#"${1}"}
12846  func_stripname_result=${func_stripname_result%"${2}"}
12847}
12848
12849# func_opt_split
12850func_opt_split ()
12851{
12852  func_opt_split_opt=${1%%=*}
12853  func_opt_split_arg=${1#*=}
12854}
12855
12856# func_lo2o object
12857func_lo2o ()
12858{
12859  case ${1} in
12860    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12861    *)    func_lo2o_result=${1} ;;
12862  esac
12863}
12864
12865# func_xform libobj-or-source
12866func_xform ()
12867{
12868  func_xform_result=${1%.*}.lo
12869}
12870
12871# func_arith arithmetic-term...
12872func_arith ()
12873{
12874  func_arith_result=$(( $* ))
12875}
12876
12877# func_len string
12878# STRING may not start with a hyphen.
12879func_len ()
12880{
12881  func_len_result=${#1}
12882}
12883
12884_LT_EOF
12885    ;;
12886  *) # Bourne compatible functions.
12887    cat << \_LT_EOF >> "$cfgfile"
12888
12889# func_dirname file append nondir_replacement
12890# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12891# otherwise set result to NONDIR_REPLACEMENT.
12892func_dirname ()
12893{
12894  # Extract subdirectory from the argument.
12895  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12896  if test "X$func_dirname_result" = "X${1}"; then
12897    func_dirname_result="${3}"
12898  else
12899    func_dirname_result="$func_dirname_result${2}"
12900  fi
12901}
12902
12903# func_basename file
12904func_basename ()
12905{
12906  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12907}
12908
12909
12910# func_stripname prefix suffix name
12911# strip PREFIX and SUFFIX off of NAME.
12912# PREFIX and SUFFIX must not contain globbing or regex special
12913# characters, hashes, percent signs, but SUFFIX may contain a leading
12914# dot (in which case that matches only a dot).
12915# func_strip_suffix prefix name
12916func_stripname ()
12917{
12918  case ${2} in
12919    .*) func_stripname_result=`$ECHO "X${3}" \
12920           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12921    *)  func_stripname_result=`$ECHO "X${3}" \
12922           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12923  esac
12924}
12925
12926# sed scripts:
12927my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12928my_sed_long_arg='1s/^-[^=]*=//'
12929
12930# func_opt_split
12931func_opt_split ()
12932{
12933  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12934  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12935}
12936
12937# func_lo2o object
12938func_lo2o ()
12939{
12940  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12941}
12942
12943# func_xform libobj-or-source
12944func_xform ()
12945{
12946  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
12947}
12948
12949# func_arith arithmetic-term...
12950func_arith ()
12951{
12952  func_arith_result=`expr "$@"`
12953}
12954
12955# func_len string
12956# STRING may not start with a hyphen.
12957func_len ()
12958{
12959  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12960}
12961
12962_LT_EOF
12963esac
12964
12965case $lt_shell_append in
12966  yes)
12967    cat << \_LT_EOF >> "$cfgfile"
12968
12969# func_append var value
12970# Append VALUE to the end of shell variable VAR.
12971func_append ()
12972{
12973  eval "$1+=\$2"
12974}
12975_LT_EOF
12976    ;;
12977  *)
12978    cat << \_LT_EOF >> "$cfgfile"
12979
12980# func_append var value
12981# Append VALUE to the end of shell variable VAR.
12982func_append ()
12983{
12984  eval "$1=\$$1\$2"
12985}
12986
12987_LT_EOF
12988    ;;
12989  esac
12990
12991
12992  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12993    || (rm -f "$cfgfile"; exit 1)
12994
12995  mv -f "$cfgfile" "$ofile" ||
12996    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12997  chmod +x "$ofile"
12998
12999 ;;
13000
13001  esac
13002done # for ac_tag
13003
13004
13005as_fn_exit 0
13006_ACEOF
13007ac_clean_files=$ac_clean_files_save
13008
13009test $ac_write_fail = 0 ||
13010  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13011
13012
13013# configure is writing to config.log, and then calls config.status.
13014# config.status does its own redirection, appending to config.log.
13015# Unfortunately, on DOS this fails, as config.log is still kept open
13016# by configure, so config.status won't be able to write to it; its
13017# output is simply discarded.  So we exec the FD to /dev/null,
13018# effectively closing config.log, so it can be properly (re)opened and
13019# appended to by config.status.  When coming back to configure, we
13020# need to make the FD available again.
13021if test "$no_create" != yes; then
13022  ac_cs_success=:
13023  ac_config_status_args=
13024  test "$silent" = yes &&
13025    ac_config_status_args="$ac_config_status_args --quiet"
13026  exec 5>/dev/null
13027  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13028  exec 5>>config.log
13029  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13030  # would make configure fail if this is the last instruction.
13031  $ac_cs_success || as_fn_exit 1
13032fi
13033if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13034  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13035$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13036fi
13037
13038