1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libsnet VERSION.
4#
5# Report bugs to <rsug@umich.edu>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software 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# Copyright (c) 1995-2003 Regents of The University of Michigan.  All Rights Reserved.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139# Use a proper internal environment variable to ensure we don't fall
140  # into an infinite loop, continuously re-executing ourselves.
141  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142    _as_can_reexec=no; export _as_can_reexec;
143    # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151  *v*x* | *x*v* ) as_opts=-vx ;;
152  *v* ) as_opts=-v ;;
153  *x* ) as_opts=-x ;;
154  * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161  fi
162  # We don't want this to propagate to other subprocesses.
163          { _as_can_reexec=; unset _as_can_reexec;}
164if test "x$CONFIG_SHELL" = x; then
165  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166  emulate sh
167  NULLCMD=:
168  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169  # is contrary to our usage.  Disable this feature.
170  alias -g '\${1+\"\$@\"}'='\"\$@\"'
171  setopt NO_GLOB_SUBST
172else
173  case \`(set -o) 2>/dev/null\` in #(
174  *posix*) :
175    set -o posix ;; #(
176  *) :
177     ;;
178esac
179fi
180"
181  as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195  exitcode=1; echo positional parameters were not saved.
196fi
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
199  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
203  if (eval "$as_required") 2>/dev/null; then :
204  as_have_required=yes
205else
206  as_have_required=no
207fi
208  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210else
211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212as_found=false
213for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214do
215  IFS=$as_save_IFS
216  test -z "$as_dir" && as_dir=.
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir/$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225  CONFIG_SHELL=$as_shell as_have_required=yes
226		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi; }
238IFS=$as_save_IFS
239
240
241      if test "x$CONFIG_SHELL" != x; then :
242  export CONFIG_SHELL
243             # We cannot yet assume a decent shell, so we have to provide a
244# neutralization value for shells without unset; and this also
245# works around shells that cannot unset nonexistent variables.
246# Preserve -v and -x to the replacement shell.
247BASH_ENV=/dev/null
248ENV=/dev/null
249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251  *v*x* | *x*v* ) as_opts=-vx ;;
252  *v* ) as_opts=-v ;;
253  *x* ) as_opts=-x ;;
254  * ) as_opts= ;;
255esac
256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257# Admittedly, this is quite paranoid, since all the known shells bail
258# out after a failed `exec'.
259$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260exit 255
261fi
262
263    if test x$as_have_required = xno; then :
264  $as_echo "$0: This script requires a shell more modern than all"
265  $as_echo "$0: the shells that I found on your system."
266  if test x${ZSH_VERSION+set} = xset ; then
267    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    $as_echo "$0: Please tell bug-autoconf@gnu.org and rsug@umich.edu
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561# Find the correct PATH separator.  Usually this is `:', but
562# DJGPP uses `;' like DOS.
563if test "X${PATH_SEPARATOR+set}" != Xset; then
564  UNAME=${UNAME-`uname 2>/dev/null`}
565  case X$UNAME in
566    *-DOS) lt_cv_sys_path_separator=';' ;;
567    *)     lt_cv_sys_path_separator=':' ;;
568  esac
569  PATH_SEPARATOR=$lt_cv_sys_path_separator
570fi
571
572
573# Check that we are running under the correct shell.
574SHELL=${CONFIG_SHELL-/bin/sh}
575
576case X$ECHO in
577X*--fallback-echo)
578  # Remove one level of quotation (which was required for Make).
579  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
580  ;;
581esac
582
583echo=${ECHO-echo}
584if test "X$1" = X--no-reexec; then
585  # Discard the --no-reexec flag, and continue.
586  shift
587elif test "X$1" = X--fallback-echo; then
588  # Avoid inline document here, it may be left over
589  :
590elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
591  # Yippee, $echo works!
592  :
593else
594  # Restart under the correct shell.
595  exec $SHELL "$0" --no-reexec ${1+"$@"}
596fi
597
598if test "X$1" = X--fallback-echo; then
599  # used as fallback echo
600  shift
601  cat <<EOF
602
603EOF
604  exit 0
605fi
606
607# The HP-UX ksh and POSIX shell print the target directory to stdout
608# if CDPATH is set.
609if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
610
611if test -z "$ECHO"; then
612if test "X${echo_test_string+set}" != Xset; then
613# find a string as large as possible, as long as the shell can cope with it
614  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
615    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
616    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
617       echo_test_string="`eval $cmd`" &&
618       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
619    then
620      break
621    fi
622  done
623fi
624
625if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
626   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
627   test "X$echo_testing_string" = "X$echo_test_string"; then
628  :
629else
630  # The Solaris, AIX, and Digital Unix default echo programs unquote
631  # backslashes.  This makes it impossible to quote backslashes using
632  #   echo "$something" | sed 's/\\/\\\\/g'
633  #
634  # So, first we look for a working echo in the user's PATH.
635
636  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
637  for dir in $PATH /usr/ucb; do
638    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
639       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
640       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
641       test "X$echo_testing_string" = "X$echo_test_string"; then
642      echo="$dir/echo"
643      break
644    fi
645  done
646  IFS="$save_ifs"
647
648  if test "X$echo" = Xecho; then
649    # We didn't find a better echo, so look for alternatives.
650    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
651       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
652       test "X$echo_testing_string" = "X$echo_test_string"; then
653      # This shell has a builtin print -r that does the trick.
654      echo='print -r'
655    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
656	 test "X$CONFIG_SHELL" != X/bin/ksh; then
657      # If we have ksh, try running configure again with it.
658      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
659      export ORIGINAL_CONFIG_SHELL
660      CONFIG_SHELL=/bin/ksh
661      export CONFIG_SHELL
662      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
663    else
664      # Try using printf.
665      echo='printf %s\n'
666      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
667	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
668	 test "X$echo_testing_string" = "X$echo_test_string"; then
669	# Cool, printf works
670	:
671      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
672	   test "X$echo_testing_string" = 'X\t' &&
673	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
674	   test "X$echo_testing_string" = "X$echo_test_string"; then
675	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
676	export CONFIG_SHELL
677	SHELL="$CONFIG_SHELL"
678	export SHELL
679	echo="$CONFIG_SHELL $0 --fallback-echo"
680      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
681	   test "X$echo_testing_string" = 'X\t' &&
682	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
683	   test "X$echo_testing_string" = "X$echo_test_string"; then
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      else
686	# maybe with a smaller string...
687	prev=:
688
689	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
690	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
691	  then
692	    break
693	  fi
694	  prev="$cmd"
695	done
696
697	if test "$prev" != 'sed 50q "$0"'; then
698	  echo_test_string=`eval $prev`
699	  export echo_test_string
700	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
701	else
702	  # Oops.  We lost completely, so just stick with echo.
703	  echo=echo
704	fi
705      fi
706    fi
707  fi
708fi
709fi
710
711# Copy echo and quote the copy suitably for passing to libtool from
712# the Makefile, instead of quoting the original, which is used later.
713ECHO=$echo
714if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
715   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
716fi
717
718
719
720test -n "$DJDIR" || exec 7<&0 </dev/null
721exec 6>&1
722
723# Name of the host.
724# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
725# so uname gets run too.
726ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
727
728#
729# Initializations.
730#
731ac_default_prefix=/usr/local
732ac_clean_files=
733ac_config_libobj_dir=.
734LIBOBJS=
735cross_compiling=no
736subdirs=
737MFLAGS=
738MAKEFLAGS=
739
740# Identity of this package.
741PACKAGE_NAME='libsnet'
742PACKAGE_TARNAME='libsnet'
743PACKAGE_VERSION='VERSION'
744PACKAGE_STRING='libsnet VERSION'
745PACKAGE_BUGREPORT='rsug@umich.edu'
746PACKAGE_URL=''
747
748ac_unique_file="snet.c"
749ac_subst_vars='LTLIBOBJS
750LIBOBJS
751OPTOPTS
752LIBTOOL
753STRIP
754RANLIB
755ECHO
756LN_S
757PROFILED
758target_os
759target_vendor
760target_cpu
761target
762host_os
763host_vendor
764host_cpu
765host
766build_os
767build_vendor
768build_cpu
769build
770INSTALL_DATA
771INSTALL_SCRIPT
772INSTALL_PROGRAM
773OBJEXT
774EXEEXT
775ac_ct_CC
776CPPFLAGS
777LDFLAGS
778CFLAGS
779CC
780AWK
781target_alias
782host_alias
783build_alias
784LIBS
785ECHO_T
786ECHO_N
787ECHO_C
788DEFS
789mandir
790localedir
791libdir
792psdir
793pdfdir
794dvidir
795htmldir
796infodir
797docdir
798oldincludedir
799includedir
800localstatedir
801sharedstatedir
802sysconfdir
803datadir
804datarootdir
805libexecdir
806sbindir
807bindir
808program_transform_name
809prefix
810exec_prefix
811PACKAGE_URL
812PACKAGE_BUGREPORT
813PACKAGE_STRING
814PACKAGE_VERSION
815PACKAGE_TARNAME
816PACKAGE_NAME
817PATH_SEPARATOR
818SHELL'
819ac_subst_files=''
820ac_user_opts='
821enable_option_checking
822with_zlib
823with_ssl
824with_sasl
825enable_universal_binaries
826enable_profiled
827enable_shared
828enable_static
829enable_fast_install
830with_gnu_ld
831enable_libtool_lock
832with_pic
833'
834      ac_precious_vars='build_alias
835host_alias
836target_alias
837CC
838CFLAGS
839LDFLAGS
840LIBS
841CPPFLAGS'
842
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
847ac_unrecognized_opts=
848ac_unrecognized_sep=
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_libraries=NONE
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
871# (The list follows the same order as the GNU Coding Standards.)
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
882docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
891
892ac_prev=
893ac_dashdash=
894for ac_option
895do
896  # If the previous option needs an argument, assign it.
897  if test -n "$ac_prev"; then
898    eval $ac_prev=\$ac_option
899    ac_prev=
900    continue
901  fi
902
903  case $ac_option in
904  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905  *=)   ac_optarg= ;;
906  *)    ac_optarg=yes ;;
907  esac
908
909  # Accept the important Cygnus configure options, so we can diagnose typos.
910
911  case $ac_dashdash$ac_option in
912  --)
913    ac_dashdash=yes ;;
914
915  -bindir | --bindir | --bindi | --bind | --bin | --bi)
916    ac_prev=bindir ;;
917  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918    bindir=$ac_optarg ;;
919
920  -build | --build | --buil | --bui | --bu)
921    ac_prev=build_alias ;;
922  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923    build_alias=$ac_optarg ;;
924
925  -cache-file | --cache-file | --cache-fil | --cache-fi \
926  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927    ac_prev=cache_file ;;
928  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930    cache_file=$ac_optarg ;;
931
932  --config-cache | -C)
933    cache_file=config.cache ;;
934
935  -datadir | --datadir | --datadi | --datad)
936    ac_prev=datadir ;;
937  -datadir=* | --datadir=* | --datadi=* | --datad=*)
938    datadir=$ac_optarg ;;
939
940  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941  | --dataroo | --dataro | --datar)
942    ac_prev=datarootdir ;;
943  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945    datarootdir=$ac_optarg ;;
946
947  -disable-* | --disable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: $ac_useropt"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=no ;;
962
963  -docdir | --docdir | --docdi | --doc | --do)
964    ac_prev=docdir ;;
965  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966    docdir=$ac_optarg ;;
967
968  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969    ac_prev=dvidir ;;
970  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971    dvidir=$ac_optarg ;;
972
973  -enable-* | --enable-*)
974    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975    # Reject names that are not valid shell variable names.
976    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977      as_fn_error $? "invalid feature name: $ac_useropt"
978    ac_useropt_orig=$ac_useropt
979    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980    case $ac_user_opts in
981      *"
982"enable_$ac_useropt"
983"*) ;;
984      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985	 ac_unrecognized_sep=', ';;
986    esac
987    eval enable_$ac_useropt=\$ac_optarg ;;
988
989  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991  | --exec | --exe | --ex)
992    ac_prev=exec_prefix ;;
993  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995  | --exec=* | --exe=* | --ex=*)
996    exec_prefix=$ac_optarg ;;
997
998  -gas | --gas | --ga | --g)
999    # Obsolete; use --with-gas.
1000    with_gas=yes ;;
1001
1002  -help | --help | --hel | --he | -h)
1003    ac_init_help=long ;;
1004  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005    ac_init_help=recursive ;;
1006  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007    ac_init_help=short ;;
1008
1009  -host | --host | --hos | --ho)
1010    ac_prev=host_alias ;;
1011  -host=* | --host=* | --hos=* | --ho=*)
1012    host_alias=$ac_optarg ;;
1013
1014  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015    ac_prev=htmldir ;;
1016  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017  | --ht=*)
1018    htmldir=$ac_optarg ;;
1019
1020  -includedir | --includedir | --includedi | --included | --include \
1021  | --includ | --inclu | --incl | --inc)
1022    ac_prev=includedir ;;
1023  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024  | --includ=* | --inclu=* | --incl=* | --inc=*)
1025    includedir=$ac_optarg ;;
1026
1027  -infodir | --infodir | --infodi | --infod | --info | --inf)
1028    ac_prev=infodir ;;
1029  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030    infodir=$ac_optarg ;;
1031
1032  -libdir | --libdir | --libdi | --libd)
1033    ac_prev=libdir ;;
1034  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035    libdir=$ac_optarg ;;
1036
1037  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038  | --libexe | --libex | --libe)
1039    ac_prev=libexecdir ;;
1040  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041  | --libexe=* | --libex=* | --libe=*)
1042    libexecdir=$ac_optarg ;;
1043
1044  -localedir | --localedir | --localedi | --localed | --locale)
1045    ac_prev=localedir ;;
1046  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047    localedir=$ac_optarg ;;
1048
1049  -localstatedir | --localstatedir | --localstatedi | --localstated \
1050  | --localstate | --localstat | --localsta | --localst | --locals)
1051    ac_prev=localstatedir ;;
1052  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054    localstatedir=$ac_optarg ;;
1055
1056  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057    ac_prev=mandir ;;
1058  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059    mandir=$ac_optarg ;;
1060
1061  -nfp | --nfp | --nf)
1062    # Obsolete; use --without-fp.
1063    with_fp=no ;;
1064
1065  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066  | --no-cr | --no-c | -n)
1067    no_create=yes ;;
1068
1069  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071    no_recursion=yes ;;
1072
1073  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075  | --oldin | --oldi | --old | --ol | --o)
1076    ac_prev=oldincludedir ;;
1077  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080    oldincludedir=$ac_optarg ;;
1081
1082  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083    ac_prev=prefix ;;
1084  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085    prefix=$ac_optarg ;;
1086
1087  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088  | --program-pre | --program-pr | --program-p)
1089    ac_prev=program_prefix ;;
1090  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092    program_prefix=$ac_optarg ;;
1093
1094  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095  | --program-suf | --program-su | --program-s)
1096    ac_prev=program_suffix ;;
1097  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099    program_suffix=$ac_optarg ;;
1100
1101  -program-transform-name | --program-transform-name \
1102  | --program-transform-nam | --program-transform-na \
1103  | --program-transform-n | --program-transform- \
1104  | --program-transform | --program-transfor \
1105  | --program-transfo | --program-transf \
1106  | --program-trans | --program-tran \
1107  | --progr-tra | --program-tr | --program-t)
1108    ac_prev=program_transform_name ;;
1109  -program-transform-name=* | --program-transform-name=* \
1110  | --program-transform-nam=* | --program-transform-na=* \
1111  | --program-transform-n=* | --program-transform-=* \
1112  | --program-transform=* | --program-transfor=* \
1113  | --program-transfo=* | --program-transf=* \
1114  | --program-trans=* | --program-tran=* \
1115  | --progr-tra=* | --program-tr=* | --program-t=*)
1116    program_transform_name=$ac_optarg ;;
1117
1118  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119    ac_prev=pdfdir ;;
1120  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121    pdfdir=$ac_optarg ;;
1122
1123  -psdir | --psdir | --psdi | --psd | --ps)
1124    ac_prev=psdir ;;
1125  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126    psdir=$ac_optarg ;;
1127
1128  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129  | -silent | --silent | --silen | --sile | --sil)
1130    silent=yes ;;
1131
1132  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133    ac_prev=sbindir ;;
1134  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135  | --sbi=* | --sb=*)
1136    sbindir=$ac_optarg ;;
1137
1138  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140  | --sharedst | --shareds | --shared | --share | --shar \
1141  | --sha | --sh)
1142    ac_prev=sharedstatedir ;;
1143  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146  | --sha=* | --sh=*)
1147    sharedstatedir=$ac_optarg ;;
1148
1149  -site | --site | --sit)
1150    ac_prev=site ;;
1151  -site=* | --site=* | --sit=*)
1152    site=$ac_optarg ;;
1153
1154  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155    ac_prev=srcdir ;;
1156  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157    srcdir=$ac_optarg ;;
1158
1159  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160  | --syscon | --sysco | --sysc | --sys | --sy)
1161    ac_prev=sysconfdir ;;
1162  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164    sysconfdir=$ac_optarg ;;
1165
1166  -target | --target | --targe | --targ | --tar | --ta | --t)
1167    ac_prev=target_alias ;;
1168  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169    target_alias=$ac_optarg ;;
1170
1171  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172    verbose=yes ;;
1173
1174  -version | --version | --versio | --versi | --vers | -V)
1175    ac_init_version=: ;;
1176
1177  -with-* | --with-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error $? "invalid package name: $ac_useropt"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"with_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval with_$ac_useropt=\$ac_optarg ;;
1192
1193  -without-* | --without-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: $ac_useropt"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=no ;;
1208
1209  --x)
1210    # Obsolete; use --with-x.
1211    with_x=yes ;;
1212
1213  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214  | --x-incl | --x-inc | --x-in | --x-i)
1215    ac_prev=x_includes ;;
1216  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218    x_includes=$ac_optarg ;;
1219
1220  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222    ac_prev=x_libraries ;;
1223  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225    x_libraries=$ac_optarg ;;
1226
1227  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228Try \`$0 --help' for more information"
1229    ;;
1230
1231  *=*)
1232    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233    # Reject names that are not valid shell variable names.
1234    case $ac_envvar in #(
1235      '' | [0-9]* | *[!_$as_cr_alnum]* )
1236      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237    esac
1238    eval $ac_envvar=\$ac_optarg
1239    export $ac_envvar ;;
1240
1241  *)
1242    # FIXME: should be removed in autoconf 3.0.
1243    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247    ;;
1248
1249  esac
1250done
1251
1252if test -n "$ac_prev"; then
1253  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254  as_fn_error $? "missing argument to $ac_option"
1255fi
1256
1257if test -n "$ac_unrecognized_opts"; then
1258  case $enable_option_checking in
1259    no) ;;
1260    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262  esac
1263fi
1264
1265# Check all directory arguments for consistency.
1266for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267		datadir sysconfdir sharedstatedir localstatedir includedir \
1268		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269		libdir localedir mandir
1270do
1271  eval ac_val=\$$ac_var
1272  # Remove trailing slashes.
1273  case $ac_val in
1274    */ )
1275      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276      eval $ac_var=\$ac_val;;
1277  esac
1278  # Be sure to have absolute directory names.
1279  case $ac_val in
1280    [\\/$]* | ?:[\\/]* )  continue;;
1281    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282  esac
1283  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284done
1285
1286# There might be people who depend on the old broken behavior: `$host'
1287# used to hold the argument of --host etc.
1288# FIXME: To remove some day.
1289build=$build_alias
1290host=$host_alias
1291target=$target_alias
1292
1293# FIXME: To remove some day.
1294if test "x$host_alias" != x; then
1295  if test "x$build_alias" = x; then
1296    cross_compiling=maybe
1297  elif test "x$build_alias" != "x$host_alias"; then
1298    cross_compiling=yes
1299  fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311  as_fn_error $? "working directory cannot be determined"
1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313  as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318  ac_srcdir_defaulted=yes
1319  # Try the directory containing this script, then the parent directory.
1320  ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322	 X"$as_myself" : 'X\(//\)[^/]' \| \
1323	 X"$as_myself" : 'X\(//\)$' \| \
1324	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325$as_echo X"$as_myself" |
1326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\/\)[^/].*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\/\)$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\).*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  s/.*/./; q'`
1343  srcdir=$ac_confdir
1344  if test ! -r "$srcdir/$ac_unique_file"; then
1345    srcdir=..
1346  fi
1347else
1348  ac_srcdir_defaulted=no
1349fi
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353fi
1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
1356	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357	pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360  srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for ac_var in $ac_precious_vars; do
1369  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370  eval ac_env_${ac_var}_value=\$${ac_var}
1371  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373done
1374
1375#
1376# Report the --help message.
1377#
1378if test "$ac_init_help" = "long"; then
1379  # Omit some internal or obsolete options to make the list less imposing.
1380  # This message is too long to be a string in the A/UX 3.1 sh.
1381  cat <<_ACEOF
1382\`configure' configures libsnet VERSION to adapt to many kinds of systems.
1383
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE.  See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
1392  -h, --help              display this help and exit
1393      --help=short        display options specific to this package
1394      --help=recursive    display the short help of all the included packages
1395  -V, --version           display version information and exit
1396  -q, --quiet, --silent   do not print \`checking ...' messages
1397      --cache-file=FILE   cache test results in FILE [disabled]
1398  -C, --config-cache      alias for \`--cache-file=config.cache'
1399  -n, --no-create         do not create output files
1400      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1401
1402Installation directories:
1403  --prefix=PREFIX         install architecture-independent files in PREFIX
1404                          [$ac_default_prefix]
1405  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1406                          [PREFIX]
1407
1408By default, \`make install' will install all the files in
1409\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1410an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411for instance \`--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine tuning of the installation directories:
1416  --bindir=DIR            user executables [EPREFIX/bin]
1417  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1418  --libexecdir=DIR        program executables [EPREFIX/libexec]
1419  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1420  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1421  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1422  --libdir=DIR            object code libraries [EPREFIX/lib]
1423  --includedir=DIR        C header files [PREFIX/include]
1424  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1425  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1426  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1427  --infodir=DIR           info documentation [DATAROOTDIR/info]
1428  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1429  --mandir=DIR            man documentation [DATAROOTDIR/man]
1430  --docdir=DIR            documentation root [DATAROOTDIR/doc/libsnet]
1431  --htmldir=DIR           html documentation [DOCDIR]
1432  --dvidir=DIR            dvi documentation [DOCDIR]
1433  --pdfdir=DIR            pdf documentation [DOCDIR]
1434  --psdir=DIR             ps documentation [DOCDIR]
1435_ACEOF
1436
1437  cat <<\_ACEOF
1438
1439System types:
1440  --build=BUILD     configure for building on BUILD [guessed]
1441  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442  --target=TARGET   configure for building compilers for TARGET [HOST]
1443_ACEOF
1444fi
1445
1446if test -n "$ac_init_help"; then
1447  case $ac_init_help in
1448     short | recursive ) echo "Configuration of libsnet VERSION:";;
1449   esac
1450  cat <<\_ACEOF
1451
1452Optional Features:
1453  --disable-option-checking  ignore unrecognized --enable/--with options
1454  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1455  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1456  --enable-universal_binaries
1457                          build universal binaries (default=no)
1458  --enable-profiled       build profiled libsnet (default=yes)
1459  --enable-shared=PKGS  build shared libraries default=no
1460  --enable-static=PKGS  build static libraries default=yes
1461  --enable-fast-install=PKGS  optimize for fast installation default=yes
1462  --disable-libtool-lock  avoid locking (might break parallel builds)
1463
1464Optional Packages:
1465  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1466  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1467  --with-zlib=DIR         path to zlib
1468  --with-ssl=DIR          path to ssl
1469  --with-sasl=DIR         path to sasl
1470  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1471  --with-pic              try to use only PIC/non-PIC objects default=use both
1472
1473Some influential environment variables:
1474  CC          C compiler command
1475  CFLAGS      C compiler flags
1476  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1477              nonstandard directory <lib dir>
1478  LIBS        libraries to pass to the linker, e.g. -l<library>
1479  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480              you have headers in a nonstandard directory <include dir>
1481
1482Use these variables to override the choices made by `configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
1485Report bugs to <rsug@umich.edu>.
1486_ACEOF
1487ac_status=$?
1488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491  # If there are subdirs, report their specific --help.
1492  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493    test -d "$ac_dir" ||
1494      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495      continue
1496    ac_builddir=.
1497
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502  # A ".." for each directory in $ac_dir_suffix.
1503  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504  case $ac_top_builddir_sub in
1505  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507  esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
1513
1514case $srcdir in
1515  .)  # We are building in place.
1516    ac_srcdir=.
1517    ac_top_srcdir=$ac_top_builddir_sub
1518    ac_abs_top_srcdir=$ac_pwd ;;
1519  [\\/]* | ?:[\\/]* )  # Absolute name.
1520    ac_srcdir=$srcdir$ac_dir_suffix;
1521    ac_top_srcdir=$srcdir
1522    ac_abs_top_srcdir=$srcdir ;;
1523  *) # Relative name.
1524    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525    ac_top_srcdir=$ac_top_build_prefix$srcdir
1526    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527esac
1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530    cd "$ac_dir" || { ac_status=$?; continue; }
1531    # Check for guested configure.
1532    if test -f "$ac_srcdir/configure.gnu"; then
1533      echo &&
1534      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535    elif test -f "$ac_srcdir/configure"; then
1536      echo &&
1537      $SHELL "$ac_srcdir/configure" --help=recursive
1538    else
1539      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540    fi || ac_status=$?
1541    cd "$ac_pwd" || { ac_status=$?; break; }
1542  done
1543fi
1544
1545test -n "$ac_init_help" && exit $ac_status
1546if $ac_init_version; then
1547  cat <<\_ACEOF
1548libsnet configure VERSION
1549generated by GNU Autoconf 2.69
1550
1551Copyright (C) 2012 Free Software Foundation, Inc.
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554
1555Copyright (c) 1995-2003 Regents of The University of Michigan.  All Rights Reserved.
1556_ACEOF
1557  exit
1558fi
1559
1560## ------------------------ ##
1561## Autoconf initialization. ##
1562## ------------------------ ##
1563
1564# ac_fn_c_try_compile LINENO
1565# --------------------------
1566# Try to compile conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_c_try_compile ()
1568{
1569  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570  rm -f conftest.$ac_objext
1571  if { { ac_try="$ac_compile"
1572case "(($ac_try" in
1573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574  *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578  (eval "$ac_compile") 2>conftest.err
1579  ac_status=$?
1580  if test -s conftest.err; then
1581    grep -v '^ *+' conftest.err >conftest.er1
1582    cat conftest.er1 >&5
1583    mv -f conftest.er1 conftest.err
1584  fi
1585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586  test $ac_status = 0; } && {
1587	 test -z "$ac_c_werror_flag" ||
1588	 test ! -s conftest.err
1589       } && test -s conftest.$ac_objext; then :
1590  ac_retval=0
1591else
1592  $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595	ac_retval=1
1596fi
1597  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598  as_fn_set_status $ac_retval
1599
1600} # ac_fn_c_try_compile
1601
1602# ac_fn_c_try_link LINENO
1603# -----------------------
1604# Try to link conftest.$ac_ext, and return whether this succeeded.
1605ac_fn_c_try_link ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  rm -f conftest.$ac_objext conftest$ac_exeext
1609  if { { ac_try="$ac_link"
1610case "(($ac_try" in
1611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612  *) ac_try_echo=$ac_try;;
1613esac
1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615$as_echo "$ac_try_echo"; } >&5
1616  (eval "$ac_link") 2>conftest.err
1617  ac_status=$?
1618  if test -s conftest.err; then
1619    grep -v '^ *+' conftest.err >conftest.er1
1620    cat conftest.er1 >&5
1621    mv -f conftest.er1 conftest.err
1622  fi
1623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624  test $ac_status = 0; } && {
1625	 test -z "$ac_c_werror_flag" ||
1626	 test ! -s conftest.err
1627       } && test -s conftest$ac_exeext && {
1628	 test "$cross_compiling" = yes ||
1629	 test -x conftest$ac_exeext
1630       }; then :
1631  ac_retval=0
1632else
1633  $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636	ac_retval=1
1637fi
1638  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640  # interfere with the next link command; also delete a directory that is
1641  # left behind by Apple's compiler.  We do this before executing the actions.
1642  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_link
1647
1648# ac_fn_c_check_func LINENO FUNC VAR
1649# ----------------------------------
1650# Tests whether FUNC exists, setting the cache variable VAR accordingly
1651ac_fn_c_check_func ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if eval \${$3+:} false; then :
1657  $as_echo_n "(cached) " >&6
1658else
1659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h.  */
1661/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1662   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1663#define $2 innocuous_$2
1664
1665/* System header to define __stub macros and hopefully few prototypes,
1666    which can conflict with char $2 (); below.
1667    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1668    <limits.h> exists even on freestanding compilers.  */
1669
1670#ifdef __STDC__
1671# include <limits.h>
1672#else
1673# include <assert.h>
1674#endif
1675
1676#undef $2
1677
1678/* Override any GCC internal prototype to avoid an error.
1679   Use char because int might match the return type of a GCC
1680   builtin and then its argument prototype would still apply.  */
1681#ifdef __cplusplus
1682extern "C"
1683#endif
1684char $2 ();
1685/* The GNU C library defines this for functions which it implements
1686    to always fail with ENOSYS.  Some functions are actually named
1687    something starting with __ and the normal name is an alias.  */
1688#if defined __stub_$2 || defined __stub___$2
1689choke me
1690#endif
1691
1692int
1693main ()
1694{
1695return $2 ();
1696  ;
1697  return 0;
1698}
1699_ACEOF
1700if ac_fn_c_try_link "$LINENO"; then :
1701  eval "$3=yes"
1702else
1703  eval "$3=no"
1704fi
1705rm -f core conftest.err conftest.$ac_objext \
1706    conftest$ac_exeext conftest.$ac_ext
1707fi
1708eval ac_res=\$$3
1709	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713} # ac_fn_c_check_func
1714
1715# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716# -------------------------------------------------------
1717# Tests whether HEADER exists and can be compiled using the include files in
1718# INCLUDES, setting the cache variable VAR accordingly.
1719ac_fn_c_check_header_compile ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if eval \${$3+:} false; then :
1725  $as_echo_n "(cached) " >&6
1726else
1727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h.  */
1729$4
1730#include <$2>
1731_ACEOF
1732if ac_fn_c_try_compile "$LINENO"; then :
1733  eval "$3=yes"
1734else
1735  eval "$3=no"
1736fi
1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738fi
1739eval ac_res=\$$3
1740	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744} # ac_fn_c_check_header_compile
1745cat >config.log <<_ACEOF
1746This file contains any messages produced by compilers while
1747running configure, to aid debugging if configure makes a mistake.
1748
1749It was created by libsnet $as_me VERSION, which was
1750generated by GNU Autoconf 2.69.  Invocation command line was
1751
1752  $ $0 $@
1753
1754_ACEOF
1755exec 5>>config.log
1756{
1757cat <<_ASUNAME
1758## --------- ##
1759## Platform. ##
1760## --------- ##
1761
1762hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766uname -v = `(uname -v) 2>/dev/null || echo unknown`
1767
1768/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1770
1771/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1772/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1773/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1775/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1776/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1777/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1778
1779_ASUNAME
1780
1781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782for as_dir in $PATH
1783do
1784  IFS=$as_save_IFS
1785  test -z "$as_dir" && as_dir=.
1786    $as_echo "PATH: $as_dir"
1787  done
1788IFS=$as_save_IFS
1789
1790} >&5
1791
1792cat >&5 <<_ACEOF
1793
1794
1795## ----------- ##
1796## Core tests. ##
1797## ----------- ##
1798
1799_ACEOF
1800
1801
1802# Keep a trace of the command line.
1803# Strip out --no-create and --no-recursion so they do not pile up.
1804# Strip out --silent because we don't want to record it for future runs.
1805# Also quote any args containing shell meta-characters.
1806# Make two passes to allow for proper duplicate-argument suppression.
1807ac_configure_args=
1808ac_configure_args0=
1809ac_configure_args1=
1810ac_must_keep_next=false
1811for ac_pass in 1 2
1812do
1813  for ac_arg
1814  do
1815    case $ac_arg in
1816    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1817    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1818    | -silent | --silent | --silen | --sile | --sil)
1819      continue ;;
1820    *\'*)
1821      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1822    esac
1823    case $ac_pass in
1824    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1825    2)
1826      as_fn_append ac_configure_args1 " '$ac_arg'"
1827      if test $ac_must_keep_next = true; then
1828	ac_must_keep_next=false # Got value, back to normal.
1829      else
1830	case $ac_arg in
1831	  *=* | --config-cache | -C | -disable-* | --disable-* \
1832	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1833	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1834	  | -with-* | --with-* | -without-* | --without-* | --x)
1835	    case "$ac_configure_args0 " in
1836	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1837	    esac
1838	    ;;
1839	  -* ) ac_must_keep_next=true ;;
1840	esac
1841      fi
1842      as_fn_append ac_configure_args " '$ac_arg'"
1843      ;;
1844    esac
1845  done
1846done
1847{ ac_configure_args0=; unset ac_configure_args0;}
1848{ ac_configure_args1=; unset ac_configure_args1;}
1849
1850# When interrupted or exit'd, cleanup temporary files, and complete
1851# config.log.  We remove comments because anyway the quotes in there
1852# would cause problems or look ugly.
1853# WARNING: Use '\'' to represent an apostrophe within the trap.
1854# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1855trap 'exit_status=$?
1856  # Save into config.log some information that might help in debugging.
1857  {
1858    echo
1859
1860    $as_echo "## ---------------- ##
1861## Cache variables. ##
1862## ---------------- ##"
1863    echo
1864    # The following way of writing the cache mishandles newlines in values,
1865(
1866  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867    eval ac_val=\$$ac_var
1868    case $ac_val in #(
1869    *${as_nl}*)
1870      case $ac_var in #(
1871      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1872$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873      esac
1874      case $ac_var in #(
1875      _ | IFS | as_nl) ;; #(
1876      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877      *) { eval $ac_var=; unset $ac_var;} ;;
1878      esac ;;
1879    esac
1880  done
1881  (set) 2>&1 |
1882    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883    *${as_nl}ac_space=\ *)
1884      sed -n \
1885	"s/'\''/'\''\\\\'\'''\''/g;
1886	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887      ;; #(
1888    *)
1889      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890      ;;
1891    esac |
1892    sort
1893)
1894    echo
1895
1896    $as_echo "## ----------------- ##
1897## Output variables. ##
1898## ----------------- ##"
1899    echo
1900    for ac_var in $ac_subst_vars
1901    do
1902      eval ac_val=\$$ac_var
1903      case $ac_val in
1904      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905      esac
1906      $as_echo "$ac_var='\''$ac_val'\''"
1907    done | sort
1908    echo
1909
1910    if test -n "$ac_subst_files"; then
1911      $as_echo "## ------------------- ##
1912## File substitutions. ##
1913## ------------------- ##"
1914      echo
1915      for ac_var in $ac_subst_files
1916      do
1917	eval ac_val=\$$ac_var
1918	case $ac_val in
1919	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920	esac
1921	$as_echo "$ac_var='\''$ac_val'\''"
1922      done | sort
1923      echo
1924    fi
1925
1926    if test -s confdefs.h; then
1927      $as_echo "## ----------- ##
1928## confdefs.h. ##
1929## ----------- ##"
1930      echo
1931      cat confdefs.h
1932      echo
1933    fi
1934    test "$ac_signal" != 0 &&
1935      $as_echo "$as_me: caught signal $ac_signal"
1936    $as_echo "$as_me: exit $exit_status"
1937  } >&5
1938  rm -f core *.core core.conftest.* &&
1939    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940    exit $exit_status
1941' 0
1942for ac_signal in 1 2 13 15; do
1943  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1944done
1945ac_signal=0
1946
1947# confdefs.h avoids OS command line length limits that DEFS can exceed.
1948rm -f -r conftest* confdefs.h
1949
1950$as_echo "/* confdefs.h */" > confdefs.h
1951
1952# Predefined preprocessor variables.
1953
1954cat >>confdefs.h <<_ACEOF
1955#define PACKAGE_NAME "$PACKAGE_NAME"
1956_ACEOF
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1960_ACEOF
1961
1962cat >>confdefs.h <<_ACEOF
1963#define PACKAGE_VERSION "$PACKAGE_VERSION"
1964_ACEOF
1965
1966cat >>confdefs.h <<_ACEOF
1967#define PACKAGE_STRING "$PACKAGE_STRING"
1968_ACEOF
1969
1970cat >>confdefs.h <<_ACEOF
1971#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1972_ACEOF
1973
1974cat >>confdefs.h <<_ACEOF
1975#define PACKAGE_URL "$PACKAGE_URL"
1976_ACEOF
1977
1978
1979# Let the site file select an alternate cache file if it wants to.
1980# Prefer an explicitly selected file to automatically selected ones.
1981ac_site_file1=NONE
1982ac_site_file2=NONE
1983if test -n "$CONFIG_SITE"; then
1984  # We do not want a PATH search for config.site.
1985  case $CONFIG_SITE in #((
1986    -*)  ac_site_file1=./$CONFIG_SITE;;
1987    */*) ac_site_file1=$CONFIG_SITE;;
1988    *)   ac_site_file1=./$CONFIG_SITE;;
1989  esac
1990elif test "x$prefix" != xNONE; then
1991  ac_site_file1=$prefix/share/config.site
1992  ac_site_file2=$prefix/etc/config.site
1993else
1994  ac_site_file1=$ac_default_prefix/share/config.site
1995  ac_site_file2=$ac_default_prefix/etc/config.site
1996fi
1997for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1998do
1999  test "x$ac_site_file" = xNONE && continue
2000  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2001    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2002$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2003    sed 's/^/| /' "$ac_site_file" >&5
2004    . "$ac_site_file" \
2005      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2007as_fn_error $? "failed to load site script $ac_site_file
2008See \`config.log' for more details" "$LINENO" 5; }
2009  fi
2010done
2011
2012if test -r "$cache_file"; then
2013  # Some versions of bash will fail to source /dev/null (special files
2014  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2015  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2016    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2017$as_echo "$as_me: loading cache $cache_file" >&6;}
2018    case $cache_file in
2019      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2020      *)                      . "./$cache_file";;
2021    esac
2022  fi
2023else
2024  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2025$as_echo "$as_me: creating cache $cache_file" >&6;}
2026  >$cache_file
2027fi
2028
2029# Check that the precious variables saved in the cache have kept the same
2030# value.
2031ac_cache_corrupted=false
2032for ac_var in $ac_precious_vars; do
2033  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2034  eval ac_new_set=\$ac_env_${ac_var}_set
2035  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2036  eval ac_new_val=\$ac_env_${ac_var}_value
2037  case $ac_old_set,$ac_new_set in
2038    set,)
2039      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2040$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2041      ac_cache_corrupted=: ;;
2042    ,set)
2043      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2044$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2045      ac_cache_corrupted=: ;;
2046    ,);;
2047    *)
2048      if test "x$ac_old_val" != "x$ac_new_val"; then
2049	# differences in whitespace do not lead to failure.
2050	ac_old_val_w=`echo x $ac_old_val`
2051	ac_new_val_w=`echo x $ac_new_val`
2052	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2053	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2054$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2055	  ac_cache_corrupted=:
2056	else
2057	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2058$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2059	  eval $ac_var=\$ac_old_val
2060	fi
2061	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2062$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2063	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2064$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2065      fi;;
2066  esac
2067  # Pass precious variables to config.status.
2068  if test "$ac_new_set" = set; then
2069    case $ac_new_val in
2070    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2071    *) ac_arg=$ac_var=$ac_new_val ;;
2072    esac
2073    case " $ac_configure_args " in
2074      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2075      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2076    esac
2077  fi
2078done
2079if $ac_cache_corrupted; then
2080  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2083$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2084  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2085fi
2086## -------------------- ##
2087## Main body of script. ##
2088## -------------------- ##
2089
2090ac_ext=c
2091ac_cpp='$CPP $CPPFLAGS'
2092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
2096
2097ac_config_headers="$ac_config_headers config.h"
2098
2099
2100
2101
2102
2103# Checks for programs.
2104for ac_prog in gawk mawk nawk awk
2105do
2106  # Extract the first word of "$ac_prog", so it can be a program name with args.
2107set dummy $ac_prog; ac_word=$2
2108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2109$as_echo_n "checking for $ac_word... " >&6; }
2110if ${ac_cv_prog_AWK+:} false; then :
2111  $as_echo_n "(cached) " >&6
2112else
2113  if test -n "$AWK"; then
2114  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2115else
2116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH
2118do
2119  IFS=$as_save_IFS
2120  test -z "$as_dir" && as_dir=.
2121    for ac_exec_ext in '' $ac_executable_extensions; do
2122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123    ac_cv_prog_AWK="$ac_prog"
2124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2125    break 2
2126  fi
2127done
2128  done
2129IFS=$as_save_IFS
2130
2131fi
2132fi
2133AWK=$ac_cv_prog_AWK
2134if test -n "$AWK"; then
2135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2136$as_echo "$AWK" >&6; }
2137else
2138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2139$as_echo "no" >&6; }
2140fi
2141
2142
2143  test -n "$AWK" && break
2144done
2145
2146ac_ext=c
2147ac_cpp='$CPP $CPPFLAGS'
2148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150ac_compiler_gnu=$ac_cv_c_compiler_gnu
2151if test -n "$ac_tool_prefix"; then
2152  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2153set dummy ${ac_tool_prefix}gcc; ac_word=$2
2154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2155$as_echo_n "checking for $ac_word... " >&6; }
2156if ${ac_cv_prog_CC+:} false; then :
2157  $as_echo_n "(cached) " >&6
2158else
2159  if test -n "$CC"; then
2160  ac_cv_prog_CC="$CC" # Let the user override the test.
2161else
2162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163for as_dir in $PATH
2164do
2165  IFS=$as_save_IFS
2166  test -z "$as_dir" && as_dir=.
2167    for ac_exec_ext in '' $ac_executable_extensions; do
2168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2171    break 2
2172  fi
2173done
2174  done
2175IFS=$as_save_IFS
2176
2177fi
2178fi
2179CC=$ac_cv_prog_CC
2180if test -n "$CC"; then
2181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2182$as_echo "$CC" >&6; }
2183else
2184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2185$as_echo "no" >&6; }
2186fi
2187
2188
2189fi
2190if test -z "$ac_cv_prog_CC"; then
2191  ac_ct_CC=$CC
2192  # Extract the first word of "gcc", so it can be a program name with args.
2193set dummy gcc; ac_word=$2
2194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2195$as_echo_n "checking for $ac_word... " >&6; }
2196if ${ac_cv_prog_ac_ct_CC+:} false; then :
2197  $as_echo_n "(cached) " >&6
2198else
2199  if test -n "$ac_ct_CC"; then
2200  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2201else
2202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203for as_dir in $PATH
2204do
2205  IFS=$as_save_IFS
2206  test -z "$as_dir" && as_dir=.
2207    for ac_exec_ext in '' $ac_executable_extensions; do
2208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209    ac_cv_prog_ac_ct_CC="gcc"
2210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2211    break 2
2212  fi
2213done
2214  done
2215IFS=$as_save_IFS
2216
2217fi
2218fi
2219ac_ct_CC=$ac_cv_prog_ac_ct_CC
2220if test -n "$ac_ct_CC"; then
2221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2222$as_echo "$ac_ct_CC" >&6; }
2223else
2224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2225$as_echo "no" >&6; }
2226fi
2227
2228  if test "x$ac_ct_CC" = x; then
2229    CC=""
2230  else
2231    case $cross_compiling:$ac_tool_warned in
2232yes:)
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2235ac_tool_warned=yes ;;
2236esac
2237    CC=$ac_ct_CC
2238  fi
2239else
2240  CC="$ac_cv_prog_CC"
2241fi
2242
2243if test -z "$CC"; then
2244          if test -n "$ac_tool_prefix"; then
2245    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2246set dummy ${ac_tool_prefix}cc; ac_word=$2
2247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2248$as_echo_n "checking for $ac_word... " >&6; }
2249if ${ac_cv_prog_CC+:} false; then :
2250  $as_echo_n "(cached) " >&6
2251else
2252  if test -n "$CC"; then
2253  ac_cv_prog_CC="$CC" # Let the user override the test.
2254else
2255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256for as_dir in $PATH
2257do
2258  IFS=$as_save_IFS
2259  test -z "$as_dir" && as_dir=.
2260    for ac_exec_ext in '' $ac_executable_extensions; do
2261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2262    ac_cv_prog_CC="${ac_tool_prefix}cc"
2263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2264    break 2
2265  fi
2266done
2267  done
2268IFS=$as_save_IFS
2269
2270fi
2271fi
2272CC=$ac_cv_prog_CC
2273if test -n "$CC"; then
2274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2275$as_echo "$CC" >&6; }
2276else
2277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2278$as_echo "no" >&6; }
2279fi
2280
2281
2282  fi
2283fi
2284if test -z "$CC"; then
2285  # Extract the first word of "cc", so it can be a program name with args.
2286set dummy cc; ac_word=$2
2287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2288$as_echo_n "checking for $ac_word... " >&6; }
2289if ${ac_cv_prog_CC+:} false; then :
2290  $as_echo_n "(cached) " >&6
2291else
2292  if test -n "$CC"; then
2293  ac_cv_prog_CC="$CC" # Let the user override the test.
2294else
2295  ac_prog_rejected=no
2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297for as_dir in $PATH
2298do
2299  IFS=$as_save_IFS
2300  test -z "$as_dir" && as_dir=.
2301    for ac_exec_ext in '' $ac_executable_extensions; do
2302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2304       ac_prog_rejected=yes
2305       continue
2306     fi
2307    ac_cv_prog_CC="cc"
2308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2309    break 2
2310  fi
2311done
2312  done
2313IFS=$as_save_IFS
2314
2315if test $ac_prog_rejected = yes; then
2316  # We found a bogon in the path, so make sure we never use it.
2317  set dummy $ac_cv_prog_CC
2318  shift
2319  if test $# != 0; then
2320    # We chose a different compiler from the bogus one.
2321    # However, it has the same basename, so the bogon will be chosen
2322    # first if we set CC to just the basename; use the full file name.
2323    shift
2324    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2325  fi
2326fi
2327fi
2328fi
2329CC=$ac_cv_prog_CC
2330if test -n "$CC"; then
2331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2332$as_echo "$CC" >&6; }
2333else
2334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2335$as_echo "no" >&6; }
2336fi
2337
2338
2339fi
2340if test -z "$CC"; then
2341  if test -n "$ac_tool_prefix"; then
2342  for ac_prog in cl.exe
2343  do
2344    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2347$as_echo_n "checking for $ac_word... " >&6; }
2348if ${ac_cv_prog_CC+:} false; then :
2349  $as_echo_n "(cached) " >&6
2350else
2351  if test -n "$CC"; then
2352  ac_cv_prog_CC="$CC" # Let the user override the test.
2353else
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357  IFS=$as_save_IFS
2358  test -z "$as_dir" && as_dir=.
2359    for ac_exec_ext in '' $ac_executable_extensions; do
2360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2363    break 2
2364  fi
2365done
2366  done
2367IFS=$as_save_IFS
2368
2369fi
2370fi
2371CC=$ac_cv_prog_CC
2372if test -n "$CC"; then
2373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2374$as_echo "$CC" >&6; }
2375else
2376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2377$as_echo "no" >&6; }
2378fi
2379
2380
2381    test -n "$CC" && break
2382  done
2383fi
2384if test -z "$CC"; then
2385  ac_ct_CC=$CC
2386  for ac_prog in cl.exe
2387do
2388  # Extract the first word of "$ac_prog", so it can be a program name with args.
2389set dummy $ac_prog; ac_word=$2
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2391$as_echo_n "checking for $ac_word... " >&6; }
2392if ${ac_cv_prog_ac_ct_CC+:} false; then :
2393  $as_echo_n "(cached) " >&6
2394else
2395  if test -n "$ac_ct_CC"; then
2396  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2397else
2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401  IFS=$as_save_IFS
2402  test -z "$as_dir" && as_dir=.
2403    for ac_exec_ext in '' $ac_executable_extensions; do
2404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405    ac_cv_prog_ac_ct_CC="$ac_prog"
2406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2407    break 2
2408  fi
2409done
2410  done
2411IFS=$as_save_IFS
2412
2413fi
2414fi
2415ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416if test -n "$ac_ct_CC"; then
2417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2418$as_echo "$ac_ct_CC" >&6; }
2419else
2420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2421$as_echo "no" >&6; }
2422fi
2423
2424
2425  test -n "$ac_ct_CC" && break
2426done
2427
2428  if test "x$ac_ct_CC" = x; then
2429    CC=""
2430  else
2431    case $cross_compiling:$ac_tool_warned in
2432yes:)
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2435ac_tool_warned=yes ;;
2436esac
2437    CC=$ac_ct_CC
2438  fi
2439fi
2440
2441fi
2442
2443
2444test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2446as_fn_error $? "no acceptable C compiler found in \$PATH
2447See \`config.log' for more details" "$LINENO" 5; }
2448
2449# Provide some information about the compiler.
2450$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2451set X $ac_compile
2452ac_compiler=$2
2453for ac_option in --version -v -V -qversion; do
2454  { { ac_try="$ac_compiler $ac_option >&5"
2455case "(($ac_try" in
2456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457  *) ac_try_echo=$ac_try;;
2458esac
2459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2460$as_echo "$ac_try_echo"; } >&5
2461  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2462  ac_status=$?
2463  if test -s conftest.err; then
2464    sed '10a\
2465... rest of stderr output deleted ...
2466         10q' conftest.err >conftest.er1
2467    cat conftest.er1 >&5
2468  fi
2469  rm -f conftest.er1 conftest.err
2470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471  test $ac_status = 0; }
2472done
2473
2474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475/* end confdefs.h.  */
2476
2477int
2478main ()
2479{
2480
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485ac_clean_files_save=$ac_clean_files
2486ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2487# Try to create an executable without -o first, disregard a.out.
2488# It will help us diagnose broken compilers, and finding out an intuition
2489# of exeext.
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2491$as_echo_n "checking whether the C compiler works... " >&6; }
2492ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493
2494# The possible output files:
2495ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2496
2497ac_rmfiles=
2498for ac_file in $ac_files
2499do
2500  case $ac_file in
2501    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2502    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2503  esac
2504done
2505rm -f $ac_rmfiles
2506
2507if { { ac_try="$ac_link_default"
2508case "(($ac_try" in
2509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510  *) ac_try_echo=$ac_try;;
2511esac
2512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2513$as_echo "$ac_try_echo"; } >&5
2514  (eval "$ac_link_default") 2>&5
2515  ac_status=$?
2516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517  test $ac_status = 0; }; then :
2518  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2519# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2520# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2521# so that the user can short-circuit this test for compilers unknown to
2522# Autoconf.
2523for ac_file in $ac_files ''
2524do
2525  test -f "$ac_file" || continue
2526  case $ac_file in
2527    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2528	;;
2529    [ab].out )
2530	# We found the default executable, but exeext='' is most
2531	# certainly right.
2532	break;;
2533    *.* )
2534	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2535	then :; else
2536	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2537	fi
2538	# We set ac_cv_exeext here because the later test for it is not
2539	# safe: cross compilers may not add the suffix if given an `-o'
2540	# argument, so we may need to know it at that point already.
2541	# Even if this section looks crufty: it has the advantage of
2542	# actually working.
2543	break;;
2544    * )
2545	break;;
2546  esac
2547done
2548test "$ac_cv_exeext" = no && ac_cv_exeext=
2549
2550else
2551  ac_file=''
2552fi
2553if test -z "$ac_file"; then :
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555$as_echo "no" >&6; }
2556$as_echo "$as_me: failed program was:" >&5
2557sed 's/^/| /' conftest.$ac_ext >&5
2558
2559{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561as_fn_error 77 "C compiler cannot create executables
2562See \`config.log' for more details" "$LINENO" 5; }
2563else
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2565$as_echo "yes" >&6; }
2566fi
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2568$as_echo_n "checking for C compiler default output file name... " >&6; }
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2570$as_echo "$ac_file" >&6; }
2571ac_exeext=$ac_cv_exeext
2572
2573rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2574ac_clean_files=$ac_clean_files_save
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2576$as_echo_n "checking for suffix of executables... " >&6; }
2577if { { ac_try="$ac_link"
2578case "(($ac_try" in
2579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580  *) ac_try_echo=$ac_try;;
2581esac
2582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583$as_echo "$ac_try_echo"; } >&5
2584  (eval "$ac_link") 2>&5
2585  ac_status=$?
2586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587  test $ac_status = 0; }; then :
2588  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2589# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2590# work properly (i.e., refer to `conftest.exe'), while it won't with
2591# `rm'.
2592for ac_file in conftest.exe conftest conftest.*; do
2593  test -f "$ac_file" || continue
2594  case $ac_file in
2595    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2596    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2597	  break;;
2598    * ) break;;
2599  esac
2600done
2601else
2602  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2604as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2605See \`config.log' for more details" "$LINENO" 5; }
2606fi
2607rm -f conftest conftest$ac_cv_exeext
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2609$as_echo "$ac_cv_exeext" >&6; }
2610
2611rm -f conftest.$ac_ext
2612EXEEXT=$ac_cv_exeext
2613ac_exeext=$EXEEXT
2614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615/* end confdefs.h.  */
2616#include <stdio.h>
2617int
2618main ()
2619{
2620FILE *f = fopen ("conftest.out", "w");
2621 return ferror (f) || fclose (f) != 0;
2622
2623  ;
2624  return 0;
2625}
2626_ACEOF
2627ac_clean_files="$ac_clean_files conftest.out"
2628# Check that the compiler produces executables we can run.  If not, either
2629# the compiler is broken, or we cross compile.
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2631$as_echo_n "checking whether we are cross compiling... " >&6; }
2632if test "$cross_compiling" != yes; then
2633  { { ac_try="$ac_link"
2634case "(($ac_try" in
2635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636  *) ac_try_echo=$ac_try;;
2637esac
2638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639$as_echo "$ac_try_echo"; } >&5
2640  (eval "$ac_link") 2>&5
2641  ac_status=$?
2642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643  test $ac_status = 0; }
2644  if { ac_try='./conftest$ac_cv_exeext'
2645  { { case "(($ac_try" in
2646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647  *) ac_try_echo=$ac_try;;
2648esac
2649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2650$as_echo "$ac_try_echo"; } >&5
2651  (eval "$ac_try") 2>&5
2652  ac_status=$?
2653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2654  test $ac_status = 0; }; }; then
2655    cross_compiling=no
2656  else
2657    if test "$cross_compiling" = maybe; then
2658	cross_compiling=yes
2659    else
2660	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2662as_fn_error $? "cannot run C compiled programs.
2663If you meant to cross compile, use \`--host'.
2664See \`config.log' for more details" "$LINENO" 5; }
2665    fi
2666  fi
2667fi
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2669$as_echo "$cross_compiling" >&6; }
2670
2671rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2672ac_clean_files=$ac_clean_files_save
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2674$as_echo_n "checking for suffix of object files... " >&6; }
2675if ${ac_cv_objext+:} false; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679/* end confdefs.h.  */
2680
2681int
2682main ()
2683{
2684
2685  ;
2686  return 0;
2687}
2688_ACEOF
2689rm -f conftest.o conftest.obj
2690if { { ac_try="$ac_compile"
2691case "(($ac_try" in
2692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693  *) ac_try_echo=$ac_try;;
2694esac
2695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2696$as_echo "$ac_try_echo"; } >&5
2697  (eval "$ac_compile") 2>&5
2698  ac_status=$?
2699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700  test $ac_status = 0; }; then :
2701  for ac_file in conftest.o conftest.obj conftest.*; do
2702  test -f "$ac_file" || continue;
2703  case $ac_file in
2704    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2705    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2706       break;;
2707  esac
2708done
2709else
2710  $as_echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2715as_fn_error $? "cannot compute suffix of object files: cannot compile
2716See \`config.log' for more details" "$LINENO" 5; }
2717fi
2718rm -f conftest.$ac_cv_objext conftest.$ac_ext
2719fi
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2721$as_echo "$ac_cv_objext" >&6; }
2722OBJEXT=$ac_cv_objext
2723ac_objext=$OBJEXT
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2725$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2726if ${ac_cv_c_compiler_gnu+:} false; then :
2727  $as_echo_n "(cached) " >&6
2728else
2729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730/* end confdefs.h.  */
2731
2732int
2733main ()
2734{
2735#ifndef __GNUC__
2736       choke me
2737#endif
2738
2739  ;
2740  return 0;
2741}
2742_ACEOF
2743if ac_fn_c_try_compile "$LINENO"; then :
2744  ac_compiler_gnu=yes
2745else
2746  ac_compiler_gnu=no
2747fi
2748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749ac_cv_c_compiler_gnu=$ac_compiler_gnu
2750
2751fi
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2753$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2754if test $ac_compiler_gnu = yes; then
2755  GCC=yes
2756else
2757  GCC=
2758fi
2759ac_test_CFLAGS=${CFLAGS+set}
2760ac_save_CFLAGS=$CFLAGS
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2762$as_echo_n "checking whether $CC accepts -g... " >&6; }
2763if ${ac_cv_prog_cc_g+:} false; then :
2764  $as_echo_n "(cached) " >&6
2765else
2766  ac_save_c_werror_flag=$ac_c_werror_flag
2767   ac_c_werror_flag=yes
2768   ac_cv_prog_cc_g=no
2769   CFLAGS="-g"
2770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771/* end confdefs.h.  */
2772
2773int
2774main ()
2775{
2776
2777  ;
2778  return 0;
2779}
2780_ACEOF
2781if ac_fn_c_try_compile "$LINENO"; then :
2782  ac_cv_prog_cc_g=yes
2783else
2784  CFLAGS=""
2785      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786/* end confdefs.h.  */
2787
2788int
2789main ()
2790{
2791
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796if ac_fn_c_try_compile "$LINENO"; then :
2797
2798else
2799  ac_c_werror_flag=$ac_save_c_werror_flag
2800	 CFLAGS="-g"
2801	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802/* end confdefs.h.  */
2803
2804int
2805main ()
2806{
2807
2808  ;
2809  return 0;
2810}
2811_ACEOF
2812if ac_fn_c_try_compile "$LINENO"; then :
2813  ac_cv_prog_cc_g=yes
2814fi
2815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816fi
2817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818fi
2819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820   ac_c_werror_flag=$ac_save_c_werror_flag
2821fi
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2823$as_echo "$ac_cv_prog_cc_g" >&6; }
2824if test "$ac_test_CFLAGS" = set; then
2825  CFLAGS=$ac_save_CFLAGS
2826elif test $ac_cv_prog_cc_g = yes; then
2827  if test "$GCC" = yes; then
2828    CFLAGS="-g -O2"
2829  else
2830    CFLAGS="-g"
2831  fi
2832else
2833  if test "$GCC" = yes; then
2834    CFLAGS="-O2"
2835  else
2836    CFLAGS=
2837  fi
2838fi
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2840$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2841if ${ac_cv_prog_cc_c89+:} false; then :
2842  $as_echo_n "(cached) " >&6
2843else
2844  ac_cv_prog_cc_c89=no
2845ac_save_CC=$CC
2846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847/* end confdefs.h.  */
2848#include <stdarg.h>
2849#include <stdio.h>
2850struct stat;
2851/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2852struct buf { int x; };
2853FILE * (*rcsopen) (struct buf *, struct stat *, int);
2854static char *e (p, i)
2855     char **p;
2856     int i;
2857{
2858  return p[i];
2859}
2860static char *f (char * (*g) (char **, int), char **p, ...)
2861{
2862  char *s;
2863  va_list v;
2864  va_start (v,p);
2865  s = g (p, va_arg (v,int));
2866  va_end (v);
2867  return s;
2868}
2869
2870/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2871   function prototypes and stuff, but not '\xHH' hex character constants.
2872   These don't provoke an error unfortunately, instead are silently treated
2873   as 'x'.  The following induces an error, until -std is added to get
2874   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2875   array size at least.  It's necessary to write '\x00'==0 to get something
2876   that's true only with -std.  */
2877int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2878
2879/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2880   inside strings and character constants.  */
2881#define FOO(x) 'x'
2882int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2883
2884int test (int i, double x);
2885struct s1 {int (*f) (int a);};
2886struct s2 {int (*f) (double a);};
2887int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2888int argc;
2889char **argv;
2890int
2891main ()
2892{
2893return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2899	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2900do
2901  CC="$ac_save_CC $ac_arg"
2902  if ac_fn_c_try_compile "$LINENO"; then :
2903  ac_cv_prog_cc_c89=$ac_arg
2904fi
2905rm -f core conftest.err conftest.$ac_objext
2906  test "x$ac_cv_prog_cc_c89" != "xno" && break
2907done
2908rm -f conftest.$ac_ext
2909CC=$ac_save_CC
2910
2911fi
2912# AC_CACHE_VAL
2913case "x$ac_cv_prog_cc_c89" in
2914  x)
2915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2916$as_echo "none needed" >&6; } ;;
2917  xno)
2918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2919$as_echo "unsupported" >&6; } ;;
2920  *)
2921    CC="$CC $ac_cv_prog_cc_c89"
2922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2923$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2924esac
2925if test "x$ac_cv_prog_cc_c89" != xno; then :
2926
2927fi
2928
2929ac_ext=c
2930ac_cpp='$CPP $CPPFLAGS'
2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934
2935ac_aux_dir=
2936for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2937  if test -f "$ac_dir/install-sh"; then
2938    ac_aux_dir=$ac_dir
2939    ac_install_sh="$ac_aux_dir/install-sh -c"
2940    break
2941  elif test -f "$ac_dir/install.sh"; then
2942    ac_aux_dir=$ac_dir
2943    ac_install_sh="$ac_aux_dir/install.sh -c"
2944    break
2945  elif test -f "$ac_dir/shtool"; then
2946    ac_aux_dir=$ac_dir
2947    ac_install_sh="$ac_aux_dir/shtool install -c"
2948    break
2949  fi
2950done
2951if test -z "$ac_aux_dir"; then
2952  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2953fi
2954
2955# These three variables are undocumented and unsupported,
2956# and are intended to be withdrawn in a future Autoconf release.
2957# They can cause serious problems if a builder's source tree is in a directory
2958# whose full name contains unusual characters.
2959ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2960ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2961ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2962
2963
2964# Find a good install program.  We prefer a C program (faster),
2965# so one script is as good as another.  But avoid the broken or
2966# incompatible versions:
2967# SysV /etc/install, /usr/sbin/install
2968# SunOS /usr/etc/install
2969# IRIX /sbin/install
2970# AIX /bin/install
2971# AmigaOS /C/install, which installs bootblocks on floppy discs
2972# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2973# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2974# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2975# OS/2's system install, which has a completely different semantic
2976# ./install, which can be erroneously created by make from ./install.sh.
2977# Reject install programs that cannot install multiple files.
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2979$as_echo_n "checking for a BSD-compatible install... " >&6; }
2980if test -z "$INSTALL"; then
2981if ${ac_cv_path_install+:} false; then :
2982  $as_echo_n "(cached) " >&6
2983else
2984  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987  IFS=$as_save_IFS
2988  test -z "$as_dir" && as_dir=.
2989    # Account for people who put trailing slashes in PATH elements.
2990case $as_dir/ in #((
2991  ./ | .// | /[cC]/* | \
2992  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2993  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2994  /usr/ucb/* ) ;;
2995  *)
2996    # OSF1 and SCO ODT 3.0 have their own names for install.
2997    # Don't use installbsd from OSF since it installs stuff as root
2998    # by default.
2999    for ac_prog in ginstall scoinst install; do
3000      for ac_exec_ext in '' $ac_executable_extensions; do
3001	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3002	  if test $ac_prog = install &&
3003	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3004	    # AIX install.  It has an incompatible calling convention.
3005	    :
3006	  elif test $ac_prog = install &&
3007	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3008	    # program-specific install script used by HP pwplus--don't use.
3009	    :
3010	  else
3011	    rm -rf conftest.one conftest.two conftest.dir
3012	    echo one > conftest.one
3013	    echo two > conftest.two
3014	    mkdir conftest.dir
3015	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3016	      test -s conftest.one && test -s conftest.two &&
3017	      test -s conftest.dir/conftest.one &&
3018	      test -s conftest.dir/conftest.two
3019	    then
3020	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3021	      break 3
3022	    fi
3023	  fi
3024	fi
3025      done
3026    done
3027    ;;
3028esac
3029
3030  done
3031IFS=$as_save_IFS
3032
3033rm -rf conftest.one conftest.two conftest.dir
3034
3035fi
3036  if test "${ac_cv_path_install+set}" = set; then
3037    INSTALL=$ac_cv_path_install
3038  else
3039    # As a last resort, use the slow shell script.  Don't cache a
3040    # value for INSTALL within a source directory, because that will
3041    # break other packages using the cache if that directory is
3042    # removed, or if the value is a relative name.
3043    INSTALL=$ac_install_sh
3044  fi
3045fi
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3047$as_echo "$INSTALL" >&6; }
3048
3049# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3050# It thinks the first close brace ends the variable substitution.
3051test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3052
3053test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3054
3055test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3056
3057
3058
3059    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
3060$as_echo_n "checking for zlib... " >&6; }
3061    zlibdirs="/usr /usr/local"
3062	withval=""
3063
3064# Check whether --with-zlib was given.
3065if test "${with_zlib+set}" = set; then :
3066  withval=$with_zlib;
3067fi
3068
3069    if test x_$withval != x_no; then
3070	if test x_$withval != x_yes -a \! -z "$withval"; then
3071		zlibdirs="$withval"
3072	fi
3073	for dir in $zlibdirs; do
3074	    zlibdir="$dir"
3075	    if test -f "$dir/include/zlib.h"; then
3076			found_zlib="yes";
3077			break;
3078		fi
3079	done
3080	if test x_$found_zlib = x_yes; then
3081		if test "$dir" != "/usr"; then
3082			CPPFLAGS="$CPPFLAGS -I$zlibdir/include";
3083	    fi
3084	    $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
3085
3086	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3087$as_echo "yes" >&6; }
3088	else
3089	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090$as_echo "no" >&6; }
3091	fi
3092    else
3093	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095    fi
3096
3097
3098# Checks for libraries.
3099if test \! x_$with_ssl = x_no; then
3100
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
3102$as_echo_n "checking for SSL_accept in -lssl... " >&6; }
3103if ${ac_cv_lib_ssl_SSL_accept+:} false; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  ac_check_lib_save_LIBS=$LIBS
3107LIBS="-lssl  $LIBS"
3108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h.  */
3110
3111/* Override any GCC internal prototype to avoid an error.
3112   Use char because int might match the return type of a GCC
3113   builtin and then its argument prototype would still apply.  */
3114#ifdef __cplusplus
3115extern "C"
3116#endif
3117char SSL_accept ();
3118int
3119main ()
3120{
3121return SSL_accept ();
3122  ;
3123  return 0;
3124}
3125_ACEOF
3126if ac_fn_c_try_link "$LINENO"; then :
3127  ac_cv_lib_ssl_SSL_accept=yes
3128else
3129  ac_cv_lib_ssl_SSL_accept=no
3130fi
3131rm -f core conftest.err conftest.$ac_objext \
3132    conftest$ac_exeext conftest.$ac_ext
3133LIBS=$ac_check_lib_save_LIBS
3134fi
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
3136$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
3137if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then :
3138  cat >>confdefs.h <<_ACEOF
3139#define HAVE_LIBSSL 1
3140_ACEOF
3141
3142  LIBS="-lssl $LIBS"
3143
3144else
3145
3146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl" >&5
3147$as_echo_n "checking for ssl... " >&6; }
3148    ssldirs="/usr/local/openssl /usr/lib/openssl /usr/openssl \
3149	    /usr/local/ssl /usr/lib/ssl /usr/ssl \
3150	    /usr/pkg /usr/local /usr"
3151
3152# Check whether --with-ssl was given.
3153if test "${with_ssl+set}" = set; then :
3154  withval=$with_ssl; ssldirs="$withval"
3155fi
3156
3157    for dir in $ssldirs; do
3158	ssldir="$dir"
3159	if test -f "$dir/include/openssl/ssl.h"; then
3160	    found_ssl="yes";
3161	    CPPFLAGS="$CPPFLAGS -I$ssldir/include";
3162	    break;
3163	fi
3164	if test -f "$dir/include/ssl.h"; then
3165	    found_ssl="yes";
3166	    CPPFLAGS="$CPPFLAGS -I$ssldir/include";
3167	    break
3168	fi
3169    done
3170    if test x_$found_ssl != x_yes; then
3171	as_fn_error $? "cannot find ssl libraries" "$LINENO" 5
3172    else
3173	$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
3174
3175	LIBS="$LIBS -lssl -lcrypto";
3176	LDFLAGS="$LDFLAGS -L$ssldir/lib";
3177    fi
3178    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179$as_echo "yes" >&6; }
3180
3181fi
3182
3183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSLeay_version in -lcrypto" >&5
3184$as_echo_n "checking for SSLeay_version in -lcrypto... " >&6; }
3185if ${ac_cv_lib_crypto_SSLeay_version+:} false; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  ac_check_lib_save_LIBS=$LIBS
3189LIBS="-lcrypto  $LIBS"
3190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191/* end confdefs.h.  */
3192
3193/* Override any GCC internal prototype to avoid an error.
3194   Use char because int might match the return type of a GCC
3195   builtin and then its argument prototype would still apply.  */
3196#ifdef __cplusplus
3197extern "C"
3198#endif
3199char SSLeay_version ();
3200int
3201main ()
3202{
3203return SSLeay_version ();
3204  ;
3205  return 0;
3206}
3207_ACEOF
3208if ac_fn_c_try_link "$LINENO"; then :
3209  ac_cv_lib_crypto_SSLeay_version=yes
3210else
3211  ac_cv_lib_crypto_SSLeay_version=no
3212fi
3213rm -f core conftest.err conftest.$ac_objext \
3214    conftest$ac_exeext conftest.$ac_ext
3215LIBS=$ac_check_lib_save_LIBS
3216fi
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SSLeay_version" >&5
3218$as_echo "$ac_cv_lib_crypto_SSLeay_version" >&6; }
3219if test "x$ac_cv_lib_crypto_SSLeay_version" = xyes; then :
3220  cat >>confdefs.h <<_ACEOF
3221#define HAVE_LIBCRYPTO 1
3222_ACEOF
3223
3224  LIBS="-lcrypto $LIBS"
3225
3226else
3227
3228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl" >&5
3229$as_echo_n "checking for ssl... " >&6; }
3230    ssldirs="/usr/local/openssl /usr/lib/openssl /usr/openssl \
3231	    /usr/local/ssl /usr/lib/ssl /usr/ssl \
3232	    /usr/pkg /usr/local /usr"
3233
3234# Check whether --with-ssl was given.
3235if test "${with_ssl+set}" = set; then :
3236  withval=$with_ssl; ssldirs="$withval"
3237fi
3238
3239    for dir in $ssldirs; do
3240	ssldir="$dir"
3241	if test -f "$dir/include/openssl/ssl.h"; then
3242	    found_ssl="yes";
3243	    CPPFLAGS="$CPPFLAGS -I$ssldir/include";
3244	    break;
3245	fi
3246	if test -f "$dir/include/ssl.h"; then
3247	    found_ssl="yes";
3248	    CPPFLAGS="$CPPFLAGS -I$ssldir/include";
3249	    break
3250	fi
3251    done
3252    if test x_$found_ssl != x_yes; then
3253	as_fn_error $? "cannot find ssl libraries" "$LINENO" 5
3254    else
3255	$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
3256
3257	LIBS="$LIBS -lssl -lcrypto";
3258	LDFLAGS="$LDFLAGS -L$ssldir/lib";
3259    fi
3260    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261$as_echo "yes" >&6; }
3262
3263fi
3264
3265fi
3266
3267    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl" >&5
3268$as_echo_n "checking for sasl... " >&6; }
3269    sasldirs="/usr/local/sasl2 /usr/lib/sasl2 /usr/sasl2 \
3270            /usr/pkg /usr/local /usr"
3271
3272# Check whether --with-sasl was given.
3273if test "${with_sasl+set}" = set; then :
3274  withval=$with_sasl; sasldirs="$withval"
3275fi
3276
3277    if test x_$withval != x_no; then
3278	for dir in $sasldirs; do
3279	    sasldir="$dir"
3280	    if test -f "$dir/include/sasl/sasl.h"; then
3281		found_sasl="yes";
3282		CPPFLAGS="$CPPFLAGS -I$sasldir/include";
3283		break;
3284	    fi
3285	    if test -f "$dir/include/sasl.h"; then
3286		found_sasl="yes";
3287		CPPFLAGS="$CPPFLAGS -I$sasldir/include";
3288		break
3289	    fi
3290	done
3291	if test x_$found_sasl = x_yes; then
3292	    $as_echo "#define HAVE_LIBSASL 1" >>confdefs.h
3293
3294	    LIBS="$LIBS -lsasl2";
3295	    LDFLAGS="$LDFLAGS -L$sasldir/lib";
3296	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298	else
3299	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300$as_echo "no" >&6; }
3301	fi
3302    else
3303	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305    fi
3306
3307# Make sure we can run config.sub.
3308$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3309  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3310
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3312$as_echo_n "checking build system type... " >&6; }
3313if ${ac_cv_build+:} false; then :
3314  $as_echo_n "(cached) " >&6
3315else
3316  ac_build_alias=$build_alias
3317test "x$ac_build_alias" = x &&
3318  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3319test "x$ac_build_alias" = x &&
3320  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3321ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3322  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3323
3324fi
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3326$as_echo "$ac_cv_build" >&6; }
3327case $ac_cv_build in
3328*-*-*) ;;
3329*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3330esac
3331build=$ac_cv_build
3332ac_save_IFS=$IFS; IFS='-'
3333set x $ac_cv_build
3334shift
3335build_cpu=$1
3336build_vendor=$2
3337shift; shift
3338# Remember, the first character of IFS is used to create $*,
3339# except with old shells:
3340build_os=$*
3341IFS=$ac_save_IFS
3342case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3343
3344
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3346$as_echo_n "checking host system type... " >&6; }
3347if ${ac_cv_host+:} false; then :
3348  $as_echo_n "(cached) " >&6
3349else
3350  if test "x$host_alias" = x; then
3351  ac_cv_host=$ac_cv_build
3352else
3353  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3354    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3355fi
3356
3357fi
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3359$as_echo "$ac_cv_host" >&6; }
3360case $ac_cv_host in
3361*-*-*) ;;
3362*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3363esac
3364host=$ac_cv_host
3365ac_save_IFS=$IFS; IFS='-'
3366set x $ac_cv_host
3367shift
3368host_cpu=$1
3369host_vendor=$2
3370shift; shift
3371# Remember, the first character of IFS is used to create $*,
3372# except with old shells:
3373host_os=$*
3374IFS=$ac_save_IFS
3375case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3376
3377
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3379$as_echo_n "checking target system type... " >&6; }
3380if ${ac_cv_target+:} false; then :
3381  $as_echo_n "(cached) " >&6
3382else
3383  if test "x$target_alias" = x; then
3384  ac_cv_target=$ac_cv_host
3385else
3386  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3387    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3388fi
3389
3390fi
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3392$as_echo "$ac_cv_target" >&6; }
3393case $ac_cv_target in
3394*-*-*) ;;
3395*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3396esac
3397target=$ac_cv_target
3398ac_save_IFS=$IFS; IFS='-'
3399set x $ac_cv_target
3400shift
3401target_cpu=$1
3402target_vendor=$2
3403shift; shift
3404# Remember, the first character of IFS is used to create $*,
3405# except with old shells:
3406target_os=$*
3407IFS=$ac_save_IFS
3408case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3409
3410
3411# The aliases save the names the user supplied, while $host etc.
3412# will get canonicalized.
3413test -n "$target_alias" &&
3414  test "$program_prefix$program_suffix$program_transform_name" = \
3415    NONENONEs,x,x, &&
3416  program_prefix=${target_alias}-
3417
3418    # Check whether --enable-universal_binaries was given.
3419if test "${enable_universal_binaries+set}" = set; then :
3420  enableval=$enable_universal_binaries;
3421else
3422  enable_universal_binaries=no
3423fi
3424
3425    if test "${enable_universal_binaries}" = "yes"; then
3426
3427	case "${host_os}" in
3428	  darwin8*)
3429	    macosx_sdk="MacOSX10.4u.sdk"
3430	    arches="-arch i386 -arch ppc"
3431	    ;;
3432
3433	  darwin9*)
3434	    dep_target="-mmacosx-version-min=10.4"
3435	    macosx_sdk="MacOSX10.5.sdk"
3436	    arches="-arch i386 -arch x86_64 -arch ppc -arch ppc64"
3437	    ;;
3438
3439	  darwin10*)
3440	    dep_target="-mmacosx-version-min=10.4"
3441	    macosx_sdk="MacOSX10.6.sdk"
3442	    arches="-arch i386 -arch x86_64 -arch ppc"
3443	    ;;
3444
3445	  *)
3446	    as_fn_error $? "Building universal binaries on ${host_os} is not supported" "$LINENO" 5
3447	    ;;
3448	  esac
3449	echo ===========================================================
3450	echo Setting up universal binaries for ${host_os}
3451	echo ===========================================================
3452	OPTOPTS="$OPTOPTS -isysroot /Developer/SDKs/$macosx_sdk $dep_target $arches"
3453    fi
3454
3455
3456# Checks for header files.
3457#AC_HEADER_STDC
3458#AC_CHECK_HEADERS([fcntl.h inttypes.h netinet/in.h stdlib.h string.h sys/param.h sys/time.h unistd.h])
3459
3460# Checks for typedefs, structures, and compiler characteristics.
3461#AC_HEADER_TIME
3462
3463# Checks for library functions.
3464#AC_FUNC_MALLOC
3465#AC_FUNC_REALLOC
3466#AC_CHECK_FUNCS([gettimeofday select])
3467
3468# Checks for how to build libraries
3469
3470    # Allow user to control whether or not profiled libraries are built
3471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build profiled libraries" >&5
3472$as_echo_n "checking whether to build profiled libraries... " >&6; }
3473    PROFILED=true
3474    # Check whether --enable-profiled was given.
3475if test "${enable_profiled+set}" = set; then :
3476  enableval=$enable_profiled; test x_$enable_profiled = x_no && PROFILED=false
3477
3478fi
3479
3480
3481    if test x_$PROFILED = x_true ; then
3482      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3483$as_echo "yes" >&6; }
3484    else
3485      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486$as_echo "no" >&6; }
3487    fi
3488
3489# Check whether --enable-shared was given.
3490if test "${enable_shared+set}" = set; then :
3491  enableval=$enable_shared; p=${PACKAGE-default}
3492case $enableval in
3493yes) enable_shared=yes ;;
3494no) enable_shared=no ;;
3495*)
3496  enable_shared=no
3497  # Look at the argument we got.  We use all the common list separators.
3498  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3499  for pkg in $enableval; do
3500    if test "X$pkg" = "X$p"; then
3501      enable_shared=yes
3502    fi
3503  done
3504  IFS="$ac_save_ifs"
3505  ;;
3506esac
3507else
3508  enable_shared=no
3509fi
3510
3511# Check whether --enable-static was given.
3512if test "${enable_static+set}" = set; then :
3513  enableval=$enable_static; p=${PACKAGE-default}
3514case $enableval in
3515yes) enable_static=yes ;;
3516no) enable_static=no ;;
3517*)
3518  enable_static=no
3519  # Look at the argument we got.  We use all the common list separators.
3520  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3521  for pkg in $enableval; do
3522    if test "X$pkg" = "X$p"; then
3523      enable_static=yes
3524    fi
3525  done
3526  IFS="$ac_save_ifs"
3527  ;;
3528esac
3529else
3530  enable_static=yes
3531fi
3532
3533# Check whether --enable-fast-install was given.
3534if test "${enable_fast_install+set}" = set; then :
3535  enableval=$enable_fast_install; p=${PACKAGE-default}
3536case $enableval in
3537yes) enable_fast_install=yes ;;
3538no) enable_fast_install=no ;;
3539*)
3540  enable_fast_install=no
3541  # Look at the argument we got.  We use all the common list separators.
3542  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3543  for pkg in $enableval; do
3544    if test "X$pkg" = "X$p"; then
3545      enable_fast_install=yes
3546    fi
3547  done
3548  IFS="$ac_save_ifs"
3549  ;;
3550esac
3551else
3552  enable_fast_install=yes
3553fi
3554
3555# Find the correct PATH separator.  Usually this is `:', but
3556# DJGPP uses `;' like DOS.
3557if test "X${PATH_SEPARATOR+set}" != Xset; then
3558  UNAME=${UNAME-`uname 2>/dev/null`}
3559  case X$UNAME in
3560    *-DOS) lt_cv_sys_path_separator=';' ;;
3561    *)     lt_cv_sys_path_separator=':' ;;
3562  esac
3563  PATH_SEPARATOR=$lt_cv_sys_path_separator
3564fi
3565
3566
3567# Check whether --with-gnu-ld was given.
3568if test "${with_gnu_ld+set}" = set; then :
3569  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3570else
3571  with_gnu_ld=no
3572fi
3573
3574ac_prog=ld
3575if test "$GCC" = yes; then
3576  # Check if gcc -print-prog-name=ld gives a path.
3577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
3578$as_echo_n "checking for ld used by GCC... " >&6; }
3579  case $host in
3580  *-*-mingw*)
3581    # gcc leaves a trailing carriage return which upsets mingw
3582    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3583  *)
3584    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3585  esac
3586  case $ac_prog in
3587    # Accept absolute paths.
3588    [\\/]* | [A-Za-z]:[\\/]*)
3589      re_direlt='/[^/][^/]*/\.\./'
3590      # Canonicalize the path of ld
3591      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3592      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3593	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3594      done
3595      test -z "$LD" && LD="$ac_prog"
3596      ;;
3597  "")
3598    # If it fails, then pretend we aren't using GCC.
3599    ac_prog=ld
3600    ;;
3601  *)
3602    # If it is relative, then search for the first ld in PATH.
3603    with_gnu_ld=unknown
3604    ;;
3605  esac
3606elif test "$with_gnu_ld" = yes; then
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3608$as_echo_n "checking for GNU ld... " >&6; }
3609else
3610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3611$as_echo_n "checking for non-GNU ld... " >&6; }
3612fi
3613if ${lt_cv_path_LD+:} false; then :
3614  $as_echo_n "(cached) " >&6
3615else
3616  if test -z "$LD"; then
3617  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3618  for ac_dir in $PATH; do
3619    test -z "$ac_dir" && ac_dir=.
3620    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3621      lt_cv_path_LD="$ac_dir/$ac_prog"
3622      # Check to see if the program is GNU ld.  I'd rather use --version,
3623      # but apparently some GNU ld's only accept -v.
3624      # Break only if it was the GNU/non-GNU ld that we prefer.
3625      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3626	test "$with_gnu_ld" != no && break
3627      else
3628	test "$with_gnu_ld" != yes && break
3629      fi
3630    fi
3631  done
3632  IFS="$ac_save_ifs"
3633else
3634  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3635fi
3636fi
3637
3638LD="$lt_cv_path_LD"
3639if test -n "$LD"; then
3640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3641$as_echo "$LD" >&6; }
3642else
3643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644$as_echo "no" >&6; }
3645fi
3646test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3648$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3649if ${lt_cv_prog_gnu_ld+:} false; then :
3650  $as_echo_n "(cached) " >&6
3651else
3652  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3653if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3654  lt_cv_prog_gnu_ld=yes
3655else
3656  lt_cv_prog_gnu_ld=no
3657fi
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3660$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3661with_gnu_ld=$lt_cv_prog_gnu_ld
3662
3663
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
3665$as_echo_n "checking for $LD option to reload object files... " >&6; }
3666if ${lt_cv_ld_reload_flag+:} false; then :
3667  $as_echo_n "(cached) " >&6
3668else
3669  lt_cv_ld_reload_flag='-r'
3670fi
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
3672$as_echo "$lt_cv_ld_reload_flag" >&6; }
3673reload_flag=$lt_cv_ld_reload_flag
3674test -n "$reload_flag" && reload_flag=" $reload_flag"
3675
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
3677$as_echo_n "checking for BSD-compatible nm... " >&6; }
3678if ${lt_cv_path_NM+:} false; then :
3679  $as_echo_n "(cached) " >&6
3680else
3681  if test -n "$NM"; then
3682  # Let the user override the test.
3683  lt_cv_path_NM="$NM"
3684else
3685  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3686  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3687    test -z "$ac_dir" && ac_dir=.
3688    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3689    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3690      # Check to see if the nm accepts a BSD-compat flag.
3691      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3692      #   nm: unknown option "B" ignored
3693      # Tru64's nm complains that /dev/null is an invalid object file
3694      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3695	lt_cv_path_NM="$tmp_nm -B"
3696	break
3697      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3698	lt_cv_path_NM="$tmp_nm -p"
3699	break
3700      else
3701	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3702	continue # so that we can try to find one that supports BSD flags
3703      fi
3704    fi
3705  done
3706  IFS="$ac_save_ifs"
3707  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3708fi
3709fi
3710
3711NM="$lt_cv_path_NM"
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
3713$as_echo "$NM" >&6; }
3714
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3716$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3717if ${lt_cv_path_SED+:} false; then :
3718  $as_echo_n "(cached) " >&6
3719else
3720  # Loop through the user's path and test for sed and gsed.
3721# Then use that list of sed's as ones to test for truncation.
3722as_executable_p="test -f"
3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH
3725do
3726  IFS=$as_save_IFS
3727  test -z "$as_dir" && as_dir=.
3728  for ac_prog in sed gsed; do
3729    for ac_exec_ext in '' $ac_executable_extensions; do
3730      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3731        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3732      fi
3733    done
3734  done
3735done
3736
3737  # Create a temporary directory, and hook for its removal unless debugging.
3738$debug ||
3739{
3740  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3741  trap '{ (exit 1); exit 1; }' 1 2 13 15
3742}
3743
3744# Create a (secure) tmp directory for tmp files.
3745: ${TMPDIR=/tmp}
3746{
3747  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3748  test -n "$tmp" && test -d "$tmp"
3749}  ||
3750{
3751  tmp=$TMPDIR/sed$$-$RANDOM
3752  (umask 077 && mkdir $tmp)
3753} ||
3754{
3755   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3756   { (exit 1); exit 1; }
3757}
3758  _max=0
3759  _count=0
3760  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3761  # along with /bin/sed that truncates output.
3762  for _sed in $_sed_list /usr/xpg4/bin/sed; do
3763    test ! -f ${_sed} && break
3764    cat /dev/null > "$tmp/sed.in"
3765    _count=0
3766    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3767    # Check for GNU sed and select it if it is found.
3768    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3769      lt_cv_path_SED=${_sed}
3770      break
3771    fi
3772    while true; do
3773      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3774      mv "$tmp/sed.tmp" "$tmp/sed.in"
3775      cp "$tmp/sed.in" "$tmp/sed.nl"
3776      echo >>"$tmp/sed.nl"
3777      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3778      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3779      # 40000 chars as input seems more than enough
3780      test $_count -gt 10 && break
3781      _count=`expr $_count + 1`
3782      if test $_count -gt $_max; then
3783        _max=$_count
3784        lt_cv_path_SED=$_sed
3785      fi
3786    done
3787  done
3788  rm -rf "$tmp"
3789
3790fi
3791
3792if test "X$SED" != "X"; then
3793  lt_cv_path_SED=$SED
3794else
3795  SED=$lt_cv_path_SED
3796fi
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3798$as_echo "$SED" >&6; }
3799
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3801$as_echo_n "checking whether ln -s works... " >&6; }
3802LN_S=$as_ln_s
3803if test "$LN_S" = "ln -s"; then
3804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3805$as_echo "yes" >&6; }
3806else
3807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3808$as_echo "no, using $LN_S" >&6; }
3809fi
3810
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
3812$as_echo_n "checking how to recognise dependent libraries... " >&6; }
3813if ${lt_cv_deplibs_check_method+:} false; then :
3814  $as_echo_n "(cached) " >&6
3815else
3816  lt_cv_file_magic_cmd='$MAGIC_CMD'
3817lt_cv_file_magic_test_file=
3818lt_cv_deplibs_check_method='unknown'
3819# Need to set the preceding variable on all platforms that support
3820# interlibrary dependencies.
3821# 'none' -- dependencies not supported.
3822# `unknown' -- same as none, but documents that we really don't know.
3823# 'pass_all' -- all dependencies passed with no checks.
3824# 'test_compile' -- check by making test program.
3825# 'file_magic [[regex]]' -- check by looking for files in library path
3826# which responds to the $file_magic_cmd with a given egrep regex.
3827# If you have `file' or equivalent on your system and you're not sure
3828# whether `pass_all' will *always* work, you probably want this one.
3829
3830case $host_os in
3831aix4* | aix5*)
3832  lt_cv_deplibs_check_method=pass_all
3833  ;;
3834
3835beos*)
3836  lt_cv_deplibs_check_method=pass_all
3837  ;;
3838
3839bsdi4*)
3840  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3841  lt_cv_file_magic_cmd='/usr/bin/file -L'
3842  lt_cv_file_magic_test_file=/shlib/libc.so
3843  ;;
3844
3845cygwin* | mingw* | pw32*)
3846  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3847  lt_cv_file_magic_cmd='$OBJDUMP -f'
3848  ;;
3849
3850darwin* | rhapsody*)
3851  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3852  lt_cv_file_magic_cmd='/usr/bin/file -L'
3853  case "$host_os" in
3854  rhapsody* | darwin1.[012])
3855    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3856    ;;
3857  *) # Darwin 1.3 on
3858    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3859    ;;
3860  esac
3861  ;;
3862
3863freebsd*)
3864  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3865    case $host_cpu in
3866    i*86 )
3867      # Not sure whether the presence of OpenBSD here was a mistake.
3868      # Let's accept both of them until this is cleared up.
3869      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3870      lt_cv_file_magic_cmd=/usr/bin/file
3871      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3872      ;;
3873    esac
3874  else
3875    lt_cv_deplibs_check_method=pass_all
3876  fi
3877  ;;
3878
3879gnu*)
3880  lt_cv_deplibs_check_method=pass_all
3881  ;;
3882
3883hpux10.20*|hpux11*)
3884  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3885  lt_cv_file_magic_cmd=/usr/bin/file
3886  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3887  ;;
3888
3889irix5* | irix6* | nonstopux*)
3890  case $host_os in
3891  irix5* | nonstopux*)
3892    # this will be overridden with pass_all, but let us keep it just in case
3893    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3894    ;;
3895  *)
3896    case $LD in
3897    *-32|*"-32 ") libmagic=32-bit;;
3898    *-n32|*"-n32 ") libmagic=N32;;
3899    *-64|*"-64 ") libmagic=64-bit;;
3900    *) libmagic=never-match;;
3901    esac
3902    # this will be overridden with pass_all, but let us keep it just in case
3903    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3904    ;;
3905  esac
3906  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3907  lt_cv_deplibs_check_method=pass_all
3908  ;;
3909
3910# This must be Linux ELF.
3911linux-gnu*)
3912  case $host_cpu in
3913  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3914    lt_cv_deplibs_check_method=pass_all ;;
3915  *)
3916    # glibc up to 2.1.1 does not perform some relocations on ARM
3917    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3918  esac
3919  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3920  ;;
3921
3922netbsd*)
3923  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3924    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3925  else
3926    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3927  fi
3928  ;;
3929
3930newos6*)
3931  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3932  lt_cv_file_magic_cmd=/usr/bin/file
3933  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3934  ;;
3935
3936openbsd*)
3937  lt_cv_file_magic_cmd=/usr/bin/file
3938  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3939  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3940    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3941  else
3942    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3943  fi
3944  ;;
3945
3946osf3* | osf4* | osf5*)
3947  # this will be overridden with pass_all, but let us keep it just in case
3948  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3949  lt_cv_file_magic_test_file=/shlib/libc.so
3950  lt_cv_deplibs_check_method=pass_all
3951  ;;
3952
3953sco3.2v5*)
3954  lt_cv_deplibs_check_method=pass_all
3955  ;;
3956
3957solaris*)
3958  lt_cv_deplibs_check_method=pass_all
3959  lt_cv_file_magic_test_file=/lib/libc.so
3960  ;;
3961
3962sysv5uw[78]* | sysv4*uw2*)
3963  lt_cv_deplibs_check_method=pass_all
3964  ;;
3965
3966sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3967  case $host_vendor in
3968  motorola)
3969    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]'
3970    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3971    ;;
3972  ncr)
3973    lt_cv_deplibs_check_method=pass_all
3974    ;;
3975  sequent)
3976    lt_cv_file_magic_cmd='/bin/file'
3977    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3978    ;;
3979  sni)
3980    lt_cv_file_magic_cmd='/bin/file'
3981    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3982    lt_cv_file_magic_test_file=/lib/libc.so
3983    ;;
3984  siemens)
3985    lt_cv_deplibs_check_method=pass_all
3986    ;;
3987  esac
3988  ;;
3989esac
3990
3991fi
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
3993$as_echo "$lt_cv_deplibs_check_method" >&6; }
3994file_magic_cmd=$lt_cv_file_magic_cmd
3995deplibs_check_method=$lt_cv_deplibs_check_method
3996
3997
3998
3999
4000
4001
4002
4003# Check for command to grab the raw symbol name followed by C symbol from nm.
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output" >&5
4005$as_echo_n "checking command to parse $NM output... " >&6; }
4006if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4007  $as_echo_n "(cached) " >&6
4008else
4009
4010# These are sane defaults that work on at least a few old systems.
4011# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4012
4013# Character class describing NM global symbol codes.
4014symcode='[BCDEGRST]'
4015
4016# Regexp to match symbols that can be accessed directly from C.
4017sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4018
4019# Transform the above into a raw symbol and a C symbol.
4020symxfrm='\1 \2\3 \3'
4021
4022# Transform an extracted symbol line into a proper C declaration
4023lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4024
4025# Transform an extracted symbol line into symbol name and symbol address
4026lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4027
4028# Define system-specific variables.
4029case $host_os in
4030aix*)
4031  symcode='[BCDT]'
4032  ;;
4033cygwin* | mingw* | pw32*)
4034  symcode='[ABCDGISTW]'
4035  ;;
4036hpux*) # Its linker distinguishes data from code symbols
4037  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4038  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4039  ;;
4040irix* | nonstopux*)
4041  symcode='[BCDEGRST]'
4042  ;;
4043osf*)
4044  symcode='[BCDEGQRST]'
4045  ;;
4046solaris* | sysv5*)
4047  symcode='[BDT]'
4048  ;;
4049sysv4)
4050  symcode='[DFNSTU]'
4051  ;;
4052esac
4053
4054# Handle CRLF in mingw tool chain
4055opt_cr=
4056case $host_os in
4057mingw*)
4058  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4059  ;;
4060esac
4061
4062# If we're using GNU nm, then use its standard symbol codes.
4063if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4064  symcode='[ABCDGISTW]'
4065fi
4066
4067# Try without a prefix undercore, then with it.
4068for ac_symprfx in "" "_"; do
4069
4070  # Write the raw and C identifiers.
4071lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4072
4073  # Check to see that the pipe works correctly.
4074  pipe_works=no
4075  rm -f conftest*
4076  cat > conftest.$ac_ext <<EOF
4077#ifdef __cplusplus
4078extern "C" {
4079#endif
4080char nm_test_var;
4081void nm_test_func(){}
4082#ifdef __cplusplus
4083}
4084#endif
4085int main(){nm_test_var='a';nm_test_func();return(0);}
4086EOF
4087
4088  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4089  (eval $ac_compile) 2>&5
4090  ac_status=$?
4091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092  test $ac_status = 0; }; then
4093    # Now try to grab the symbols.
4094    nlist=conftest.nm
4095    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4096  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4097  ac_status=$?
4098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099  test $ac_status = 0; } && test -s "$nlist"; then
4100      # Try sorting and uniquifying the output.
4101      if sort "$nlist" | uniq > "$nlist"T; then
4102	mv -f "$nlist"T "$nlist"
4103      else
4104	rm -f "$nlist"T
4105      fi
4106
4107      # Make sure that we snagged all the symbols we need.
4108      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4109	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4110	  cat <<EOF > conftest.$ac_ext
4111#ifdef __cplusplus
4112extern "C" {
4113#endif
4114
4115EOF
4116	  # Now generate the symbol file.
4117	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4118
4119	  cat <<EOF >> conftest.$ac_ext
4120#if defined (__STDC__) && __STDC__
4121# define lt_ptr void *
4122#else
4123# define lt_ptr char *
4124# define const
4125#endif
4126
4127/* The mapping between symbol names and symbols. */
4128const struct {
4129  const char *name;
4130  lt_ptr address;
4131}
4132lt_preloaded_symbols[] =
4133{
4134EOF
4135	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4136	  cat <<\EOF >> conftest.$ac_ext
4137  {0, (lt_ptr) 0}
4138};
4139
4140#ifdef __cplusplus
4141}
4142#endif
4143EOF
4144	  # Now try linking the two files.
4145	  mv conftest.$ac_objext conftstm.$ac_objext
4146	  save_LIBS="$LIBS"
4147	  save_CFLAGS="$CFLAGS"
4148	  LIBS="conftstm.$ac_objext"
4149	  CFLAGS="$CFLAGS$no_builtin_flag"
4150	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4151  (eval $ac_link) 2>&5
4152  ac_status=$?
4153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154  test $ac_status = 0; } && test -s conftest$ac_exeext; then
4155	    pipe_works=yes
4156	  fi
4157	  LIBS="$save_LIBS"
4158	  CFLAGS="$save_CFLAGS"
4159	else
4160	  echo "cannot find nm_test_func in $nlist" >&5
4161	fi
4162      else
4163	echo "cannot find nm_test_var in $nlist" >&5
4164      fi
4165    else
4166      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4167    fi
4168  else
4169    echo "$progname: failed program was:" >&5
4170    cat conftest.$ac_ext >&5
4171  fi
4172  rm -f conftest* conftst*
4173
4174  # Do not use the global_symbol_pipe unless it works.
4175  if test "$pipe_works" = yes; then
4176    break
4177  else
4178    lt_cv_sys_global_symbol_pipe=
4179  fi
4180done
4181
4182fi
4183
4184global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4185if test -z "$lt_cv_sys_global_symbol_pipe"; then
4186  global_symbol_to_cdecl=
4187  global_symbol_to_c_name_address=
4188else
4189  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4190  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4191fi
4192if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4193then
4194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4195$as_echo "failed" >&6; }
4196else
4197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4198$as_echo "ok" >&6; }
4199fi
4200
4201for ac_header in dlfcn.h
4202do :
4203  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "
4204"
4205if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4206  cat >>confdefs.h <<_ACEOF
4207#define HAVE_DLFCN_H 1
4208_ACEOF
4209 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
4210
4211fi
4212
4213done
4214
4215
4216
4217
4218
4219
4220# Only perform the check for file, if the check method requires it
4221case $deplibs_check_method in
4222file_magic*)
4223  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4224    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
4225$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
4226if ${lt_cv_path_MAGIC_CMD+:} false; then :
4227  $as_echo_n "(cached) " >&6
4228else
4229  case $MAGIC_CMD in
4230  /*)
4231  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4232  ;;
4233  ?:/*)
4234  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4235  ;;
4236  *)
4237  ac_save_MAGIC_CMD="$MAGIC_CMD"
4238  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4239  ac_dummy="/usr/bin:$PATH"
4240  for ac_dir in $ac_dummy; do
4241    test -z "$ac_dir" && ac_dir=.
4242    if test -f $ac_dir/${ac_tool_prefix}file; then
4243      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4244      if test -n "$file_magic_test_file"; then
4245	case $deplibs_check_method in
4246	"file_magic "*)
4247	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4248	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4249	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4250	    egrep "$file_magic_regex" > /dev/null; then
4251	    :
4252	  else
4253	    cat <<EOF 1>&2
4254
4255*** Warning: the command libtool uses to detect shared libraries,
4256*** $file_magic_cmd, produces output that libtool cannot recognize.
4257*** The result is that libtool may fail to recognize shared libraries
4258*** as such.  This will affect the creation of libtool libraries that
4259*** depend on shared libraries, but programs linked with such libtool
4260*** libraries will work regardless of this problem.  Nevertheless, you
4261*** may want to report the problem to your system manager and/or to
4262*** bug-libtool@gnu.org
4263
4264EOF
4265	  fi ;;
4266	esac
4267      fi
4268      break
4269    fi
4270  done
4271  IFS="$ac_save_ifs"
4272  MAGIC_CMD="$ac_save_MAGIC_CMD"
4273  ;;
4274esac
4275fi
4276
4277MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4278if test -n "$MAGIC_CMD"; then
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
4280$as_echo "$MAGIC_CMD" >&6; }
4281else
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283$as_echo "no" >&6; }
4284fi
4285
4286if test -z "$lt_cv_path_MAGIC_CMD"; then
4287  if test -n "$ac_tool_prefix"; then
4288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
4289$as_echo_n "checking for file... " >&6; }
4290if ${lt_cv_path_MAGIC_CMD+:} false; then :
4291  $as_echo_n "(cached) " >&6
4292else
4293  case $MAGIC_CMD in
4294  /*)
4295  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4296  ;;
4297  ?:/*)
4298  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4299  ;;
4300  *)
4301  ac_save_MAGIC_CMD="$MAGIC_CMD"
4302  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4303  ac_dummy="/usr/bin:$PATH"
4304  for ac_dir in $ac_dummy; do
4305    test -z "$ac_dir" && ac_dir=.
4306    if test -f $ac_dir/file; then
4307      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4308      if test -n "$file_magic_test_file"; then
4309	case $deplibs_check_method in
4310	"file_magic "*)
4311	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4312	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4313	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4314	    egrep "$file_magic_regex" > /dev/null; then
4315	    :
4316	  else
4317	    cat <<EOF 1>&2
4318
4319*** Warning: the command libtool uses to detect shared libraries,
4320*** $file_magic_cmd, produces output that libtool cannot recognize.
4321*** The result is that libtool may fail to recognize shared libraries
4322*** as such.  This will affect the creation of libtool libraries that
4323*** depend on shared libraries, but programs linked with such libtool
4324*** libraries will work regardless of this problem.  Nevertheless, you
4325*** may want to report the problem to your system manager and/or to
4326*** bug-libtool@gnu.org
4327
4328EOF
4329	  fi ;;
4330	esac
4331      fi
4332      break
4333    fi
4334  done
4335  IFS="$ac_save_ifs"
4336  MAGIC_CMD="$ac_save_MAGIC_CMD"
4337  ;;
4338esac
4339fi
4340
4341MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4342if test -n "$MAGIC_CMD"; then
4343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
4344$as_echo "$MAGIC_CMD" >&6; }
4345else
4346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347$as_echo "no" >&6; }
4348fi
4349
4350  else
4351    MAGIC_CMD=:
4352  fi
4353fi
4354
4355  fi
4356  ;;
4357esac
4358
4359if test -n "$ac_tool_prefix"; then
4360  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4361set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363$as_echo_n "checking for $ac_word... " >&6; }
4364if ${ac_cv_prog_RANLIB+:} false; then :
4365  $as_echo_n "(cached) " >&6
4366else
4367  if test -n "$RANLIB"; then
4368  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4369else
4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH
4372do
4373  IFS=$as_save_IFS
4374  test -z "$as_dir" && as_dir=.
4375    for ac_exec_ext in '' $ac_executable_extensions; do
4376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379    break 2
4380  fi
4381done
4382  done
4383IFS=$as_save_IFS
4384
4385fi
4386fi
4387RANLIB=$ac_cv_prog_RANLIB
4388if test -n "$RANLIB"; then
4389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4390$as_echo "$RANLIB" >&6; }
4391else
4392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393$as_echo "no" >&6; }
4394fi
4395
4396
4397fi
4398if test -z "$ac_cv_prog_RANLIB"; then
4399  ac_ct_RANLIB=$RANLIB
4400  # Extract the first word of "ranlib", so it can be a program name with args.
4401set dummy ranlib; ac_word=$2
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403$as_echo_n "checking for $ac_word... " >&6; }
4404if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407  if test -n "$ac_ct_RANLIB"; then
4408  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4409else
4410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413  IFS=$as_save_IFS
4414  test -z "$as_dir" && as_dir=.
4415    for ac_exec_ext in '' $ac_executable_extensions; do
4416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417    ac_cv_prog_ac_ct_RANLIB="ranlib"
4418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419    break 2
4420  fi
4421done
4422  done
4423IFS=$as_save_IFS
4424
4425fi
4426fi
4427ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4428if test -n "$ac_ct_RANLIB"; then
4429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4430$as_echo "$ac_ct_RANLIB" >&6; }
4431else
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433$as_echo "no" >&6; }
4434fi
4435
4436  if test "x$ac_ct_RANLIB" = x; then
4437    RANLIB=":"
4438  else
4439    case $cross_compiling:$ac_tool_warned in
4440yes:)
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4443ac_tool_warned=yes ;;
4444esac
4445    RANLIB=$ac_ct_RANLIB
4446  fi
4447else
4448  RANLIB="$ac_cv_prog_RANLIB"
4449fi
4450
4451if test -n "$ac_tool_prefix"; then
4452  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4453set dummy ${ac_tool_prefix}strip; ac_word=$2
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455$as_echo_n "checking for $ac_word... " >&6; }
4456if ${ac_cv_prog_STRIP+:} false; then :
4457  $as_echo_n "(cached) " >&6
4458else
4459  if test -n "$STRIP"; then
4460  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4461else
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465  IFS=$as_save_IFS
4466  test -z "$as_dir" && as_dir=.
4467    for ac_exec_ext in '' $ac_executable_extensions; do
4468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471    break 2
4472  fi
4473done
4474  done
4475IFS=$as_save_IFS
4476
4477fi
4478fi
4479STRIP=$ac_cv_prog_STRIP
4480if test -n "$STRIP"; then
4481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4482$as_echo "$STRIP" >&6; }
4483else
4484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485$as_echo "no" >&6; }
4486fi
4487
4488
4489fi
4490if test -z "$ac_cv_prog_STRIP"; then
4491  ac_ct_STRIP=$STRIP
4492  # Extract the first word of "strip", so it can be a program name with args.
4493set dummy strip; ac_word=$2
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495$as_echo_n "checking for $ac_word... " >&6; }
4496if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  if test -n "$ac_ct_STRIP"; then
4500  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4501else
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505  IFS=$as_save_IFS
4506  test -z "$as_dir" && as_dir=.
4507    for ac_exec_ext in '' $ac_executable_extensions; do
4508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509    ac_cv_prog_ac_ct_STRIP="strip"
4510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511    break 2
4512  fi
4513done
4514  done
4515IFS=$as_save_IFS
4516
4517fi
4518fi
4519ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4520if test -n "$ac_ct_STRIP"; then
4521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4522$as_echo "$ac_ct_STRIP" >&6; }
4523else
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525$as_echo "no" >&6; }
4526fi
4527
4528  if test "x$ac_ct_STRIP" = x; then
4529    STRIP=":"
4530  else
4531    case $cross_compiling:$ac_tool_warned in
4532yes:)
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4535ac_tool_warned=yes ;;
4536esac
4537    STRIP=$ac_ct_STRIP
4538  fi
4539else
4540  STRIP="$ac_cv_prog_STRIP"
4541fi
4542
4543
4544enable_dlopen=no
4545enable_win32_dll=no
4546
4547# Check whether --enable-libtool-lock was given.
4548if test "${enable_libtool_lock+set}" = set; then :
4549  enableval=$enable_libtool_lock;
4550fi
4551
4552test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4553
4554# Some flags need to be propagated to the compiler or linker for good
4555# libtool support.
4556case $host in
4557*-*-irix6*)
4558  # Find out which ABI we are using.
4559  echo '#line 4559 "configure"' > conftest.$ac_ext
4560  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4561  (eval $ac_compile) 2>&5
4562  ac_status=$?
4563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4564  test $ac_status = 0; }; then
4565    case `/usr/bin/file conftest.$ac_objext` in
4566    *32-bit*)
4567      LD="${LD-ld} -32"
4568      ;;
4569    *N32*)
4570      LD="${LD-ld} -n32"
4571      ;;
4572    *64-bit*)
4573      LD="${LD-ld} -64"
4574      ;;
4575    esac
4576  fi
4577  rm -rf conftest*
4578  ;;
4579
4580*-*-sco3.2v5*)
4581  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4582  SAVE_CFLAGS="$CFLAGS"
4583  CFLAGS="$CFLAGS -belf"
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4585$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4586if ${lt_cv_cc_needs_belf+:} false; then :
4587  $as_echo_n "(cached) " >&6
4588else
4589
4590     ac_ext=c
4591ac_cpp='$CPP $CPPFLAGS'
4592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594ac_compiler_gnu=$ac_cv_c_compiler_gnu
4595
4596     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h.  */
4598
4599int
4600main ()
4601{
4602
4603  ;
4604  return 0;
4605}
4606_ACEOF
4607if ac_fn_c_try_link "$LINENO"; then :
4608  lt_cv_cc_needs_belf=yes
4609else
4610  lt_cv_cc_needs_belf=no
4611fi
4612rm -f core conftest.err conftest.$ac_objext \
4613    conftest$ac_exeext conftest.$ac_ext
4614     ac_ext=c
4615ac_cpp='$CPP $CPPFLAGS'
4616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4622$as_echo "$lt_cv_cc_needs_belf" >&6; }
4623  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4624    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4625    CFLAGS="$SAVE_CFLAGS"
4626  fi
4627  ;;
4628
4629
4630esac
4631
4632# Sed substitution that helps us do robust quoting.  It backslashifies
4633# metacharacters that are still active within double-quoted strings.
4634Xsed='sed -e s/^X//'
4635sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4636
4637# Same as above, but do not quote variable references.
4638double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4639
4640# Sed substitution to delay expansion of an escaped shell variable in a
4641# double_quote_subst'ed string.
4642delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4643
4644# Constants:
4645rm="rm -f"
4646
4647# Global variables:
4648default_ofile=libtool
4649can_build_shared=yes
4650
4651# All known linkers require a `.a' archive for static linking (except M$VC,
4652# which needs '.lib').
4653libext=a
4654ltmain="$ac_aux_dir/ltmain.sh"
4655ofile="$default_ofile"
4656with_gnu_ld="$lt_cv_prog_gnu_ld"
4657need_locks="$enable_libtool_lock"
4658
4659old_CC="$CC"
4660old_CFLAGS="$CFLAGS"
4661
4662# Set sane defaults for various variables
4663test -z "$AR" && AR=ar
4664test -z "$AR_FLAGS" && AR_FLAGS=cru
4665test -z "$AS" && AS=as
4666test -z "$CC" && CC=cc
4667test -z "$DLLTOOL" && DLLTOOL=dlltool
4668test -z "$LD" && LD=ld
4669test -z "$LN_S" && LN_S="ln -s"
4670test -z "$MAGIC_CMD" && MAGIC_CMD=file
4671test -z "$NM" && NM=nm
4672test -z "$OBJDUMP" && OBJDUMP=objdump
4673test -z "$RANLIB" && RANLIB=:
4674test -z "$STRIP" && STRIP=:
4675test -z "$ac_objext" && ac_objext=o
4676
4677if test x"$host" != x"$build"; then
4678  ac_tool_prefix=${host_alias}-
4679else
4680  ac_tool_prefix=
4681fi
4682
4683# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4684case $host_os in
4685linux-gnu*) ;;
4686linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4687esac
4688
4689case $host_os in
4690aix3*)
4691  # AIX sometimes has problems with the GCC collect2 program.  For some
4692  # reason, if we set the COLLECT_NAMES environment variable, the problems
4693  # vanish in a puff of smoke.
4694  if test "X${COLLECT_NAMES+set}" != Xset; then
4695    COLLECT_NAMES=
4696    export COLLECT_NAMES
4697  fi
4698  ;;
4699esac
4700
4701# Determine commands to create old-style static archives.
4702old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4703old_postinstall_cmds='chmod 644 $oldlib'
4704old_postuninstall_cmds=
4705
4706if test -n "$RANLIB"; then
4707  case $host_os in
4708  openbsd*)
4709    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4710    ;;
4711  *)
4712    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4713    ;;
4714  esac
4715  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4716fi
4717
4718# Allow CC to be a program name with arguments.
4719set dummy $CC
4720compiler="$2"
4721
4722## FIXME: this should be a separate macro
4723##
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
4725$as_echo_n "checking for objdir... " >&6; }
4726rm -f .libs 2>/dev/null
4727mkdir .libs 2>/dev/null
4728if test -d .libs; then
4729  objdir=.libs
4730else
4731  # MS-DOS does not allow filenames that begin with a dot.
4732  objdir=_libs
4733fi
4734rmdir .libs 2>/dev/null
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $objdir" >&5
4736$as_echo "$objdir" >&6; }
4737##
4738## END FIXME
4739
4740
4741## FIXME: this should be a separate macro
4742##
4743
4744# Check whether --with-pic was given.
4745if test "${with_pic+set}" = set; then :
4746  withval=$with_pic; pic_mode="$withval"
4747else
4748  pic_mode=default
4749fi
4750
4751test -z "$pic_mode" && pic_mode=default
4752
4753# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4754# in isolation, and that seeing it set (from the cache) indicates that
4755# the associated values are set (in the cache) correctly too.
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
4757$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
4758if ${lt_cv_prog_cc_pic+:} false; then :
4759  $as_echo_n "(cached) " >&6
4760else
4761   lt_cv_prog_cc_pic=
4762  lt_cv_prog_cc_shlib=
4763  lt_cv_prog_cc_wl=
4764  lt_cv_prog_cc_static=
4765  lt_cv_prog_cc_no_builtin=
4766  lt_cv_prog_cc_can_build_shared=$can_build_shared
4767
4768  if test "$GCC" = yes; then
4769    lt_cv_prog_cc_wl='-Wl,'
4770    lt_cv_prog_cc_static='-static'
4771
4772    case $host_os in
4773    aix*)
4774      # Below there is a dirty hack to force normal static linking with -ldl
4775      # The problem is because libdl dynamically linked with both libc and
4776      # libC (AIX C++ library), which obviously doesn't included in libraries
4777      # list by gcc. This cause undefined symbols with -static flags.
4778      # This hack allows C programs to be linked with "-static -ldl", but
4779      # not sure about C++ programs.
4780      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4781      ;;
4782    amigaos*)
4783      # FIXME: we need at least 68020 code to build shared libraries, but
4784      # adding the `-m68020' flag to GCC prevents building anything better,
4785      # like `-m68040'.
4786      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4787      ;;
4788    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4789      # PIC is the default for these OSes.
4790      ;;
4791    darwin* | rhapsody*)
4792      # PIC is the default on this platform
4793      # Common symbols not allowed in MH_DYLIB files
4794      lt_cv_prog_cc_pic='-fno-common'
4795      ;;
4796    cygwin* | mingw* | pw32* | os2*)
4797      # This hack is so that the source file can tell whether it is being
4798      # built for inclusion in a dll (and should export symbols for example).
4799      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4800      ;;
4801    sysv4*MP*)
4802      if test -d /usr/nec; then
4803	 lt_cv_prog_cc_pic=-Kconform_pic
4804      fi
4805      ;;
4806    *)
4807      lt_cv_prog_cc_pic='-fPIC'
4808      ;;
4809    esac
4810  else
4811    # PORTME Check for PIC flags for the system compiler.
4812    case $host_os in
4813    aix3* | aix4* | aix5*)
4814      lt_cv_prog_cc_wl='-Wl,'
4815      # All AIX code is PIC.
4816      if test "$host_cpu" = ia64; then
4817	# AIX 5 now supports IA64 processor
4818	lt_cv_prog_cc_static='-Bstatic'
4819      else
4820	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4821      fi
4822      ;;
4823
4824    hpux9* | hpux10* | hpux11*)
4825      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4826      lt_cv_prog_cc_wl='-Wl,'
4827      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4828      lt_cv_prog_cc_pic='+Z'
4829      ;;
4830
4831    irix5* | irix6* | nonstopux*)
4832      lt_cv_prog_cc_wl='-Wl,'
4833      lt_cv_prog_cc_static='-non_shared'
4834      # PIC (with -KPIC) is the default.
4835      ;;
4836
4837    cygwin* | mingw* | pw32* | os2*)
4838      # This hack is so that the source file can tell whether it is being
4839      # built for inclusion in a dll (and should export symbols for example).
4840      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4841      ;;
4842
4843    newsos6)
4844      lt_cv_prog_cc_pic='-KPIC'
4845      lt_cv_prog_cc_static='-Bstatic'
4846      ;;
4847
4848    osf3* | osf4* | osf5*)
4849      # All OSF/1 code is PIC.
4850      lt_cv_prog_cc_wl='-Wl,'
4851      lt_cv_prog_cc_static='-non_shared'
4852      ;;
4853
4854    sco3.2v5*)
4855      lt_cv_prog_cc_pic='-Kpic'
4856      lt_cv_prog_cc_static='-dn'
4857      lt_cv_prog_cc_shlib='-belf'
4858      ;;
4859
4860    solaris*)
4861      lt_cv_prog_cc_pic='-KPIC'
4862      lt_cv_prog_cc_static='-Bstatic'
4863      lt_cv_prog_cc_wl='-Wl,'
4864      ;;
4865
4866    sunos4*)
4867      lt_cv_prog_cc_pic='-PIC'
4868      lt_cv_prog_cc_static='-Bstatic'
4869      lt_cv_prog_cc_wl='-Qoption ld '
4870      ;;
4871
4872    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4873      lt_cv_prog_cc_pic='-KPIC'
4874      lt_cv_prog_cc_static='-Bstatic'
4875      lt_cv_prog_cc_wl='-Wl,'
4876      ;;
4877
4878    uts4*)
4879      lt_cv_prog_cc_pic='-pic'
4880      lt_cv_prog_cc_static='-Bstatic'
4881      ;;
4882
4883    sysv4*MP*)
4884      if test -d /usr/nec ;then
4885	lt_cv_prog_cc_pic='-Kconform_pic'
4886	lt_cv_prog_cc_static='-Bstatic'
4887      fi
4888      ;;
4889
4890    *)
4891      lt_cv_prog_cc_can_build_shared=no
4892      ;;
4893    esac
4894  fi
4895
4896fi
4897
4898if test -z "$lt_cv_prog_cc_pic"; then
4899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4900$as_echo "none" >&6; }
4901else
4902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_cc_pic" >&5
4903$as_echo "$lt_cv_prog_cc_pic" >&6; }
4904
4905  # Check to make sure the pic_flag actually works.
4906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4907$as_echo_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... " >&6; }
4908  if ${lt_cv_prog_cc_pic_works+:} false; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911      save_CFLAGS="$CFLAGS"
4912    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4913    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h.  */
4915
4916int
4917main ()
4918{
4919
4920  ;
4921  return 0;
4922}
4923_ACEOF
4924if ac_fn_c_try_compile "$LINENO"; then :
4925        case $host_os in
4926      hpux9* | hpux10* | hpux11*)
4927	# On HP-UX, both CC and GCC only warn that PIC is supported... then
4928	# they create non-PIC objects.  So, if there were any warnings, we
4929	# assume that PIC is not supported.
4930	if test -s conftest.err; then
4931	  lt_cv_prog_cc_pic_works=no
4932	else
4933	  lt_cv_prog_cc_pic_works=yes
4934	fi
4935	;;
4936      *)
4937	lt_cv_prog_cc_pic_works=yes
4938	;;
4939      esac
4940
4941else
4942        lt_cv_prog_cc_pic_works=no
4943
4944fi
4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946    CFLAGS="$save_CFLAGS"
4947
4948fi
4949
4950
4951  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4952    lt_cv_prog_cc_pic=
4953    lt_cv_prog_cc_can_build_shared=no
4954  else
4955    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4956  fi
4957
4958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_cc_pic_works" >&5
4959$as_echo "$lt_cv_prog_cc_pic_works" >&6; }
4960fi
4961##
4962## END FIXME
4963
4964# Check for any special shared library compilation flags.
4965if test -n "$lt_cv_prog_cc_shlib"; then
4966  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4967$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4968  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
4969  else
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4971$as_echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4972    lt_cv_prog_cc_can_build_shared=no
4973  fi
4974fi
4975
4976## FIXME: this should be a separate macro
4977##
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4979$as_echo_n "checking if $compiler static flag $lt_cv_prog_cc_static works... " >&6; }
4980if ${lt_cv_prog_cc_static_works+:} false; then :
4981  $as_echo_n "(cached) " >&6
4982else
4983    lt_cv_prog_cc_static_works=no
4984  save_LDFLAGS="$LDFLAGS"
4985  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987/* end confdefs.h.  */
4988
4989int
4990main ()
4991{
4992
4993  ;
4994  return 0;
4995}
4996_ACEOF
4997if ac_fn_c_try_link "$LINENO"; then :
4998  lt_cv_prog_cc_static_works=yes
4999fi
5000rm -f core conftest.err conftest.$ac_objext \
5001    conftest$ac_exeext conftest.$ac_ext
5002  LDFLAGS="$save_LDFLAGS"
5003
5004fi
5005
5006
5007# Belt *and* braces to stop my trousers falling down:
5008test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_cc_static_works" >&5
5010$as_echo "$lt_cv_prog_cc_static_works" >&6; }
5011
5012pic_flag="$lt_cv_prog_cc_pic"
5013special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5014wl="$lt_cv_prog_cc_wl"
5015link_static_flag="$lt_cv_prog_cc_static"
5016no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5017can_build_shared="$lt_cv_prog_cc_can_build_shared"
5018##
5019## END FIXME
5020
5021
5022## FIXME: this should be a separate macro
5023##
5024# Check to see if options -o and -c are simultaneously supported by compiler
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
5026$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
5027if ${lt_cv_compiler_c_o+:} false; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030
5031$rm -r conftest 2>/dev/null
5032mkdir conftest
5033cd conftest
5034echo "int some_variable = 0;" > conftest.$ac_ext
5035mkdir out
5036# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5037# that will create temporary files in the current directory regardless of
5038# the output directory.  Thus, making CWD read-only will cause this test
5039# to fail, enabling locking or at least warning the user not to do parallel
5040# builds.
5041chmod -w .
5042save_CFLAGS="$CFLAGS"
5043CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5044compiler_c_o=no
5045if { (eval echo configure:5045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5046  # The compiler can only warn and ignore the option if not recognized
5047  # So say no if there are warnings
5048  if test -s out/conftest.err; then
5049    lt_cv_compiler_c_o=no
5050  else
5051    lt_cv_compiler_c_o=yes
5052  fi
5053else
5054  # Append any errors to the config.log.
5055  cat out/conftest.err 1>&5
5056  lt_cv_compiler_c_o=no
5057fi
5058CFLAGS="$save_CFLAGS"
5059chmod u+w .
5060$rm conftest* out/*
5061rmdir out
5062cd ..
5063rmdir conftest
5064$rm -r conftest 2>/dev/null
5065
5066fi
5067
5068compiler_c_o=$lt_cv_compiler_c_o
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_c_o" >&5
5070$as_echo "$compiler_c_o" >&6; }
5071
5072if test x"$compiler_c_o" = x"yes"; then
5073  # Check to see if we can write to a .lo
5074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.lo" >&5
5075$as_echo_n "checking if $compiler supports -c -o file.lo... " >&6; }
5076  if ${lt_cv_compiler_o_lo+:} false; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079
5080  lt_cv_compiler_o_lo=no
5081  save_CFLAGS="$CFLAGS"
5082  CFLAGS="$CFLAGS -c -o conftest.lo"
5083  save_objext="$ac_objext"
5084  ac_objext=lo
5085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h.  */
5087
5088int
5089main ()
5090{
5091int some_variable = 0;
5092  ;
5093  return 0;
5094}
5095_ACEOF
5096if ac_fn_c_try_compile "$LINENO"; then :
5097      # The compiler can only warn and ignore the option if not recognized
5098    # So say no if there are warnings
5099    if test -s conftest.err; then
5100      lt_cv_compiler_o_lo=no
5101    else
5102      lt_cv_compiler_o_lo=yes
5103    fi
5104
5105fi
5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107  ac_objext="$save_objext"
5108  CFLAGS="$save_CFLAGS"
5109
5110fi
5111
5112  compiler_o_lo=$lt_cv_compiler_o_lo
5113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_o_lo" >&5
5114$as_echo "$compiler_o_lo" >&6; }
5115else
5116  compiler_o_lo=no
5117fi
5118##
5119## END FIXME
5120
5121## FIXME: this should be a separate macro
5122##
5123# Check to see if we can do hard links to lock some files if needed
5124hard_links="nottested"
5125if test "$compiler_c_o" = no && test "$need_locks" != no; then
5126  # do not overwrite the value of need_locks provided by the user
5127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
5128$as_echo_n "checking if we can lock with hard links... " >&6; }
5129  hard_links=yes
5130  $rm conftest*
5131  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5132  touch conftest.a
5133  ln conftest.a conftest.b 2>&5 || hard_links=no
5134  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
5136$as_echo "$hard_links" >&6; }
5137  if test "$hard_links" = no; then
5138    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5139$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5140    need_locks=warn
5141  fi
5142else
5143  need_locks=no
5144fi
5145##
5146## END FIXME
5147
5148## FIXME: this should be a separate macro
5149##
5150if test "$GCC" = yes; then
5151  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5153$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
5154  echo "int some_variable = 0;" > conftest.$ac_ext
5155  save_CFLAGS="$CFLAGS"
5156  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5157  compiler_rtti_exceptions=no
5158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159/* end confdefs.h.  */
5160
5161int
5162main ()
5163{
5164int some_variable = 0;
5165  ;
5166  return 0;
5167}
5168_ACEOF
5169if ac_fn_c_try_compile "$LINENO"; then :
5170      # The compiler can only warn and ignore the option if not recognized
5171    # So say no if there are warnings
5172    if test -s conftest.err; then
5173      compiler_rtti_exceptions=no
5174    else
5175      compiler_rtti_exceptions=yes
5176    fi
5177
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180  CFLAGS="$save_CFLAGS"
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_rtti_exceptions" >&5
5182$as_echo "$compiler_rtti_exceptions" >&6; }
5183
5184  if test "$compiler_rtti_exceptions" = "yes"; then
5185    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5186  else
5187    no_builtin_flag=' -fno-builtin'
5188  fi
5189fi
5190##
5191## END FIXME
5192
5193## FIXME: this should be a separate macro
5194##
5195# See if the linker supports building shared libraries.
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker ($LD) supports shared libraries" >&5
5197$as_echo_n "checking whether the linker ($LD) supports shared libraries... " >&6; }
5198
5199allow_undefined_flag=
5200no_undefined_flag=
5201need_lib_prefix=unknown
5202need_version=unknown
5203# when you set need_version to no, make sure it does not cause -set_version
5204# flags to be left without arguments
5205archive_cmds=
5206archive_expsym_cmds=
5207old_archive_from_new_cmds=
5208old_archive_from_expsyms_cmds=
5209export_dynamic_flag_spec=
5210whole_archive_flag_spec=
5211thread_safe_flag_spec=
5212hardcode_into_libs=no
5213hardcode_libdir_flag_spec=
5214hardcode_libdir_separator=
5215hardcode_direct=no
5216hardcode_minus_L=no
5217hardcode_shlibpath_var=unsupported
5218runpath_var=
5219link_all_deplibs=unknown
5220always_export_symbols=no
5221export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5222# include_expsyms should be a list of space-separated symbols to be *always*
5223# included in the symbol list
5224include_expsyms=
5225# exclude_expsyms can be an egrep regular expression of symbols to exclude
5226# it will be wrapped by ` (' and `)$', so one must not match beginning or
5227# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5228# as well as any symbol that contains `d'.
5229exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5230# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5231# platforms (ab)use it in PIC code, but their linkers get confused if
5232# the symbol is explicitly referenced.  Since portable code cannot
5233# rely on this symbol name, it's probably fine to never include it in
5234# preloaded symbol tables.
5235extract_expsyms_cmds=
5236
5237case $host_os in
5238cygwin* | mingw* | pw32*)
5239  # FIXME: the MSVC++ port hasn't been tested in a loooong time
5240  # When not using gcc, we currently assume that we are using
5241  # Microsoft Visual C++.
5242  if test "$GCC" != yes; then
5243    with_gnu_ld=no
5244  fi
5245  ;;
5246openbsd*)
5247  with_gnu_ld=no
5248  ;;
5249esac
5250
5251ld_shlibs=yes
5252if test "$with_gnu_ld" = yes; then
5253  # If archive_cmds runs LD, not CC, wlarc should be empty
5254  wlarc='${wl}'
5255
5256  # See if GNU ld supports shared libraries.
5257  case $host_os in
5258  aix3* | aix4* | aix5*)
5259    # On AIX, the GNU linker is very broken
5260    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5261    ld_shlibs=no
5262    cat <<EOF 1>&2
5263
5264*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5265*** to be unable to reliably create shared libraries on AIX.
5266*** Therefore, libtool is disabling shared libraries support.  If you
5267*** really care for shared libraries, you may want to modify your PATH
5268*** so that a non-GNU linker is found, and then restart.
5269
5270EOF
5271    ;;
5272
5273  amigaos*)
5274    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)'
5275    hardcode_libdir_flag_spec='-L$libdir'
5276    hardcode_minus_L=yes
5277
5278    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5279    # that the semantics of dynamic libraries on AmigaOS, at least up
5280    # to version 4, is to share data among multiple programs linked
5281    # with the same dynamic library.  Since this doesn't match the
5282    # behavior of shared libraries on other platforms, we can use
5283    # them.
5284    ld_shlibs=no
5285    ;;
5286
5287  beos*)
5288    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5289      allow_undefined_flag=unsupported
5290      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5291      # support --undefined.  This deserves some investigation.  FIXME
5292      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5293    else
5294      ld_shlibs=no
5295    fi
5296    ;;
5297
5298  cygwin* | mingw* | pw32*)
5299    # hardcode_libdir_flag_spec is actually meaningless, as there is
5300    # no search path for DLLs.
5301    hardcode_libdir_flag_spec='-L$libdir'
5302    allow_undefined_flag=unsupported
5303    always_export_symbols=yes
5304
5305    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5306      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5307      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5308      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5309      else $CC -o impgen impgen.c ; fi)~
5310      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5311
5312    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5313
5314    # cygwin and mingw dlls have different entry points and sets of symbols
5315    # to exclude.
5316    # FIXME: what about values for MSVC?
5317    dll_entry=__cygwin_dll_entry@12
5318    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5319    case $host_os in
5320    mingw*)
5321      # mingw values
5322      dll_entry=_DllMainCRTStartup@12
5323      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5324      ;;
5325    esac
5326
5327    # mingw and cygwin differ, and it's simplest to just exclude the union
5328    # of the two symbol sets.
5329    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5330
5331    # recent cygwin and mingw systems supply a stub DllMain which the user
5332    # can override, but on older systems we have to supply one (in ltdll.c)
5333    if test "x$lt_cv_need_dllmain" = "xyes"; then
5334      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5335      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5336	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5337    else
5338      ltdll_obj=
5339      ltdll_cmds=
5340    fi
5341
5342    # Extract the symbol export list from an `--export-all' def file,
5343    # then regenerate the def file from the symbol export list, so that
5344    # the compiled dll only exports the symbol export list.
5345    # Be careful not to strip the DATA tag left be newer dlltools.
5346    export_symbols_cmds="$ltdll_cmds"'
5347      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5348      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5349
5350    # If the export-symbols file already is a .def file (1st line
5351    # is EXPORTS), use it as is.
5352    # If DATA tags from a recent dlltool are present, honour them!
5353    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5354	cp $export_symbols $output_objdir/$soname-def;
5355      else
5356	echo EXPORTS > $output_objdir/$soname-def;
5357	_lt_hint=1;
5358	cat $export_symbols | while read symbol; do
5359	 set dummy \$symbol;
5360	 case \$# in
5361	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5362	   4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5363	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5364	 esac;
5365	 _lt_hint=`expr 1 + \$_lt_hint`;
5366	done;
5367      fi~
5368      '"$ltdll_cmds"'
5369      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5370      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5371      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5372      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5373      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5374    ;;
5375
5376  netbsd*)
5377    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5378      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5379      wlarc=
5380    else
5381      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5382      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5383    fi
5384    ;;
5385
5386  solaris* | sysv5*)
5387    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5388      ld_shlibs=no
5389      cat <<EOF 1>&2
5390
5391*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5392*** create shared libraries on Solaris systems.  Therefore, libtool
5393*** is disabling shared libraries support.  We urge you to upgrade GNU
5394*** binutils to release 2.9.1 or newer.  Another option is to modify
5395*** your PATH or compiler configuration so that the native linker is
5396*** used, and then restart.
5397
5398EOF
5399    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5400      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5401      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5402    else
5403      ld_shlibs=no
5404    fi
5405    ;;
5406
5407  sunos4*)
5408    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5409    wlarc=
5410    hardcode_direct=yes
5411    hardcode_shlibpath_var=no
5412    ;;
5413
5414  *)
5415    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5416      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5417      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5418    else
5419      ld_shlibs=no
5420    fi
5421    ;;
5422  esac
5423
5424  if test "$ld_shlibs" = yes; then
5425    runpath_var=LD_RUN_PATH
5426    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5427    export_dynamic_flag_spec='${wl}--export-dynamic'
5428    case $host_os in
5429    cygwin* | mingw* | pw32*)
5430      # dlltool doesn't understand --whole-archive et. al.
5431      whole_archive_flag_spec=
5432      ;;
5433    *)
5434      # ancient GNU ld didn't support --whole-archive et. al.
5435      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5436	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5437      else
5438	whole_archive_flag_spec=
5439      fi
5440      ;;
5441    esac
5442  fi
5443else
5444  # PORTME fill in a description of your system's linker (not GNU ld)
5445  case $host_os in
5446  aix3*)
5447    allow_undefined_flag=unsupported
5448    always_export_symbols=yes
5449    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'
5450    # Note: this linker hardcodes the directories in LIBPATH if there
5451    # are no directories specified by -L.
5452    hardcode_minus_L=yes
5453    if test "$GCC" = yes && test -z "$link_static_flag"; then
5454      # Neither direct hardcoding nor static linking is supported with a
5455      # broken collect2.
5456      hardcode_direct=unsupported
5457    fi
5458    ;;
5459
5460  aix4* | aix5*)
5461    if test "$host_cpu" = ia64; then
5462      # On IA64, the linker does run time linking by default, so we don't
5463      # have to do anything special.
5464      aix_use_runtimelinking=no
5465      exp_sym_flag='-Bexport'
5466      no_entry_flag=""
5467    else
5468      aix_use_runtimelinking=no
5469
5470      # Test if we are trying to use run time linking or normal
5471      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5472      # need to do runtime linking.
5473      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5474	for ld_flag in $LDFLAGS; do
5475	  case $ld_flag in
5476	  *-brtl*)
5477	    aix_use_runtimelinking=yes
5478	    break
5479	  ;;
5480	  esac
5481	done
5482      esac
5483
5484      exp_sym_flag='-bexport'
5485      no_entry_flag='-bnoentry'
5486    fi
5487
5488    # When large executables or shared objects are built, AIX ld can
5489    # have problems creating the table of contents.  If linking a library
5490    # or program results in "error TOC overflow" add -mminimal-toc to
5491    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5492    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5493
5494    hardcode_direct=yes
5495    archive_cmds=''
5496    hardcode_libdir_separator=':'
5497    if test "$GCC" = yes; then
5498      case $host_os in aix4.[012]|aix4.[012].*)
5499	collect2name=`${CC} -print-prog-name=collect2`
5500	if test -f "$collect2name" && \
5501	  strings "$collect2name" | grep resolve_lib_name >/dev/null
5502	then
5503	  # We have reworked collect2
5504	  hardcode_direct=yes
5505	else
5506	  # We have old collect2
5507	  hardcode_direct=unsupported
5508	  # It fails to find uninstalled libraries when the uninstalled
5509	  # path is not listed in the libpath.  Setting hardcode_minus_L
5510	  # to unsupported forces relinking
5511	  hardcode_minus_L=yes
5512	  hardcode_libdir_flag_spec='-L$libdir'
5513	  hardcode_libdir_separator=
5514	fi
5515      esac
5516
5517      shared_flag='-shared'
5518    else
5519      # not using gcc
5520      if test "$host_cpu" = ia64; then
5521	shared_flag='${wl}-G'
5522      else
5523	if test "$aix_use_runtimelinking" = yes; then
5524	  shared_flag='${wl}-G'
5525	else
5526	  shared_flag='${wl}-bM:SRE'
5527	fi
5528      fi
5529    fi
5530
5531    # It seems that -bexpall can do strange things, so it is better to
5532    # generate a list of symbols to export.
5533    always_export_symbols=yes
5534    if test "$aix_use_runtimelinking" = yes; then
5535      # Warning - without using the other runtime loading flags (-brtl),
5536      # -berok will link without error, but may produce a broken library.
5537      allow_undefined_flag='-berok'
5538      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5539      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5540    else
5541      if test "$host_cpu" = ia64; then
5542	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5543	allow_undefined_flag="-z nodefs"
5544	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5545      else
5546	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5547	# Warning - without using the other run time loading flags,
5548	# -berok will link without error, but may produce a broken library.
5549	allow_undefined_flag='${wl}-berok'
5550	# This is a bit strange, but is similar to how AIX traditionally builds
5551	# it's shared libraries.
5552	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5553      fi
5554    fi
5555    ;;
5556
5557  amigaos*)
5558    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)'
5559    hardcode_libdir_flag_spec='-L$libdir'
5560    hardcode_minus_L=yes
5561    # see comment about different semantics on the GNU ld section
5562    ld_shlibs=no
5563    ;;
5564
5565  cygwin* | mingw* | pw32*)
5566    # When not using gcc, we currently assume that we are using
5567    # Microsoft Visual C++.
5568    # hardcode_libdir_flag_spec is actually meaningless, as there is
5569    # no search path for DLLs.
5570    hardcode_libdir_flag_spec=' '
5571    allow_undefined_flag=unsupported
5572    # Tell ltmain to make .lib files, not .a files.
5573    libext=lib
5574    # FIXME: Setting linknames here is a bad hack.
5575    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5576    # The linker will automatically build a .lib file if we build a DLL.
5577    old_archive_from_new_cmds='true'
5578    # FIXME: Should let the user specify the lib program.
5579    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5580    fix_srcfile_path='`cygpath -w "$srcfile"`'
5581    ;;
5582
5583  darwin* | rhapsody*)
5584    case "$host_os" in
5585    rhapsody* | darwin1.[012])
5586      allow_undefined_flag='-undefined suppress'
5587      ;;
5588    *) # Darwin 1.3 on
5589      allow_undefined_flag='-flat_namespace -undefined suppress'
5590      ;;
5591    esac
5592    # FIXME: Relying on posixy $() will cause problems for
5593    #        cross-compilation, but unfortunately the echo tests do not
5594    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5595    #	     `"' quotes if we put them in here... so don't!
5596    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5597    # We need to add '_' to the symbols in $export_symbols first
5598    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5599    hardcode_direct=yes
5600    hardcode_shlibpath_var=no
5601    whole_archive_flag_spec='-all_load $convenience'
5602    ;;
5603
5604  freebsd1*)
5605    ld_shlibs=no
5606    ;;
5607
5608  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5609  # support.  Future versions do this automatically, but an explicit c++rt0.o
5610  # does not break anything, and helps significantly (at the cost of a little
5611  # extra space).
5612  freebsd2.2*)
5613    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5614    hardcode_libdir_flag_spec='-R$libdir'
5615    hardcode_direct=yes
5616    hardcode_shlibpath_var=no
5617    ;;
5618
5619  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5620  freebsd2*)
5621    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5622    hardcode_direct=yes
5623    hardcode_minus_L=yes
5624    hardcode_shlibpath_var=no
5625    ;;
5626
5627  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5628  freebsd*)
5629    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5630    hardcode_libdir_flag_spec='-R$libdir'
5631    hardcode_direct=yes
5632    hardcode_shlibpath_var=no
5633    ;;
5634
5635  hpux9* | hpux10* | hpux11*)
5636    case $host_os in
5637    hpux9*) 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' ;;
5638    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5639    esac
5640    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5641    hardcode_libdir_separator=:
5642    hardcode_direct=yes
5643    hardcode_minus_L=yes # Not in the search PATH, but as the default
5644			 # location of the library.
5645    export_dynamic_flag_spec='${wl}-E'
5646    ;;
5647
5648  irix5* | irix6* | nonstopux*)
5649    if test "$GCC" = yes; then
5650      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5651      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5652    else
5653      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5654      hardcode_libdir_flag_spec='-rpath $libdir'
5655    fi
5656    hardcode_libdir_separator=:
5657    link_all_deplibs=yes
5658    ;;
5659
5660  netbsd*)
5661    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5662      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5663    else
5664      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5665    fi
5666    hardcode_libdir_flag_spec='-R$libdir'
5667    hardcode_direct=yes
5668    hardcode_shlibpath_var=no
5669    ;;
5670
5671  newsos6)
5672    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5673    hardcode_direct=yes
5674    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5675    hardcode_libdir_separator=:
5676    hardcode_shlibpath_var=no
5677    ;;
5678
5679  openbsd*)
5680    hardcode_direct=yes
5681    hardcode_shlibpath_var=no
5682    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5683      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5684      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5685      export_dynamic_flag_spec='${wl}-E'
5686    else
5687      case "$host_os" in
5688      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5689	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5690	hardcode_libdir_flag_spec='-R$libdir'
5691        ;;
5692      *)
5693        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5694        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5695        ;;
5696      esac
5697    fi
5698    ;;
5699
5700  os2*)
5701    hardcode_libdir_flag_spec='-L$libdir'
5702    hardcode_minus_L=yes
5703    allow_undefined_flag=unsupported
5704    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'
5705    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5706    ;;
5707
5708  osf3*)
5709    if test "$GCC" = yes; then
5710      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5711      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5712    else
5713      allow_undefined_flag=' -expect_unresolved \*'
5714      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5715    fi
5716    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5717    hardcode_libdir_separator=:
5718    ;;
5719
5720  osf4* | osf5*)	# as osf3* with the addition of -msym flag
5721    if test "$GCC" = yes; then
5722      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5723      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5724      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5725    else
5726      allow_undefined_flag=' -expect_unresolved \*'
5727      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5728      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5729      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5730
5731      #Both c and cxx compiler support -rpath directly
5732      hardcode_libdir_flag_spec='-rpath $libdir'
5733    fi
5734    hardcode_libdir_separator=:
5735    ;;
5736
5737  sco3.2v5*)
5738    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5739    hardcode_shlibpath_var=no
5740    runpath_var=LD_RUN_PATH
5741    hardcode_runpath_var=yes
5742    export_dynamic_flag_spec='${wl}-Bexport'
5743    ;;
5744
5745  solaris*)
5746    # gcc --version < 3.0 without binutils cannot create self contained
5747    # shared libraries reliably, requiring libgcc.a to resolve some of
5748    # the object symbols generated in some cases.  Libraries that use
5749    # assert need libgcc.a to resolve __eprintf, for example.  Linking
5750    # a copy of libgcc.a into every shared library to guarantee resolving
5751    # such symbols causes other problems:  According to Tim Van Holder
5752    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5753    # (to the application) exception stack for one thing.
5754    no_undefined_flag=' -z defs'
5755    if test "$GCC" = yes; then
5756      case `$CC --version 2>/dev/null` in
5757      [12].*)
5758	cat <<EOF 1>&2
5759
5760*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5761*** create self contained shared libraries on Solaris systems, without
5762*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5763*** -no-undefined support, which will at least allow you to build shared
5764*** libraries.  However, you may find that when you link such libraries
5765*** into an application without using GCC, you have to manually add
5766*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5767*** upgrade to a newer version of GCC.  Another option is to rebuild your
5768*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5769
5770EOF
5771        no_undefined_flag=
5772	;;
5773      esac
5774    fi
5775    # $CC -shared without GNU ld will not create a library from C++
5776    # object files and a static libstdc++, better avoid it by now
5777    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5778    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5779		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5780    hardcode_libdir_flag_spec='-R$libdir'
5781    hardcode_shlibpath_var=no
5782    case $host_os in
5783    solaris2.[0-5] | solaris2.[0-5].*) ;;
5784    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5785      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5786    esac
5787    link_all_deplibs=yes
5788    ;;
5789
5790  sunos4*)
5791    if test "x$host_vendor" = xsequent; then
5792      # Use $CC to link under sequent, because it throws in some extra .o
5793      # files that make .init and .fini sections work.
5794      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5795    else
5796      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5797    fi
5798    hardcode_libdir_flag_spec='-L$libdir'
5799    hardcode_direct=yes
5800    hardcode_minus_L=yes
5801    hardcode_shlibpath_var=no
5802    ;;
5803
5804  sysv4)
5805    case $host_vendor in
5806      sni)
5807        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5808        hardcode_direct=yes # is this really true???
5809        ;;
5810      siemens)
5811        ## LD is ld it makes a PLAMLIB
5812        ## CC just makes a GrossModule.
5813        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5814        reload_cmds='$CC -r -o $output$reload_objs'
5815        hardcode_direct=no
5816        ;;
5817      motorola)
5818        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5819        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5820        ;;
5821    esac
5822    runpath_var='LD_RUN_PATH'
5823    hardcode_shlibpath_var=no
5824    ;;
5825
5826  sysv4.3*)
5827    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5828    hardcode_shlibpath_var=no
5829    export_dynamic_flag_spec='-Bexport'
5830    ;;
5831
5832  sysv5*)
5833    no_undefined_flag=' -z text'
5834    # $CC -shared without GNU ld will not create a library from C++
5835    # object files and a static libstdc++, better avoid it by now
5836    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5837    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5838		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5839    hardcode_libdir_flag_spec=
5840    hardcode_shlibpath_var=no
5841    runpath_var='LD_RUN_PATH'
5842    ;;
5843
5844  uts4*)
5845    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5846    hardcode_libdir_flag_spec='-L$libdir'
5847    hardcode_shlibpath_var=no
5848    ;;
5849
5850  dgux*)
5851    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5852    hardcode_libdir_flag_spec='-L$libdir'
5853    hardcode_shlibpath_var=no
5854    ;;
5855
5856  sysv4*MP*)
5857    if test -d /usr/nec; then
5858      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5859      hardcode_shlibpath_var=no
5860      runpath_var=LD_RUN_PATH
5861      hardcode_runpath_var=yes
5862      ld_shlibs=yes
5863    fi
5864    ;;
5865
5866  sysv4.2uw2*)
5867    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5868    hardcode_direct=yes
5869    hardcode_minus_L=no
5870    hardcode_shlibpath_var=no
5871    hardcode_runpath_var=yes
5872    runpath_var=LD_RUN_PATH
5873    ;;
5874
5875  sysv5uw7* | unixware7*)
5876    no_undefined_flag='${wl}-z ${wl}text'
5877    if test "$GCC" = yes; then
5878      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5879    else
5880      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5881    fi
5882    runpath_var='LD_RUN_PATH'
5883    hardcode_shlibpath_var=no
5884    ;;
5885
5886  *)
5887    ld_shlibs=no
5888    ;;
5889  esac
5890fi
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
5892$as_echo "$ld_shlibs" >&6; }
5893test "$ld_shlibs" = no && can_build_shared=no
5894##
5895## END FIXME
5896
5897## FIXME: this should be a separate macro
5898##
5899# Check hardcoding attributes.
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
5901$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
5902hardcode_action=
5903if test -n "$hardcode_libdir_flag_spec" || \
5904   test -n "$runpath_var"; then
5905
5906  # We can hardcode non-existant directories.
5907  if test "$hardcode_direct" != no &&
5908     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5909     # have to relink, otherwise we might link with an installed library
5910     # when we should be linking with a yet-to-be-installed one
5911     ## test "$hardcode_shlibpath_var" != no &&
5912     test "$hardcode_minus_L" != no; then
5913    # Linking always hardcodes the temporary library directory.
5914    hardcode_action=relink
5915  else
5916    # We can link without hardcoding, and we can hardcode nonexisting dirs.
5917    hardcode_action=immediate
5918  fi
5919else
5920  # We cannot hardcode anything, or else we can only hardcode existing
5921  # directories.
5922  hardcode_action=unsupported
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
5925$as_echo "$hardcode_action" >&6; }
5926##
5927## END FIXME
5928
5929## FIXME: this should be a separate macro
5930##
5931striplib=
5932old_striplib=
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
5934$as_echo_n "checking whether stripping libraries is possible... " >&6; }
5935if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5936  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5937  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5939$as_echo "yes" >&6; }
5940else
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942$as_echo "no" >&6; }
5943fi
5944##
5945## END FIXME
5946
5947reload_cmds='$LD$reload_flag -o $output$reload_objs'
5948test -z "$deplibs_check_method" && deplibs_check_method=unknown
5949
5950## FIXME: this should be a separate macro
5951##
5952# PORTME Fill in your ld.so characteristics
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5954$as_echo_n "checking dynamic linker characteristics... " >&6; }
5955library_names_spec=
5956libname_spec='lib$name'
5957soname_spec=
5958postinstall_cmds=
5959postuninstall_cmds=
5960finish_cmds=
5961finish_eval=
5962shlibpath_var=
5963shlibpath_overrides_runpath=unknown
5964version_type=none
5965dynamic_linker="$host_os ld.so"
5966sys_lib_dlsearch_path_spec="/lib /usr/lib"
5967sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5968
5969case $host_os in
5970aix3*)
5971  version_type=linux
5972  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5973  shlibpath_var=LIBPATH
5974
5975  # AIX has no versioning support, so we append a major version to the name.
5976  soname_spec='${libname}${release}.so$major'
5977  ;;
5978
5979aix4* | aix5*)
5980  version_type=linux
5981  need_lib_prefix=no
5982  need_version=no
5983  hardcode_into_libs=yes
5984  if test "$host_cpu" = ia64; then
5985    # AIX 5 supports IA64
5986    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5987    shlibpath_var=LD_LIBRARY_PATH
5988  else
5989    # With GCC up to 2.95.x, collect2 would create an import file
5990    # for dependence libraries.  The import file would start with
5991    # the line `#! .'.  This would cause the generated library to
5992    # depend on `.', always an invalid library.  This was fixed in
5993    # development snapshots of GCC prior to 3.0.
5994    case $host_os in
5995      aix4 | aix4.[01] | aix4.[01].*)
5996	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5997	     echo ' yes '
5998	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5999	  :
6000	else
6001	  can_build_shared=no
6002	fi
6003	;;
6004    esac
6005    # AIX (on Power*) has no versioning support, so currently we can
6006    # not hardcode correct soname into executable. Probably we can
6007    # add versioning support to collect2, so additional links can
6008    # be useful in future.
6009    if test "$aix_use_runtimelinking" = yes; then
6010      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6011      # instead of lib<name>.a to let people know that these are not
6012      # typical AIX shared libraries.
6013      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6014    else
6015      # We preserve .a as extension for shared libraries through AIX4.2
6016      # and later when we are not doing run time linking.
6017      library_names_spec='${libname}${release}.a $libname.a'
6018      soname_spec='${libname}${release}.so$major'
6019    fi
6020    shlibpath_var=LIBPATH
6021  fi
6022  hardcode_into_libs=yes
6023  ;;
6024
6025amigaos*)
6026  library_names_spec='$libname.ixlibrary $libname.a'
6027  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6028  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'
6029  ;;
6030
6031beos*)
6032  library_names_spec='${libname}.so'
6033  dynamic_linker="$host_os ld.so"
6034  shlibpath_var=LIBRARY_PATH
6035  ;;
6036
6037bsdi4*)
6038  version_type=linux
6039  need_version=no
6040  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6041  soname_spec='${libname}${release}.so$major'
6042  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6043  shlibpath_var=LD_LIBRARY_PATH
6044  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6045  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6046  export_dynamic_flag_spec=-rdynamic
6047  # the default ld.so.conf also contains /usr/contrib/lib and
6048  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6049  # libtool to hard-code these into programs
6050  ;;
6051
6052cygwin* | mingw* | pw32*)
6053  version_type=windows
6054  need_version=no
6055  need_lib_prefix=no
6056  case $GCC,$host_os in
6057  yes,cygwin*)
6058    library_names_spec='$libname.dll.a'
6059    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6060    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6061      dldir=$destdir/`dirname \$dlpath`~
6062      test -d \$dldir || mkdir -p \$dldir~
6063      $install_prog .libs/$dlname \$dldir/$dlname'
6064    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6065      dlpath=$dir/\$dldll~
6066       $rm \$dlpath'
6067    ;;
6068  yes,mingw*)
6069    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6070    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6071    ;;
6072  yes,pw32*)
6073    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6074    ;;
6075  *)
6076    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6077    ;;
6078  esac
6079  dynamic_linker='Win32 ld.exe'
6080  # FIXME: first we should search . and the directory the executable is in
6081  shlibpath_var=PATH
6082  ;;
6083
6084darwin* | rhapsody*)
6085  dynamic_linker="$host_os dyld"
6086  version_type=darwin
6087  need_lib_prefix=no
6088  need_version=no
6089  # FIXME: Relying on posixy $() will cause problems for
6090  #        cross-compilation, but unfortunately the echo tests do not
6091  #        yet detect zsh echo's removal of \ escapes.
6092  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6093  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6094  shlibpath_overrides_runpath=yes
6095  shlibpath_var=DYLD_LIBRARY_PATH
6096  ;;
6097
6098freebsd1*)
6099  dynamic_linker=no
6100  ;;
6101
6102freebsd*)
6103  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6104  version_type=freebsd-$objformat
6105  case $version_type in
6106    freebsd-elf*)
6107      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6108      need_version=no
6109      need_lib_prefix=no
6110      ;;
6111    freebsd-*)
6112      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6113      need_version=yes
6114      ;;
6115  esac
6116  shlibpath_var=LD_LIBRARY_PATH
6117  case $host_os in
6118  freebsd2*)
6119    shlibpath_overrides_runpath=yes
6120    ;;
6121  *)
6122    shlibpath_overrides_runpath=no
6123    hardcode_into_libs=yes
6124    ;;
6125  esac
6126  ;;
6127
6128gnu*)
6129  version_type=linux
6130  need_lib_prefix=no
6131  need_version=no
6132  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6133  soname_spec='${libname}${release}.so$major'
6134  shlibpath_var=LD_LIBRARY_PATH
6135  hardcode_into_libs=yes
6136  ;;
6137
6138hpux9* | hpux10* | hpux11*)
6139  # Give a soname corresponding to the major version so that dld.sl refuses to
6140  # link against other versions.
6141  dynamic_linker="$host_os dld.sl"
6142  version_type=sunos
6143  need_lib_prefix=no
6144  need_version=no
6145  shlibpath_var=SHLIB_PATH
6146  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6147  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6148  soname_spec='${libname}${release}.sl$major'
6149  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6150  postinstall_cmds='chmod 555 $lib'
6151  ;;
6152
6153irix5* | irix6* | nonstopux*)
6154  case $host_os in
6155    nonstopux*) version_type=nonstopux ;;
6156    *)          version_type=irix ;;
6157  esac
6158  need_lib_prefix=no
6159  need_version=no
6160  soname_spec='${libname}${release}.so$major'
6161  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6162  case $host_os in
6163  irix5* | nonstopux*)
6164    libsuff= shlibsuff=
6165    ;;
6166  *)
6167    case $LD in # libtool.m4 will add one of these switches to LD
6168    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6169    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6170    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6171    *) libsuff= shlibsuff= libmagic=never-match;;
6172    esac
6173    ;;
6174  esac
6175  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6176  shlibpath_overrides_runpath=no
6177  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6178  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6179  ;;
6180
6181# No shared lib support for Linux oldld, aout, or coff.
6182linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6183  dynamic_linker=no
6184  ;;
6185
6186# This must be Linux ELF.
6187linux-gnu*)
6188  version_type=linux
6189  need_lib_prefix=no
6190  need_version=no
6191  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6192  soname_spec='${libname}${release}.so$major'
6193  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6194  shlibpath_var=LD_LIBRARY_PATH
6195  shlibpath_overrides_runpath=no
6196  # This implies no fast_install, which is unacceptable.
6197  # Some rework will be needed to allow for fast_install
6198  # before this can be enabled.
6199  hardcode_into_libs=yes
6200
6201  # We used to test for /lib/ld.so.1 and disable shared libraries on
6202  # powerpc, because MkLinux only supported shared libraries with the
6203  # GNU dynamic linker.  Since this was broken with cross compilers,
6204  # most powerpc-linux boxes support dynamic linking these days and
6205  # people can always --disable-shared, the test was removed, and we
6206  # assume the GNU/Linux dynamic linker is in use.
6207  dynamic_linker='GNU/Linux ld.so'
6208  ;;
6209
6210netbsd*)
6211  version_type=sunos
6212  need_lib_prefix=no
6213  need_version=no
6214  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6215    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6216    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6217    dynamic_linker='NetBSD (a.out) ld.so'
6218  else
6219    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6220    soname_spec='${libname}${release}.so$major'
6221    dynamic_linker='NetBSD ld.elf_so'
6222  fi
6223  shlibpath_var=LD_LIBRARY_PATH
6224  shlibpath_overrides_runpath=yes
6225  hardcode_into_libs=yes
6226  ;;
6227
6228newsos6)
6229  version_type=linux
6230  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6231  shlibpath_var=LD_LIBRARY_PATH
6232  shlibpath_overrides_runpath=yes
6233  ;;
6234
6235openbsd*)
6236  version_type=sunos
6237  need_lib_prefix=no
6238  need_version=no
6239  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6240    case "$host_os" in
6241    openbsd2.[89] | openbsd2.[89].*)
6242      shlibpath_overrides_runpath=no
6243      ;;
6244    *)
6245      shlibpath_overrides_runpath=yes
6246      ;;
6247    esac
6248  else
6249    shlibpath_overrides_runpath=yes
6250  fi
6251  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6252  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6253  shlibpath_var=LD_LIBRARY_PATH
6254  ;;
6255
6256os2*)
6257  libname_spec='$name'
6258  need_lib_prefix=no
6259  library_names_spec='$libname.dll $libname.a'
6260  dynamic_linker='OS/2 ld.exe'
6261  shlibpath_var=LIBPATH
6262  ;;
6263
6264osf3* | osf4* | osf5*)
6265  version_type=osf
6266  need_version=no
6267  soname_spec='${libname}${release}.so$major'
6268  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6269  shlibpath_var=LD_LIBRARY_PATH
6270  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6271  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6272  hardcode_into_libs=yes
6273  ;;
6274
6275sco3.2v5*)
6276  version_type=osf
6277  soname_spec='${libname}${release}.so$major'
6278  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6279  shlibpath_var=LD_LIBRARY_PATH
6280  ;;
6281
6282solaris*)
6283  version_type=linux
6284  need_lib_prefix=no
6285  need_version=no
6286  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6287  soname_spec='${libname}${release}.so$major'
6288  shlibpath_var=LD_LIBRARY_PATH
6289  shlibpath_overrides_runpath=yes
6290  hardcode_into_libs=yes
6291  # ldd complains unless libraries are executable
6292  postinstall_cmds='chmod +x $lib'
6293  ;;
6294
6295sunos4*)
6296  version_type=sunos
6297  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6298  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6299  shlibpath_var=LD_LIBRARY_PATH
6300  shlibpath_overrides_runpath=yes
6301  if test "$with_gnu_ld" = yes; then
6302    need_lib_prefix=no
6303  fi
6304  need_version=yes
6305  ;;
6306
6307sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6308  version_type=linux
6309  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6310  soname_spec='${libname}${release}.so$major'
6311  shlibpath_var=LD_LIBRARY_PATH
6312  case $host_vendor in
6313    sni)
6314      shlibpath_overrides_runpath=no
6315      need_lib_prefix=no
6316      export_dynamic_flag_spec='${wl}-Blargedynsym'
6317      runpath_var=LD_RUN_PATH
6318      ;;
6319    siemens)
6320      need_lib_prefix=no
6321      ;;
6322    motorola)
6323      need_lib_prefix=no
6324      need_version=no
6325      shlibpath_overrides_runpath=no
6326      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6327      ;;
6328  esac
6329  ;;
6330
6331uts4*)
6332  version_type=linux
6333  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6334  soname_spec='${libname}${release}.so$major'
6335  shlibpath_var=LD_LIBRARY_PATH
6336  ;;
6337
6338dgux*)
6339  version_type=linux
6340  need_lib_prefix=no
6341  need_version=no
6342  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6343  soname_spec='${libname}${release}.so$major'
6344  shlibpath_var=LD_LIBRARY_PATH
6345  ;;
6346
6347sysv4*MP*)
6348  if test -d /usr/nec ;then
6349    version_type=linux
6350    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6351    soname_spec='$libname.so.$major'
6352    shlibpath_var=LD_LIBRARY_PATH
6353  fi
6354  ;;
6355
6356*)
6357  dynamic_linker=no
6358  ;;
6359esac
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6361$as_echo "$dynamic_linker" >&6; }
6362test "$dynamic_linker" = no && can_build_shared=no
6363##
6364## END FIXME
6365
6366## FIXME: this should be a separate macro
6367##
6368# Report the final consequences.
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
6370$as_echo_n "checking if libtool supports shared libraries... " >&6; }
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
6372$as_echo "$can_build_shared" >&6; }
6373##
6374## END FIXME
6375
6376## FIXME: this should be a separate macro
6377##
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
6379$as_echo_n "checking whether to build shared libraries... " >&6; }
6380test "$can_build_shared" = "no" && enable_shared=no
6381
6382# On AIX, shared libraries and static libraries use the same namespace, and
6383# are all built from PIC.
6384case "$host_os" in
6385aix3*)
6386  test "$enable_shared" = yes && enable_static=no
6387  if test -n "$RANLIB"; then
6388    archive_cmds="$archive_cmds~\$RANLIB \$lib"
6389    postinstall_cmds='$RANLIB $lib'
6390  fi
6391  ;;
6392
6393aix4*)
6394  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6395    test "$enable_shared" = yes && enable_static=no
6396  fi
6397  ;;
6398esac
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
6400$as_echo "$enable_shared" >&6; }
6401##
6402## END FIXME
6403
6404## FIXME: this should be a separate macro
6405##
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
6407$as_echo_n "checking whether to build static libraries... " >&6; }
6408# Make sure either enable_shared or enable_static is yes.
6409test "$enable_shared" = yes || enable_static=yes
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
6411$as_echo "$enable_static" >&6; }
6412##
6413## END FIXME
6414
6415if test "$hardcode_action" = relink; then
6416  # Fast installation is not supported
6417  enable_fast_install=no
6418elif test "$shlibpath_overrides_runpath" = yes ||
6419     test "$enable_shared" = no; then
6420  # Fast installation is not necessary
6421  enable_fast_install=needless
6422fi
6423
6424variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6425if test "$GCC" = yes; then
6426  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6427fi
6428
6429if test "x$enable_dlopen" != xyes; then
6430  enable_dlopen=unknown
6431  enable_dlopen_self=unknown
6432  enable_dlopen_self_static=unknown
6433else
6434  lt_cv_dlopen=no
6435  lt_cv_dlopen_libs=
6436
6437  case $host_os in
6438  beos*)
6439    lt_cv_dlopen="load_add_on"
6440    lt_cv_dlopen_libs=
6441    lt_cv_dlopen_self=yes
6442    ;;
6443
6444  cygwin* | mingw* | pw32*)
6445    lt_cv_dlopen="LoadLibrary"
6446    lt_cv_dlopen_libs=
6447   ;;
6448
6449  *)
6450    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6451if test "x$ac_cv_func_shl_load" = xyes; then :
6452  lt_cv_dlopen="shl_load"
6453else
6454  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6455$as_echo_n "checking for shl_load in -ldld... " >&6; }
6456if ${ac_cv_lib_dld_shl_load+:} false; then :
6457  $as_echo_n "(cached) " >&6
6458else
6459  ac_check_lib_save_LIBS=$LIBS
6460LIBS="-ldld  $LIBS"
6461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h.  */
6463
6464/* Override any GCC internal prototype to avoid an error.
6465   Use char because int might match the return type of a GCC
6466   builtin and then its argument prototype would still apply.  */
6467#ifdef __cplusplus
6468extern "C"
6469#endif
6470char shl_load ();
6471int
6472main ()
6473{
6474return shl_load ();
6475  ;
6476  return 0;
6477}
6478_ACEOF
6479if ac_fn_c_try_link "$LINENO"; then :
6480  ac_cv_lib_dld_shl_load=yes
6481else
6482  ac_cv_lib_dld_shl_load=no
6483fi
6484rm -f core conftest.err conftest.$ac_objext \
6485    conftest$ac_exeext conftest.$ac_ext
6486LIBS=$ac_check_lib_save_LIBS
6487fi
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6489$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6490if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6491  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6492else
6493  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6494if test "x$ac_cv_func_dlopen" = xyes; then :
6495  lt_cv_dlopen="dlopen"
6496else
6497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6498$as_echo_n "checking for dlopen in -ldl... " >&6; }
6499if ${ac_cv_lib_dl_dlopen+:} false; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502  ac_check_lib_save_LIBS=$LIBS
6503LIBS="-ldl  $LIBS"
6504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505/* end confdefs.h.  */
6506
6507/* Override any GCC internal prototype to avoid an error.
6508   Use char because int might match the return type of a GCC
6509   builtin and then its argument prototype would still apply.  */
6510#ifdef __cplusplus
6511extern "C"
6512#endif
6513char dlopen ();
6514int
6515main ()
6516{
6517return dlopen ();
6518  ;
6519  return 0;
6520}
6521_ACEOF
6522if ac_fn_c_try_link "$LINENO"; then :
6523  ac_cv_lib_dl_dlopen=yes
6524else
6525  ac_cv_lib_dl_dlopen=no
6526fi
6527rm -f core conftest.err conftest.$ac_objext \
6528    conftest$ac_exeext conftest.$ac_ext
6529LIBS=$ac_check_lib_save_LIBS
6530fi
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6532$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6533if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6534  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6535else
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
6537$as_echo_n "checking for dlopen in -lsvld... " >&6; }
6538if ${ac_cv_lib_svld_dlopen+:} false; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  ac_check_lib_save_LIBS=$LIBS
6542LIBS="-lsvld  $LIBS"
6543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h.  */
6545
6546/* Override any GCC internal prototype to avoid an error.
6547   Use char because int might match the return type of a GCC
6548   builtin and then its argument prototype would still apply.  */
6549#ifdef __cplusplus
6550extern "C"
6551#endif
6552char dlopen ();
6553int
6554main ()
6555{
6556return dlopen ();
6557  ;
6558  return 0;
6559}
6560_ACEOF
6561if ac_fn_c_try_link "$LINENO"; then :
6562  ac_cv_lib_svld_dlopen=yes
6563else
6564  ac_cv_lib_svld_dlopen=no
6565fi
6566rm -f core conftest.err conftest.$ac_objext \
6567    conftest$ac_exeext conftest.$ac_ext
6568LIBS=$ac_check_lib_save_LIBS
6569fi
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
6571$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
6572if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6573  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6574else
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
6576$as_echo_n "checking for dld_link in -ldld... " >&6; }
6577if ${ac_cv_lib_dld_dld_link+:} false; then :
6578  $as_echo_n "(cached) " >&6
6579else
6580  ac_check_lib_save_LIBS=$LIBS
6581LIBS="-ldld  $LIBS"
6582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583/* end confdefs.h.  */
6584
6585/* Override any GCC internal prototype to avoid an error.
6586   Use char because int might match the return type of a GCC
6587   builtin and then its argument prototype would still apply.  */
6588#ifdef __cplusplus
6589extern "C"
6590#endif
6591char dld_link ();
6592int
6593main ()
6594{
6595return dld_link ();
6596  ;
6597  return 0;
6598}
6599_ACEOF
6600if ac_fn_c_try_link "$LINENO"; then :
6601  ac_cv_lib_dld_dld_link=yes
6602else
6603  ac_cv_lib_dld_dld_link=no
6604fi
6605rm -f core conftest.err conftest.$ac_objext \
6606    conftest$ac_exeext conftest.$ac_ext
6607LIBS=$ac_check_lib_save_LIBS
6608fi
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
6610$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
6611if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6612  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6613fi
6614
6615
6616fi
6617
6618
6619fi
6620
6621
6622fi
6623
6624
6625fi
6626
6627
6628fi
6629
6630    ;;
6631  esac
6632
6633  if test "x$lt_cv_dlopen" != xno; then
6634    enable_dlopen=yes
6635  else
6636    enable_dlopen=no
6637  fi
6638
6639  case $lt_cv_dlopen in
6640  dlopen)
6641    save_CPPFLAGS="$CPPFLAGS"
6642        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6643
6644    save_LDFLAGS="$LDFLAGS"
6645    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6646
6647    save_LIBS="$LIBS"
6648    LIBS="$lt_cv_dlopen_libs $LIBS"
6649
6650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
6651$as_echo_n "checking whether a program can dlopen itself... " >&6; }
6652if ${lt_cv_dlopen_self+:} false; then :
6653  $as_echo_n "(cached) " >&6
6654else
6655  	  if test "$cross_compiling" = yes; then :
6656  lt_cv_dlopen_self=cross
6657else
6658    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6659  lt_status=$lt_dlunknown
6660  cat > conftest.$ac_ext <<EOF
6661#line 6661 "configure"
6662#include "confdefs.h"
6663
6664#if HAVE_DLFCN_H
6665#include <dlfcn.h>
6666#endif
6667
6668#include <stdio.h>
6669
6670#ifdef RTLD_GLOBAL
6671#  define LT_DLGLOBAL		RTLD_GLOBAL
6672#else
6673#  ifdef DL_GLOBAL
6674#    define LT_DLGLOBAL		DL_GLOBAL
6675#  else
6676#    define LT_DLGLOBAL		0
6677#  endif
6678#endif
6679
6680/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6681   find out it does not work in some platform. */
6682#ifndef LT_DLLAZY_OR_NOW
6683#  ifdef RTLD_LAZY
6684#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6685#  else
6686#    ifdef DL_LAZY
6687#      define LT_DLLAZY_OR_NOW		DL_LAZY
6688#    else
6689#      ifdef RTLD_NOW
6690#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6691#      else
6692#        ifdef DL_NOW
6693#          define LT_DLLAZY_OR_NOW	DL_NOW
6694#        else
6695#          define LT_DLLAZY_OR_NOW	0
6696#        endif
6697#      endif
6698#    endif
6699#  endif
6700#endif
6701
6702#ifdef __cplusplus
6703extern "C" void exit (int);
6704#endif
6705
6706void fnord() { int i=42;}
6707int main ()
6708{
6709  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6710  int status = $lt_dlunknown;
6711
6712  if (self)
6713    {
6714      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6715      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6716      /* dlclose (self); */
6717    }
6718
6719    exit (status);
6720}
6721EOF
6722  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6723  (eval $ac_link) 2>&5
6724  ac_status=$?
6725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6726  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
6727    (./conftest; exit; ) 2>/dev/null
6728    lt_status=$?
6729    case x$lt_status in
6730      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6731      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6732      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6733    esac
6734  else :
6735    # compilation failed
6736    lt_cv_dlopen_self=no
6737  fi
6738fi
6739rm -fr conftest*
6740
6741
6742fi
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
6744$as_echo "$lt_cv_dlopen_self" >&6; }
6745
6746    if test "x$lt_cv_dlopen_self" = xyes; then
6747      LDFLAGS="$LDFLAGS $link_static_flag"
6748      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
6749$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
6750if ${lt_cv_dlopen_self_static+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  	  if test "$cross_compiling" = yes; then :
6754  lt_cv_dlopen_self_static=cross
6755else
6756    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6757  lt_status=$lt_dlunknown
6758  cat > conftest.$ac_ext <<EOF
6759#line 6759 "configure"
6760#include "confdefs.h"
6761
6762#if HAVE_DLFCN_H
6763#include <dlfcn.h>
6764#endif
6765
6766#include <stdio.h>
6767
6768#ifdef RTLD_GLOBAL
6769#  define LT_DLGLOBAL		RTLD_GLOBAL
6770#else
6771#  ifdef DL_GLOBAL
6772#    define LT_DLGLOBAL		DL_GLOBAL
6773#  else
6774#    define LT_DLGLOBAL		0
6775#  endif
6776#endif
6777
6778/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6779   find out it does not work in some platform. */
6780#ifndef LT_DLLAZY_OR_NOW
6781#  ifdef RTLD_LAZY
6782#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6783#  else
6784#    ifdef DL_LAZY
6785#      define LT_DLLAZY_OR_NOW		DL_LAZY
6786#    else
6787#      ifdef RTLD_NOW
6788#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6789#      else
6790#        ifdef DL_NOW
6791#          define LT_DLLAZY_OR_NOW	DL_NOW
6792#        else
6793#          define LT_DLLAZY_OR_NOW	0
6794#        endif
6795#      endif
6796#    endif
6797#  endif
6798#endif
6799
6800#ifdef __cplusplus
6801extern "C" void exit (int);
6802#endif
6803
6804void fnord() { int i=42;}
6805int main ()
6806{
6807  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6808  int status = $lt_dlunknown;
6809
6810  if (self)
6811    {
6812      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6813      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6814      /* dlclose (self); */
6815    }
6816
6817    exit (status);
6818}
6819EOF
6820  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6821  (eval $ac_link) 2>&5
6822  ac_status=$?
6823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6824  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
6825    (./conftest; exit; ) 2>/dev/null
6826    lt_status=$?
6827    case x$lt_status in
6828      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6829      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6830      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6831    esac
6832  else :
6833    # compilation failed
6834    lt_cv_dlopen_self_static=no
6835  fi
6836fi
6837rm -fr conftest*
6838
6839
6840fi
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
6842$as_echo "$lt_cv_dlopen_self_static" >&6; }
6843    fi
6844
6845    CPPFLAGS="$save_CPPFLAGS"
6846    LDFLAGS="$save_LDFLAGS"
6847    LIBS="$save_LIBS"
6848    ;;
6849  esac
6850
6851  case $lt_cv_dlopen_self in
6852  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6853  *) enable_dlopen_self=unknown ;;
6854  esac
6855
6856  case $lt_cv_dlopen_self_static in
6857  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6858  *) enable_dlopen_self_static=unknown ;;
6859  esac
6860fi
6861
6862
6863## FIXME: this should be a separate macro
6864##
6865if test "$enable_shared" = yes && test "$GCC" = yes; then
6866  case $archive_cmds in
6867  *'~'*)
6868    # FIXME: we may have to deal with multi-command sequences.
6869    ;;
6870  '$CC '*)
6871    # Test whether the compiler implicitly links with -lc since on some
6872    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6873    # to ld, don't add -lc before -lgcc.
6874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
6875$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
6876    if ${lt_cv_archive_cmds_need_lc+:} false; then :
6877  $as_echo_n "(cached) " >&6
6878else
6879  $rm conftest*
6880    echo 'static int dummy;' > conftest.$ac_ext
6881
6882    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883  (eval $ac_compile) 2>&5
6884  ac_status=$?
6885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886  test $ac_status = 0; }; then
6887      soname=conftest
6888      lib=conftest
6889      libobjs=conftest.$ac_objext
6890      deplibs=
6891      wl=$lt_cv_prog_cc_wl
6892      compiler_flags=-v
6893      linker_flags=-v
6894      verstring=
6895      output_objdir=.
6896      libname=conftest
6897      save_allow_undefined_flag=$allow_undefined_flag
6898      allow_undefined_flag=
6899      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
6900  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6901  ac_status=$?
6902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903  test $ac_status = 0; }
6904      then
6905	lt_cv_archive_cmds_need_lc=no
6906      else
6907	lt_cv_archive_cmds_need_lc=yes
6908      fi
6909      allow_undefined_flag=$save_allow_undefined_flag
6910    else
6911      cat conftest.err 1>&5
6912    fi
6913fi
6914
6915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
6916$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
6917    ;;
6918  esac
6919fi
6920need_lc=${lt_cv_archive_cmds_need_lc-yes}
6921##
6922## END FIXME
6923
6924## FIXME: this should be a separate macro
6925##
6926# The second clause should only fire when bootstrapping the
6927# libtool distribution, otherwise you forgot to ship ltmain.sh
6928# with your package, and you will get complaints that there are
6929# no rules to generate ltmain.sh.
6930if test -f "$ltmain"; then
6931  :
6932else
6933  # If there is no Makefile yet, we rely on a make rule to execute
6934  # `config.status --recheck' to rerun these tests and create the
6935  # libtool script then.
6936  test -f Makefile && make "$ltmain"
6937fi
6938
6939if test -f "$ltmain"; then
6940  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6941  $rm -f "${ofile}T"
6942
6943  echo creating $ofile
6944
6945  # Now quote all the things that may contain metacharacters while being
6946  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6947  # variables and quote the copies for generation of the libtool script.
6948  for var in echo old_CC old_CFLAGS SED \
6949    AR AR_FLAGS CC LD LN_S NM SHELL \
6950    reload_flag reload_cmds wl \
6951    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6952    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6953    library_names_spec soname_spec \
6954    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6955    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6956    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6957    old_striplib striplib file_magic_cmd export_symbols_cmds \
6958    deplibs_check_method allow_undefined_flag no_undefined_flag \
6959    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6960    global_symbol_to_c_name_address \
6961    hardcode_libdir_flag_spec hardcode_libdir_separator  \
6962    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6963    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6964
6965    case $var in
6966    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6967    old_postinstall_cmds | old_postuninstall_cmds | \
6968    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6969    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6970    postinstall_cmds | postuninstall_cmds | \
6971    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6972      # Double-quote double-evaled strings.
6973      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6974      ;;
6975    *)
6976      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6977      ;;
6978    esac
6979  done
6980
6981  cat <<__EOF__ > "${ofile}T"
6982#! $SHELL
6983
6984# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6985# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6986# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6987#
6988# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6989# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6990#
6991# This program is free software; you can redistribute it and/or modify
6992# it under the terms of the GNU General Public License as published by
6993# the Free Software Foundation; either version 2 of the License, or
6994# (at your option) any later version.
6995#
6996# This program is distributed in the hope that it will be useful, but
6997# WITHOUT ANY WARRANTY; without even the implied warranty of
6998# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6999# General Public License for more details.
7000#
7001# You should have received a copy of the GNU General Public License
7002# along with this program; if not, write to the Free Software
7003# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7004#
7005# As a special exception to the GNU General Public License, if you
7006# distribute this file as part of a program that contains a
7007# configuration script generated by Autoconf, you may include it under
7008# the same distribution terms that you use for the rest of that program.
7009
7010# A sed that does not truncate output.
7011SED=$lt_SED
7012
7013# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7014Xsed="${SED} -e s/^X//"
7015
7016# The HP-UX ksh and POSIX shell print the target directory to stdout
7017# if CDPATH is set.
7018if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7019
7020# ### BEGIN LIBTOOL CONFIG
7021
7022# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7023
7024# Shell to use when invoking shell scripts.
7025SHELL=$lt_SHELL
7026
7027# Whether or not to build shared libraries.
7028build_libtool_libs=$enable_shared
7029
7030# Whether or not to build static libraries.
7031build_old_libs=$enable_static
7032
7033# Whether or not to add -lc for building shared libraries.
7034build_libtool_need_lc=$need_lc
7035
7036# Whether or not to optimize for fast installation.
7037fast_install=$enable_fast_install
7038
7039# The host system.
7040host_alias=$host_alias
7041host=$host
7042
7043# An echo program that does not interpret backslashes.
7044echo=$lt_echo
7045
7046# The archiver.
7047AR=$lt_AR
7048AR_FLAGS=$lt_AR_FLAGS
7049
7050# The default C compiler.
7051CC=$lt_CC
7052
7053# Is the compiler the GNU C compiler?
7054with_gcc=$GCC
7055
7056# The linker used to build libraries.
7057LD=$lt_LD
7058
7059# Whether we need hard or soft links.
7060LN_S=$lt_LN_S
7061
7062# A BSD-compatible nm program.
7063NM=$lt_NM
7064
7065# A symbol stripping program
7066STRIP=$STRIP
7067
7068# Used to examine libraries when file_magic_cmd begins "file"
7069MAGIC_CMD=$MAGIC_CMD
7070
7071# Used on cygwin: DLL creation program.
7072DLLTOOL="$DLLTOOL"
7073
7074# Used on cygwin: object dumper.
7075OBJDUMP="$OBJDUMP"
7076
7077# Used on cygwin: assembler.
7078AS="$AS"
7079
7080# The name of the directory that contains temporary libtool files.
7081objdir=$objdir
7082
7083# How to create reloadable object files.
7084reload_flag=$lt_reload_flag
7085reload_cmds=$lt_reload_cmds
7086
7087# How to pass a linker flag through the compiler.
7088wl=$lt_wl
7089
7090# Object file suffix (normally "o").
7091objext="$ac_objext"
7092
7093# Old archive suffix (normally "a").
7094libext="$libext"
7095
7096# Executable file suffix (normally "").
7097exeext="$exeext"
7098
7099# Additional compiler flags for building library objects.
7100pic_flag=$lt_pic_flag
7101pic_mode=$pic_mode
7102
7103# Does compiler simultaneously support -c and -o options?
7104compiler_c_o=$lt_compiler_c_o
7105
7106# Can we write directly to a .lo ?
7107compiler_o_lo=$lt_compiler_o_lo
7108
7109# Must we lock files when doing compilation ?
7110need_locks=$lt_need_locks
7111
7112# Do we need the lib prefix for modules?
7113need_lib_prefix=$need_lib_prefix
7114
7115# Do we need a version for libraries?
7116need_version=$need_version
7117
7118# Whether dlopen is supported.
7119dlopen_support=$enable_dlopen
7120
7121# Whether dlopen of programs is supported.
7122dlopen_self=$enable_dlopen_self
7123
7124# Whether dlopen of statically linked programs is supported.
7125dlopen_self_static=$enable_dlopen_self_static
7126
7127# Compiler flag to prevent dynamic linking.
7128link_static_flag=$lt_link_static_flag
7129
7130# Compiler flag to turn off builtin functions.
7131no_builtin_flag=$lt_no_builtin_flag
7132
7133# Compiler flag to allow reflexive dlopens.
7134export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7135
7136# Compiler flag to generate shared objects directly from archives.
7137whole_archive_flag_spec=$lt_whole_archive_flag_spec
7138
7139# Compiler flag to generate thread-safe objects.
7140thread_safe_flag_spec=$lt_thread_safe_flag_spec
7141
7142# Library versioning type.
7143version_type=$version_type
7144
7145# Format of library name prefix.
7146libname_spec=$lt_libname_spec
7147
7148# List of archive names.  First name is the real one, the rest are links.
7149# The last name is the one that the linker finds with -lNAME.
7150library_names_spec=$lt_library_names_spec
7151
7152# The coded name of the library, if different from the real name.
7153soname_spec=$lt_soname_spec
7154
7155# Commands used to build and install an old-style archive.
7156RANLIB=$lt_RANLIB
7157old_archive_cmds=$lt_old_archive_cmds
7158old_postinstall_cmds=$lt_old_postinstall_cmds
7159old_postuninstall_cmds=$lt_old_postuninstall_cmds
7160
7161# Create an old-style archive from a shared archive.
7162old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7163
7164# Create a temporary old-style archive to link instead of a shared archive.
7165old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7166
7167# Commands used to build and install a shared archive.
7168archive_cmds=$lt_archive_cmds
7169archive_expsym_cmds=$lt_archive_expsym_cmds
7170postinstall_cmds=$lt_postinstall_cmds
7171postuninstall_cmds=$lt_postuninstall_cmds
7172
7173# Commands to strip libraries.
7174old_striplib=$lt_old_striplib
7175striplib=$lt_striplib
7176
7177# Method to check whether dependent libraries are shared objects.
7178deplibs_check_method=$lt_deplibs_check_method
7179
7180# Command to use when deplibs_check_method == file_magic.
7181file_magic_cmd=$lt_file_magic_cmd
7182
7183# Flag that allows shared libraries with undefined symbols to be built.
7184allow_undefined_flag=$lt_allow_undefined_flag
7185
7186# Flag that forces no undefined symbols.
7187no_undefined_flag=$lt_no_undefined_flag
7188
7189# Commands used to finish a libtool library installation in a directory.
7190finish_cmds=$lt_finish_cmds
7191
7192# Same as above, but a single script fragment to be evaled but not shown.
7193finish_eval=$lt_finish_eval
7194
7195# Take the output of nm and produce a listing of raw symbols and C names.
7196global_symbol_pipe=$lt_global_symbol_pipe
7197
7198# Transform the output of nm in a proper C declaration
7199global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7200
7201# Transform the output of nm in a C name address pair
7202global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7203
7204# This is the shared library runtime path variable.
7205runpath_var=$runpath_var
7206
7207# This is the shared library path variable.
7208shlibpath_var=$shlibpath_var
7209
7210# Is shlibpath searched before the hard-coded library search path?
7211shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7212
7213# How to hardcode a shared library path into an executable.
7214hardcode_action=$hardcode_action
7215
7216# Whether we should hardcode library paths into libraries.
7217hardcode_into_libs=$hardcode_into_libs
7218
7219# Flag to hardcode \$libdir into a binary during linking.
7220# This must work even if \$libdir does not exist.
7221hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7222
7223# Whether we need a single -rpath flag with a separated argument.
7224hardcode_libdir_separator=$lt_hardcode_libdir_separator
7225
7226# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7227# resulting binary.
7228hardcode_direct=$hardcode_direct
7229
7230# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7231# resulting binary.
7232hardcode_minus_L=$hardcode_minus_L
7233
7234# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7235# the resulting binary.
7236hardcode_shlibpath_var=$hardcode_shlibpath_var
7237
7238# Variables whose values should be saved in libtool wrapper scripts and
7239# restored at relink time.
7240variables_saved_for_relink="$variables_saved_for_relink"
7241
7242# Whether libtool must link a program against all its dependency libraries.
7243link_all_deplibs=$link_all_deplibs
7244
7245# Compile-time system search path for libraries
7246sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7247
7248# Run-time system search path for libraries
7249sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7250
7251# Fix the shell variable \$srcfile for the compiler.
7252fix_srcfile_path="$fix_srcfile_path"
7253
7254# Set to yes if exported symbols are required.
7255always_export_symbols=$always_export_symbols
7256
7257# The commands to list exported symbols.
7258export_symbols_cmds=$lt_export_symbols_cmds
7259
7260# The commands to extract the exported symbol list from a shared archive.
7261extract_expsyms_cmds=$lt_extract_expsyms_cmds
7262
7263# Symbols that should not be listed in the preloaded symbols.
7264exclude_expsyms=$lt_exclude_expsyms
7265
7266# Symbols that must always be exported.
7267include_expsyms=$lt_include_expsyms
7268
7269# ### END LIBTOOL CONFIG
7270
7271__EOF__
7272
7273  case $host_os in
7274  aix3*)
7275    cat <<\EOF >> "${ofile}T"
7276
7277# AIX sometimes has problems with the GCC collect2 program.  For some
7278# reason, if we set the COLLECT_NAMES environment variable, the problems
7279# vanish in a puff of smoke.
7280if test "X${COLLECT_NAMES+set}" != Xset; then
7281  COLLECT_NAMES=
7282  export COLLECT_NAMES
7283fi
7284EOF
7285    ;;
7286  esac
7287
7288  case $host_os in
7289  cygwin* | mingw* | pw32* | os2*)
7290    cat <<'EOF' >> "${ofile}T"
7291      # This is a source program that is used to create dlls on Windows
7292      # Don't remove nor modify the starting and closing comments
7293# /* ltdll.c starts here */
7294# #define WIN32_LEAN_AND_MEAN
7295# #include <windows.h>
7296# #undef WIN32_LEAN_AND_MEAN
7297# #include <stdio.h>
7298#
7299# #ifndef __CYGWIN__
7300# #  ifdef __CYGWIN32__
7301# #    define __CYGWIN__ __CYGWIN32__
7302# #  endif
7303# #endif
7304#
7305# #ifdef __cplusplus
7306# extern "C" {
7307# #endif
7308# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7309# #ifdef __cplusplus
7310# }
7311# #endif
7312#
7313# #ifdef __CYGWIN__
7314# #include <cygwin/cygwin_dll.h>
7315# DECLARE_CYGWIN_DLL( DllMain );
7316# #endif
7317# HINSTANCE __hDllInstance_base;
7318#
7319# BOOL APIENTRY
7320# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7321# {
7322#   __hDllInstance_base = hInst;
7323#   return TRUE;
7324# }
7325# /* ltdll.c ends here */
7326	# This is a source program that is used to create import libraries
7327	# on Windows for dlls which lack them. Don't remove nor modify the
7328	# starting and closing comments
7329# /* impgen.c starts here */
7330# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7331#
7332#  This file is part of GNU libtool.
7333#
7334#  This program is free software; you can redistribute it and/or modify
7335#  it under the terms of the GNU General Public License as published by
7336#  the Free Software Foundation; either version 2 of the License, or
7337#  (at your option) any later version.
7338#
7339#  This program is distributed in the hope that it will be useful,
7340#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7341#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7342#  GNU General Public License for more details.
7343#
7344#  You should have received a copy of the GNU General Public License
7345#  along with this program; if not, write to the Free Software
7346#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7347#  */
7348#
7349# #include <stdio.h>		/* for printf() */
7350# #include <unistd.h>		/* for open(), lseek(), read() */
7351# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
7352# #include <string.h>		/* for strdup() */
7353#
7354# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7355# #ifndef O_BINARY
7356# #define O_BINARY 0
7357# #endif
7358#
7359# static unsigned int
7360# pe_get16 (fd, offset)
7361#      int fd;
7362#      int offset;
7363# {
7364#   unsigned char b[2];
7365#   lseek (fd, offset, SEEK_SET);
7366#   read (fd, b, 2);
7367#   return b[0] + (b[1]<<8);
7368# }
7369#
7370# static unsigned int
7371# pe_get32 (fd, offset)
7372#     int fd;
7373#     int offset;
7374# {
7375#   unsigned char b[4];
7376#   lseek (fd, offset, SEEK_SET);
7377#   read (fd, b, 4);
7378#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7379# }
7380#
7381# static unsigned int
7382# pe_as32 (ptr)
7383#      void *ptr;
7384# {
7385#   unsigned char *b = ptr;
7386#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7387# }
7388#
7389# int
7390# main (argc, argv)
7391#     int argc;
7392#     char *argv[];
7393# {
7394#     int dll;
7395#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7396#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7397#     unsigned long name_rvas, nexp;
7398#     unsigned char *expdata, *erva;
7399#     char *filename, *dll_name;
7400#
7401#     filename = argv[1];
7402#
7403#     dll = open(filename, O_RDONLY|O_BINARY);
7404#     if (dll < 1)
7405# 	return 1;
7406#
7407#     dll_name = filename;
7408#
7409#     for (i=0; filename[i]; i++)
7410# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7411# 	    dll_name = filename + i +1;
7412#
7413#     pe_header_offset = pe_get32 (dll, 0x3c);
7414#     opthdr_ofs = pe_header_offset + 4 + 20;
7415#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7416#
7417#     if (num_entries < 1) /* no exports */
7418# 	return 1;
7419#
7420#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7421#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7422#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7423#     secptr = (pe_header_offset + 4 + 20 +
7424# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
7425#
7426#     expptr = 0;
7427#     for (i = 0; i < nsections; i++)
7428#     {
7429# 	char sname[8];
7430# 	unsigned long secptr1 = secptr + 40 * i;
7431# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7432# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7433# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7434# 	lseek(dll, secptr1, SEEK_SET);
7435# 	read(dll, sname, 8);
7436# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
7437# 	{
7438# 	    expptr = fptr + (export_rva - vaddr);
7439# 	    if (export_rva + export_size > vaddr + vsize)
7440# 		export_size = vsize - (export_rva - vaddr);
7441# 	    break;
7442# 	}
7443#     }
7444#
7445#     expdata = (unsigned char*)malloc(export_size);
7446#     lseek (dll, expptr, SEEK_SET);
7447#     read (dll, expdata, export_size);
7448#     erva = expdata - export_rva;
7449#
7450#     nexp = pe_as32 (expdata+24);
7451#     name_rvas = pe_as32 (expdata+32);
7452#
7453#     printf ("EXPORTS\n");
7454#     for (i = 0; i<nexp; i++)
7455#     {
7456# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7457# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7458#     }
7459#
7460#     return 0;
7461# }
7462# /* impgen.c ends here */
7463
7464EOF
7465    ;;
7466  esac
7467
7468  # We use sed instead of cat because bash on DJGPP gets confused if
7469  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7470  # text mode, it properly converts lines to CR/LF.  This bash problem
7471  # is reportedly fixed, but why not run on old versions too?
7472  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7473
7474  mv -f "${ofile}T" "$ofile" || \
7475    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7476  chmod +x "$ofile"
7477fi
7478##
7479## END FIXME
7480
7481
7482
7483
7484
7485# This can be used to rebuild libtool when needed
7486LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7487
7488# Always use our own libtool.
7489LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7490
7491# Prevent multiple expansion
7492
7493  # Checks whether to build shared and/or static libraries
7494
7495# Miscellaneous:
7496if test x_$GCC = x_yes; then
7497    OPTOPTS=${OPTOPTS:-"-Wall -Wmissing-prototypes"}
7498fi
7499
7500
7501# Write output:
7502ac_config_files="$ac_config_files Makefile"
7503
7504cat >confcache <<\_ACEOF
7505# This file is a shell script that caches the results of configure
7506# tests run on this system so they can be shared between configure
7507# scripts and configure runs, see configure's option --config-cache.
7508# It is not useful on other systems.  If it contains results you don't
7509# want to keep, you may remove or edit it.
7510#
7511# config.status only pays attention to the cache file if you give it
7512# the --recheck option to rerun configure.
7513#
7514# `ac_cv_env_foo' variables (set or unset) will be overridden when
7515# loading this file, other *unset* `ac_cv_foo' will be assigned the
7516# following values.
7517
7518_ACEOF
7519
7520# The following way of writing the cache mishandles newlines in values,
7521# but we know of no workaround that is simple, portable, and efficient.
7522# So, we kill variables containing newlines.
7523# Ultrix sh set writes to stderr and can't be redirected directly,
7524# and sets the high bit in the cache file unless we assign to the vars.
7525(
7526  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7527    eval ac_val=\$$ac_var
7528    case $ac_val in #(
7529    *${as_nl}*)
7530      case $ac_var in #(
7531      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7532$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7533      esac
7534      case $ac_var in #(
7535      _ | IFS | as_nl) ;; #(
7536      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7537      *) { eval $ac_var=; unset $ac_var;} ;;
7538      esac ;;
7539    esac
7540  done
7541
7542  (set) 2>&1 |
7543    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7544    *${as_nl}ac_space=\ *)
7545      # `set' does not quote correctly, so add quotes: double-quote
7546      # substitution turns \\\\ into \\, and sed turns \\ into \.
7547      sed -n \
7548	"s/'/'\\\\''/g;
7549	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7550      ;; #(
7551    *)
7552      # `set' quotes correctly as required by POSIX, so do not add quotes.
7553      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7554      ;;
7555    esac |
7556    sort
7557) |
7558  sed '
7559     /^ac_cv_env_/b end
7560     t clear
7561     :clear
7562     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7563     t end
7564     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7565     :end' >>confcache
7566if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7567  if test -w "$cache_file"; then
7568    if test "x$cache_file" != "x/dev/null"; then
7569      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7570$as_echo "$as_me: updating cache $cache_file" >&6;}
7571      if test ! -f "$cache_file" || test -h "$cache_file"; then
7572	cat confcache >"$cache_file"
7573      else
7574        case $cache_file in #(
7575        */* | ?:*)
7576	  mv -f confcache "$cache_file"$$ &&
7577	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7578        *)
7579	  mv -f confcache "$cache_file" ;;
7580	esac
7581      fi
7582    fi
7583  else
7584    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7585$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7586  fi
7587fi
7588rm -f confcache
7589
7590test "x$prefix" = xNONE && prefix=$ac_default_prefix
7591# Let make expand exec_prefix.
7592test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7593
7594DEFS=-DHAVE_CONFIG_H
7595
7596ac_libobjs=
7597ac_ltlibobjs=
7598U=
7599for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7600  # 1. Remove the extension, and $U if already installed.
7601  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7602  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7603  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7604  #    will be set to the directory where LIBOBJS objects are built.
7605  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7606  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7607done
7608LIBOBJS=$ac_libobjs
7609
7610LTLIBOBJS=$ac_ltlibobjs
7611
7612
7613
7614: "${CONFIG_STATUS=./config.status}"
7615ac_write_fail=0
7616ac_clean_files_save=$ac_clean_files
7617ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7619$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7620as_write_fail=0
7621cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7622#! $SHELL
7623# Generated by $as_me.
7624# Run this file to recreate the current configuration.
7625# Compiler output produced by configure, useful for debugging
7626# configure, is in config.log if it exists.
7627
7628debug=false
7629ac_cs_recheck=false
7630ac_cs_silent=false
7631
7632SHELL=\${CONFIG_SHELL-$SHELL}
7633export SHELL
7634_ASEOF
7635cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7636## -------------------- ##
7637## M4sh Initialization. ##
7638## -------------------- ##
7639
7640# Be more Bourne compatible
7641DUALCASE=1; export DUALCASE # for MKS sh
7642if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7643  emulate sh
7644  NULLCMD=:
7645  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7646  # is contrary to our usage.  Disable this feature.
7647  alias -g '${1+"$@"}'='"$@"'
7648  setopt NO_GLOB_SUBST
7649else
7650  case `(set -o) 2>/dev/null` in #(
7651  *posix*) :
7652    set -o posix ;; #(
7653  *) :
7654     ;;
7655esac
7656fi
7657
7658
7659as_nl='
7660'
7661export as_nl
7662# Printing a long string crashes Solaris 7 /usr/bin/printf.
7663as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7664as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7665as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7666# Prefer a ksh shell builtin over an external printf program on Solaris,
7667# but without wasting forks for bash or zsh.
7668if test -z "$BASH_VERSION$ZSH_VERSION" \
7669    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7670  as_echo='print -r --'
7671  as_echo_n='print -rn --'
7672elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7673  as_echo='printf %s\n'
7674  as_echo_n='printf %s'
7675else
7676  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7677    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7678    as_echo_n='/usr/ucb/echo -n'
7679  else
7680    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7681    as_echo_n_body='eval
7682      arg=$1;
7683      case $arg in #(
7684      *"$as_nl"*)
7685	expr "X$arg" : "X\\(.*\\)$as_nl";
7686	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7687      esac;
7688      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7689    '
7690    export as_echo_n_body
7691    as_echo_n='sh -c $as_echo_n_body as_echo'
7692  fi
7693  export as_echo_body
7694  as_echo='sh -c $as_echo_body as_echo'
7695fi
7696
7697# The user is always right.
7698if test "${PATH_SEPARATOR+set}" != set; then
7699  PATH_SEPARATOR=:
7700  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7701    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7702      PATH_SEPARATOR=';'
7703  }
7704fi
7705
7706
7707# IFS
7708# We need space, tab and new line, in precisely that order.  Quoting is
7709# there to prevent editors from complaining about space-tab.
7710# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7711# splitting by setting IFS to empty value.)
7712IFS=" ""	$as_nl"
7713
7714# Find who we are.  Look in the path if we contain no directory separator.
7715as_myself=
7716case $0 in #((
7717  *[\\/]* ) as_myself=$0 ;;
7718  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721  IFS=$as_save_IFS
7722  test -z "$as_dir" && as_dir=.
7723    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7724  done
7725IFS=$as_save_IFS
7726
7727     ;;
7728esac
7729# We did not find ourselves, most probably we were run as `sh COMMAND'
7730# in which case we are not to be found in the path.
7731if test "x$as_myself" = x; then
7732  as_myself=$0
7733fi
7734if test ! -f "$as_myself"; then
7735  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7736  exit 1
7737fi
7738
7739# Unset variables that we do not need and which cause bugs (e.g. in
7740# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7741# suppresses any "Segmentation fault" message there.  '((' could
7742# trigger a bug in pdksh 5.2.14.
7743for as_var in BASH_ENV ENV MAIL MAILPATH
7744do eval test x\${$as_var+set} = xset \
7745  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7746done
7747PS1='$ '
7748PS2='> '
7749PS4='+ '
7750
7751# NLS nuisances.
7752LC_ALL=C
7753export LC_ALL
7754LANGUAGE=C
7755export LANGUAGE
7756
7757# CDPATH.
7758(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7759
7760
7761# as_fn_error STATUS ERROR [LINENO LOG_FD]
7762# ----------------------------------------
7763# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7764# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7765# script with STATUS, using 1 if that was 0.
7766as_fn_error ()
7767{
7768  as_status=$1; test $as_status -eq 0 && as_status=1
7769  if test "$4"; then
7770    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7771    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7772  fi
7773  $as_echo "$as_me: error: $2" >&2
7774  as_fn_exit $as_status
7775} # as_fn_error
7776
7777
7778# as_fn_set_status STATUS
7779# -----------------------
7780# Set $? to STATUS, without forking.
7781as_fn_set_status ()
7782{
7783  return $1
7784} # as_fn_set_status
7785
7786# as_fn_exit STATUS
7787# -----------------
7788# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7789as_fn_exit ()
7790{
7791  set +e
7792  as_fn_set_status $1
7793  exit $1
7794} # as_fn_exit
7795
7796# as_fn_unset VAR
7797# ---------------
7798# Portably unset VAR.
7799as_fn_unset ()
7800{
7801  { eval $1=; unset $1;}
7802}
7803as_unset=as_fn_unset
7804# as_fn_append VAR VALUE
7805# ----------------------
7806# Append the text in VALUE to the end of the definition contained in VAR. Take
7807# advantage of any shell optimizations that allow amortized linear growth over
7808# repeated appends, instead of the typical quadratic growth present in naive
7809# implementations.
7810if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7811  eval 'as_fn_append ()
7812  {
7813    eval $1+=\$2
7814  }'
7815else
7816  as_fn_append ()
7817  {
7818    eval $1=\$$1\$2
7819  }
7820fi # as_fn_append
7821
7822# as_fn_arith ARG...
7823# ------------------
7824# Perform arithmetic evaluation on the ARGs, and store the result in the
7825# global $as_val. Take advantage of shells that can avoid forks. The arguments
7826# must be portable across $(()) and expr.
7827if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7828  eval 'as_fn_arith ()
7829  {
7830    as_val=$(( $* ))
7831  }'
7832else
7833  as_fn_arith ()
7834  {
7835    as_val=`expr "$@" || test $? -eq 1`
7836  }
7837fi # as_fn_arith
7838
7839
7840if expr a : '\(a\)' >/dev/null 2>&1 &&
7841   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7842  as_expr=expr
7843else
7844  as_expr=false
7845fi
7846
7847if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7848  as_basename=basename
7849else
7850  as_basename=false
7851fi
7852
7853if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7854  as_dirname=dirname
7855else
7856  as_dirname=false
7857fi
7858
7859as_me=`$as_basename -- "$0" ||
7860$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7861	 X"$0" : 'X\(//\)$' \| \
7862	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7863$as_echo X/"$0" |
7864    sed '/^.*\/\([^/][^/]*\)\/*$/{
7865	    s//\1/
7866	    q
7867	  }
7868	  /^X\/\(\/\/\)$/{
7869	    s//\1/
7870	    q
7871	  }
7872	  /^X\/\(\/\).*/{
7873	    s//\1/
7874	    q
7875	  }
7876	  s/.*/./; q'`
7877
7878# Avoid depending upon Character Ranges.
7879as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7880as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7881as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7882as_cr_digits='0123456789'
7883as_cr_alnum=$as_cr_Letters$as_cr_digits
7884
7885ECHO_C= ECHO_N= ECHO_T=
7886case `echo -n x` in #(((((
7887-n*)
7888  case `echo 'xy\c'` in
7889  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7890  xy)  ECHO_C='\c';;
7891  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7892       ECHO_T='	';;
7893  esac;;
7894*)
7895  ECHO_N='-n';;
7896esac
7897
7898rm -f conf$$ conf$$.exe conf$$.file
7899if test -d conf$$.dir; then
7900  rm -f conf$$.dir/conf$$.file
7901else
7902  rm -f conf$$.dir
7903  mkdir conf$$.dir 2>/dev/null
7904fi
7905if (echo >conf$$.file) 2>/dev/null; then
7906  if ln -s conf$$.file conf$$ 2>/dev/null; then
7907    as_ln_s='ln -s'
7908    # ... but there are two gotchas:
7909    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7910    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7911    # In both cases, we have to default to `cp -pR'.
7912    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7913      as_ln_s='cp -pR'
7914  elif ln conf$$.file conf$$ 2>/dev/null; then
7915    as_ln_s=ln
7916  else
7917    as_ln_s='cp -pR'
7918  fi
7919else
7920  as_ln_s='cp -pR'
7921fi
7922rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7923rmdir conf$$.dir 2>/dev/null
7924
7925
7926# as_fn_mkdir_p
7927# -------------
7928# Create "$as_dir" as a directory, including parents if necessary.
7929as_fn_mkdir_p ()
7930{
7931
7932  case $as_dir in #(
7933  -*) as_dir=./$as_dir;;
7934  esac
7935  test -d "$as_dir" || eval $as_mkdir_p || {
7936    as_dirs=
7937    while :; do
7938      case $as_dir in #(
7939      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7940      *) as_qdir=$as_dir;;
7941      esac
7942      as_dirs="'$as_qdir' $as_dirs"
7943      as_dir=`$as_dirname -- "$as_dir" ||
7944$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7945	 X"$as_dir" : 'X\(//\)[^/]' \| \
7946	 X"$as_dir" : 'X\(//\)$' \| \
7947	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7948$as_echo X"$as_dir" |
7949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7950	    s//\1/
7951	    q
7952	  }
7953	  /^X\(\/\/\)[^/].*/{
7954	    s//\1/
7955	    q
7956	  }
7957	  /^X\(\/\/\)$/{
7958	    s//\1/
7959	    q
7960	  }
7961	  /^X\(\/\).*/{
7962	    s//\1/
7963	    q
7964	  }
7965	  s/.*/./; q'`
7966      test -d "$as_dir" && break
7967    done
7968    test -z "$as_dirs" || eval "mkdir $as_dirs"
7969  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7970
7971
7972} # as_fn_mkdir_p
7973if mkdir -p . 2>/dev/null; then
7974  as_mkdir_p='mkdir -p "$as_dir"'
7975else
7976  test -d ./-p && rmdir ./-p
7977  as_mkdir_p=false
7978fi
7979
7980
7981# as_fn_executable_p FILE
7982# -----------------------
7983# Test if FILE is an executable regular file.
7984as_fn_executable_p ()
7985{
7986  test -f "$1" && test -x "$1"
7987} # as_fn_executable_p
7988as_test_x='test -x'
7989as_executable_p=as_fn_executable_p
7990
7991# Sed expression to map a string onto a valid CPP name.
7992as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7993
7994# Sed expression to map a string onto a valid variable name.
7995as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7996
7997
7998exec 6>&1
7999## ----------------------------------- ##
8000## Main body of $CONFIG_STATUS script. ##
8001## ----------------------------------- ##
8002_ASEOF
8003test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8004
8005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8006# Save the log message, to keep $0 and so on meaningful, and to
8007# report actual input values of CONFIG_FILES etc. instead of their
8008# values after options handling.
8009ac_log="
8010This file was extended by libsnet $as_me VERSION, which was
8011generated by GNU Autoconf 2.69.  Invocation command line was
8012
8013  CONFIG_FILES    = $CONFIG_FILES
8014  CONFIG_HEADERS  = $CONFIG_HEADERS
8015  CONFIG_LINKS    = $CONFIG_LINKS
8016  CONFIG_COMMANDS = $CONFIG_COMMANDS
8017  $ $0 $@
8018
8019on `(hostname || uname -n) 2>/dev/null | sed 1q`
8020"
8021
8022_ACEOF
8023
8024case $ac_config_files in *"
8025"*) set x $ac_config_files; shift; ac_config_files=$*;;
8026esac
8027
8028case $ac_config_headers in *"
8029"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8030esac
8031
8032
8033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8034# Files that config.status was made for.
8035config_files="$ac_config_files"
8036config_headers="$ac_config_headers"
8037
8038_ACEOF
8039
8040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8041ac_cs_usage="\
8042\`$as_me' instantiates files and other configuration actions
8043from templates according to the current configuration.  Unless the files
8044and actions are specified as TAGs, all are instantiated by default.
8045
8046Usage: $0 [OPTION]... [TAG]...
8047
8048  -h, --help       print this help, then exit
8049  -V, --version    print version number and configuration settings, then exit
8050      --config     print configuration, then exit
8051  -q, --quiet, --silent
8052                   do not print progress messages
8053  -d, --debug      don't remove temporary files
8054      --recheck    update $as_me by reconfiguring in the same conditions
8055      --file=FILE[:TEMPLATE]
8056                   instantiate the configuration file FILE
8057      --header=FILE[:TEMPLATE]
8058                   instantiate the configuration header FILE
8059
8060Configuration files:
8061$config_files
8062
8063Configuration headers:
8064$config_headers
8065
8066Report bugs to <rsug@umich.edu>."
8067
8068_ACEOF
8069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8070ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8071ac_cs_version="\\
8072libsnet config.status VERSION
8073configured by $0, generated by GNU Autoconf 2.69,
8074  with options \\"\$ac_cs_config\\"
8075
8076Copyright (C) 2012 Free Software Foundation, Inc.
8077This config.status script is free software; the Free Software Foundation
8078gives unlimited permission to copy, distribute and modify it."
8079
8080ac_pwd='$ac_pwd'
8081srcdir='$srcdir'
8082INSTALL='$INSTALL'
8083AWK='$AWK'
8084test -n "\$AWK" || AWK=awk
8085_ACEOF
8086
8087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8088# The default lists apply if the user does not specify any file.
8089ac_need_defaults=:
8090while test $# != 0
8091do
8092  case $1 in
8093  --*=?*)
8094    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8095    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8096    ac_shift=:
8097    ;;
8098  --*=)
8099    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8100    ac_optarg=
8101    ac_shift=:
8102    ;;
8103  *)
8104    ac_option=$1
8105    ac_optarg=$2
8106    ac_shift=shift
8107    ;;
8108  esac
8109
8110  case $ac_option in
8111  # Handling of the options.
8112  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8113    ac_cs_recheck=: ;;
8114  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8115    $as_echo "$ac_cs_version"; exit ;;
8116  --config | --confi | --conf | --con | --co | --c )
8117    $as_echo "$ac_cs_config"; exit ;;
8118  --debug | --debu | --deb | --de | --d | -d )
8119    debug=: ;;
8120  --file | --fil | --fi | --f )
8121    $ac_shift
8122    case $ac_optarg in
8123    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8124    '') as_fn_error $? "missing file argument" ;;
8125    esac
8126    as_fn_append CONFIG_FILES " '$ac_optarg'"
8127    ac_need_defaults=false;;
8128  --header | --heade | --head | --hea )
8129    $ac_shift
8130    case $ac_optarg in
8131    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8132    esac
8133    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8134    ac_need_defaults=false;;
8135  --he | --h)
8136    # Conflict between --help and --header
8137    as_fn_error $? "ambiguous option: \`$1'
8138Try \`$0 --help' for more information.";;
8139  --help | --hel | -h )
8140    $as_echo "$ac_cs_usage"; exit ;;
8141  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8142  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8143    ac_cs_silent=: ;;
8144
8145  # This is an error.
8146  -*) as_fn_error $? "unrecognized option: \`$1'
8147Try \`$0 --help' for more information." ;;
8148
8149  *) as_fn_append ac_config_targets " $1"
8150     ac_need_defaults=false ;;
8151
8152  esac
8153  shift
8154done
8155
8156ac_configure_extra_args=
8157
8158if $ac_cs_silent; then
8159  exec 6>/dev/null
8160  ac_configure_extra_args="$ac_configure_extra_args --silent"
8161fi
8162
8163_ACEOF
8164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8165if \$ac_cs_recheck; then
8166  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8167  shift
8168  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8169  CONFIG_SHELL='$SHELL'
8170  export CONFIG_SHELL
8171  exec "\$@"
8172fi
8173
8174_ACEOF
8175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8176exec 5>>config.log
8177{
8178  echo
8179  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8180## Running $as_me. ##
8181_ASBOX
8182  $as_echo "$ac_log"
8183} >&5
8184
8185_ACEOF
8186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8187_ACEOF
8188
8189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8190
8191# Handling of arguments.
8192for ac_config_target in $ac_config_targets
8193do
8194  case $ac_config_target in
8195    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8196    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8197
8198  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8199  esac
8200done
8201
8202
8203# If the user did not use the arguments to specify the items to instantiate,
8204# then the envvar interface is used.  Set only those that are not.
8205# We use the long form for the default assignment because of an extremely
8206# bizarre bug on SunOS 4.1.3.
8207if $ac_need_defaults; then
8208  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8209  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8210fi
8211
8212# Have a temporary directory for convenience.  Make it in the build tree
8213# simply because there is no reason against having it here, and in addition,
8214# creating and moving files from /tmp can sometimes cause problems.
8215# Hook for its removal unless debugging.
8216# Note that there is a small window in which the directory will not be cleaned:
8217# after its creation but before its name has been assigned to `$tmp'.
8218$debug ||
8219{
8220  tmp= ac_tmp=
8221  trap 'exit_status=$?
8222  : "${ac_tmp:=$tmp}"
8223  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8224' 0
8225  trap 'as_fn_exit 1' 1 2 13 15
8226}
8227# Create a (secure) tmp directory for tmp files.
8228
8229{
8230  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8231  test -d "$tmp"
8232}  ||
8233{
8234  tmp=./conf$$-$RANDOM
8235  (umask 077 && mkdir "$tmp")
8236} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8237ac_tmp=$tmp
8238
8239# Set up the scripts for CONFIG_FILES section.
8240# No need to generate them if there are no CONFIG_FILES.
8241# This happens for instance with `./config.status config.h'.
8242if test -n "$CONFIG_FILES"; then
8243
8244
8245ac_cr=`echo X | tr X '\015'`
8246# On cygwin, bash can eat \r inside `` if the user requested igncr.
8247# But we know of no other shell where ac_cr would be empty at this
8248# point, so we can use a bashism as a fallback.
8249if test "x$ac_cr" = x; then
8250  eval ac_cr=\$\'\\r\'
8251fi
8252ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8253if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8254  ac_cs_awk_cr='\\r'
8255else
8256  ac_cs_awk_cr=$ac_cr
8257fi
8258
8259echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8260_ACEOF
8261
8262
8263{
8264  echo "cat >conf$$subs.awk <<_ACEOF" &&
8265  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8266  echo "_ACEOF"
8267} >conf$$subs.sh ||
8268  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8269ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8270ac_delim='%!_!# '
8271for ac_last_try in false false false false false :; do
8272  . ./conf$$subs.sh ||
8273    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8274
8275  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8276  if test $ac_delim_n = $ac_delim_num; then
8277    break
8278  elif $ac_last_try; then
8279    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8280  else
8281    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8282  fi
8283done
8284rm -f conf$$subs.sh
8285
8286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8287cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8288_ACEOF
8289sed -n '
8290h
8291s/^/S["/; s/!.*/"]=/
8292p
8293g
8294s/^[^!]*!//
8295:repl
8296t repl
8297s/'"$ac_delim"'$//
8298t delim
8299:nl
8300h
8301s/\(.\{148\}\)..*/\1/
8302t more1
8303s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8304p
8305n
8306b repl
8307:more1
8308s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8309p
8310g
8311s/.\{148\}//
8312t nl
8313:delim
8314h
8315s/\(.\{148\}\)..*/\1/
8316t more2
8317s/["\\]/\\&/g; s/^/"/; s/$/"/
8318p
8319b
8320:more2
8321s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8322p
8323g
8324s/.\{148\}//
8325t delim
8326' <conf$$subs.awk | sed '
8327/^[^""]/{
8328  N
8329  s/\n//
8330}
8331' >>$CONFIG_STATUS || ac_write_fail=1
8332rm -f conf$$subs.awk
8333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8334_ACAWK
8335cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8336  for (key in S) S_is_set[key] = 1
8337  FS = ""
8338
8339}
8340{
8341  line = $ 0
8342  nfields = split(line, field, "@")
8343  substed = 0
8344  len = length(field[1])
8345  for (i = 2; i < nfields; i++) {
8346    key = field[i]
8347    keylen = length(key)
8348    if (S_is_set[key]) {
8349      value = S[key]
8350      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8351      len += length(value) + length(field[++i])
8352      substed = 1
8353    } else
8354      len += 1 + keylen
8355  }
8356
8357  print line
8358}
8359
8360_ACAWK
8361_ACEOF
8362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8363if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8364  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8365else
8366  cat
8367fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8368  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8369_ACEOF
8370
8371# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8372# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8373# trailing colons and then remove the whole line if VPATH becomes empty
8374# (actually we leave an empty line to preserve line numbers).
8375if test "x$srcdir" = x.; then
8376  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8377h
8378s///
8379s/^/:/
8380s/[	 ]*$/:/
8381s/:\$(srcdir):/:/g
8382s/:\${srcdir}:/:/g
8383s/:@srcdir@:/:/g
8384s/^:*//
8385s/:*$//
8386x
8387s/\(=[	 ]*\).*/\1/
8388G
8389s/\n//
8390s/^[^=]*=[	 ]*$//
8391}'
8392fi
8393
8394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8395fi # test -n "$CONFIG_FILES"
8396
8397# Set up the scripts for CONFIG_HEADERS section.
8398# No need to generate them if there are no CONFIG_HEADERS.
8399# This happens for instance with `./config.status Makefile'.
8400if test -n "$CONFIG_HEADERS"; then
8401cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8402BEGIN {
8403_ACEOF
8404
8405# Transform confdefs.h into an awk script `defines.awk', embedded as
8406# here-document in config.status, that substitutes the proper values into
8407# config.h.in to produce config.h.
8408
8409# Create a delimiter string that does not exist in confdefs.h, to ease
8410# handling of long lines.
8411ac_delim='%!_!# '
8412for ac_last_try in false false :; do
8413  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8414  if test -z "$ac_tt"; then
8415    break
8416  elif $ac_last_try; then
8417    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8418  else
8419    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8420  fi
8421done
8422
8423# For the awk script, D is an array of macro values keyed by name,
8424# likewise P contains macro parameters if any.  Preserve backslash
8425# newline sequences.
8426
8427ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8428sed -n '
8429s/.\{148\}/&'"$ac_delim"'/g
8430t rset
8431:rset
8432s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
8433t def
8434d
8435:def
8436s/\\$//
8437t bsnl
8438s/["\\]/\\&/g
8439s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8440D["\1"]=" \3"/p
8441s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
8442d
8443:bsnl
8444s/["\\]/\\&/g
8445s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8446D["\1"]=" \3\\\\\\n"\\/p
8447t cont
8448s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8449t cont
8450d
8451:cont
8452n
8453s/.\{148\}/&'"$ac_delim"'/g
8454t clear
8455:clear
8456s/\\$//
8457t bsnlc
8458s/["\\]/\\&/g; s/^/"/; s/$/"/p
8459d
8460:bsnlc
8461s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8462b cont
8463' <confdefs.h | sed '
8464s/'"$ac_delim"'/"\\\
8465"/g' >>$CONFIG_STATUS || ac_write_fail=1
8466
8467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8468  for (key in D) D_is_set[key] = 1
8469  FS = ""
8470}
8471/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8472  line = \$ 0
8473  split(line, arg, " ")
8474  if (arg[1] == "#") {
8475    defundef = arg[2]
8476    mac1 = arg[3]
8477  } else {
8478    defundef = substr(arg[1], 2)
8479    mac1 = arg[2]
8480  }
8481  split(mac1, mac2, "(") #)
8482  macro = mac2[1]
8483  prefix = substr(line, 1, index(line, defundef) - 1)
8484  if (D_is_set[macro]) {
8485    # Preserve the white space surrounding the "#".
8486    print prefix "define", macro P[macro] D[macro]
8487    next
8488  } else {
8489    # Replace #undef with comments.  This is necessary, for example,
8490    # in the case of _POSIX_SOURCE, which is predefined and required
8491    # on some systems where configure will not decide to define it.
8492    if (defundef == "undef") {
8493      print "/*", prefix defundef, macro, "*/"
8494      next
8495    }
8496  }
8497}
8498{ print }
8499_ACAWK
8500_ACEOF
8501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8502  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8503fi # test -n "$CONFIG_HEADERS"
8504
8505
8506eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
8507shift
8508for ac_tag
8509do
8510  case $ac_tag in
8511  :[FHLC]) ac_mode=$ac_tag; continue;;
8512  esac
8513  case $ac_mode$ac_tag in
8514  :[FHL]*:*);;
8515  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8516  :[FH]-) ac_tag=-:-;;
8517  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8518  esac
8519  ac_save_IFS=$IFS
8520  IFS=:
8521  set x $ac_tag
8522  IFS=$ac_save_IFS
8523  shift
8524  ac_file=$1
8525  shift
8526
8527  case $ac_mode in
8528  :L) ac_source=$1;;
8529  :[FH])
8530    ac_file_inputs=
8531    for ac_f
8532    do
8533      case $ac_f in
8534      -) ac_f="$ac_tmp/stdin";;
8535      *) # Look for the file first in the build tree, then in the source tree
8536	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8537	 # because $ac_f cannot contain `:'.
8538	 test -f "$ac_f" ||
8539	   case $ac_f in
8540	   [\\/$]*) false;;
8541	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8542	   esac ||
8543	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8544      esac
8545      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8546      as_fn_append ac_file_inputs " '$ac_f'"
8547    done
8548
8549    # Let's still pretend it is `configure' which instantiates (i.e., don't
8550    # use $as_me), people would be surprised to read:
8551    #    /* config.h.  Generated by config.status.  */
8552    configure_input='Generated from '`
8553	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8554	`' by configure.'
8555    if test x"$ac_file" != x-; then
8556      configure_input="$ac_file.  $configure_input"
8557      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8558$as_echo "$as_me: creating $ac_file" >&6;}
8559    fi
8560    # Neutralize special characters interpreted by sed in replacement strings.
8561    case $configure_input in #(
8562    *\&* | *\|* | *\\* )
8563       ac_sed_conf_input=`$as_echo "$configure_input" |
8564       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8565    *) ac_sed_conf_input=$configure_input;;
8566    esac
8567
8568    case $ac_tag in
8569    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8570      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8571    esac
8572    ;;
8573  esac
8574
8575  ac_dir=`$as_dirname -- "$ac_file" ||
8576$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8577	 X"$ac_file" : 'X\(//\)[^/]' \| \
8578	 X"$ac_file" : 'X\(//\)$' \| \
8579	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8580$as_echo X"$ac_file" |
8581    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8582	    s//\1/
8583	    q
8584	  }
8585	  /^X\(\/\/\)[^/].*/{
8586	    s//\1/
8587	    q
8588	  }
8589	  /^X\(\/\/\)$/{
8590	    s//\1/
8591	    q
8592	  }
8593	  /^X\(\/\).*/{
8594	    s//\1/
8595	    q
8596	  }
8597	  s/.*/./; q'`
8598  as_dir="$ac_dir"; as_fn_mkdir_p
8599  ac_builddir=.
8600
8601case "$ac_dir" in
8602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8603*)
8604  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8605  # A ".." for each directory in $ac_dir_suffix.
8606  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8607  case $ac_top_builddir_sub in
8608  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8609  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8610  esac ;;
8611esac
8612ac_abs_top_builddir=$ac_pwd
8613ac_abs_builddir=$ac_pwd$ac_dir_suffix
8614# for backward compatibility:
8615ac_top_builddir=$ac_top_build_prefix
8616
8617case $srcdir in
8618  .)  # We are building in place.
8619    ac_srcdir=.
8620    ac_top_srcdir=$ac_top_builddir_sub
8621    ac_abs_top_srcdir=$ac_pwd ;;
8622  [\\/]* | ?:[\\/]* )  # Absolute name.
8623    ac_srcdir=$srcdir$ac_dir_suffix;
8624    ac_top_srcdir=$srcdir
8625    ac_abs_top_srcdir=$srcdir ;;
8626  *) # Relative name.
8627    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8628    ac_top_srcdir=$ac_top_build_prefix$srcdir
8629    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8630esac
8631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8632
8633
8634  case $ac_mode in
8635  :F)
8636  #
8637  # CONFIG_FILE
8638  #
8639
8640  case $INSTALL in
8641  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8642  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8643  esac
8644_ACEOF
8645
8646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8647# If the template does not know about datarootdir, expand it.
8648# FIXME: This hack should be removed a few years after 2.60.
8649ac_datarootdir_hack=; ac_datarootdir_seen=
8650ac_sed_dataroot='
8651/datarootdir/ {
8652  p
8653  q
8654}
8655/@datadir@/p
8656/@docdir@/p
8657/@infodir@/p
8658/@localedir@/p
8659/@mandir@/p'
8660case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8661*datarootdir*) ac_datarootdir_seen=yes;;
8662*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8663  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8664$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8665_ACEOF
8666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8667  ac_datarootdir_hack='
8668  s&@datadir@&$datadir&g
8669  s&@docdir@&$docdir&g
8670  s&@infodir@&$infodir&g
8671  s&@localedir@&$localedir&g
8672  s&@mandir@&$mandir&g
8673  s&\\\${datarootdir}&$datarootdir&g' ;;
8674esac
8675_ACEOF
8676
8677# Neutralize VPATH when `$srcdir' = `.'.
8678# Shell code in configure.ac might set extrasub.
8679# FIXME: do we really want to maintain this feature?
8680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8681ac_sed_extra="$ac_vpsub
8682$extrasub
8683_ACEOF
8684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8685:t
8686/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8687s|@configure_input@|$ac_sed_conf_input|;t t
8688s&@top_builddir@&$ac_top_builddir_sub&;t t
8689s&@top_build_prefix@&$ac_top_build_prefix&;t t
8690s&@srcdir@&$ac_srcdir&;t t
8691s&@abs_srcdir@&$ac_abs_srcdir&;t t
8692s&@top_srcdir@&$ac_top_srcdir&;t t
8693s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8694s&@builddir@&$ac_builddir&;t t
8695s&@abs_builddir@&$ac_abs_builddir&;t t
8696s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8697s&@INSTALL@&$ac_INSTALL&;t t
8698$ac_datarootdir_hack
8699"
8700eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8701  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8702
8703test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8704  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8705  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8706      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8707  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8708which seems to be undefined.  Please make sure it is defined" >&5
8709$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8710which seems to be undefined.  Please make sure it is defined" >&2;}
8711
8712  rm -f "$ac_tmp/stdin"
8713  case $ac_file in
8714  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8715  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8716  esac \
8717  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8718 ;;
8719  :H)
8720  #
8721  # CONFIG_HEADER
8722  #
8723  if test x"$ac_file" != x-; then
8724    {
8725      $as_echo "/* $configure_input  */" \
8726      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8727    } >"$ac_tmp/config.h" \
8728      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8729    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8730      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8731$as_echo "$as_me: $ac_file is unchanged" >&6;}
8732    else
8733      rm -f "$ac_file"
8734      mv "$ac_tmp/config.h" "$ac_file" \
8735	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8736    fi
8737  else
8738    $as_echo "/* $configure_input  */" \
8739      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8740      || as_fn_error $? "could not create -" "$LINENO" 5
8741  fi
8742 ;;
8743
8744
8745  esac
8746
8747done # for ac_tag
8748
8749
8750as_fn_exit 0
8751_ACEOF
8752ac_clean_files=$ac_clean_files_save
8753
8754test $ac_write_fail = 0 ||
8755  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8756
8757
8758# configure is writing to config.log, and then calls config.status.
8759# config.status does its own redirection, appending to config.log.
8760# Unfortunately, on DOS this fails, as config.log is still kept open
8761# by configure, so config.status won't be able to write to it; its
8762# output is simply discarded.  So we exec the FD to /dev/null,
8763# effectively closing config.log, so it can be properly (re)opened and
8764# appended to by config.status.  When coming back to configure, we
8765# need to make the FD available again.
8766if test "$no_create" != yes; then
8767  ac_cs_success=:
8768  ac_config_status_args=
8769  test "$silent" = yes &&
8770    ac_config_status_args="$ac_config_status_args --quiet"
8771  exec 5>/dev/null
8772  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8773  exec 5>>config.log
8774  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8775  # would make configure fail if this is the last instruction.
8776  $ac_cs_success || as_fn_exit 1
8777fi
8778if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8779  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8780$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8781fi
8782
8783