1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for sntp 4.2.6.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530# Check that we are running under the correct shell.
531SHELL=${CONFIG_SHELL-/bin/sh}
532
533case X$ECHO in
534X*--fallback-echo)
535  # Remove one level of quotation (which was required for Make).
536  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
537  ;;
538esac
539
540echo=${ECHO-echo}
541if test "X$1" = X--no-reexec; then
542  # Discard the --no-reexec flag, and continue.
543  shift
544elif test "X$1" = X--fallback-echo; then
545  # Avoid inline document here, it may be left over
546  :
547elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
548  # Yippee, $echo works!
549  :
550else
551  # Restart under the correct shell.
552  exec $SHELL "$0" --no-reexec ${1+"$@"}
553fi
554
555if test "X$1" = X--fallback-echo; then
556  # used as fallback echo
557  shift
558  cat <<EOF
559$*
560EOF
561  exit 0
562fi
563
564# The HP-UX ksh and POSIX shell print the target directory to stdout
565# if CDPATH is set.
566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568if test -z "$ECHO"; then
569if test "X${echo_test_string+set}" != Xset; then
570# find a string as large as possible, as long as the shell can cope with it
571  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
574       echo_test_string=`eval $cmd` &&
575       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
576    then
577      break
578    fi
579  done
580fi
581
582if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
583   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
584   test "X$echo_testing_string" = "X$echo_test_string"; then
585  :
586else
587  # The Solaris, AIX, and Digital Unix default echo programs unquote
588  # backslashes.  This makes it impossible to quote backslashes using
589  #   echo "$something" | sed 's/\\/\\\\/g'
590  #
591  # So, first we look for a working echo in the user's PATH.
592
593  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594  for dir in $PATH /usr/ucb; do
595    IFS="$lt_save_ifs"
596    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599       test "X$echo_testing_string" = "X$echo_test_string"; then
600      echo="$dir/echo"
601      break
602    fi
603  done
604  IFS="$lt_save_ifs"
605
606  if test "X$echo" = Xecho; then
607    # We didn't find a better echo, so look for alternatives.
608    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
609       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
610       test "X$echo_testing_string" = "X$echo_test_string"; then
611      # This shell has a builtin print -r that does the trick.
612      echo='print -r'
613    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
614	 test "X$CONFIG_SHELL" != X/bin/ksh; then
615      # If we have ksh, try running configure again with it.
616      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617      export ORIGINAL_CONFIG_SHELL
618      CONFIG_SHELL=/bin/ksh
619      export CONFIG_SHELL
620      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621    else
622      # Try using printf.
623      echo='printf %s\n'
624      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
625	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
626	 test "X$echo_testing_string" = "X$echo_test_string"; then
627	# Cool, printf works
628	:
629      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630	   test "X$echo_testing_string" = 'X\t' &&
631	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632	   test "X$echo_testing_string" = "X$echo_test_string"; then
633	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634	export CONFIG_SHELL
635	SHELL="$CONFIG_SHELL"
636	export SHELL
637	echo="$CONFIG_SHELL $0 --fallback-echo"
638      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639	   test "X$echo_testing_string" = 'X\t' &&
640	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641	   test "X$echo_testing_string" = "X$echo_test_string"; then
642	echo="$CONFIG_SHELL $0 --fallback-echo"
643      else
644	# maybe with a smaller string...
645	prev=:
646
647	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
649	  then
650	    break
651	  fi
652	  prev="$cmd"
653	done
654
655	if test "$prev" != 'sed 50q "$0"'; then
656	  echo_test_string=`eval $prev`
657	  export echo_test_string
658	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659	else
660	  # Oops.  We lost completely, so just stick with echo.
661	  echo=echo
662	fi
663      fi
664    fi
665  fi
666fi
667fi
668
669# Copy echo and quote the copy suitably for passing to libtool from
670# the Makefile, instead of quoting the original, which is used later.
671ECHO=$echo
672if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674fi
675
676
677
678
679test -n "$DJDIR" || exec 7<&0 </dev/null
680exec 6>&1
681
682# Name of the host.
683# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684# so uname gets run too.
685ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686
687#
688# Initializations.
689#
690ac_default_prefix=/usr/local
691ac_clean_files=
692ac_config_libobj_dir=.
693LIBOBJS=
694cross_compiling=no
695subdirs=
696MFLAGS=
697MAKEFLAGS=
698
699# Identity of this package.
700PACKAGE_NAME='sntp'
701PACKAGE_TARNAME='sntp'
702PACKAGE_VERSION='4.2.6'
703PACKAGE_STRING='sntp 4.2.6'
704PACKAGE_BUGREPORT=''
705PACKAGE_URL=''
706
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
746LIBOBJS
747BINSUBDIR
748HAVE_INLINE
749LIBTOOL
750RANLIB
751AR
752ECHO
753LN_S
754EGREP
755GREP
756CPP
757LIBOPTS_CFLAGS
758LIBOPTS_LDADD
759NEED_LIBOPTS_FALSE
760NEED_LIBOPTS_TRUE
761INSTALL_LIBOPTS_FALSE
762INSTALL_LIBOPTS_TRUE
763LIBOPTS_DIR
764am__fastdepCC_FALSE
765am__fastdepCC_TRUE
766CCDEPMODE
767AMDEPBACKSLASH
768AMDEP_FALSE
769AMDEP_TRUE
770am__quote
771am__include
772DEPDIR
773OBJEXT
774EXEEXT
775ac_ct_CC
776CPPFLAGS
777LDFLAGS
778CFLAGS
779CC
780host_os
781host_vendor
782host_cpu
783host
784build_os
785build_vendor
786build_cpu
787build
788am__untar
789am__tar
790AMTAR
791am__leading_dot
792SET_MAKE
793AWK
794mkdir_p
795MKDIR_P
796INSTALL_STRIP_PROGRAM
797STRIP
798install_sh
799MAKEINFO
800AUTOHEADER
801AUTOMAKE
802AUTOCONF
803ACLOCAL
804VERSION
805PACKAGE
806CYGPATH_W
807am__isrc
808INSTALL_DATA
809INSTALL_SCRIPT
810INSTALL_PROGRAM
811target_alias
812host_alias
813build_alias
814LIBS
815ECHO_T
816ECHO_N
817ECHO_C
818DEFS
819mandir
820localedir
821libdir
822psdir
823pdfdir
824dvidir
825htmldir
826infodir
827docdir
828oldincludedir
829includedir
830localstatedir
831sharedstatedir
832sysconfdir
833datadir
834datarootdir
835libexecdir
836sbindir
837bindir
838program_transform_name
839prefix
840exec_prefix
841PACKAGE_URL
842PACKAGE_BUGREPORT
843PACKAGE_STRING
844PACKAGE_VERSION
845PACKAGE_TARNAME
846PACKAGE_NAME
847PATH_SEPARATOR
848SHELL'
849ac_subst_files=''
850ac_user_opts='
851enable_option_checking
852enable_dependency_tracking
853enable_shared
854enable_local_libopts
855enable_libopts_install
856with_autoopts_config
857with_regex_header
858with_libregex
859with_libregex_cflags
860with_libregex_libs
861enable_optional_args
862enable_static
863enable_fast_install
864with_gnu_ld
865enable_libtool_lock
866with_pic
867with_tags
868enable_ipv6
869with_kame
870with_binsubdir
871'
872      ac_precious_vars='build_alias
873host_alias
874target_alias
875CC
876CFLAGS
877LDFLAGS
878LIBS
879CPPFLAGS
880CPP'
881
882
883# Initialize some variables set by options.
884ac_init_help=
885ac_init_version=false
886ac_unrecognized_opts=
887ac_unrecognized_sep=
888# The variables have the same names as the options, with
889# dashes changed to underlines.
890cache_file=/dev/null
891exec_prefix=NONE
892no_create=
893no_recursion=
894prefix=NONE
895program_prefix=NONE
896program_suffix=NONE
897program_transform_name=s,x,x,
898silent=
899site=
900srcdir=
901verbose=
902x_includes=NONE
903x_libraries=NONE
904
905# Installation directory options.
906# These are left unexpanded so users can "make install exec_prefix=/foo"
907# and all the variables that are supposed to be based on exec_prefix
908# by default will actually change.
909# Use braces instead of parens because sh, perl, etc. also accept them.
910# (The list follows the same order as the GNU Coding Standards.)
911bindir='${exec_prefix}/bin'
912sbindir='${exec_prefix}/sbin'
913libexecdir='${exec_prefix}/libexec'
914datarootdir='${prefix}/share'
915datadir='${datarootdir}'
916sysconfdir='${prefix}/etc'
917sharedstatedir='${prefix}/com'
918localstatedir='${prefix}/var'
919includedir='${prefix}/include'
920oldincludedir='/usr/include'
921docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922infodir='${datarootdir}/info'
923htmldir='${docdir}'
924dvidir='${docdir}'
925pdfdir='${docdir}'
926psdir='${docdir}'
927libdir='${exec_prefix}/lib'
928localedir='${datarootdir}/locale'
929mandir='${datarootdir}/man'
930
931ac_prev=
932ac_dashdash=
933for ac_option
934do
935  # If the previous option needs an argument, assign it.
936  if test -n "$ac_prev"; then
937    eval $ac_prev=\$ac_option
938    ac_prev=
939    continue
940  fi
941
942  case $ac_option in
943  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944  *)	ac_optarg=yes ;;
945  esac
946
947  # Accept the important Cygnus configure options, so we can diagnose typos.
948
949  case $ac_dashdash$ac_option in
950  --)
951    ac_dashdash=yes ;;
952
953  -bindir | --bindir | --bindi | --bind | --bin | --bi)
954    ac_prev=bindir ;;
955  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956    bindir=$ac_optarg ;;
957
958  -build | --build | --buil | --bui | --bu)
959    ac_prev=build_alias ;;
960  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961    build_alias=$ac_optarg ;;
962
963  -cache-file | --cache-file | --cache-fil | --cache-fi \
964  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965    ac_prev=cache_file ;;
966  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968    cache_file=$ac_optarg ;;
969
970  --config-cache | -C)
971    cache_file=config.cache ;;
972
973  -datadir | --datadir | --datadi | --datad)
974    ac_prev=datadir ;;
975  -datadir=* | --datadir=* | --datadi=* | --datad=*)
976    datadir=$ac_optarg ;;
977
978  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979  | --dataroo | --dataro | --datar)
980    ac_prev=datarootdir ;;
981  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983    datarootdir=$ac_optarg ;;
984
985  -disable-* | --disable-*)
986    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987    # Reject names that are not valid shell variable names.
988    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989      as_fn_error "invalid feature name: $ac_useropt"
990    ac_useropt_orig=$ac_useropt
991    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992    case $ac_user_opts in
993      *"
994"enable_$ac_useropt"
995"*) ;;
996      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997	 ac_unrecognized_sep=', ';;
998    esac
999    eval enable_$ac_useropt=no ;;
1000
1001  -docdir | --docdir | --docdi | --doc | --do)
1002    ac_prev=docdir ;;
1003  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004    docdir=$ac_optarg ;;
1005
1006  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007    ac_prev=dvidir ;;
1008  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009    dvidir=$ac_optarg ;;
1010
1011  -enable-* | --enable-*)
1012    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013    # Reject names that are not valid shell variable names.
1014    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015      as_fn_error "invalid feature name: $ac_useropt"
1016    ac_useropt_orig=$ac_useropt
1017    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018    case $ac_user_opts in
1019      *"
1020"enable_$ac_useropt"
1021"*) ;;
1022      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023	 ac_unrecognized_sep=', ';;
1024    esac
1025    eval enable_$ac_useropt=\$ac_optarg ;;
1026
1027  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029  | --exec | --exe | --ex)
1030    ac_prev=exec_prefix ;;
1031  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033  | --exec=* | --exe=* | --ex=*)
1034    exec_prefix=$ac_optarg ;;
1035
1036  -gas | --gas | --ga | --g)
1037    # Obsolete; use --with-gas.
1038    with_gas=yes ;;
1039
1040  -help | --help | --hel | --he | -h)
1041    ac_init_help=long ;;
1042  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043    ac_init_help=recursive ;;
1044  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045    ac_init_help=short ;;
1046
1047  -host | --host | --hos | --ho)
1048    ac_prev=host_alias ;;
1049  -host=* | --host=* | --hos=* | --ho=*)
1050    host_alias=$ac_optarg ;;
1051
1052  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053    ac_prev=htmldir ;;
1054  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055  | --ht=*)
1056    htmldir=$ac_optarg ;;
1057
1058  -includedir | --includedir | --includedi | --included | --include \
1059  | --includ | --inclu | --incl | --inc)
1060    ac_prev=includedir ;;
1061  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062  | --includ=* | --inclu=* | --incl=* | --inc=*)
1063    includedir=$ac_optarg ;;
1064
1065  -infodir | --infodir | --infodi | --infod | --info | --inf)
1066    ac_prev=infodir ;;
1067  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068    infodir=$ac_optarg ;;
1069
1070  -libdir | --libdir | --libdi | --libd)
1071    ac_prev=libdir ;;
1072  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073    libdir=$ac_optarg ;;
1074
1075  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076  | --libexe | --libex | --libe)
1077    ac_prev=libexecdir ;;
1078  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079  | --libexe=* | --libex=* | --libe=*)
1080    libexecdir=$ac_optarg ;;
1081
1082  -localedir | --localedir | --localedi | --localed | --locale)
1083    ac_prev=localedir ;;
1084  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085    localedir=$ac_optarg ;;
1086
1087  -localstatedir | --localstatedir | --localstatedi | --localstated \
1088  | --localstate | --localstat | --localsta | --localst | --locals)
1089    ac_prev=localstatedir ;;
1090  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092    localstatedir=$ac_optarg ;;
1093
1094  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095    ac_prev=mandir ;;
1096  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097    mandir=$ac_optarg ;;
1098
1099  -nfp | --nfp | --nf)
1100    # Obsolete; use --without-fp.
1101    with_fp=no ;;
1102
1103  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104  | --no-cr | --no-c | -n)
1105    no_create=yes ;;
1106
1107  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109    no_recursion=yes ;;
1110
1111  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113  | --oldin | --oldi | --old | --ol | --o)
1114    ac_prev=oldincludedir ;;
1115  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118    oldincludedir=$ac_optarg ;;
1119
1120  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121    ac_prev=prefix ;;
1122  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123    prefix=$ac_optarg ;;
1124
1125  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126  | --program-pre | --program-pr | --program-p)
1127    ac_prev=program_prefix ;;
1128  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130    program_prefix=$ac_optarg ;;
1131
1132  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133  | --program-suf | --program-su | --program-s)
1134    ac_prev=program_suffix ;;
1135  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137    program_suffix=$ac_optarg ;;
1138
1139  -program-transform-name | --program-transform-name \
1140  | --program-transform-nam | --program-transform-na \
1141  | --program-transform-n | --program-transform- \
1142  | --program-transform | --program-transfor \
1143  | --program-transfo | --program-transf \
1144  | --program-trans | --program-tran \
1145  | --progr-tra | --program-tr | --program-t)
1146    ac_prev=program_transform_name ;;
1147  -program-transform-name=* | --program-transform-name=* \
1148  | --program-transform-nam=* | --program-transform-na=* \
1149  | --program-transform-n=* | --program-transform-=* \
1150  | --program-transform=* | --program-transfor=* \
1151  | --program-transfo=* | --program-transf=* \
1152  | --program-trans=* | --program-tran=* \
1153  | --progr-tra=* | --program-tr=* | --program-t=*)
1154    program_transform_name=$ac_optarg ;;
1155
1156  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157    ac_prev=pdfdir ;;
1158  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159    pdfdir=$ac_optarg ;;
1160
1161  -psdir | --psdir | --psdi | --psd | --ps)
1162    ac_prev=psdir ;;
1163  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164    psdir=$ac_optarg ;;
1165
1166  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167  | -silent | --silent | --silen | --sile | --sil)
1168    silent=yes ;;
1169
1170  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171    ac_prev=sbindir ;;
1172  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173  | --sbi=* | --sb=*)
1174    sbindir=$ac_optarg ;;
1175
1176  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178  | --sharedst | --shareds | --shared | --share | --shar \
1179  | --sha | --sh)
1180    ac_prev=sharedstatedir ;;
1181  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184  | --sha=* | --sh=*)
1185    sharedstatedir=$ac_optarg ;;
1186
1187  -site | --site | --sit)
1188    ac_prev=site ;;
1189  -site=* | --site=* | --sit=*)
1190    site=$ac_optarg ;;
1191
1192  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193    ac_prev=srcdir ;;
1194  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195    srcdir=$ac_optarg ;;
1196
1197  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198  | --syscon | --sysco | --sysc | --sys | --sy)
1199    ac_prev=sysconfdir ;;
1200  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202    sysconfdir=$ac_optarg ;;
1203
1204  -target | --target | --targe | --targ | --tar | --ta | --t)
1205    ac_prev=target_alias ;;
1206  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207    target_alias=$ac_optarg ;;
1208
1209  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210    verbose=yes ;;
1211
1212  -version | --version | --versio | --versi | --vers | -V)
1213    ac_init_version=: ;;
1214
1215  -with-* | --with-*)
1216    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217    # Reject names that are not valid shell variable names.
1218    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219      as_fn_error "invalid package name: $ac_useropt"
1220    ac_useropt_orig=$ac_useropt
1221    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222    case $ac_user_opts in
1223      *"
1224"with_$ac_useropt"
1225"*) ;;
1226      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227	 ac_unrecognized_sep=', ';;
1228    esac
1229    eval with_$ac_useropt=\$ac_optarg ;;
1230
1231  -without-* | --without-*)
1232    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233    # Reject names that are not valid shell variable names.
1234    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235      as_fn_error "invalid package name: $ac_useropt"
1236    ac_useropt_orig=$ac_useropt
1237    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238    case $ac_user_opts in
1239      *"
1240"with_$ac_useropt"
1241"*) ;;
1242      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243	 ac_unrecognized_sep=', ';;
1244    esac
1245    eval with_$ac_useropt=no ;;
1246
1247  --x)
1248    # Obsolete; use --with-x.
1249    with_x=yes ;;
1250
1251  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252  | --x-incl | --x-inc | --x-in | --x-i)
1253    ac_prev=x_includes ;;
1254  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256    x_includes=$ac_optarg ;;
1257
1258  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260    ac_prev=x_libraries ;;
1261  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263    x_libraries=$ac_optarg ;;
1264
1265  -*) as_fn_error "unrecognized option: \`$ac_option'
1266Try \`$0 --help' for more information."
1267    ;;
1268
1269  *=*)
1270    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271    # Reject names that are not valid shell variable names.
1272    case $ac_envvar in #(
1273      '' | [0-9]* | *[!_$as_cr_alnum]* )
1274      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1275    esac
1276    eval $ac_envvar=\$ac_optarg
1277    export $ac_envvar ;;
1278
1279  *)
1280    # FIXME: should be removed in autoconf 3.0.
1281    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285    ;;
1286
1287  esac
1288done
1289
1290if test -n "$ac_prev"; then
1291  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292  as_fn_error "missing argument to $ac_option"
1293fi
1294
1295if test -n "$ac_unrecognized_opts"; then
1296  case $enable_option_checking in
1297    no) ;;
1298    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1299    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300  esac
1301fi
1302
1303# Check all directory arguments for consistency.
1304for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305		datadir sysconfdir sharedstatedir localstatedir includedir \
1306		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307		libdir localedir mandir
1308do
1309  eval ac_val=\$$ac_var
1310  # Remove trailing slashes.
1311  case $ac_val in
1312    */ )
1313      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314      eval $ac_var=\$ac_val;;
1315  esac
1316  # Be sure to have absolute directory names.
1317  case $ac_val in
1318    [\\/$]* | ?:[\\/]* )  continue;;
1319    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320  esac
1321  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1322done
1323
1324# There might be people who depend on the old broken behavior: `$host'
1325# used to hold the argument of --host etc.
1326# FIXME: To remove some day.
1327build=$build_alias
1328host=$host_alias
1329target=$target_alias
1330
1331# FIXME: To remove some day.
1332if test "x$host_alias" != x; then
1333  if test "x$build_alias" = x; then
1334    cross_compiling=maybe
1335    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1336    If a cross compiler is detected then cross compile mode will be used." >&2
1337  elif test "x$build_alias" != "x$host_alias"; then
1338    cross_compiling=yes
1339  fi
1340fi
1341
1342ac_tool_prefix=
1343test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344
1345test "$silent" = yes && exec 6>/dev/null
1346
1347
1348ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349ac_ls_di=`ls -di .` &&
1350ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351  as_fn_error "working directory cannot be determined"
1352test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353  as_fn_error "pwd does not report name of working directory"
1354
1355
1356# Find the source files, if location was not specified.
1357if test -z "$srcdir"; then
1358  ac_srcdir_defaulted=yes
1359  # Try the directory containing this script, then the parent directory.
1360  ac_confdir=`$as_dirname -- "$as_myself" ||
1361$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362	 X"$as_myself" : 'X\(//\)[^/]' \| \
1363	 X"$as_myself" : 'X\(//\)$' \| \
1364	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365$as_echo X"$as_myself" |
1366    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367	    s//\1/
1368	    q
1369	  }
1370	  /^X\(\/\/\)[^/].*/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\/\)$/{
1375	    s//\1/
1376	    q
1377	  }
1378	  /^X\(\/\).*/{
1379	    s//\1/
1380	    q
1381	  }
1382	  s/.*/./; q'`
1383  srcdir=$ac_confdir
1384  if test ! -r "$srcdir/$ac_unique_file"; then
1385    srcdir=..
1386  fi
1387else
1388  ac_srcdir_defaulted=no
1389fi
1390if test ! -r "$srcdir/$ac_unique_file"; then
1391  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1393fi
1394ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395ac_abs_confdir=`(
1396	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1397	pwd)`
1398# When building in place, set srcdir=.
1399if test "$ac_abs_confdir" = "$ac_pwd"; then
1400  srcdir=.
1401fi
1402# Remove unnecessary trailing slashes from srcdir.
1403# Double slashes in file names in object file debugging info
1404# mess up M-x gdb in Emacs.
1405case $srcdir in
1406*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407esac
1408for ac_var in $ac_precious_vars; do
1409  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410  eval ac_env_${ac_var}_value=\$${ac_var}
1411  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413done
1414
1415#
1416# Report the --help message.
1417#
1418if test "$ac_init_help" = "long"; then
1419  # Omit some internal or obsolete options to make the list less imposing.
1420  # This message is too long to be a string in the A/UX 3.1 sh.
1421  cat <<_ACEOF
1422\`configure' configures sntp 4.2.6 to adapt to many kinds of systems.
1423
1424Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427VAR=VALUE.  See below for descriptions of some of the useful variables.
1428
1429Defaults for the options are specified in brackets.
1430
1431Configuration:
1432  -h, --help              display this help and exit
1433      --help=short        display options specific to this package
1434      --help=recursive    display the short help of all the included packages
1435  -V, --version           display version information and exit
1436  -q, --quiet, --silent   do not print \`checking...' messages
1437      --cache-file=FILE   cache test results in FILE [disabled]
1438  -C, --config-cache      alias for \`--cache-file=config.cache'
1439  -n, --no-create         do not create output files
1440      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1441
1442Installation directories:
1443  --prefix=PREFIX         install architecture-independent files in PREFIX
1444                          [$ac_default_prefix]
1445  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1446                          [PREFIX]
1447
1448By default, \`make install' will install all the files in
1449\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1450an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451for instance \`--prefix=\$HOME'.
1452
1453For better control, use the options below.
1454
1455Fine tuning of the installation directories:
1456  --bindir=DIR            user executables [EPREFIX/bin]
1457  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1458  --libexecdir=DIR        program executables [EPREFIX/libexec]
1459  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1460  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1461  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1462  --libdir=DIR            object code libraries [EPREFIX/lib]
1463  --includedir=DIR        C header files [PREFIX/include]
1464  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1465  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1466  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1467  --infodir=DIR           info documentation [DATAROOTDIR/info]
1468  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1469  --mandir=DIR            man documentation [DATAROOTDIR/man]
1470  --docdir=DIR            documentation root [DATAROOTDIR/doc/sntp]
1471  --htmldir=DIR           html documentation [DOCDIR]
1472  --dvidir=DIR            dvi documentation [DOCDIR]
1473  --pdfdir=DIR            pdf documentation [DOCDIR]
1474  --psdir=DIR             ps documentation [DOCDIR]
1475_ACEOF
1476
1477  cat <<\_ACEOF
1478
1479Program names:
1480  --program-prefix=PREFIX            prepend PREFIX to installed program names
1481  --program-suffix=SUFFIX            append SUFFIX to installed program names
1482  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1483
1484System types:
1485  --build=BUILD     configure for building on BUILD [guessed]
1486  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1487_ACEOF
1488fi
1489
1490if test -n "$ac_init_help"; then
1491  case $ac_init_help in
1492     short | recursive ) echo "Configuration of sntp 4.2.6:";;
1493   esac
1494  cat <<\_ACEOF
1495
1496Optional Features:
1497  --disable-option-checking  ignore unrecognized --enable/--with options
1498  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1499  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1500  --disable-dependency-tracking  speeds up one-time build
1501  --enable-dependency-tracking   do not reject slow dependency extractors
1502  --enable-shared[=PKGS]  build shared libraries [default=no]
1503  --enable-local-libopts  Force using the supplied libopts tearoff code
1504  --disable-libopts-install
1505                          Do not install libopts with client installation
1506  --disable-optional-args not wanting optional option args
1507  --enable-static[=PKGS]  build static libraries [default=yes]
1508  --enable-fast-install[=PKGS]
1509                          optimize for fast installation [default=yes]
1510  --disable-libtool-lock  avoid locking (might break parallel builds)
1511  --enable-ipv6           s use IPv6?
1512
1513Optional Packages:
1514  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516  --with-autoopts-config  specify the config-info script
1517  --with-regex-header     a reg expr header is specified
1518  --with-libregex         libregex installation prefix
1519  --with-libregex-cflags  libregex compile flags
1520  --with-libregex-libs    libregex link command arguments
1521  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522  --with-pic              try to use only PIC/non-PIC objects [default=use
1523                          both]
1524  --with-tags[=TAGS]      include additional configurations [automatic]
1525  --with-kame             - =/usr/local/v6
1526  --with-binsubdir        bin ={bin,sbin}
1527
1528Some influential environment variables:
1529  CC          C compiler command
1530  CFLAGS      C compiler flags
1531  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1532              nonstandard directory <lib dir>
1533  LIBS        libraries to pass to the linker, e.g. -l<library>
1534  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535              you have headers in a nonstandard directory <include dir>
1536  CPP         C preprocessor
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
1541Report bugs to the package provider.
1542_ACEOF
1543ac_status=$?
1544fi
1545
1546if test "$ac_init_help" = "recursive"; then
1547  # If there are subdirs, report their specific --help.
1548  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549    test -d "$ac_dir" ||
1550      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551      continue
1552    ac_builddir=.
1553
1554case "$ac_dir" in
1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556*)
1557  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558  # A ".." for each directory in $ac_dir_suffix.
1559  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560  case $ac_top_builddir_sub in
1561  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563  esac ;;
1564esac
1565ac_abs_top_builddir=$ac_pwd
1566ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567# for backward compatibility:
1568ac_top_builddir=$ac_top_build_prefix
1569
1570case $srcdir in
1571  .)  # We are building in place.
1572    ac_srcdir=.
1573    ac_top_srcdir=$ac_top_builddir_sub
1574    ac_abs_top_srcdir=$ac_pwd ;;
1575  [\\/]* | ?:[\\/]* )  # Absolute name.
1576    ac_srcdir=$srcdir$ac_dir_suffix;
1577    ac_top_srcdir=$srcdir
1578    ac_abs_top_srcdir=$srcdir ;;
1579  *) # Relative name.
1580    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581    ac_top_srcdir=$ac_top_build_prefix$srcdir
1582    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583esac
1584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586    cd "$ac_dir" || { ac_status=$?; continue; }
1587    # Check for guested configure.
1588    if test -f "$ac_srcdir/configure.gnu"; then
1589      echo &&
1590      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591    elif test -f "$ac_srcdir/configure"; then
1592      echo &&
1593      $SHELL "$ac_srcdir/configure" --help=recursive
1594    else
1595      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596    fi || ac_status=$?
1597    cd "$ac_pwd" || { ac_status=$?; break; }
1598  done
1599fi
1600
1601test -n "$ac_init_help" && exit $ac_status
1602if $ac_init_version; then
1603  cat <<\_ACEOF
1604sntp configure 4.2.6
1605generated by GNU Autoconf 2.65
1606
1607Copyright (C) 2009 Free Software Foundation, Inc.
1608This configure script is free software; the Free Software Foundation
1609gives unlimited permission to copy, distribute and modify it.
1610_ACEOF
1611  exit
1612fi
1613
1614## ------------------------ ##
1615## Autoconf initialization. ##
1616## ------------------------ ##
1617
1618# ac_fn_c_try_compile LINENO
1619# --------------------------
1620# Try to compile conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_compile ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  rm -f conftest.$ac_objext
1625  if { { ac_try="$ac_compile"
1626case "(($ac_try" in
1627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628  *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632  (eval "$ac_compile") 2>conftest.err
1633  ac_status=$?
1634  if test -s conftest.err; then
1635    grep -v '^ *+' conftest.err >conftest.er1
1636    cat conftest.er1 >&5
1637    mv -f conftest.er1 conftest.err
1638  fi
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; } && {
1641	 test -z "$ac_c_werror_flag" ||
1642	 test ! -s conftest.err
1643       } && test -s conftest.$ac_objext; then :
1644  ac_retval=0
1645else
1646  $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649	ac_retval=1
1650fi
1651  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652  as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_compile
1655
1656# ac_fn_c_try_cpp LINENO
1657# ----------------------
1658# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_cpp ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  if { { ac_try="$ac_cpp conftest.$ac_ext"
1663case "(($ac_try" in
1664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665  *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670  ac_status=$?
1671  if test -s conftest.err; then
1672    grep -v '^ *+' conftest.err >conftest.er1
1673    cat conftest.er1 >&5
1674    mv -f conftest.er1 conftest.err
1675  fi
1676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677  test $ac_status = 0; } >/dev/null && {
1678	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679	 test ! -s conftest.err
1680       }; then :
1681  ac_retval=0
1682else
1683  $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686    ac_retval=1
1687fi
1688  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689  as_fn_set_status $ac_retval
1690
1691} # ac_fn_c_try_cpp
1692
1693# ac_fn_c_try_run LINENO
1694# ----------------------
1695# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696# that executables *can* be run.
1697ac_fn_c_try_run ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  if { { ac_try="$ac_link"
1701case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_link") 2>&5
1708  ac_status=$?
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711  { { case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_try") 2>&5
1718  ac_status=$?
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; }; }; then :
1721  ac_retval=0
1722else
1723  $as_echo "$as_me: program exited with status $ac_status" >&5
1724       $as_echo "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727       ac_retval=$ac_status
1728fi
1729  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731  as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_run
1734
1735# ac_fn_c_try_link LINENO
1736# -----------------------
1737# Try to link conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_c_try_link ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  rm -f conftest.$ac_objext conftest$ac_exeext
1742  if { { ac_try="$ac_link"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_link") 2>conftest.err
1750  ac_status=$?
1751  if test -s conftest.err; then
1752    grep -v '^ *+' conftest.err >conftest.er1
1753    cat conftest.er1 >&5
1754    mv -f conftest.er1 conftest.err
1755  fi
1756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } && {
1758	 test -z "$ac_c_werror_flag" ||
1759	 test ! -s conftest.err
1760       } && test -s conftest$ac_exeext && {
1761	 test "$cross_compiling" = yes ||
1762	 $as_test_x conftest$ac_exeext
1763       }; then :
1764  ac_retval=0
1765else
1766  $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769	ac_retval=1
1770fi
1771  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773  # interfere with the next link command; also delete a directory that is
1774  # left behind by Apple's compiler.  We do this before executing the actions.
1775  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777  as_fn_set_status $ac_retval
1778
1779} # ac_fn_c_try_link
1780
1781# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782# -------------------------------------------------------
1783# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784# the include files in INCLUDES and setting the cache variable VAR
1785# accordingly.
1786ac_fn_c_check_header_mongrel ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793  $as_echo_n "(cached) " >&6
1794fi
1795eval ac_res=\$$3
1796	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798else
1799  # Is the header compilable?
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801$as_echo_n "checking $2 usability... " >&6; }
1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h.  */
1804$4
1805#include <$2>
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808  ac_header_compiler=yes
1809else
1810  ac_header_compiler=no
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814$as_echo "$ac_header_compiler" >&6; }
1815
1816# Is the header present?
1817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818$as_echo_n "checking $2 presence... " >&6; }
1819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h.  */
1821#include <$2>
1822_ACEOF
1823if ac_fn_c_try_cpp "$LINENO"; then :
1824  ac_header_preproc=yes
1825else
1826  ac_header_preproc=no
1827fi
1828rm -f conftest.err conftest.$ac_ext
1829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830$as_echo "$ac_header_preproc" >&6; }
1831
1832# So?  What about this header?
1833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1834  yes:no: )
1835    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839    ;;
1840  no:yes:* )
1841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1844$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1848$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851    ;;
1852esac
1853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856  $as_echo_n "(cached) " >&6
1857else
1858  eval "$3=\$ac_header_compiler"
1859fi
1860eval ac_res=\$$3
1861	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863fi
1864  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865
1866} # ac_fn_c_check_header_mongrel
1867
1868# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1869# -------------------------------------------------------
1870# Tests whether HEADER exists and can be compiled using the include files in
1871# INCLUDES, setting the cache variable VAR accordingly.
1872ac_fn_c_check_header_compile ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876$as_echo_n "checking for $2... " >&6; }
1877if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878  $as_echo_n "(cached) " >&6
1879else
1880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h.  */
1882$4
1883#include <$2>
1884_ACEOF
1885if ac_fn_c_try_compile "$LINENO"; then :
1886  eval "$3=yes"
1887else
1888  eval "$3=no"
1889fi
1890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891fi
1892eval ac_res=\$$3
1893	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894$as_echo "$ac_res" >&6; }
1895  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896
1897} # ac_fn_c_check_header_compile
1898
1899# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1900# -------------------------------------------
1901# Tests whether TYPE exists after having included INCLUDES, setting cache
1902# variable VAR accordingly.
1903ac_fn_c_check_type ()
1904{
1905  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907$as_echo_n "checking for $2... " >&6; }
1908if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909  $as_echo_n "(cached) " >&6
1910else
1911  eval "$3=no"
1912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h.  */
1914$4
1915int
1916main ()
1917{
1918if (sizeof ($2))
1919	 return 0;
1920  ;
1921  return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h.  */
1927$4
1928int
1929main ()
1930{
1931if (sizeof (($2)))
1932	    return 0;
1933  ;
1934  return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938
1939else
1940  eval "$3=yes"
1941fi
1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943fi
1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945fi
1946eval ac_res=\$$3
1947	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948$as_echo "$ac_res" >&6; }
1949  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950
1951} # ac_fn_c_check_type
1952
1953# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1954# --------------------------------------------
1955# Tries to find the compile-time value of EXPR in a program that includes
1956# INCLUDES, setting VAR accordingly. Returns whether the value could be
1957# computed
1958ac_fn_c_compute_int ()
1959{
1960  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961  if test "$cross_compiling" = yes; then
1962    # Depending upon the size, compute the lo and hi bounds.
1963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h.  */
1965$4
1966int
1967main ()
1968{
1969static int test_array [1 - 2 * !(($2) >= 0)];
1970test_array [0] = 0
1971
1972  ;
1973  return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977  ac_lo=0 ac_mid=0
1978  while :; do
1979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h.  */
1981$4
1982int
1983main ()
1984{
1985static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1986test_array [0] = 0
1987
1988  ;
1989  return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  ac_hi=$ac_mid; break
1994else
1995  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1996			if test $ac_lo -le $ac_mid; then
1997			  ac_lo= ac_hi=
1998			  break
1999			fi
2000			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003  done
2004else
2005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h.  */
2007$4
2008int
2009main ()
2010{
2011static int test_array [1 - 2 * !(($2) < 0)];
2012test_array [0] = 0
2013
2014  ;
2015  return 0;
2016}
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019  ac_hi=-1 ac_mid=-1
2020  while :; do
2021    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024int
2025main ()
2026{
2027static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2028test_array [0] = 0
2029
2030  ;
2031  return 0;
2032}
2033_ACEOF
2034if ac_fn_c_try_compile "$LINENO"; then :
2035  ac_lo=$ac_mid; break
2036else
2037  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2038			if test $ac_mid -le $ac_hi; then
2039			  ac_lo= ac_hi=
2040			  break
2041			fi
2042			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045  done
2046else
2047  ac_lo= ac_hi=
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052# Binary search between lo and hi bounds.
2053while test "x$ac_lo" != "x$ac_hi"; do
2054  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h.  */
2057$4
2058int
2059main ()
2060{
2061static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2062test_array [0] = 0
2063
2064  ;
2065  return 0;
2066}
2067_ACEOF
2068if ac_fn_c_try_compile "$LINENO"; then :
2069  ac_hi=$ac_mid
2070else
2071  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074done
2075case $ac_lo in #((
2076?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2077'') ac_retval=1 ;;
2078esac
2079  else
2080    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h.  */
2082$4
2083static long int longval () { return $2; }
2084static unsigned long int ulongval () { return $2; }
2085#include <stdio.h>
2086#include <stdlib.h>
2087int
2088main ()
2089{
2090
2091  FILE *f = fopen ("conftest.val", "w");
2092  if (! f)
2093    return 1;
2094  if (($2) < 0)
2095    {
2096      long int i = longval ();
2097      if (i != ($2))
2098	return 1;
2099      fprintf (f, "%ld", i);
2100    }
2101  else
2102    {
2103      unsigned long int i = ulongval ();
2104      if (i != ($2))
2105	return 1;
2106      fprintf (f, "%lu", i);
2107    }
2108  /* Do not output a trailing newline, as this causes \r\n confusion
2109     on some platforms.  */
2110  return ferror (f) || fclose (f) != 0;
2111
2112  ;
2113  return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_run "$LINENO"; then :
2117  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2118else
2119  ac_retval=1
2120fi
2121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2122  conftest.$ac_objext conftest.beam conftest.$ac_ext
2123rm -f conftest.val
2124
2125  fi
2126  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2127  as_fn_set_status $ac_retval
2128
2129} # ac_fn_c_compute_int
2130
2131# ac_fn_c_check_func LINENO FUNC VAR
2132# ----------------------------------
2133# Tests whether FUNC exists, setting the cache variable VAR accordingly
2134ac_fn_c_check_func ()
2135{
2136  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138$as_echo_n "checking for $2... " >&6; }
2139if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2140  $as_echo_n "(cached) " >&6
2141else
2142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h.  */
2144/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2145   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2146#define $2 innocuous_$2
2147
2148/* System header to define __stub macros and hopefully few prototypes,
2149    which can conflict with char $2 (); below.
2150    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2151    <limits.h> exists even on freestanding compilers.  */
2152
2153#ifdef __STDC__
2154# include <limits.h>
2155#else
2156# include <assert.h>
2157#endif
2158
2159#undef $2
2160
2161/* Override any GCC internal prototype to avoid an error.
2162   Use char because int might match the return type of a GCC
2163   builtin and then its argument prototype would still apply.  */
2164#ifdef __cplusplus
2165extern "C"
2166#endif
2167char $2 ();
2168/* The GNU C library defines this for functions which it implements
2169    to always fail with ENOSYS.  Some functions are actually named
2170    something starting with __ and the normal name is an alias.  */
2171#if defined __stub_$2 || defined __stub___$2
2172choke me
2173#endif
2174
2175int
2176main ()
2177{
2178return $2 ();
2179  ;
2180  return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_link "$LINENO"; then :
2184  eval "$3=yes"
2185else
2186  eval "$3=no"
2187fi
2188rm -f core conftest.err conftest.$ac_objext \
2189    conftest$ac_exeext conftest.$ac_ext
2190fi
2191eval ac_res=\$$3
2192	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193$as_echo "$ac_res" >&6; }
2194  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195
2196} # ac_fn_c_check_func
2197cat >config.log <<_ACEOF
2198This file contains any messages produced by compilers while
2199running configure, to aid debugging if configure makes a mistake.
2200
2201It was created by sntp $as_me 4.2.6, which was
2202generated by GNU Autoconf 2.65.  Invocation command line was
2203
2204  $ $0 $@
2205
2206_ACEOF
2207exec 5>>config.log
2208{
2209cat <<_ASUNAME
2210## --------- ##
2211## Platform. ##
2212## --------- ##
2213
2214hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2215uname -m = `(uname -m) 2>/dev/null || echo unknown`
2216uname -r = `(uname -r) 2>/dev/null || echo unknown`
2217uname -s = `(uname -s) 2>/dev/null || echo unknown`
2218uname -v = `(uname -v) 2>/dev/null || echo unknown`
2219
2220/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2221/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2222
2223/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2224/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2225/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2226/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2227/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2228/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2229/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2230
2231_ASUNAME
2232
2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234for as_dir in $PATH
2235do
2236  IFS=$as_save_IFS
2237  test -z "$as_dir" && as_dir=.
2238    $as_echo "PATH: $as_dir"
2239  done
2240IFS=$as_save_IFS
2241
2242} >&5
2243
2244cat >&5 <<_ACEOF
2245
2246
2247## ----------- ##
2248## Core tests. ##
2249## ----------- ##
2250
2251_ACEOF
2252
2253
2254# Keep a trace of the command line.
2255# Strip out --no-create and --no-recursion so they do not pile up.
2256# Strip out --silent because we don't want to record it for future runs.
2257# Also quote any args containing shell meta-characters.
2258# Make two passes to allow for proper duplicate-argument suppression.
2259ac_configure_args=
2260ac_configure_args0=
2261ac_configure_args1=
2262ac_must_keep_next=false
2263for ac_pass in 1 2
2264do
2265  for ac_arg
2266  do
2267    case $ac_arg in
2268    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2269    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2270    | -silent | --silent | --silen | --sile | --sil)
2271      continue ;;
2272    *\'*)
2273      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2274    esac
2275    case $ac_pass in
2276    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2277    2)
2278      as_fn_append ac_configure_args1 " '$ac_arg'"
2279      if test $ac_must_keep_next = true; then
2280	ac_must_keep_next=false # Got value, back to normal.
2281      else
2282	case $ac_arg in
2283	  *=* | --config-cache | -C | -disable-* | --disable-* \
2284	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2285	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2286	  | -with-* | --with-* | -without-* | --without-* | --x)
2287	    case "$ac_configure_args0 " in
2288	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2289	    esac
2290	    ;;
2291	  -* ) ac_must_keep_next=true ;;
2292	esac
2293      fi
2294      as_fn_append ac_configure_args " '$ac_arg'"
2295      ;;
2296    esac
2297  done
2298done
2299{ ac_configure_args0=; unset ac_configure_args0;}
2300{ ac_configure_args1=; unset ac_configure_args1;}
2301
2302# When interrupted or exit'd, cleanup temporary files, and complete
2303# config.log.  We remove comments because anyway the quotes in there
2304# would cause problems or look ugly.
2305# WARNING: Use '\'' to represent an apostrophe within the trap.
2306# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2307trap 'exit_status=$?
2308  # Save into config.log some information that might help in debugging.
2309  {
2310    echo
2311
2312    cat <<\_ASBOX
2313## ---------------- ##
2314## Cache variables. ##
2315## ---------------- ##
2316_ASBOX
2317    echo
2318    # The following way of writing the cache mishandles newlines in values,
2319(
2320  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2321    eval ac_val=\$$ac_var
2322    case $ac_val in #(
2323    *${as_nl}*)
2324      case $ac_var in #(
2325      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2326$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2327      esac
2328      case $ac_var in #(
2329      _ | IFS | as_nl) ;; #(
2330      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2331      *) { eval $ac_var=; unset $ac_var;} ;;
2332      esac ;;
2333    esac
2334  done
2335  (set) 2>&1 |
2336    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2337    *${as_nl}ac_space=\ *)
2338      sed -n \
2339	"s/'\''/'\''\\\\'\'''\''/g;
2340	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2341      ;; #(
2342    *)
2343      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2344      ;;
2345    esac |
2346    sort
2347)
2348    echo
2349
2350    cat <<\_ASBOX
2351## ----------------- ##
2352## Output variables. ##
2353## ----------------- ##
2354_ASBOX
2355    echo
2356    for ac_var in $ac_subst_vars
2357    do
2358      eval ac_val=\$$ac_var
2359      case $ac_val in
2360      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361      esac
2362      $as_echo "$ac_var='\''$ac_val'\''"
2363    done | sort
2364    echo
2365
2366    if test -n "$ac_subst_files"; then
2367      cat <<\_ASBOX
2368## ------------------- ##
2369## File substitutions. ##
2370## ------------------- ##
2371_ASBOX
2372      echo
2373      for ac_var in $ac_subst_files
2374      do
2375	eval ac_val=\$$ac_var
2376	case $ac_val in
2377	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378	esac
2379	$as_echo "$ac_var='\''$ac_val'\''"
2380      done | sort
2381      echo
2382    fi
2383
2384    if test -s confdefs.h; then
2385      cat <<\_ASBOX
2386## ----------- ##
2387## confdefs.h. ##
2388## ----------- ##
2389_ASBOX
2390      echo
2391      cat confdefs.h
2392      echo
2393    fi
2394    test "$ac_signal" != 0 &&
2395      $as_echo "$as_me: caught signal $ac_signal"
2396    $as_echo "$as_me: exit $exit_status"
2397  } >&5
2398  rm -f core *.core core.conftest.* &&
2399    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2400    exit $exit_status
2401' 0
2402for ac_signal in 1 2 13 15; do
2403  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2404done
2405ac_signal=0
2406
2407# confdefs.h avoids OS command line length limits that DEFS can exceed.
2408rm -f -r conftest* confdefs.h
2409
2410$as_echo "/* confdefs.h */" > confdefs.h
2411
2412# Predefined preprocessor variables.
2413
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE_NAME "$PACKAGE_NAME"
2416_ACEOF
2417
2418cat >>confdefs.h <<_ACEOF
2419#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2420_ACEOF
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_VERSION "$PACKAGE_VERSION"
2424_ACEOF
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_STRING "$PACKAGE_STRING"
2428_ACEOF
2429
2430cat >>confdefs.h <<_ACEOF
2431#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2432_ACEOF
2433
2434cat >>confdefs.h <<_ACEOF
2435#define PACKAGE_URL "$PACKAGE_URL"
2436_ACEOF
2437
2438
2439# Let the site file select an alternate cache file if it wants to.
2440# Prefer an explicitly selected file to automatically selected ones.
2441ac_site_file1=NONE
2442ac_site_file2=NONE
2443if test -n "$CONFIG_SITE"; then
2444  ac_site_file1=$CONFIG_SITE
2445elif test "x$prefix" != xNONE; then
2446  ac_site_file1=$prefix/share/config.site
2447  ac_site_file2=$prefix/etc/config.site
2448else
2449  ac_site_file1=$ac_default_prefix/share/config.site
2450  ac_site_file2=$ac_default_prefix/etc/config.site
2451fi
2452for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2453do
2454  test "x$ac_site_file" = xNONE && continue
2455  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2456    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2457$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2458    sed 's/^/| /' "$ac_site_file" >&5
2459    . "$ac_site_file"
2460  fi
2461done
2462
2463if test -r "$cache_file"; then
2464  # Some versions of bash will fail to source /dev/null (special files
2465  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2466  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2467    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2468$as_echo "$as_me: loading cache $cache_file" >&6;}
2469    case $cache_file in
2470      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2471      *)                      . "./$cache_file";;
2472    esac
2473  fi
2474else
2475  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2476$as_echo "$as_me: creating cache $cache_file" >&6;}
2477  >$cache_file
2478fi
2479
2480# Check that the precious variables saved in the cache have kept the same
2481# value.
2482ac_cache_corrupted=false
2483for ac_var in $ac_precious_vars; do
2484  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2485  eval ac_new_set=\$ac_env_${ac_var}_set
2486  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2487  eval ac_new_val=\$ac_env_${ac_var}_value
2488  case $ac_old_set,$ac_new_set in
2489    set,)
2490      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2491$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2492      ac_cache_corrupted=: ;;
2493    ,set)
2494      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2495$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2496      ac_cache_corrupted=: ;;
2497    ,);;
2498    *)
2499      if test "x$ac_old_val" != "x$ac_new_val"; then
2500	# differences in whitespace do not lead to failure.
2501	ac_old_val_w=`echo x $ac_old_val`
2502	ac_new_val_w=`echo x $ac_new_val`
2503	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2504	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2505$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2506	  ac_cache_corrupted=:
2507	else
2508	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2509$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2510	  eval $ac_var=\$ac_old_val
2511	fi
2512	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2513$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2514	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2515$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2516      fi;;
2517  esac
2518  # Pass precious variables to config.status.
2519  if test "$ac_new_set" = set; then
2520    case $ac_new_val in
2521    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2522    *) ac_arg=$ac_var=$ac_new_val ;;
2523    esac
2524    case " $ac_configure_args " in
2525      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2526      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2527    esac
2528  fi
2529done
2530if $ac_cache_corrupted; then
2531  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2533  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2534$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2535  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2536fi
2537## -------------------- ##
2538## Main body of script. ##
2539## -------------------- ##
2540
2541ac_ext=c
2542ac_cpp='$CPP $CPPFLAGS'
2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546
2547
2548
2549ac_aux_dir=
2550for ac_dir in . "$srcdir"/.; do
2551  for ac_t in install-sh install.sh shtool; do
2552    if test -f "$ac_dir/$ac_t"; then
2553      ac_aux_dir=$ac_dir
2554      ac_install_sh="$ac_aux_dir/$ac_t -c"
2555      break 2
2556    fi
2557  done
2558done
2559if test -z "$ac_aux_dir"; then
2560  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2561fi
2562
2563# These three variables are undocumented and unsupported,
2564# and are intended to be withdrawn in a future Autoconf release.
2565# They can cause serious problems if a builder's source tree is in a directory
2566# whose full name contains unusual characters.
2567ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2568ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2569ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2570
2571
2572
2573# Increment sntp_configure_cache_version by one for each change to
2574# configure.ac or .m4 files which invalidates cached values from
2575# previous versions.
2576#
2577# If the change affects cache variables used only by the main NTP
2578# configure.ac, then only its version number should be bumped, while
2579# the subdir configure.ac version numbers should be unchanged.  The
2580# same is true for a test/variable that is used only by one subdir
2581# being changed incompatibly; only that subdir's cache version needs
2582# bumping.
2583#
2584# If a change affects variables shared by all NTP configure scripts,
2585# please bump the version numbers of all three.  If you are not sure,
2586# the safe choice is to bump all three on any cache-invalidating change.
2587#
2588# In order to avoid the risk of version stamp collision between -stable
2589# and -dev branches, do not simply increment the version, instead use
2590# the date YYYYMMDD optionally with -HHMM if there is more than one
2591# bump in a day.
2592
2593sntp_configure_cache_version=20091117
2594
2595# When the version of config.cache and configure do not
2596# match, NTP_CACHEVERSION will flush the cache.
2597
2598
2599
2600    ntp_cache_flush=1
2601
2602    case "$ntp_cv_sntp_cache_version" in
2603     $sntp_configure_cache_version)
2604	# same version, good
2605	ntp_cache_flush=0
2606	;;
2607     '')
2608	# No cache, predates ntp_cv_sntp_cache_version, or is empty.
2609	case "$cache_file" in
2610	 /dev/null)
2611	    ntp_cache_flush=0
2612	    ;;
2613	 *)
2614	    case "$NTP_CACHEVERSION_PARENT" in
2615	     '')
2616		# Do not clear the cache immediately after it is created
2617		# empty as it is noisy.  Differentiate a newly-created
2618		# config.cache from one predating the cache version
2619		# mechanism by looking for the first cached variable set
2620		# by Autoconf
2621		case "$ac_cv_path_install" in
2622		 '')
2623		    # empty config.cache file
2624		    ntp_cache_flush=0
2625		esac
2626		;;
2627	     *)
2628		# Parent configure just created cache from empty,
2629		# flushing would be counterproductive.
2630		ntp_cache_flush=0;
2631	    esac
2632	esac
2633	;;
2634     *)
2635	# configure cache version mismatches config.cache version
2636    esac
2637
2638    case "$ntp_cache_flush" in
2639     1)
2640	c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
2641
2642	# Do we flush all variables or exclude others' version stamps?
2643
2644	case "$NTP_CACHEVERSION_PARENT" in
2645	 '')
2646	    # Clear all *_cv_* variables including our child subdirs'
2647	    # ntp_cv_*_cache_version variables.  This prevents subdir
2648	    # configure scripts from noticing a version mismatch just
2649	    # after the top configure in the invocation cleared and
2650	    # recreated the cache.
2651
2652	    c_varname_list=`set |
2653			    sed -n -e 's/=.*$//' \
2654				   -e '/_cv_/p'
2655			   `
2656	    ;;
2657	 *)
2658	    # This is not the top configure this particular invocation.
2659	    # Clear all *_cv_* variables sparing the version stamps
2660	    # of other configure scripts, so we don't trigger
2661	    # useless repeated clearings.
2662
2663	    c_varname_list=`set |
2664			    sed -n -e 's/=.*$//' \
2665				   -e '/ntp_cv_.*_cache_version/d' \
2666				   -e '/_cv_/p'
2667			   `
2668	esac
2669
2670	for c_varname in $c_varname_list
2671	do
2672	    	    eval ${c_varname}=;  $as_unset $c_varname
2673	done
2674
2675		c_varname_list=;  $as_unset c_varname_list c_varname
2676
2677	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2678$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2679	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
2680$as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
2681	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2682$as_echo "$as_me: $cache_file version: $c_version" >&6;}
2683	$as_unset c_version
2684    esac
2685
2686    # save configure version in config.cache for next time
2687    ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
2688
2689    $as_unset ntp_cache_flush
2690
2691    # let any subdir configure.ac NTP_CACHEVERSION invocations
2692    # know they are not the top level.
2693    NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
2694
2695
2696am__api_version='1.11'
2697
2698# Find a good install program.  We prefer a C program (faster),
2699# so one script is as good as another.  But avoid the broken or
2700# incompatible versions:
2701# SysV /etc/install, /usr/sbin/install
2702# SunOS /usr/etc/install
2703# IRIX /sbin/install
2704# AIX /bin/install
2705# AmigaOS /C/install, which installs bootblocks on floppy discs
2706# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2707# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2708# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2709# OS/2's system install, which has a completely different semantic
2710# ./install, which can be erroneously created by make from ./install.sh.
2711# Reject install programs that cannot install multiple files.
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2713$as_echo_n "checking for a BSD-compatible install... " >&6; }
2714if test -z "$INSTALL"; then
2715if test "${ac_cv_path_install+set}" = set; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721  IFS=$as_save_IFS
2722  test -z "$as_dir" && as_dir=.
2723    # Account for people who put trailing slashes in PATH elements.
2724case $as_dir/ in #((
2725  ./ | .// | /[cC]/* | \
2726  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2727  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2728  /usr/ucb/* ) ;;
2729  *)
2730    # OSF1 and SCO ODT 3.0 have their own names for install.
2731    # Don't use installbsd from OSF since it installs stuff as root
2732    # by default.
2733    for ac_prog in ginstall scoinst install; do
2734      for ac_exec_ext in '' $ac_executable_extensions; do
2735	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2736	  if test $ac_prog = install &&
2737	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738	    # AIX install.  It has an incompatible calling convention.
2739	    :
2740	  elif test $ac_prog = install &&
2741	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2742	    # program-specific install script used by HP pwplus--don't use.
2743	    :
2744	  else
2745	    rm -rf conftest.one conftest.two conftest.dir
2746	    echo one > conftest.one
2747	    echo two > conftest.two
2748	    mkdir conftest.dir
2749	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2750	      test -s conftest.one && test -s conftest.two &&
2751	      test -s conftest.dir/conftest.one &&
2752	      test -s conftest.dir/conftest.two
2753	    then
2754	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2755	      break 3
2756	    fi
2757	  fi
2758	fi
2759      done
2760    done
2761    ;;
2762esac
2763
2764  done
2765IFS=$as_save_IFS
2766
2767rm -rf conftest.one conftest.two conftest.dir
2768
2769fi
2770  if test "${ac_cv_path_install+set}" = set; then
2771    INSTALL=$ac_cv_path_install
2772  else
2773    # As a last resort, use the slow shell script.  Don't cache a
2774    # value for INSTALL within a source directory, because that will
2775    # break other packages using the cache if that directory is
2776    # removed, or if the value is a relative name.
2777    INSTALL=$ac_install_sh
2778  fi
2779fi
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2781$as_echo "$INSTALL" >&6; }
2782
2783# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2784# It thinks the first close brace ends the variable substitution.
2785test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2786
2787test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2788
2789test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2790
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2792$as_echo_n "checking whether build environment is sane... " >&6; }
2793# Just in case
2794sleep 1
2795echo timestamp > conftest.file
2796# Reject unsafe characters in $srcdir or the absolute working directory
2797# name.  Accept space and tab only in the latter.
2798am_lf='
2799'
2800case `pwd` in
2801  *[\\\"\#\$\&\'\`$am_lf]*)
2802    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2803esac
2804case $srcdir in
2805  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2806    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2807esac
2808
2809# Do `set' in a subshell so we don't clobber the current shell's
2810# arguments.  Must try -L first in case configure is actually a
2811# symlink; some systems play weird games with the mod time of symlinks
2812# (eg FreeBSD returns the mod time of the symlink's containing
2813# directory).
2814if (
2815   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2816   if test "$*" = "X"; then
2817      # -L didn't work.
2818      set X `ls -t "$srcdir/configure" conftest.file`
2819   fi
2820   rm -f conftest.file
2821   if test "$*" != "X $srcdir/configure conftest.file" \
2822      && test "$*" != "X conftest.file $srcdir/configure"; then
2823
2824      # If neither matched, then we have a broken ls.  This can happen
2825      # if, for instance, CONFIG_SHELL is bash and it inherits a
2826      # broken ls alias from the environment.  This has actually
2827      # happened.  Such a system could not be considered "sane".
2828      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2829alias in your environment" "$LINENO" 5
2830   fi
2831
2832   test "$2" = conftest.file
2833   )
2834then
2835   # Ok.
2836   :
2837else
2838   as_fn_error "newly created file is older than distributed files!
2839Check your system clock" "$LINENO" 5
2840fi
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2842$as_echo "yes" >&6; }
2843test "$program_prefix" != NONE &&
2844  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2845# Use a double $ so make ignores it.
2846test "$program_suffix" != NONE &&
2847  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2848# Double any \ or $.
2849# By default was `s,x,x', remove it if useless.
2850ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2851program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2852
2853# expand $ac_aux_dir to an absolute path
2854am_aux_dir=`cd $ac_aux_dir && pwd`
2855
2856if test x"${MISSING+set}" != xset; then
2857  case $am_aux_dir in
2858  *\ * | *\	*)
2859    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2860  *)
2861    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2862  esac
2863fi
2864# Use eval to expand $SHELL
2865if eval "$MISSING --run true"; then
2866  am_missing_run="$MISSING --run "
2867else
2868  am_missing_run=
2869  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2870$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2871fi
2872
2873if test x"${install_sh}" != xset; then
2874  case $am_aux_dir in
2875  *\ * | *\	*)
2876    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2877  *)
2878    install_sh="\${SHELL} $am_aux_dir/install-sh"
2879  esac
2880fi
2881
2882# Installed binaries are usually stripped using `strip' when the user
2883# run `make install-strip'.  However `strip' might not be the right
2884# tool to use in cross-compilation environments, therefore Automake
2885# will honor the `STRIP' environment variable to overrule this program.
2886if test "$cross_compiling" != no; then
2887  if test -n "$ac_tool_prefix"; then
2888  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2889set dummy ${ac_tool_prefix}strip; ac_word=$2
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891$as_echo_n "checking for $ac_word... " >&6; }
2892if test "${ac_cv_prog_STRIP+set}" = set; then :
2893  $as_echo_n "(cached) " >&6
2894else
2895  if test -n "$STRIP"; then
2896  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901  IFS=$as_save_IFS
2902  test -z "$as_dir" && as_dir=.
2903    for ac_exec_ext in '' $ac_executable_extensions; do
2904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907    break 2
2908  fi
2909done
2910  done
2911IFS=$as_save_IFS
2912
2913fi
2914fi
2915STRIP=$ac_cv_prog_STRIP
2916if test -n "$STRIP"; then
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2918$as_echo "$STRIP" >&6; }
2919else
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; }
2922fi
2923
2924
2925fi
2926if test -z "$ac_cv_prog_STRIP"; then
2927  ac_ct_STRIP=$STRIP
2928  # Extract the first word of "strip", so it can be a program name with args.
2929set dummy strip; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2933  $as_echo_n "(cached) " >&6
2934else
2935  if test -n "$ac_ct_STRIP"; then
2936  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941  IFS=$as_save_IFS
2942  test -z "$as_dir" && as_dir=.
2943    for ac_exec_ext in '' $ac_executable_extensions; do
2944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945    ac_cv_prog_ac_ct_STRIP="strip"
2946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947    break 2
2948  fi
2949done
2950  done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
2955ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2956if test -n "$ac_ct_STRIP"; then
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2958$as_echo "$ac_ct_STRIP" >&6; }
2959else
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964  if test "x$ac_ct_STRIP" = x; then
2965    STRIP=":"
2966  else
2967    case $cross_compiling:$ac_tool_warned in
2968yes:)
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971ac_tool_warned=yes ;;
2972esac
2973    STRIP=$ac_ct_STRIP
2974  fi
2975else
2976  STRIP="$ac_cv_prog_STRIP"
2977fi
2978
2979fi
2980INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2981
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2983$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2984if test -z "$MKDIR_P"; then
2985  if test "${ac_cv_path_mkdir+set}" = set; then :
2986  $as_echo_n "(cached) " >&6
2987else
2988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2990do
2991  IFS=$as_save_IFS
2992  test -z "$as_dir" && as_dir=.
2993    for ac_prog in mkdir gmkdir; do
2994	 for ac_exec_ext in '' $ac_executable_extensions; do
2995	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2996	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2997	     'mkdir (GNU coreutils) '* | \
2998	     'mkdir (coreutils) '* | \
2999	     'mkdir (fileutils) '4.1*)
3000	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3001	       break 3;;
3002	   esac
3003	 done
3004       done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009
3010  test -d ./--version && rmdir ./--version
3011  if test "${ac_cv_path_mkdir+set}" = set; then
3012    MKDIR_P="$ac_cv_path_mkdir -p"
3013  else
3014    # As a last resort, use the slow shell script.  Don't cache a
3015    # value for MKDIR_P within a source directory, because that will
3016    # break other packages using the cache if that directory is
3017    # removed, or if the value is a relative name.
3018    MKDIR_P="$ac_install_sh -d"
3019  fi
3020fi
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3022$as_echo "$MKDIR_P" >&6; }
3023
3024mkdir_p="$MKDIR_P"
3025case $mkdir_p in
3026  [\\/$]* | ?:[\\/]*) ;;
3027  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3028esac
3029
3030for ac_prog in gawk mawk nawk awk
3031do
3032  # Extract the first word of "$ac_prog", so it can be a program name with args.
3033set dummy $ac_prog; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if test "${ac_cv_prog_AWK+set}" = set; then :
3037  $as_echo_n "(cached) " >&6
3038else
3039  if test -n "$AWK"; then
3040  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  test -z "$as_dir" && as_dir=.
3047    for ac_exec_ext in '' $ac_executable_extensions; do
3048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049    ac_cv_prog_AWK="$ac_prog"
3050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054  done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059AWK=$ac_cv_prog_AWK
3060if test -n "$AWK"; then
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3062$as_echo "$AWK" >&6; }
3063else
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069  test -n "$AWK" && break
3070done
3071
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3073$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3074set x ${MAKE-make}
3075ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3076if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  cat >conftest.make <<\_ACEOF
3080SHELL = /bin/sh
3081all:
3082	@echo '@@@%%%=$(MAKE)=@@@%%%'
3083_ACEOF
3084# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3085case `${MAKE-make} -f conftest.make 2>/dev/null` in
3086  *@@@%%%=?*=@@@%%%*)
3087    eval ac_cv_prog_make_${ac_make}_set=yes;;
3088  *)
3089    eval ac_cv_prog_make_${ac_make}_set=no;;
3090esac
3091rm -f conftest.make
3092fi
3093if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095$as_echo "yes" >&6; }
3096  SET_MAKE=
3097else
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099$as_echo "no" >&6; }
3100  SET_MAKE="MAKE=${MAKE-make}"
3101fi
3102
3103rm -rf .tst 2>/dev/null
3104mkdir .tst 2>/dev/null
3105if test -d .tst; then
3106  am__leading_dot=.
3107else
3108  am__leading_dot=_
3109fi
3110rmdir .tst 2>/dev/null
3111
3112if test "`cd $srcdir && pwd`" != "`pwd`"; then
3113  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3114  # is not polluted with repeated "-I."
3115  am__isrc=' -I$(srcdir)'
3116  # test to see if srcdir already configured
3117  if test -f $srcdir/config.status; then
3118    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3119  fi
3120fi
3121
3122# test whether we have cygpath
3123if test -z "$CYGPATH_W"; then
3124  if (cygpath --version) >/dev/null 2>/dev/null; then
3125    CYGPATH_W='cygpath -w'
3126  else
3127    CYGPATH_W=echo
3128  fi
3129fi
3130
3131
3132# Define the identity of the package.
3133 PACKAGE='sntp'
3134 VERSION='4.2.6'
3135
3136
3137cat >>confdefs.h <<_ACEOF
3138#define PACKAGE "$PACKAGE"
3139_ACEOF
3140
3141
3142cat >>confdefs.h <<_ACEOF
3143#define VERSION "$VERSION"
3144_ACEOF
3145
3146# Some tools Automake needs.
3147
3148ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3149
3150
3151AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3152
3153
3154AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3155
3156
3157AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3158
3159
3160MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3161
3162# We need awk for the "check" target.  The system "awk" is bad on
3163# some platforms.
3164# Always define AMTAR for backward compatibility.
3165
3166AMTAR=${AMTAR-"${am_missing_run}tar"}
3167
3168am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3169
3170
3171
3172
3173
3174# Make sure we can run config.sub.
3175$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3176  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3177
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3179$as_echo_n "checking build system type... " >&6; }
3180if test "${ac_cv_build+set}" = set; then :
3181  $as_echo_n "(cached) " >&6
3182else
3183  ac_build_alias=$build_alias
3184test "x$ac_build_alias" = x &&
3185  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3186test "x$ac_build_alias" = x &&
3187  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3188ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3189  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3190
3191fi
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3193$as_echo "$ac_cv_build" >&6; }
3194case $ac_cv_build in
3195*-*-*) ;;
3196*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3197esac
3198build=$ac_cv_build
3199ac_save_IFS=$IFS; IFS='-'
3200set x $ac_cv_build
3201shift
3202build_cpu=$1
3203build_vendor=$2
3204shift; shift
3205# Remember, the first character of IFS is used to create $*,
3206# except with old shells:
3207build_os=$*
3208IFS=$ac_save_IFS
3209case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3210
3211
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3213$as_echo_n "checking host system type... " >&6; }
3214if test "${ac_cv_host+set}" = set; then :
3215  $as_echo_n "(cached) " >&6
3216else
3217  if test "x$host_alias" = x; then
3218  ac_cv_host=$ac_cv_build
3219else
3220  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3221    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3222fi
3223
3224fi
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3226$as_echo "$ac_cv_host" >&6; }
3227case $ac_cv_host in
3228*-*-*) ;;
3229*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3230esac
3231host=$ac_cv_host
3232ac_save_IFS=$IFS; IFS='-'
3233set x $ac_cv_host
3234shift
3235host_cpu=$1
3236host_vendor=$2
3237shift; shift
3238# Remember, the first character of IFS is used to create $*,
3239# except with old shells:
3240host_os=$*
3241IFS=$ac_save_IFS
3242case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3243
3244
3245
3246cat >>confdefs.h <<_ACEOF
3247#define STR_SYSTEM "$host"
3248_ACEOF
3249
3250ac_config_headers="$ac_config_headers config.h"
3251
3252
3253
3254# Checks for programs.
3255ac_ext=c
3256ac_cpp='$CPP $CPPFLAGS'
3257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260if test -n "$ac_tool_prefix"; then
3261  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3262set dummy ${ac_tool_prefix}gcc; ac_word=$2
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264$as_echo_n "checking for $ac_word... " >&6; }
3265if test "${ac_cv_prog_CC+set}" = set; then :
3266  $as_echo_n "(cached) " >&6
3267else
3268  if test -n "$CC"; then
3269  ac_cv_prog_CC="$CC" # Let the user override the test.
3270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274  IFS=$as_save_IFS
3275  test -z "$as_dir" && as_dir=.
3276    for ac_exec_ext in '' $ac_executable_extensions; do
3277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280    break 2
3281  fi
3282done
3283  done
3284IFS=$as_save_IFS
3285
3286fi
3287fi
3288CC=$ac_cv_prog_CC
3289if test -n "$CC"; then
3290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291$as_echo "$CC" >&6; }
3292else
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295fi
3296
3297
3298fi
3299if test -z "$ac_cv_prog_CC"; then
3300  ac_ct_CC=$CC
3301  # Extract the first word of "gcc", so it can be a program name with args.
3302set dummy gcc; ac_word=$2
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304$as_echo_n "checking for $ac_word... " >&6; }
3305if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3306  $as_echo_n "(cached) " >&6
3307else
3308  if test -n "$ac_ct_CC"; then
3309  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310else
3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314  IFS=$as_save_IFS
3315  test -z "$as_dir" && as_dir=.
3316    for ac_exec_ext in '' $ac_executable_extensions; do
3317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318    ac_cv_prog_ac_ct_CC="gcc"
3319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320    break 2
3321  fi
3322done
3323  done
3324IFS=$as_save_IFS
3325
3326fi
3327fi
3328ac_ct_CC=$ac_cv_prog_ac_ct_CC
3329if test -n "$ac_ct_CC"; then
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3331$as_echo "$ac_ct_CC" >&6; }
3332else
3333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334$as_echo "no" >&6; }
3335fi
3336
3337  if test "x$ac_ct_CC" = x; then
3338    CC=""
3339  else
3340    case $cross_compiling:$ac_tool_warned in
3341yes:)
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344ac_tool_warned=yes ;;
3345esac
3346    CC=$ac_ct_CC
3347  fi
3348else
3349  CC="$ac_cv_prog_CC"
3350fi
3351
3352if test -z "$CC"; then
3353          if test -n "$ac_tool_prefix"; then
3354    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3355set dummy ${ac_tool_prefix}cc; ac_word=$2
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357$as_echo_n "checking for $ac_word... " >&6; }
3358if test "${ac_cv_prog_CC+set}" = set; then :
3359  $as_echo_n "(cached) " >&6
3360else
3361  if test -n "$CC"; then
3362  ac_cv_prog_CC="$CC" # Let the user override the test.
3363else
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369    for ac_exec_ext in '' $ac_executable_extensions; do
3370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371    ac_cv_prog_CC="${ac_tool_prefix}cc"
3372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373    break 2
3374  fi
3375done
3376  done
3377IFS=$as_save_IFS
3378
3379fi
3380fi
3381CC=$ac_cv_prog_CC
3382if test -n "$CC"; then
3383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3384$as_echo "$CC" >&6; }
3385else
3386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387$as_echo "no" >&6; }
3388fi
3389
3390
3391  fi
3392fi
3393if test -z "$CC"; then
3394  # Extract the first word of "cc", so it can be a program name with args.
3395set dummy cc; ac_word=$2
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397$as_echo_n "checking for $ac_word... " >&6; }
3398if test "${ac_cv_prog_CC+set}" = set; then :
3399  $as_echo_n "(cached) " >&6
3400else
3401  if test -n "$CC"; then
3402  ac_cv_prog_CC="$CC" # Let the user override the test.
3403else
3404  ac_prog_rejected=no
3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408  IFS=$as_save_IFS
3409  test -z "$as_dir" && as_dir=.
3410    for ac_exec_ext in '' $ac_executable_extensions; do
3411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3413       ac_prog_rejected=yes
3414       continue
3415     fi
3416    ac_cv_prog_CC="cc"
3417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418    break 2
3419  fi
3420done
3421  done
3422IFS=$as_save_IFS
3423
3424if test $ac_prog_rejected = yes; then
3425  # We found a bogon in the path, so make sure we never use it.
3426  set dummy $ac_cv_prog_CC
3427  shift
3428  if test $# != 0; then
3429    # We chose a different compiler from the bogus one.
3430    # However, it has the same basename, so the bogon will be chosen
3431    # first if we set CC to just the basename; use the full file name.
3432    shift
3433    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3434  fi
3435fi
3436fi
3437fi
3438CC=$ac_cv_prog_CC
3439if test -n "$CC"; then
3440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441$as_echo "$CC" >&6; }
3442else
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447
3448fi
3449if test -z "$CC"; then
3450  if test -n "$ac_tool_prefix"; then
3451  for ac_prog in cl.exe
3452  do
3453    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3454set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456$as_echo_n "checking for $ac_word... " >&6; }
3457if test "${ac_cv_prog_CC+set}" = set; then :
3458  $as_echo_n "(cached) " >&6
3459else
3460  if test -n "$CC"; then
3461  ac_cv_prog_CC="$CC" # Let the user override the test.
3462else
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466  IFS=$as_save_IFS
3467  test -z "$as_dir" && as_dir=.
3468    for ac_exec_ext in '' $ac_executable_extensions; do
3469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472    break 2
3473  fi
3474done
3475  done
3476IFS=$as_save_IFS
3477
3478fi
3479fi
3480CC=$ac_cv_prog_CC
3481if test -n "$CC"; then
3482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483$as_echo "$CC" >&6; }
3484else
3485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486$as_echo "no" >&6; }
3487fi
3488
3489
3490    test -n "$CC" && break
3491  done
3492fi
3493if test -z "$CC"; then
3494  ac_ct_CC=$CC
3495  for ac_prog in cl.exe
3496do
3497  # Extract the first word of "$ac_prog", so it can be a program name with args.
3498set dummy $ac_prog; ac_word=$2
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500$as_echo_n "checking for $ac_word... " >&6; }
3501if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3502  $as_echo_n "(cached) " >&6
3503else
3504  if test -n "$ac_ct_CC"; then
3505  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3506else
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510  IFS=$as_save_IFS
3511  test -z "$as_dir" && as_dir=.
3512    for ac_exec_ext in '' $ac_executable_extensions; do
3513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514    ac_cv_prog_ac_ct_CC="$ac_prog"
3515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516    break 2
3517  fi
3518done
3519  done
3520IFS=$as_save_IFS
3521
3522fi
3523fi
3524ac_ct_CC=$ac_cv_prog_ac_ct_CC
3525if test -n "$ac_ct_CC"; then
3526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3527$as_echo "$ac_ct_CC" >&6; }
3528else
3529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530$as_echo "no" >&6; }
3531fi
3532
3533
3534  test -n "$ac_ct_CC" && break
3535done
3536
3537  if test "x$ac_ct_CC" = x; then
3538    CC=""
3539  else
3540    case $cross_compiling:$ac_tool_warned in
3541yes:)
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3544ac_tool_warned=yes ;;
3545esac
3546    CC=$ac_ct_CC
3547  fi
3548fi
3549
3550fi
3551
3552
3553test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555as_fn_error "no acceptable C compiler found in \$PATH
3556See \`config.log' for more details." "$LINENO" 5; }
3557
3558# Provide some information about the compiler.
3559$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3560set X $ac_compile
3561ac_compiler=$2
3562for ac_option in --version -v -V -qversion; do
3563  { { ac_try="$ac_compiler $ac_option >&5"
3564case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569$as_echo "$ac_try_echo"; } >&5
3570  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3571  ac_status=$?
3572  if test -s conftest.err; then
3573    sed '10a\
3574... rest of stderr output deleted ...
3575         10q' conftest.err >conftest.er1
3576    cat conftest.er1 >&5
3577  fi
3578  rm -f conftest.er1 conftest.err
3579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580  test $ac_status = 0; }
3581done
3582
3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585
3586int
3587main ()
3588{
3589
3590  ;
3591  return 0;
3592}
3593_ACEOF
3594ac_clean_files_save=$ac_clean_files
3595ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3596# Try to create an executable without -o first, disregard a.out.
3597# It will help us diagnose broken compilers, and finding out an intuition
3598# of exeext.
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3600$as_echo_n "checking whether the C compiler works... " >&6; }
3601ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3602
3603# The possible output files:
3604ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3605
3606ac_rmfiles=
3607for ac_file in $ac_files
3608do
3609  case $ac_file in
3610    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3612  esac
3613done
3614rm -f $ac_rmfiles
3615
3616if { { ac_try="$ac_link_default"
3617case "(($ac_try" in
3618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619  *) ac_try_echo=$ac_try;;
3620esac
3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622$as_echo "$ac_try_echo"; } >&5
3623  (eval "$ac_link_default") 2>&5
3624  ac_status=$?
3625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626  test $ac_status = 0; }; then :
3627  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3628# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3629# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3630# so that the user can short-circuit this test for compilers unknown to
3631# Autoconf.
3632for ac_file in $ac_files ''
3633do
3634  test -f "$ac_file" || continue
3635  case $ac_file in
3636    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3637	;;
3638    [ab].out )
3639	# We found the default executable, but exeext='' is most
3640	# certainly right.
3641	break;;
3642    *.* )
3643	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3644	then :; else
3645	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646	fi
3647	# We set ac_cv_exeext here because the later test for it is not
3648	# safe: cross compilers may not add the suffix if given an `-o'
3649	# argument, so we may need to know it at that point already.
3650	# Even if this section looks crufty: it has the advantage of
3651	# actually working.
3652	break;;
3653    * )
3654	break;;
3655  esac
3656done
3657test "$ac_cv_exeext" = no && ac_cv_exeext=
3658
3659else
3660  ac_file=''
3661fi
3662if test -z "$ac_file"; then :
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664$as_echo "no" >&6; }
3665$as_echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670{ as_fn_set_status 77
3671as_fn_error "C compiler cannot create executables
3672See \`config.log' for more details." "$LINENO" 5; }; }
3673else
3674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675$as_echo "yes" >&6; }
3676fi
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3678$as_echo_n "checking for C compiler default output file name... " >&6; }
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3680$as_echo "$ac_file" >&6; }
3681ac_exeext=$ac_cv_exeext
3682
3683rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3684ac_clean_files=$ac_clean_files_save
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686$as_echo_n "checking for suffix of executables... " >&6; }
3687if { { ac_try="$ac_link"
3688case "(($ac_try" in
3689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690  *) ac_try_echo=$ac_try;;
3691esac
3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693$as_echo "$ac_try_echo"; } >&5
3694  (eval "$ac_link") 2>&5
3695  ac_status=$?
3696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697  test $ac_status = 0; }; then :
3698  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3699# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3700# work properly (i.e., refer to `conftest.exe'), while it won't with
3701# `rm'.
3702for ac_file in conftest.exe conftest conftest.*; do
3703  test -f "$ac_file" || continue
3704  case $ac_file in
3705    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3706    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3707	  break;;
3708    * ) break;;
3709  esac
3710done
3711else
3712  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714as_fn_error "cannot compute suffix of executables: cannot compile and link
3715See \`config.log' for more details." "$LINENO" 5; }
3716fi
3717rm -f conftest conftest$ac_cv_exeext
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3719$as_echo "$ac_cv_exeext" >&6; }
3720
3721rm -f conftest.$ac_ext
3722EXEEXT=$ac_cv_exeext
3723ac_exeext=$EXEEXT
3724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h.  */
3726#include <stdio.h>
3727int
3728main ()
3729{
3730FILE *f = fopen ("conftest.out", "w");
3731 return ferror (f) || fclose (f) != 0;
3732
3733  ;
3734  return 0;
3735}
3736_ACEOF
3737ac_clean_files="$ac_clean_files conftest.out"
3738# Check that the compiler produces executables we can run.  If not, either
3739# the compiler is broken, or we cross compile.
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3741$as_echo_n "checking whether we are cross compiling... " >&6; }
3742if test "$cross_compiling" != yes; then
3743  { { ac_try="$ac_link"
3744case "(($ac_try" in
3745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746  *) ac_try_echo=$ac_try;;
3747esac
3748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749$as_echo "$ac_try_echo"; } >&5
3750  (eval "$ac_link") 2>&5
3751  ac_status=$?
3752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753  test $ac_status = 0; }
3754  if { ac_try='./conftest$ac_cv_exeext'
3755  { { case "(($ac_try" in
3756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757  *) ac_try_echo=$ac_try;;
3758esac
3759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760$as_echo "$ac_try_echo"; } >&5
3761  (eval "$ac_try") 2>&5
3762  ac_status=$?
3763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764  test $ac_status = 0; }; }; then
3765    cross_compiling=no
3766  else
3767    if test "$cross_compiling" = maybe; then
3768	cross_compiling=yes
3769    else
3770	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772as_fn_error "cannot run C compiled programs.
3773If you meant to cross compile, use \`--host'.
3774See \`config.log' for more details." "$LINENO" 5; }
3775    fi
3776  fi
3777fi
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3779$as_echo "$cross_compiling" >&6; }
3780
3781rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3782ac_clean_files=$ac_clean_files_save
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3784$as_echo_n "checking for suffix of object files... " >&6; }
3785if test "${ac_cv_objext+set}" = set; then :
3786  $as_echo_n "(cached) " >&6
3787else
3788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789/* end confdefs.h.  */
3790
3791int
3792main ()
3793{
3794
3795  ;
3796  return 0;
3797}
3798_ACEOF
3799rm -f conftest.o conftest.obj
3800if { { ac_try="$ac_compile"
3801case "(($ac_try" in
3802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803  *) ac_try_echo=$ac_try;;
3804esac
3805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806$as_echo "$ac_try_echo"; } >&5
3807  (eval "$ac_compile") 2>&5
3808  ac_status=$?
3809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810  test $ac_status = 0; }; then :
3811  for ac_file in conftest.o conftest.obj conftest.*; do
3812  test -f "$ac_file" || continue;
3813  case $ac_file in
3814    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3815    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3816       break;;
3817  esac
3818done
3819else
3820  $as_echo "$as_me: failed program was:" >&5
3821sed 's/^/| /' conftest.$ac_ext >&5
3822
3823{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825as_fn_error "cannot compute suffix of object files: cannot compile
3826See \`config.log' for more details." "$LINENO" 5; }
3827fi
3828rm -f conftest.$ac_cv_objext conftest.$ac_ext
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3831$as_echo "$ac_cv_objext" >&6; }
3832OBJEXT=$ac_cv_objext
3833ac_objext=$OBJEXT
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3835$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3836if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3837  $as_echo_n "(cached) " >&6
3838else
3839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840/* end confdefs.h.  */
3841
3842int
3843main ()
3844{
3845#ifndef __GNUC__
3846       choke me
3847#endif
3848
3849  ;
3850  return 0;
3851}
3852_ACEOF
3853if ac_fn_c_try_compile "$LINENO"; then :
3854  ac_compiler_gnu=yes
3855else
3856  ac_compiler_gnu=no
3857fi
3858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859ac_cv_c_compiler_gnu=$ac_compiler_gnu
3860
3861fi
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3863$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3864if test $ac_compiler_gnu = yes; then
3865  GCC=yes
3866else
3867  GCC=
3868fi
3869ac_test_CFLAGS=${CFLAGS+set}
3870ac_save_CFLAGS=$CFLAGS
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3872$as_echo_n "checking whether $CC accepts -g... " >&6; }
3873if test "${ac_cv_prog_cc_g+set}" = set; then :
3874  $as_echo_n "(cached) " >&6
3875else
3876  ac_save_c_werror_flag=$ac_c_werror_flag
3877   ac_c_werror_flag=yes
3878   ac_cv_prog_cc_g=no
3879   CFLAGS="-g"
3880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h.  */
3882
3883int
3884main ()
3885{
3886
3887  ;
3888  return 0;
3889}
3890_ACEOF
3891if ac_fn_c_try_compile "$LINENO"; then :
3892  ac_cv_prog_cc_g=yes
3893else
3894  CFLAGS=""
3895      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h.  */
3897
3898int
3899main ()
3900{
3901
3902  ;
3903  return 0;
3904}
3905_ACEOF
3906if ac_fn_c_try_compile "$LINENO"; then :
3907
3908else
3909  ac_c_werror_flag=$ac_save_c_werror_flag
3910	 CFLAGS="-g"
3911	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h.  */
3913
3914int
3915main ()
3916{
3917
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_compile "$LINENO"; then :
3923  ac_cv_prog_cc_g=yes
3924fi
3925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926fi
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928fi
3929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930   ac_c_werror_flag=$ac_save_c_werror_flag
3931fi
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3933$as_echo "$ac_cv_prog_cc_g" >&6; }
3934if test "$ac_test_CFLAGS" = set; then
3935  CFLAGS=$ac_save_CFLAGS
3936elif test $ac_cv_prog_cc_g = yes; then
3937  if test "$GCC" = yes; then
3938    CFLAGS="-g -O2"
3939  else
3940    CFLAGS="-g"
3941  fi
3942else
3943  if test "$GCC" = yes; then
3944    CFLAGS="-O2"
3945  else
3946    CFLAGS=
3947  fi
3948fi
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3950$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3951if test "${ac_cv_prog_cc_c89+set}" = set; then :
3952  $as_echo_n "(cached) " >&6
3953else
3954  ac_cv_prog_cc_c89=no
3955ac_save_CC=$CC
3956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957/* end confdefs.h.  */
3958#include <stdarg.h>
3959#include <stdio.h>
3960#include <sys/types.h>
3961#include <sys/stat.h>
3962/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3963struct buf { int x; };
3964FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965static char *e (p, i)
3966     char **p;
3967     int i;
3968{
3969  return p[i];
3970}
3971static char *f (char * (*g) (char **, int), char **p, ...)
3972{
3973  char *s;
3974  va_list v;
3975  va_start (v,p);
3976  s = g (p, va_arg (v,int));
3977  va_end (v);
3978  return s;
3979}
3980
3981/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3982   function prototypes and stuff, but not '\xHH' hex character constants.
3983   These don't provoke an error unfortunately, instead are silently treated
3984   as 'x'.  The following induces an error, until -std is added to get
3985   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3986   array size at least.  It's necessary to write '\x00'==0 to get something
3987   that's true only with -std.  */
3988int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3989
3990/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991   inside strings and character constants.  */
3992#define FOO(x) 'x'
3993int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3994
3995int test (int i, double x);
3996struct s1 {int (*f) (int a);};
3997struct s2 {int (*f) (double a);};
3998int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999int argc;
4000char **argv;
4001int
4002main ()
4003{
4004return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4005  ;
4006  return 0;
4007}
4008_ACEOF
4009for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4011do
4012  CC="$ac_save_CC $ac_arg"
4013  if ac_fn_c_try_compile "$LINENO"; then :
4014  ac_cv_prog_cc_c89=$ac_arg
4015fi
4016rm -f core conftest.err conftest.$ac_objext
4017  test "x$ac_cv_prog_cc_c89" != "xno" && break
4018done
4019rm -f conftest.$ac_ext
4020CC=$ac_save_CC
4021
4022fi
4023# AC_CACHE_VAL
4024case "x$ac_cv_prog_cc_c89" in
4025  x)
4026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027$as_echo "none needed" >&6; } ;;
4028  xno)
4029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030$as_echo "unsupported" >&6; } ;;
4031  *)
4032    CC="$CC $ac_cv_prog_cc_c89"
4033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4034$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4035esac
4036if test "x$ac_cv_prog_cc_c89" != xno; then :
4037
4038fi
4039
4040ac_ext=c
4041ac_cpp='$CPP $CPPFLAGS'
4042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045DEPDIR="${am__leading_dot}deps"
4046
4047ac_config_commands="$ac_config_commands depfiles"
4048
4049
4050am_make=${MAKE-make}
4051cat > confinc << 'END'
4052am__doit:
4053	@echo this is the am__doit target
4054.PHONY: am__doit
4055END
4056# If we don't find an include directive, just comment out the code.
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4058$as_echo_n "checking for style of include used by $am_make... " >&6; }
4059am__include="#"
4060am__quote=
4061_am_result=none
4062# First try GNU make style include.
4063echo "include confinc" > confmf
4064# Ignore all kinds of additional output from `make'.
4065case `$am_make -s -f confmf 2> /dev/null` in #(
4066*the\ am__doit\ target*)
4067  am__include=include
4068  am__quote=
4069  _am_result=GNU
4070  ;;
4071esac
4072# Now try BSD make style include.
4073if test "$am__include" = "#"; then
4074   echo '.include "confinc"' > confmf
4075   case `$am_make -s -f confmf 2> /dev/null` in #(
4076   *the\ am__doit\ target*)
4077     am__include=.include
4078     am__quote="\""
4079     _am_result=BSD
4080     ;;
4081   esac
4082fi
4083
4084
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4086$as_echo "$_am_result" >&6; }
4087rm -f confinc confmf
4088
4089# Check whether --enable-dependency-tracking was given.
4090if test "${enable_dependency_tracking+set}" = set; then :
4091  enableval=$enable_dependency_tracking;
4092fi
4093
4094if test "x$enable_dependency_tracking" != xno; then
4095  am_depcomp="$ac_aux_dir/depcomp"
4096  AMDEPBACKSLASH='\'
4097fi
4098 if test "x$enable_dependency_tracking" != xno; then
4099  AMDEP_TRUE=
4100  AMDEP_FALSE='#'
4101else
4102  AMDEP_TRUE='#'
4103  AMDEP_FALSE=
4104fi
4105
4106
4107
4108depcc="$CC"   am_compiler_list=
4109
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4111$as_echo_n "checking dependency style of $depcc... " >&6; }
4112if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4113  $as_echo_n "(cached) " >&6
4114else
4115  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4116  # We make a subdir and do the tests there.  Otherwise we can end up
4117  # making bogus files that we don't know about and never remove.  For
4118  # instance it was reported that on HP-UX the gcc test will end up
4119  # making a dummy file named `D' -- because `-MD' means `put the output
4120  # in D'.
4121  mkdir conftest.dir
4122  # Copy depcomp to subdir because otherwise we won't find it if we're
4123  # using a relative directory.
4124  cp "$am_depcomp" conftest.dir
4125  cd conftest.dir
4126  # We will build objects and dependencies in a subdirectory because
4127  # it helps to detect inapplicable dependency modes.  For instance
4128  # both Tru64's cc and ICC support -MD to output dependencies as a
4129  # side effect of compilation, but ICC will put the dependencies in
4130  # the current directory while Tru64 will put them in the object
4131  # directory.
4132  mkdir sub
4133
4134  am_cv_CC_dependencies_compiler_type=none
4135  if test "$am_compiler_list" = ""; then
4136     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4137  fi
4138  am__universal=false
4139  case " $depcc " in #(
4140     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4141     esac
4142
4143  for depmode in $am_compiler_list; do
4144    # Setup a source with many dependencies, because some compilers
4145    # like to wrap large dependency lists on column 80 (with \), and
4146    # we should not choose a depcomp mode which is confused by this.
4147    #
4148    # We need to recreate these files for each test, as the compiler may
4149    # overwrite some of them when testing with obscure command lines.
4150    # This happens at least with the AIX C compiler.
4151    : > sub/conftest.c
4152    for i in 1 2 3 4 5 6; do
4153      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4154      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4155      # Solaris 8's {/usr,}/bin/sh.
4156      touch sub/conftst$i.h
4157    done
4158    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4159
4160    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4161    # mode.  It turns out that the SunPro C++ compiler does not properly
4162    # handle `-M -o', and we need to detect this.  Also, some Intel
4163    # versions had trouble with output in subdirs
4164    am__obj=sub/conftest.${OBJEXT-o}
4165    am__minus_obj="-o $am__obj"
4166    case $depmode in
4167    gcc)
4168      # This depmode causes a compiler race in universal mode.
4169      test "$am__universal" = false || continue
4170      ;;
4171    nosideeffect)
4172      # after this tag, mechanisms are not by side-effect, so they'll
4173      # only be used when explicitly requested
4174      if test "x$enable_dependency_tracking" = xyes; then
4175	continue
4176      else
4177	break
4178      fi
4179      ;;
4180    msvisualcpp | msvcmsys)
4181      # This compiler won't grok `-c -o', but also, the minuso test has
4182      # not run yet.  These depmodes are late enough in the game, and
4183      # so weak that their functioning should not be impacted.
4184      am__obj=conftest.${OBJEXT-o}
4185      am__minus_obj=
4186      ;;
4187    none) break ;;
4188    esac
4189    if depmode=$depmode \
4190       source=sub/conftest.c object=$am__obj \
4191       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4192       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4193         >/dev/null 2>conftest.err &&
4194       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4195       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4196       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4197       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4198      # icc doesn't choke on unknown options, it will just issue warnings
4199      # or remarks (even with -Werror).  So we grep stderr for any message
4200      # that says an option was ignored or not supported.
4201      # When given -MP, icc 7.0 and 7.1 complain thusly:
4202      #   icc: Command line warning: ignoring option '-M'; no argument required
4203      # The diagnosis changed in icc 8.0:
4204      #   icc: Command line remark: option '-MP' not supported
4205      if (grep 'ignoring option' conftest.err ||
4206          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4207        am_cv_CC_dependencies_compiler_type=$depmode
4208        break
4209      fi
4210    fi
4211  done
4212
4213  cd ..
4214  rm -rf conftest.dir
4215else
4216  am_cv_CC_dependencies_compiler_type=none
4217fi
4218
4219fi
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4221$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4222CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4223
4224 if
4225  test "x$enable_dependency_tracking" != xno \
4226  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4227  am__fastdepCC_TRUE=
4228  am__fastdepCC_FALSE='#'
4229else
4230  am__fastdepCC_TRUE='#'
4231  am__fastdepCC_FALSE=
4232fi
4233
4234
4235
4236# AC_PROG_CC_STDC has two functions.  It attempts to find a compiler
4237# capable of C99, or failing that, for C89.  CC is set afterward with
4238# the selected invocation, such as "gcc --std=gnu99".  Also, the
4239# ac_cv_prog_cc_stdc variable is no if the compiler selected for CC
4240# does not accept C89.
4241
4242   case $ac_cv_prog_cc_stdc in #(
4243  no) :
4244    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4245  *) :
4246    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4247$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4248if test "${ac_cv_prog_cc_c99+set}" = set; then :
4249  $as_echo_n "(cached) " >&6
4250else
4251  ac_cv_prog_cc_c99=no
4252ac_save_CC=$CC
4253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254/* end confdefs.h.  */
4255#include <stdarg.h>
4256#include <stdbool.h>
4257#include <stdlib.h>
4258#include <wchar.h>
4259#include <stdio.h>
4260
4261// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4262#define debug(...) fprintf (stderr, __VA_ARGS__)
4263#define showlist(...) puts (#__VA_ARGS__)
4264#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4265static void
4266test_varargs_macros (void)
4267{
4268  int x = 1234;
4269  int y = 5678;
4270  debug ("Flag");
4271  debug ("X = %d\n", x);
4272  showlist (The first, second, and third items.);
4273  report (x>y, "x is %d but y is %d", x, y);
4274}
4275
4276// Check long long types.
4277#define BIG64 18446744073709551615ull
4278#define BIG32 4294967295ul
4279#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4280#if !BIG_OK
4281  your preprocessor is broken;
4282#endif
4283#if BIG_OK
4284#else
4285  your preprocessor is broken;
4286#endif
4287static long long int bignum = -9223372036854775807LL;
4288static unsigned long long int ubignum = BIG64;
4289
4290struct incomplete_array
4291{
4292  int datasize;
4293  double data[];
4294};
4295
4296struct named_init {
4297  int number;
4298  const wchar_t *name;
4299  double average;
4300};
4301
4302typedef const char *ccp;
4303
4304static inline int
4305test_restrict (ccp restrict text)
4306{
4307  // See if C++-style comments work.
4308  // Iterate through items via the restricted pointer.
4309  // Also check for declarations in for loops.
4310  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4311    continue;
4312  return 0;
4313}
4314
4315// Check varargs and va_copy.
4316static void
4317test_varargs (const char *format, ...)
4318{
4319  va_list args;
4320  va_start (args, format);
4321  va_list args_copy;
4322  va_copy (args_copy, args);
4323
4324  const char *str;
4325  int number;
4326  float fnumber;
4327
4328  while (*format)
4329    {
4330      switch (*format++)
4331	{
4332	case 's': // string
4333	  str = va_arg (args_copy, const char *);
4334	  break;
4335	case 'd': // int
4336	  number = va_arg (args_copy, int);
4337	  break;
4338	case 'f': // float
4339	  fnumber = va_arg (args_copy, double);
4340	  break;
4341	default:
4342	  break;
4343	}
4344    }
4345  va_end (args_copy);
4346  va_end (args);
4347}
4348
4349int
4350main ()
4351{
4352
4353  // Check bool.
4354  _Bool success = false;
4355
4356  // Check restrict.
4357  if (test_restrict ("String literal") == 0)
4358    success = true;
4359  char *restrict newvar = "Another string";
4360
4361  // Check varargs.
4362  test_varargs ("s, d' f .", "string", 65, 34.234);
4363  test_varargs_macros ();
4364
4365  // Check flexible array members.
4366  struct incomplete_array *ia =
4367    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4368  ia->datasize = 10;
4369  for (int i = 0; i < ia->datasize; ++i)
4370    ia->data[i] = i * 1.234;
4371
4372  // Check named initializers.
4373  struct named_init ni = {
4374    .number = 34,
4375    .name = L"Test wide string",
4376    .average = 543.34343,
4377  };
4378
4379  ni.number = 58;
4380
4381  int dynamic_array[ni.number];
4382  dynamic_array[ni.number - 1] = 543;
4383
4384  // work around unused variable warnings
4385  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4386	  || dynamic_array[ni.number - 1] != 543);
4387
4388  ;
4389  return 0;
4390}
4391_ACEOF
4392for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4393do
4394  CC="$ac_save_CC $ac_arg"
4395  if ac_fn_c_try_compile "$LINENO"; then :
4396  ac_cv_prog_cc_c99=$ac_arg
4397fi
4398rm -f core conftest.err conftest.$ac_objext
4399  test "x$ac_cv_prog_cc_c99" != "xno" && break
4400done
4401rm -f conftest.$ac_ext
4402CC=$ac_save_CC
4403
4404fi
4405# AC_CACHE_VAL
4406case "x$ac_cv_prog_cc_c99" in
4407  x)
4408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4409$as_echo "none needed" >&6; } ;;
4410  xno)
4411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4412$as_echo "unsupported" >&6; } ;;
4413  *)
4414    CC="$CC $ac_cv_prog_cc_c99"
4415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4416$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4417esac
4418if test "x$ac_cv_prog_cc_c99" != xno; then :
4419  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4420else
4421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4422$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4423if test "${ac_cv_prog_cc_c89+set}" = set; then :
4424  $as_echo_n "(cached) " >&6
4425else
4426  ac_cv_prog_cc_c89=no
4427ac_save_CC=$CC
4428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429/* end confdefs.h.  */
4430#include <stdarg.h>
4431#include <stdio.h>
4432#include <sys/types.h>
4433#include <sys/stat.h>
4434/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4435struct buf { int x; };
4436FILE * (*rcsopen) (struct buf *, struct stat *, int);
4437static char *e (p, i)
4438     char **p;
4439     int i;
4440{
4441  return p[i];
4442}
4443static char *f (char * (*g) (char **, int), char **p, ...)
4444{
4445  char *s;
4446  va_list v;
4447  va_start (v,p);
4448  s = g (p, va_arg (v,int));
4449  va_end (v);
4450  return s;
4451}
4452
4453/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4454   function prototypes and stuff, but not '\xHH' hex character constants.
4455   These don't provoke an error unfortunately, instead are silently treated
4456   as 'x'.  The following induces an error, until -std is added to get
4457   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4458   array size at least.  It's necessary to write '\x00'==0 to get something
4459   that's true only with -std.  */
4460int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4461
4462/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4463   inside strings and character constants.  */
4464#define FOO(x) 'x'
4465int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4466
4467int test (int i, double x);
4468struct s1 {int (*f) (int a);};
4469struct s2 {int (*f) (double a);};
4470int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4471int argc;
4472char **argv;
4473int
4474main ()
4475{
4476return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4477  ;
4478  return 0;
4479}
4480_ACEOF
4481for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4482	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4483do
4484  CC="$ac_save_CC $ac_arg"
4485  if ac_fn_c_try_compile "$LINENO"; then :
4486  ac_cv_prog_cc_c89=$ac_arg
4487fi
4488rm -f core conftest.err conftest.$ac_objext
4489  test "x$ac_cv_prog_cc_c89" != "xno" && break
4490done
4491rm -f conftest.$ac_ext
4492CC=$ac_save_CC
4493
4494fi
4495# AC_CACHE_VAL
4496case "x$ac_cv_prog_cc_c89" in
4497  x)
4498    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4499$as_echo "none needed" >&6; } ;;
4500  xno)
4501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4502$as_echo "unsupported" >&6; } ;;
4503  *)
4504    CC="$CC $ac_cv_prog_cc_c89"
4505    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4506$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4507esac
4508if test "x$ac_cv_prog_cc_c89" != xno; then :
4509  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4510else
4511  ac_cv_prog_cc_stdc=no
4512fi
4513
4514fi
4515 ;;
4516esac
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4518$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4519  if test "${ac_cv_prog_cc_stdc+set}" = set; then :
4520  $as_echo_n "(cached) " >&6
4521fi
4522
4523  case $ac_cv_prog_cc_stdc in #(
4524  no) :
4525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4526$as_echo "unsupported" >&6; } ;; #(
4527  '') :
4528    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4529$as_echo "none needed" >&6; } ;; #(
4530  *) :
4531    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4532$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4533esac
4534
4535
4536case "$ac_cv_prog_cc_stdc" in
4537 no)
4538    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile SNTP
4539		version 4.2.5 and higher." >&5
4540$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile SNTP
4541		version 4.2.5 and higher." >&2;}
4542esac
4543
4544case "$GCC" in
4545 yes)
4546    SAVED_CFLAGS_AC="$CFLAGS"
4547    CFLAGS="$CFLAGS -Wstrict-overflow"
4548
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
4550$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
4551if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then :
4552  $as_echo_n "(cached) " >&6
4553else
4554
4555	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556/* end confdefs.h.  */
4557
4558int
4559main ()
4560{
4561
4562  ;
4563  return 0;
4564}
4565_ACEOF
4566if ac_fn_c_try_compile "$LINENO"; then :
4567  ac_cv_gcc_Wstrict_overflow=yes
4568else
4569  ac_cv_gcc_Wstrict_overflow=no
4570
4571fi
4572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573
4574
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5
4577$as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; }
4578    CFLAGS="$SAVED_CFLAGS_AC"
4579    SAVED_CFLAGS_AC=
4580
4581    CFLAGS="$CFLAGS -Wall"
4582    # CFLAGS="$CFLAGS -Wcast-align"
4583    CFLAGS="$CFLAGS -Wcast-qual"
4584    # CFLAGS="$CFLAGS -Wconversion"
4585    # CFLAGS="$CFLAGS -Werror"
4586    # CFLAGS="$CFLAGS -Wextra"
4587    # CFLAGS="$CFLAGS -Wfloat-equal"
4588    CFLAGS="$CFLAGS -Wmissing-prototypes"
4589    CFLAGS="$CFLAGS -Wpointer-arith"
4590    CFLAGS="$CFLAGS -Wshadow"
4591    CFLAGS="$CFLAGS -Wstrict-prototypes"
4592    # CFLAGS="$CFLAGS -Wtraditional"
4593    # CFLAGS="$CFLAGS -Wwrite-strings"
4594    case "$ac_cv_gcc_Wstrict_overflow" in
4595     yes)
4596	CFLAGS="$CFLAGS -Wstrict-overflow"
4597    esac
4598esac
4599
4600# HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
4601case "$host" in
4602 *-*-solaris*)
4603    # see "man standards".
4604    # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
4605    # -D_XOPEN_SOURCE=600 seems OK for c99
4606    #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
4607    CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
4608    libxnet=-lxnet
4609    ;;
4610esac
4611
4612# Check whether --enable-shared was given.
4613if test "${enable_shared+set}" = set; then :
4614  enableval=$enable_shared; p=${PACKAGE-default}
4615    case $enableval in
4616    yes) enable_shared=yes ;;
4617    no) enable_shared=no ;;
4618    *)
4619      enable_shared=no
4620      # Look at the argument we got.  We use all the common list separators.
4621      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4622      for pkg in $enableval; do
4623	IFS="$lt_save_ifs"
4624	if test "X$pkg" = "X$p"; then
4625	  enable_shared=yes
4626	fi
4627      done
4628      IFS="$lt_save_ifs"
4629      ;;
4630    esac
4631else
4632  enable_shared=no
4633fi
4634
4635
4636
4637
4638# NTP has (so far) been relying on leading-edge autogen.
4639# Therefore, by default:
4640# - use the version we ship with
4641# - do not install it
4642# - build a static copy (AC_DISABLE_SHARED - done earlier)
4643case "${enable_local_libopts+set}" in
4644 set) ;;
4645 *) enable_local_libopts=yes ;;
4646esac
4647case "${enable_libopts_install+set}" in
4648 set) ;;
4649 *) enable_libopts_install=no ;;
4650esac
4651ac_ext=c
4652ac_cpp='$CPP $CPPFLAGS'
4653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4657$as_echo_n "checking how to run the C preprocessor... " >&6; }
4658# On Suns, sometimes $CPP names a directory.
4659if test -n "$CPP" && test -d "$CPP"; then
4660  CPP=
4661fi
4662if test -z "$CPP"; then
4663  if test "${ac_cv_prog_CPP+set}" = set; then :
4664  $as_echo_n "(cached) " >&6
4665else
4666      # Double quotes because CPP needs to be expanded
4667    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4668    do
4669      ac_preproc_ok=false
4670for ac_c_preproc_warn_flag in '' yes
4671do
4672  # Use a header file that comes with gcc, so configuring glibc
4673  # with a fresh cross-compiler works.
4674  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4675  # <limits.h> exists even on freestanding compilers.
4676  # On the NeXT, cc -E runs the code through the compiler's parser,
4677  # not just through cpp. "Syntax error" is here to catch this case.
4678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679/* end confdefs.h.  */
4680#ifdef __STDC__
4681# include <limits.h>
4682#else
4683# include <assert.h>
4684#endif
4685		     Syntax error
4686_ACEOF
4687if ac_fn_c_try_cpp "$LINENO"; then :
4688
4689else
4690  # Broken: fails on valid input.
4691continue
4692fi
4693rm -f conftest.err conftest.$ac_ext
4694
4695  # OK, works on sane cases.  Now check whether nonexistent headers
4696  # can be detected and how.
4697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698/* end confdefs.h.  */
4699#include <ac_nonexistent.h>
4700_ACEOF
4701if ac_fn_c_try_cpp "$LINENO"; then :
4702  # Broken: success on invalid input.
4703continue
4704else
4705  # Passes both tests.
4706ac_preproc_ok=:
4707break
4708fi
4709rm -f conftest.err conftest.$ac_ext
4710
4711done
4712# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4713rm -f conftest.err conftest.$ac_ext
4714if $ac_preproc_ok; then :
4715  break
4716fi
4717
4718    done
4719    ac_cv_prog_CPP=$CPP
4720
4721fi
4722  CPP=$ac_cv_prog_CPP
4723else
4724  ac_cv_prog_CPP=$CPP
4725fi
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4727$as_echo "$CPP" >&6; }
4728ac_preproc_ok=false
4729for ac_c_preproc_warn_flag in '' yes
4730do
4731  # Use a header file that comes with gcc, so configuring glibc
4732  # with a fresh cross-compiler works.
4733  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734  # <limits.h> exists even on freestanding compilers.
4735  # On the NeXT, cc -E runs the code through the compiler's parser,
4736  # not just through cpp. "Syntax error" is here to catch this case.
4737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738/* end confdefs.h.  */
4739#ifdef __STDC__
4740# include <limits.h>
4741#else
4742# include <assert.h>
4743#endif
4744		     Syntax error
4745_ACEOF
4746if ac_fn_c_try_cpp "$LINENO"; then :
4747
4748else
4749  # Broken: fails on valid input.
4750continue
4751fi
4752rm -f conftest.err conftest.$ac_ext
4753
4754  # OK, works on sane cases.  Now check whether nonexistent headers
4755  # can be detected and how.
4756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h.  */
4758#include <ac_nonexistent.h>
4759_ACEOF
4760if ac_fn_c_try_cpp "$LINENO"; then :
4761  # Broken: success on invalid input.
4762continue
4763else
4764  # Passes both tests.
4765ac_preproc_ok=:
4766break
4767fi
4768rm -f conftest.err conftest.$ac_ext
4769
4770done
4771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4772rm -f conftest.err conftest.$ac_ext
4773if $ac_preproc_ok; then :
4774
4775else
4776  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4778as_fn_error "C preprocessor \"$CPP\" fails sanity check
4779See \`config.log' for more details." "$LINENO" 5; }
4780fi
4781
4782ac_ext=c
4783ac_cpp='$CPP $CPPFLAGS'
4784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787
4788
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4790$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4791if test "${ac_cv_path_GREP+set}" = set; then :
4792  $as_echo_n "(cached) " >&6
4793else
4794  if test -z "$GREP"; then
4795  ac_path_GREP_found=false
4796  # Loop through the user's path and test for each of PROGNAME-LIST
4797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4799do
4800  IFS=$as_save_IFS
4801  test -z "$as_dir" && as_dir=.
4802    for ac_prog in grep ggrep; do
4803    for ac_exec_ext in '' $ac_executable_extensions; do
4804      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4805      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4806# Check for GNU ac_path_GREP and select it if it is found.
4807  # Check for GNU $ac_path_GREP
4808case `"$ac_path_GREP" --version 2>&1` in
4809*GNU*)
4810  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4811*)
4812  ac_count=0
4813  $as_echo_n 0123456789 >"conftest.in"
4814  while :
4815  do
4816    cat "conftest.in" "conftest.in" >"conftest.tmp"
4817    mv "conftest.tmp" "conftest.in"
4818    cp "conftest.in" "conftest.nl"
4819    $as_echo 'GREP' >> "conftest.nl"
4820    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4821    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4822    as_fn_arith $ac_count + 1 && ac_count=$as_val
4823    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4824      # Best one so far, save it but keep looking for a better one
4825      ac_cv_path_GREP="$ac_path_GREP"
4826      ac_path_GREP_max=$ac_count
4827    fi
4828    # 10*(2^10) chars as input seems more than enough
4829    test $ac_count -gt 10 && break
4830  done
4831  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4832esac
4833
4834      $ac_path_GREP_found && break 3
4835    done
4836  done
4837  done
4838IFS=$as_save_IFS
4839  if test -z "$ac_cv_path_GREP"; then
4840    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4841  fi
4842else
4843  ac_cv_path_GREP=$GREP
4844fi
4845
4846fi
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4848$as_echo "$ac_cv_path_GREP" >&6; }
4849 GREP="$ac_cv_path_GREP"
4850
4851
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4853$as_echo_n "checking for egrep... " >&6; }
4854if test "${ac_cv_path_EGREP+set}" = set; then :
4855  $as_echo_n "(cached) " >&6
4856else
4857  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4858   then ac_cv_path_EGREP="$GREP -E"
4859   else
4860     if test -z "$EGREP"; then
4861  ac_path_EGREP_found=false
4862  # Loop through the user's path and test for each of PROGNAME-LIST
4863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4865do
4866  IFS=$as_save_IFS
4867  test -z "$as_dir" && as_dir=.
4868    for ac_prog in egrep; do
4869    for ac_exec_ext in '' $ac_executable_extensions; do
4870      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4871      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4872# Check for GNU ac_path_EGREP and select it if it is found.
4873  # Check for GNU $ac_path_EGREP
4874case `"$ac_path_EGREP" --version 2>&1` in
4875*GNU*)
4876  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4877*)
4878  ac_count=0
4879  $as_echo_n 0123456789 >"conftest.in"
4880  while :
4881  do
4882    cat "conftest.in" "conftest.in" >"conftest.tmp"
4883    mv "conftest.tmp" "conftest.in"
4884    cp "conftest.in" "conftest.nl"
4885    $as_echo 'EGREP' >> "conftest.nl"
4886    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4887    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4888    as_fn_arith $ac_count + 1 && ac_count=$as_val
4889    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4890      # Best one so far, save it but keep looking for a better one
4891      ac_cv_path_EGREP="$ac_path_EGREP"
4892      ac_path_EGREP_max=$ac_count
4893    fi
4894    # 10*(2^10) chars as input seems more than enough
4895    test $ac_count -gt 10 && break
4896  done
4897  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4898esac
4899
4900      $ac_path_EGREP_found && break 3
4901    done
4902  done
4903  done
4904IFS=$as_save_IFS
4905  if test -z "$ac_cv_path_EGREP"; then
4906    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4907  fi
4908else
4909  ac_cv_path_EGREP=$EGREP
4910fi
4911
4912   fi
4913fi
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4915$as_echo "$ac_cv_path_EGREP" >&6; }
4916 EGREP="$ac_cv_path_EGREP"
4917
4918
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4920$as_echo_n "checking for ANSI C header files... " >&6; }
4921if test "${ac_cv_header_stdc+set}" = set; then :
4922  $as_echo_n "(cached) " >&6
4923else
4924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925/* end confdefs.h.  */
4926#include <stdlib.h>
4927#include <stdarg.h>
4928#include <string.h>
4929#include <float.h>
4930
4931int
4932main ()
4933{
4934
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939if ac_fn_c_try_compile "$LINENO"; then :
4940  ac_cv_header_stdc=yes
4941else
4942  ac_cv_header_stdc=no
4943fi
4944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945
4946if test $ac_cv_header_stdc = yes; then
4947  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949/* end confdefs.h.  */
4950#include <string.h>
4951
4952_ACEOF
4953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4954  $EGREP "memchr" >/dev/null 2>&1; then :
4955
4956else
4957  ac_cv_header_stdc=no
4958fi
4959rm -f conftest*
4960
4961fi
4962
4963if test $ac_cv_header_stdc = yes; then
4964  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966/* end confdefs.h.  */
4967#include <stdlib.h>
4968
4969_ACEOF
4970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971  $EGREP "free" >/dev/null 2>&1; then :
4972
4973else
4974  ac_cv_header_stdc=no
4975fi
4976rm -f conftest*
4977
4978fi
4979
4980if test $ac_cv_header_stdc = yes; then
4981  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4982  if test "$cross_compiling" = yes; then :
4983  :
4984else
4985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986/* end confdefs.h.  */
4987#include <ctype.h>
4988#include <stdlib.h>
4989#if ((' ' & 0x0FF) == 0x020)
4990# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4991# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4992#else
4993# define ISLOWER(c) \
4994		   (('a' <= (c) && (c) <= 'i') \
4995		     || ('j' <= (c) && (c) <= 'r') \
4996		     || ('s' <= (c) && (c) <= 'z'))
4997# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4998#endif
4999
5000#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5001int
5002main ()
5003{
5004  int i;
5005  for (i = 0; i < 256; i++)
5006    if (XOR (islower (i), ISLOWER (i))
5007	|| toupper (i) != TOUPPER (i))
5008      return 2;
5009  return 0;
5010}
5011_ACEOF
5012if ac_fn_c_try_run "$LINENO"; then :
5013
5014else
5015  ac_cv_header_stdc=no
5016fi
5017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5018  conftest.$ac_objext conftest.beam conftest.$ac_ext
5019fi
5020
5021fi
5022fi
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5024$as_echo "$ac_cv_header_stdc" >&6; }
5025if test $ac_cv_header_stdc = yes; then
5026
5027$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5028
5029fi
5030
5031# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5032for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5033		  inttypes.h stdint.h unistd.h
5034do :
5035  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5036ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5037"
5038eval as_val=\$$as_ac_Header
5039   if test "x$as_val" = x""yes; then :
5040  cat >>confdefs.h <<_ACEOF
5041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5042_ACEOF
5043
5044fi
5045
5046done
5047
5048
5049ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5050if test "x$ac_cv_type_pid_t" = x""yes; then :
5051
5052else
5053
5054cat >>confdefs.h <<_ACEOF
5055#define pid_t int
5056_ACEOF
5057
5058fi
5059
5060
5061  NEED_LIBOPTS_DIR=''
5062
5063  LIBOPTS_DIR=libopts
5064
5065  # Check whether --enable-local-libopts was given.
5066if test "${enable_local_libopts+set}" = set; then :
5067  enableval=$enable_local_libopts;
5068    if test x$enableval = xyes ; then
5069       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
5070$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
5071       LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
5072       LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
5073       NEED_LIBOPTS_DIR=true
5074    fi
5075fi
5076
5077
5078  # Check whether --enable-libopts-install was given.
5079if test "${enable_libopts_install+set}" = set; then :
5080  enableval=$enable_libopts_install;
5081fi
5082
5083   if test "X${enable_libopts_install}" != Xno; then
5084  INSTALL_LIBOPTS_TRUE=
5085  INSTALL_LIBOPTS_FALSE='#'
5086else
5087  INSTALL_LIBOPTS_TRUE='#'
5088  INSTALL_LIBOPTS_FALSE=
5089fi
5090
5091
5092  if test -z "${NEED_LIBOPTS_DIR}" ; then
5093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
5094$as_echo_n "checking whether autoopts-config can be found... " >&6; }
5095
5096# Check whether --with-autoopts-config was given.
5097if test "${with_autoopts_config+set}" = set; then :
5098  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
5099else
5100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
5101$as_echo_n "checking whether autoopts-config is specified... " >&6; }
5102if test "${lo_cv_with_autoopts_config+set}" = set; then :
5103  $as_echo_n "(cached) " >&6
5104else
5105  if autoopts-config --help 2>/dev/null 1>&2
5106        then lo_cv_with_autoopts_config=autoopts-config
5107        elif libopts-config --help 2>/dev/null 1>&2
5108        then lo_cv_with_autoopts_config=libopts-config
5109        else lo_cv_with_autoopts_config=no ; fi
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
5112$as_echo "$lo_cv_with_autoopts_config" >&6; }
5113
5114fi
5115 # end of AC_ARG_WITH
5116
5117     if test "${lo_cv_test_autoopts+set}" = set; then :
5118  $as_echo_n "(cached) " >&6
5119else
5120
5121        if test -z "${lo_cv_with_autoopts_config}" \
5122                -o X"${lo_cv_with_autoopts_config}" = Xno
5123        then
5124           if autoopts-config --help 2>/dev/null 1>&2
5125           then lo_cv_with_autoopts_config=autoopts-config
5126           elif libopts-config --help 2>/dev/null 1>&2
5127           then lo_cv_with_autoopts_config=libopts-config
5128           else lo_cv_with_autoopts_config=false ; fi
5129        fi
5130        lo_cv_test_autoopts=`
5131            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
5132        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
5133        then lo_cv_test_autoopts=no ; fi
5134
5135fi
5136 # end of CACHE_VAL
5137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
5138$as_echo "${lo_cv_test_autoopts}" >&6; }
5139
5140     if test "X${lo_cv_test_autoopts}" != Xno
5141     then
5142        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
5143        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
5144     else
5145        LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
5146        LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
5147        NEED_LIBOPTS_DIR=true
5148     fi
5149  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
5150
5151   if test -n "${NEED_LIBOPTS_DIR}"; then
5152  NEED_LIBOPTS_TRUE=
5153  NEED_LIBOPTS_FALSE='#'
5154else
5155  NEED_LIBOPTS_TRUE='#'
5156  NEED_LIBOPTS_FALSE=
5157fi
5158
5159
5160
5161  LIBOPTS_DIR=libopts
5162
5163  ac_config_files="$ac_config_files libopts/Makefile"
5164
5165
5166
5167  if test -n "${NEED_LIBOPTS_DIR}" ; then
5168
5169
5170if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
5171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5172$as_echo_n "checking for ANSI C header files... " >&6; }
5173if test "${ac_cv_header_stdc+set}" = set; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h.  */
5178#include <stdlib.h>
5179#include <stdarg.h>
5180#include <string.h>
5181#include <float.h>
5182
5183int
5184main ()
5185{
5186
5187  ;
5188  return 0;
5189}
5190_ACEOF
5191if ac_fn_c_try_compile "$LINENO"; then :
5192  ac_cv_header_stdc=yes
5193else
5194  ac_cv_header_stdc=no
5195fi
5196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197
5198if test $ac_cv_header_stdc = yes; then
5199  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201/* end confdefs.h.  */
5202#include <string.h>
5203
5204_ACEOF
5205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5206  $EGREP "memchr" >/dev/null 2>&1; then :
5207
5208else
5209  ac_cv_header_stdc=no
5210fi
5211rm -f conftest*
5212
5213fi
5214
5215if test $ac_cv_header_stdc = yes; then
5216  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h.  */
5219#include <stdlib.h>
5220
5221_ACEOF
5222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5223  $EGREP "free" >/dev/null 2>&1; then :
5224
5225else
5226  ac_cv_header_stdc=no
5227fi
5228rm -f conftest*
5229
5230fi
5231
5232if test $ac_cv_header_stdc = yes; then
5233  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5234  if test "$cross_compiling" = yes; then :
5235  :
5236else
5237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h.  */
5239#include <ctype.h>
5240#include <stdlib.h>
5241#if ((' ' & 0x0FF) == 0x020)
5242# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5243# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5244#else
5245# define ISLOWER(c) \
5246		   (('a' <= (c) && (c) <= 'i') \
5247		     || ('j' <= (c) && (c) <= 'r') \
5248		     || ('s' <= (c) && (c) <= 'z'))
5249# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5250#endif
5251
5252#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5253int
5254main ()
5255{
5256  int i;
5257  for (i = 0; i < 256; i++)
5258    if (XOR (islower (i), ISLOWER (i))
5259	|| toupper (i) != TOUPPER (i))
5260      return 2;
5261  return 0;
5262}
5263_ACEOF
5264if ac_fn_c_try_run "$LINENO"; then :
5265
5266else
5267  ac_cv_header_stdc=no
5268fi
5269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5270  conftest.$ac_objext conftest.beam conftest.$ac_ext
5271fi
5272
5273fi
5274fi
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5276$as_echo "$ac_cv_header_stdc" >&6; }
5277if test $ac_cv_header_stdc = yes; then
5278
5279$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5280
5281fi
5282
5283  ac_header_dirent=no
5284for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5285  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5287$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5289  $as_echo_n "(cached) " >&6
5290else
5291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292/* end confdefs.h.  */
5293#include <sys/types.h>
5294#include <$ac_hdr>
5295
5296int
5297main ()
5298{
5299if ((DIR *) 0)
5300return 0;
5301  ;
5302  return 0;
5303}
5304_ACEOF
5305if ac_fn_c_try_compile "$LINENO"; then :
5306  eval "$as_ac_Header=yes"
5307else
5308  eval "$as_ac_Header=no"
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311fi
5312eval ac_res=\$$as_ac_Header
5313	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5314$as_echo "$ac_res" >&6; }
5315eval as_val=\$$as_ac_Header
5316   if test "x$as_val" = x""yes; then :
5317  cat >>confdefs.h <<_ACEOF
5318#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5319_ACEOF
5320
5321ac_header_dirent=$ac_hdr; break
5322fi
5323
5324done
5325# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5326if test $ac_header_dirent = dirent.h; then
5327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5328$as_echo_n "checking for library containing opendir... " >&6; }
5329if test "${ac_cv_search_opendir+set}" = set; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  ac_func_search_save_LIBS=$LIBS
5333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h.  */
5335
5336/* Override any GCC internal prototype to avoid an error.
5337   Use char because int might match the return type of a GCC
5338   builtin and then its argument prototype would still apply.  */
5339#ifdef __cplusplus
5340extern "C"
5341#endif
5342char opendir ();
5343int
5344main ()
5345{
5346return opendir ();
5347  ;
5348  return 0;
5349}
5350_ACEOF
5351for ac_lib in '' dir; do
5352  if test -z "$ac_lib"; then
5353    ac_res="none required"
5354  else
5355    ac_res=-l$ac_lib
5356    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5357  fi
5358  if ac_fn_c_try_link "$LINENO"; then :
5359  ac_cv_search_opendir=$ac_res
5360fi
5361rm -f core conftest.err conftest.$ac_objext \
5362    conftest$ac_exeext
5363  if test "${ac_cv_search_opendir+set}" = set; then :
5364  break
5365fi
5366done
5367if test "${ac_cv_search_opendir+set}" = set; then :
5368
5369else
5370  ac_cv_search_opendir=no
5371fi
5372rm conftest.$ac_ext
5373LIBS=$ac_func_search_save_LIBS
5374fi
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5376$as_echo "$ac_cv_search_opendir" >&6; }
5377ac_res=$ac_cv_search_opendir
5378if test "$ac_res" != no; then :
5379  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5380
5381fi
5382
5383else
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5385$as_echo_n "checking for library containing opendir... " >&6; }
5386if test "${ac_cv_search_opendir+set}" = set; then :
5387  $as_echo_n "(cached) " >&6
5388else
5389  ac_func_search_save_LIBS=$LIBS
5390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391/* end confdefs.h.  */
5392
5393/* Override any GCC internal prototype to avoid an error.
5394   Use char because int might match the return type of a GCC
5395   builtin and then its argument prototype would still apply.  */
5396#ifdef __cplusplus
5397extern "C"
5398#endif
5399char opendir ();
5400int
5401main ()
5402{
5403return opendir ();
5404  ;
5405  return 0;
5406}
5407_ACEOF
5408for ac_lib in '' x; do
5409  if test -z "$ac_lib"; then
5410    ac_res="none required"
5411  else
5412    ac_res=-l$ac_lib
5413    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5414  fi
5415  if ac_fn_c_try_link "$LINENO"; then :
5416  ac_cv_search_opendir=$ac_res
5417fi
5418rm -f core conftest.err conftest.$ac_objext \
5419    conftest$ac_exeext
5420  if test "${ac_cv_search_opendir+set}" = set; then :
5421  break
5422fi
5423done
5424if test "${ac_cv_search_opendir+set}" = set; then :
5425
5426else
5427  ac_cv_search_opendir=no
5428fi
5429rm conftest.$ac_ext
5430LIBS=$ac_func_search_save_LIBS
5431fi
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5433$as_echo "$ac_cv_search_opendir" >&6; }
5434ac_res=$ac_cv_search_opendir
5435if test "$ac_res" != no; then :
5436  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5437
5438fi
5439
5440fi
5441
5442
5443  # =================
5444  # AC_CHECK_HEADERS
5445  # =================
5446  for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
5447    setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
5448    sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
5449    utime.h sysexits.h
5450do :
5451  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5452ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5453eval as_val=\$$as_ac_Header
5454   if test "x$as_val" = x""yes; then :
5455  cat >>confdefs.h <<_ACEOF
5456#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5457_ACEOF
5458
5459fi
5460
5461done
5462
5463
5464  # --------------------------------------------
5465  # Verify certain entries from AC_CHECK_HEADERS
5466  # --------------------------------------------
5467  for f in sys_types sys_mman sys_param sys_stat sys_wait \
5468           string errno stdlib memory setjmp
5469  do eval as_ac_var=\${ac_cv_header_${f}_h+set}
5470     test "${as_ac_var}" = set || \
5471       as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
5472  done
5473
5474  # ================================================
5475  # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
5476  # if varargs.h is present define HAVE_VARARGS_H.
5477  # ================================================
5478  for ac_header in stdarg.h varargs.h
5479do :
5480  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5481ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5482eval as_val=\$$as_ac_Header
5483   if test "x$as_val" = x""yes; then :
5484  cat >>confdefs.h <<_ACEOF
5485#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5486_ACEOF
5487 break
5488fi
5489
5490done
5491
5492  if test `eval echo '${'$as_ac_Header'}'` != yes; then
5493    as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
5494  fi
5495
5496  # ================================================
5497  # Similarly for the string.h and strings.h headers
5498  # ================================================
5499  for ac_header in string.h strings.h
5500do :
5501  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5503eval as_val=\$$as_ac_Header
5504   if test "x$as_val" = x""yes; then :
5505  cat >>confdefs.h <<_ACEOF
5506#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5507_ACEOF
5508 break
5509fi
5510
5511done
5512
5513  if test `eval echo '${'$as_ac_Header'}'` != yes; then
5514    as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
5515  fi
5516
5517  # =====================
5518  # ...and limits headers
5519  # =====================
5520  for ac_header in limits.h sys/limits.h values.h
5521do :
5522  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5523ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5524eval as_val=\$$as_ac_Header
5525   if test "x$as_val" = x""yes; then :
5526  cat >>confdefs.h <<_ACEOF
5527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5528_ACEOF
5529 break
5530fi
5531
5532done
5533
5534  if test `eval echo '${'$as_ac_Header'}'` != yes; then
5535    as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
5536  fi
5537
5538  # ----------------------------------------------------------------------
5539  # check for various programs used during the build.
5540  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
5541  # ----------------------------------------------------------------------
5542  for ac_header in runetype.h wchar.h
5543do :
5544  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5545ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
5546  $ac_includes_default
5547  #if HAVE_RUNETYPE_H
5548  # include <runetype.h>
5549  #endif
5550
5551"
5552eval as_val=\$$as_ac_Header
5553   if test "x$as_val" = x""yes; then :
5554  cat >>confdefs.h <<_ACEOF
5555#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5556_ACEOF
5557
5558fi
5559
5560done
5561
5562
5563  # ----------------------------------------------------------------------
5564  # Checks for typedefs
5565  # ----------------------------------------------------------------------
5566  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
5567if test "x$ac_cv_type_wchar_t" = x""yes; then :
5568
5569cat >>confdefs.h <<_ACEOF
5570#define HAVE_WCHAR_T 1
5571_ACEOF
5572
5573
5574fi
5575
5576  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
5577  $ac_includes_default
5578  #if HAVE_RUNETYPE_H
5579  # include <runetype.h>
5580  #endif
5581  #if HAVE_WCHAR_H
5582  # include <wchar.h>
5583  #endif
5584
5585"
5586if test "x$ac_cv_type_wint_t" = x""yes; then :
5587
5588cat >>confdefs.h <<_ACEOF
5589#define HAVE_WINT_T 1
5590_ACEOF
5591
5592
5593fi
5594
5595
5596  # ========================
5597  # ...and int types headers
5598  # ========================
5599  for ac_header in stdint.h inttypes.h
5600do :
5601  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5603eval as_val=\$$as_ac_Header
5604   if test "x$as_val" = x""yes; then :
5605  cat >>confdefs.h <<_ACEOF
5606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5607_ACEOF
5608 break
5609fi
5610
5611done
5612
5613  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5614if test "x$ac_cv_type_int8_t" = x""yes; then :
5615
5616cat >>confdefs.h <<_ACEOF
5617#define HAVE_INT8_T 1
5618_ACEOF
5619
5620
5621fi
5622ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5623if test "x$ac_cv_type_uint8_t" = x""yes; then :
5624
5625cat >>confdefs.h <<_ACEOF
5626#define HAVE_UINT8_T 1
5627_ACEOF
5628
5629
5630fi
5631ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5632if test "x$ac_cv_type_int16_t" = x""yes; then :
5633
5634cat >>confdefs.h <<_ACEOF
5635#define HAVE_INT16_T 1
5636_ACEOF
5637
5638
5639fi
5640ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5641if test "x$ac_cv_type_uint16_t" = x""yes; then :
5642
5643cat >>confdefs.h <<_ACEOF
5644#define HAVE_UINT16_T 1
5645_ACEOF
5646
5647
5648fi
5649ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5650if test "x$ac_cv_type_int32_t" = x""yes; then :
5651
5652cat >>confdefs.h <<_ACEOF
5653#define HAVE_INT32_T 1
5654_ACEOF
5655
5656
5657fi
5658ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5659if test "x$ac_cv_type_uint32_t" = x""yes; then :
5660
5661cat >>confdefs.h <<_ACEOF
5662#define HAVE_UINT32_T 1
5663_ACEOF
5664
5665
5666fi
5667ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5668if test "x$ac_cv_type_intptr_t" = x""yes; then :
5669
5670cat >>confdefs.h <<_ACEOF
5671#define HAVE_INTPTR_T 1
5672_ACEOF
5673
5674
5675fi
5676ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5677if test "x$ac_cv_type_uintptr_t" = x""yes; then :
5678
5679cat >>confdefs.h <<_ACEOF
5680#define HAVE_UINTPTR_T 1
5681_ACEOF
5682
5683
5684fi
5685ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
5686if test "x$ac_cv_type_uint_t" = x""yes; then :
5687
5688cat >>confdefs.h <<_ACEOF
5689#define HAVE_UINT_T 1
5690_ACEOF
5691
5692
5693fi
5694ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5695if test "x$ac_cv_type_pid_t" = x""yes; then :
5696
5697cat >>confdefs.h <<_ACEOF
5698#define HAVE_PID_T 1
5699_ACEOF
5700
5701
5702fi
5703ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5704if test "x$ac_cv_type_size_t" = x""yes; then :
5705
5706cat >>confdefs.h <<_ACEOF
5707#define HAVE_SIZE_T 1
5708_ACEOF
5709
5710
5711fi
5712
5713
5714  # =====
5715  # sizes
5716  # =====
5717  # The cast to long int works around a bug in the HP C Compiler
5718# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5719# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5720# This bug is HP SR number 8606223364.
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
5722$as_echo_n "checking size of char*... " >&6; }
5723if test "${ac_cv_sizeof_charp+set}" = set; then :
5724  $as_echo_n "(cached) " >&6
5725else
5726  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :
5727
5728else
5729  if test "$ac_cv_type_charp" = yes; then
5730     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5732{ as_fn_set_status 77
5733as_fn_error "cannot compute sizeof (char*)
5734See \`config.log' for more details." "$LINENO" 5; }; }
5735   else
5736     ac_cv_sizeof_charp=0
5737   fi
5738fi
5739
5740fi
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
5742$as_echo "$ac_cv_sizeof_charp" >&6; }
5743
5744
5745
5746cat >>confdefs.h <<_ACEOF
5747#define SIZEOF_CHARP $ac_cv_sizeof_charp
5748_ACEOF
5749
5750
5751  # The cast to long int works around a bug in the HP C Compiler
5752# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754# This bug is HP SR number 8606223364.
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5756$as_echo_n "checking size of int... " >&6; }
5757if test "${ac_cv_sizeof_int+set}" = set; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5761
5762else
5763  if test "$ac_cv_type_int" = yes; then
5764     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5766{ as_fn_set_status 77
5767as_fn_error "cannot compute sizeof (int)
5768See \`config.log' for more details." "$LINENO" 5; }; }
5769   else
5770     ac_cv_sizeof_int=0
5771   fi
5772fi
5773
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5776$as_echo "$ac_cv_sizeof_int" >&6; }
5777
5778
5779
5780cat >>confdefs.h <<_ACEOF
5781#define SIZEOF_INT $ac_cv_sizeof_int
5782_ACEOF
5783
5784
5785  # The cast to long int works around a bug in the HP C Compiler
5786# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5787# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5788# This bug is HP SR number 8606223364.
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5790$as_echo_n "checking size of long... " >&6; }
5791if test "${ac_cv_sizeof_long+set}" = set; then :
5792  $as_echo_n "(cached) " >&6
5793else
5794  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5795
5796else
5797  if test "$ac_cv_type_long" = yes; then
5798     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800{ as_fn_set_status 77
5801as_fn_error "cannot compute sizeof (long)
5802See \`config.log' for more details." "$LINENO" 5; }; }
5803   else
5804     ac_cv_sizeof_long=0
5805   fi
5806fi
5807
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5810$as_echo "$ac_cv_sizeof_long" >&6; }
5811
5812
5813
5814cat >>confdefs.h <<_ACEOF
5815#define SIZEOF_LONG $ac_cv_sizeof_long
5816_ACEOF
5817
5818
5819  # The cast to long int works around a bug in the HP C Compiler
5820# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5821# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5822# This bug is HP SR number 8606223364.
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5824$as_echo_n "checking size of short... " >&6; }
5825if test "${ac_cv_sizeof_short+set}" = set; then :
5826  $as_echo_n "(cached) " >&6
5827else
5828  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5829
5830else
5831  if test "$ac_cv_type_short" = yes; then
5832     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5834{ as_fn_set_status 77
5835as_fn_error "cannot compute sizeof (short)
5836See \`config.log' for more details." "$LINENO" 5; }; }
5837   else
5838     ac_cv_sizeof_short=0
5839   fi
5840fi
5841
5842fi
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5844$as_echo "$ac_cv_sizeof_short" >&6; }
5845
5846
5847
5848cat >>confdefs.h <<_ACEOF
5849#define SIZEOF_SHORT $ac_cv_sizeof_short
5850_ACEOF
5851
5852
5853
5854  # ----------------------------------------------------------------------
5855  # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
5856  # ----------------------------------------------------------------------
5857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
5858$as_echo_n "checking for pathfind in -lgen... " >&6; }
5859if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
5860  $as_echo_n "(cached) " >&6
5861else
5862  ac_check_lib_save_LIBS=$LIBS
5863LIBS="-lgen  $LIBS"
5864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865/* end confdefs.h.  */
5866
5867/* Override any GCC internal prototype to avoid an error.
5868   Use char because int might match the return type of a GCC
5869   builtin and then its argument prototype would still apply.  */
5870#ifdef __cplusplus
5871extern "C"
5872#endif
5873char pathfind ();
5874int
5875main ()
5876{
5877return pathfind ();
5878  ;
5879  return 0;
5880}
5881_ACEOF
5882if ac_fn_c_try_link "$LINENO"; then :
5883  ac_cv_lib_gen_pathfind=yes
5884else
5885  ac_cv_lib_gen_pathfind=no
5886fi
5887rm -f core conftest.err conftest.$ac_objext \
5888    conftest$ac_exeext conftest.$ac_ext
5889LIBS=$ac_check_lib_save_LIBS
5890fi
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
5892$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
5893if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
5894  cat >>confdefs.h <<_ACEOF
5895#define HAVE_LIBGEN 1
5896_ACEOF
5897
5898  LIBS="-lgen $LIBS"
5899
5900fi
5901
5902  for ac_func in vprintf
5903do :
5904  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5905if test "x$ac_cv_func_vprintf" = x""yes; then :
5906  cat >>confdefs.h <<_ACEOF
5907#define HAVE_VPRINTF 1
5908_ACEOF
5909
5910ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5911if test "x$ac_cv_func__doprnt" = x""yes; then :
5912
5913$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5914
5915fi
5916
5917fi
5918done
5919
5920
5921  for ac_header in vfork.h
5922do :
5923  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5924if test "x$ac_cv_header_vfork_h" = x""yes; then :
5925  cat >>confdefs.h <<_ACEOF
5926#define HAVE_VFORK_H 1
5927_ACEOF
5928
5929fi
5930
5931done
5932
5933for ac_func in fork vfork
5934do :
5935  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5936ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5937eval as_val=\$$as_ac_var
5938   if test "x$as_val" = x""yes; then :
5939  cat >>confdefs.h <<_ACEOF
5940#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5941_ACEOF
5942
5943fi
5944done
5945
5946if test "x$ac_cv_func_fork" = xyes; then
5947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5948$as_echo_n "checking for working fork... " >&6; }
5949if test "${ac_cv_func_fork_works+set}" = set; then :
5950  $as_echo_n "(cached) " >&6
5951else
5952  if test "$cross_compiling" = yes; then :
5953  ac_cv_func_fork_works=cross
5954else
5955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956/* end confdefs.h.  */
5957$ac_includes_default
5958int
5959main ()
5960{
5961
5962	  /* By Ruediger Kuhlmann. */
5963	  return fork () < 0;
5964
5965  ;
5966  return 0;
5967}
5968_ACEOF
5969if ac_fn_c_try_run "$LINENO"; then :
5970  ac_cv_func_fork_works=yes
5971else
5972  ac_cv_func_fork_works=no
5973fi
5974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5975  conftest.$ac_objext conftest.beam conftest.$ac_ext
5976fi
5977
5978fi
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5980$as_echo "$ac_cv_func_fork_works" >&6; }
5981
5982else
5983  ac_cv_func_fork_works=$ac_cv_func_fork
5984fi
5985if test "x$ac_cv_func_fork_works" = xcross; then
5986  case $host in
5987    *-*-amigaos* | *-*-msdosdjgpp*)
5988      # Override, as these systems have only a dummy fork() stub
5989      ac_cv_func_fork_works=no
5990      ;;
5991    *)
5992      ac_cv_func_fork_works=yes
5993      ;;
5994  esac
5995  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5996$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5997fi
5998ac_cv_func_vfork_works=$ac_cv_func_vfork
5999if test "x$ac_cv_func_vfork" = xyes; then
6000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6001$as_echo_n "checking for working vfork... " >&6; }
6002if test "${ac_cv_func_vfork_works+set}" = set; then :
6003  $as_echo_n "(cached) " >&6
6004else
6005  if test "$cross_compiling" = yes; then :
6006  ac_cv_func_vfork_works=cross
6007else
6008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h.  */
6010/* Thanks to Paul Eggert for this test.  */
6011$ac_includes_default
6012#include <sys/wait.h>
6013#ifdef HAVE_VFORK_H
6014# include <vfork.h>
6015#endif
6016/* On some sparc systems, changes by the child to local and incoming
6017   argument registers are propagated back to the parent.  The compiler
6018   is told about this with #include <vfork.h>, but some compilers
6019   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
6020   static variable whose address is put into a register that is
6021   clobbered by the vfork.  */
6022static void
6023#ifdef __cplusplus
6024sparc_address_test (int arg)
6025# else
6026sparc_address_test (arg) int arg;
6027#endif
6028{
6029  static pid_t child;
6030  if (!child) {
6031    child = vfork ();
6032    if (child < 0) {
6033      perror ("vfork");
6034      _exit(2);
6035    }
6036    if (!child) {
6037      arg = getpid();
6038      write(-1, "", 0);
6039      _exit (arg);
6040    }
6041  }
6042}
6043
6044int
6045main ()
6046{
6047  pid_t parent = getpid ();
6048  pid_t child;
6049
6050  sparc_address_test (0);
6051
6052  child = vfork ();
6053
6054  if (child == 0) {
6055    /* Here is another test for sparc vfork register problems.  This
6056       test uses lots of local variables, at least as many local
6057       variables as main has allocated so far including compiler
6058       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
6059       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
6060       reuse the register of parent for one of the local variables,
6061       since it will think that parent can't possibly be used any more
6062       in this routine.  Assigning to the local variable will thus
6063       munge parent in the parent process.  */
6064    pid_t
6065      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6066      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6067    /* Convince the compiler that p..p7 are live; otherwise, it might
6068       use the same hardware register for all 8 local variables.  */
6069    if (p != p1 || p != p2 || p != p3 || p != p4
6070	|| p != p5 || p != p6 || p != p7)
6071      _exit(1);
6072
6073    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6074       from child file descriptors.  If the child closes a descriptor
6075       before it execs or exits, this munges the parent's descriptor
6076       as well.  Test for this by closing stdout in the child.  */
6077    _exit(close(fileno(stdout)) != 0);
6078  } else {
6079    int status;
6080    struct stat st;
6081
6082    while (wait(&status) != child)
6083      ;
6084    return (
6085	 /* Was there some problem with vforking?  */
6086	 child < 0
6087
6088	 /* Did the child fail?  (This shouldn't happen.)  */
6089	 || status
6090
6091	 /* Did the vfork/compiler bug occur?  */
6092	 || parent != getpid()
6093
6094	 /* Did the file descriptor bug occur?  */
6095	 || fstat(fileno(stdout), &st) != 0
6096	 );
6097  }
6098}
6099_ACEOF
6100if ac_fn_c_try_run "$LINENO"; then :
6101  ac_cv_func_vfork_works=yes
6102else
6103  ac_cv_func_vfork_works=no
6104fi
6105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6106  conftest.$ac_objext conftest.beam conftest.$ac_ext
6107fi
6108
6109fi
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6111$as_echo "$ac_cv_func_vfork_works" >&6; }
6112
6113fi;
6114if test "x$ac_cv_func_fork_works" = xcross; then
6115  ac_cv_func_vfork_works=$ac_cv_func_vfork
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6117$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6118fi
6119
6120if test "x$ac_cv_func_vfork_works" = xyes; then
6121
6122$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6123
6124else
6125
6126$as_echo "#define vfork fork" >>confdefs.h
6127
6128fi
6129if test "x$ac_cv_func_fork_works" = xyes; then
6130
6131$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6132
6133fi
6134
6135  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
6136                 strrchr strsignal
6137do :
6138  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6139ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6140eval as_val=\$$as_ac_var
6141   if test "x$as_val" = x""yes; then :
6142  cat >>confdefs.h <<_ACEOF
6143#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6144_ACEOF
6145
6146fi
6147done
6148
6149  INVOKE_LIBOPTS_MACROS_FIRST_done=yes
6150fi
6151  # Check to see if a reg expr header is specified.
6152
6153
6154# Check whether --with-regex-header was given.
6155if test "${with_regex_header+set}" = set; then :
6156  withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
6157else
6158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
6159$as_echo_n "checking whether a reg expr header is specified... " >&6; }
6160if test "${libopts_cv_with_regex_header+set}" = set; then :
6161  $as_echo_n "(cached) " >&6
6162else
6163  libopts_cv_with_regex_header=no
6164fi
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
6166$as_echo "$libopts_cv_with_regex_header" >&6; }
6167
6168fi
6169 # end of AC_ARG_WITH
6170
6171  if test "X${libopts_cv_with_regex_header}" != Xno
6172  then
6173    cat >>confdefs.h <<_ACEOF
6174#define REGEX_HEADER <${libopts_cv_with_regex_header}>
6175_ACEOF
6176
6177  else
6178
6179$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
6180
6181  fi
6182
6183
6184
6185  # Check to see if a working libregex can be found.
6186
6187
6188# Check whether --with-libregex was given.
6189if test "${with_libregex+set}" = set; then :
6190  withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
6191else
6192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
6193$as_echo_n "checking whether with-libregex was specified... " >&6; }
6194if test "${libopts_cv_with_libregex_root+set}" = set; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197  libopts_cv_with_libregex_root=no
6198fi
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
6200$as_echo "$libopts_cv_with_libregex_root" >&6; }
6201
6202fi
6203 # end of AC_ARG_WITH libregex
6204
6205  if test "${with_libguile+set}" = set && \
6206     test "${withval}" = no
6207  then ## disabled by request
6208    libopts_cv_with_libregex_root=no
6209    libopts_cv_with_libregex_cflags=no
6210    libopts_cv_with_libregex_libs=no
6211  else
6212
6213
6214# Check whether --with-libregex-cflags was given.
6215if test "${with_libregex_cflags+set}" = set; then :
6216  withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
6217else
6218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
6219$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
6220if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
6221  $as_echo_n "(cached) " >&6
6222else
6223  libopts_cv_with_libregex_cflags=no
6224fi
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
6226$as_echo "$libopts_cv_with_libregex_cflags" >&6; }
6227
6228fi
6229 # end of AC_ARG_WITH libregex-cflags
6230
6231
6232# Check whether --with-libregex-libs was given.
6233if test "${with_libregex_libs+set}" = set; then :
6234  withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
6235else
6236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
6237$as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
6238if test "${libopts_cv_with_libregex_libs+set}" = set; then :
6239  $as_echo_n "(cached) " >&6
6240else
6241  libopts_cv_with_libregex_libs=no
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
6244$as_echo "$libopts_cv_with_libregex_libs" >&6; }
6245
6246fi
6247 # end of AC_ARG_WITH libregex-libs
6248
6249  case "X${libopts_cv_with_libregex_cflags}" in
6250  Xyes|Xno|X )
6251    case "X${libopts_cv_with_libregex_root}" in
6252    Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
6253    * )        libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
6254    esac
6255  esac
6256  case "X${libopts_cv_with_libregex_libs}" in
6257  Xyes|Xno|X )
6258    case "X${libopts_cv_with_libregex_root}" in
6259    Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
6260    * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
6261    esac
6262  esac
6263  libopts_save_CPPFLAGS="${CPPFLAGS}"
6264  libopts_save_LIBS="${LIBS}"
6265  fi ## disabled by request
6266
6267  case "X${libopts_cv_with_libregex_cflags}" in
6268  Xyes|Xno|X )
6269    libopts_cv_with_libregex_cflags="" ;;
6270  * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
6271  esac
6272  case "X${libopts_cv_with_libregex_libs}" in
6273  Xyes|Xno|X )
6274    libopts_cv_with_libregex_libs="" ;;
6275  * )
6276    LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
6277  esac
6278  LIBREGEX_CFLAGS=""
6279  LIBREGEX_LIBS=""
6280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
6281$as_echo_n "checking whether libregex functions properly... " >&6; }
6282  if test "${libopts_cv_with_libregex+set}" = set; then :
6283  $as_echo_n "(cached) " >&6
6284else
6285
6286  if test "$cross_compiling" = yes; then :
6287  libopts_cv_with_libregex=no
6288else
6289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290/* end confdefs.h.  */
6291#include <stdio.h>
6292#include <stdlib.h>
6293#include <sys/types.h>
6294#include REGEX_HEADER
6295static regex_t re;
6296void comp_re( char const* pzPat ) {
6297  int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
6298  if (res == 0) return;
6299  exit( res ); }
6300int main() {
6301  regmatch_t m[2];
6302  comp_re( "^.*\$"   );
6303  comp_re( "()|no.*" );
6304  comp_re( "."       );
6305  if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
6306  if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
6307    fputs( "error: regex -->.<-- did not match\n", stderr );
6308    return 1;
6309  }
6310  return 0; }
6311_ACEOF
6312if ac_fn_c_try_run "$LINENO"; then :
6313  libopts_cv_with_libregex=yes
6314else
6315  libopts_cv_with_libregex=no
6316fi
6317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6318  conftest.$ac_objext conftest.beam conftest.$ac_ext
6319fi
6320 # end of AC_TRY_RUN
6321
6322fi
6323 # end of AC_CACHE_VAL for libopts_cv_with_libregex
6324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
6325$as_echo "${libopts_cv_with_libregex}" >&6; }
6326
6327  if test "X${libopts_cv_with_libregex}" != Xno
6328  then
6329
6330$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
6331
6332  else
6333    CPPFLAGS="${libopts_save_CPPFLAGS}"
6334    LIBS="${libopts_save_LIBS}"
6335  fi
6336
6337
6338
6339  # Check to see if pathfind(3) works.
6340
6341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
6342$as_echo_n "checking whether pathfind(3) works... " >&6; }
6343  if test "${libopts_cv_run_pathfind+set}" = set; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346
6347  if test "$cross_compiling" = yes; then :
6348  libopts_cv_run_pathfind=no
6349
6350else
6351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352/* end confdefs.h.  */
6353#include <string.h>
6354#include <stdlib.h>
6355int main (int argc, char** argv) {
6356   char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
6357   return (pz == 0) ? 1 : 0;
6358}
6359_ACEOF
6360if ac_fn_c_try_run "$LINENO"; then :
6361  libopts_cv_run_pathfind=yes
6362else
6363  libopts_cv_run_pathfind=no
6364fi
6365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6366  conftest.$ac_objext conftest.beam conftest.$ac_ext
6367fi
6368 # end of TRY_RUN
6369
6370fi
6371 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
6373$as_echo "${libopts_cv_run_pathfind}" >&6; }
6374
6375  if test "X${libopts_cv_run_pathfind}" != Xno
6376  then
6377
6378$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
6379
6380  fi
6381
6382
6383
6384  # Check to see if /dev/zero is readable device.
6385
6386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
6387$as_echo_n "checking whether /dev/zero is readable device... " >&6; }
6388  if test "${libopts_cv_test_dev_zero+set}" = set; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391
6392    libopts_cv_test_dev_zero=`exec 2> /dev/null
6393dzero=\`ls -lL /dev/zero | egrep ^c......r\`
6394test -z "${dzero}" && exit 1
6395echo ${dzero}`
6396    if test $? -ne 0
6397    then libopts_cv_test_dev_zero=no
6398    elif test -z "$libopts_cv_test_dev_zero"
6399    then libopts_cv_test_dev_zero=no
6400    fi
6401
6402fi
6403 # end of CACHE_VAL of libopts_cv_test_dev_zero
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
6405$as_echo "${libopts_cv_test_dev_zero}" >&6; }
6406
6407  if test "X${libopts_cv_test_dev_zero}" != Xno
6408  then
6409
6410$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
6411
6412  fi
6413
6414
6415
6416  # Check to see if we have a functional realpath(3C).
6417
6418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
6419$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
6420  if test "${libopts_cv_run_realpath+set}" = set; then :
6421  $as_echo_n "(cached) " >&6
6422else
6423
6424  if test "$cross_compiling" = yes; then :
6425  libopts_cv_run_realpath=no
6426
6427else
6428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h.  */
6430#include <limits.h>
6431#include <stdlib.h>
6432int main (int argc, char** argv) {
6433#ifndef PATH_MAX
6434choke me!!
6435#else
6436   char zPath[PATH_MAX+1];
6437#endif
6438   char *pz = realpath(argv[0], zPath);
6439   return (pz == zPath) ? 0 : 1;
6440}
6441_ACEOF
6442if ac_fn_c_try_run "$LINENO"; then :
6443  libopts_cv_run_realpath=yes
6444else
6445  libopts_cv_run_realpath=no
6446fi
6447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6448  conftest.$ac_objext conftest.beam conftest.$ac_ext
6449fi
6450 # end of TRY_RUN
6451
6452fi
6453 # end of AC_CACHE_VAL for libopts_cv_run_realpath
6454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
6455$as_echo "${libopts_cv_run_realpath}" >&6; }
6456
6457  if test "X${libopts_cv_run_realpath}" != Xno
6458  then
6459
6460$as_echo "#define HAVE_REALPATH 1" >>confdefs.h
6461
6462  fi
6463
6464
6465
6466  # Check to see if strftime() works.
6467
6468  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
6469$as_echo_n "checking whether strftime() works... " >&6; }
6470  if test "${libopts_cv_run_strftime+set}" = set; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473
6474  if test "$cross_compiling" = yes; then :
6475  libopts_cv_run_strftime=no
6476
6477else
6478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h.  */
6480#include <time.h>
6481#include <string.h>
6482char t_buf[ 64 ];
6483int main() {
6484  static char const z[] = "Thursday Aug 28 240";
6485  struct tm tm;
6486  tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
6487  tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
6488  tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
6489  tm.tm_mday  = 28;  /* day of the month [1, 31] */
6490  tm.tm_mon   =  7;  /* months since January [0, 11] */
6491  tm.tm_year  = 86;  /* years since 1900 */
6492  tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
6493  tm.tm_yday  = 239; /* days since January 1 [0, 365] */
6494  tm.tm_isdst =  1;  /* flag for daylight savings time */
6495  strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
6496  return (strcmp( t_buf, z ) != 0); }
6497_ACEOF
6498if ac_fn_c_try_run "$LINENO"; then :
6499  libopts_cv_run_strftime=yes
6500else
6501  libopts_cv_run_strftime=no
6502fi
6503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6504  conftest.$ac_objext conftest.beam conftest.$ac_ext
6505fi
6506 # end of TRY_RUN
6507
6508fi
6509 # end of AC_CACHE_VAL for libopts_cv_run_strftime
6510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
6511$as_echo "${libopts_cv_run_strftime}" >&6; }
6512
6513  if test "X${libopts_cv_run_strftime}" != Xno
6514  then
6515
6516$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
6517
6518  fi
6519
6520
6521
6522  # Check to see if fopen accepts "b" mode.
6523
6524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
6525$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
6526  if test "${libopts_cv_run_fopen_binary+set}" = set; then :
6527  $as_echo_n "(cached) " >&6
6528else
6529
6530  if test "$cross_compiling" = yes; then :
6531  libopts_cv_run_fopen_binary=no
6532
6533else
6534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h.  */
6536#include <stdio.h>
6537int main (int argc, char** argv) {
6538FILE* fp = fopen("conftest.$ac_ext", "rb");
6539return (fp == NULL) ? 1 : fclose(fp); }
6540_ACEOF
6541if ac_fn_c_try_run "$LINENO"; then :
6542  libopts_cv_run_fopen_binary=yes
6543else
6544  libopts_cv_run_fopen_binary=no
6545fi
6546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6547  conftest.$ac_objext conftest.beam conftest.$ac_ext
6548fi
6549 # end of TRY_RUN
6550
6551fi
6552 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
6553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
6554$as_echo "${libopts_cv_run_fopen_binary}" >&6; }
6555
6556  if test "X${libopts_cv_run_fopen_binary}" != Xno
6557  then
6558
6559$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
6560
6561  else
6562
6563$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
6564
6565  fi
6566
6567
6568
6569  # Check to see if fopen accepts "t" mode.
6570
6571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
6572$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
6573  if test "${libopts_cv_run_fopen_text+set}" = set; then :
6574  $as_echo_n "(cached) " >&6
6575else
6576
6577  if test "$cross_compiling" = yes; then :
6578  libopts_cv_run_fopen_text=no
6579
6580else
6581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582/* end confdefs.h.  */
6583#include <stdio.h>
6584int main (int argc, char** argv) {
6585FILE* fp = fopen("conftest.$ac_ext", "rt");
6586return (fp == NULL) ? 1 : fclose(fp); }
6587_ACEOF
6588if ac_fn_c_try_run "$LINENO"; then :
6589  libopts_cv_run_fopen_text=yes
6590else
6591  libopts_cv_run_fopen_text=no
6592fi
6593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6594  conftest.$ac_objext conftest.beam conftest.$ac_ext
6595fi
6596 # end of TRY_RUN
6597
6598fi
6599 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
6600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
6601$as_echo "${libopts_cv_run_fopen_text}" >&6; }
6602
6603  if test "X${libopts_cv_run_fopen_text}" != Xno
6604  then
6605
6606$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
6607
6608  else
6609
6610$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
6611
6612  fi
6613
6614
6615
6616  # Check to see if not wanting optional option args.
6617
6618  # Check whether --enable-optional-args was given.
6619if test "${enable_optional_args+set}" = set; then :
6620  enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
6621else
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
6623$as_echo_n "checking whether not wanting optional option args... " >&6; }
6624if test "${libopts_cv_enable_optional_args+set}" = set; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  libopts_cv_enable_optional_args=yes
6628fi
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
6630$as_echo "$libopts_cv_enable_optional_args" >&6; }
6631
6632fi
6633 # end of AC_ARG_ENABLE
6634
6635  if test "X${libopts_cv_enable_optional_args}" = Xno
6636  then
6637
6638$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
6639
6640  fi
6641
6642
6643
6644
6645  else
6646
6647if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
6648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6649$as_echo_n "checking for ANSI C header files... " >&6; }
6650if test "${ac_cv_header_stdc+set}" = set; then :
6651  $as_echo_n "(cached) " >&6
6652else
6653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654/* end confdefs.h.  */
6655#include <stdlib.h>
6656#include <stdarg.h>
6657#include <string.h>
6658#include <float.h>
6659
6660int
6661main ()
6662{
6663
6664  ;
6665  return 0;
6666}
6667_ACEOF
6668if ac_fn_c_try_compile "$LINENO"; then :
6669  ac_cv_header_stdc=yes
6670else
6671  ac_cv_header_stdc=no
6672fi
6673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674
6675if test $ac_cv_header_stdc = yes; then
6676  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678/* end confdefs.h.  */
6679#include <string.h>
6680
6681_ACEOF
6682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6683  $EGREP "memchr" >/dev/null 2>&1; then :
6684
6685else
6686  ac_cv_header_stdc=no
6687fi
6688rm -f conftest*
6689
6690fi
6691
6692if test $ac_cv_header_stdc = yes; then
6693  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695/* end confdefs.h.  */
6696#include <stdlib.h>
6697
6698_ACEOF
6699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700  $EGREP "free" >/dev/null 2>&1; then :
6701
6702else
6703  ac_cv_header_stdc=no
6704fi
6705rm -f conftest*
6706
6707fi
6708
6709if test $ac_cv_header_stdc = yes; then
6710  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6711  if test "$cross_compiling" = yes; then :
6712  :
6713else
6714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716#include <ctype.h>
6717#include <stdlib.h>
6718#if ((' ' & 0x0FF) == 0x020)
6719# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6720# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6721#else
6722# define ISLOWER(c) \
6723		   (('a' <= (c) && (c) <= 'i') \
6724		     || ('j' <= (c) && (c) <= 'r') \
6725		     || ('s' <= (c) && (c) <= 'z'))
6726# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6727#endif
6728
6729#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6730int
6731main ()
6732{
6733  int i;
6734  for (i = 0; i < 256; i++)
6735    if (XOR (islower (i), ISLOWER (i))
6736	|| toupper (i) != TOUPPER (i))
6737      return 2;
6738  return 0;
6739}
6740_ACEOF
6741if ac_fn_c_try_run "$LINENO"; then :
6742
6743else
6744  ac_cv_header_stdc=no
6745fi
6746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6747  conftest.$ac_objext conftest.beam conftest.$ac_ext
6748fi
6749
6750fi
6751fi
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6753$as_echo "$ac_cv_header_stdc" >&6; }
6754if test $ac_cv_header_stdc = yes; then
6755
6756$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6757
6758fi
6759
6760  ac_header_dirent=no
6761for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6762  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6764$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6766  $as_echo_n "(cached) " >&6
6767else
6768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769/* end confdefs.h.  */
6770#include <sys/types.h>
6771#include <$ac_hdr>
6772
6773int
6774main ()
6775{
6776if ((DIR *) 0)
6777return 0;
6778  ;
6779  return 0;
6780}
6781_ACEOF
6782if ac_fn_c_try_compile "$LINENO"; then :
6783  eval "$as_ac_Header=yes"
6784else
6785  eval "$as_ac_Header=no"
6786fi
6787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788fi
6789eval ac_res=\$$as_ac_Header
6790	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6791$as_echo "$ac_res" >&6; }
6792eval as_val=\$$as_ac_Header
6793   if test "x$as_val" = x""yes; then :
6794  cat >>confdefs.h <<_ACEOF
6795#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6796_ACEOF
6797
6798ac_header_dirent=$ac_hdr; break
6799fi
6800
6801done
6802# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6803if test $ac_header_dirent = dirent.h; then
6804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6805$as_echo_n "checking for library containing opendir... " >&6; }
6806if test "${ac_cv_search_opendir+set}" = set; then :
6807  $as_echo_n "(cached) " >&6
6808else
6809  ac_func_search_save_LIBS=$LIBS
6810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h.  */
6812
6813/* Override any GCC internal prototype to avoid an error.
6814   Use char because int might match the return type of a GCC
6815   builtin and then its argument prototype would still apply.  */
6816#ifdef __cplusplus
6817extern "C"
6818#endif
6819char opendir ();
6820int
6821main ()
6822{
6823return opendir ();
6824  ;
6825  return 0;
6826}
6827_ACEOF
6828for ac_lib in '' dir; do
6829  if test -z "$ac_lib"; then
6830    ac_res="none required"
6831  else
6832    ac_res=-l$ac_lib
6833    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6834  fi
6835  if ac_fn_c_try_link "$LINENO"; then :
6836  ac_cv_search_opendir=$ac_res
6837fi
6838rm -f core conftest.err conftest.$ac_objext \
6839    conftest$ac_exeext
6840  if test "${ac_cv_search_opendir+set}" = set; then :
6841  break
6842fi
6843done
6844if test "${ac_cv_search_opendir+set}" = set; then :
6845
6846else
6847  ac_cv_search_opendir=no
6848fi
6849rm conftest.$ac_ext
6850LIBS=$ac_func_search_save_LIBS
6851fi
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6853$as_echo "$ac_cv_search_opendir" >&6; }
6854ac_res=$ac_cv_search_opendir
6855if test "$ac_res" != no; then :
6856  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6857
6858fi
6859
6860else
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6862$as_echo_n "checking for library containing opendir... " >&6; }
6863if test "${ac_cv_search_opendir+set}" = set; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866  ac_func_search_save_LIBS=$LIBS
6867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868/* end confdefs.h.  */
6869
6870/* Override any GCC internal prototype to avoid an error.
6871   Use char because int might match the return type of a GCC
6872   builtin and then its argument prototype would still apply.  */
6873#ifdef __cplusplus
6874extern "C"
6875#endif
6876char opendir ();
6877int
6878main ()
6879{
6880return opendir ();
6881  ;
6882  return 0;
6883}
6884_ACEOF
6885for ac_lib in '' x; do
6886  if test -z "$ac_lib"; then
6887    ac_res="none required"
6888  else
6889    ac_res=-l$ac_lib
6890    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6891  fi
6892  if ac_fn_c_try_link "$LINENO"; then :
6893  ac_cv_search_opendir=$ac_res
6894fi
6895rm -f core conftest.err conftest.$ac_objext \
6896    conftest$ac_exeext
6897  if test "${ac_cv_search_opendir+set}" = set; then :
6898  break
6899fi
6900done
6901if test "${ac_cv_search_opendir+set}" = set; then :
6902
6903else
6904  ac_cv_search_opendir=no
6905fi
6906rm conftest.$ac_ext
6907LIBS=$ac_func_search_save_LIBS
6908fi
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6910$as_echo "$ac_cv_search_opendir" >&6; }
6911ac_res=$ac_cv_search_opendir
6912if test "$ac_res" != no; then :
6913  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6914
6915fi
6916
6917fi
6918
6919
6920  # =================
6921  # AC_CHECK_HEADERS
6922  # =================
6923  for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
6924    setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
6925    sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
6926    utime.h sysexits.h
6927do :
6928  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6929ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6930eval as_val=\$$as_ac_Header
6931   if test "x$as_val" = x""yes; then :
6932  cat >>confdefs.h <<_ACEOF
6933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6934_ACEOF
6935
6936fi
6937
6938done
6939
6940
6941  # --------------------------------------------
6942  # Verify certain entries from AC_CHECK_HEADERS
6943  # --------------------------------------------
6944  for f in sys_types sys_mman sys_param sys_stat sys_wait \
6945           string errno stdlib memory setjmp
6946  do eval as_ac_var=\${ac_cv_header_${f}_h+set}
6947     test "${as_ac_var}" = set || \
6948       as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
6949  done
6950
6951  # ================================================
6952  # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
6953  # if varargs.h is present define HAVE_VARARGS_H.
6954  # ================================================
6955  for ac_header in stdarg.h varargs.h
6956do :
6957  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6959eval as_val=\$$as_ac_Header
6960   if test "x$as_val" = x""yes; then :
6961  cat >>confdefs.h <<_ACEOF
6962#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6963_ACEOF
6964 break
6965fi
6966
6967done
6968
6969  if test `eval echo '${'$as_ac_Header'}'` != yes; then
6970    as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
6971  fi
6972
6973  # ================================================
6974  # Similarly for the string.h and strings.h headers
6975  # ================================================
6976  for ac_header in string.h strings.h
6977do :
6978  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6979ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6980eval as_val=\$$as_ac_Header
6981   if test "x$as_val" = x""yes; then :
6982  cat >>confdefs.h <<_ACEOF
6983#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6984_ACEOF
6985 break
6986fi
6987
6988done
6989
6990  if test `eval echo '${'$as_ac_Header'}'` != yes; then
6991    as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
6992  fi
6993
6994  # =====================
6995  # ...and limits headers
6996  # =====================
6997  for ac_header in limits.h sys/limits.h values.h
6998do :
6999  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7000ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7001eval as_val=\$$as_ac_Header
7002   if test "x$as_val" = x""yes; then :
7003  cat >>confdefs.h <<_ACEOF
7004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7005_ACEOF
7006 break
7007fi
7008
7009done
7010
7011  if test `eval echo '${'$as_ac_Header'}'` != yes; then
7012    as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
7013  fi
7014
7015  # ----------------------------------------------------------------------
7016  # check for various programs used during the build.
7017  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
7018  # ----------------------------------------------------------------------
7019  for ac_header in runetype.h wchar.h
7020do :
7021  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7022ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7023  $ac_includes_default
7024  #if HAVE_RUNETYPE_H
7025  # include <runetype.h>
7026  #endif
7027
7028"
7029eval as_val=\$$as_ac_Header
7030   if test "x$as_val" = x""yes; then :
7031  cat >>confdefs.h <<_ACEOF
7032#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7033_ACEOF
7034
7035fi
7036
7037done
7038
7039
7040  # ----------------------------------------------------------------------
7041  # Checks for typedefs
7042  # ----------------------------------------------------------------------
7043  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
7044if test "x$ac_cv_type_wchar_t" = x""yes; then :
7045
7046cat >>confdefs.h <<_ACEOF
7047#define HAVE_WCHAR_T 1
7048_ACEOF
7049
7050
7051fi
7052
7053  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
7054  $ac_includes_default
7055  #if HAVE_RUNETYPE_H
7056  # include <runetype.h>
7057  #endif
7058  #if HAVE_WCHAR_H
7059  # include <wchar.h>
7060  #endif
7061
7062"
7063if test "x$ac_cv_type_wint_t" = x""yes; then :
7064
7065cat >>confdefs.h <<_ACEOF
7066#define HAVE_WINT_T 1
7067_ACEOF
7068
7069
7070fi
7071
7072
7073  # ========================
7074  # ...and int types headers
7075  # ========================
7076  for ac_header in stdint.h inttypes.h
7077do :
7078  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7079ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7080eval as_val=\$$as_ac_Header
7081   if test "x$as_val" = x""yes; then :
7082  cat >>confdefs.h <<_ACEOF
7083#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7084_ACEOF
7085 break
7086fi
7087
7088done
7089
7090  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
7091if test "x$ac_cv_type_int8_t" = x""yes; then :
7092
7093cat >>confdefs.h <<_ACEOF
7094#define HAVE_INT8_T 1
7095_ACEOF
7096
7097
7098fi
7099ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
7100if test "x$ac_cv_type_uint8_t" = x""yes; then :
7101
7102cat >>confdefs.h <<_ACEOF
7103#define HAVE_UINT8_T 1
7104_ACEOF
7105
7106
7107fi
7108ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7109if test "x$ac_cv_type_int16_t" = x""yes; then :
7110
7111cat >>confdefs.h <<_ACEOF
7112#define HAVE_INT16_T 1
7113_ACEOF
7114
7115
7116fi
7117ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
7118if test "x$ac_cv_type_uint16_t" = x""yes; then :
7119
7120cat >>confdefs.h <<_ACEOF
7121#define HAVE_UINT16_T 1
7122_ACEOF
7123
7124
7125fi
7126ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7127if test "x$ac_cv_type_int32_t" = x""yes; then :
7128
7129cat >>confdefs.h <<_ACEOF
7130#define HAVE_INT32_T 1
7131_ACEOF
7132
7133
7134fi
7135ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7136if test "x$ac_cv_type_uint32_t" = x""yes; then :
7137
7138cat >>confdefs.h <<_ACEOF
7139#define HAVE_UINT32_T 1
7140_ACEOF
7141
7142
7143fi
7144ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
7145if test "x$ac_cv_type_intptr_t" = x""yes; then :
7146
7147cat >>confdefs.h <<_ACEOF
7148#define HAVE_INTPTR_T 1
7149_ACEOF
7150
7151
7152fi
7153ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7154if test "x$ac_cv_type_uintptr_t" = x""yes; then :
7155
7156cat >>confdefs.h <<_ACEOF
7157#define HAVE_UINTPTR_T 1
7158_ACEOF
7159
7160
7161fi
7162ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
7163if test "x$ac_cv_type_uint_t" = x""yes; then :
7164
7165cat >>confdefs.h <<_ACEOF
7166#define HAVE_UINT_T 1
7167_ACEOF
7168
7169
7170fi
7171ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7172if test "x$ac_cv_type_pid_t" = x""yes; then :
7173
7174cat >>confdefs.h <<_ACEOF
7175#define HAVE_PID_T 1
7176_ACEOF
7177
7178
7179fi
7180ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7181if test "x$ac_cv_type_size_t" = x""yes; then :
7182
7183cat >>confdefs.h <<_ACEOF
7184#define HAVE_SIZE_T 1
7185_ACEOF
7186
7187
7188fi
7189
7190
7191  # =====
7192  # sizes
7193  # =====
7194  # The cast to long int works around a bug in the HP C Compiler
7195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7197# This bug is HP SR number 8606223364.
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
7199$as_echo_n "checking size of char*... " >&6; }
7200if test "${ac_cv_sizeof_charp+set}" = set; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :
7204
7205else
7206  if test "$ac_cv_type_charp" = yes; then
7207     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7209{ as_fn_set_status 77
7210as_fn_error "cannot compute sizeof (char*)
7211See \`config.log' for more details." "$LINENO" 5; }; }
7212   else
7213     ac_cv_sizeof_charp=0
7214   fi
7215fi
7216
7217fi
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
7219$as_echo "$ac_cv_sizeof_charp" >&6; }
7220
7221
7222
7223cat >>confdefs.h <<_ACEOF
7224#define SIZEOF_CHARP $ac_cv_sizeof_charp
7225_ACEOF
7226
7227
7228  # The cast to long int works around a bug in the HP C Compiler
7229# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7230# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7231# This bug is HP SR number 8606223364.
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7233$as_echo_n "checking size of int... " >&6; }
7234if test "${ac_cv_sizeof_int+set}" = set; then :
7235  $as_echo_n "(cached) " >&6
7236else
7237  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
7238
7239else
7240  if test "$ac_cv_type_int" = yes; then
7241     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7243{ as_fn_set_status 77
7244as_fn_error "cannot compute sizeof (int)
7245See \`config.log' for more details." "$LINENO" 5; }; }
7246   else
7247     ac_cv_sizeof_int=0
7248   fi
7249fi
7250
7251fi
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7253$as_echo "$ac_cv_sizeof_int" >&6; }
7254
7255
7256
7257cat >>confdefs.h <<_ACEOF
7258#define SIZEOF_INT $ac_cv_sizeof_int
7259_ACEOF
7260
7261
7262  # The cast to long int works around a bug in the HP C Compiler
7263# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7264# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7265# This bug is HP SR number 8606223364.
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7267$as_echo_n "checking size of long... " >&6; }
7268if test "${ac_cv_sizeof_long+set}" = set; then :
7269  $as_echo_n "(cached) " >&6
7270else
7271  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7272
7273else
7274  if test "$ac_cv_type_long" = yes; then
7275     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7277{ as_fn_set_status 77
7278as_fn_error "cannot compute sizeof (long)
7279See \`config.log' for more details." "$LINENO" 5; }; }
7280   else
7281     ac_cv_sizeof_long=0
7282   fi
7283fi
7284
7285fi
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7287$as_echo "$ac_cv_sizeof_long" >&6; }
7288
7289
7290
7291cat >>confdefs.h <<_ACEOF
7292#define SIZEOF_LONG $ac_cv_sizeof_long
7293_ACEOF
7294
7295
7296  # The cast to long int works around a bug in the HP C Compiler
7297# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7298# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7299# This bug is HP SR number 8606223364.
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7301$as_echo_n "checking size of short... " >&6; }
7302if test "${ac_cv_sizeof_short+set}" = set; then :
7303  $as_echo_n "(cached) " >&6
7304else
7305  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
7306
7307else
7308  if test "$ac_cv_type_short" = yes; then
7309     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7311{ as_fn_set_status 77
7312as_fn_error "cannot compute sizeof (short)
7313See \`config.log' for more details." "$LINENO" 5; }; }
7314   else
7315     ac_cv_sizeof_short=0
7316   fi
7317fi
7318
7319fi
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7321$as_echo "$ac_cv_sizeof_short" >&6; }
7322
7323
7324
7325cat >>confdefs.h <<_ACEOF
7326#define SIZEOF_SHORT $ac_cv_sizeof_short
7327_ACEOF
7328
7329
7330
7331  # ----------------------------------------------------------------------
7332  # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
7333  # ----------------------------------------------------------------------
7334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
7335$as_echo_n "checking for pathfind in -lgen... " >&6; }
7336if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  ac_check_lib_save_LIBS=$LIBS
7340LIBS="-lgen  $LIBS"
7341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h.  */
7343
7344/* Override any GCC internal prototype to avoid an error.
7345   Use char because int might match the return type of a GCC
7346   builtin and then its argument prototype would still apply.  */
7347#ifdef __cplusplus
7348extern "C"
7349#endif
7350char pathfind ();
7351int
7352main ()
7353{
7354return pathfind ();
7355  ;
7356  return 0;
7357}
7358_ACEOF
7359if ac_fn_c_try_link "$LINENO"; then :
7360  ac_cv_lib_gen_pathfind=yes
7361else
7362  ac_cv_lib_gen_pathfind=no
7363fi
7364rm -f core conftest.err conftest.$ac_objext \
7365    conftest$ac_exeext conftest.$ac_ext
7366LIBS=$ac_check_lib_save_LIBS
7367fi
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
7369$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
7370if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
7371  cat >>confdefs.h <<_ACEOF
7372#define HAVE_LIBGEN 1
7373_ACEOF
7374
7375  LIBS="-lgen $LIBS"
7376
7377fi
7378
7379  for ac_func in vprintf
7380do :
7381  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7382if test "x$ac_cv_func_vprintf" = x""yes; then :
7383  cat >>confdefs.h <<_ACEOF
7384#define HAVE_VPRINTF 1
7385_ACEOF
7386
7387ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7388if test "x$ac_cv_func__doprnt" = x""yes; then :
7389
7390$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7391
7392fi
7393
7394fi
7395done
7396
7397
7398  for ac_header in vfork.h
7399do :
7400  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7401if test "x$ac_cv_header_vfork_h" = x""yes; then :
7402  cat >>confdefs.h <<_ACEOF
7403#define HAVE_VFORK_H 1
7404_ACEOF
7405
7406fi
7407
7408done
7409
7410for ac_func in fork vfork
7411do :
7412  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7413ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7414eval as_val=\$$as_ac_var
7415   if test "x$as_val" = x""yes; then :
7416  cat >>confdefs.h <<_ACEOF
7417#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7418_ACEOF
7419
7420fi
7421done
7422
7423if test "x$ac_cv_func_fork" = xyes; then
7424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7425$as_echo_n "checking for working fork... " >&6; }
7426if test "${ac_cv_func_fork_works+set}" = set; then :
7427  $as_echo_n "(cached) " >&6
7428else
7429  if test "$cross_compiling" = yes; then :
7430  ac_cv_func_fork_works=cross
7431else
7432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433/* end confdefs.h.  */
7434$ac_includes_default
7435int
7436main ()
7437{
7438
7439	  /* By Ruediger Kuhlmann. */
7440	  return fork () < 0;
7441
7442  ;
7443  return 0;
7444}
7445_ACEOF
7446if ac_fn_c_try_run "$LINENO"; then :
7447  ac_cv_func_fork_works=yes
7448else
7449  ac_cv_func_fork_works=no
7450fi
7451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7452  conftest.$ac_objext conftest.beam conftest.$ac_ext
7453fi
7454
7455fi
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7457$as_echo "$ac_cv_func_fork_works" >&6; }
7458
7459else
7460  ac_cv_func_fork_works=$ac_cv_func_fork
7461fi
7462if test "x$ac_cv_func_fork_works" = xcross; then
7463  case $host in
7464    *-*-amigaos* | *-*-msdosdjgpp*)
7465      # Override, as these systems have only a dummy fork() stub
7466      ac_cv_func_fork_works=no
7467      ;;
7468    *)
7469      ac_cv_func_fork_works=yes
7470      ;;
7471  esac
7472  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7473$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7474fi
7475ac_cv_func_vfork_works=$ac_cv_func_vfork
7476if test "x$ac_cv_func_vfork" = xyes; then
7477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7478$as_echo_n "checking for working vfork... " >&6; }
7479if test "${ac_cv_func_vfork_works+set}" = set; then :
7480  $as_echo_n "(cached) " >&6
7481else
7482  if test "$cross_compiling" = yes; then :
7483  ac_cv_func_vfork_works=cross
7484else
7485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h.  */
7487/* Thanks to Paul Eggert for this test.  */
7488$ac_includes_default
7489#include <sys/wait.h>
7490#ifdef HAVE_VFORK_H
7491# include <vfork.h>
7492#endif
7493/* On some sparc systems, changes by the child to local and incoming
7494   argument registers are propagated back to the parent.  The compiler
7495   is told about this with #include <vfork.h>, but some compilers
7496   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7497   static variable whose address is put into a register that is
7498   clobbered by the vfork.  */
7499static void
7500#ifdef __cplusplus
7501sparc_address_test (int arg)
7502# else
7503sparc_address_test (arg) int arg;
7504#endif
7505{
7506  static pid_t child;
7507  if (!child) {
7508    child = vfork ();
7509    if (child < 0) {
7510      perror ("vfork");
7511      _exit(2);
7512    }
7513    if (!child) {
7514      arg = getpid();
7515      write(-1, "", 0);
7516      _exit (arg);
7517    }
7518  }
7519}
7520
7521int
7522main ()
7523{
7524  pid_t parent = getpid ();
7525  pid_t child;
7526
7527  sparc_address_test (0);
7528
7529  child = vfork ();
7530
7531  if (child == 0) {
7532    /* Here is another test for sparc vfork register problems.  This
7533       test uses lots of local variables, at least as many local
7534       variables as main has allocated so far including compiler
7535       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7536       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7537       reuse the register of parent for one of the local variables,
7538       since it will think that parent can't possibly be used any more
7539       in this routine.  Assigning to the local variable will thus
7540       munge parent in the parent process.  */
7541    pid_t
7542      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7543      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7544    /* Convince the compiler that p..p7 are live; otherwise, it might
7545       use the same hardware register for all 8 local variables.  */
7546    if (p != p1 || p != p2 || p != p3 || p != p4
7547	|| p != p5 || p != p6 || p != p7)
7548      _exit(1);
7549
7550    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7551       from child file descriptors.  If the child closes a descriptor
7552       before it execs or exits, this munges the parent's descriptor
7553       as well.  Test for this by closing stdout in the child.  */
7554    _exit(close(fileno(stdout)) != 0);
7555  } else {
7556    int status;
7557    struct stat st;
7558
7559    while (wait(&status) != child)
7560      ;
7561    return (
7562	 /* Was there some problem with vforking?  */
7563	 child < 0
7564
7565	 /* Did the child fail?  (This shouldn't happen.)  */
7566	 || status
7567
7568	 /* Did the vfork/compiler bug occur?  */
7569	 || parent != getpid()
7570
7571	 /* Did the file descriptor bug occur?  */
7572	 || fstat(fileno(stdout), &st) != 0
7573	 );
7574  }
7575}
7576_ACEOF
7577if ac_fn_c_try_run "$LINENO"; then :
7578  ac_cv_func_vfork_works=yes
7579else
7580  ac_cv_func_vfork_works=no
7581fi
7582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7583  conftest.$ac_objext conftest.beam conftest.$ac_ext
7584fi
7585
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7588$as_echo "$ac_cv_func_vfork_works" >&6; }
7589
7590fi;
7591if test "x$ac_cv_func_fork_works" = xcross; then
7592  ac_cv_func_vfork_works=$ac_cv_func_vfork
7593  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7594$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7595fi
7596
7597if test "x$ac_cv_func_vfork_works" = xyes; then
7598
7599$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7600
7601else
7602
7603$as_echo "#define vfork fork" >>confdefs.h
7604
7605fi
7606if test "x$ac_cv_func_fork_works" = xyes; then
7607
7608$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7609
7610fi
7611
7612  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
7613                 strrchr strsignal
7614do :
7615  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7616ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7617eval as_val=\$$as_ac_var
7618   if test "x$as_val" = x""yes; then :
7619  cat >>confdefs.h <<_ACEOF
7620#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7621_ACEOF
7622
7623fi
7624done
7625
7626  INVOKE_LIBOPTS_MACROS_FIRST_done=yes
7627fi
7628  fi
7629# end of AC_DEFUN of LIBOPTS_CHECK
7630
7631
7632
7633
7634
7635# Check whether --enable-static was given.
7636if test "${enable_static+set}" = set; then :
7637  enableval=$enable_static; p=${PACKAGE-default}
7638    case $enableval in
7639    yes) enable_static=yes ;;
7640    no) enable_static=no ;;
7641    *)
7642     enable_static=no
7643      # Look at the argument we got.  We use all the common list separators.
7644      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7645      for pkg in $enableval; do
7646	IFS="$lt_save_ifs"
7647	if test "X$pkg" = "X$p"; then
7648	  enable_static=yes
7649	fi
7650      done
7651      IFS="$lt_save_ifs"
7652      ;;
7653    esac
7654else
7655  enable_static=yes
7656fi
7657
7658
7659# Check whether --enable-fast-install was given.
7660if test "${enable_fast_install+set}" = set; then :
7661  enableval=$enable_fast_install; p=${PACKAGE-default}
7662    case $enableval in
7663    yes) enable_fast_install=yes ;;
7664    no) enable_fast_install=no ;;
7665    *)
7666      enable_fast_install=no
7667      # Look at the argument we got.  We use all the common list separators.
7668      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7669      for pkg in $enableval; do
7670	IFS="$lt_save_ifs"
7671	if test "X$pkg" = "X$p"; then
7672	  enable_fast_install=yes
7673	fi
7674      done
7675      IFS="$lt_save_ifs"
7676      ;;
7677    esac
7678else
7679  enable_fast_install=yes
7680fi
7681
7682
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7684$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7685if test "${lt_cv_path_SED+set}" = set; then :
7686  $as_echo_n "(cached) " >&6
7687else
7688  # Loop through the user's path and test for sed and gsed.
7689# Then use that list of sed's as ones to test for truncation.
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693  IFS=$as_save_IFS
7694  test -z "$as_dir" && as_dir=.
7695  for lt_ac_prog in sed gsed; do
7696    for ac_exec_ext in '' $ac_executable_extensions; do
7697      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7698        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7699      fi
7700    done
7701  done
7702done
7703lt_ac_max=0
7704lt_ac_count=0
7705# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7706# along with /bin/sed that truncates output.
7707for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7708  test ! -f $lt_ac_sed && continue
7709  cat /dev/null > conftest.in
7710  lt_ac_count=0
7711  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7712  # Check for GNU sed and select it if it is found.
7713  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7714    lt_cv_path_SED=$lt_ac_sed
7715    break
7716  fi
7717  while true; do
7718    cat conftest.in conftest.in >conftest.tmp
7719    mv conftest.tmp conftest.in
7720    cp conftest.in conftest.nl
7721    echo >>conftest.nl
7722    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7723    cmp -s conftest.out conftest.nl || break
7724    # 10000 chars as input seems more than enough
7725    test $lt_ac_count -gt 10 && break
7726    lt_ac_count=`expr $lt_ac_count + 1`
7727    if test $lt_ac_count -gt $lt_ac_max; then
7728      lt_ac_max=$lt_ac_count
7729      lt_cv_path_SED=$lt_ac_sed
7730    fi
7731  done
7732done
7733
7734fi
7735
7736SED=$lt_cv_path_SED
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
7738$as_echo "$SED" >&6; }
7739
7740
7741# Check whether --with-gnu-ld was given.
7742if test "${with_gnu_ld+set}" = set; then :
7743  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7744else
7745  with_gnu_ld=no
7746fi
7747
7748ac_prog=ld
7749if test "$GCC" = yes; then
7750  # Check if gcc -print-prog-name=ld gives a path.
7751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7752$as_echo_n "checking for ld used by $CC... " >&6; }
7753  case $host in
7754  *-*-mingw*)
7755    # gcc leaves a trailing carriage return which upsets mingw
7756    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7757  *)
7758    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7759  esac
7760  case $ac_prog in
7761    # Accept absolute paths.
7762    [\\/]* | ?:[\\/]*)
7763      re_direlt='/[^/][^/]*/\.\./'
7764      # Canonicalize the pathname of ld
7765      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7766      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7767	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7768      done
7769      test -z "$LD" && LD="$ac_prog"
7770      ;;
7771  "")
7772    # If it fails, then pretend we aren't using GCC.
7773    ac_prog=ld
7774    ;;
7775  *)
7776    # If it is relative, then search for the first ld in PATH.
7777    with_gnu_ld=unknown
7778    ;;
7779  esac
7780elif test "$with_gnu_ld" = yes; then
7781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7782$as_echo_n "checking for GNU ld... " >&6; }
7783else
7784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7785$as_echo_n "checking for non-GNU ld... " >&6; }
7786fi
7787if test "${lt_cv_path_LD+set}" = set; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  if test -z "$LD"; then
7791  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7792  for ac_dir in $PATH; do
7793    IFS="$lt_save_ifs"
7794    test -z "$ac_dir" && ac_dir=.
7795    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7796      lt_cv_path_LD="$ac_dir/$ac_prog"
7797      # Check to see if the program is GNU ld.  I'd rather use --version,
7798      # but apparently some variants of GNU ld only accept -v.
7799      # Break only if it was the GNU/non-GNU ld that we prefer.
7800      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7801      *GNU* | *'with BFD'*)
7802	test "$with_gnu_ld" != no && break
7803	;;
7804      *)
7805	test "$with_gnu_ld" != yes && break
7806	;;
7807      esac
7808    fi
7809  done
7810  IFS="$lt_save_ifs"
7811else
7812  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7813fi
7814fi
7815
7816LD="$lt_cv_path_LD"
7817if test -n "$LD"; then
7818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7819$as_echo "$LD" >&6; }
7820else
7821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
7823fi
7824test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7826$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7827if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7828  $as_echo_n "(cached) " >&6
7829else
7830  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7831case `$LD -v 2>&1 </dev/null` in
7832*GNU* | *'with BFD'*)
7833  lt_cv_prog_gnu_ld=yes
7834  ;;
7835*)
7836  lt_cv_prog_gnu_ld=no
7837  ;;
7838esac
7839fi
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7841$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7842with_gnu_ld=$lt_cv_prog_gnu_ld
7843
7844
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7846$as_echo_n "checking for $LD option to reload object files... " >&6; }
7847if test "${lt_cv_ld_reload_flag+set}" = set; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  lt_cv_ld_reload_flag='-r'
7851fi
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7853$as_echo "$lt_cv_ld_reload_flag" >&6; }
7854reload_flag=$lt_cv_ld_reload_flag
7855case $reload_flag in
7856"" | " "*) ;;
7857*) reload_flag=" $reload_flag" ;;
7858esac
7859reload_cmds='$LD$reload_flag -o $output$reload_objs'
7860case $host_os in
7861  darwin*)
7862    if test "$GCC" = yes; then
7863      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
7864    else
7865      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7866    fi
7867    ;;
7868esac
7869
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
7871$as_echo_n "checking for BSD-compatible nm... " >&6; }
7872if test "${lt_cv_path_NM+set}" = set; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  if test -n "$NM"; then
7876  # Let the user override the test.
7877  lt_cv_path_NM="$NM"
7878else
7879  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7880  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7881    IFS="$lt_save_ifs"
7882    test -z "$ac_dir" && ac_dir=.
7883    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7884    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7885      # Check to see if the nm accepts a BSD-compat flag.
7886      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7887      #   nm: unknown option "B" ignored
7888      # Tru64's nm complains that /dev/null is an invalid object file
7889      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7890      */dev/null* | *'Invalid file or object type'*)
7891	lt_cv_path_NM="$tmp_nm -B"
7892	break
7893        ;;
7894      *)
7895	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7896	*/dev/null*)
7897	  lt_cv_path_NM="$tmp_nm -p"
7898	  break
7899	  ;;
7900	*)
7901	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7902	  continue # so that we can try to find one that supports BSD flags
7903	  ;;
7904	esac
7905      esac
7906    fi
7907  done
7908  IFS="$lt_save_ifs"
7909  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7910fi
7911fi
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7913$as_echo "$lt_cv_path_NM" >&6; }
7914NM="$lt_cv_path_NM"
7915
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7917$as_echo_n "checking whether ln -s works... " >&6; }
7918LN_S=$as_ln_s
7919if test "$LN_S" = "ln -s"; then
7920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7921$as_echo "yes" >&6; }
7922else
7923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7924$as_echo "no, using $LN_S" >&6; }
7925fi
7926
7927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
7928$as_echo_n "checking how to recognise dependent libraries... " >&6; }
7929if test "${lt_cv_deplibs_check_method+set}" = set; then :
7930  $as_echo_n "(cached) " >&6
7931else
7932  lt_cv_file_magic_cmd='$MAGIC_CMD'
7933lt_cv_file_magic_test_file=
7934lt_cv_deplibs_check_method='unknown'
7935# Need to set the preceding variable on all platforms that support
7936# interlibrary dependencies.
7937# 'none' -- dependencies not supported.
7938# `unknown' -- same as none, but documents that we really don't know.
7939# 'pass_all' -- all dependencies passed with no checks.
7940# 'test_compile' -- check by making test program.
7941# 'file_magic [[regex]]' -- check by looking for files in library path
7942# which responds to the $file_magic_cmd with a given extended regex.
7943# If you have `file' or equivalent on your system and you're not sure
7944# whether `pass_all' will *always* work, you probably want this one.
7945
7946case $host_os in
7947aix4* | aix5*)
7948  lt_cv_deplibs_check_method=pass_all
7949  ;;
7950
7951beos*)
7952  lt_cv_deplibs_check_method=pass_all
7953  ;;
7954
7955bsdi[45]*)
7956  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7957  lt_cv_file_magic_cmd='/usr/bin/file -L'
7958  lt_cv_file_magic_test_file=/shlib/libc.so
7959  ;;
7960
7961cygwin*)
7962  # func_win32_libid is a shell function defined in ltmain.sh
7963  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7964  lt_cv_file_magic_cmd='func_win32_libid'
7965  ;;
7966
7967mingw* | pw32*)
7968  # Base MSYS/MinGW do not provide the 'file' command needed by
7969  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7970  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7971  lt_cv_file_magic_cmd='$OBJDUMP -f'
7972  ;;
7973
7974darwin* | rhapsody*)
7975  lt_cv_deplibs_check_method=pass_all
7976  ;;
7977
7978freebsd* | kfreebsd*-gnu | dragonfly*)
7979  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7980    case $host_cpu in
7981    i*86 )
7982      # Not sure whether the presence of OpenBSD here was a mistake.
7983      # Let's accept both of them until this is cleared up.
7984      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7985      lt_cv_file_magic_cmd=/usr/bin/file
7986      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7987      ;;
7988    esac
7989  else
7990    lt_cv_deplibs_check_method=pass_all
7991  fi
7992  ;;
7993
7994gnu*)
7995  lt_cv_deplibs_check_method=pass_all
7996  ;;
7997
7998hpux10.20* | hpux11*)
7999  lt_cv_file_magic_cmd=/usr/bin/file
8000  case $host_cpu in
8001  ia64*)
8002    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8003    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8004    ;;
8005  hppa*64*)
8006    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8007    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8008    ;;
8009  *)
8010    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8011    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8012    ;;
8013  esac
8014  ;;
8015
8016irix5* | irix6* | nonstopux*)
8017  case $LD in
8018  *-32|*"-32 ") libmagic=32-bit;;
8019  *-n32|*"-n32 ") libmagic=N32;;
8020  *-64|*"-64 ") libmagic=64-bit;;
8021  *) libmagic=never-match;;
8022  esac
8023  lt_cv_deplibs_check_method=pass_all
8024  ;;
8025
8026# This must be Linux ELF.
8027linux*)
8028  lt_cv_deplibs_check_method=pass_all
8029  ;;
8030
8031netbsd*)
8032  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8033    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8034  else
8035    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8036  fi
8037  ;;
8038
8039newos6*)
8040  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8041  lt_cv_file_magic_cmd=/usr/bin/file
8042  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8043  ;;
8044
8045nto-qnx*)
8046  lt_cv_deplibs_check_method=unknown
8047  ;;
8048
8049openbsd*)
8050  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8051    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8052  else
8053    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8054  fi
8055  ;;
8056
8057osf3* | osf4* | osf5*)
8058  lt_cv_deplibs_check_method=pass_all
8059  ;;
8060
8061sco3.2v5*)
8062  lt_cv_deplibs_check_method=pass_all
8063  ;;
8064
8065solaris*)
8066  lt_cv_deplibs_check_method=pass_all
8067  ;;
8068
8069sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8070  case $host_vendor in
8071  motorola)
8072    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]'
8073    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8074    ;;
8075  ncr)
8076    lt_cv_deplibs_check_method=pass_all
8077    ;;
8078  sequent)
8079    lt_cv_file_magic_cmd='/bin/file'
8080    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8081    ;;
8082  sni)
8083    lt_cv_file_magic_cmd='/bin/file'
8084    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8085    lt_cv_file_magic_test_file=/lib/libc.so
8086    ;;
8087  siemens)
8088    lt_cv_deplibs_check_method=pass_all
8089    ;;
8090  esac
8091  ;;
8092
8093sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8094  lt_cv_deplibs_check_method=pass_all
8095  ;;
8096esac
8097
8098fi
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8100$as_echo "$lt_cv_deplibs_check_method" >&6; }
8101file_magic_cmd=$lt_cv_file_magic_cmd
8102deplibs_check_method=$lt_cv_deplibs_check_method
8103test -z "$deplibs_check_method" && deplibs_check_method=unknown
8104
8105
8106
8107
8108# If no C compiler was specified, use CC.
8109LTCC=${LTCC-"$CC"}
8110
8111# Allow CC to be a program name with arguments.
8112compiler=$CC
8113
8114# Check whether --enable-libtool-lock was given.
8115if test "${enable_libtool_lock+set}" = set; then :
8116  enableval=$enable_libtool_lock;
8117fi
8118
8119test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8120
8121# Some flags need to be propagated to the compiler or linker for good
8122# libtool support.
8123case $host in
8124ia64-*-hpux*)
8125  # Find out which ABI we are using.
8126  echo 'int i;' > conftest.$ac_ext
8127  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8128  (eval $ac_compile) 2>&5
8129  ac_status=$?
8130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8131  test $ac_status = 0; }; then
8132    case `/usr/bin/file conftest.$ac_objext` in
8133    *ELF-32*)
8134      HPUX_IA64_MODE="32"
8135      ;;
8136    *ELF-64*)
8137      HPUX_IA64_MODE="64"
8138      ;;
8139    esac
8140  fi
8141  rm -rf conftest*
8142  ;;
8143*-*-irix6*)
8144  # Find out which ABI we are using.
8145  echo '#line 8145 "configure"' > conftest.$ac_ext
8146  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8147  (eval $ac_compile) 2>&5
8148  ac_status=$?
8149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8150  test $ac_status = 0; }; then
8151   if test "$lt_cv_prog_gnu_ld" = yes; then
8152    case `/usr/bin/file conftest.$ac_objext` in
8153    *32-bit*)
8154      LD="${LD-ld} -melf32bsmip"
8155      ;;
8156    *N32*)
8157      LD="${LD-ld} -melf32bmipn32"
8158      ;;
8159    *64-bit*)
8160      LD="${LD-ld} -melf64bmip"
8161      ;;
8162    esac
8163   else
8164    case `/usr/bin/file conftest.$ac_objext` in
8165    *32-bit*)
8166      LD="${LD-ld} -32"
8167      ;;
8168    *N32*)
8169      LD="${LD-ld} -n32"
8170      ;;
8171    *64-bit*)
8172      LD="${LD-ld} -64"
8173      ;;
8174    esac
8175   fi
8176  fi
8177  rm -rf conftest*
8178  ;;
8179
8180x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8181  # Find out which ABI we are using.
8182  echo 'int i;' > conftest.$ac_ext
8183  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8184  (eval $ac_compile) 2>&5
8185  ac_status=$?
8186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8187  test $ac_status = 0; }; then
8188    case `/usr/bin/file conftest.o` in
8189    *32-bit*)
8190      case $host in
8191        x86_64-*linux*)
8192          LD="${LD-ld} -m elf_i386"
8193          ;;
8194        ppc64-*linux*|powerpc64-*linux*)
8195          LD="${LD-ld} -m elf32ppclinux"
8196          ;;
8197        s390x-*linux*)
8198          LD="${LD-ld} -m elf_s390"
8199          ;;
8200        sparc64-*linux*)
8201          LD="${LD-ld} -m elf32_sparc"
8202          ;;
8203      esac
8204      ;;
8205    *64-bit*)
8206      case $host in
8207        x86_64-*linux*)
8208          LD="${LD-ld} -m elf_x86_64"
8209          ;;
8210        ppc*-*linux*|powerpc*-*linux*)
8211          LD="${LD-ld} -m elf64ppc"
8212          ;;
8213        s390*-*linux*)
8214          LD="${LD-ld} -m elf64_s390"
8215          ;;
8216        sparc*-*linux*)
8217          LD="${LD-ld} -m elf64_sparc"
8218          ;;
8219      esac
8220      ;;
8221    esac
8222  fi
8223  rm -rf conftest*
8224  ;;
8225
8226*-*-sco3.2v5*)
8227  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8228  SAVE_CFLAGS="$CFLAGS"
8229  CFLAGS="$CFLAGS -belf"
8230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8231$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8232if test "${lt_cv_cc_needs_belf+set}" = set; then :
8233  $as_echo_n "(cached) " >&6
8234else
8235  ac_ext=c
8236ac_cpp='$CPP $CPPFLAGS'
8237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8239ac_compiler_gnu=$ac_cv_c_compiler_gnu
8240
8241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242/* end confdefs.h.  */
8243
8244int
8245main ()
8246{
8247
8248  ;
8249  return 0;
8250}
8251_ACEOF
8252if ac_fn_c_try_link "$LINENO"; then :
8253  lt_cv_cc_needs_belf=yes
8254else
8255  lt_cv_cc_needs_belf=no
8256fi
8257rm -f core conftest.err conftest.$ac_objext \
8258    conftest$ac_exeext conftest.$ac_ext
8259     ac_ext=c
8260ac_cpp='$CPP $CPPFLAGS'
8261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8263ac_compiler_gnu=$ac_cv_c_compiler_gnu
8264
8265fi
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8267$as_echo "$lt_cv_cc_needs_belf" >&6; }
8268  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8269    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8270    CFLAGS="$SAVE_CFLAGS"
8271  fi
8272  ;;
8273
8274esac
8275
8276need_locks="$enable_libtool_lock"
8277
8278
8279for ac_header in dlfcn.h
8280do :
8281  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8282if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8283  cat >>confdefs.h <<_ACEOF
8284#define HAVE_DLFCN_H 1
8285_ACEOF
8286
8287fi
8288
8289done
8290
8291
8292# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8293
8294# find the maximum length of command line arguments
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8296$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8297if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8298  $as_echo_n "(cached) " >&6
8299else
8300    i=0
8301  teststring="ABCD"
8302
8303  case $build_os in
8304  msdosdjgpp*)
8305    # On DJGPP, this test can blow up pretty badly due to problems in libc
8306    # (any single argument exceeding 2000 bytes causes a buffer overrun
8307    # during glob expansion).  Even if it were fixed, the result of this
8308    # check would be larger than it should be.
8309    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8310    ;;
8311
8312  gnu*)
8313    # Under GNU Hurd, this test is not required because there is
8314    # no limit to the length of command line arguments.
8315    # Libtool will interpret -1 as no limit whatsoever
8316    lt_cv_sys_max_cmd_len=-1;
8317    ;;
8318
8319  cygwin* | mingw*)
8320    # On Win9x/ME, this test blows up -- it succeeds, but takes
8321    # about 5 minutes as the teststring grows exponentially.
8322    # Worse, since 9x/ME are not pre-emptively multitasking,
8323    # you end up with a "frozen" computer, even though with patience
8324    # the test eventually succeeds (with a max line length of 256k).
8325    # Instead, let's just punt: use the minimum linelength reported by
8326    # all of the supported platforms: 8192 (on NT/2K/XP).
8327    lt_cv_sys_max_cmd_len=8192;
8328    ;;
8329
8330  amigaos*)
8331    # On AmigaOS with pdksh, this test takes hours, literally.
8332    # So we just punt and use a minimum line length of 8192.
8333    lt_cv_sys_max_cmd_len=8192;
8334    ;;
8335
8336  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8337    # This has been around since 386BSD, at least.  Likely further.
8338    if test -x /sbin/sysctl; then
8339      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8340    elif test -x /usr/sbin/sysctl; then
8341      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8342    else
8343      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8344    fi
8345    # And add a safety zone
8346    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8347    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8348    ;;
8349  osf*)
8350    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8351    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8352    # nice to cause kernel panics so lets avoid the loop below.
8353    # First set a reasonable default.
8354    lt_cv_sys_max_cmd_len=16384
8355    #
8356    if test -x /sbin/sysconfig; then
8357      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8358        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8359      esac
8360    fi
8361    ;;
8362  *)
8363    # If test is not a shell built-in, we'll probably end up computing a
8364    # maximum length that is only half of the actual maximum length, but
8365    # we can't tell.
8366    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8367    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8368	       = "XX$teststring") >/dev/null 2>&1 &&
8369	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
8370	    lt_cv_sys_max_cmd_len=$new_result &&
8371	    test $i != 17 # 1/2 MB should be enough
8372    do
8373      i=`expr $i + 1`
8374      teststring=$teststring$teststring
8375    done
8376    teststring=
8377    # Add a significant safety factor because C++ compilers can tack on massive
8378    # amounts of additional arguments before passing them to the linker.
8379    # It appears as though 1/2 is a usable value.
8380    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8381    ;;
8382  esac
8383
8384fi
8385
8386if test -n $lt_cv_sys_max_cmd_len ; then
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8388$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8389else
8390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8391$as_echo "none" >&6; }
8392fi
8393
8394
8395
8396
8397# Check for command to grab the raw symbol name followed by C symbol from nm.
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8399$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8400if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8401  $as_echo_n "(cached) " >&6
8402else
8403
8404# These are sane defaults that work on at least a few old systems.
8405# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8406
8407# Character class describing NM global symbol codes.
8408symcode='[BCDEGRST]'
8409
8410# Regexp to match symbols that can be accessed directly from C.
8411sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8412
8413# Transform an extracted symbol line into a proper C declaration
8414lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8415
8416# Transform an extracted symbol line into symbol name and symbol address
8417lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8418
8419# Define system-specific variables.
8420case $host_os in
8421aix*)
8422  symcode='[BCDT]'
8423  ;;
8424cygwin* | mingw* | pw32*)
8425  symcode='[ABCDGISTW]'
8426  ;;
8427hpux*) # Its linker distinguishes data from code symbols
8428  if test "$host_cpu" = ia64; then
8429    symcode='[ABCDEGRST]'
8430  fi
8431  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8432  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8433  ;;
8434linux*)
8435  if test "$host_cpu" = ia64; then
8436    symcode='[ABCDGIRSTW]'
8437    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8438    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8439  fi
8440  ;;
8441irix* | nonstopux*)
8442  symcode='[BCDEGRST]'
8443  ;;
8444osf*)
8445  symcode='[BCDEGQRST]'
8446  ;;
8447solaris* | sysv5*)
8448  symcode='[BDRT]'
8449  ;;
8450sysv4)
8451  symcode='[DFNSTU]'
8452  ;;
8453esac
8454
8455# Handle CRLF in mingw tool chain
8456opt_cr=
8457case $build_os in
8458mingw*)
8459  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8460  ;;
8461esac
8462
8463# If we're using GNU nm, then use its standard symbol codes.
8464case `$NM -V 2>&1` in
8465*GNU* | *'with BFD'*)
8466  symcode='[ABCDGIRSTW]' ;;
8467esac
8468
8469# Try without a prefix undercore, then with it.
8470for ac_symprfx in "" "_"; do
8471
8472  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8473  symxfrm="\\1 $ac_symprfx\\2 \\2"
8474
8475  # Write the raw and C identifiers.
8476  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8477
8478  # Check to see that the pipe works correctly.
8479  pipe_works=no
8480
8481  rm -f conftest*
8482  cat > conftest.$ac_ext <<EOF
8483#ifdef __cplusplus
8484extern "C" {
8485#endif
8486char nm_test_var;
8487void nm_test_func(){}
8488#ifdef __cplusplus
8489}
8490#endif
8491int main(){nm_test_var='a';nm_test_func();return(0);}
8492EOF
8493
8494  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8495  (eval $ac_compile) 2>&5
8496  ac_status=$?
8497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8498  test $ac_status = 0; }; then
8499    # Now try to grab the symbols.
8500    nlist=conftest.nm
8501    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8502  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8503  ac_status=$?
8504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8505  test $ac_status = 0; } && test -s "$nlist"; then
8506      # Try sorting and uniquifying the output.
8507      if sort "$nlist" | uniq > "$nlist"T; then
8508	mv -f "$nlist"T "$nlist"
8509      else
8510	rm -f "$nlist"T
8511      fi
8512
8513      # Make sure that we snagged all the symbols we need.
8514      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8515	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8516	  cat <<EOF > conftest.$ac_ext
8517#ifdef __cplusplus
8518extern "C" {
8519#endif
8520
8521EOF
8522	  # Now generate the symbol file.
8523	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8524
8525	  cat <<EOF >> conftest.$ac_ext
8526#if defined (__STDC__) && __STDC__
8527# define lt_ptr_t void *
8528#else
8529# define lt_ptr_t char *
8530# define const
8531#endif
8532
8533/* The mapping between symbol names and symbols. */
8534const struct {
8535  const char *name;
8536  lt_ptr_t address;
8537}
8538lt_preloaded_symbols[] =
8539{
8540EOF
8541	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8542	  cat <<\EOF >> conftest.$ac_ext
8543  {0, (lt_ptr_t) 0}
8544};
8545
8546#ifdef __cplusplus
8547}
8548#endif
8549EOF
8550	  # Now try linking the two files.
8551	  mv conftest.$ac_objext conftstm.$ac_objext
8552	  lt_save_LIBS="$LIBS"
8553	  lt_save_CFLAGS="$CFLAGS"
8554	  LIBS="conftstm.$ac_objext"
8555	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8556	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8557  (eval $ac_link) 2>&5
8558  ac_status=$?
8559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8560  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8561	    pipe_works=yes
8562	  fi
8563	  LIBS="$lt_save_LIBS"
8564	  CFLAGS="$lt_save_CFLAGS"
8565	else
8566	  echo "cannot find nm_test_func in $nlist" >&5
8567	fi
8568      else
8569	echo "cannot find nm_test_var in $nlist" >&5
8570      fi
8571    else
8572      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8573    fi
8574  else
8575    echo "$progname: failed program was:" >&5
8576    cat conftest.$ac_ext >&5
8577  fi
8578  rm -f conftest* conftst*
8579
8580  # Do not use the global_symbol_pipe unless it works.
8581  if test "$pipe_works" = yes; then
8582    break
8583  else
8584    lt_cv_sys_global_symbol_pipe=
8585  fi
8586done
8587
8588fi
8589
8590if test -z "$lt_cv_sys_global_symbol_pipe"; then
8591  lt_cv_sys_global_symbol_to_cdecl=
8592fi
8593if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8595$as_echo "failed" >&6; }
8596else
8597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8598$as_echo "ok" >&6; }
8599fi
8600
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8602$as_echo_n "checking for objdir... " >&6; }
8603if test "${lt_cv_objdir+set}" = set; then :
8604  $as_echo_n "(cached) " >&6
8605else
8606  rm -f .libs 2>/dev/null
8607mkdir .libs 2>/dev/null
8608if test -d .libs; then
8609  lt_cv_objdir=.libs
8610else
8611  # MS-DOS does not allow filenames that begin with a dot.
8612  lt_cv_objdir=_libs
8613fi
8614rmdir .libs 2>/dev/null
8615fi
8616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8617$as_echo "$lt_cv_objdir" >&6; }
8618objdir=$lt_cv_objdir
8619
8620
8621
8622
8623
8624case $host_os in
8625aix3*)
8626  # AIX sometimes has problems with the GCC collect2 program.  For some
8627  # reason, if we set the COLLECT_NAMES environment variable, the problems
8628  # vanish in a puff of smoke.
8629  if test "X${COLLECT_NAMES+set}" != Xset; then
8630    COLLECT_NAMES=
8631    export COLLECT_NAMES
8632  fi
8633  ;;
8634esac
8635
8636# Sed substitution that helps us do robust quoting.  It backslashifies
8637# metacharacters that are still active within double-quoted strings.
8638Xsed='sed -e 1s/^X//'
8639sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8640
8641# Same as above, but do not quote variable references.
8642double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8643
8644# Sed substitution to delay expansion of an escaped shell variable in a
8645# double_quote_subst'ed string.
8646delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8647
8648# Sed substitution to avoid accidental globbing in evaled expressions
8649no_glob_subst='s/\*/\\\*/g'
8650
8651# Constants:
8652rm="rm -f"
8653
8654# Global variables:
8655default_ofile=libtool
8656can_build_shared=yes
8657
8658# All known linkers require a `.a' archive for static linking (except MSVC,
8659# which needs '.lib').
8660libext=a
8661ltmain="$ac_aux_dir/ltmain.sh"
8662ofile="$default_ofile"
8663with_gnu_ld="$lt_cv_prog_gnu_ld"
8664
8665if test -n "$ac_tool_prefix"; then
8666  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8667set dummy ${ac_tool_prefix}ar; ac_word=$2
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669$as_echo_n "checking for $ac_word... " >&6; }
8670if test "${ac_cv_prog_AR+set}" = set; then :
8671  $as_echo_n "(cached) " >&6
8672else
8673  if test -n "$AR"; then
8674  ac_cv_prog_AR="$AR" # Let the user override the test.
8675else
8676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677for as_dir in $PATH
8678do
8679  IFS=$as_save_IFS
8680  test -z "$as_dir" && as_dir=.
8681    for ac_exec_ext in '' $ac_executable_extensions; do
8682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8683    ac_cv_prog_AR="${ac_tool_prefix}ar"
8684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8685    break 2
8686  fi
8687done
8688  done
8689IFS=$as_save_IFS
8690
8691fi
8692fi
8693AR=$ac_cv_prog_AR
8694if test -n "$AR"; then
8695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8696$as_echo "$AR" >&6; }
8697else
8698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699$as_echo "no" >&6; }
8700fi
8701
8702
8703fi
8704if test -z "$ac_cv_prog_AR"; then
8705  ac_ct_AR=$AR
8706  # Extract the first word of "ar", so it can be a program name with args.
8707set dummy ar; ac_word=$2
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709$as_echo_n "checking for $ac_word... " >&6; }
8710if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8711  $as_echo_n "(cached) " >&6
8712else
8713  if test -n "$ac_ct_AR"; then
8714  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8715else
8716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717for as_dir in $PATH
8718do
8719  IFS=$as_save_IFS
8720  test -z "$as_dir" && as_dir=.
8721    for ac_exec_ext in '' $ac_executable_extensions; do
8722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8723    ac_cv_prog_ac_ct_AR="ar"
8724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725    break 2
8726  fi
8727done
8728  done
8729IFS=$as_save_IFS
8730
8731fi
8732fi
8733ac_ct_AR=$ac_cv_prog_ac_ct_AR
8734if test -n "$ac_ct_AR"; then
8735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8736$as_echo "$ac_ct_AR" >&6; }
8737else
8738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739$as_echo "no" >&6; }
8740fi
8741
8742  if test "x$ac_ct_AR" = x; then
8743    AR="false"
8744  else
8745    case $cross_compiling:$ac_tool_warned in
8746yes:)
8747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8749ac_tool_warned=yes ;;
8750esac
8751    AR=$ac_ct_AR
8752  fi
8753else
8754  AR="$ac_cv_prog_AR"
8755fi
8756
8757if test -n "$ac_tool_prefix"; then
8758  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8759set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761$as_echo_n "checking for $ac_word... " >&6; }
8762if test "${ac_cv_prog_RANLIB+set}" = set; then :
8763  $as_echo_n "(cached) " >&6
8764else
8765  if test -n "$RANLIB"; then
8766  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8767else
8768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769for as_dir in $PATH
8770do
8771  IFS=$as_save_IFS
8772  test -z "$as_dir" && as_dir=.
8773    for ac_exec_ext in '' $ac_executable_extensions; do
8774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8775    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777    break 2
8778  fi
8779done
8780  done
8781IFS=$as_save_IFS
8782
8783fi
8784fi
8785RANLIB=$ac_cv_prog_RANLIB
8786if test -n "$RANLIB"; then
8787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8788$as_echo "$RANLIB" >&6; }
8789else
8790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791$as_echo "no" >&6; }
8792fi
8793
8794
8795fi
8796if test -z "$ac_cv_prog_RANLIB"; then
8797  ac_ct_RANLIB=$RANLIB
8798  # Extract the first word of "ranlib", so it can be a program name with args.
8799set dummy ranlib; ac_word=$2
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801$as_echo_n "checking for $ac_word... " >&6; }
8802if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8803  $as_echo_n "(cached) " >&6
8804else
8805  if test -n "$ac_ct_RANLIB"; then
8806  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8807else
8808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in $PATH
8810do
8811  IFS=$as_save_IFS
8812  test -z "$as_dir" && as_dir=.
8813    for ac_exec_ext in '' $ac_executable_extensions; do
8814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8815    ac_cv_prog_ac_ct_RANLIB="ranlib"
8816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817    break 2
8818  fi
8819done
8820  done
8821IFS=$as_save_IFS
8822
8823fi
8824fi
8825ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8826if test -n "$ac_ct_RANLIB"; then
8827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8828$as_echo "$ac_ct_RANLIB" >&6; }
8829else
8830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831$as_echo "no" >&6; }
8832fi
8833
8834  if test "x$ac_ct_RANLIB" = x; then
8835    RANLIB=":"
8836  else
8837    case $cross_compiling:$ac_tool_warned in
8838yes:)
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8841ac_tool_warned=yes ;;
8842esac
8843    RANLIB=$ac_ct_RANLIB
8844  fi
8845else
8846  RANLIB="$ac_cv_prog_RANLIB"
8847fi
8848
8849if test -n "$ac_tool_prefix"; then
8850  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8851set dummy ${ac_tool_prefix}strip; ac_word=$2
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853$as_echo_n "checking for $ac_word... " >&6; }
8854if test "${ac_cv_prog_STRIP+set}" = set; then :
8855  $as_echo_n "(cached) " >&6
8856else
8857  if test -n "$STRIP"; then
8858  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8859else
8860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861for as_dir in $PATH
8862do
8863  IFS=$as_save_IFS
8864  test -z "$as_dir" && as_dir=.
8865    for ac_exec_ext in '' $ac_executable_extensions; do
8866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8867    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869    break 2
8870  fi
8871done
8872  done
8873IFS=$as_save_IFS
8874
8875fi
8876fi
8877STRIP=$ac_cv_prog_STRIP
8878if test -n "$STRIP"; then
8879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8880$as_echo "$STRIP" >&6; }
8881else
8882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883$as_echo "no" >&6; }
8884fi
8885
8886
8887fi
8888if test -z "$ac_cv_prog_STRIP"; then
8889  ac_ct_STRIP=$STRIP
8890  # Extract the first word of "strip", so it can be a program name with args.
8891set dummy strip; ac_word=$2
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893$as_echo_n "checking for $ac_word... " >&6; }
8894if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8895  $as_echo_n "(cached) " >&6
8896else
8897  if test -n "$ac_ct_STRIP"; then
8898  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8899else
8900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901for as_dir in $PATH
8902do
8903  IFS=$as_save_IFS
8904  test -z "$as_dir" && as_dir=.
8905    for ac_exec_ext in '' $ac_executable_extensions; do
8906  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8907    ac_cv_prog_ac_ct_STRIP="strip"
8908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909    break 2
8910  fi
8911done
8912  done
8913IFS=$as_save_IFS
8914
8915fi
8916fi
8917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8918if test -n "$ac_ct_STRIP"; then
8919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8920$as_echo "$ac_ct_STRIP" >&6; }
8921else
8922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923$as_echo "no" >&6; }
8924fi
8925
8926  if test "x$ac_ct_STRIP" = x; then
8927    STRIP=":"
8928  else
8929    case $cross_compiling:$ac_tool_warned in
8930yes:)
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8933ac_tool_warned=yes ;;
8934esac
8935    STRIP=$ac_ct_STRIP
8936  fi
8937else
8938  STRIP="$ac_cv_prog_STRIP"
8939fi
8940
8941
8942old_CC="$CC"
8943old_CFLAGS="$CFLAGS"
8944
8945# Set sane defaults for various variables
8946test -z "$AR" && AR=ar
8947test -z "$AR_FLAGS" && AR_FLAGS=cru
8948test -z "$AS" && AS=as
8949test -z "$CC" && CC=cc
8950test -z "$LTCC" && LTCC=$CC
8951test -z "$DLLTOOL" && DLLTOOL=dlltool
8952test -z "$LD" && LD=ld
8953test -z "$LN_S" && LN_S="ln -s"
8954test -z "$MAGIC_CMD" && MAGIC_CMD=file
8955test -z "$NM" && NM=nm
8956test -z "$SED" && SED=sed
8957test -z "$OBJDUMP" && OBJDUMP=objdump
8958test -z "$RANLIB" && RANLIB=:
8959test -z "$STRIP" && STRIP=:
8960test -z "$ac_objext" && ac_objext=o
8961
8962# Determine commands to create old-style static archives.
8963old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8964old_postinstall_cmds='chmod 644 $oldlib'
8965old_postuninstall_cmds=
8966
8967if test -n "$RANLIB"; then
8968  case $host_os in
8969  openbsd*)
8970    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8971    ;;
8972  *)
8973    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8974    ;;
8975  esac
8976  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8977fi
8978
8979for cc_temp in $compiler""; do
8980  case $cc_temp in
8981    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8982    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8983    \-*) ;;
8984    *) break;;
8985  esac
8986done
8987cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8988
8989
8990# Only perform the check for file, if the check method requires it
8991case $deplibs_check_method in
8992file_magic*)
8993  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8995$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8996if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8997  $as_echo_n "(cached) " >&6
8998else
8999  case $MAGIC_CMD in
9000[\\/*] |  ?:[\\/]*)
9001  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9002  ;;
9003*)
9004  lt_save_MAGIC_CMD="$MAGIC_CMD"
9005  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9006  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9007  for ac_dir in $ac_dummy; do
9008    IFS="$lt_save_ifs"
9009    test -z "$ac_dir" && ac_dir=.
9010    if test -f $ac_dir/${ac_tool_prefix}file; then
9011      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9012      if test -n "$file_magic_test_file"; then
9013	case $deplibs_check_method in
9014	"file_magic "*)
9015	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9016	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9017	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9018	    $EGREP "$file_magic_regex" > /dev/null; then
9019	    :
9020	  else
9021	    cat <<EOF 1>&2
9022
9023*** Warning: the command libtool uses to detect shared libraries,
9024*** $file_magic_cmd, produces output that libtool cannot recognize.
9025*** The result is that libtool may fail to recognize shared libraries
9026*** as such.  This will affect the creation of libtool libraries that
9027*** depend on shared libraries, but programs linked with such libtool
9028*** libraries will work regardless of this problem.  Nevertheless, you
9029*** may want to report the problem to your system manager and/or to
9030*** bug-libtool@gnu.org
9031
9032EOF
9033	  fi ;;
9034	esac
9035      fi
9036      break
9037    fi
9038  done
9039  IFS="$lt_save_ifs"
9040  MAGIC_CMD="$lt_save_MAGIC_CMD"
9041  ;;
9042esac
9043fi
9044
9045MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9046if test -n "$MAGIC_CMD"; then
9047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9048$as_echo "$MAGIC_CMD" >&6; }
9049else
9050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051$as_echo "no" >&6; }
9052fi
9053
9054if test -z "$lt_cv_path_MAGIC_CMD"; then
9055  if test -n "$ac_tool_prefix"; then
9056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9057$as_echo_n "checking for file... " >&6; }
9058if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9059  $as_echo_n "(cached) " >&6
9060else
9061  case $MAGIC_CMD in
9062[\\/*] |  ?:[\\/]*)
9063  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9064  ;;
9065*)
9066  lt_save_MAGIC_CMD="$MAGIC_CMD"
9067  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9068  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9069  for ac_dir in $ac_dummy; do
9070    IFS="$lt_save_ifs"
9071    test -z "$ac_dir" && ac_dir=.
9072    if test -f $ac_dir/file; then
9073      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9074      if test -n "$file_magic_test_file"; then
9075	case $deplibs_check_method in
9076	"file_magic "*)
9077	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9078	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9079	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9080	    $EGREP "$file_magic_regex" > /dev/null; then
9081	    :
9082	  else
9083	    cat <<EOF 1>&2
9084
9085*** Warning: the command libtool uses to detect shared libraries,
9086*** $file_magic_cmd, produces output that libtool cannot recognize.
9087*** The result is that libtool may fail to recognize shared libraries
9088*** as such.  This will affect the creation of libtool libraries that
9089*** depend on shared libraries, but programs linked with such libtool
9090*** libraries will work regardless of this problem.  Nevertheless, you
9091*** may want to report the problem to your system manager and/or to
9092*** bug-libtool@gnu.org
9093
9094EOF
9095	  fi ;;
9096	esac
9097      fi
9098      break
9099    fi
9100  done
9101  IFS="$lt_save_ifs"
9102  MAGIC_CMD="$lt_save_MAGIC_CMD"
9103  ;;
9104esac
9105fi
9106
9107MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9108if test -n "$MAGIC_CMD"; then
9109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9110$as_echo "$MAGIC_CMD" >&6; }
9111else
9112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113$as_echo "no" >&6; }
9114fi
9115
9116  else
9117    MAGIC_CMD=:
9118  fi
9119fi
9120
9121  fi
9122  ;;
9123esac
9124
9125enable_dlopen=no
9126enable_win32_dll=no
9127
9128# Check whether --enable-libtool-lock was given.
9129if test "${enable_libtool_lock+set}" = set; then :
9130  enableval=$enable_libtool_lock;
9131fi
9132
9133test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9134
9135
9136# Check whether --with-pic was given.
9137if test "${with_pic+set}" = set; then :
9138  withval=$with_pic; pic_mode="$withval"
9139else
9140  pic_mode=default
9141fi
9142
9143test -z "$pic_mode" && pic_mode=default
9144
9145# Use C for the default configuration in the libtool script
9146tagname=
9147lt_save_CC="$CC"
9148ac_ext=c
9149ac_cpp='$CPP $CPPFLAGS'
9150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9152ac_compiler_gnu=$ac_cv_c_compiler_gnu
9153
9154
9155# Source file extension for C test sources.
9156ac_ext=c
9157
9158# Object file extension for compiled C test sources.
9159objext=o
9160objext=$objext
9161
9162# Code to be used in simple compile tests
9163lt_simple_compile_test_code="int some_variable = 0;\n"
9164
9165# Code to be used in simple link tests
9166lt_simple_link_test_code='int main(){return(0);}\n'
9167
9168
9169# If no C compiler was specified, use CC.
9170LTCC=${LTCC-"$CC"}
9171
9172# Allow CC to be a program name with arguments.
9173compiler=$CC
9174
9175
9176# save warnings/boilerplate of simple test code
9177ac_outfile=conftest.$ac_objext
9178printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9179eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9180_lt_compiler_boilerplate=`cat conftest.err`
9181$rm conftest*
9182
9183ac_outfile=conftest.$ac_objext
9184printf "$lt_simple_link_test_code" >conftest.$ac_ext
9185eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9186_lt_linker_boilerplate=`cat conftest.err`
9187$rm conftest*
9188
9189
9190#
9191# Check for any special shared library compilation flags.
9192#
9193lt_prog_cc_shlib=
9194if test "$GCC" = no; then
9195  case $host_os in
9196  sco3.2v5*)
9197    lt_prog_cc_shlib='-belf'
9198    ;;
9199  esac
9200fi
9201if test -n "$lt_prog_cc_shlib"; then
9202  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
9203$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
9204  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
9205  else
9206    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
9207$as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
9208    lt_cv_prog_cc_can_build_shared=no
9209  fi
9210fi
9211
9212
9213#
9214# Check to make sure the static flag actually works.
9215#
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
9217$as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
9218if test "${lt_prog_compiler_static_works+set}" = set; then :
9219  $as_echo_n "(cached) " >&6
9220else
9221  lt_prog_compiler_static_works=no
9222   save_LDFLAGS="$LDFLAGS"
9223   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
9224   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9225   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9226     # The linker can only warn and ignore the option if not recognized
9227     # So say no if there are warnings
9228     if test -s conftest.err; then
9229       # Append any errors to the config.log.
9230       cat conftest.err 1>&5
9231       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
9232       $SED '/^$/d' conftest.err >conftest.er2
9233       if diff conftest.exp conftest.er2 >/dev/null; then
9234         lt_prog_compiler_static_works=yes
9235       fi
9236     else
9237       lt_prog_compiler_static_works=yes
9238     fi
9239   fi
9240   $rm conftest*
9241   LDFLAGS="$save_LDFLAGS"
9242
9243fi
9244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
9245$as_echo "$lt_prog_compiler_static_works" >&6; }
9246
9247if test x"$lt_prog_compiler_static_works" = xyes; then
9248    :
9249else
9250    lt_prog_compiler_static=
9251fi
9252
9253
9254
9255
9256lt_prog_compiler_no_builtin_flag=
9257
9258if test "$GCC" = yes; then
9259  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9260
9261
9262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9263$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9264if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9265  $as_echo_n "(cached) " >&6
9266else
9267  lt_cv_prog_compiler_rtti_exceptions=no
9268  ac_outfile=conftest.$ac_objext
9269   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9270   lt_compiler_flag="-fno-rtti -fno-exceptions"
9271   # Insert the option either (1) after the last *FLAGS variable, or
9272   # (2) before a word containing "conftest.", or (3) at the end.
9273   # Note that $ac_compile itself does not contain backslashes and begins
9274   # with a dollar sign (not a hyphen), so the echo should work correctly.
9275   # The option is referenced via a variable to avoid confusing sed.
9276   lt_compile=`echo "$ac_compile" | $SED \
9277   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9278   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9279   -e 's:$: $lt_compiler_flag:'`
9280   (eval echo "\"\$as_me:9280: $lt_compile\"" >&5)
9281   (eval "$lt_compile" 2>conftest.err)
9282   ac_status=$?
9283   cat conftest.err >&5
9284   echo "$as_me:9284: \$? = $ac_status" >&5
9285   if (exit $ac_status) && test -s "$ac_outfile"; then
9286     # The compiler can only warn and ignore the option if not recognized
9287     # So say no if there are warnings other than the usual output.
9288     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
9289     $SED '/^$/d' conftest.err >conftest.er2
9290     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
9291       lt_cv_prog_compiler_rtti_exceptions=yes
9292     fi
9293   fi
9294   $rm conftest*
9295
9296fi
9297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9298$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9299
9300if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9301    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9302else
9303    :
9304fi
9305
9306fi
9307
9308lt_prog_compiler_wl=
9309lt_prog_compiler_pic=
9310lt_prog_compiler_static=
9311
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9313$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9314
9315  if test "$GCC" = yes; then
9316    lt_prog_compiler_wl='-Wl,'
9317    lt_prog_compiler_static='-static'
9318
9319    case $host_os in
9320      aix*)
9321      # All AIX code is PIC.
9322      if test "$host_cpu" = ia64; then
9323	# AIX 5 now supports IA64 processor
9324	lt_prog_compiler_static='-Bstatic'
9325      fi
9326      ;;
9327
9328    amigaos*)
9329      # FIXME: we need at least 68020 code to build shared libraries, but
9330      # adding the `-m68020' flag to GCC prevents building anything better,
9331      # like `-m68040'.
9332      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9333      ;;
9334
9335    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9336      # PIC is the default for these OSes.
9337      ;;
9338
9339    mingw* | pw32* | os2*)
9340      # This hack is so that the source file can tell whether it is being
9341      # built for inclusion in a dll (and should export symbols for example).
9342      lt_prog_compiler_pic='-DDLL_EXPORT'
9343      ;;
9344
9345    darwin* | rhapsody*)
9346      # PIC is the default on this platform
9347      # Common symbols not allowed in MH_DYLIB files
9348      lt_prog_compiler_pic='-fno-common'
9349      ;;
9350
9351    msdosdjgpp*)
9352      # Just because we use GCC doesn't mean we suddenly get shared libraries
9353      # on systems that don't support them.
9354      lt_prog_compiler_can_build_shared=no
9355      enable_shared=no
9356      ;;
9357
9358    sysv4*MP*)
9359      if test -d /usr/nec; then
9360	lt_prog_compiler_pic=-Kconform_pic
9361      fi
9362      ;;
9363
9364    hpux*)
9365      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9366      # not for PA HP-UX.
9367      case $host_cpu in
9368      hppa*64*|ia64*)
9369	# +Z the default
9370	;;
9371      *)
9372	lt_prog_compiler_pic='-fPIC'
9373	;;
9374      esac
9375      ;;
9376
9377    *)
9378      lt_prog_compiler_pic='-fPIC'
9379      ;;
9380    esac
9381  else
9382    # PORTME Check for flag to pass linker flags through the system compiler.
9383    case $host_os in
9384    aix*)
9385      lt_prog_compiler_wl='-Wl,'
9386      if test "$host_cpu" = ia64; then
9387	# AIX 5 now supports IA64 processor
9388	lt_prog_compiler_static='-Bstatic'
9389      else
9390	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9391      fi
9392      ;;
9393      darwin*)
9394        # PIC is the default on this platform
9395        # Common symbols not allowed in MH_DYLIB files
9396       case $cc_basename in
9397         xlc*)
9398         lt_prog_compiler_pic='-qnocommon'
9399         lt_prog_compiler_wl='-Wl,'
9400         ;;
9401       esac
9402       ;;
9403
9404    mingw* | pw32* | os2*)
9405      # This hack is so that the source file can tell whether it is being
9406      # built for inclusion in a dll (and should export symbols for example).
9407      lt_prog_compiler_pic='-DDLL_EXPORT'
9408      ;;
9409
9410    hpux9* | hpux10* | hpux11*)
9411      lt_prog_compiler_wl='-Wl,'
9412      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9413      # not for PA HP-UX.
9414      case $host_cpu in
9415      hppa*64*|ia64*)
9416	# +Z the default
9417	;;
9418      *)
9419	lt_prog_compiler_pic='+Z'
9420	;;
9421      esac
9422      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9423      lt_prog_compiler_static='${wl}-a ${wl}archive'
9424      ;;
9425
9426    irix5* | irix6* | nonstopux*)
9427      lt_prog_compiler_wl='-Wl,'
9428      # PIC (with -KPIC) is the default.
9429      lt_prog_compiler_static='-non_shared'
9430      ;;
9431
9432    newsos6)
9433      lt_prog_compiler_pic='-KPIC'
9434      lt_prog_compiler_static='-Bstatic'
9435      ;;
9436
9437    linux*)
9438      case $cc_basename in
9439      icc* | ecc*)
9440	lt_prog_compiler_wl='-Wl,'
9441	lt_prog_compiler_pic='-KPIC'
9442	lt_prog_compiler_static='-static'
9443        ;;
9444      pgcc* | pgf77* | pgf90* | pgf95*)
9445        # Portland Group compilers (*not* the Pentium gcc compiler,
9446	# which looks to be a dead project)
9447	lt_prog_compiler_wl='-Wl,'
9448	lt_prog_compiler_pic='-fpic'
9449	lt_prog_compiler_static='-Bstatic'
9450        ;;
9451      ccc*)
9452        lt_prog_compiler_wl='-Wl,'
9453        # All Alpha code is PIC.
9454        lt_prog_compiler_static='-non_shared'
9455        ;;
9456      esac
9457      ;;
9458
9459    osf3* | osf4* | osf5*)
9460      lt_prog_compiler_wl='-Wl,'
9461      # All OSF/1 code is PIC.
9462      lt_prog_compiler_static='-non_shared'
9463      ;;
9464
9465    sco3.2v5*)
9466      lt_prog_compiler_pic='-Kpic'
9467      lt_prog_compiler_static='-dn'
9468      ;;
9469
9470    solaris*)
9471      lt_prog_compiler_pic='-KPIC'
9472      lt_prog_compiler_static='-Bstatic'
9473      case $cc_basename in
9474      f77* | f90* | f95*)
9475	lt_prog_compiler_wl='-Qoption ld ';;
9476      *)
9477	lt_prog_compiler_wl='-Wl,';;
9478      esac
9479      ;;
9480
9481    sunos4*)
9482      lt_prog_compiler_wl='-Qoption ld '
9483      lt_prog_compiler_pic='-PIC'
9484      lt_prog_compiler_static='-Bstatic'
9485      ;;
9486
9487    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9488      lt_prog_compiler_wl='-Wl,'
9489      lt_prog_compiler_pic='-KPIC'
9490      lt_prog_compiler_static='-Bstatic'
9491      ;;
9492
9493    sysv4*MP*)
9494      if test -d /usr/nec ;then
9495	lt_prog_compiler_pic='-Kconform_pic'
9496	lt_prog_compiler_static='-Bstatic'
9497      fi
9498      ;;
9499
9500    unicos*)
9501      lt_prog_compiler_wl='-Wl,'
9502      lt_prog_compiler_can_build_shared=no
9503      ;;
9504
9505    uts4*)
9506      lt_prog_compiler_pic='-pic'
9507      lt_prog_compiler_static='-Bstatic'
9508      ;;
9509
9510    *)
9511      lt_prog_compiler_can_build_shared=no
9512      ;;
9513    esac
9514  fi
9515
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9517$as_echo "$lt_prog_compiler_pic" >&6; }
9518
9519#
9520# Check to make sure the PIC flag actually works.
9521#
9522if test -n "$lt_prog_compiler_pic"; then
9523
9524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9525$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9526if test "${lt_prog_compiler_pic_works+set}" = set; then :
9527  $as_echo_n "(cached) " >&6
9528else
9529  lt_prog_compiler_pic_works=no
9530  ac_outfile=conftest.$ac_objext
9531   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9532   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9533   # Insert the option either (1) after the last *FLAGS variable, or
9534   # (2) before a word containing "conftest.", or (3) at the end.
9535   # Note that $ac_compile itself does not contain backslashes and begins
9536   # with a dollar sign (not a hyphen), so the echo should work correctly.
9537   # The option is referenced via a variable to avoid confusing sed.
9538   lt_compile=`echo "$ac_compile" | $SED \
9539   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9540   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9541   -e 's:$: $lt_compiler_flag:'`
9542   (eval echo "\"\$as_me:9542: $lt_compile\"" >&5)
9543   (eval "$lt_compile" 2>conftest.err)
9544   ac_status=$?
9545   cat conftest.err >&5
9546   echo "$as_me:9546: \$? = $ac_status" >&5
9547   if (exit $ac_status) && test -s "$ac_outfile"; then
9548     # The compiler can only warn and ignore the option if not recognized
9549     # So say no if there are warnings other than the usual output.
9550     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
9551     $SED '/^$/d' conftest.err >conftest.er2
9552     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
9553       lt_prog_compiler_pic_works=yes
9554     fi
9555   fi
9556   $rm conftest*
9557
9558fi
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
9560$as_echo "$lt_prog_compiler_pic_works" >&6; }
9561
9562if test x"$lt_prog_compiler_pic_works" = xyes; then
9563    case $lt_prog_compiler_pic in
9564     "" | " "*) ;;
9565     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9566     esac
9567else
9568    lt_prog_compiler_pic=
9569     lt_prog_compiler_can_build_shared=no
9570fi
9571
9572fi
9573case $host_os in
9574  # For platforms which do not support PIC, -DPIC is meaningless:
9575  *djgpp*)
9576    lt_prog_compiler_pic=
9577    ;;
9578  *)
9579    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9580    ;;
9581esac
9582
9583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9584$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9585if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9586  $as_echo_n "(cached) " >&6
9587else
9588  lt_cv_prog_compiler_c_o=no
9589   $rm -r conftest 2>/dev/null
9590   mkdir conftest
9591   cd conftest
9592   mkdir out
9593   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9594
9595   lt_compiler_flag="-o out/conftest2.$ac_objext"
9596   # Insert the option either (1) after the last *FLAGS variable, or
9597   # (2) before a word containing "conftest.", or (3) at the end.
9598   # Note that $ac_compile itself does not contain backslashes and begins
9599   # with a dollar sign (not a hyphen), so the echo should work correctly.
9600   lt_compile=`echo "$ac_compile" | $SED \
9601   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9602   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9603   -e 's:$: $lt_compiler_flag:'`
9604   (eval echo "\"\$as_me:9604: $lt_compile\"" >&5)
9605   (eval "$lt_compile" 2>out/conftest.err)
9606   ac_status=$?
9607   cat out/conftest.err >&5
9608   echo "$as_me:9608: \$? = $ac_status" >&5
9609   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9610   then
9611     # The compiler can only warn and ignore the option if not recognized
9612     # So say no if there are warnings
9613     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
9614     $SED '/^$/d' out/conftest.err >out/conftest.er2
9615     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9616       lt_cv_prog_compiler_c_o=yes
9617     fi
9618   fi
9619   chmod u+w . 2>&5
9620   $rm conftest*
9621   # SGI C++ compiler will create directory out/ii_files/ for
9622   # template instantiation
9623   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9624   $rm out/* && rmdir out
9625   cd ..
9626   rmdir conftest
9627   $rm conftest*
9628
9629fi
9630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9631$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9632
9633
9634hard_links="nottested"
9635if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9636  # do not overwrite the value of need_locks provided by the user
9637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9638$as_echo_n "checking if we can lock with hard links... " >&6; }
9639  hard_links=yes
9640  $rm conftest*
9641  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9642  touch conftest.a
9643  ln conftest.a conftest.b 2>&5 || hard_links=no
9644  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9646$as_echo "$hard_links" >&6; }
9647  if test "$hard_links" = no; then
9648    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9649$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9650    need_locks=warn
9651  fi
9652else
9653  need_locks=no
9654fi
9655
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9657$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9658
9659  runpath_var=
9660  allow_undefined_flag=
9661  enable_shared_with_static_runtimes=no
9662  archive_cmds=
9663  archive_expsym_cmds=
9664  old_archive_From_new_cmds=
9665  old_archive_from_expsyms_cmds=
9666  export_dynamic_flag_spec=
9667  whole_archive_flag_spec=
9668  thread_safe_flag_spec=
9669  hardcode_libdir_flag_spec=
9670  hardcode_libdir_flag_spec_ld=
9671  hardcode_libdir_separator=
9672  hardcode_direct=no
9673  hardcode_minus_L=no
9674  hardcode_shlibpath_var=unsupported
9675  link_all_deplibs=unknown
9676  hardcode_automatic=no
9677  module_cmds=
9678  module_expsym_cmds=
9679  always_export_symbols=no
9680  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9681  # include_expsyms should be a list of space-separated symbols to be *always*
9682  # included in the symbol list
9683  include_expsyms=
9684  # exclude_expsyms can be an extended regexp of symbols to exclude
9685  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9686  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9687  # as well as any symbol that contains `d'.
9688  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9689  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9690  # platforms (ab)use it in PIC code, but their linkers get confused if
9691  # the symbol is explicitly referenced.  Since portable code cannot
9692  # rely on this symbol name, it's probably fine to never include it in
9693  # preloaded symbol tables.
9694  extract_expsyms_cmds=
9695  # Just being paranoid about ensuring that cc_basename is set.
9696  for cc_temp in $compiler""; do
9697  case $cc_temp in
9698    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9699    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9700    \-*) ;;
9701    *) break;;
9702  esac
9703done
9704cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9705
9706  case $host_os in
9707  cygwin* | mingw* | pw32*)
9708    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9709    # When not using gcc, we currently assume that we are using
9710    # Microsoft Visual C++.
9711    if test "$GCC" != yes; then
9712      with_gnu_ld=no
9713    fi
9714    ;;
9715  openbsd*)
9716    with_gnu_ld=no
9717    ;;
9718  esac
9719
9720  ld_shlibs=yes
9721  if test "$with_gnu_ld" = yes; then
9722    # If archive_cmds runs LD, not CC, wlarc should be empty
9723    wlarc='${wl}'
9724
9725    # Set some defaults for GNU ld with shared library support. These
9726    # are reset later if shared libraries are not supported. Putting them
9727    # here allows them to be overridden if necessary.
9728    runpath_var=LD_RUN_PATH
9729    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9730    export_dynamic_flag_spec='${wl}--export-dynamic'
9731    # ancient GNU ld didn't support --whole-archive et. al.
9732    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9733	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9734      else
9735  	whole_archive_flag_spec=
9736    fi
9737    supports_anon_versioning=no
9738    case `$LD -v 2>/dev/null` in
9739      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9740      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9741      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9742      *\ 2.11.*) ;; # other 2.11 versions
9743      *) supports_anon_versioning=yes ;;
9744    esac
9745
9746    # See if GNU ld supports shared libraries.
9747    case $host_os in
9748    aix3* | aix4* | aix5*)
9749      # On AIX/PPC, the GNU linker is very broken
9750      if test "$host_cpu" != ia64; then
9751	ld_shlibs=no
9752	cat <<EOF 1>&2
9753
9754*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9755*** to be unable to reliably create shared libraries on AIX.
9756*** Therefore, libtool is disabling shared libraries support.  If you
9757*** really care for shared libraries, you may want to modify your PATH
9758*** so that a non-GNU linker is found, and then restart.
9759
9760EOF
9761      fi
9762      ;;
9763
9764    amigaos*)
9765      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)'
9766      hardcode_libdir_flag_spec='-L$libdir'
9767      hardcode_minus_L=yes
9768
9769      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9770      # that the semantics of dynamic libraries on AmigaOS, at least up
9771      # to version 4, is to share data among multiple programs linked
9772      # with the same dynamic library.  Since this doesn't match the
9773      # behavior of shared libraries on other platforms, we can't use
9774      # them.
9775      ld_shlibs=no
9776      ;;
9777
9778    beos*)
9779      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9780	allow_undefined_flag=unsupported
9781	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9782	# support --undefined.  This deserves some investigation.  FIXME
9783	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9784      else
9785	ld_shlibs=no
9786      fi
9787      ;;
9788
9789    cygwin* | mingw* | pw32*)
9790      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9791      # as there is no search path for DLLs.
9792      hardcode_libdir_flag_spec='-L$libdir'
9793      allow_undefined_flag=unsupported
9794      always_export_symbols=no
9795      enable_shared_with_static_runtimes=yes
9796      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9797
9798      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9799        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9800	# If the export-symbols file already is a .def file (1st line
9801	# is EXPORTS), use it as is; otherwise, prepend...
9802	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9803	  cp $export_symbols $output_objdir/$soname.def;
9804	else
9805	  echo EXPORTS > $output_objdir/$soname.def;
9806	  cat $export_symbols >> $output_objdir/$soname.def;
9807	fi~
9808	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9809      else
9810	ld_shlibs=no
9811      fi
9812      ;;
9813
9814    linux*)
9815      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9816	tmp_addflag=
9817	case $cc_basename,$host_cpu in
9818	pgcc*)				# Portland Group C compiler
9819	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9820	  tmp_addflag=' $pic_flag'
9821	  ;;
9822	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9823	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9824	  tmp_addflag=' $pic_flag -Mnomain' ;;
9825	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
9826	  tmp_addflag=' -i_dynamic' ;;
9827	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9828	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9829	ifc* | ifort*)			# Intel Fortran compiler
9830	  tmp_addflag=' -nofor_main' ;;
9831	esac
9832	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9833
9834	if test $supports_anon_versioning = yes; then
9835	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9836  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9837  $echo "local: *; };" >> $output_objdir/$libname.ver~
9838	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9839	fi
9840      else
9841	ld_shlibs=no
9842      fi
9843      ;;
9844
9845    netbsd*)
9846      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9847	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9848	wlarc=
9849      else
9850	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852      fi
9853      ;;
9854
9855    solaris* | sysv5*)
9856      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9857	ld_shlibs=no
9858	cat <<EOF 1>&2
9859
9860*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9861*** create shared libraries on Solaris systems.  Therefore, libtool
9862*** is disabling shared libraries support.  We urge you to upgrade GNU
9863*** binutils to release 2.9.1 or newer.  Another option is to modify
9864*** your PATH or compiler configuration so that the native linker is
9865*** used, and then restart.
9866
9867EOF
9868      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9869	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9871      else
9872	ld_shlibs=no
9873      fi
9874      ;;
9875
9876    sunos4*)
9877      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9878      wlarc=
9879      hardcode_direct=yes
9880      hardcode_shlibpath_var=no
9881      ;;
9882
9883    *)
9884      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9885	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9887      else
9888	ld_shlibs=no
9889      fi
9890      ;;
9891    esac
9892
9893    if test "$ld_shlibs" = no; then
9894      runpath_var=
9895      hardcode_libdir_flag_spec=
9896      export_dynamic_flag_spec=
9897      whole_archive_flag_spec=
9898    fi
9899  else
9900    # PORTME fill in a description of your system's linker (not GNU ld)
9901    case $host_os in
9902    aix3*)
9903      allow_undefined_flag=unsupported
9904      always_export_symbols=yes
9905      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'
9906      # Note: this linker hardcodes the directories in LIBPATH if there
9907      # are no directories specified by -L.
9908      hardcode_minus_L=yes
9909      if test "$GCC" = yes && test -z "$link_static_flag"; then
9910	# Neither direct hardcoding nor static linking is supported with a
9911	# broken collect2.
9912	hardcode_direct=unsupported
9913      fi
9914      ;;
9915
9916    aix4* | aix5*)
9917      if test "$host_cpu" = ia64; then
9918	# On IA64, the linker does run time linking by default, so we don't
9919	# have to do anything special.
9920	aix_use_runtimelinking=no
9921	exp_sym_flag='-Bexport'
9922	no_entry_flag=""
9923      else
9924	# If we're using GNU nm, then we don't want the "-C" option.
9925	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9926	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9927	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9928	else
9929	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9930	fi
9931	aix_use_runtimelinking=no
9932
9933	# Test if we are trying to use run time linking or normal
9934	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9935	# need to do runtime linking.
9936	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9937	  for ld_flag in $LDFLAGS; do
9938  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9939  	    aix_use_runtimelinking=yes
9940  	    break
9941  	  fi
9942	  done
9943	esac
9944
9945	exp_sym_flag='-bexport'
9946	no_entry_flag='-bnoentry'
9947      fi
9948
9949      # When large executables or shared objects are built, AIX ld can
9950      # have problems creating the table of contents.  If linking a library
9951      # or program results in "error TOC overflow" add -mminimal-toc to
9952      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9953      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9954
9955      archive_cmds=''
9956      hardcode_direct=yes
9957      hardcode_libdir_separator=':'
9958      link_all_deplibs=yes
9959
9960      if test "$GCC" = yes; then
9961	case $host_os in aix4.[012]|aix4.[012].*)
9962	# We only want to do this on AIX 4.2 and lower, the check
9963	# below for broken collect2 doesn't work under 4.3+
9964	  collect2name=`${CC} -print-prog-name=collect2`
9965	  if test -f "$collect2name" && \
9966  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9967	  then
9968  	  # We have reworked collect2
9969  	  hardcode_direct=yes
9970	  else
9971  	  # We have old collect2
9972  	  hardcode_direct=unsupported
9973  	  # It fails to find uninstalled libraries when the uninstalled
9974  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9975  	  # to unsupported forces relinking
9976  	  hardcode_minus_L=yes
9977  	  hardcode_libdir_flag_spec='-L$libdir'
9978  	  hardcode_libdir_separator=
9979	  fi
9980	esac
9981	shared_flag='-shared'
9982	if test "$aix_use_runtimelinking" = yes; then
9983	  shared_flag="$shared_flag "'${wl}-G'
9984	fi
9985      else
9986	# not using gcc
9987	if test "$host_cpu" = ia64; then
9988  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9989  	# chokes on -Wl,-G. The following line is correct:
9990	  shared_flag='-G'
9991	else
9992  	if test "$aix_use_runtimelinking" = yes; then
9993	    shared_flag='${wl}-G'
9994	  else
9995	    shared_flag='${wl}-bM:SRE'
9996  	fi
9997	fi
9998      fi
9999
10000      # It seems that -bexpall does not export symbols beginning with
10001      # underscore (_), so it is better to generate a list of symbols to export.
10002      always_export_symbols=yes
10003      if test "$aix_use_runtimelinking" = yes; then
10004	# Warning - without using the other runtime loading flags (-brtl),
10005	# -berok will link without error, but may produce a broken library.
10006	allow_undefined_flag='-berok'
10007       # Determine the default libpath from the value encoded in an empty executable.
10008       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009/* end confdefs.h.  */
10010
10011int
10012main ()
10013{
10014
10015  ;
10016  return 0;
10017}
10018_ACEOF
10019if ac_fn_c_try_link "$LINENO"; then :
10020
10021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10022}'`
10023# Check for a 64-bit object if we didn't find anything.
10024if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10025}'`; fi
10026fi
10027rm -f core conftest.err conftest.$ac_objext \
10028    conftest$ac_exeext conftest.$ac_ext
10029if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10030
10031       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10032	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"
10033       else
10034	if test "$host_cpu" = ia64; then
10035	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10036	  allow_undefined_flag="-z nodefs"
10037	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10038	else
10039	 # Determine the default libpath from the value encoded in an empty executable.
10040	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h.  */
10042
10043int
10044main ()
10045{
10046
10047  ;
10048  return 0;
10049}
10050_ACEOF
10051if ac_fn_c_try_link "$LINENO"; then :
10052
10053aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10054}'`
10055# Check for a 64-bit object if we didn't find anything.
10056if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10057}'`; fi
10058fi
10059rm -f core conftest.err conftest.$ac_objext \
10060    conftest$ac_exeext conftest.$ac_ext
10061if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10062
10063	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10064	  # Warning - without using the other run time loading flags,
10065	  # -berok will link without error, but may produce a broken library.
10066	  no_undefined_flag=' ${wl}-bernotok'
10067	  allow_undefined_flag=' ${wl}-berok'
10068	  # -bexpall does not export symbols beginning with underscore (_)
10069	  always_export_symbols=yes
10070	  # Exported symbols can be pulled into shared objects from archives
10071	  whole_archive_flag_spec=' '
10072	  archive_cmds_need_lc=yes
10073	  # This is similar to how AIX traditionally builds its shared libraries.
10074	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10075	fi
10076      fi
10077      ;;
10078
10079    amigaos*)
10080      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)'
10081      hardcode_libdir_flag_spec='-L$libdir'
10082      hardcode_minus_L=yes
10083      # see comment about different semantics on the GNU ld section
10084      ld_shlibs=no
10085      ;;
10086
10087    bsdi[45]*)
10088      export_dynamic_flag_spec=-rdynamic
10089      ;;
10090
10091    cygwin* | mingw* | pw32*)
10092      # When not using gcc, we currently assume that we are using
10093      # Microsoft Visual C++.
10094      # hardcode_libdir_flag_spec is actually meaningless, as there is
10095      # no search path for DLLs.
10096      hardcode_libdir_flag_spec=' '
10097      allow_undefined_flag=unsupported
10098      # Tell ltmain to make .lib files, not .a files.
10099      libext=lib
10100      # Tell ltmain to make .dll files, not .so files.
10101      shrext_cmds=".dll"
10102      # FIXME: Setting linknames here is a bad hack.
10103      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10104      # The linker will automatically build a .lib file if we build a DLL.
10105      old_archive_From_new_cmds='true'
10106      # FIXME: Should let the user specify the lib program.
10107      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10108      fix_srcfile_path='`cygpath -w "$srcfile"`'
10109      enable_shared_with_static_runtimes=yes
10110      ;;
10111
10112    darwin* | rhapsody*)
10113      case $host_os in
10114        rhapsody* | darwin1.[012])
10115         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10116         ;;
10117       *) # Darwin 1.3 on
10118         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10119           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10120         else
10121           case ${MACOSX_DEPLOYMENT_TARGET} in
10122             10.[012])
10123               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10124               ;;
10125             10.*)
10126               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10127               ;;
10128           esac
10129         fi
10130         ;;
10131      esac
10132      archive_cmds_need_lc=no
10133      hardcode_direct=no
10134      hardcode_automatic=yes
10135      hardcode_shlibpath_var=unsupported
10136      whole_archive_flag_spec=''
10137      link_all_deplibs=yes
10138    if test "$GCC" = yes ; then
10139    	output_verbose_link_cmd='echo'
10140        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10141      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10142      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10143      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10144      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10145    else
10146      case $cc_basename in
10147        xlc*)
10148         output_verbose_link_cmd='echo'
10149         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10150         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10151          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10152         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10153          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10154          ;;
10155       *)
10156         ld_shlibs=no
10157          ;;
10158      esac
10159    fi
10160      ;;
10161
10162    dgux*)
10163      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164      hardcode_libdir_flag_spec='-L$libdir'
10165      hardcode_shlibpath_var=no
10166      ;;
10167
10168    freebsd1*)
10169      ld_shlibs=no
10170      ;;
10171
10172    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10173    # support.  Future versions do this automatically, but an explicit c++rt0.o
10174    # does not break anything, and helps significantly (at the cost of a little
10175    # extra space).
10176    freebsd2.2*)
10177      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10178      hardcode_libdir_flag_spec='-R$libdir'
10179      hardcode_direct=yes
10180      hardcode_shlibpath_var=no
10181      ;;
10182
10183    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10184    freebsd2*)
10185      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10186      hardcode_direct=yes
10187      hardcode_minus_L=yes
10188      hardcode_shlibpath_var=no
10189      ;;
10190
10191    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10192    freebsd* | kfreebsd*-gnu | dragonfly*)
10193      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10194      hardcode_libdir_flag_spec='-R$libdir'
10195      hardcode_direct=yes
10196      hardcode_shlibpath_var=no
10197      ;;
10198
10199    hpux9*)
10200      if test "$GCC" = yes; then
10201	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10202      else
10203	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'
10204      fi
10205      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10206      hardcode_libdir_separator=:
10207      hardcode_direct=yes
10208
10209      # hardcode_minus_L: Not really in the search PATH,
10210      # but as the default location of the library.
10211      hardcode_minus_L=yes
10212      export_dynamic_flag_spec='${wl}-E'
10213      ;;
10214
10215    hpux10* | hpux11*)
10216      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10217	case $host_cpu in
10218	hppa*64*|ia64*)
10219	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10220	  ;;
10221	*)
10222	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10223	  ;;
10224	esac
10225      else
10226	case $host_cpu in
10227	hppa*64*|ia64*)
10228	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10229	  ;;
10230	*)
10231	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10232	  ;;
10233	esac
10234      fi
10235      if test "$with_gnu_ld" = no; then
10236	case $host_cpu in
10237	hppa*64*)
10238	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10239	  hardcode_libdir_flag_spec_ld='+b $libdir'
10240	  hardcode_libdir_separator=:
10241	  hardcode_direct=no
10242	  hardcode_shlibpath_var=no
10243	  ;;
10244	ia64*)
10245	  hardcode_libdir_flag_spec='-L$libdir'
10246	  hardcode_direct=no
10247	  hardcode_shlibpath_var=no
10248
10249	  # hardcode_minus_L: Not really in the search PATH,
10250	  # but as the default location of the library.
10251	  hardcode_minus_L=yes
10252	  ;;
10253	*)
10254	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10255	  hardcode_libdir_separator=:
10256	  hardcode_direct=yes
10257	  export_dynamic_flag_spec='${wl}-E'
10258
10259	  # hardcode_minus_L: Not really in the search PATH,
10260	  # but as the default location of the library.
10261	  hardcode_minus_L=yes
10262	  ;;
10263	esac
10264      fi
10265      ;;
10266
10267    irix5* | irix6* | nonstopux*)
10268      if test "$GCC" = yes; then
10269	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'
10270      else
10271	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'
10272	hardcode_libdir_flag_spec_ld='-rpath $libdir'
10273      fi
10274      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10275      hardcode_libdir_separator=:
10276      link_all_deplibs=yes
10277      ;;
10278
10279    netbsd*)
10280      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10281	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10282      else
10283	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10284      fi
10285      hardcode_libdir_flag_spec='-R$libdir'
10286      hardcode_direct=yes
10287      hardcode_shlibpath_var=no
10288      ;;
10289
10290    newsos6)
10291      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292      hardcode_direct=yes
10293      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10294      hardcode_libdir_separator=:
10295      hardcode_shlibpath_var=no
10296      ;;
10297
10298    openbsd*)
10299      hardcode_direct=yes
10300      hardcode_shlibpath_var=no
10301      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10302	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10303	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10304	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10305	export_dynamic_flag_spec='${wl}-E'
10306      else
10307       case $host_os in
10308	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10309	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10310	   hardcode_libdir_flag_spec='-R$libdir'
10311	   ;;
10312	 *)
10313	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10314	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10315	   ;;
10316       esac
10317      fi
10318      ;;
10319
10320    os2*)
10321      hardcode_libdir_flag_spec='-L$libdir'
10322      hardcode_minus_L=yes
10323      allow_undefined_flag=unsupported
10324      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'
10325      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10326      ;;
10327
10328    osf3*)
10329      if test "$GCC" = yes; then
10330	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10331	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'
10332      else
10333	allow_undefined_flag=' -expect_unresolved \*'
10334	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'
10335      fi
10336      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10337      hardcode_libdir_separator=:
10338      ;;
10339
10340    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10341      if test "$GCC" = yes; then
10342	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10343	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'
10344	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10345      else
10346	allow_undefined_flag=' -expect_unresolved \*'
10347	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'
10348	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10349	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10350
10351	# Both c and cxx compiler support -rpath directly
10352	hardcode_libdir_flag_spec='-rpath $libdir'
10353      fi
10354      hardcode_libdir_separator=:
10355      ;;
10356
10357    sco3.2v5*)
10358      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10359      hardcode_shlibpath_var=no
10360      export_dynamic_flag_spec='${wl}-Bexport'
10361      runpath_var=LD_RUN_PATH
10362      hardcode_runpath_var=yes
10363      ;;
10364
10365    solaris*)
10366      no_undefined_flag=' -z text'
10367      if test "$GCC" = yes; then
10368	wlarc='${wl}'
10369	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10370	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10371	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10372      else
10373	wlarc=''
10374	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10376  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10377      fi
10378      hardcode_libdir_flag_spec='-R$libdir'
10379      hardcode_shlibpath_var=no
10380      case $host_os in
10381      solaris2.[0-5] | solaris2.[0-5].*) ;;
10382      *)
10383 	# The compiler driver will combine linker options so we
10384 	# cannot just pass the convience library names through
10385 	# without $wl, iff we do not link with $LD.
10386 	# Luckily, gcc supports the same syntax we need for Sun Studio.
10387 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10388 	case $wlarc in
10389 	'')
10390 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10391 	*)
10392 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10393 	esac ;;
10394      esac
10395      link_all_deplibs=yes
10396      ;;
10397
10398    sunos4*)
10399      if test "x$host_vendor" = xsequent; then
10400	# Use $CC to link under sequent, because it throws in some extra .o
10401	# files that make .init and .fini sections work.
10402	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10403      else
10404	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10405      fi
10406      hardcode_libdir_flag_spec='-L$libdir'
10407      hardcode_direct=yes
10408      hardcode_minus_L=yes
10409      hardcode_shlibpath_var=no
10410      ;;
10411
10412    sysv4)
10413      case $host_vendor in
10414	sni)
10415	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10416	  hardcode_direct=yes # is this really true???
10417	;;
10418	siemens)
10419	  ## LD is ld it makes a PLAMLIB
10420	  ## CC just makes a GrossModule.
10421	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10422	  reload_cmds='$CC -r -o $output$reload_objs'
10423	  hardcode_direct=no
10424        ;;
10425	motorola)
10426	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10428	;;
10429      esac
10430      runpath_var='LD_RUN_PATH'
10431      hardcode_shlibpath_var=no
10432      ;;
10433
10434    sysv4.3*)
10435      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10436      hardcode_shlibpath_var=no
10437      export_dynamic_flag_spec='-Bexport'
10438      ;;
10439
10440    sysv4*MP*)
10441      if test -d /usr/nec; then
10442	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10443	hardcode_shlibpath_var=no
10444	runpath_var=LD_RUN_PATH
10445	hardcode_runpath_var=yes
10446	ld_shlibs=yes
10447      fi
10448      ;;
10449
10450    sysv4.2uw2*)
10451      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10452      hardcode_direct=yes
10453      hardcode_minus_L=no
10454      hardcode_shlibpath_var=no
10455      hardcode_runpath_var=yes
10456      runpath_var=LD_RUN_PATH
10457      ;;
10458
10459   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
10460      no_undefined_flag='${wl}-z ${wl}text'
10461      if test "$GCC" = yes; then
10462	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10463      else
10464	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10465      fi
10466      runpath_var='LD_RUN_PATH'
10467      hardcode_shlibpath_var=no
10468      ;;
10469
10470    sysv5*)
10471      no_undefined_flag=' -z text'
10472      # $CC -shared without GNU ld will not create a library from C++
10473      # object files and a static libstdc++, better avoid it by now
10474      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10475      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10476  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10477      hardcode_libdir_flag_spec=
10478      hardcode_shlibpath_var=no
10479      runpath_var='LD_RUN_PATH'
10480      ;;
10481
10482    uts4*)
10483      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484      hardcode_libdir_flag_spec='-L$libdir'
10485      hardcode_shlibpath_var=no
10486      ;;
10487
10488    *)
10489      ld_shlibs=no
10490      ;;
10491    esac
10492  fi
10493
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10495$as_echo "$ld_shlibs" >&6; }
10496test "$ld_shlibs" = no && can_build_shared=no
10497
10498variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10499if test "$GCC" = yes; then
10500  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10501fi
10502
10503#
10504# Do we need to explicitly link libc?
10505#
10506case "x$archive_cmds_need_lc" in
10507x|xyes)
10508  # Assume -lc should be added
10509  archive_cmds_need_lc=yes
10510
10511  if test "$enable_shared" = yes && test "$GCC" = yes; then
10512    case $archive_cmds in
10513    *'~'*)
10514      # FIXME: we may have to deal with multi-command sequences.
10515      ;;
10516    '$CC '*)
10517      # Test whether the compiler implicitly links with -lc since on some
10518      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10519      # to ld, don't add -lc before -lgcc.
10520      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10521$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10522      $rm conftest*
10523      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10524
10525      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10526  (eval $ac_compile) 2>&5
10527  ac_status=$?
10528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10529  test $ac_status = 0; } 2>conftest.err; then
10530        soname=conftest
10531        lib=conftest
10532        libobjs=conftest.$ac_objext
10533        deplibs=
10534        wl=$lt_prog_compiler_wl
10535        compiler_flags=-v
10536        linker_flags=-v
10537        verstring=
10538        output_objdir=.
10539        libname=conftest
10540        lt_save_allow_undefined_flag=$allow_undefined_flag
10541        allow_undefined_flag=
10542        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10543  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10544  ac_status=$?
10545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10546  test $ac_status = 0; }
10547        then
10548	  archive_cmds_need_lc=no
10549        else
10550	  archive_cmds_need_lc=yes
10551        fi
10552        allow_undefined_flag=$lt_save_allow_undefined_flag
10553      else
10554        cat conftest.err 1>&5
10555      fi
10556      $rm conftest*
10557      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10558$as_echo "$archive_cmds_need_lc" >&6; }
10559      ;;
10560    esac
10561  fi
10562  ;;
10563esac
10564
10565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10566$as_echo_n "checking dynamic linker characteristics... " >&6; }
10567library_names_spec=
10568libname_spec='lib$name'
10569soname_spec=
10570shrext_cmds=".so"
10571postinstall_cmds=
10572postuninstall_cmds=
10573finish_cmds=
10574finish_eval=
10575shlibpath_var=
10576shlibpath_overrides_runpath=unknown
10577version_type=none
10578dynamic_linker="$host_os ld.so"
10579sys_lib_dlsearch_path_spec="/lib /usr/lib"
10580if test "$GCC" = yes; then
10581  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10582  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10583    # if the path contains ";" then we assume it to be the separator
10584    # otherwise default to the standard path separator (i.e. ":") - it is
10585    # assumed that no part of a normal pathname contains ";" but that should
10586    # okay in the real world where ";" in dirpaths is itself problematic.
10587    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10588  else
10589    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10590  fi
10591else
10592  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10593fi
10594need_lib_prefix=unknown
10595hardcode_into_libs=no
10596
10597# when you set need_version to no, make sure it does not cause -set_version
10598# flags to be left without arguments
10599need_version=unknown
10600
10601case $host_os in
10602aix3*)
10603  version_type=linux
10604  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10605  shlibpath_var=LIBPATH
10606
10607  # AIX 3 has no versioning support, so we append a major version to the name.
10608  soname_spec='${libname}${release}${shared_ext}$major'
10609  ;;
10610
10611aix4* | aix5*)
10612  version_type=linux
10613  need_lib_prefix=no
10614  need_version=no
10615  hardcode_into_libs=yes
10616  if test "$host_cpu" = ia64; then
10617    # AIX 5 supports IA64
10618    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10619    shlibpath_var=LD_LIBRARY_PATH
10620  else
10621    # With GCC up to 2.95.x, collect2 would create an import file
10622    # for dependence libraries.  The import file would start with
10623    # the line `#! .'.  This would cause the generated library to
10624    # depend on `.', always an invalid library.  This was fixed in
10625    # development snapshots of GCC prior to 3.0.
10626    case $host_os in
10627      aix4 | aix4.[01] | aix4.[01].*)
10628      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10629	   echo ' yes '
10630	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10631	:
10632      else
10633	can_build_shared=no
10634      fi
10635      ;;
10636    esac
10637    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10638    # soname into executable. Probably we can add versioning support to
10639    # collect2, so additional links can be useful in future.
10640    if test "$aix_use_runtimelinking" = yes; then
10641      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10642      # instead of lib<name>.a to let people know that these are not
10643      # typical AIX shared libraries.
10644      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645    else
10646      # We preserve .a as extension for shared libraries through AIX4.2
10647      # and later when we are not doing run time linking.
10648      library_names_spec='${libname}${release}.a $libname.a'
10649      soname_spec='${libname}${release}${shared_ext}$major'
10650    fi
10651    shlibpath_var=LIBPATH
10652  fi
10653  ;;
10654
10655amigaos*)
10656  library_names_spec='$libname.ixlibrary $libname.a'
10657  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10658  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'
10659  ;;
10660
10661beos*)
10662  library_names_spec='${libname}${shared_ext}'
10663  dynamic_linker="$host_os ld.so"
10664  shlibpath_var=LIBRARY_PATH
10665  ;;
10666
10667bsdi[45]*)
10668  version_type=linux
10669  need_version=no
10670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671  soname_spec='${libname}${release}${shared_ext}$major'
10672  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10673  shlibpath_var=LD_LIBRARY_PATH
10674  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10675  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10676  # the default ld.so.conf also contains /usr/contrib/lib and
10677  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10678  # libtool to hard-code these into programs
10679  ;;
10680
10681cygwin* | mingw* | pw32*)
10682  version_type=windows
10683  shrext_cmds=".dll"
10684  need_version=no
10685  need_lib_prefix=no
10686
10687  case $GCC,$host_os in
10688  yes,cygwin* | yes,mingw* | yes,pw32*)
10689    library_names_spec='$libname.dll.a'
10690    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10691    postinstall_cmds='base_file=`basename \${file}`~
10692      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10693      dldir=$destdir/`dirname \$dlpath`~
10694      test -d \$dldir || mkdir -p \$dldir~
10695      $install_prog $dir/$dlname \$dldir/$dlname~
10696      chmod a+x \$dldir/$dlname'
10697    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10698      dlpath=$dir/\$dldll~
10699       $rm \$dlpath'
10700    shlibpath_overrides_runpath=yes
10701
10702    case $host_os in
10703    cygwin*)
10704      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10705      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10706      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10707      ;;
10708    mingw*)
10709      # MinGW DLLs use traditional 'lib' prefix
10710      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10711      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10712      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10713        # It is most probably a Windows format PATH printed by
10714        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10715        # path with ; separators, and with drive letters. We can handle the
10716        # drive letters (cygwin fileutils understands them), so leave them,
10717        # especially as we might pass files found there to a mingw objdump,
10718        # which wouldn't understand a cygwinified path. Ahh.
10719        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10720      else
10721        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10722      fi
10723      ;;
10724    pw32*)
10725      # pw32 DLLs use 'pw' prefix rather than 'lib'
10726      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10727      ;;
10728    esac
10729    ;;
10730
10731  *)
10732    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10733    ;;
10734  esac
10735  dynamic_linker='Win32 ld.exe'
10736  # FIXME: first we should search . and the directory the executable is in
10737  shlibpath_var=PATH
10738  ;;
10739
10740darwin* | rhapsody*)
10741  dynamic_linker="$host_os dyld"
10742  version_type=darwin
10743  need_lib_prefix=no
10744  need_version=no
10745  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10746  soname_spec='${libname}${release}${major}$shared_ext'
10747  shlibpath_overrides_runpath=yes
10748  shlibpath_var=DYLD_LIBRARY_PATH
10749  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10750  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10751  if test "$GCC" = yes; then
10752    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10753  else
10754    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10755  fi
10756  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10757  ;;
10758
10759dgux*)
10760  version_type=linux
10761  need_lib_prefix=no
10762  need_version=no
10763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10764  soname_spec='${libname}${release}${shared_ext}$major'
10765  shlibpath_var=LD_LIBRARY_PATH
10766  ;;
10767
10768freebsd1*)
10769  dynamic_linker=no
10770  ;;
10771
10772kfreebsd*-gnu)
10773  version_type=linux
10774  need_lib_prefix=no
10775  need_version=no
10776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10777  soname_spec='${libname}${release}${shared_ext}$major'
10778  shlibpath_var=LD_LIBRARY_PATH
10779  shlibpath_overrides_runpath=no
10780  hardcode_into_libs=yes
10781  dynamic_linker='GNU ld.so'
10782  ;;
10783
10784freebsd* | dragonfly*)
10785  # DragonFly does not have aout.  When/if they implement a new
10786  # versioning mechanism, adjust this.
10787  if test -x /usr/bin/objformat; then
10788    objformat=`/usr/bin/objformat`
10789  else
10790    case $host_os in
10791    freebsd[123]*) objformat=aout ;;
10792    *) objformat=elf ;;
10793    esac
10794  fi
10795  version_type=freebsd-$objformat
10796  case $version_type in
10797    freebsd-elf*)
10798      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10799      need_version=no
10800      need_lib_prefix=no
10801      ;;
10802    freebsd-*)
10803      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10804      need_version=yes
10805      ;;
10806  esac
10807  shlibpath_var=LD_LIBRARY_PATH
10808  case $host_os in
10809  freebsd2*)
10810    shlibpath_overrides_runpath=yes
10811    ;;
10812  freebsd3.[01]* | freebsdelf3.[01]*)
10813    shlibpath_overrides_runpath=yes
10814    hardcode_into_libs=yes
10815    ;;
10816  *) # from 3.2 on
10817    shlibpath_overrides_runpath=no
10818    hardcode_into_libs=yes
10819    ;;
10820  esac
10821  ;;
10822
10823gnu*)
10824  version_type=linux
10825  need_lib_prefix=no
10826  need_version=no
10827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828  soname_spec='${libname}${release}${shared_ext}$major'
10829  shlibpath_var=LD_LIBRARY_PATH
10830  hardcode_into_libs=yes
10831  ;;
10832
10833hpux9* | hpux10* | hpux11*)
10834  # Give a soname corresponding to the major version so that dld.sl refuses to
10835  # link against other versions.
10836  version_type=sunos
10837  need_lib_prefix=no
10838  need_version=no
10839  case $host_cpu in
10840  ia64*)
10841    shrext_cmds='.so'
10842    hardcode_into_libs=yes
10843    dynamic_linker="$host_os dld.so"
10844    shlibpath_var=LD_LIBRARY_PATH
10845    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10846    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847    soname_spec='${libname}${release}${shared_ext}$major'
10848    if test "X$HPUX_IA64_MODE" = X32; then
10849      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10850    else
10851      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10852    fi
10853    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10854    ;;
10855   hppa*64*)
10856     shrext_cmds='.sl'
10857     hardcode_into_libs=yes
10858     dynamic_linker="$host_os dld.sl"
10859     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10860     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862     soname_spec='${libname}${release}${shared_ext}$major'
10863     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10864     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10865     ;;
10866   *)
10867    shrext_cmds='.sl'
10868    dynamic_linker="$host_os dld.sl"
10869    shlibpath_var=SHLIB_PATH
10870    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10871    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872    soname_spec='${libname}${release}${shared_ext}$major'
10873    ;;
10874  esac
10875  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10876  postinstall_cmds='chmod 555 $lib'
10877  ;;
10878
10879irix5* | irix6* | nonstopux*)
10880  case $host_os in
10881    nonstopux*) version_type=nonstopux ;;
10882    *)
10883	if test "$lt_cv_prog_gnu_ld" = yes; then
10884		version_type=linux
10885	else
10886		version_type=irix
10887	fi ;;
10888  esac
10889  need_lib_prefix=no
10890  need_version=no
10891  soname_spec='${libname}${release}${shared_ext}$major'
10892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10893  case $host_os in
10894  irix5* | nonstopux*)
10895    libsuff= shlibsuff=
10896    ;;
10897  *)
10898    case $LD in # libtool.m4 will add one of these switches to LD
10899    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10900      libsuff= shlibsuff= libmagic=32-bit;;
10901    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10902      libsuff=32 shlibsuff=N32 libmagic=N32;;
10903    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10904      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10905    *) libsuff= shlibsuff= libmagic=never-match;;
10906    esac
10907    ;;
10908  esac
10909  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10910  shlibpath_overrides_runpath=no
10911  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10912  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10913  hardcode_into_libs=yes
10914  ;;
10915
10916# No shared lib support for Linux oldld, aout, or coff.
10917linux*oldld* | linux*aout* | linux*coff*)
10918  dynamic_linker=no
10919  ;;
10920
10921# This must be Linux ELF.
10922linux*)
10923  version_type=linux
10924  need_lib_prefix=no
10925  need_version=no
10926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927  soname_spec='${libname}${release}${shared_ext}$major'
10928  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10929  shlibpath_var=LD_LIBRARY_PATH
10930  shlibpath_overrides_runpath=no
10931  # This implies no fast_install, which is unacceptable.
10932  # Some rework will be needed to allow for fast_install
10933  # before this can be enabled.
10934  hardcode_into_libs=yes
10935
10936  # Append ld.so.conf contents to the search path
10937  if test -f /etc/ld.so.conf; then
10938    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10939    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10940  fi
10941
10942  # We used to test for /lib/ld.so.1 and disable shared libraries on
10943  # powerpc, because MkLinux only supported shared libraries with the
10944  # GNU dynamic linker.  Since this was broken with cross compilers,
10945  # most powerpc-linux boxes support dynamic linking these days and
10946  # people can always --disable-shared, the test was removed, and we
10947  # assume the GNU/Linux dynamic linker is in use.
10948  dynamic_linker='GNU/Linux ld.so'
10949  ;;
10950
10951knetbsd*-gnu)
10952  version_type=linux
10953  need_lib_prefix=no
10954  need_version=no
10955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10956  soname_spec='${libname}${release}${shared_ext}$major'
10957  shlibpath_var=LD_LIBRARY_PATH
10958  shlibpath_overrides_runpath=no
10959  hardcode_into_libs=yes
10960  dynamic_linker='GNU ld.so'
10961  ;;
10962
10963netbsd*)
10964  version_type=sunos
10965  need_lib_prefix=no
10966  need_version=no
10967  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10968    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10969    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10970    dynamic_linker='NetBSD (a.out) ld.so'
10971  else
10972    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10973    soname_spec='${libname}${release}${shared_ext}$major'
10974    dynamic_linker='NetBSD ld.elf_so'
10975  fi
10976  shlibpath_var=LD_LIBRARY_PATH
10977  shlibpath_overrides_runpath=yes
10978  hardcode_into_libs=yes
10979  ;;
10980
10981newsos6)
10982  version_type=linux
10983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984  shlibpath_var=LD_LIBRARY_PATH
10985  shlibpath_overrides_runpath=yes
10986  ;;
10987
10988nto-qnx*)
10989  version_type=linux
10990  need_lib_prefix=no
10991  need_version=no
10992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10993  soname_spec='${libname}${release}${shared_ext}$major'
10994  shlibpath_var=LD_LIBRARY_PATH
10995  shlibpath_overrides_runpath=yes
10996  ;;
10997
10998openbsd*)
10999  version_type=sunos
11000  need_lib_prefix=no
11001  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11002  case $host_os in
11003    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11004    *)                         need_version=no  ;;
11005  esac
11006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11007  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11008  shlibpath_var=LD_LIBRARY_PATH
11009  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11010    case $host_os in
11011      openbsd2.[89] | openbsd2.[89].*)
11012	shlibpath_overrides_runpath=no
11013	;;
11014      *)
11015	shlibpath_overrides_runpath=yes
11016	;;
11017      esac
11018  else
11019    shlibpath_overrides_runpath=yes
11020  fi
11021  ;;
11022
11023os2*)
11024  libname_spec='$name'
11025  shrext_cmds=".dll"
11026  need_lib_prefix=no
11027  library_names_spec='$libname${shared_ext} $libname.a'
11028  dynamic_linker='OS/2 ld.exe'
11029  shlibpath_var=LIBPATH
11030  ;;
11031
11032osf3* | osf4* | osf5*)
11033  version_type=osf
11034  need_lib_prefix=no
11035  need_version=no
11036  soname_spec='${libname}${release}${shared_ext}$major'
11037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038  shlibpath_var=LD_LIBRARY_PATH
11039  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11040  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11041  ;;
11042
11043sco3.2v5*)
11044  version_type=osf
11045  soname_spec='${libname}${release}${shared_ext}$major'
11046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047  shlibpath_var=LD_LIBRARY_PATH
11048  ;;
11049
11050solaris*)
11051  version_type=linux
11052  need_lib_prefix=no
11053  need_version=no
11054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055  soname_spec='${libname}${release}${shared_ext}$major'
11056  shlibpath_var=LD_LIBRARY_PATH
11057  shlibpath_overrides_runpath=yes
11058  hardcode_into_libs=yes
11059  # ldd complains unless libraries are executable
11060  postinstall_cmds='chmod +x $lib'
11061  ;;
11062
11063sunos4*)
11064  version_type=sunos
11065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11066  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11067  shlibpath_var=LD_LIBRARY_PATH
11068  shlibpath_overrides_runpath=yes
11069  if test "$with_gnu_ld" = yes; then
11070    need_lib_prefix=no
11071  fi
11072  need_version=yes
11073  ;;
11074
11075sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11076  version_type=linux
11077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078  soname_spec='${libname}${release}${shared_ext}$major'
11079  shlibpath_var=LD_LIBRARY_PATH
11080  case $host_vendor in
11081    sni)
11082      shlibpath_overrides_runpath=no
11083      need_lib_prefix=no
11084      export_dynamic_flag_spec='${wl}-Blargedynsym'
11085      runpath_var=LD_RUN_PATH
11086      ;;
11087    siemens)
11088      need_lib_prefix=no
11089      ;;
11090    motorola)
11091      need_lib_prefix=no
11092      need_version=no
11093      shlibpath_overrides_runpath=no
11094      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11095      ;;
11096  esac
11097  ;;
11098
11099sysv4*MP*)
11100  if test -d /usr/nec ;then
11101    version_type=linux
11102    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11103    soname_spec='$libname${shared_ext}.$major'
11104    shlibpath_var=LD_LIBRARY_PATH
11105  fi
11106  ;;
11107
11108uts4*)
11109  version_type=linux
11110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111  soname_spec='${libname}${release}${shared_ext}$major'
11112  shlibpath_var=LD_LIBRARY_PATH
11113  ;;
11114
11115*)
11116  dynamic_linker=no
11117  ;;
11118esac
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11120$as_echo "$dynamic_linker" >&6; }
11121test "$dynamic_linker" = no && can_build_shared=no
11122
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11124$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11125hardcode_action=
11126if test -n "$hardcode_libdir_flag_spec" || \
11127   test -n "$runpath_var" || \
11128   test "X$hardcode_automatic" = "Xyes" ; then
11129
11130  # We can hardcode non-existant directories.
11131  if test "$hardcode_direct" != no &&
11132     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11133     # have to relink, otherwise we might link with an installed library
11134     # when we should be linking with a yet-to-be-installed one
11135     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11136     test "$hardcode_minus_L" != no; then
11137    # Linking always hardcodes the temporary library directory.
11138    hardcode_action=relink
11139  else
11140    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11141    hardcode_action=immediate
11142  fi
11143else
11144  # We cannot hardcode anything, or else we can only hardcode existing
11145  # directories.
11146  hardcode_action=unsupported
11147fi
11148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11149$as_echo "$hardcode_action" >&6; }
11150
11151if test "$hardcode_action" = relink; then
11152  # Fast installation is not supported
11153  enable_fast_install=no
11154elif test "$shlibpath_overrides_runpath" = yes ||
11155     test "$enable_shared" = no; then
11156  # Fast installation is not necessary
11157  enable_fast_install=needless
11158fi
11159
11160striplib=
11161old_striplib=
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11163$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11164if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11165  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11166  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168$as_echo "yes" >&6; }
11169else
11170# FIXME - insert some real tests, host_os isn't really good enough
11171  case $host_os in
11172   darwin*)
11173       if test -n "$STRIP" ; then
11174         striplib="$STRIP -x"
11175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176$as_echo "yes" >&6; }
11177       else
11178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179$as_echo "no" >&6; }
11180fi
11181       ;;
11182   *)
11183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184$as_echo "no" >&6; }
11185    ;;
11186  esac
11187fi
11188
11189if test "x$enable_dlopen" != xyes; then
11190  enable_dlopen=unknown
11191  enable_dlopen_self=unknown
11192  enable_dlopen_self_static=unknown
11193else
11194  lt_cv_dlopen=no
11195  lt_cv_dlopen_libs=
11196
11197  case $host_os in
11198  beos*)
11199    lt_cv_dlopen="load_add_on"
11200    lt_cv_dlopen_libs=
11201    lt_cv_dlopen_self=yes
11202    ;;
11203
11204  mingw* | pw32*)
11205    lt_cv_dlopen="LoadLibrary"
11206    lt_cv_dlopen_libs=
11207   ;;
11208
11209  cygwin*)
11210    lt_cv_dlopen="dlopen"
11211    lt_cv_dlopen_libs=
11212   ;;
11213
11214  darwin*)
11215  # if libdl is installed we need to link against it
11216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11217$as_echo_n "checking for dlopen in -ldl... " >&6; }
11218if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11219  $as_echo_n "(cached) " >&6
11220else
11221  ac_check_lib_save_LIBS=$LIBS
11222LIBS="-ldl  $LIBS"
11223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224/* end confdefs.h.  */
11225
11226/* Override any GCC internal prototype to avoid an error.
11227   Use char because int might match the return type of a GCC
11228   builtin and then its argument prototype would still apply.  */
11229#ifdef __cplusplus
11230extern "C"
11231#endif
11232char dlopen ();
11233int
11234main ()
11235{
11236return dlopen ();
11237  ;
11238  return 0;
11239}
11240_ACEOF
11241if ac_fn_c_try_link "$LINENO"; then :
11242  ac_cv_lib_dl_dlopen=yes
11243else
11244  ac_cv_lib_dl_dlopen=no
11245fi
11246rm -f core conftest.err conftest.$ac_objext \
11247    conftest$ac_exeext conftest.$ac_ext
11248LIBS=$ac_check_lib_save_LIBS
11249fi
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11251$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11252if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11253  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11254else
11255
11256    lt_cv_dlopen="dyld"
11257    lt_cv_dlopen_libs=
11258    lt_cv_dlopen_self=yes
11259
11260fi
11261
11262   ;;
11263
11264  *)
11265    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11266if test "x$ac_cv_func_shl_load" = x""yes; then :
11267  lt_cv_dlopen="shl_load"
11268else
11269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11270$as_echo_n "checking for shl_load in -ldld... " >&6; }
11271if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11272  $as_echo_n "(cached) " >&6
11273else
11274  ac_check_lib_save_LIBS=$LIBS
11275LIBS="-ldld  $LIBS"
11276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277/* end confdefs.h.  */
11278
11279/* Override any GCC internal prototype to avoid an error.
11280   Use char because int might match the return type of a GCC
11281   builtin and then its argument prototype would still apply.  */
11282#ifdef __cplusplus
11283extern "C"
11284#endif
11285char shl_load ();
11286int
11287main ()
11288{
11289return shl_load ();
11290  ;
11291  return 0;
11292}
11293_ACEOF
11294if ac_fn_c_try_link "$LINENO"; then :
11295  ac_cv_lib_dld_shl_load=yes
11296else
11297  ac_cv_lib_dld_shl_load=no
11298fi
11299rm -f core conftest.err conftest.$ac_objext \
11300    conftest$ac_exeext conftest.$ac_ext
11301LIBS=$ac_check_lib_save_LIBS
11302fi
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11304$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11305if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11306  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11307else
11308  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11309if test "x$ac_cv_func_dlopen" = x""yes; then :
11310  lt_cv_dlopen="dlopen"
11311else
11312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11313$as_echo_n "checking for dlopen in -ldl... " >&6; }
11314if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11315  $as_echo_n "(cached) " >&6
11316else
11317  ac_check_lib_save_LIBS=$LIBS
11318LIBS="-ldl  $LIBS"
11319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320/* end confdefs.h.  */
11321
11322/* Override any GCC internal prototype to avoid an error.
11323   Use char because int might match the return type of a GCC
11324   builtin and then its argument prototype would still apply.  */
11325#ifdef __cplusplus
11326extern "C"
11327#endif
11328char dlopen ();
11329int
11330main ()
11331{
11332return dlopen ();
11333  ;
11334  return 0;
11335}
11336_ACEOF
11337if ac_fn_c_try_link "$LINENO"; then :
11338  ac_cv_lib_dl_dlopen=yes
11339else
11340  ac_cv_lib_dl_dlopen=no
11341fi
11342rm -f core conftest.err conftest.$ac_objext \
11343    conftest$ac_exeext conftest.$ac_ext
11344LIBS=$ac_check_lib_save_LIBS
11345fi
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11347$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11348if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11349  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11350else
11351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11352$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11353if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11354  $as_echo_n "(cached) " >&6
11355else
11356  ac_check_lib_save_LIBS=$LIBS
11357LIBS="-lsvld  $LIBS"
11358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359/* end confdefs.h.  */
11360
11361/* Override any GCC internal prototype to avoid an error.
11362   Use char because int might match the return type of a GCC
11363   builtin and then its argument prototype would still apply.  */
11364#ifdef __cplusplus
11365extern "C"
11366#endif
11367char dlopen ();
11368int
11369main ()
11370{
11371return dlopen ();
11372  ;
11373  return 0;
11374}
11375_ACEOF
11376if ac_fn_c_try_link "$LINENO"; then :
11377  ac_cv_lib_svld_dlopen=yes
11378else
11379  ac_cv_lib_svld_dlopen=no
11380fi
11381rm -f core conftest.err conftest.$ac_objext \
11382    conftest$ac_exeext conftest.$ac_ext
11383LIBS=$ac_check_lib_save_LIBS
11384fi
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11386$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11387if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11388  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11389else
11390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11391$as_echo_n "checking for dld_link in -ldld... " >&6; }
11392if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11393  $as_echo_n "(cached) " >&6
11394else
11395  ac_check_lib_save_LIBS=$LIBS
11396LIBS="-ldld  $LIBS"
11397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398/* end confdefs.h.  */
11399
11400/* Override any GCC internal prototype to avoid an error.
11401   Use char because int might match the return type of a GCC
11402   builtin and then its argument prototype would still apply.  */
11403#ifdef __cplusplus
11404extern "C"
11405#endif
11406char dld_link ();
11407int
11408main ()
11409{
11410return dld_link ();
11411  ;
11412  return 0;
11413}
11414_ACEOF
11415if ac_fn_c_try_link "$LINENO"; then :
11416  ac_cv_lib_dld_dld_link=yes
11417else
11418  ac_cv_lib_dld_dld_link=no
11419fi
11420rm -f core conftest.err conftest.$ac_objext \
11421    conftest$ac_exeext conftest.$ac_ext
11422LIBS=$ac_check_lib_save_LIBS
11423fi
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11425$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11426if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11427  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11428fi
11429
11430
11431fi
11432
11433
11434fi
11435
11436
11437fi
11438
11439
11440fi
11441
11442
11443fi
11444
11445    ;;
11446  esac
11447
11448  if test "x$lt_cv_dlopen" != xno; then
11449    enable_dlopen=yes
11450  else
11451    enable_dlopen=no
11452  fi
11453
11454  case $lt_cv_dlopen in
11455  dlopen)
11456    save_CPPFLAGS="$CPPFLAGS"
11457    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11458
11459    save_LDFLAGS="$LDFLAGS"
11460    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11461
11462    save_LIBS="$LIBS"
11463    LIBS="$lt_cv_dlopen_libs $LIBS"
11464
11465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11466$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11467if test "${lt_cv_dlopen_self+set}" = set; then :
11468  $as_echo_n "(cached) " >&6
11469else
11470  	  if test "$cross_compiling" = yes; then :
11471  lt_cv_dlopen_self=cross
11472else
11473  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11474  lt_status=$lt_dlunknown
11475  cat > conftest.$ac_ext <<EOF
11476#line 11476 "configure"
11477#include "confdefs.h"
11478
11479#if HAVE_DLFCN_H
11480#include <dlfcn.h>
11481#endif
11482
11483#include <stdio.h>
11484
11485#ifdef RTLD_GLOBAL
11486#  define LT_DLGLOBAL		RTLD_GLOBAL
11487#else
11488#  ifdef DL_GLOBAL
11489#    define LT_DLGLOBAL		DL_GLOBAL
11490#  else
11491#    define LT_DLGLOBAL		0
11492#  endif
11493#endif
11494
11495/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11496   find out it does not work in some platform. */
11497#ifndef LT_DLLAZY_OR_NOW
11498#  ifdef RTLD_LAZY
11499#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11500#  else
11501#    ifdef DL_LAZY
11502#      define LT_DLLAZY_OR_NOW		DL_LAZY
11503#    else
11504#      ifdef RTLD_NOW
11505#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11506#      else
11507#        ifdef DL_NOW
11508#          define LT_DLLAZY_OR_NOW	DL_NOW
11509#        else
11510#          define LT_DLLAZY_OR_NOW	0
11511#        endif
11512#      endif
11513#    endif
11514#  endif
11515#endif
11516
11517#ifdef __cplusplus
11518extern "C" void exit (int);
11519#endif
11520
11521void fnord() { int i=42;}
11522int main ()
11523{
11524  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11525  int status = $lt_dlunknown;
11526
11527  if (self)
11528    {
11529      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11530      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11531      /* dlclose (self); */
11532    }
11533
11534    exit (status);
11535}
11536EOF
11537  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11538  (eval $ac_link) 2>&5
11539  ac_status=$?
11540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11541  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11542    (./conftest; exit; ) >&5 2>/dev/null
11543    lt_status=$?
11544    case x$lt_status in
11545      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11546      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11547      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11548    esac
11549  else :
11550    # compilation failed
11551    lt_cv_dlopen_self=no
11552  fi
11553fi
11554rm -fr conftest*
11555
11556
11557fi
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11559$as_echo "$lt_cv_dlopen_self" >&6; }
11560
11561    if test "x$lt_cv_dlopen_self" = xyes; then
11562      LDFLAGS="$LDFLAGS $link_static_flag"
11563      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11564$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11565if test "${lt_cv_dlopen_self_static+set}" = set; then :
11566  $as_echo_n "(cached) " >&6
11567else
11568  	  if test "$cross_compiling" = yes; then :
11569  lt_cv_dlopen_self_static=cross
11570else
11571  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11572  lt_status=$lt_dlunknown
11573  cat > conftest.$ac_ext <<EOF
11574#line 11574 "configure"
11575#include "confdefs.h"
11576
11577#if HAVE_DLFCN_H
11578#include <dlfcn.h>
11579#endif
11580
11581#include <stdio.h>
11582
11583#ifdef RTLD_GLOBAL
11584#  define LT_DLGLOBAL		RTLD_GLOBAL
11585#else
11586#  ifdef DL_GLOBAL
11587#    define LT_DLGLOBAL		DL_GLOBAL
11588#  else
11589#    define LT_DLGLOBAL		0
11590#  endif
11591#endif
11592
11593/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11594   find out it does not work in some platform. */
11595#ifndef LT_DLLAZY_OR_NOW
11596#  ifdef RTLD_LAZY
11597#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11598#  else
11599#    ifdef DL_LAZY
11600#      define LT_DLLAZY_OR_NOW		DL_LAZY
11601#    else
11602#      ifdef RTLD_NOW
11603#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11604#      else
11605#        ifdef DL_NOW
11606#          define LT_DLLAZY_OR_NOW	DL_NOW
11607#        else
11608#          define LT_DLLAZY_OR_NOW	0
11609#        endif
11610#      endif
11611#    endif
11612#  endif
11613#endif
11614
11615#ifdef __cplusplus
11616extern "C" void exit (int);
11617#endif
11618
11619void fnord() { int i=42;}
11620int main ()
11621{
11622  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11623  int status = $lt_dlunknown;
11624
11625  if (self)
11626    {
11627      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11628      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11629      /* dlclose (self); */
11630    }
11631
11632    exit (status);
11633}
11634EOF
11635  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11636  (eval $ac_link) 2>&5
11637  ac_status=$?
11638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11639  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11640    (./conftest; exit; ) >&5 2>/dev/null
11641    lt_status=$?
11642    case x$lt_status in
11643      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11644      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11645      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11646    esac
11647  else :
11648    # compilation failed
11649    lt_cv_dlopen_self_static=no
11650  fi
11651fi
11652rm -fr conftest*
11653
11654
11655fi
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11657$as_echo "$lt_cv_dlopen_self_static" >&6; }
11658    fi
11659
11660    CPPFLAGS="$save_CPPFLAGS"
11661    LDFLAGS="$save_LDFLAGS"
11662    LIBS="$save_LIBS"
11663    ;;
11664  esac
11665
11666  case $lt_cv_dlopen_self in
11667  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11668  *) enable_dlopen_self=unknown ;;
11669  esac
11670
11671  case $lt_cv_dlopen_self_static in
11672  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11673  *) enable_dlopen_self_static=unknown ;;
11674  esac
11675fi
11676
11677
11678# Report which librarie types wil actually be built
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11680$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11682$as_echo "$can_build_shared" >&6; }
11683
11684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11685$as_echo_n "checking whether to build shared libraries... " >&6; }
11686test "$can_build_shared" = "no" && enable_shared=no
11687
11688# On AIX, shared libraries and static libraries use the same namespace, and
11689# are all built from PIC.
11690case $host_os in
11691aix3*)
11692  test "$enable_shared" = yes && enable_static=no
11693  if test -n "$RANLIB"; then
11694    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11695    postinstall_cmds='$RANLIB $lib'
11696  fi
11697  ;;
11698
11699aix4* | aix5*)
11700  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11701    test "$enable_shared" = yes && enable_static=no
11702  fi
11703    ;;
11704esac
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11706$as_echo "$enable_shared" >&6; }
11707
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11709$as_echo_n "checking whether to build static libraries... " >&6; }
11710# Make sure either enable_shared or enable_static is yes.
11711test "$enable_shared" = yes || enable_static=yes
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11713$as_echo "$enable_static" >&6; }
11714
11715# The else clause should only fire when bootstrapping the
11716# libtool distribution, otherwise you forgot to ship ltmain.sh
11717# with your package, and you will get complaints that there are
11718# no rules to generate ltmain.sh.
11719if test -f "$ltmain"; then
11720  # See if we are running on zsh, and set the options which allow our commands through
11721  # without removal of \ escapes.
11722  if test -n "${ZSH_VERSION+set}" ; then
11723    setopt NO_GLOB_SUBST
11724  fi
11725  # Now quote all the things that may contain metacharacters while being
11726  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11727  # variables and quote the copies for generation of the libtool script.
11728  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11729    SED SHELL STRIP \
11730    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11731    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11732    deplibs_check_method reload_flag reload_cmds need_locks \
11733    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11734    lt_cv_sys_global_symbol_to_c_name_address \
11735    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11736    old_postinstall_cmds old_postuninstall_cmds \
11737    compiler \
11738    CC \
11739    LD \
11740    lt_prog_compiler_wl \
11741    lt_prog_compiler_pic \
11742    lt_prog_compiler_static \
11743    lt_prog_compiler_no_builtin_flag \
11744    export_dynamic_flag_spec \
11745    thread_safe_flag_spec \
11746    whole_archive_flag_spec \
11747    enable_shared_with_static_runtimes \
11748    old_archive_cmds \
11749    old_archive_from_new_cmds \
11750    predep_objects \
11751    postdep_objects \
11752    predeps \
11753    postdeps \
11754    compiler_lib_search_path \
11755    archive_cmds \
11756    archive_expsym_cmds \
11757    postinstall_cmds \
11758    postuninstall_cmds \
11759    old_archive_from_expsyms_cmds \
11760    allow_undefined_flag \
11761    no_undefined_flag \
11762    export_symbols_cmds \
11763    hardcode_libdir_flag_spec \
11764    hardcode_libdir_flag_spec_ld \
11765    hardcode_libdir_separator \
11766    hardcode_automatic \
11767    module_cmds \
11768    module_expsym_cmds \
11769    lt_cv_prog_compiler_c_o \
11770    exclude_expsyms \
11771    include_expsyms; do
11772
11773    case $var in
11774    old_archive_cmds | \
11775    old_archive_from_new_cmds | \
11776    archive_cmds | \
11777    archive_expsym_cmds | \
11778    module_cmds | \
11779    module_expsym_cmds | \
11780    old_archive_from_expsyms_cmds | \
11781    export_symbols_cmds | \
11782    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11783    postinstall_cmds | postuninstall_cmds | \
11784    old_postinstall_cmds | old_postuninstall_cmds | \
11785    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11786      # Double-quote double-evaled strings.
11787      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11788      ;;
11789    *)
11790      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11791      ;;
11792    esac
11793  done
11794
11795  case $lt_echo in
11796  *'\$0 --fallback-echo"')
11797    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11798    ;;
11799  esac
11800
11801cfgfile="${ofile}T"
11802  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11803  $rm -f "$cfgfile"
11804  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11805$as_echo "$as_me: creating $ofile" >&6;}
11806
11807  cat <<__EOF__ >> "$cfgfile"
11808#! $SHELL
11809
11810# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11811# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11812# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11813#
11814# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11815# Free Software Foundation, Inc.
11816#
11817# This file is part of GNU Libtool:
11818# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11819#
11820# This program is free software; you can redistribute it and/or modify
11821# it under the terms of the GNU General Public License as published by
11822# the Free Software Foundation; either version 2 of the License, or
11823# (at your option) any later version.
11824#
11825# This program is distributed in the hope that it will be useful, but
11826# WITHOUT ANY WARRANTY; without even the implied warranty of
11827# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11828# General Public License for more details.
11829#
11830# You should have received a copy of the GNU General Public License
11831# along with this program; if not, write to the Free Software
11832# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11833#
11834# As a special exception to the GNU General Public License, if you
11835# distribute this file as part of a program that contains a
11836# configuration script generated by Autoconf, you may include it under
11837# the same distribution terms that you use for the rest of that program.
11838
11839# A sed program that does not truncate output.
11840SED=$lt_SED
11841
11842# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11843Xsed="$SED -e 1s/^X//"
11844
11845# The HP-UX ksh and POSIX shell print the target directory to stdout
11846# if CDPATH is set.
11847(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11848
11849# The names of the tagged configurations supported by this script.
11850available_tags=
11851
11852# ### BEGIN LIBTOOL CONFIG
11853
11854# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11855
11856# Shell to use when invoking shell scripts.
11857SHELL=$lt_SHELL
11858
11859# Whether or not to build shared libraries.
11860build_libtool_libs=$enable_shared
11861
11862# Whether or not to build static libraries.
11863build_old_libs=$enable_static
11864
11865# Whether or not to add -lc for building shared libraries.
11866build_libtool_need_lc=$archive_cmds_need_lc
11867
11868# Whether or not to disallow shared libs when runtime libs are static
11869allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11870
11871# Whether or not to optimize for fast installation.
11872fast_install=$enable_fast_install
11873
11874# The host system.
11875host_alias=$host_alias
11876host=$host
11877host_os=$host_os
11878
11879# The build system.
11880build_alias=$build_alias
11881build=$build
11882build_os=$build_os
11883
11884# An echo program that does not interpret backslashes.
11885echo=$lt_echo
11886
11887# The archiver.
11888AR=$lt_AR
11889AR_FLAGS=$lt_AR_FLAGS
11890
11891# A C compiler.
11892LTCC=$lt_LTCC
11893
11894# A language-specific compiler.
11895CC=$lt_compiler
11896
11897# Is the compiler the GNU C compiler?
11898with_gcc=$GCC
11899
11900# An ERE matcher.
11901EGREP=$lt_EGREP
11902
11903# The linker used to build libraries.
11904LD=$lt_LD
11905
11906# Whether we need hard or soft links.
11907LN_S=$lt_LN_S
11908
11909# A BSD-compatible nm program.
11910NM=$lt_NM
11911
11912# A symbol stripping program
11913STRIP=$lt_STRIP
11914
11915# Used to examine libraries when file_magic_cmd begins "file"
11916MAGIC_CMD=$MAGIC_CMD
11917
11918# Used on cygwin: DLL creation program.
11919DLLTOOL="$DLLTOOL"
11920
11921# Used on cygwin: object dumper.
11922OBJDUMP="$OBJDUMP"
11923
11924# Used on cygwin: assembler.
11925AS="$AS"
11926
11927# The name of the directory that contains temporary libtool files.
11928objdir=$objdir
11929
11930# How to create reloadable object files.
11931reload_flag=$lt_reload_flag
11932reload_cmds=$lt_reload_cmds
11933
11934# How to pass a linker flag through the compiler.
11935wl=$lt_lt_prog_compiler_wl
11936
11937# Object file suffix (normally "o").
11938objext="$ac_objext"
11939
11940# Old archive suffix (normally "a").
11941libext="$libext"
11942
11943# Shared library suffix (normally ".so").
11944shrext_cmds='$shrext_cmds'
11945
11946# Executable file suffix (normally "").
11947exeext="$exeext"
11948
11949# Additional compiler flags for building library objects.
11950pic_flag=$lt_lt_prog_compiler_pic
11951pic_mode=$pic_mode
11952
11953# What is the maximum length of a command?
11954max_cmd_len=$lt_cv_sys_max_cmd_len
11955
11956# Does compiler simultaneously support -c and -o options?
11957compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11958
11959# Must we lock files when doing compilation?
11960need_locks=$lt_need_locks
11961
11962# Do we need the lib prefix for modules?
11963need_lib_prefix=$need_lib_prefix
11964
11965# Do we need a version for libraries?
11966need_version=$need_version
11967
11968# Whether dlopen is supported.
11969dlopen_support=$enable_dlopen
11970
11971# Whether dlopen of programs is supported.
11972dlopen_self=$enable_dlopen_self
11973
11974# Whether dlopen of statically linked programs is supported.
11975dlopen_self_static=$enable_dlopen_self_static
11976
11977# Compiler flag to prevent dynamic linking.
11978link_static_flag=$lt_lt_prog_compiler_static
11979
11980# Compiler flag to turn off builtin functions.
11981no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11982
11983# Compiler flag to allow reflexive dlopens.
11984export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11985
11986# Compiler flag to generate shared objects directly from archives.
11987whole_archive_flag_spec=$lt_whole_archive_flag_spec
11988
11989# Compiler flag to generate thread-safe objects.
11990thread_safe_flag_spec=$lt_thread_safe_flag_spec
11991
11992# Library versioning type.
11993version_type=$version_type
11994
11995# Format of library name prefix.
11996libname_spec=$lt_libname_spec
11997
11998# List of archive names.  First name is the real one, the rest are links.
11999# The last name is the one that the linker finds with -lNAME.
12000library_names_spec=$lt_library_names_spec
12001
12002# The coded name of the library, if different from the real name.
12003soname_spec=$lt_soname_spec
12004
12005# Commands used to build and install an old-style archive.
12006RANLIB=$lt_RANLIB
12007old_archive_cmds=$lt_old_archive_cmds
12008old_postinstall_cmds=$lt_old_postinstall_cmds
12009old_postuninstall_cmds=$lt_old_postuninstall_cmds
12010
12011# Create an old-style archive from a shared archive.
12012old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12013
12014# Create a temporary old-style archive to link instead of a shared archive.
12015old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12016
12017# Commands used to build and install a shared archive.
12018archive_cmds=$lt_archive_cmds
12019archive_expsym_cmds=$lt_archive_expsym_cmds
12020postinstall_cmds=$lt_postinstall_cmds
12021postuninstall_cmds=$lt_postuninstall_cmds
12022
12023# Commands used to build a loadable module (assumed same as above if empty)
12024module_cmds=$lt_module_cmds
12025module_expsym_cmds=$lt_module_expsym_cmds
12026
12027# Commands to strip libraries.
12028old_striplib=$lt_old_striplib
12029striplib=$lt_striplib
12030
12031# Dependencies to place before the objects being linked to create a
12032# shared library.
12033predep_objects=$lt_predep_objects
12034
12035# Dependencies to place after the objects being linked to create a
12036# shared library.
12037postdep_objects=$lt_postdep_objects
12038
12039# Dependencies to place before the objects being linked to create a
12040# shared library.
12041predeps=$lt_predeps
12042
12043# Dependencies to place after the objects being linked to create a
12044# shared library.
12045postdeps=$lt_postdeps
12046
12047# The library search path used internally by the compiler when linking
12048# a shared library.
12049compiler_lib_search_path=$lt_compiler_lib_search_path
12050
12051# Method to check whether dependent libraries are shared objects.
12052deplibs_check_method=$lt_deplibs_check_method
12053
12054# Command to use when deplibs_check_method == file_magic.
12055file_magic_cmd=$lt_file_magic_cmd
12056
12057# Flag that allows shared libraries with undefined symbols to be built.
12058allow_undefined_flag=$lt_allow_undefined_flag
12059
12060# Flag that forces no undefined symbols.
12061no_undefined_flag=$lt_no_undefined_flag
12062
12063# Commands used to finish a libtool library installation in a directory.
12064finish_cmds=$lt_finish_cmds
12065
12066# Same as above, but a single script fragment to be evaled but not shown.
12067finish_eval=$lt_finish_eval
12068
12069# Take the output of nm and produce a listing of raw symbols and C names.
12070global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12071
12072# Transform the output of nm in a proper C declaration
12073global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12074
12075# Transform the output of nm in a C name address pair
12076global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12077
12078# This is the shared library runtime path variable.
12079runpath_var=$runpath_var
12080
12081# This is the shared library path variable.
12082shlibpath_var=$shlibpath_var
12083
12084# Is shlibpath searched before the hard-coded library search path?
12085shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12086
12087# How to hardcode a shared library path into an executable.
12088hardcode_action=$hardcode_action
12089
12090# Whether we should hardcode library paths into libraries.
12091hardcode_into_libs=$hardcode_into_libs
12092
12093# Flag to hardcode \$libdir into a binary during linking.
12094# This must work even if \$libdir does not exist.
12095hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12096
12097# If ld is used when linking, flag to hardcode \$libdir into
12098# a binary during linking. This must work even if \$libdir does
12099# not exist.
12100hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12101
12102# Whether we need a single -rpath flag with a separated argument.
12103hardcode_libdir_separator=$lt_hardcode_libdir_separator
12104
12105# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12106# resulting binary.
12107hardcode_direct=$hardcode_direct
12108
12109# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12110# resulting binary.
12111hardcode_minus_L=$hardcode_minus_L
12112
12113# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12114# the resulting binary.
12115hardcode_shlibpath_var=$hardcode_shlibpath_var
12116
12117# Set to yes if building a shared library automatically hardcodes DIR into the library
12118# and all subsequent libraries and executables linked against it.
12119hardcode_automatic=$hardcode_automatic
12120
12121# Variables whose values should be saved in libtool wrapper scripts and
12122# restored at relink time.
12123variables_saved_for_relink="$variables_saved_for_relink"
12124
12125# Whether libtool must link a program against all its dependency libraries.
12126link_all_deplibs=$link_all_deplibs
12127
12128# Compile-time system search path for libraries
12129sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12130
12131# Run-time system search path for libraries
12132sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12133
12134# Fix the shell variable \$srcfile for the compiler.
12135fix_srcfile_path="$fix_srcfile_path"
12136
12137# Set to yes if exported symbols are required.
12138always_export_symbols=$always_export_symbols
12139
12140# The commands to list exported symbols.
12141export_symbols_cmds=$lt_export_symbols_cmds
12142
12143# The commands to extract the exported symbol list from a shared archive.
12144extract_expsyms_cmds=$lt_extract_expsyms_cmds
12145
12146# Symbols that should not be listed in the preloaded symbols.
12147exclude_expsyms=$lt_exclude_expsyms
12148
12149# Symbols that must always be exported.
12150include_expsyms=$lt_include_expsyms
12151
12152# ### END LIBTOOL CONFIG
12153
12154__EOF__
12155
12156
12157  case $host_os in
12158  aix3*)
12159    cat <<\EOF >> "$cfgfile"
12160
12161# AIX sometimes has problems with the GCC collect2 program.  For some
12162# reason, if we set the COLLECT_NAMES environment variable, the problems
12163# vanish in a puff of smoke.
12164if test "X${COLLECT_NAMES+set}" != Xset; then
12165  COLLECT_NAMES=
12166  export COLLECT_NAMES
12167fi
12168EOF
12169    ;;
12170  esac
12171
12172  # We use sed instead of cat because bash on DJGPP gets confused if
12173  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12174  # text mode, it properly converts lines to CR/LF.  This bash problem
12175  # is reportedly fixed, but why not run on old versions too?
12176  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12177
12178  mv -f "$cfgfile" "$ofile" || \
12179    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12180  chmod +x "$ofile"
12181
12182else
12183  # If there is no Makefile yet, we rely on a make rule to execute
12184  # `config.status --recheck' to rerun these tests and create the
12185  # libtool script then.
12186  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12187  if test -f "$ltmain_in"; then
12188    test -f Makefile && make "$ltmain"
12189  fi
12190fi
12191
12192
12193ac_ext=c
12194ac_cpp='$CPP $CPPFLAGS'
12195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12197ac_compiler_gnu=$ac_cv_c_compiler_gnu
12198
12199CC="$lt_save_CC"
12200
12201
12202# Check whether --with-tags was given.
12203if test "${with_tags+set}" = set; then :
12204  withval=$with_tags; tagnames="$withval"
12205fi
12206
12207
12208if test -f "$ltmain" && test -n "$tagnames"; then
12209  if test ! -f "${ofile}"; then
12210    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
12211$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12212  fi
12213
12214  if test -z "$LTCC"; then
12215    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12216    if test -z "$LTCC"; then
12217      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12218$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12219    else
12220      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12221$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12222    fi
12223  fi
12224
12225  # Extract list of available tagged configurations in $ofile.
12226  # Note that this assumes the entire list is on one line.
12227  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12228
12229  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12230  for tagname in $tagnames; do
12231    IFS="$lt_save_ifs"
12232    # Check whether tagname contains only valid characters
12233    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12234    "") ;;
12235    *)  as_fn_error "invalid tag name: $tagname" "$LINENO" 5
12236	;;
12237    esac
12238
12239    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12240    then
12241      as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
12242    fi
12243
12244    # Update the list of available tags.
12245    if test -n "$tagname"; then
12246      echo appending configuration tag \"$tagname\" to $ofile
12247
12248      case $tagname in
12249      CXX)
12250	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12251	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12252	    (test "X$CXX" != "Xg++"))) ; then
12253	  :
12254	else
12255	  tagname=""
12256	fi
12257	;;
12258
12259      F77)
12260	if test -n "$F77" && test "X$F77" != "Xno"; then
12261	  :
12262	else
12263	  tagname=""
12264	fi
12265	;;
12266
12267      GCJ)
12268	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12269
12270
12271# Source file extension for Java test sources.
12272ac_ext=java
12273
12274# Object file extension for compiled Java test sources.
12275objext=o
12276objext_GCJ=$objext
12277
12278# Code to be used in simple compile tests
12279lt_simple_compile_test_code="class foo {}\n"
12280
12281# Code to be used in simple link tests
12282lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
12283
12284# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12285
12286# If no C compiler was specified, use CC.
12287LTCC=${LTCC-"$CC"}
12288
12289# Allow CC to be a program name with arguments.
12290compiler=$CC
12291
12292
12293# save warnings/boilerplate of simple test code
12294ac_outfile=conftest.$ac_objext
12295printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12296eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12297_lt_compiler_boilerplate=`cat conftest.err`
12298$rm conftest*
12299
12300ac_outfile=conftest.$ac_objext
12301printf "$lt_simple_link_test_code" >conftest.$ac_ext
12302eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12303_lt_linker_boilerplate=`cat conftest.err`
12304$rm conftest*
12305
12306
12307# Allow CC to be a program name with arguments.
12308lt_save_CC="$CC"
12309CC=${GCJ-"gcj"}
12310compiler=$CC
12311compiler_GCJ=$CC
12312for cc_temp in $compiler""; do
12313  case $cc_temp in
12314    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12315    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12316    \-*) ;;
12317    *) break;;
12318  esac
12319done
12320cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12321
12322
12323# GCJ did not exist at the time GCC didn't implicitly link libc in.
12324archive_cmds_need_lc_GCJ=no
12325
12326old_archive_cmds_GCJ=$old_archive_cmds
12327
12328
12329lt_prog_compiler_no_builtin_flag_GCJ=
12330
12331if test "$GCC" = yes; then
12332  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
12333
12334
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12336$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12337if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12338  $as_echo_n "(cached) " >&6
12339else
12340  lt_cv_prog_compiler_rtti_exceptions=no
12341  ac_outfile=conftest.$ac_objext
12342   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12343   lt_compiler_flag="-fno-rtti -fno-exceptions"
12344   # Insert the option either (1) after the last *FLAGS variable, or
12345   # (2) before a word containing "conftest.", or (3) at the end.
12346   # Note that $ac_compile itself does not contain backslashes and begins
12347   # with a dollar sign (not a hyphen), so the echo should work correctly.
12348   # The option is referenced via a variable to avoid confusing sed.
12349   lt_compile=`echo "$ac_compile" | $SED \
12350   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12351   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12352   -e 's:$: $lt_compiler_flag:'`
12353   (eval echo "\"\$as_me:12353: $lt_compile\"" >&5)
12354   (eval "$lt_compile" 2>conftest.err)
12355   ac_status=$?
12356   cat conftest.err >&5
12357   echo "$as_me:12357: \$? = $ac_status" >&5
12358   if (exit $ac_status) && test -s "$ac_outfile"; then
12359     # The compiler can only warn and ignore the option if not recognized
12360     # So say no if there are warnings other than the usual output.
12361     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12362     $SED '/^$/d' conftest.err >conftest.er2
12363     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12364       lt_cv_prog_compiler_rtti_exceptions=yes
12365     fi
12366   fi
12367   $rm conftest*
12368
12369fi
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12371$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12372
12373if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12374    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
12375else
12376    :
12377fi
12378
12379fi
12380
12381lt_prog_compiler_wl_GCJ=
12382lt_prog_compiler_pic_GCJ=
12383lt_prog_compiler_static_GCJ=
12384
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12386$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12387
12388  if test "$GCC" = yes; then
12389    lt_prog_compiler_wl_GCJ='-Wl,'
12390    lt_prog_compiler_static_GCJ='-static'
12391
12392    case $host_os in
12393      aix*)
12394      # All AIX code is PIC.
12395      if test "$host_cpu" = ia64; then
12396	# AIX 5 now supports IA64 processor
12397	lt_prog_compiler_static_GCJ='-Bstatic'
12398      fi
12399      ;;
12400
12401    amigaos*)
12402      # FIXME: we need at least 68020 code to build shared libraries, but
12403      # adding the `-m68020' flag to GCC prevents building anything better,
12404      # like `-m68040'.
12405      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
12406      ;;
12407
12408    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12409      # PIC is the default for these OSes.
12410      ;;
12411
12412    mingw* | pw32* | os2*)
12413      # This hack is so that the source file can tell whether it is being
12414      # built for inclusion in a dll (and should export symbols for example).
12415      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12416      ;;
12417
12418    darwin* | rhapsody*)
12419      # PIC is the default on this platform
12420      # Common symbols not allowed in MH_DYLIB files
12421      lt_prog_compiler_pic_GCJ='-fno-common'
12422      ;;
12423
12424    msdosdjgpp*)
12425      # Just because we use GCC doesn't mean we suddenly get shared libraries
12426      # on systems that don't support them.
12427      lt_prog_compiler_can_build_shared_GCJ=no
12428      enable_shared=no
12429      ;;
12430
12431    sysv4*MP*)
12432      if test -d /usr/nec; then
12433	lt_prog_compiler_pic_GCJ=-Kconform_pic
12434      fi
12435      ;;
12436
12437    hpux*)
12438      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12439      # not for PA HP-UX.
12440      case $host_cpu in
12441      hppa*64*|ia64*)
12442	# +Z the default
12443	;;
12444      *)
12445	lt_prog_compiler_pic_GCJ='-fPIC'
12446	;;
12447      esac
12448      ;;
12449
12450    *)
12451      lt_prog_compiler_pic_GCJ='-fPIC'
12452      ;;
12453    esac
12454  else
12455    # PORTME Check for flag to pass linker flags through the system compiler.
12456    case $host_os in
12457    aix*)
12458      lt_prog_compiler_wl_GCJ='-Wl,'
12459      if test "$host_cpu" = ia64; then
12460	# AIX 5 now supports IA64 processor
12461	lt_prog_compiler_static_GCJ='-Bstatic'
12462      else
12463	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
12464      fi
12465      ;;
12466      darwin*)
12467        # PIC is the default on this platform
12468        # Common symbols not allowed in MH_DYLIB files
12469       case $cc_basename in
12470         xlc*)
12471         lt_prog_compiler_pic_GCJ='-qnocommon'
12472         lt_prog_compiler_wl_GCJ='-Wl,'
12473         ;;
12474       esac
12475       ;;
12476
12477    mingw* | pw32* | os2*)
12478      # This hack is so that the source file can tell whether it is being
12479      # built for inclusion in a dll (and should export symbols for example).
12480      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12481      ;;
12482
12483    hpux9* | hpux10* | hpux11*)
12484      lt_prog_compiler_wl_GCJ='-Wl,'
12485      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12486      # not for PA HP-UX.
12487      case $host_cpu in
12488      hppa*64*|ia64*)
12489	# +Z the default
12490	;;
12491      *)
12492	lt_prog_compiler_pic_GCJ='+Z'
12493	;;
12494      esac
12495      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12496      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
12497      ;;
12498
12499    irix5* | irix6* | nonstopux*)
12500      lt_prog_compiler_wl_GCJ='-Wl,'
12501      # PIC (with -KPIC) is the default.
12502      lt_prog_compiler_static_GCJ='-non_shared'
12503      ;;
12504
12505    newsos6)
12506      lt_prog_compiler_pic_GCJ='-KPIC'
12507      lt_prog_compiler_static_GCJ='-Bstatic'
12508      ;;
12509
12510    linux*)
12511      case $cc_basename in
12512      icc* | ecc*)
12513	lt_prog_compiler_wl_GCJ='-Wl,'
12514	lt_prog_compiler_pic_GCJ='-KPIC'
12515	lt_prog_compiler_static_GCJ='-static'
12516        ;;
12517      pgcc* | pgf77* | pgf90* | pgf95*)
12518        # Portland Group compilers (*not* the Pentium gcc compiler,
12519	# which looks to be a dead project)
12520	lt_prog_compiler_wl_GCJ='-Wl,'
12521	lt_prog_compiler_pic_GCJ='-fpic'
12522	lt_prog_compiler_static_GCJ='-Bstatic'
12523        ;;
12524      ccc*)
12525        lt_prog_compiler_wl_GCJ='-Wl,'
12526        # All Alpha code is PIC.
12527        lt_prog_compiler_static_GCJ='-non_shared'
12528        ;;
12529      esac
12530      ;;
12531
12532    osf3* | osf4* | osf5*)
12533      lt_prog_compiler_wl_GCJ='-Wl,'
12534      # All OSF/1 code is PIC.
12535      lt_prog_compiler_static_GCJ='-non_shared'
12536      ;;
12537
12538    sco3.2v5*)
12539      lt_prog_compiler_pic_GCJ='-Kpic'
12540      lt_prog_compiler_static_GCJ='-dn'
12541      ;;
12542
12543    solaris*)
12544      lt_prog_compiler_pic_GCJ='-KPIC'
12545      lt_prog_compiler_static_GCJ='-Bstatic'
12546      case $cc_basename in
12547      f77* | f90* | f95*)
12548	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
12549      *)
12550	lt_prog_compiler_wl_GCJ='-Wl,';;
12551      esac
12552      ;;
12553
12554    sunos4*)
12555      lt_prog_compiler_wl_GCJ='-Qoption ld '
12556      lt_prog_compiler_pic_GCJ='-PIC'
12557      lt_prog_compiler_static_GCJ='-Bstatic'
12558      ;;
12559
12560    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12561      lt_prog_compiler_wl_GCJ='-Wl,'
12562      lt_prog_compiler_pic_GCJ='-KPIC'
12563      lt_prog_compiler_static_GCJ='-Bstatic'
12564      ;;
12565
12566    sysv4*MP*)
12567      if test -d /usr/nec ;then
12568	lt_prog_compiler_pic_GCJ='-Kconform_pic'
12569	lt_prog_compiler_static_GCJ='-Bstatic'
12570      fi
12571      ;;
12572
12573    unicos*)
12574      lt_prog_compiler_wl_GCJ='-Wl,'
12575      lt_prog_compiler_can_build_shared_GCJ=no
12576      ;;
12577
12578    uts4*)
12579      lt_prog_compiler_pic_GCJ='-pic'
12580      lt_prog_compiler_static_GCJ='-Bstatic'
12581      ;;
12582
12583    *)
12584      lt_prog_compiler_can_build_shared_GCJ=no
12585      ;;
12586    esac
12587  fi
12588
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
12590$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
12591
12592#
12593# Check to make sure the PIC flag actually works.
12594#
12595if test -n "$lt_prog_compiler_pic_GCJ"; then
12596
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12598$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
12599if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
12600  $as_echo_n "(cached) " >&6
12601else
12602  lt_prog_compiler_pic_works_GCJ=no
12603  ac_outfile=conftest.$ac_objext
12604   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12605   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
12606   # Insert the option either (1) after the last *FLAGS variable, or
12607   # (2) before a word containing "conftest.", or (3) at the end.
12608   # Note that $ac_compile itself does not contain backslashes and begins
12609   # with a dollar sign (not a hyphen), so the echo should work correctly.
12610   # The option is referenced via a variable to avoid confusing sed.
12611   lt_compile=`echo "$ac_compile" | $SED \
12612   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12613   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12614   -e 's:$: $lt_compiler_flag:'`
12615   (eval echo "\"\$as_me:12615: $lt_compile\"" >&5)
12616   (eval "$lt_compile" 2>conftest.err)
12617   ac_status=$?
12618   cat conftest.err >&5
12619   echo "$as_me:12619: \$? = $ac_status" >&5
12620   if (exit $ac_status) && test -s "$ac_outfile"; then
12621     # The compiler can only warn and ignore the option if not recognized
12622     # So say no if there are warnings other than the usual output.
12623     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12624     $SED '/^$/d' conftest.err >conftest.er2
12625     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12626       lt_prog_compiler_pic_works_GCJ=yes
12627     fi
12628   fi
12629   $rm conftest*
12630
12631fi
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
12633$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
12634
12635if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
12636    case $lt_prog_compiler_pic_GCJ in
12637     "" | " "*) ;;
12638     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
12639     esac
12640else
12641    lt_prog_compiler_pic_GCJ=
12642     lt_prog_compiler_can_build_shared_GCJ=no
12643fi
12644
12645fi
12646case $host_os in
12647  # For platforms which do not support PIC, -DPIC is meaningless:
12648  *djgpp*)
12649    lt_prog_compiler_pic_GCJ=
12650    ;;
12651  *)
12652    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
12653    ;;
12654esac
12655
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12657$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12658if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
12659  $as_echo_n "(cached) " >&6
12660else
12661  lt_cv_prog_compiler_c_o_GCJ=no
12662   $rm -r conftest 2>/dev/null
12663   mkdir conftest
12664   cd conftest
12665   mkdir out
12666   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12667
12668   lt_compiler_flag="-o out/conftest2.$ac_objext"
12669   # Insert the option either (1) after the last *FLAGS variable, or
12670   # (2) before a word containing "conftest.", or (3) at the end.
12671   # Note that $ac_compile itself does not contain backslashes and begins
12672   # with a dollar sign (not a hyphen), so the echo should work correctly.
12673   lt_compile=`echo "$ac_compile" | $SED \
12674   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12675   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12676   -e 's:$: $lt_compiler_flag:'`
12677   (eval echo "\"\$as_me:12677: $lt_compile\"" >&5)
12678   (eval "$lt_compile" 2>out/conftest.err)
12679   ac_status=$?
12680   cat out/conftest.err >&5
12681   echo "$as_me:12681: \$? = $ac_status" >&5
12682   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12683   then
12684     # The compiler can only warn and ignore the option if not recognized
12685     # So say no if there are warnings
12686     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12687     $SED '/^$/d' out/conftest.err >out/conftest.er2
12688     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12689       lt_cv_prog_compiler_c_o_GCJ=yes
12690     fi
12691   fi
12692   chmod u+w . 2>&5
12693   $rm conftest*
12694   # SGI C++ compiler will create directory out/ii_files/ for
12695   # template instantiation
12696   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12697   $rm out/* && rmdir out
12698   cd ..
12699   rmdir conftest
12700   $rm conftest*
12701
12702fi
12703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
12704$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
12705
12706
12707hard_links="nottested"
12708if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
12709  # do not overwrite the value of need_locks provided by the user
12710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12711$as_echo_n "checking if we can lock with hard links... " >&6; }
12712  hard_links=yes
12713  $rm conftest*
12714  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12715  touch conftest.a
12716  ln conftest.a conftest.b 2>&5 || hard_links=no
12717  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12719$as_echo "$hard_links" >&6; }
12720  if test "$hard_links" = no; then
12721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12722$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12723    need_locks=warn
12724  fi
12725else
12726  need_locks=no
12727fi
12728
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12730$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12731
12732  runpath_var=
12733  allow_undefined_flag_GCJ=
12734  enable_shared_with_static_runtimes_GCJ=no
12735  archive_cmds_GCJ=
12736  archive_expsym_cmds_GCJ=
12737  old_archive_From_new_cmds_GCJ=
12738  old_archive_from_expsyms_cmds_GCJ=
12739  export_dynamic_flag_spec_GCJ=
12740  whole_archive_flag_spec_GCJ=
12741  thread_safe_flag_spec_GCJ=
12742  hardcode_libdir_flag_spec_GCJ=
12743  hardcode_libdir_flag_spec_ld_GCJ=
12744  hardcode_libdir_separator_GCJ=
12745  hardcode_direct_GCJ=no
12746  hardcode_minus_L_GCJ=no
12747  hardcode_shlibpath_var_GCJ=unsupported
12748  link_all_deplibs_GCJ=unknown
12749  hardcode_automatic_GCJ=no
12750  module_cmds_GCJ=
12751  module_expsym_cmds_GCJ=
12752  always_export_symbols_GCJ=no
12753  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12754  # include_expsyms should be a list of space-separated symbols to be *always*
12755  # included in the symbol list
12756  include_expsyms_GCJ=
12757  # exclude_expsyms can be an extended regexp of symbols to exclude
12758  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12759  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12760  # as well as any symbol that contains `d'.
12761  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
12762  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12763  # platforms (ab)use it in PIC code, but their linkers get confused if
12764  # the symbol is explicitly referenced.  Since portable code cannot
12765  # rely on this symbol name, it's probably fine to never include it in
12766  # preloaded symbol tables.
12767  extract_expsyms_cmds=
12768  # Just being paranoid about ensuring that cc_basename is set.
12769  for cc_temp in $compiler""; do
12770  case $cc_temp in
12771    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12772    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12773    \-*) ;;
12774    *) break;;
12775  esac
12776done
12777cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12778
12779  case $host_os in
12780  cygwin* | mingw* | pw32*)
12781    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12782    # When not using gcc, we currently assume that we are using
12783    # Microsoft Visual C++.
12784    if test "$GCC" != yes; then
12785      with_gnu_ld=no
12786    fi
12787    ;;
12788  openbsd*)
12789    with_gnu_ld=no
12790    ;;
12791  esac
12792
12793  ld_shlibs_GCJ=yes
12794  if test "$with_gnu_ld" = yes; then
12795    # If archive_cmds runs LD, not CC, wlarc should be empty
12796    wlarc='${wl}'
12797
12798    # Set some defaults for GNU ld with shared library support. These
12799    # are reset later if shared libraries are not supported. Putting them
12800    # here allows them to be overridden if necessary.
12801    runpath_var=LD_RUN_PATH
12802    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
12803    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
12804    # ancient GNU ld didn't support --whole-archive et. al.
12805    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12806	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12807      else
12808  	whole_archive_flag_spec_GCJ=
12809    fi
12810    supports_anon_versioning=no
12811    case `$LD -v 2>/dev/null` in
12812      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12813      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12814      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12815      *\ 2.11.*) ;; # other 2.11 versions
12816      *) supports_anon_versioning=yes ;;
12817    esac
12818
12819    # See if GNU ld supports shared libraries.
12820    case $host_os in
12821    aix3* | aix4* | aix5*)
12822      # On AIX/PPC, the GNU linker is very broken
12823      if test "$host_cpu" != ia64; then
12824	ld_shlibs_GCJ=no
12825	cat <<EOF 1>&2
12826
12827*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12828*** to be unable to reliably create shared libraries on AIX.
12829*** Therefore, libtool is disabling shared libraries support.  If you
12830*** really care for shared libraries, you may want to modify your PATH
12831*** so that a non-GNU linker is found, and then restart.
12832
12833EOF
12834      fi
12835      ;;
12836
12837    amigaos*)
12838      archive_cmds_GCJ='$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)'
12839      hardcode_libdir_flag_spec_GCJ='-L$libdir'
12840      hardcode_minus_L_GCJ=yes
12841
12842      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12843      # that the semantics of dynamic libraries on AmigaOS, at least up
12844      # to version 4, is to share data among multiple programs linked
12845      # with the same dynamic library.  Since this doesn't match the
12846      # behavior of shared libraries on other platforms, we can't use
12847      # them.
12848      ld_shlibs_GCJ=no
12849      ;;
12850
12851    beos*)
12852      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12853	allow_undefined_flag_GCJ=unsupported
12854	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12855	# support --undefined.  This deserves some investigation.  FIXME
12856	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12857      else
12858	ld_shlibs_GCJ=no
12859      fi
12860      ;;
12861
12862    cygwin* | mingw* | pw32*)
12863      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
12864      # as there is no search path for DLLs.
12865      hardcode_libdir_flag_spec_GCJ='-L$libdir'
12866      allow_undefined_flag_GCJ=unsupported
12867      always_export_symbols_GCJ=no
12868      enable_shared_with_static_runtimes_GCJ=yes
12869      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12870
12871      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12872        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12873	# If the export-symbols file already is a .def file (1st line
12874	# is EXPORTS), use it as is; otherwise, prepend...
12875	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12876	  cp $export_symbols $output_objdir/$soname.def;
12877	else
12878	  echo EXPORTS > $output_objdir/$soname.def;
12879	  cat $export_symbols >> $output_objdir/$soname.def;
12880	fi~
12881	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12882      else
12883	ld_shlibs_GCJ=no
12884      fi
12885      ;;
12886
12887    linux*)
12888      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12889	tmp_addflag=
12890	case $cc_basename,$host_cpu in
12891	pgcc*)				# Portland Group C compiler
12892	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12893	  tmp_addflag=' $pic_flag'
12894	  ;;
12895	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
12896	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12897	  tmp_addflag=' $pic_flag -Mnomain' ;;
12898	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
12899	  tmp_addflag=' -i_dynamic' ;;
12900	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12901	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12902	ifc* | ifort*)			# Intel Fortran compiler
12903	  tmp_addflag=' -nofor_main' ;;
12904	esac
12905	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12906
12907	if test $supports_anon_versioning = yes; then
12908	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
12909  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12910  $echo "local: *; };" >> $output_objdir/$libname.ver~
12911	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12912	fi
12913      else
12914	ld_shlibs_GCJ=no
12915      fi
12916      ;;
12917
12918    netbsd*)
12919      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12920	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12921	wlarc=
12922      else
12923	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12924	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12925      fi
12926      ;;
12927
12928    solaris* | sysv5*)
12929      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12930	ld_shlibs_GCJ=no
12931	cat <<EOF 1>&2
12932
12933*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12934*** create shared libraries on Solaris systems.  Therefore, libtool
12935*** is disabling shared libraries support.  We urge you to upgrade GNU
12936*** binutils to release 2.9.1 or newer.  Another option is to modify
12937*** your PATH or compiler configuration so that the native linker is
12938*** used, and then restart.
12939
12940EOF
12941      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12942	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12944      else
12945	ld_shlibs_GCJ=no
12946      fi
12947      ;;
12948
12949    sunos4*)
12950      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12951      wlarc=
12952      hardcode_direct_GCJ=yes
12953      hardcode_shlibpath_var_GCJ=no
12954      ;;
12955
12956    *)
12957      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12958	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12959	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12960      else
12961	ld_shlibs_GCJ=no
12962      fi
12963      ;;
12964    esac
12965
12966    if test "$ld_shlibs_GCJ" = no; then
12967      runpath_var=
12968      hardcode_libdir_flag_spec_GCJ=
12969      export_dynamic_flag_spec_GCJ=
12970      whole_archive_flag_spec_GCJ=
12971    fi
12972  else
12973    # PORTME fill in a description of your system's linker (not GNU ld)
12974    case $host_os in
12975    aix3*)
12976      allow_undefined_flag_GCJ=unsupported
12977      always_export_symbols_GCJ=yes
12978      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12979      # Note: this linker hardcodes the directories in LIBPATH if there
12980      # are no directories specified by -L.
12981      hardcode_minus_L_GCJ=yes
12982      if test "$GCC" = yes && test -z "$link_static_flag"; then
12983	# Neither direct hardcoding nor static linking is supported with a
12984	# broken collect2.
12985	hardcode_direct_GCJ=unsupported
12986      fi
12987      ;;
12988
12989    aix4* | aix5*)
12990      if test "$host_cpu" = ia64; then
12991	# On IA64, the linker does run time linking by default, so we don't
12992	# have to do anything special.
12993	aix_use_runtimelinking=no
12994	exp_sym_flag='-Bexport'
12995	no_entry_flag=""
12996      else
12997	# If we're using GNU nm, then we don't want the "-C" option.
12998	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12999	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13000	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13001	else
13002	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13003	fi
13004	aix_use_runtimelinking=no
13005
13006	# Test if we are trying to use run time linking or normal
13007	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13008	# need to do runtime linking.
13009	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13010	  for ld_flag in $LDFLAGS; do
13011  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13012  	    aix_use_runtimelinking=yes
13013  	    break
13014  	  fi
13015	  done
13016	esac
13017
13018	exp_sym_flag='-bexport'
13019	no_entry_flag='-bnoentry'
13020      fi
13021
13022      # When large executables or shared objects are built, AIX ld can
13023      # have problems creating the table of contents.  If linking a library
13024      # or program results in "error TOC overflow" add -mminimal-toc to
13025      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13026      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13027
13028      archive_cmds_GCJ=''
13029      hardcode_direct_GCJ=yes
13030      hardcode_libdir_separator_GCJ=':'
13031      link_all_deplibs_GCJ=yes
13032
13033      if test "$GCC" = yes; then
13034	case $host_os in aix4.[012]|aix4.[012].*)
13035	# We only want to do this on AIX 4.2 and lower, the check
13036	# below for broken collect2 doesn't work under 4.3+
13037	  collect2name=`${CC} -print-prog-name=collect2`
13038	  if test -f "$collect2name" && \
13039  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13040	  then
13041  	  # We have reworked collect2
13042  	  hardcode_direct_GCJ=yes
13043	  else
13044  	  # We have old collect2
13045  	  hardcode_direct_GCJ=unsupported
13046  	  # It fails to find uninstalled libraries when the uninstalled
13047  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13048  	  # to unsupported forces relinking
13049  	  hardcode_minus_L_GCJ=yes
13050  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
13051  	  hardcode_libdir_separator_GCJ=
13052	  fi
13053	esac
13054	shared_flag='-shared'
13055	if test "$aix_use_runtimelinking" = yes; then
13056	  shared_flag="$shared_flag "'${wl}-G'
13057	fi
13058      else
13059	# not using gcc
13060	if test "$host_cpu" = ia64; then
13061  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13062  	# chokes on -Wl,-G. The following line is correct:
13063	  shared_flag='-G'
13064	else
13065  	if test "$aix_use_runtimelinking" = yes; then
13066	    shared_flag='${wl}-G'
13067	  else
13068	    shared_flag='${wl}-bM:SRE'
13069  	fi
13070	fi
13071      fi
13072
13073      # It seems that -bexpall does not export symbols beginning with
13074      # underscore (_), so it is better to generate a list of symbols to export.
13075      always_export_symbols_GCJ=yes
13076      if test "$aix_use_runtimelinking" = yes; then
13077	# Warning - without using the other runtime loading flags (-brtl),
13078	# -berok will link without error, but may produce a broken library.
13079	allow_undefined_flag_GCJ='-berok'
13080       # Determine the default libpath from the value encoded in an empty executable.
13081       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h.  */
13083
13084int
13085main ()
13086{
13087
13088  ;
13089  return 0;
13090}
13091_ACEOF
13092if ac_fn_c_try_link "$LINENO"; then :
13093
13094aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13095}'`
13096# Check for a 64-bit object if we didn't find anything.
13097if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13098}'`; fi
13099fi
13100rm -f core conftest.err conftest.$ac_objext \
13101    conftest$ac_exeext conftest.$ac_ext
13102if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13103
13104       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13105	archive_expsym_cmds_GCJ="\$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"
13106       else
13107	if test "$host_cpu" = ia64; then
13108	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
13109	  allow_undefined_flag_GCJ="-z nodefs"
13110	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13111	else
13112	 # Determine the default libpath from the value encoded in an empty executable.
13113	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114/* end confdefs.h.  */
13115
13116int
13117main ()
13118{
13119
13120  ;
13121  return 0;
13122}
13123_ACEOF
13124if ac_fn_c_try_link "$LINENO"; then :
13125
13126aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13127}'`
13128# Check for a 64-bit object if we didn't find anything.
13129if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13130}'`; fi
13131fi
13132rm -f core conftest.err conftest.$ac_objext \
13133    conftest$ac_exeext conftest.$ac_ext
13134if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13135
13136	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13137	  # Warning - without using the other run time loading flags,
13138	  # -berok will link without error, but may produce a broken library.
13139	  no_undefined_flag_GCJ=' ${wl}-bernotok'
13140	  allow_undefined_flag_GCJ=' ${wl}-berok'
13141	  # -bexpall does not export symbols beginning with underscore (_)
13142	  always_export_symbols_GCJ=yes
13143	  # Exported symbols can be pulled into shared objects from archives
13144	  whole_archive_flag_spec_GCJ=' '
13145	  archive_cmds_need_lc_GCJ=yes
13146	  # This is similar to how AIX traditionally builds its shared libraries.
13147	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13148	fi
13149      fi
13150      ;;
13151
13152    amigaos*)
13153      archive_cmds_GCJ='$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)'
13154      hardcode_libdir_flag_spec_GCJ='-L$libdir'
13155      hardcode_minus_L_GCJ=yes
13156      # see comment about different semantics on the GNU ld section
13157      ld_shlibs_GCJ=no
13158      ;;
13159
13160    bsdi[45]*)
13161      export_dynamic_flag_spec_GCJ=-rdynamic
13162      ;;
13163
13164    cygwin* | mingw* | pw32*)
13165      # When not using gcc, we currently assume that we are using
13166      # Microsoft Visual C++.
13167      # hardcode_libdir_flag_spec is actually meaningless, as there is
13168      # no search path for DLLs.
13169      hardcode_libdir_flag_spec_GCJ=' '
13170      allow_undefined_flag_GCJ=unsupported
13171      # Tell ltmain to make .lib files, not .a files.
13172      libext=lib
13173      # Tell ltmain to make .dll files, not .so files.
13174      shrext_cmds=".dll"
13175      # FIXME: Setting linknames here is a bad hack.
13176      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13177      # The linker will automatically build a .lib file if we build a DLL.
13178      old_archive_From_new_cmds_GCJ='true'
13179      # FIXME: Should let the user specify the lib program.
13180      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
13181      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
13182      enable_shared_with_static_runtimes_GCJ=yes
13183      ;;
13184
13185    darwin* | rhapsody*)
13186      case $host_os in
13187        rhapsody* | darwin1.[012])
13188         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
13189         ;;
13190       *) # Darwin 1.3 on
13191         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13192           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13193         else
13194           case ${MACOSX_DEPLOYMENT_TARGET} in
13195             10.[012])
13196               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13197               ;;
13198             10.*)
13199               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
13200               ;;
13201           esac
13202         fi
13203         ;;
13204      esac
13205      archive_cmds_need_lc_GCJ=no
13206      hardcode_direct_GCJ=no
13207      hardcode_automatic_GCJ=yes
13208      hardcode_shlibpath_var_GCJ=unsupported
13209      whole_archive_flag_spec_GCJ=''
13210      link_all_deplibs_GCJ=yes
13211    if test "$GCC" = yes ; then
13212    	output_verbose_link_cmd='echo'
13213        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13214      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13215      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13216      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13217      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13218    else
13219      case $cc_basename in
13220        xlc*)
13221         output_verbose_link_cmd='echo'
13222         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13223         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13224          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13225         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13226          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13227          ;;
13228       *)
13229         ld_shlibs_GCJ=no
13230          ;;
13231      esac
13232    fi
13233      ;;
13234
13235    dgux*)
13236      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13237      hardcode_libdir_flag_spec_GCJ='-L$libdir'
13238      hardcode_shlibpath_var_GCJ=no
13239      ;;
13240
13241    freebsd1*)
13242      ld_shlibs_GCJ=no
13243      ;;
13244
13245    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13246    # support.  Future versions do this automatically, but an explicit c++rt0.o
13247    # does not break anything, and helps significantly (at the cost of a little
13248    # extra space).
13249    freebsd2.2*)
13250      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13251      hardcode_libdir_flag_spec_GCJ='-R$libdir'
13252      hardcode_direct_GCJ=yes
13253      hardcode_shlibpath_var_GCJ=no
13254      ;;
13255
13256    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13257    freebsd2*)
13258      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13259      hardcode_direct_GCJ=yes
13260      hardcode_minus_L_GCJ=yes
13261      hardcode_shlibpath_var_GCJ=no
13262      ;;
13263
13264    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13265    freebsd* | kfreebsd*-gnu | dragonfly*)
13266      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13267      hardcode_libdir_flag_spec_GCJ='-R$libdir'
13268      hardcode_direct_GCJ=yes
13269      hardcode_shlibpath_var_GCJ=no
13270      ;;
13271
13272    hpux9*)
13273      if test "$GCC" = yes; then
13274	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13275      else
13276	archive_cmds_GCJ='$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'
13277      fi
13278      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13279      hardcode_libdir_separator_GCJ=:
13280      hardcode_direct_GCJ=yes
13281
13282      # hardcode_minus_L: Not really in the search PATH,
13283      # but as the default location of the library.
13284      hardcode_minus_L_GCJ=yes
13285      export_dynamic_flag_spec_GCJ='${wl}-E'
13286      ;;
13287
13288    hpux10* | hpux11*)
13289      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13290	case $host_cpu in
13291	hppa*64*|ia64*)
13292	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13293	  ;;
13294	*)
13295	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13296	  ;;
13297	esac
13298      else
13299	case $host_cpu in
13300	hppa*64*|ia64*)
13301	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13302	  ;;
13303	*)
13304	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13305	  ;;
13306	esac
13307      fi
13308      if test "$with_gnu_ld" = no; then
13309	case $host_cpu in
13310	hppa*64*)
13311	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13312	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
13313	  hardcode_libdir_separator_GCJ=:
13314	  hardcode_direct_GCJ=no
13315	  hardcode_shlibpath_var_GCJ=no
13316	  ;;
13317	ia64*)
13318	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
13319	  hardcode_direct_GCJ=no
13320	  hardcode_shlibpath_var_GCJ=no
13321
13322	  # hardcode_minus_L: Not really in the search PATH,
13323	  # but as the default location of the library.
13324	  hardcode_minus_L_GCJ=yes
13325	  ;;
13326	*)
13327	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13328	  hardcode_libdir_separator_GCJ=:
13329	  hardcode_direct_GCJ=yes
13330	  export_dynamic_flag_spec_GCJ='${wl}-E'
13331
13332	  # hardcode_minus_L: Not really in the search PATH,
13333	  # but as the default location of the library.
13334	  hardcode_minus_L_GCJ=yes
13335	  ;;
13336	esac
13337      fi
13338      ;;
13339
13340    irix5* | irix6* | nonstopux*)
13341      if test "$GCC" = yes; then
13342	archive_cmds_GCJ='$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'
13343      else
13344	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13345	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
13346      fi
13347      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13348      hardcode_libdir_separator_GCJ=:
13349      link_all_deplibs_GCJ=yes
13350      ;;
13351
13352    netbsd*)
13353      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13354	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13355      else
13356	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13357      fi
13358      hardcode_libdir_flag_spec_GCJ='-R$libdir'
13359      hardcode_direct_GCJ=yes
13360      hardcode_shlibpath_var_GCJ=no
13361      ;;
13362
13363    newsos6)
13364      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13365      hardcode_direct_GCJ=yes
13366      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13367      hardcode_libdir_separator_GCJ=:
13368      hardcode_shlibpath_var_GCJ=no
13369      ;;
13370
13371    openbsd*)
13372      hardcode_direct_GCJ=yes
13373      hardcode_shlibpath_var_GCJ=no
13374      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13375	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13376	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13377	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13378	export_dynamic_flag_spec_GCJ='${wl}-E'
13379      else
13380       case $host_os in
13381	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13382	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13383	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
13384	   ;;
13385	 *)
13386	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13387	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13388	   ;;
13389       esac
13390      fi
13391      ;;
13392
13393    os2*)
13394      hardcode_libdir_flag_spec_GCJ='-L$libdir'
13395      hardcode_minus_L_GCJ=yes
13396      allow_undefined_flag_GCJ=unsupported
13397      archive_cmds_GCJ='$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'
13398      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13399      ;;
13400
13401    osf3*)
13402      if test "$GCC" = yes; then
13403	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13404	archive_cmds_GCJ='$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'
13405      else
13406	allow_undefined_flag_GCJ=' -expect_unresolved \*'
13407	archive_cmds_GCJ='$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'
13408      fi
13409      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13410      hardcode_libdir_separator_GCJ=:
13411      ;;
13412
13413    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13414      if test "$GCC" = yes; then
13415	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13416	archive_cmds_GCJ='$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'
13417	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13418      else
13419	allow_undefined_flag_GCJ=' -expect_unresolved \*'
13420	archive_cmds_GCJ='$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'
13421	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13422	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13423
13424	# Both c and cxx compiler support -rpath directly
13425	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
13426      fi
13427      hardcode_libdir_separator_GCJ=:
13428      ;;
13429
13430    sco3.2v5*)
13431      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13432      hardcode_shlibpath_var_GCJ=no
13433      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
13434      runpath_var=LD_RUN_PATH
13435      hardcode_runpath_var=yes
13436      ;;
13437
13438    solaris*)
13439      no_undefined_flag_GCJ=' -z text'
13440      if test "$GCC" = yes; then
13441	wlarc='${wl}'
13442	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13443	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13444	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13445      else
13446	wlarc=''
13447	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13448	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13449  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13450      fi
13451      hardcode_libdir_flag_spec_GCJ='-R$libdir'
13452      hardcode_shlibpath_var_GCJ=no
13453      case $host_os in
13454      solaris2.[0-5] | solaris2.[0-5].*) ;;
13455      *)
13456 	# The compiler driver will combine linker options so we
13457 	# cannot just pass the convience library names through
13458 	# without $wl, iff we do not link with $LD.
13459 	# Luckily, gcc supports the same syntax we need for Sun Studio.
13460 	# Supported since Solaris 2.6 (maybe 2.5.1?)
13461 	case $wlarc in
13462 	'')
13463 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
13464 	*)
13465 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13466 	esac ;;
13467      esac
13468      link_all_deplibs_GCJ=yes
13469      ;;
13470
13471    sunos4*)
13472      if test "x$host_vendor" = xsequent; then
13473	# Use $CC to link under sequent, because it throws in some extra .o
13474	# files that make .init and .fini sections work.
13475	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13476      else
13477	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13478      fi
13479      hardcode_libdir_flag_spec_GCJ='-L$libdir'
13480      hardcode_direct_GCJ=yes
13481      hardcode_minus_L_GCJ=yes
13482      hardcode_shlibpath_var_GCJ=no
13483      ;;
13484
13485    sysv4)
13486      case $host_vendor in
13487	sni)
13488	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489	  hardcode_direct_GCJ=yes # is this really true???
13490	;;
13491	siemens)
13492	  ## LD is ld it makes a PLAMLIB
13493	  ## CC just makes a GrossModule.
13494	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13495	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
13496	  hardcode_direct_GCJ=no
13497        ;;
13498	motorola)
13499	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13500	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
13501	;;
13502      esac
13503      runpath_var='LD_RUN_PATH'
13504      hardcode_shlibpath_var_GCJ=no
13505      ;;
13506
13507    sysv4.3*)
13508      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13509      hardcode_shlibpath_var_GCJ=no
13510      export_dynamic_flag_spec_GCJ='-Bexport'
13511      ;;
13512
13513    sysv4*MP*)
13514      if test -d /usr/nec; then
13515	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13516	hardcode_shlibpath_var_GCJ=no
13517	runpath_var=LD_RUN_PATH
13518	hardcode_runpath_var=yes
13519	ld_shlibs_GCJ=yes
13520      fi
13521      ;;
13522
13523    sysv4.2uw2*)
13524      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13525      hardcode_direct_GCJ=yes
13526      hardcode_minus_L_GCJ=no
13527      hardcode_shlibpath_var_GCJ=no
13528      hardcode_runpath_var=yes
13529      runpath_var=LD_RUN_PATH
13530      ;;
13531
13532   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13533      no_undefined_flag_GCJ='${wl}-z ${wl}text'
13534      if test "$GCC" = yes; then
13535	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13536      else
13537	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13538      fi
13539      runpath_var='LD_RUN_PATH'
13540      hardcode_shlibpath_var_GCJ=no
13541      ;;
13542
13543    sysv5*)
13544      no_undefined_flag_GCJ=' -z text'
13545      # $CC -shared without GNU ld will not create a library from C++
13546      # object files and a static libstdc++, better avoid it by now
13547      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13549  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13550      hardcode_libdir_flag_spec_GCJ=
13551      hardcode_shlibpath_var_GCJ=no
13552      runpath_var='LD_RUN_PATH'
13553      ;;
13554
13555    uts4*)
13556      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13557      hardcode_libdir_flag_spec_GCJ='-L$libdir'
13558      hardcode_shlibpath_var_GCJ=no
13559      ;;
13560
13561    *)
13562      ld_shlibs_GCJ=no
13563      ;;
13564    esac
13565  fi
13566
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
13568$as_echo "$ld_shlibs_GCJ" >&6; }
13569test "$ld_shlibs_GCJ" = no && can_build_shared=no
13570
13571variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13572if test "$GCC" = yes; then
13573  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13574fi
13575
13576#
13577# Do we need to explicitly link libc?
13578#
13579case "x$archive_cmds_need_lc_GCJ" in
13580x|xyes)
13581  # Assume -lc should be added
13582  archive_cmds_need_lc_GCJ=yes
13583
13584  if test "$enable_shared" = yes && test "$GCC" = yes; then
13585    case $archive_cmds_GCJ in
13586    *'~'*)
13587      # FIXME: we may have to deal with multi-command sequences.
13588      ;;
13589    '$CC '*)
13590      # Test whether the compiler implicitly links with -lc since on some
13591      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13592      # to ld, don't add -lc before -lgcc.
13593      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13594$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13595      $rm conftest*
13596      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13597
13598      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13599  (eval $ac_compile) 2>&5
13600  ac_status=$?
13601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13602  test $ac_status = 0; } 2>conftest.err; then
13603        soname=conftest
13604        lib=conftest
13605        libobjs=conftest.$ac_objext
13606        deplibs=
13607        wl=$lt_prog_compiler_wl_GCJ
13608        compiler_flags=-v
13609        linker_flags=-v
13610        verstring=
13611        output_objdir=.
13612        libname=conftest
13613        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
13614        allow_undefined_flag_GCJ=
13615        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13616  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13617  ac_status=$?
13618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13619  test $ac_status = 0; }
13620        then
13621	  archive_cmds_need_lc_GCJ=no
13622        else
13623	  archive_cmds_need_lc_GCJ=yes
13624        fi
13625        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
13626      else
13627        cat conftest.err 1>&5
13628      fi
13629      $rm conftest*
13630      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
13631$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
13632      ;;
13633    esac
13634  fi
13635  ;;
13636esac
13637
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13639$as_echo_n "checking dynamic linker characteristics... " >&6; }
13640library_names_spec=
13641libname_spec='lib$name'
13642soname_spec=
13643shrext_cmds=".so"
13644postinstall_cmds=
13645postuninstall_cmds=
13646finish_cmds=
13647finish_eval=
13648shlibpath_var=
13649shlibpath_overrides_runpath=unknown
13650version_type=none
13651dynamic_linker="$host_os ld.so"
13652sys_lib_dlsearch_path_spec="/lib /usr/lib"
13653if test "$GCC" = yes; then
13654  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13655  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13656    # if the path contains ";" then we assume it to be the separator
13657    # otherwise default to the standard path separator (i.e. ":") - it is
13658    # assumed that no part of a normal pathname contains ";" but that should
13659    # okay in the real world where ";" in dirpaths is itself problematic.
13660    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13661  else
13662    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13663  fi
13664else
13665  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13666fi
13667need_lib_prefix=unknown
13668hardcode_into_libs=no
13669
13670# when you set need_version to no, make sure it does not cause -set_version
13671# flags to be left without arguments
13672need_version=unknown
13673
13674case $host_os in
13675aix3*)
13676  version_type=linux
13677  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13678  shlibpath_var=LIBPATH
13679
13680  # AIX 3 has no versioning support, so we append a major version to the name.
13681  soname_spec='${libname}${release}${shared_ext}$major'
13682  ;;
13683
13684aix4* | aix5*)
13685  version_type=linux
13686  need_lib_prefix=no
13687  need_version=no
13688  hardcode_into_libs=yes
13689  if test "$host_cpu" = ia64; then
13690    # AIX 5 supports IA64
13691    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13692    shlibpath_var=LD_LIBRARY_PATH
13693  else
13694    # With GCC up to 2.95.x, collect2 would create an import file
13695    # for dependence libraries.  The import file would start with
13696    # the line `#! .'.  This would cause the generated library to
13697    # depend on `.', always an invalid library.  This was fixed in
13698    # development snapshots of GCC prior to 3.0.
13699    case $host_os in
13700      aix4 | aix4.[01] | aix4.[01].*)
13701      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13702	   echo ' yes '
13703	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13704	:
13705      else
13706	can_build_shared=no
13707      fi
13708      ;;
13709    esac
13710    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13711    # soname into executable. Probably we can add versioning support to
13712    # collect2, so additional links can be useful in future.
13713    if test "$aix_use_runtimelinking" = yes; then
13714      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13715      # instead of lib<name>.a to let people know that these are not
13716      # typical AIX shared libraries.
13717      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13718    else
13719      # We preserve .a as extension for shared libraries through AIX4.2
13720      # and later when we are not doing run time linking.
13721      library_names_spec='${libname}${release}.a $libname.a'
13722      soname_spec='${libname}${release}${shared_ext}$major'
13723    fi
13724    shlibpath_var=LIBPATH
13725  fi
13726  ;;
13727
13728amigaos*)
13729  library_names_spec='$libname.ixlibrary $libname.a'
13730  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13731  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'
13732  ;;
13733
13734beos*)
13735  library_names_spec='${libname}${shared_ext}'
13736  dynamic_linker="$host_os ld.so"
13737  shlibpath_var=LIBRARY_PATH
13738  ;;
13739
13740bsdi[45]*)
13741  version_type=linux
13742  need_version=no
13743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13744  soname_spec='${libname}${release}${shared_ext}$major'
13745  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13746  shlibpath_var=LD_LIBRARY_PATH
13747  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13748  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13749  # the default ld.so.conf also contains /usr/contrib/lib and
13750  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13751  # libtool to hard-code these into programs
13752  ;;
13753
13754cygwin* | mingw* | pw32*)
13755  version_type=windows
13756  shrext_cmds=".dll"
13757  need_version=no
13758  need_lib_prefix=no
13759
13760  case $GCC,$host_os in
13761  yes,cygwin* | yes,mingw* | yes,pw32*)
13762    library_names_spec='$libname.dll.a'
13763    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13764    postinstall_cmds='base_file=`basename \${file}`~
13765      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13766      dldir=$destdir/`dirname \$dlpath`~
13767      test -d \$dldir || mkdir -p \$dldir~
13768      $install_prog $dir/$dlname \$dldir/$dlname~
13769      chmod a+x \$dldir/$dlname'
13770    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13771      dlpath=$dir/\$dldll~
13772       $rm \$dlpath'
13773    shlibpath_overrides_runpath=yes
13774
13775    case $host_os in
13776    cygwin*)
13777      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13778      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13779      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13780      ;;
13781    mingw*)
13782      # MinGW DLLs use traditional 'lib' prefix
13783      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13784      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13785      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13786        # It is most probably a Windows format PATH printed by
13787        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13788        # path with ; separators, and with drive letters. We can handle the
13789        # drive letters (cygwin fileutils understands them), so leave them,
13790        # especially as we might pass files found there to a mingw objdump,
13791        # which wouldn't understand a cygwinified path. Ahh.
13792        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13793      else
13794        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13795      fi
13796      ;;
13797    pw32*)
13798      # pw32 DLLs use 'pw' prefix rather than 'lib'
13799      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13800      ;;
13801    esac
13802    ;;
13803
13804  *)
13805    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13806    ;;
13807  esac
13808  dynamic_linker='Win32 ld.exe'
13809  # FIXME: first we should search . and the directory the executable is in
13810  shlibpath_var=PATH
13811  ;;
13812
13813darwin* | rhapsody*)
13814  dynamic_linker="$host_os dyld"
13815  version_type=darwin
13816  need_lib_prefix=no
13817  need_version=no
13818  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13819  soname_spec='${libname}${release}${major}$shared_ext'
13820  shlibpath_overrides_runpath=yes
13821  shlibpath_var=DYLD_LIBRARY_PATH
13822  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13823  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13824  if test "$GCC" = yes; then
13825    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13826  else
13827    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13828  fi
13829  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13830  ;;
13831
13832dgux*)
13833  version_type=linux
13834  need_lib_prefix=no
13835  need_version=no
13836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13837  soname_spec='${libname}${release}${shared_ext}$major'
13838  shlibpath_var=LD_LIBRARY_PATH
13839  ;;
13840
13841freebsd1*)
13842  dynamic_linker=no
13843  ;;
13844
13845kfreebsd*-gnu)
13846  version_type=linux
13847  need_lib_prefix=no
13848  need_version=no
13849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13850  soname_spec='${libname}${release}${shared_ext}$major'
13851  shlibpath_var=LD_LIBRARY_PATH
13852  shlibpath_overrides_runpath=no
13853  hardcode_into_libs=yes
13854  dynamic_linker='GNU ld.so'
13855  ;;
13856
13857freebsd* | dragonfly*)
13858  # DragonFly does not have aout.  When/if they implement a new
13859  # versioning mechanism, adjust this.
13860  if test -x /usr/bin/objformat; then
13861    objformat=`/usr/bin/objformat`
13862  else
13863    case $host_os in
13864    freebsd[123]*) objformat=aout ;;
13865    *) objformat=elf ;;
13866    esac
13867  fi
13868  version_type=freebsd-$objformat
13869  case $version_type in
13870    freebsd-elf*)
13871      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13872      need_version=no
13873      need_lib_prefix=no
13874      ;;
13875    freebsd-*)
13876      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13877      need_version=yes
13878      ;;
13879  esac
13880  shlibpath_var=LD_LIBRARY_PATH
13881  case $host_os in
13882  freebsd2*)
13883    shlibpath_overrides_runpath=yes
13884    ;;
13885  freebsd3.[01]* | freebsdelf3.[01]*)
13886    shlibpath_overrides_runpath=yes
13887    hardcode_into_libs=yes
13888    ;;
13889  *) # from 3.2 on
13890    shlibpath_overrides_runpath=no
13891    hardcode_into_libs=yes
13892    ;;
13893  esac
13894  ;;
13895
13896gnu*)
13897  version_type=linux
13898  need_lib_prefix=no
13899  need_version=no
13900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13901  soname_spec='${libname}${release}${shared_ext}$major'
13902  shlibpath_var=LD_LIBRARY_PATH
13903  hardcode_into_libs=yes
13904  ;;
13905
13906hpux9* | hpux10* | hpux11*)
13907  # Give a soname corresponding to the major version so that dld.sl refuses to
13908  # link against other versions.
13909  version_type=sunos
13910  need_lib_prefix=no
13911  need_version=no
13912  case $host_cpu in
13913  ia64*)
13914    shrext_cmds='.so'
13915    hardcode_into_libs=yes
13916    dynamic_linker="$host_os dld.so"
13917    shlibpath_var=LD_LIBRARY_PATH
13918    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13919    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920    soname_spec='${libname}${release}${shared_ext}$major'
13921    if test "X$HPUX_IA64_MODE" = X32; then
13922      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13923    else
13924      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13925    fi
13926    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13927    ;;
13928   hppa*64*)
13929     shrext_cmds='.sl'
13930     hardcode_into_libs=yes
13931     dynamic_linker="$host_os dld.sl"
13932     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13933     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935     soname_spec='${libname}${release}${shared_ext}$major'
13936     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13937     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13938     ;;
13939   *)
13940    shrext_cmds='.sl'
13941    dynamic_linker="$host_os dld.sl"
13942    shlibpath_var=SHLIB_PATH
13943    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13944    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945    soname_spec='${libname}${release}${shared_ext}$major'
13946    ;;
13947  esac
13948  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13949  postinstall_cmds='chmod 555 $lib'
13950  ;;
13951
13952irix5* | irix6* | nonstopux*)
13953  case $host_os in
13954    nonstopux*) version_type=nonstopux ;;
13955    *)
13956	if test "$lt_cv_prog_gnu_ld" = yes; then
13957		version_type=linux
13958	else
13959		version_type=irix
13960	fi ;;
13961  esac
13962  need_lib_prefix=no
13963  need_version=no
13964  soname_spec='${libname}${release}${shared_ext}$major'
13965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13966  case $host_os in
13967  irix5* | nonstopux*)
13968    libsuff= shlibsuff=
13969    ;;
13970  *)
13971    case $LD in # libtool.m4 will add one of these switches to LD
13972    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13973      libsuff= shlibsuff= libmagic=32-bit;;
13974    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13975      libsuff=32 shlibsuff=N32 libmagic=N32;;
13976    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13977      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13978    *) libsuff= shlibsuff= libmagic=never-match;;
13979    esac
13980    ;;
13981  esac
13982  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13983  shlibpath_overrides_runpath=no
13984  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13985  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13986  hardcode_into_libs=yes
13987  ;;
13988
13989# No shared lib support for Linux oldld, aout, or coff.
13990linux*oldld* | linux*aout* | linux*coff*)
13991  dynamic_linker=no
13992  ;;
13993
13994# This must be Linux ELF.
13995linux*)
13996  version_type=linux
13997  need_lib_prefix=no
13998  need_version=no
13999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000  soname_spec='${libname}${release}${shared_ext}$major'
14001  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14002  shlibpath_var=LD_LIBRARY_PATH
14003  shlibpath_overrides_runpath=no
14004  # This implies no fast_install, which is unacceptable.
14005  # Some rework will be needed to allow for fast_install
14006  # before this can be enabled.
14007  hardcode_into_libs=yes
14008
14009  # Append ld.so.conf contents to the search path
14010  if test -f /etc/ld.so.conf; then
14011    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14012    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14013  fi
14014
14015  # We used to test for /lib/ld.so.1 and disable shared libraries on
14016  # powerpc, because MkLinux only supported shared libraries with the
14017  # GNU dynamic linker.  Since this was broken with cross compilers,
14018  # most powerpc-linux boxes support dynamic linking these days and
14019  # people can always --disable-shared, the test was removed, and we
14020  # assume the GNU/Linux dynamic linker is in use.
14021  dynamic_linker='GNU/Linux ld.so'
14022  ;;
14023
14024knetbsd*-gnu)
14025  version_type=linux
14026  need_lib_prefix=no
14027  need_version=no
14028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14029  soname_spec='${libname}${release}${shared_ext}$major'
14030  shlibpath_var=LD_LIBRARY_PATH
14031  shlibpath_overrides_runpath=no
14032  hardcode_into_libs=yes
14033  dynamic_linker='GNU ld.so'
14034  ;;
14035
14036netbsd*)
14037  version_type=sunos
14038  need_lib_prefix=no
14039  need_version=no
14040  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14041    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14042    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14043    dynamic_linker='NetBSD (a.out) ld.so'
14044  else
14045    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14046    soname_spec='${libname}${release}${shared_ext}$major'
14047    dynamic_linker='NetBSD ld.elf_so'
14048  fi
14049  shlibpath_var=LD_LIBRARY_PATH
14050  shlibpath_overrides_runpath=yes
14051  hardcode_into_libs=yes
14052  ;;
14053
14054newsos6)
14055  version_type=linux
14056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057  shlibpath_var=LD_LIBRARY_PATH
14058  shlibpath_overrides_runpath=yes
14059  ;;
14060
14061nto-qnx*)
14062  version_type=linux
14063  need_lib_prefix=no
14064  need_version=no
14065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066  soname_spec='${libname}${release}${shared_ext}$major'
14067  shlibpath_var=LD_LIBRARY_PATH
14068  shlibpath_overrides_runpath=yes
14069  ;;
14070
14071openbsd*)
14072  version_type=sunos
14073  need_lib_prefix=no
14074  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14075  case $host_os in
14076    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14077    *)                         need_version=no  ;;
14078  esac
14079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14080  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14081  shlibpath_var=LD_LIBRARY_PATH
14082  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14083    case $host_os in
14084      openbsd2.[89] | openbsd2.[89].*)
14085	shlibpath_overrides_runpath=no
14086	;;
14087      *)
14088	shlibpath_overrides_runpath=yes
14089	;;
14090      esac
14091  else
14092    shlibpath_overrides_runpath=yes
14093  fi
14094  ;;
14095
14096os2*)
14097  libname_spec='$name'
14098  shrext_cmds=".dll"
14099  need_lib_prefix=no
14100  library_names_spec='$libname${shared_ext} $libname.a'
14101  dynamic_linker='OS/2 ld.exe'
14102  shlibpath_var=LIBPATH
14103  ;;
14104
14105osf3* | osf4* | osf5*)
14106  version_type=osf
14107  need_lib_prefix=no
14108  need_version=no
14109  soname_spec='${libname}${release}${shared_ext}$major'
14110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14111  shlibpath_var=LD_LIBRARY_PATH
14112  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14113  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14114  ;;
14115
14116sco3.2v5*)
14117  version_type=osf
14118  soname_spec='${libname}${release}${shared_ext}$major'
14119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120  shlibpath_var=LD_LIBRARY_PATH
14121  ;;
14122
14123solaris*)
14124  version_type=linux
14125  need_lib_prefix=no
14126  need_version=no
14127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14128  soname_spec='${libname}${release}${shared_ext}$major'
14129  shlibpath_var=LD_LIBRARY_PATH
14130  shlibpath_overrides_runpath=yes
14131  hardcode_into_libs=yes
14132  # ldd complains unless libraries are executable
14133  postinstall_cmds='chmod +x $lib'
14134  ;;
14135
14136sunos4*)
14137  version_type=sunos
14138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14139  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14140  shlibpath_var=LD_LIBRARY_PATH
14141  shlibpath_overrides_runpath=yes
14142  if test "$with_gnu_ld" = yes; then
14143    need_lib_prefix=no
14144  fi
14145  need_version=yes
14146  ;;
14147
14148sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14149  version_type=linux
14150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151  soname_spec='${libname}${release}${shared_ext}$major'
14152  shlibpath_var=LD_LIBRARY_PATH
14153  case $host_vendor in
14154    sni)
14155      shlibpath_overrides_runpath=no
14156      need_lib_prefix=no
14157      export_dynamic_flag_spec='${wl}-Blargedynsym'
14158      runpath_var=LD_RUN_PATH
14159      ;;
14160    siemens)
14161      need_lib_prefix=no
14162      ;;
14163    motorola)
14164      need_lib_prefix=no
14165      need_version=no
14166      shlibpath_overrides_runpath=no
14167      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14168      ;;
14169  esac
14170  ;;
14171
14172sysv4*MP*)
14173  if test -d /usr/nec ;then
14174    version_type=linux
14175    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14176    soname_spec='$libname${shared_ext}.$major'
14177    shlibpath_var=LD_LIBRARY_PATH
14178  fi
14179  ;;
14180
14181uts4*)
14182  version_type=linux
14183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184  soname_spec='${libname}${release}${shared_ext}$major'
14185  shlibpath_var=LD_LIBRARY_PATH
14186  ;;
14187
14188*)
14189  dynamic_linker=no
14190  ;;
14191esac
14192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14193$as_echo "$dynamic_linker" >&6; }
14194test "$dynamic_linker" = no && can_build_shared=no
14195
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14197$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14198hardcode_action_GCJ=
14199if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14200   test -n "$runpath_var_GCJ" || \
14201   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
14202
14203  # We can hardcode non-existant directories.
14204  if test "$hardcode_direct_GCJ" != no &&
14205     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14206     # have to relink, otherwise we might link with an installed library
14207     # when we should be linking with a yet-to-be-installed one
14208     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
14209     test "$hardcode_minus_L_GCJ" != no; then
14210    # Linking always hardcodes the temporary library directory.
14211    hardcode_action_GCJ=relink
14212  else
14213    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14214    hardcode_action_GCJ=immediate
14215  fi
14216else
14217  # We cannot hardcode anything, or else we can only hardcode existing
14218  # directories.
14219  hardcode_action_GCJ=unsupported
14220fi
14221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
14222$as_echo "$hardcode_action_GCJ" >&6; }
14223
14224if test "$hardcode_action_GCJ" = relink; then
14225  # Fast installation is not supported
14226  enable_fast_install=no
14227elif test "$shlibpath_overrides_runpath" = yes ||
14228     test "$enable_shared" = no; then
14229  # Fast installation is not necessary
14230  enable_fast_install=needless
14231fi
14232
14233striplib=
14234old_striplib=
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14236$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14237if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14238  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14239  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14241$as_echo "yes" >&6; }
14242else
14243# FIXME - insert some real tests, host_os isn't really good enough
14244  case $host_os in
14245   darwin*)
14246       if test -n "$STRIP" ; then
14247         striplib="$STRIP -x"
14248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249$as_echo "yes" >&6; }
14250       else
14251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14252$as_echo "no" >&6; }
14253fi
14254       ;;
14255   *)
14256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257$as_echo "no" >&6; }
14258    ;;
14259  esac
14260fi
14261
14262if test "x$enable_dlopen" != xyes; then
14263  enable_dlopen=unknown
14264  enable_dlopen_self=unknown
14265  enable_dlopen_self_static=unknown
14266else
14267  lt_cv_dlopen=no
14268  lt_cv_dlopen_libs=
14269
14270  case $host_os in
14271  beos*)
14272    lt_cv_dlopen="load_add_on"
14273    lt_cv_dlopen_libs=
14274    lt_cv_dlopen_self=yes
14275    ;;
14276
14277  mingw* | pw32*)
14278    lt_cv_dlopen="LoadLibrary"
14279    lt_cv_dlopen_libs=
14280   ;;
14281
14282  cygwin*)
14283    lt_cv_dlopen="dlopen"
14284    lt_cv_dlopen_libs=
14285   ;;
14286
14287  darwin*)
14288  # if libdl is installed we need to link against it
14289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14290$as_echo_n "checking for dlopen in -ldl... " >&6; }
14291if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14292  $as_echo_n "(cached) " >&6
14293else
14294  ac_check_lib_save_LIBS=$LIBS
14295LIBS="-ldl  $LIBS"
14296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297/* end confdefs.h.  */
14298
14299/* Override any GCC internal prototype to avoid an error.
14300   Use char because int might match the return type of a GCC
14301   builtin and then its argument prototype would still apply.  */
14302#ifdef __cplusplus
14303extern "C"
14304#endif
14305char dlopen ();
14306int
14307main ()
14308{
14309return dlopen ();
14310  ;
14311  return 0;
14312}
14313_ACEOF
14314if ac_fn_c_try_link "$LINENO"; then :
14315  ac_cv_lib_dl_dlopen=yes
14316else
14317  ac_cv_lib_dl_dlopen=no
14318fi
14319rm -f core conftest.err conftest.$ac_objext \
14320    conftest$ac_exeext conftest.$ac_ext
14321LIBS=$ac_check_lib_save_LIBS
14322fi
14323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14324$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14325if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14326  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14327else
14328
14329    lt_cv_dlopen="dyld"
14330    lt_cv_dlopen_libs=
14331    lt_cv_dlopen_self=yes
14332
14333fi
14334
14335   ;;
14336
14337  *)
14338    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14339if test "x$ac_cv_func_shl_load" = x""yes; then :
14340  lt_cv_dlopen="shl_load"
14341else
14342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14343$as_echo_n "checking for shl_load in -ldld... " >&6; }
14344if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14345  $as_echo_n "(cached) " >&6
14346else
14347  ac_check_lib_save_LIBS=$LIBS
14348LIBS="-ldld  $LIBS"
14349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350/* end confdefs.h.  */
14351
14352/* Override any GCC internal prototype to avoid an error.
14353   Use char because int might match the return type of a GCC
14354   builtin and then its argument prototype would still apply.  */
14355#ifdef __cplusplus
14356extern "C"
14357#endif
14358char shl_load ();
14359int
14360main ()
14361{
14362return shl_load ();
14363  ;
14364  return 0;
14365}
14366_ACEOF
14367if ac_fn_c_try_link "$LINENO"; then :
14368  ac_cv_lib_dld_shl_load=yes
14369else
14370  ac_cv_lib_dld_shl_load=no
14371fi
14372rm -f core conftest.err conftest.$ac_objext \
14373    conftest$ac_exeext conftest.$ac_ext
14374LIBS=$ac_check_lib_save_LIBS
14375fi
14376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14377$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14378if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14379  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14380else
14381  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14382if test "x$ac_cv_func_dlopen" = x""yes; then :
14383  lt_cv_dlopen="dlopen"
14384else
14385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14386$as_echo_n "checking for dlopen in -ldl... " >&6; }
14387if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14388  $as_echo_n "(cached) " >&6
14389else
14390  ac_check_lib_save_LIBS=$LIBS
14391LIBS="-ldl  $LIBS"
14392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393/* end confdefs.h.  */
14394
14395/* Override any GCC internal prototype to avoid an error.
14396   Use char because int might match the return type of a GCC
14397   builtin and then its argument prototype would still apply.  */
14398#ifdef __cplusplus
14399extern "C"
14400#endif
14401char dlopen ();
14402int
14403main ()
14404{
14405return dlopen ();
14406  ;
14407  return 0;
14408}
14409_ACEOF
14410if ac_fn_c_try_link "$LINENO"; then :
14411  ac_cv_lib_dl_dlopen=yes
14412else
14413  ac_cv_lib_dl_dlopen=no
14414fi
14415rm -f core conftest.err conftest.$ac_objext \
14416    conftest$ac_exeext conftest.$ac_ext
14417LIBS=$ac_check_lib_save_LIBS
14418fi
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14420$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14421if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14422  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14423else
14424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14425$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14426if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14427  $as_echo_n "(cached) " >&6
14428else
14429  ac_check_lib_save_LIBS=$LIBS
14430LIBS="-lsvld  $LIBS"
14431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432/* end confdefs.h.  */
14433
14434/* Override any GCC internal prototype to avoid an error.
14435   Use char because int might match the return type of a GCC
14436   builtin and then its argument prototype would still apply.  */
14437#ifdef __cplusplus
14438extern "C"
14439#endif
14440char dlopen ();
14441int
14442main ()
14443{
14444return dlopen ();
14445  ;
14446  return 0;
14447}
14448_ACEOF
14449if ac_fn_c_try_link "$LINENO"; then :
14450  ac_cv_lib_svld_dlopen=yes
14451else
14452  ac_cv_lib_svld_dlopen=no
14453fi
14454rm -f core conftest.err conftest.$ac_objext \
14455    conftest$ac_exeext conftest.$ac_ext
14456LIBS=$ac_check_lib_save_LIBS
14457fi
14458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14459$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14460if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14461  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14462else
14463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14464$as_echo_n "checking for dld_link in -ldld... " >&6; }
14465if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14466  $as_echo_n "(cached) " >&6
14467else
14468  ac_check_lib_save_LIBS=$LIBS
14469LIBS="-ldld  $LIBS"
14470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471/* end confdefs.h.  */
14472
14473/* Override any GCC internal prototype to avoid an error.
14474   Use char because int might match the return type of a GCC
14475   builtin and then its argument prototype would still apply.  */
14476#ifdef __cplusplus
14477extern "C"
14478#endif
14479char dld_link ();
14480int
14481main ()
14482{
14483return dld_link ();
14484  ;
14485  return 0;
14486}
14487_ACEOF
14488if ac_fn_c_try_link "$LINENO"; then :
14489  ac_cv_lib_dld_dld_link=yes
14490else
14491  ac_cv_lib_dld_dld_link=no
14492fi
14493rm -f core conftest.err conftest.$ac_objext \
14494    conftest$ac_exeext conftest.$ac_ext
14495LIBS=$ac_check_lib_save_LIBS
14496fi
14497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14498$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14499if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14500  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14501fi
14502
14503
14504fi
14505
14506
14507fi
14508
14509
14510fi
14511
14512
14513fi
14514
14515
14516fi
14517
14518    ;;
14519  esac
14520
14521  if test "x$lt_cv_dlopen" != xno; then
14522    enable_dlopen=yes
14523  else
14524    enable_dlopen=no
14525  fi
14526
14527  case $lt_cv_dlopen in
14528  dlopen)
14529    save_CPPFLAGS="$CPPFLAGS"
14530    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14531
14532    save_LDFLAGS="$LDFLAGS"
14533    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14534
14535    save_LIBS="$LIBS"
14536    LIBS="$lt_cv_dlopen_libs $LIBS"
14537
14538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14539$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14540if test "${lt_cv_dlopen_self+set}" = set; then :
14541  $as_echo_n "(cached) " >&6
14542else
14543  	  if test "$cross_compiling" = yes; then :
14544  lt_cv_dlopen_self=cross
14545else
14546  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14547  lt_status=$lt_dlunknown
14548  cat > conftest.$ac_ext <<EOF
14549#line 14549 "configure"
14550#include "confdefs.h"
14551
14552#if HAVE_DLFCN_H
14553#include <dlfcn.h>
14554#endif
14555
14556#include <stdio.h>
14557
14558#ifdef RTLD_GLOBAL
14559#  define LT_DLGLOBAL		RTLD_GLOBAL
14560#else
14561#  ifdef DL_GLOBAL
14562#    define LT_DLGLOBAL		DL_GLOBAL
14563#  else
14564#    define LT_DLGLOBAL		0
14565#  endif
14566#endif
14567
14568/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14569   find out it does not work in some platform. */
14570#ifndef LT_DLLAZY_OR_NOW
14571#  ifdef RTLD_LAZY
14572#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14573#  else
14574#    ifdef DL_LAZY
14575#      define LT_DLLAZY_OR_NOW		DL_LAZY
14576#    else
14577#      ifdef RTLD_NOW
14578#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14579#      else
14580#        ifdef DL_NOW
14581#          define LT_DLLAZY_OR_NOW	DL_NOW
14582#        else
14583#          define LT_DLLAZY_OR_NOW	0
14584#        endif
14585#      endif
14586#    endif
14587#  endif
14588#endif
14589
14590#ifdef __cplusplus
14591extern "C" void exit (int);
14592#endif
14593
14594void fnord() { int i=42;}
14595int main ()
14596{
14597  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14598  int status = $lt_dlunknown;
14599
14600  if (self)
14601    {
14602      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14603      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14604      /* dlclose (self); */
14605    }
14606
14607    exit (status);
14608}
14609EOF
14610  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14611  (eval $ac_link) 2>&5
14612  ac_status=$?
14613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14614  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14615    (./conftest; exit; ) >&5 2>/dev/null
14616    lt_status=$?
14617    case x$lt_status in
14618      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14619      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14620      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14621    esac
14622  else :
14623    # compilation failed
14624    lt_cv_dlopen_self=no
14625  fi
14626fi
14627rm -fr conftest*
14628
14629
14630fi
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14632$as_echo "$lt_cv_dlopen_self" >&6; }
14633
14634    if test "x$lt_cv_dlopen_self" = xyes; then
14635      LDFLAGS="$LDFLAGS $link_static_flag"
14636      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14637$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14638if test "${lt_cv_dlopen_self_static+set}" = set; then :
14639  $as_echo_n "(cached) " >&6
14640else
14641  	  if test "$cross_compiling" = yes; then :
14642  lt_cv_dlopen_self_static=cross
14643else
14644  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14645  lt_status=$lt_dlunknown
14646  cat > conftest.$ac_ext <<EOF
14647#line 14647 "configure"
14648#include "confdefs.h"
14649
14650#if HAVE_DLFCN_H
14651#include <dlfcn.h>
14652#endif
14653
14654#include <stdio.h>
14655
14656#ifdef RTLD_GLOBAL
14657#  define LT_DLGLOBAL		RTLD_GLOBAL
14658#else
14659#  ifdef DL_GLOBAL
14660#    define LT_DLGLOBAL		DL_GLOBAL
14661#  else
14662#    define LT_DLGLOBAL		0
14663#  endif
14664#endif
14665
14666/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14667   find out it does not work in some platform. */
14668#ifndef LT_DLLAZY_OR_NOW
14669#  ifdef RTLD_LAZY
14670#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14671#  else
14672#    ifdef DL_LAZY
14673#      define LT_DLLAZY_OR_NOW		DL_LAZY
14674#    else
14675#      ifdef RTLD_NOW
14676#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14677#      else
14678#        ifdef DL_NOW
14679#          define LT_DLLAZY_OR_NOW	DL_NOW
14680#        else
14681#          define LT_DLLAZY_OR_NOW	0
14682#        endif
14683#      endif
14684#    endif
14685#  endif
14686#endif
14687
14688#ifdef __cplusplus
14689extern "C" void exit (int);
14690#endif
14691
14692void fnord() { int i=42;}
14693int main ()
14694{
14695  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14696  int status = $lt_dlunknown;
14697
14698  if (self)
14699    {
14700      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14701      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14702      /* dlclose (self); */
14703    }
14704
14705    exit (status);
14706}
14707EOF
14708  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14709  (eval $ac_link) 2>&5
14710  ac_status=$?
14711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14713    (./conftest; exit; ) >&5 2>/dev/null
14714    lt_status=$?
14715    case x$lt_status in
14716      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14717      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14718      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14719    esac
14720  else :
14721    # compilation failed
14722    lt_cv_dlopen_self_static=no
14723  fi
14724fi
14725rm -fr conftest*
14726
14727
14728fi
14729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14730$as_echo "$lt_cv_dlopen_self_static" >&6; }
14731    fi
14732
14733    CPPFLAGS="$save_CPPFLAGS"
14734    LDFLAGS="$save_LDFLAGS"
14735    LIBS="$save_LIBS"
14736    ;;
14737  esac
14738
14739  case $lt_cv_dlopen_self in
14740  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14741  *) enable_dlopen_self=unknown ;;
14742  esac
14743
14744  case $lt_cv_dlopen_self_static in
14745  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14746  *) enable_dlopen_self_static=unknown ;;
14747  esac
14748fi
14749
14750
14751# The else clause should only fire when bootstrapping the
14752# libtool distribution, otherwise you forgot to ship ltmain.sh
14753# with your package, and you will get complaints that there are
14754# no rules to generate ltmain.sh.
14755if test -f "$ltmain"; then
14756  # See if we are running on zsh, and set the options which allow our commands through
14757  # without removal of \ escapes.
14758  if test -n "${ZSH_VERSION+set}" ; then
14759    setopt NO_GLOB_SUBST
14760  fi
14761  # Now quote all the things that may contain metacharacters while being
14762  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14763  # variables and quote the copies for generation of the libtool script.
14764  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14765    SED SHELL STRIP \
14766    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14767    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14768    deplibs_check_method reload_flag reload_cmds need_locks \
14769    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14770    lt_cv_sys_global_symbol_to_c_name_address \
14771    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14772    old_postinstall_cmds old_postuninstall_cmds \
14773    compiler_GCJ \
14774    CC_GCJ \
14775    LD_GCJ \
14776    lt_prog_compiler_wl_GCJ \
14777    lt_prog_compiler_pic_GCJ \
14778    lt_prog_compiler_static_GCJ \
14779    lt_prog_compiler_no_builtin_flag_GCJ \
14780    export_dynamic_flag_spec_GCJ \
14781    thread_safe_flag_spec_GCJ \
14782    whole_archive_flag_spec_GCJ \
14783    enable_shared_with_static_runtimes_GCJ \
14784    old_archive_cmds_GCJ \
14785    old_archive_from_new_cmds_GCJ \
14786    predep_objects_GCJ \
14787    postdep_objects_GCJ \
14788    predeps_GCJ \
14789    postdeps_GCJ \
14790    compiler_lib_search_path_GCJ \
14791    archive_cmds_GCJ \
14792    archive_expsym_cmds_GCJ \
14793    postinstall_cmds_GCJ \
14794    postuninstall_cmds_GCJ \
14795    old_archive_from_expsyms_cmds_GCJ \
14796    allow_undefined_flag_GCJ \
14797    no_undefined_flag_GCJ \
14798    export_symbols_cmds_GCJ \
14799    hardcode_libdir_flag_spec_GCJ \
14800    hardcode_libdir_flag_spec_ld_GCJ \
14801    hardcode_libdir_separator_GCJ \
14802    hardcode_automatic_GCJ \
14803    module_cmds_GCJ \
14804    module_expsym_cmds_GCJ \
14805    lt_cv_prog_compiler_c_o_GCJ \
14806    exclude_expsyms_GCJ \
14807    include_expsyms_GCJ; do
14808
14809    case $var in
14810    old_archive_cmds_GCJ | \
14811    old_archive_from_new_cmds_GCJ | \
14812    archive_cmds_GCJ | \
14813    archive_expsym_cmds_GCJ | \
14814    module_cmds_GCJ | \
14815    module_expsym_cmds_GCJ | \
14816    old_archive_from_expsyms_cmds_GCJ | \
14817    export_symbols_cmds_GCJ | \
14818    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14819    postinstall_cmds | postuninstall_cmds | \
14820    old_postinstall_cmds | old_postuninstall_cmds | \
14821    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14822      # Double-quote double-evaled strings.
14823      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14824      ;;
14825    *)
14826      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14827      ;;
14828    esac
14829  done
14830
14831  case $lt_echo in
14832  *'\$0 --fallback-echo"')
14833    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14834    ;;
14835  esac
14836
14837cfgfile="$ofile"
14838
14839  cat <<__EOF__ >> "$cfgfile"
14840# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14841
14842# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14843
14844# Shell to use when invoking shell scripts.
14845SHELL=$lt_SHELL
14846
14847# Whether or not to build shared libraries.
14848build_libtool_libs=$enable_shared
14849
14850# Whether or not to build static libraries.
14851build_old_libs=$enable_static
14852
14853# Whether or not to add -lc for building shared libraries.
14854build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14855
14856# Whether or not to disallow shared libs when runtime libs are static
14857allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
14858
14859# Whether or not to optimize for fast installation.
14860fast_install=$enable_fast_install
14861
14862# The host system.
14863host_alias=$host_alias
14864host=$host
14865host_os=$host_os
14866
14867# The build system.
14868build_alias=$build_alias
14869build=$build
14870build_os=$build_os
14871
14872# An echo program that does not interpret backslashes.
14873echo=$lt_echo
14874
14875# The archiver.
14876AR=$lt_AR
14877AR_FLAGS=$lt_AR_FLAGS
14878
14879# A C compiler.
14880LTCC=$lt_LTCC
14881
14882# A language-specific compiler.
14883CC=$lt_compiler_GCJ
14884
14885# Is the compiler the GNU C compiler?
14886with_gcc=$GCC_GCJ
14887
14888# An ERE matcher.
14889EGREP=$lt_EGREP
14890
14891# The linker used to build libraries.
14892LD=$lt_LD_GCJ
14893
14894# Whether we need hard or soft links.
14895LN_S=$lt_LN_S
14896
14897# A BSD-compatible nm program.
14898NM=$lt_NM
14899
14900# A symbol stripping program
14901STRIP=$lt_STRIP
14902
14903# Used to examine libraries when file_magic_cmd begins "file"
14904MAGIC_CMD=$MAGIC_CMD
14905
14906# Used on cygwin: DLL creation program.
14907DLLTOOL="$DLLTOOL"
14908
14909# Used on cygwin: object dumper.
14910OBJDUMP="$OBJDUMP"
14911
14912# Used on cygwin: assembler.
14913AS="$AS"
14914
14915# The name of the directory that contains temporary libtool files.
14916objdir=$objdir
14917
14918# How to create reloadable object files.
14919reload_flag=$lt_reload_flag
14920reload_cmds=$lt_reload_cmds
14921
14922# How to pass a linker flag through the compiler.
14923wl=$lt_lt_prog_compiler_wl_GCJ
14924
14925# Object file suffix (normally "o").
14926objext="$ac_objext"
14927
14928# Old archive suffix (normally "a").
14929libext="$libext"
14930
14931# Shared library suffix (normally ".so").
14932shrext_cmds='$shrext_cmds'
14933
14934# Executable file suffix (normally "").
14935exeext="$exeext"
14936
14937# Additional compiler flags for building library objects.
14938pic_flag=$lt_lt_prog_compiler_pic_GCJ
14939pic_mode=$pic_mode
14940
14941# What is the maximum length of a command?
14942max_cmd_len=$lt_cv_sys_max_cmd_len
14943
14944# Does compiler simultaneously support -c and -o options?
14945compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14946
14947# Must we lock files when doing compilation?
14948need_locks=$lt_need_locks
14949
14950# Do we need the lib prefix for modules?
14951need_lib_prefix=$need_lib_prefix
14952
14953# Do we need a version for libraries?
14954need_version=$need_version
14955
14956# Whether dlopen is supported.
14957dlopen_support=$enable_dlopen
14958
14959# Whether dlopen of programs is supported.
14960dlopen_self=$enable_dlopen_self
14961
14962# Whether dlopen of statically linked programs is supported.
14963dlopen_self_static=$enable_dlopen_self_static
14964
14965# Compiler flag to prevent dynamic linking.
14966link_static_flag=$lt_lt_prog_compiler_static_GCJ
14967
14968# Compiler flag to turn off builtin functions.
14969no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14970
14971# Compiler flag to allow reflexive dlopens.
14972export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14973
14974# Compiler flag to generate shared objects directly from archives.
14975whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14976
14977# Compiler flag to generate thread-safe objects.
14978thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14979
14980# Library versioning type.
14981version_type=$version_type
14982
14983# Format of library name prefix.
14984libname_spec=$lt_libname_spec
14985
14986# List of archive names.  First name is the real one, the rest are links.
14987# The last name is the one that the linker finds with -lNAME.
14988library_names_spec=$lt_library_names_spec
14989
14990# The coded name of the library, if different from the real name.
14991soname_spec=$lt_soname_spec
14992
14993# Commands used to build and install an old-style archive.
14994RANLIB=$lt_RANLIB
14995old_archive_cmds=$lt_old_archive_cmds_GCJ
14996old_postinstall_cmds=$lt_old_postinstall_cmds
14997old_postuninstall_cmds=$lt_old_postuninstall_cmds
14998
14999# Create an old-style archive from a shared archive.
15000old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15001
15002# Create a temporary old-style archive to link instead of a shared archive.
15003old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15004
15005# Commands used to build and install a shared archive.
15006archive_cmds=$lt_archive_cmds_GCJ
15007archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15008postinstall_cmds=$lt_postinstall_cmds
15009postuninstall_cmds=$lt_postuninstall_cmds
15010
15011# Commands used to build a loadable module (assumed same as above if empty)
15012module_cmds=$lt_module_cmds_GCJ
15013module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15014
15015# Commands to strip libraries.
15016old_striplib=$lt_old_striplib
15017striplib=$lt_striplib
15018
15019# Dependencies to place before the objects being linked to create a
15020# shared library.
15021predep_objects=$lt_predep_objects_GCJ
15022
15023# Dependencies to place after the objects being linked to create a
15024# shared library.
15025postdep_objects=$lt_postdep_objects_GCJ
15026
15027# Dependencies to place before the objects being linked to create a
15028# shared library.
15029predeps=$lt_predeps_GCJ
15030
15031# Dependencies to place after the objects being linked to create a
15032# shared library.
15033postdeps=$lt_postdeps_GCJ
15034
15035# The library search path used internally by the compiler when linking
15036# a shared library.
15037compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
15038
15039# Method to check whether dependent libraries are shared objects.
15040deplibs_check_method=$lt_deplibs_check_method
15041
15042# Command to use when deplibs_check_method == file_magic.
15043file_magic_cmd=$lt_file_magic_cmd
15044
15045# Flag that allows shared libraries with undefined symbols to be built.
15046allow_undefined_flag=$lt_allow_undefined_flag_GCJ
15047
15048# Flag that forces no undefined symbols.
15049no_undefined_flag=$lt_no_undefined_flag_GCJ
15050
15051# Commands used to finish a libtool library installation in a directory.
15052finish_cmds=$lt_finish_cmds
15053
15054# Same as above, but a single script fragment to be evaled but not shown.
15055finish_eval=$lt_finish_eval
15056
15057# Take the output of nm and produce a listing of raw symbols and C names.
15058global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15059
15060# Transform the output of nm in a proper C declaration
15061global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15062
15063# Transform the output of nm in a C name address pair
15064global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15065
15066# This is the shared library runtime path variable.
15067runpath_var=$runpath_var
15068
15069# This is the shared library path variable.
15070shlibpath_var=$shlibpath_var
15071
15072# Is shlibpath searched before the hard-coded library search path?
15073shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15074
15075# How to hardcode a shared library path into an executable.
15076hardcode_action=$hardcode_action_GCJ
15077
15078# Whether we should hardcode library paths into libraries.
15079hardcode_into_libs=$hardcode_into_libs
15080
15081# Flag to hardcode \$libdir into a binary during linking.
15082# This must work even if \$libdir does not exist.
15083hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
15084
15085# If ld is used when linking, flag to hardcode \$libdir into
15086# a binary during linking. This must work even if \$libdir does
15087# not exist.
15088hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
15089
15090# Whether we need a single -rpath flag with a separated argument.
15091hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
15092
15093# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15094# resulting binary.
15095hardcode_direct=$hardcode_direct_GCJ
15096
15097# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15098# resulting binary.
15099hardcode_minus_L=$hardcode_minus_L_GCJ
15100
15101# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15102# the resulting binary.
15103hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
15104
15105# Set to yes if building a shared library automatically hardcodes DIR into the library
15106# and all subsequent libraries and executables linked against it.
15107hardcode_automatic=$hardcode_automatic_GCJ
15108
15109# Variables whose values should be saved in libtool wrapper scripts and
15110# restored at relink time.
15111variables_saved_for_relink="$variables_saved_for_relink"
15112
15113# Whether libtool must link a program against all its dependency libraries.
15114link_all_deplibs=$link_all_deplibs_GCJ
15115
15116# Compile-time system search path for libraries
15117sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15118
15119# Run-time system search path for libraries
15120sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15121
15122# Fix the shell variable \$srcfile for the compiler.
15123fix_srcfile_path="$fix_srcfile_path_GCJ"
15124
15125# Set to yes if exported symbols are required.
15126always_export_symbols=$always_export_symbols_GCJ
15127
15128# The commands to list exported symbols.
15129export_symbols_cmds=$lt_export_symbols_cmds_GCJ
15130
15131# The commands to extract the exported symbol list from a shared archive.
15132extract_expsyms_cmds=$lt_extract_expsyms_cmds
15133
15134# Symbols that should not be listed in the preloaded symbols.
15135exclude_expsyms=$lt_exclude_expsyms_GCJ
15136
15137# Symbols that must always be exported.
15138include_expsyms=$lt_include_expsyms_GCJ
15139
15140# ### END LIBTOOL TAG CONFIG: $tagname
15141
15142__EOF__
15143
15144
15145else
15146  # If there is no Makefile yet, we rely on a make rule to execute
15147  # `config.status --recheck' to rerun these tests and create the
15148  # libtool script then.
15149  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15150  if test -f "$ltmain_in"; then
15151    test -f Makefile && make "$ltmain"
15152  fi
15153fi
15154
15155
15156ac_ext=c
15157ac_cpp='$CPP $CPPFLAGS'
15158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15160ac_compiler_gnu=$ac_cv_c_compiler_gnu
15161
15162CC="$lt_save_CC"
15163
15164	else
15165	  tagname=""
15166	fi
15167	;;
15168
15169      RC)
15170
15171
15172# Source file extension for RC test sources.
15173ac_ext=rc
15174
15175# Object file extension for compiled RC test sources.
15176objext=o
15177objext_RC=$objext
15178
15179# Code to be used in simple compile tests
15180lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
15181
15182# Code to be used in simple link tests
15183lt_simple_link_test_code="$lt_simple_compile_test_code"
15184
15185# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15186
15187# If no C compiler was specified, use CC.
15188LTCC=${LTCC-"$CC"}
15189
15190# Allow CC to be a program name with arguments.
15191compiler=$CC
15192
15193
15194# save warnings/boilerplate of simple test code
15195ac_outfile=conftest.$ac_objext
15196printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15197eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15198_lt_compiler_boilerplate=`cat conftest.err`
15199$rm conftest*
15200
15201ac_outfile=conftest.$ac_objext
15202printf "$lt_simple_link_test_code" >conftest.$ac_ext
15203eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15204_lt_linker_boilerplate=`cat conftest.err`
15205$rm conftest*
15206
15207
15208# Allow CC to be a program name with arguments.
15209lt_save_CC="$CC"
15210CC=${RC-"windres"}
15211compiler=$CC
15212compiler_RC=$CC
15213for cc_temp in $compiler""; do
15214  case $cc_temp in
15215    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15216    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15217    \-*) ;;
15218    *) break;;
15219  esac
15220done
15221cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15222
15223lt_cv_prog_compiler_c_o_RC=yes
15224
15225# The else clause should only fire when bootstrapping the
15226# libtool distribution, otherwise you forgot to ship ltmain.sh
15227# with your package, and you will get complaints that there are
15228# no rules to generate ltmain.sh.
15229if test -f "$ltmain"; then
15230  # See if we are running on zsh, and set the options which allow our commands through
15231  # without removal of \ escapes.
15232  if test -n "${ZSH_VERSION+set}" ; then
15233    setopt NO_GLOB_SUBST
15234  fi
15235  # Now quote all the things that may contain metacharacters while being
15236  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15237  # variables and quote the copies for generation of the libtool script.
15238  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15239    SED SHELL STRIP \
15240    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15241    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15242    deplibs_check_method reload_flag reload_cmds need_locks \
15243    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15244    lt_cv_sys_global_symbol_to_c_name_address \
15245    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15246    old_postinstall_cmds old_postuninstall_cmds \
15247    compiler_RC \
15248    CC_RC \
15249    LD_RC \
15250    lt_prog_compiler_wl_RC \
15251    lt_prog_compiler_pic_RC \
15252    lt_prog_compiler_static_RC \
15253    lt_prog_compiler_no_builtin_flag_RC \
15254    export_dynamic_flag_spec_RC \
15255    thread_safe_flag_spec_RC \
15256    whole_archive_flag_spec_RC \
15257    enable_shared_with_static_runtimes_RC \
15258    old_archive_cmds_RC \
15259    old_archive_from_new_cmds_RC \
15260    predep_objects_RC \
15261    postdep_objects_RC \
15262    predeps_RC \
15263    postdeps_RC \
15264    compiler_lib_search_path_RC \
15265    archive_cmds_RC \
15266    archive_expsym_cmds_RC \
15267    postinstall_cmds_RC \
15268    postuninstall_cmds_RC \
15269    old_archive_from_expsyms_cmds_RC \
15270    allow_undefined_flag_RC \
15271    no_undefined_flag_RC \
15272    export_symbols_cmds_RC \
15273    hardcode_libdir_flag_spec_RC \
15274    hardcode_libdir_flag_spec_ld_RC \
15275    hardcode_libdir_separator_RC \
15276    hardcode_automatic_RC \
15277    module_cmds_RC \
15278    module_expsym_cmds_RC \
15279    lt_cv_prog_compiler_c_o_RC \
15280    exclude_expsyms_RC \
15281    include_expsyms_RC; do
15282
15283    case $var in
15284    old_archive_cmds_RC | \
15285    old_archive_from_new_cmds_RC | \
15286    archive_cmds_RC | \
15287    archive_expsym_cmds_RC | \
15288    module_cmds_RC | \
15289    module_expsym_cmds_RC | \
15290    old_archive_from_expsyms_cmds_RC | \
15291    export_symbols_cmds_RC | \
15292    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15293    postinstall_cmds | postuninstall_cmds | \
15294    old_postinstall_cmds | old_postuninstall_cmds | \
15295    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15296      # Double-quote double-evaled strings.
15297      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15298      ;;
15299    *)
15300      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15301      ;;
15302    esac
15303  done
15304
15305  case $lt_echo in
15306  *'\$0 --fallback-echo"')
15307    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15308    ;;
15309  esac
15310
15311cfgfile="$ofile"
15312
15313  cat <<__EOF__ >> "$cfgfile"
15314# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15315
15316# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15317
15318# Shell to use when invoking shell scripts.
15319SHELL=$lt_SHELL
15320
15321# Whether or not to build shared libraries.
15322build_libtool_libs=$enable_shared
15323
15324# Whether or not to build static libraries.
15325build_old_libs=$enable_static
15326
15327# Whether or not to add -lc for building shared libraries.
15328build_libtool_need_lc=$archive_cmds_need_lc_RC
15329
15330# Whether or not to disallow shared libs when runtime libs are static
15331allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
15332
15333# Whether or not to optimize for fast installation.
15334fast_install=$enable_fast_install
15335
15336# The host system.
15337host_alias=$host_alias
15338host=$host
15339host_os=$host_os
15340
15341# The build system.
15342build_alias=$build_alias
15343build=$build
15344build_os=$build_os
15345
15346# An echo program that does not interpret backslashes.
15347echo=$lt_echo
15348
15349# The archiver.
15350AR=$lt_AR
15351AR_FLAGS=$lt_AR_FLAGS
15352
15353# A C compiler.
15354LTCC=$lt_LTCC
15355
15356# A language-specific compiler.
15357CC=$lt_compiler_RC
15358
15359# Is the compiler the GNU C compiler?
15360with_gcc=$GCC_RC
15361
15362# An ERE matcher.
15363EGREP=$lt_EGREP
15364
15365# The linker used to build libraries.
15366LD=$lt_LD_RC
15367
15368# Whether we need hard or soft links.
15369LN_S=$lt_LN_S
15370
15371# A BSD-compatible nm program.
15372NM=$lt_NM
15373
15374# A symbol stripping program
15375STRIP=$lt_STRIP
15376
15377# Used to examine libraries when file_magic_cmd begins "file"
15378MAGIC_CMD=$MAGIC_CMD
15379
15380# Used on cygwin: DLL creation program.
15381DLLTOOL="$DLLTOOL"
15382
15383# Used on cygwin: object dumper.
15384OBJDUMP="$OBJDUMP"
15385
15386# Used on cygwin: assembler.
15387AS="$AS"
15388
15389# The name of the directory that contains temporary libtool files.
15390objdir=$objdir
15391
15392# How to create reloadable object files.
15393reload_flag=$lt_reload_flag
15394reload_cmds=$lt_reload_cmds
15395
15396# How to pass a linker flag through the compiler.
15397wl=$lt_lt_prog_compiler_wl_RC
15398
15399# Object file suffix (normally "o").
15400objext="$ac_objext"
15401
15402# Old archive suffix (normally "a").
15403libext="$libext"
15404
15405# Shared library suffix (normally ".so").
15406shrext_cmds='$shrext_cmds'
15407
15408# Executable file suffix (normally "").
15409exeext="$exeext"
15410
15411# Additional compiler flags for building library objects.
15412pic_flag=$lt_lt_prog_compiler_pic_RC
15413pic_mode=$pic_mode
15414
15415# What is the maximum length of a command?
15416max_cmd_len=$lt_cv_sys_max_cmd_len
15417
15418# Does compiler simultaneously support -c and -o options?
15419compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
15420
15421# Must we lock files when doing compilation?
15422need_locks=$lt_need_locks
15423
15424# Do we need the lib prefix for modules?
15425need_lib_prefix=$need_lib_prefix
15426
15427# Do we need a version for libraries?
15428need_version=$need_version
15429
15430# Whether dlopen is supported.
15431dlopen_support=$enable_dlopen
15432
15433# Whether dlopen of programs is supported.
15434dlopen_self=$enable_dlopen_self
15435
15436# Whether dlopen of statically linked programs is supported.
15437dlopen_self_static=$enable_dlopen_self_static
15438
15439# Compiler flag to prevent dynamic linking.
15440link_static_flag=$lt_lt_prog_compiler_static_RC
15441
15442# Compiler flag to turn off builtin functions.
15443no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
15444
15445# Compiler flag to allow reflexive dlopens.
15446export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
15447
15448# Compiler flag to generate shared objects directly from archives.
15449whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
15450
15451# Compiler flag to generate thread-safe objects.
15452thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
15453
15454# Library versioning type.
15455version_type=$version_type
15456
15457# Format of library name prefix.
15458libname_spec=$lt_libname_spec
15459
15460# List of archive names.  First name is the real one, the rest are links.
15461# The last name is the one that the linker finds with -lNAME.
15462library_names_spec=$lt_library_names_spec
15463
15464# The coded name of the library, if different from the real name.
15465soname_spec=$lt_soname_spec
15466
15467# Commands used to build and install an old-style archive.
15468RANLIB=$lt_RANLIB
15469old_archive_cmds=$lt_old_archive_cmds_RC
15470old_postinstall_cmds=$lt_old_postinstall_cmds
15471old_postuninstall_cmds=$lt_old_postuninstall_cmds
15472
15473# Create an old-style archive from a shared archive.
15474old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
15475
15476# Create a temporary old-style archive to link instead of a shared archive.
15477old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
15478
15479# Commands used to build and install a shared archive.
15480archive_cmds=$lt_archive_cmds_RC
15481archive_expsym_cmds=$lt_archive_expsym_cmds_RC
15482postinstall_cmds=$lt_postinstall_cmds
15483postuninstall_cmds=$lt_postuninstall_cmds
15484
15485# Commands used to build a loadable module (assumed same as above if empty)
15486module_cmds=$lt_module_cmds_RC
15487module_expsym_cmds=$lt_module_expsym_cmds_RC
15488
15489# Commands to strip libraries.
15490old_striplib=$lt_old_striplib
15491striplib=$lt_striplib
15492
15493# Dependencies to place before the objects being linked to create a
15494# shared library.
15495predep_objects=$lt_predep_objects_RC
15496
15497# Dependencies to place after the objects being linked to create a
15498# shared library.
15499postdep_objects=$lt_postdep_objects_RC
15500
15501# Dependencies to place before the objects being linked to create a
15502# shared library.
15503predeps=$lt_predeps_RC
15504
15505# Dependencies to place after the objects being linked to create a
15506# shared library.
15507postdeps=$lt_postdeps_RC
15508
15509# The library search path used internally by the compiler when linking
15510# a shared library.
15511compiler_lib_search_path=$lt_compiler_lib_search_path_RC
15512
15513# Method to check whether dependent libraries are shared objects.
15514deplibs_check_method=$lt_deplibs_check_method
15515
15516# Command to use when deplibs_check_method == file_magic.
15517file_magic_cmd=$lt_file_magic_cmd
15518
15519# Flag that allows shared libraries with undefined symbols to be built.
15520allow_undefined_flag=$lt_allow_undefined_flag_RC
15521
15522# Flag that forces no undefined symbols.
15523no_undefined_flag=$lt_no_undefined_flag_RC
15524
15525# Commands used to finish a libtool library installation in a directory.
15526finish_cmds=$lt_finish_cmds
15527
15528# Same as above, but a single script fragment to be evaled but not shown.
15529finish_eval=$lt_finish_eval
15530
15531# Take the output of nm and produce a listing of raw symbols and C names.
15532global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15533
15534# Transform the output of nm in a proper C declaration
15535global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15536
15537# Transform the output of nm in a C name address pair
15538global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15539
15540# This is the shared library runtime path variable.
15541runpath_var=$runpath_var
15542
15543# This is the shared library path variable.
15544shlibpath_var=$shlibpath_var
15545
15546# Is shlibpath searched before the hard-coded library search path?
15547shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15548
15549# How to hardcode a shared library path into an executable.
15550hardcode_action=$hardcode_action_RC
15551
15552# Whether we should hardcode library paths into libraries.
15553hardcode_into_libs=$hardcode_into_libs
15554
15555# Flag to hardcode \$libdir into a binary during linking.
15556# This must work even if \$libdir does not exist.
15557hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
15558
15559# If ld is used when linking, flag to hardcode \$libdir into
15560# a binary during linking. This must work even if \$libdir does
15561# not exist.
15562hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
15563
15564# Whether we need a single -rpath flag with a separated argument.
15565hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
15566
15567# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15568# resulting binary.
15569hardcode_direct=$hardcode_direct_RC
15570
15571# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15572# resulting binary.
15573hardcode_minus_L=$hardcode_minus_L_RC
15574
15575# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15576# the resulting binary.
15577hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
15578
15579# Set to yes if building a shared library automatically hardcodes DIR into the library
15580# and all subsequent libraries and executables linked against it.
15581hardcode_automatic=$hardcode_automatic_RC
15582
15583# Variables whose values should be saved in libtool wrapper scripts and
15584# restored at relink time.
15585variables_saved_for_relink="$variables_saved_for_relink"
15586
15587# Whether libtool must link a program against all its dependency libraries.
15588link_all_deplibs=$link_all_deplibs_RC
15589
15590# Compile-time system search path for libraries
15591sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15592
15593# Run-time system search path for libraries
15594sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15595
15596# Fix the shell variable \$srcfile for the compiler.
15597fix_srcfile_path="$fix_srcfile_path_RC"
15598
15599# Set to yes if exported symbols are required.
15600always_export_symbols=$always_export_symbols_RC
15601
15602# The commands to list exported symbols.
15603export_symbols_cmds=$lt_export_symbols_cmds_RC
15604
15605# The commands to extract the exported symbol list from a shared archive.
15606extract_expsyms_cmds=$lt_extract_expsyms_cmds
15607
15608# Symbols that should not be listed in the preloaded symbols.
15609exclude_expsyms=$lt_exclude_expsyms_RC
15610
15611# Symbols that must always be exported.
15612include_expsyms=$lt_include_expsyms_RC
15613
15614# ### END LIBTOOL TAG CONFIG: $tagname
15615
15616__EOF__
15617
15618
15619else
15620  # If there is no Makefile yet, we rely on a make rule to execute
15621  # `config.status --recheck' to rerun these tests and create the
15622  # libtool script then.
15623  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15624  if test -f "$ltmain_in"; then
15625    test -f Makefile && make "$ltmain"
15626  fi
15627fi
15628
15629
15630ac_ext=c
15631ac_cpp='$CPP $CPPFLAGS'
15632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15634ac_compiler_gnu=$ac_cv_c_compiler_gnu
15635
15636CC="$lt_save_CC"
15637
15638	;;
15639
15640      *)
15641	as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
15642	;;
15643      esac
15644
15645      # Append the new tag name to the list of available tags.
15646      if test -n "$tagname" ; then
15647      available_tags="$available_tags $tagname"
15648    fi
15649    fi
15650  done
15651  IFS="$lt_save_ifs"
15652
15653  # Now substitute the updated list of available tags.
15654  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
15655    mv "${ofile}T" "$ofile"
15656    chmod +x "$ofile"
15657  else
15658    rm -f "${ofile}T"
15659    as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
15660  fi
15661fi
15662
15663
15664
15665# This can be used to rebuild libtool when needed
15666LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
15667
15668# Always use our own libtool.
15669LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15670
15671# Prevent multiple expansion
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
15683$as_echo_n "checking for directory path separator... " >&6; }
15684if test "${ac_cv_dir_sep+set}" = set; then :
15685  $as_echo_n "(cached) " >&6
15686else
15687
15688  case "$ac_cv_dir_sep" in
15689   '')
15690    case "$target_os" in
15691      *djgpp | *mingw32* | *emx*) ac_cv_dir_sep="'\\'" ;;
15692      *) ac_cv_dir_sep="'/'" ;;
15693    esac
15694    ;;
15695  esac
15696
15697fi
15698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dir_sep" >&5
15699$as_echo "$ac_cv_dir_sep" >&6; }
15700
15701cat >>confdefs.h <<_ACEOF
15702#define DIR_SEP $ac_cv_dir_sep
15703_ACEOF
15704
15705
15706# Checks for libraries.
15707
15708ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
15709if test "x$ac_cv_func_gethostent" = x""yes; then :
15710
15711else
15712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
15713$as_echo_n "checking for library containing gethostent... " >&6; }
15714if test "${ac_cv_search_gethostent+set}" = set; then :
15715  $as_echo_n "(cached) " >&6
15716else
15717  ac_func_search_save_LIBS=$LIBS
15718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15719/* end confdefs.h.  */
15720
15721/* Override any GCC internal prototype to avoid an error.
15722   Use char because int might match the return type of a GCC
15723   builtin and then its argument prototype would still apply.  */
15724#ifdef __cplusplus
15725extern "C"
15726#endif
15727char gethostent ();
15728int
15729main ()
15730{
15731return gethostent ();
15732  ;
15733  return 0;
15734}
15735_ACEOF
15736for ac_lib in '' nsl; do
15737  if test -z "$ac_lib"; then
15738    ac_res="none required"
15739  else
15740    ac_res=-l$ac_lib
15741    LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
15742  fi
15743  if ac_fn_c_try_link "$LINENO"; then :
15744  ac_cv_search_gethostent=$ac_res
15745fi
15746rm -f core conftest.err conftest.$ac_objext \
15747    conftest$ac_exeext
15748  if test "${ac_cv_search_gethostent+set}" = set; then :
15749  break
15750fi
15751done
15752if test "${ac_cv_search_gethostent+set}" = set; then :
15753
15754else
15755  ac_cv_search_gethostent=no
15756fi
15757rm conftest.$ac_ext
15758LIBS=$ac_func_search_save_LIBS
15759fi
15760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
15761$as_echo "$ac_cv_search_gethostent" >&6; }
15762ac_res=$ac_cv_search_gethostent
15763if test "$ac_res" != no; then :
15764  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15765
15766fi
15767
15768fi
15769
15770ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
15771if test "x$ac_cv_func_openlog" = x""yes; then :
15772
15773else
15774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
15775$as_echo_n "checking for library containing openlog... " >&6; }
15776if test "${ac_cv_search_openlog+set}" = set; then :
15777  $as_echo_n "(cached) " >&6
15778else
15779  ac_func_search_save_LIBS=$LIBS
15780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781/* end confdefs.h.  */
15782
15783/* Override any GCC internal prototype to avoid an error.
15784   Use char because int might match the return type of a GCC
15785   builtin and then its argument prototype would still apply.  */
15786#ifdef __cplusplus
15787extern "C"
15788#endif
15789char openlog ();
15790int
15791main ()
15792{
15793return openlog ();
15794  ;
15795  return 0;
15796}
15797_ACEOF
15798for ac_lib in '' gen; do
15799  if test -z "$ac_lib"; then
15800    ac_res="none required"
15801  else
15802    ac_res=-l$ac_lib
15803    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15804  fi
15805  if ac_fn_c_try_link "$LINENO"; then :
15806  ac_cv_search_openlog=$ac_res
15807fi
15808rm -f core conftest.err conftest.$ac_objext \
15809    conftest$ac_exeext
15810  if test "${ac_cv_search_openlog+set}" = set; then :
15811  break
15812fi
15813done
15814if test "${ac_cv_search_openlog+set}" = set; then :
15815
15816else
15817  ac_cv_search_openlog=no
15818fi
15819rm conftest.$ac_ext
15820LIBS=$ac_func_search_save_LIBS
15821fi
15822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
15823$as_echo "$ac_cv_search_openlog" >&6; }
15824ac_res=$ac_cv_search_openlog
15825if test "$ac_res" != no; then :
15826  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15827
15828else
15829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
15830$as_echo_n "checking for library containing openlog... " >&6; }
15831if test "${ac_cv_search_openlog+set}" = set; then :
15832  $as_echo_n "(cached) " >&6
15833else
15834  ac_func_search_save_LIBS=$LIBS
15835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836/* end confdefs.h.  */
15837
15838/* Override any GCC internal prototype to avoid an error.
15839   Use char because int might match the return type of a GCC
15840   builtin and then its argument prototype would still apply.  */
15841#ifdef __cplusplus
15842extern "C"
15843#endif
15844char openlog ();
15845int
15846main ()
15847{
15848return openlog ();
15849  ;
15850  return 0;
15851}
15852_ACEOF
15853for ac_lib in '' syslog; do
15854  if test -z "$ac_lib"; then
15855    ac_res="none required"
15856  else
15857    ac_res=-l$ac_lib
15858    LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
15859  fi
15860  if ac_fn_c_try_link "$LINENO"; then :
15861  ac_cv_search_openlog=$ac_res
15862fi
15863rm -f core conftest.err conftest.$ac_objext \
15864    conftest$ac_exeext
15865  if test "${ac_cv_search_openlog+set}" = set; then :
15866  break
15867fi
15868done
15869if test "${ac_cv_search_openlog+set}" = set; then :
15870
15871else
15872  ac_cv_search_openlog=no
15873fi
15874rm conftest.$ac_ext
15875LIBS=$ac_func_search_save_LIBS
15876fi
15877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
15878$as_echo "$ac_cv_search_openlog" >&6; }
15879ac_res=$ac_cv_search_openlog
15880if test "$ac_res" != no; then :
15881  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15882
15883fi
15884
15885fi
15886
15887fi
15888
15889
15890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
15891$as_echo_n "checking for library containing setsockopt... " >&6; }
15892if test "${ac_cv_search_setsockopt+set}" = set; then :
15893  $as_echo_n "(cached) " >&6
15894else
15895  ac_func_search_save_LIBS=$LIBS
15896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897/* end confdefs.h.  */
15898
15899/* Override any GCC internal prototype to avoid an error.
15900   Use char because int might match the return type of a GCC
15901   builtin and then its argument prototype would still apply.  */
15902#ifdef __cplusplus
15903extern "C"
15904#endif
15905char setsockopt ();
15906int
15907main ()
15908{
15909return setsockopt ();
15910  ;
15911  return 0;
15912}
15913_ACEOF
15914for ac_lib in '' socket xnet; do
15915  if test -z "$ac_lib"; then
15916    ac_res="none required"
15917  else
15918    ac_res=-l$ac_lib
15919    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15920  fi
15921  if ac_fn_c_try_link "$LINENO"; then :
15922  ac_cv_search_setsockopt=$ac_res
15923fi
15924rm -f core conftest.err conftest.$ac_objext \
15925    conftest$ac_exeext
15926  if test "${ac_cv_search_setsockopt+set}" = set; then :
15927  break
15928fi
15929done
15930if test "${ac_cv_search_setsockopt+set}" = set; then :
15931
15932else
15933  ac_cv_search_setsockopt=no
15934fi
15935rm conftest.$ac_ext
15936LIBS=$ac_func_search_save_LIBS
15937fi
15938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
15939$as_echo "$ac_cv_search_setsockopt" >&6; }
15940ac_res=$ac_cv_search_setsockopt
15941if test "$ac_res" != no; then :
15942  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15943
15944fi
15945
15946
15947# Checks for header files.
15948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15949$as_echo_n "checking for ANSI C header files... " >&6; }
15950if test "${ac_cv_header_stdc+set}" = set; then :
15951  $as_echo_n "(cached) " >&6
15952else
15953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954/* end confdefs.h.  */
15955#include <stdlib.h>
15956#include <stdarg.h>
15957#include <string.h>
15958#include <float.h>
15959
15960int
15961main ()
15962{
15963
15964  ;
15965  return 0;
15966}
15967_ACEOF
15968if ac_fn_c_try_compile "$LINENO"; then :
15969  ac_cv_header_stdc=yes
15970else
15971  ac_cv_header_stdc=no
15972fi
15973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15974
15975if test $ac_cv_header_stdc = yes; then
15976  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978/* end confdefs.h.  */
15979#include <string.h>
15980
15981_ACEOF
15982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15983  $EGREP "memchr" >/dev/null 2>&1; then :
15984
15985else
15986  ac_cv_header_stdc=no
15987fi
15988rm -f conftest*
15989
15990fi
15991
15992if test $ac_cv_header_stdc = yes; then
15993  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995/* end confdefs.h.  */
15996#include <stdlib.h>
15997
15998_ACEOF
15999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16000  $EGREP "free" >/dev/null 2>&1; then :
16001
16002else
16003  ac_cv_header_stdc=no
16004fi
16005rm -f conftest*
16006
16007fi
16008
16009if test $ac_cv_header_stdc = yes; then
16010  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16011  if test "$cross_compiling" = yes; then :
16012  :
16013else
16014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015/* end confdefs.h.  */
16016#include <ctype.h>
16017#include <stdlib.h>
16018#if ((' ' & 0x0FF) == 0x020)
16019# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16020# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16021#else
16022# define ISLOWER(c) \
16023		   (('a' <= (c) && (c) <= 'i') \
16024		     || ('j' <= (c) && (c) <= 'r') \
16025		     || ('s' <= (c) && (c) <= 'z'))
16026# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16027#endif
16028
16029#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16030int
16031main ()
16032{
16033  int i;
16034  for (i = 0; i < 256; i++)
16035    if (XOR (islower (i), ISLOWER (i))
16036	|| toupper (i) != TOUPPER (i))
16037      return 2;
16038  return 0;
16039}
16040_ACEOF
16041if ac_fn_c_try_run "$LINENO"; then :
16042
16043else
16044  ac_cv_header_stdc=no
16045fi
16046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16047  conftest.$ac_objext conftest.beam conftest.$ac_ext
16048fi
16049
16050fi
16051fi
16052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16053$as_echo "$ac_cv_header_stdc" >&6; }
16054if test $ac_cv_header_stdc = yes; then
16055
16056$as_echo "#define STDC_HEADERS 1" >>confdefs.h
16057
16058fi
16059
16060for ac_header in netdb.h netinet/in.h stdlib.h string.h strings.h syslog.h
16061do :
16062  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16063ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16064eval as_val=\$$as_ac_Header
16065   if test "x$as_val" = x""yes; then :
16066  cat >>confdefs.h <<_ACEOF
16067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16068_ACEOF
16069
16070fi
16071
16072done
16073
16074for ac_header in sys/socket.h sys/time.h
16075do :
16076  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16077ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16078eval as_val=\$$as_ac_Header
16079   if test "x$as_val" = x""yes; then :
16080  cat >>confdefs.h <<_ACEOF
16081#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16082_ACEOF
16083
16084fi
16085
16086done
16087
16088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16089$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16090if test "${ac_cv_header_time+set}" = set; then :
16091  $as_echo_n "(cached) " >&6
16092else
16093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094/* end confdefs.h.  */
16095#include <sys/types.h>
16096#include <sys/time.h>
16097#include <time.h>
16098
16099int
16100main ()
16101{
16102if ((struct tm *) 0)
16103return 0;
16104  ;
16105  return 0;
16106}
16107_ACEOF
16108if ac_fn_c_try_compile "$LINENO"; then :
16109  ac_cv_header_time=yes
16110else
16111  ac_cv_header_time=no
16112fi
16113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16114fi
16115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16116$as_echo "$ac_cv_header_time" >&6; }
16117if test $ac_cv_header_time = yes; then
16118
16119$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16120
16121fi
16122
16123
16124# Checks for typedefs, structures, and compiler characteristics.
16125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16126$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16127if test "${ac_cv_header_stdbool_h+set}" = set; then :
16128  $as_echo_n "(cached) " >&6
16129else
16130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131/* end confdefs.h.  */
16132
16133#include <stdbool.h>
16134#ifndef bool
16135 "error: bool is not defined"
16136#endif
16137#ifndef false
16138 "error: false is not defined"
16139#endif
16140#if false
16141 "error: false is not 0"
16142#endif
16143#ifndef true
16144 "error: true is not defined"
16145#endif
16146#if true != 1
16147 "error: true is not 1"
16148#endif
16149#ifndef __bool_true_false_are_defined
16150 "error: __bool_true_false_are_defined is not defined"
16151#endif
16152
16153	struct s { _Bool s: 1; _Bool t; } s;
16154
16155	char a[true == 1 ? 1 : -1];
16156	char b[false == 0 ? 1 : -1];
16157	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16158	char d[(bool) 0.5 == true ? 1 : -1];
16159	bool e = &s;
16160	char f[(_Bool) 0.0 == false ? 1 : -1];
16161	char g[true];
16162	char h[sizeof (_Bool)];
16163	char i[sizeof s.t];
16164	enum { j = false, k = true, l = false * true, m = true * 256 };
16165	/* The following fails for
16166	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16167	_Bool n[m];
16168	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16169	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16170#	if defined __xlc__ || defined __GNUC__
16171	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
16172	    reported by James Lemley on 2005-10-05; see
16173	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
16174	    This test is not quite right, since xlc is allowed to
16175	    reject this program, as the initializer for xlcbug is
16176	    not one of the forms that C requires support for.
16177	    However, doing the test right would require a runtime
16178	    test, and that would make cross-compilation harder.
16179	    Let us hope that IBM fixes the xlc bug, and also adds
16180	    support for this kind of constant expression.  In the
16181	    meantime, this test will reject xlc, which is OK, since
16182	    our stdbool.h substitute should suffice.  We also test
16183	    this with GCC, where it should work, to detect more
16184	    quickly whether someone messes up the test in the
16185	    future.  */
16186	 char digs[] = "0123456789";
16187	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16188#	endif
16189	/* Catch a bug in an HP-UX C compiler.  See
16190	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16191	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16192	 */
16193	_Bool q = true;
16194	_Bool *pq = &q;
16195
16196int
16197main ()
16198{
16199
16200	*pq |= q;
16201	*pq |= ! q;
16202	/* Refer to every declared value, to avoid compiler optimizations.  */
16203	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16204		+ !m + !n + !o + !p + !q + !pq);
16205
16206  ;
16207  return 0;
16208}
16209_ACEOF
16210if ac_fn_c_try_compile "$LINENO"; then :
16211  ac_cv_header_stdbool_h=yes
16212else
16213  ac_cv_header_stdbool_h=no
16214fi
16215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16216fi
16217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16218$as_echo "$ac_cv_header_stdbool_h" >&6; }
16219ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16220if test "x$ac_cv_type__Bool" = x""yes; then :
16221
16222cat >>confdefs.h <<_ACEOF
16223#define HAVE__BOOL 1
16224_ACEOF
16225
16226
16227fi
16228
16229if test $ac_cv_header_stdbool_h = yes; then
16230
16231$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16232
16233fi
16234
16235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16236$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16237if test "${ac_cv_c_const+set}" = set; then :
16238  $as_echo_n "(cached) " >&6
16239else
16240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241/* end confdefs.h.  */
16242
16243int
16244main ()
16245{
16246/* FIXME: Include the comments suggested by Paul. */
16247#ifndef __cplusplus
16248  /* Ultrix mips cc rejects this.  */
16249  typedef int charset[2];
16250  const charset cs;
16251  /* SunOS 4.1.1 cc rejects this.  */
16252  char const *const *pcpcc;
16253  char **ppc;
16254  /* NEC SVR4.0.2 mips cc rejects this.  */
16255  struct point {int x, y;};
16256  static struct point const zero = {0,0};
16257  /* AIX XL C 1.02.0.0 rejects this.
16258     It does not let you subtract one const X* pointer from another in
16259     an arm of an if-expression whose if-part is not a constant
16260     expression */
16261  const char *g = "string";
16262  pcpcc = &g + (g ? g-g : 0);
16263  /* HPUX 7.0 cc rejects these. */
16264  ++pcpcc;
16265  ppc = (char**) pcpcc;
16266  pcpcc = (char const *const *) ppc;
16267  { /* SCO 3.2v4 cc rejects this.  */
16268    char *t;
16269    char const *s = 0 ? (char *) 0 : (char const *) 0;
16270
16271    *t++ = 0;
16272    if (s) return 0;
16273  }
16274  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16275    int x[] = {25, 17};
16276    const int *foo = &x[0];
16277    ++foo;
16278  }
16279  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16280    typedef const int *iptr;
16281    iptr p = 0;
16282    ++p;
16283  }
16284  { /* AIX XL C 1.02.0.0 rejects this saying
16285       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16286    struct s { int j; const int *ap[3]; };
16287    struct s *b; b->j = 5;
16288  }
16289  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16290    const int foo = 10;
16291    if (!foo) return 0;
16292  }
16293  return !cs[0] && !zero.x;
16294#endif
16295
16296  ;
16297  return 0;
16298}
16299_ACEOF
16300if ac_fn_c_try_compile "$LINENO"; then :
16301  ac_cv_c_const=yes
16302else
16303  ac_cv_c_const=no
16304fi
16305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16306fi
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16308$as_echo "$ac_cv_c_const" >&6; }
16309if test $ac_cv_c_const = no; then
16310
16311$as_echo "#define const /**/" >>confdefs.h
16312
16313fi
16314
16315ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16316if test "x$ac_cv_type_size_t" = x""yes; then :
16317
16318else
16319
16320cat >>confdefs.h <<_ACEOF
16321#define size_t unsigned int
16322_ACEOF
16323
16324fi
16325
16326
16327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16328$as_echo_n "checking for inline... " >&6; }
16329if test "${ac_cv_c_inline+set}" = set; then :
16330  $as_echo_n "(cached) " >&6
16331else
16332  ac_cv_c_inline=no
16333for ac_kw in inline __inline__ __inline; do
16334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335/* end confdefs.h.  */
16336#ifndef __cplusplus
16337typedef int foo_t;
16338static $ac_kw foo_t static_foo () {return 0; }
16339$ac_kw foo_t foo () {return 0; }
16340#endif
16341
16342_ACEOF
16343if ac_fn_c_try_compile "$LINENO"; then :
16344  ac_cv_c_inline=$ac_kw
16345fi
16346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16347  test "$ac_cv_c_inline" != no && break
16348done
16349
16350fi
16351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16352$as_echo "$ac_cv_c_inline" >&6; }
16353
16354case $ac_cv_c_inline in
16355  inline | yes) ;;
16356  *)
16357    case $ac_cv_c_inline in
16358      no) ac_val=;;
16359      *) ac_val=$ac_cv_c_inline;;
16360    esac
16361    cat >>confdefs.h <<_ACEOF
16362#ifndef __cplusplus
16363#define inline $ac_val
16364#endif
16365_ACEOF
16366    ;;
16367esac
16368
16369
16370case "$ac_cv_c_inline" in
16371 '')
16372    ;;
16373 *)
16374
16375$as_echo "#define HAVE_INLINE 1" >>confdefs.h
16376
16377
16378esac
16379
16380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
16381$as_echo_n "checking whether char is unsigned... " >&6; }
16382if test "${ac_cv_c_char_unsigned+set}" = set; then :
16383  $as_echo_n "(cached) " >&6
16384else
16385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386/* end confdefs.h.  */
16387$ac_includes_default
16388int
16389main ()
16390{
16391static int test_array [1 - 2 * !(((char) -1) < 0)];
16392test_array [0] = 0
16393
16394  ;
16395  return 0;
16396}
16397_ACEOF
16398if ac_fn_c_try_compile "$LINENO"; then :
16399  ac_cv_c_char_unsigned=no
16400else
16401  ac_cv_c_char_unsigned=yes
16402fi
16403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404fi
16405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
16406$as_echo "$ac_cv_c_char_unsigned" >&6; }
16407if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
16408  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
16409
16410fi
16411		# The cast to long int works around a bug in the HP C Compiler
16412# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16413# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16414# This bug is HP SR number 8606223364.
16415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
16416$as_echo_n "checking size of signed char... " >&6; }
16417if test "${ac_cv_sizeof_signed_char+set}" = set; then :
16418  $as_echo_n "(cached) " >&6
16419else
16420  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :
16421
16422else
16423  if test "$ac_cv_type_signed_char" = yes; then
16424     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16426{ as_fn_set_status 77
16427as_fn_error "cannot compute sizeof (signed char)
16428See \`config.log' for more details." "$LINENO" 5; }; }
16429   else
16430     ac_cv_sizeof_signed_char=0
16431   fi
16432fi
16433
16434fi
16435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
16436$as_echo "$ac_cv_sizeof_signed_char" >&6; }
16437
16438
16439
16440cat >>confdefs.h <<_ACEOF
16441#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
16442_ACEOF
16443
16444
16445# The cast to long int works around a bug in the HP C Compiler
16446# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16447# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16448# This bug is HP SR number 8606223364.
16449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16450$as_echo_n "checking size of int... " >&6; }
16451if test "${ac_cv_sizeof_int+set}" = set; then :
16452  $as_echo_n "(cached) " >&6
16453else
16454  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
16455
16456else
16457  if test "$ac_cv_type_int" = yes; then
16458     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16460{ as_fn_set_status 77
16461as_fn_error "cannot compute sizeof (int)
16462See \`config.log' for more details." "$LINENO" 5; }; }
16463   else
16464     ac_cv_sizeof_int=0
16465   fi
16466fi
16467
16468fi
16469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16470$as_echo "$ac_cv_sizeof_int" >&6; }
16471
16472
16473
16474cat >>confdefs.h <<_ACEOF
16475#define SIZEOF_INT $ac_cv_sizeof_int
16476_ACEOF
16477
16478
16479# The cast to long int works around a bug in the HP C Compiler
16480# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16481# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16482# This bug is HP SR number 8606223364.
16483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16484$as_echo_n "checking size of long... " >&6; }
16485if test "${ac_cv_sizeof_long+set}" = set; then :
16486  $as_echo_n "(cached) " >&6
16487else
16488  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16489
16490else
16491  if test "$ac_cv_type_long" = yes; then
16492     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16494{ as_fn_set_status 77
16495as_fn_error "cannot compute sizeof (long)
16496See \`config.log' for more details." "$LINENO" 5; }; }
16497   else
16498     ac_cv_sizeof_long=0
16499   fi
16500fi
16501
16502fi
16503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16504$as_echo "$ac_cv_sizeof_long" >&6; }
16505
16506
16507
16508cat >>confdefs.h <<_ACEOF
16509#define SIZEOF_LONG $ac_cv_sizeof_long
16510_ACEOF
16511
16512
16513
16514ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
16515if test "x$ac_cv_type_s_char" = x""yes; then :
16516
16517cat >>confdefs.h <<_ACEOF
16518#define HAVE_S_CHAR 1
16519_ACEOF
16520
16521
16522fi
16523
16524case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
16525 *yes)
16526    # We have a typedef for s_char.  Might as well believe it...
16527    ;;
16528 no0no)
16529    # We have signed chars, can't say 'signed char', no s_char typedef.
16530
16531$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
16532
16533    ;;
16534 no1no)
16535    # We have signed chars, can say 'signed char', no s_char typedef.
16536    $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
16537
16538    ;;
16539 yes0no)
16540    # We have unsigned chars, can't say 'signed char', no s_char typedef.
16541    as_fn_error "No way to specify a signed character!" "$LINENO" 5
16542    ;;
16543 yes1no)
16544    # We have unsigned chars, can say 'signed char', no s_char typedef.
16545    $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
16546
16547    ;;
16548esac
16549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16550$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16551if test "${ac_cv_type_uid_t+set}" = set; then :
16552  $as_echo_n "(cached) " >&6
16553else
16554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555/* end confdefs.h.  */
16556#include <sys/types.h>
16557
16558_ACEOF
16559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16560  $EGREP "uid_t" >/dev/null 2>&1; then :
16561  ac_cv_type_uid_t=yes
16562else
16563  ac_cv_type_uid_t=no
16564fi
16565rm -f conftest*
16566
16567fi
16568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16569$as_echo "$ac_cv_type_uid_t" >&6; }
16570if test $ac_cv_type_uid_t = no; then
16571
16572$as_echo "#define uid_t int" >>confdefs.h
16573
16574
16575$as_echo "#define gid_t int" >>confdefs.h
16576
16577fi
16578
16579
16580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
16581$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
16582if test "${ac_cv_func_getsockname_arg2+set}" = set; then :
16583  $as_echo_n "(cached) " >&6
16584else
16585  if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then :
16586  $as_echo_n "(cached) " >&6
16587else
16588   for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do
16589  for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
16590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591/* end confdefs.h.  */
16592#ifdef HAVE_SYS_TYPES_H
16593#include <sys/types.h>
16594#endif
16595#ifdef HAVE_SYS_SOCKET_H
16596#include <sys/socket.h>
16597#endif
16598extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
16599int
16600main ()
16601{
16602
16603  ;
16604  return 0;
16605}
16606_ACEOF
16607if ac_fn_c_try_compile "$LINENO"; then :
16608      ac_not_found=no ; break 2
16609else
16610  ac_not_found=yes
16611fi
16612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16613   done
16614  done
16615
16616fi
16617
16618fi
16619if test "$ac_not_found" = yes; then
16620 ac_cv_func_getsockname_socklen_type='socklen_t'
16621fi
16622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_socklen_type" >&5
16623$as_echo "$ac_cv_func_getsockname_socklen_type" >&6; }
16624
16625cat >>confdefs.h <<_ACEOF
16626#define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
16627_ACEOF
16628
16629
16630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
16631$as_echo_n "checking for struct sockaddr_storage... " >&6; }
16632if test "${ntp_cv_sockaddr_storage+set}" = set; then :
16633  $as_echo_n "(cached) " >&6
16634else
16635
16636	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637/* end confdefs.h.  */
16638
16639		#ifdef HAVE_SYS_TYPES_H
16640		# include <sys/types.h>
16641		#endif
16642		#ifdef HAVE_SYS_SOCKET_H
16643		# include <sys/socket.h>
16644		#endif
16645		#ifdef HAVE_NETINET_IN_H
16646		# include <netinet/in.h>
16647		#endif
16648
16649int
16650main ()
16651{
16652
16653		struct sockaddr_storage n;
16654
16655  ;
16656  return 0;
16657}
16658_ACEOF
16659if ac_fn_c_try_compile "$LINENO"; then :
16660  ntp_cv_sockaddr_storage="yes"
16661else
16662  ntp_cv_sockaddr_storage="no"
16663
16664fi
16665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16666
16667
16668fi
16669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
16670$as_echo "$ntp_cv_sockaddr_storage" >&6; }
16671case "$ntp_cv_sockaddr_storage" in
16672 yes)
16673
16674$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
16675
16676esac
16677
16678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5
16679$as_echo_n "checking for sockaddr_storage.ss_family... " >&6; }
16680if test "${ntp_cv_have_ss_family+set}" = set; then :
16681  $as_echo_n "(cached) " >&6
16682else
16683
16684	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685/* end confdefs.h.  */
16686
16687		#ifdef HAVE_SYS_TYPES_H
16688		# include <sys/types.h>
16689		#endif
16690		#ifdef HAVE_SYS_SOCKET_H
16691		# include <sys/socket.h>
16692		#endif
16693		#ifdef HAVE_NETINET_IN_H
16694		# include <netinet/in.h>
16695		#endif
16696
16697int
16698main ()
16699{
16700
16701		struct sockaddr_storage s;
16702		s.ss_family = 1;
16703
16704  ;
16705  return 0;
16706}
16707_ACEOF
16708if ac_fn_c_try_compile "$LINENO"; then :
16709  ntp_cv_have_ss_family="yes"
16710else
16711  ntp_cv_have_ss_family="no"
16712
16713fi
16714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715
16716
16717fi
16718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5
16719$as_echo "$ntp_cv_have_ss_family" >&6; }
16720
16721case "$ntp_cv_have_ss_family" in
16722 no)
16723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
16724$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
16725if test "${ntp_cv_have___ss_family+set}" = set; then :
16726  $as_echo_n "(cached) " >&6
16727else
16728
16729	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730/* end confdefs.h.  */
16731
16732		    #ifdef HAVE_SYS_TYPES_H
16733		    # include <sys/types.h>
16734		    #endif
16735		    #ifdef HAVE_SYS_SOCKET_H
16736		    # include <sys/socket.h>
16737		    #endif
16738		    #ifdef HAVE_NETINET_IN_H
16739		    # include <netinet/in.h>
16740		    #endif
16741
16742int
16743main ()
16744{
16745
16746		    struct sockaddr_storage s;
16747		    s.__ss_family = 1;
16748
16749  ;
16750  return 0;
16751}
16752_ACEOF
16753if ac_fn_c_try_compile "$LINENO"; then :
16754  ntp_cv_have___ss_family="yes"
16755else
16756  ntp_cv_have___ss_family="no"
16757
16758fi
16759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16760
16761
16762fi
16763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
16764$as_echo "$ntp_cv_have___ss_family" >&6; }
16765    case "$ntp_cv_have___ss_family" in
16766     yes)
16767
16768$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
16769
16770    esac
16771esac
16772
16773
16774
16775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5
16776$as_echo_n "checking for sockaddr_storage.ss_len... " >&6; }
16777if test "${ntp_cv_have_ss_len+set}" = set; then :
16778  $as_echo_n "(cached) " >&6
16779else
16780
16781	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782/* end confdefs.h.  */
16783
16784		#ifdef HAVE_SYS_TYPES_H
16785		# include <sys/types.h>
16786		#endif
16787		#ifdef HAVE_SYS_SOCKET_H
16788		# include <sys/socket.h>
16789		#endif
16790		#ifdef HAVE_NETINET_IN_H
16791		# include <netinet/in.h>
16792		#endif
16793
16794int
16795main ()
16796{
16797
16798		struct sockaddr_storage s;
16799		s.ss_len = 1;
16800
16801  ;
16802  return 0;
16803}
16804_ACEOF
16805if ac_fn_c_try_compile "$LINENO"; then :
16806  ntp_cv_have_ss_len="yes"
16807else
16808  ntp_cv_have_ss_len="no"
16809
16810fi
16811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812
16813
16814fi
16815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5
16816$as_echo "$ntp_cv_have_ss_len" >&6; }
16817
16818case "$ntp_cv_have_ss_len" in
16819 no)
16820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5
16821$as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; }
16822if test "${ntp_cv_have___ss_len+set}" = set; then :
16823  $as_echo_n "(cached) " >&6
16824else
16825
16826	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827/* end confdefs.h.  */
16828
16829		    #ifdef HAVE_SYS_TYPES_H
16830		    # include <sys/types.h>
16831		    #endif
16832		    #ifdef HAVE_SYS_SOCKET_H
16833		    # include <sys/socket.h>
16834		    #endif
16835		    #ifdef HAVE_NETINET_IN_H
16836		    # include <netinet/in.h>
16837		    #endif
16838
16839int
16840main ()
16841{
16842
16843		    struct sockaddr_storage s;
16844		    s.__ss_len = 1;
16845
16846  ;
16847  return 0;
16848}
16849_ACEOF
16850if ac_fn_c_try_compile "$LINENO"; then :
16851  ntp_cv_have___ss_len="yes"
16852else
16853  ntp_cv_have___ss_len="no"
16854
16855fi
16856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857
16858
16859fi
16860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5
16861$as_echo "$ntp_cv_have___ss_len" >&6; }
16862    case "$ntp_cv_have___ss_len" in
16863     yes)
16864
16865$as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h
16866
16867    esac
16868esac
16869
16870
16871
16872#
16873# Look for in_port_t.
16874#
16875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
16876$as_echo_n "checking for in_port_t... " >&6; }
16877if test "${isc_cv_have_in_port_t+set}" = set; then :
16878  $as_echo_n "(cached) " >&6
16879else
16880
16881	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16882/* end confdefs.h.  */
16883
16884		#include <sys/types.h>
16885		#include <netinet/in.h>
16886
16887int
16888main ()
16889{
16890
16891		in_port_t port = 25;
16892		return (0);
16893
16894  ;
16895  return 0;
16896}
16897_ACEOF
16898if ac_fn_c_try_compile "$LINENO"; then :
16899  isc_cv_have_in_port_t=yes
16900else
16901  isc_cv_have_in_port_t=no
16902
16903fi
16904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16905
16906
16907fi
16908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
16909$as_echo "$isc_cv_have_in_port_t" >&6; }
16910case "$isc_cv_have_in_port_t" in
16911 no)
16912
16913$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
16914
16915esac
16916
16917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
16918$as_echo_n "checking for library containing inet_ntop... " >&6; }
16919if test "${ac_cv_search_inet_ntop+set}" = set; then :
16920  $as_echo_n "(cached) " >&6
16921else
16922  ac_func_search_save_LIBS=$LIBS
16923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16924/* end confdefs.h.  */
16925
16926/* Override any GCC internal prototype to avoid an error.
16927   Use char because int might match the return type of a GCC
16928   builtin and then its argument prototype would still apply.  */
16929#ifdef __cplusplus
16930extern "C"
16931#endif
16932char inet_ntop ();
16933int
16934main ()
16935{
16936return inet_ntop ();
16937  ;
16938  return 0;
16939}
16940_ACEOF
16941for ac_lib in '' resolv; do
16942  if test -z "$ac_lib"; then
16943    ac_res="none required"
16944  else
16945    ac_res=-l$ac_lib
16946    LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
16947  fi
16948  if ac_fn_c_try_link "$LINENO"; then :
16949  ac_cv_search_inet_ntop=$ac_res
16950fi
16951rm -f core conftest.err conftest.$ac_objext \
16952    conftest$ac_exeext
16953  if test "${ac_cv_search_inet_ntop+set}" = set; then :
16954  break
16955fi
16956done
16957if test "${ac_cv_search_inet_ntop+set}" = set; then :
16958
16959else
16960  ac_cv_search_inet_ntop=no
16961fi
16962rm conftest.$ac_ext
16963LIBS=$ac_func_search_save_LIBS
16964fi
16965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
16966$as_echo "$ac_cv_search_inet_ntop" >&6; }
16967ac_res=$ac_cv_search_inet_ntop
16968if test "$ac_res" != no; then :
16969  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16970
16971fi
16972
16973ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
16974if test "x$ac_cv_func_inet_ntop" = x""yes; then :
16975
16976else
16977
16978$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
16979
16980fi
16981
16982ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
16983if test "x$ac_cv_func_inet_pton" = x""yes; then :
16984
16985else
16986
16987$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
16988
16989fi
16990
16991
16992# Check whether --enable-ipv6 was given.
16993if test "${enable_ipv6+set}" = set; then :
16994  enableval=$enable_ipv6;
16995fi
16996
16997
16998case "$enable_ipv6" in
16999 yes|''|autodetect)
17000    case "$host" in
17001     powerpc-ibm-aix4*) ;;
17002     *)
17003
17004$as_echo "#define WANT_IPV6 /**/" >>confdefs.h
17005
17006	;;
17007    esac
17008    ;;
17009 no)
17010    ;;
17011esac
17012
17013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
17014$as_echo_n "checking for IPv6 structures... " >&6; }
17015if test "${ac_cv_isc_found_ipv6+set}" = set; then :
17016  $as_echo_n "(cached) " >&6
17017else
17018
17019	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020/* end confdefs.h.  */
17021
17022
17023			#include <sys/types.h>
17024			#include <sys/socket.h>
17025			#include <netinet/in.h>
17026
17027int
17028main ()
17029{
17030
17031			struct sockaddr_in6 sin6;
17032
17033
17034  ;
17035  return 0;
17036}
17037
17038_ACEOF
17039if ac_fn_c_try_compile "$LINENO"; then :
17040  ac_cv_isc_found_ipv6=yes
17041else
17042  ac_cv_isc_found_ipv6=no
17043
17044fi
17045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046
17047
17048fi
17049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_found_ipv6" >&5
17050$as_echo "$ac_cv_isc_found_ipv6" >&6; }
17051
17052#
17053# See whether IPv6 support is provided via a Kame add-on.
17054# This is done before other IPv6 linking tests so LIBS is properly set.
17055#
17056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
17057$as_echo_n "checking for Kame IPv6 support... " >&6; }
17058
17059# Check whether --with-kame was given.
17060if test "${with_kame+set}" = set; then :
17061  withval=$with_kame; use_kame="$withval"
17062else
17063  use_kame="no"
17064fi
17065
17066
17067case "$use_kame" in
17068 no)
17069    ;;
17070 yes)
17071    kame_path=/usr/local/v6
17072    ;;
17073 *)
17074    kame_path="$use_kame"
17075    ;;
17076esac
17077
17078case "$use_kame" in
17079 no)
17080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081$as_echo "no" >&6; }
17082    ;;
17083 *)
17084    if test -f $kame_path/lib/libinet6.a; then
17085	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
17086$as_echo "$kame_path/lib/libinet6.a" >&6; }
17087	LIBS="-L$kame_path/lib -linet6 $LIBS"
17088    else
17089	as_fn_error "$kame_path/lib/libinet6.a not found.
17090
17091Please choose the proper path with the following command:
17092
17093    configure --with-kame=PATH
17094" "$LINENO" 5
17095    fi
17096    ;;
17097esac
17098
17099#
17100# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
17101# Including it on Kame-using platforms is very bad, though, because
17102# Kame uses #error against direct inclusion.   So include it on only
17103# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
17104# This is done before the in6_pktinfo check because that's what
17105# netinet6/in6.h is needed for.
17106#
17107case "$host" in
17108 *-bsdi4.[01]*)
17109
17110$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
17111
17112    # does anything use LWRES_PLATFORM_NEEDNETINET6IN6H?  Can't it use above?
17113
17114$as_echo "#define LWRES_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
17115
17116    isc_netinet6in6_hack="#include <netinet6/in6.h>"
17117    ;;
17118 *)
17119    isc_netinet6in6_hack=""
17120esac
17121
17122#
17123# This is similar to the netinet6/in6.h issue.
17124#
17125case "$host" in
17126 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
17127
17128$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
17129
17130    isc_netinetin6_hack="#include <netinet/in6.h>"
17131    ;;
17132 *)
17133    isc_netinetin6_hack=""
17134esac
17135
17136
17137case "$ac_cv_isc_found_ipv6" in
17138 yes)
17139
17140$as_echo "#define ISC_PLATFORM_HAVEIPV6 /**/" >>confdefs.h
17141
17142
17143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
17144$as_echo_n "checking for in6_pktinfo... " >&6; }
17145if test "${ac_cv_have_in6_pktinfo+set}" = set; then :
17146  $as_echo_n "(cached) " >&6
17147else
17148
17149	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150/* end confdefs.h.  */
17151
17152
17153			    #include <sys/types.h>
17154			    #include <sys/socket.h>
17155			    #include <netinet/in.h>
17156			    $isc_netinetin6_hack
17157			    $isc_netinet6in6_hack
17158
17159int
17160main ()
17161{
17162
17163			    struct in6_pktinfo xyzzy;
17164
17165
17166  ;
17167  return 0;
17168}
17169
17170_ACEOF
17171if ac_fn_c_try_compile "$LINENO"; then :
17172  ac_cv_have_in6_pktinfo=yes
17173else
17174  ac_cv_have_in6_pktinfo=no
17175
17176fi
17177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17178
17179
17180fi
17181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6_pktinfo" >&5
17182$as_echo "$ac_cv_have_in6_pktinfo" >&6; }
17183
17184    case "$ac_cv_have_in6_pktinfo" in
17185     yes)
17186
17187$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO /**/" >>confdefs.h
17188
17189    esac
17190
17191
17192    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
17193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
17194$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
17195if test "${ac_cv_have_sin6_scope_id+set}" = set; then :
17196  $as_echo_n "(cached) " >&6
17197else
17198
17199	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200/* end confdefs.h.  */
17201
17202
17203			    #include <sys/types.h>
17204			    #include <sys/socket.h>
17205			    #include <netinet/in.h>
17206			    $isc_netinetin6_hack
17207			    $isc_netinet6in6_hack
17208
17209int
17210main ()
17211{
17212
17213			    struct sockaddr_in6 xyzzy;
17214			    xyzzy.sin6_scope_id = 0;
17215
17216
17217  ;
17218  return 0;
17219}
17220
17221_ACEOF
17222if ac_fn_c_try_compile "$LINENO"; then :
17223  ac_cv_have_sin6_scope_id=yes
17224else
17225  ac_cv_have_sin6_scope_id=no
17226
17227fi
17228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229
17230
17231fi
17232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5
17233$as_echo "$ac_cv_have_sin6_scope_id" >&6; }
17234
17235    case "$ac_cv_have_sin6_scope_id" in
17236     yes)
17237
17238$as_echo "#define ISC_PLATFORM_HAVESCOPEID /**/" >>confdefs.h
17239
17240    esac
17241esac
17242
17243
17244# We need this check run even without ac_cv_isc_found_ipv6=yes
17245
17246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
17247$as_echo_n "checking for in6addr_any... " >&6; }
17248if test "${isc_cv_have_in6addr_any+set}" = set; then :
17249  $as_echo_n "(cached) " >&6
17250else
17251
17252	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253/* end confdefs.h.  */
17254
17255
17256			#include <sys/types.h>
17257			#include <sys/socket.h>
17258			#include <netinet/in.h>
17259			$isc_netinetin6_hack
17260			$isc_netinet6in6_hack
17261
17262int
17263main ()
17264{
17265
17266			struct in6_addr in6;
17267			in6 = in6addr_any;
17268
17269
17270  ;
17271  return 0;
17272}
17273
17274_ACEOF
17275if ac_fn_c_try_link "$LINENO"; then :
17276  isc_cv_have_in6addr_any=yes
17277else
17278  isc_cv_have_in6addr_any=no
17279
17280fi
17281rm -f core conftest.err conftest.$ac_objext \
17282    conftest$ac_exeext conftest.$ac_ext
17283
17284
17285fi
17286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5
17287$as_echo "$isc_cv_have_in6addr_any" >&6; }
17288
17289case "$isc_cv_have_in6addr_any" in
17290 no)
17291
17292$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY /**/" >>confdefs.h
17293
17294esac
17295
17296
17297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
17298$as_echo_n "checking for struct if_laddrconf... " >&6; }
17299if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then :
17300  $as_echo_n "(cached) " >&6
17301else
17302
17303        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304/* end confdefs.h.  */
17305
17306
17307			#include <sys/types.h>
17308			#include <net/if6.h>
17309
17310int
17311main ()
17312{
17313
17314			struct if_laddrconf a;
17315
17316
17317  ;
17318  return 0;
17319}
17320
17321_ACEOF
17322if ac_fn_c_try_compile "$LINENO"; then :
17323  ac_cv_isc_struct_if_laddrconf=yes
17324else
17325  ac_cv_isc_struct_if_laddrconf=no
17326
17327fi
17328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329
17330
17331fi
17332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrconf" >&5
17333$as_echo "$ac_cv_isc_struct_if_laddrconf" >&6; }
17334
17335case "$ac_cv_isc_struct_if_laddrconf" in
17336 yes)
17337
17338$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF /**/" >>confdefs.h
17339
17340esac
17341
17342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
17343$as_echo_n "checking for struct if_laddrreq... " >&6; }
17344if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then :
17345  $as_echo_n "(cached) " >&6
17346else
17347
17348        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349/* end confdefs.h.  */
17350
17351
17352			#include <sys/types.h>
17353			#include <net/if6.h>
17354
17355int
17356main ()
17357{
17358
17359			struct if_laddrreq a;
17360
17361
17362  ;
17363  return 0;
17364}
17365
17366_ACEOF
17367if ac_fn_c_try_compile "$LINENO"; then :
17368  ac_cv_isc_struct_if_laddrreq=yes
17369else
17370  ac_cv_isc_struct_if_laddrreq=no
17371
17372fi
17373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17374
17375
17376fi
17377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrreq" >&5
17378$as_echo "$ac_cv_isc_struct_if_laddrreq" >&6; }
17379
17380case "$ac_cv_isc_struct_if_laddrreq" in
17381 yes)
17382
17383$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ /**/" >>confdefs.h
17384
17385esac
17386
17387
17388###
17389
17390# Hacks
17391
17392$as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
17393
17394
17395$as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
17396
17397
17398# Checks for library functions.
17399for ac_func in atexit memset socket
17400do :
17401  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17402ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17403eval as_val=\$$as_ac_var
17404   if test "x$as_val" = x""yes; then :
17405  cat >>confdefs.h <<_ACEOF
17406#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17407_ACEOF
17408
17409fi
17410done
17411
17412
17413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
17414$as_echo_n "checking for bin subdirectory... " >&6; }
17415
17416# Check whether --with-binsubdir was given.
17417if test "${with_binsubdir+set}" = set; then :
17418  withval=$with_binsubdir; use_binsubdir="$withval"
17419else
17420  use_binsubdir="bin"
17421fi
17422
17423
17424case "$use_binsubdir" in
17425 bin)
17426    ;;
17427 sbin)
17428    ;;
17429 *)
17430    as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
17431    ;;
17432esac
17433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
17434$as_echo "$use_binsubdir" >&6; }
17435BINSUBDIR=$use_binsubdir
17436
17437
17438ac_config_files="$ac_config_files Makefile"
17439
17440cat >confcache <<\_ACEOF
17441# This file is a shell script that caches the results of configure
17442# tests run on this system so they can be shared between configure
17443# scripts and configure runs, see configure's option --config-cache.
17444# It is not useful on other systems.  If it contains results you don't
17445# want to keep, you may remove or edit it.
17446#
17447# config.status only pays attention to the cache file if you give it
17448# the --recheck option to rerun configure.
17449#
17450# `ac_cv_env_foo' variables (set or unset) will be overridden when
17451# loading this file, other *unset* `ac_cv_foo' will be assigned the
17452# following values.
17453
17454_ACEOF
17455
17456# The following way of writing the cache mishandles newlines in values,
17457# but we know of no workaround that is simple, portable, and efficient.
17458# So, we kill variables containing newlines.
17459# Ultrix sh set writes to stderr and can't be redirected directly,
17460# and sets the high bit in the cache file unless we assign to the vars.
17461(
17462  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17463    eval ac_val=\$$ac_var
17464    case $ac_val in #(
17465    *${as_nl}*)
17466      case $ac_var in #(
17467      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17468$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17469      esac
17470      case $ac_var in #(
17471      _ | IFS | as_nl) ;; #(
17472      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17473      *) { eval $ac_var=; unset $ac_var;} ;;
17474      esac ;;
17475    esac
17476  done
17477
17478  (set) 2>&1 |
17479    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17480    *${as_nl}ac_space=\ *)
17481      # `set' does not quote correctly, so add quotes: double-quote
17482      # substitution turns \\\\ into \\, and sed turns \\ into \.
17483      sed -n \
17484	"s/'/'\\\\''/g;
17485	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17486      ;; #(
17487    *)
17488      # `set' quotes correctly as required by POSIX, so do not add quotes.
17489      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17490      ;;
17491    esac |
17492    sort
17493) |
17494  sed '
17495     /^ac_cv_env_/b end
17496     t clear
17497     :clear
17498     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17499     t end
17500     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17501     :end' >>confcache
17502if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17503  if test -w "$cache_file"; then
17504    test "x$cache_file" != "x/dev/null" &&
17505      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17506$as_echo "$as_me: updating cache $cache_file" >&6;}
17507    cat confcache >$cache_file
17508  else
17509    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17510$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17511  fi
17512fi
17513rm -f confcache
17514
17515test "x$prefix" = xNONE && prefix=$ac_default_prefix
17516# Let make expand exec_prefix.
17517test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17518
17519DEFS=-DHAVE_CONFIG_H
17520
17521ac_libobjs=
17522ac_ltlibobjs=
17523for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17524  # 1. Remove the extension, and $U if already installed.
17525  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17526  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17527  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17528  #    will be set to the directory where LIBOBJS objects are built.
17529  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17530  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17531done
17532LIBOBJS=$ac_libobjs
17533
17534LTLIBOBJS=$ac_ltlibobjs
17535
17536
17537 if test -n "$EXEEXT"; then
17538  am__EXEEXT_TRUE=
17539  am__EXEEXT_FALSE='#'
17540else
17541  am__EXEEXT_TRUE='#'
17542  am__EXEEXT_FALSE=
17543fi
17544
17545if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17546  as_fn_error "conditional \"AMDEP\" was never defined.
17547Usually this means the macro was only invoked conditionally." "$LINENO" 5
17548fi
17549if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17550  as_fn_error "conditional \"am__fastdepCC\" was never defined.
17551Usually this means the macro was only invoked conditionally." "$LINENO" 5
17552fi
17553if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
17554  as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined.
17555Usually this means the macro was only invoked conditionally." "$LINENO" 5
17556fi
17557if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
17558  as_fn_error "conditional \"NEED_LIBOPTS\" was never defined.
17559Usually this means the macro was only invoked conditionally." "$LINENO" 5
17560fi
17561
17562: ${CONFIG_STATUS=./config.status}
17563ac_write_fail=0
17564ac_clean_files_save=$ac_clean_files
17565ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17566{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17567$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17568as_write_fail=0
17569cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17570#! $SHELL
17571# Generated by $as_me.
17572# Run this file to recreate the current configuration.
17573# Compiler output produced by configure, useful for debugging
17574# configure, is in config.log if it exists.
17575
17576debug=false
17577ac_cs_recheck=false
17578ac_cs_silent=false
17579
17580SHELL=\${CONFIG_SHELL-$SHELL}
17581export SHELL
17582_ASEOF
17583cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17584## -------------------- ##
17585## M4sh Initialization. ##
17586## -------------------- ##
17587
17588# Be more Bourne compatible
17589DUALCASE=1; export DUALCASE # for MKS sh
17590if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17591  emulate sh
17592  NULLCMD=:
17593  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17594  # is contrary to our usage.  Disable this feature.
17595  alias -g '${1+"$@"}'='"$@"'
17596  setopt NO_GLOB_SUBST
17597else
17598  case `(set -o) 2>/dev/null` in #(
17599  *posix*) :
17600    set -o posix ;; #(
17601  *) :
17602     ;;
17603esac
17604fi
17605
17606
17607as_nl='
17608'
17609export as_nl
17610# Printing a long string crashes Solaris 7 /usr/bin/printf.
17611as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17612as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17613as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17614# Prefer a ksh shell builtin over an external printf program on Solaris,
17615# but without wasting forks for bash or zsh.
17616if test -z "$BASH_VERSION$ZSH_VERSION" \
17617    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17618  as_echo='print -r --'
17619  as_echo_n='print -rn --'
17620elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17621  as_echo='printf %s\n'
17622  as_echo_n='printf %s'
17623else
17624  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17625    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17626    as_echo_n='/usr/ucb/echo -n'
17627  else
17628    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17629    as_echo_n_body='eval
17630      arg=$1;
17631      case $arg in #(
17632      *"$as_nl"*)
17633	expr "X$arg" : "X\\(.*\\)$as_nl";
17634	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17635      esac;
17636      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17637    '
17638    export as_echo_n_body
17639    as_echo_n='sh -c $as_echo_n_body as_echo'
17640  fi
17641  export as_echo_body
17642  as_echo='sh -c $as_echo_body as_echo'
17643fi
17644
17645# The user is always right.
17646if test "${PATH_SEPARATOR+set}" != set; then
17647  PATH_SEPARATOR=:
17648  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17649    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17650      PATH_SEPARATOR=';'
17651  }
17652fi
17653
17654
17655# IFS
17656# We need space, tab and new line, in precisely that order.  Quoting is
17657# there to prevent editors from complaining about space-tab.
17658# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17659# splitting by setting IFS to empty value.)
17660IFS=" ""	$as_nl"
17661
17662# Find who we are.  Look in the path if we contain no directory separator.
17663case $0 in #((
17664  *[\\/]* ) as_myself=$0 ;;
17665  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17666for as_dir in $PATH
17667do
17668  IFS=$as_save_IFS
17669  test -z "$as_dir" && as_dir=.
17670    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17671  done
17672IFS=$as_save_IFS
17673
17674     ;;
17675esac
17676# We did not find ourselves, most probably we were run as `sh COMMAND'
17677# in which case we are not to be found in the path.
17678if test "x$as_myself" = x; then
17679  as_myself=$0
17680fi
17681if test ! -f "$as_myself"; then
17682  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17683  exit 1
17684fi
17685
17686# Unset variables that we do not need and which cause bugs (e.g. in
17687# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17688# suppresses any "Segmentation fault" message there.  '((' could
17689# trigger a bug in pdksh 5.2.14.
17690for as_var in BASH_ENV ENV MAIL MAILPATH
17691do eval test x\${$as_var+set} = xset \
17692  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17693done
17694PS1='$ '
17695PS2='> '
17696PS4='+ '
17697
17698# NLS nuisances.
17699LC_ALL=C
17700export LC_ALL
17701LANGUAGE=C
17702export LANGUAGE
17703
17704# CDPATH.
17705(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17706
17707
17708# as_fn_error ERROR [LINENO LOG_FD]
17709# ---------------------------------
17710# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17711# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17712# script with status $?, using 1 if that was 0.
17713as_fn_error ()
17714{
17715  as_status=$?; test $as_status -eq 0 && as_status=1
17716  if test "$3"; then
17717    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17718    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17719  fi
17720  $as_echo "$as_me: error: $1" >&2
17721  as_fn_exit $as_status
17722} # as_fn_error
17723
17724
17725# as_fn_set_status STATUS
17726# -----------------------
17727# Set $? to STATUS, without forking.
17728as_fn_set_status ()
17729{
17730  return $1
17731} # as_fn_set_status
17732
17733# as_fn_exit STATUS
17734# -----------------
17735# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17736as_fn_exit ()
17737{
17738  set +e
17739  as_fn_set_status $1
17740  exit $1
17741} # as_fn_exit
17742
17743# as_fn_unset VAR
17744# ---------------
17745# Portably unset VAR.
17746as_fn_unset ()
17747{
17748  { eval $1=; unset $1;}
17749}
17750as_unset=as_fn_unset
17751# as_fn_append VAR VALUE
17752# ----------------------
17753# Append the text in VALUE to the end of the definition contained in VAR. Take
17754# advantage of any shell optimizations that allow amortized linear growth over
17755# repeated appends, instead of the typical quadratic growth present in naive
17756# implementations.
17757if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17758  eval 'as_fn_append ()
17759  {
17760    eval $1+=\$2
17761  }'
17762else
17763  as_fn_append ()
17764  {
17765    eval $1=\$$1\$2
17766  }
17767fi # as_fn_append
17768
17769# as_fn_arith ARG...
17770# ------------------
17771# Perform arithmetic evaluation on the ARGs, and store the result in the
17772# global $as_val. Take advantage of shells that can avoid forks. The arguments
17773# must be portable across $(()) and expr.
17774if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17775  eval 'as_fn_arith ()
17776  {
17777    as_val=$(( $* ))
17778  }'
17779else
17780  as_fn_arith ()
17781  {
17782    as_val=`expr "$@" || test $? -eq 1`
17783  }
17784fi # as_fn_arith
17785
17786
17787if expr a : '\(a\)' >/dev/null 2>&1 &&
17788   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17789  as_expr=expr
17790else
17791  as_expr=false
17792fi
17793
17794if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17795  as_basename=basename
17796else
17797  as_basename=false
17798fi
17799
17800if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17801  as_dirname=dirname
17802else
17803  as_dirname=false
17804fi
17805
17806as_me=`$as_basename -- "$0" ||
17807$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17808	 X"$0" : 'X\(//\)$' \| \
17809	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17810$as_echo X/"$0" |
17811    sed '/^.*\/\([^/][^/]*\)\/*$/{
17812	    s//\1/
17813	    q
17814	  }
17815	  /^X\/\(\/\/\)$/{
17816	    s//\1/
17817	    q
17818	  }
17819	  /^X\/\(\/\).*/{
17820	    s//\1/
17821	    q
17822	  }
17823	  s/.*/./; q'`
17824
17825# Avoid depending upon Character Ranges.
17826as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17827as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17828as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17829as_cr_digits='0123456789'
17830as_cr_alnum=$as_cr_Letters$as_cr_digits
17831
17832ECHO_C= ECHO_N= ECHO_T=
17833case `echo -n x` in #(((((
17834-n*)
17835  case `echo 'xy\c'` in
17836  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17837  xy)  ECHO_C='\c';;
17838  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17839       ECHO_T='	';;
17840  esac;;
17841*)
17842  ECHO_N='-n';;
17843esac
17844
17845rm -f conf$$ conf$$.exe conf$$.file
17846if test -d conf$$.dir; then
17847  rm -f conf$$.dir/conf$$.file
17848else
17849  rm -f conf$$.dir
17850  mkdir conf$$.dir 2>/dev/null
17851fi
17852if (echo >conf$$.file) 2>/dev/null; then
17853  if ln -s conf$$.file conf$$ 2>/dev/null; then
17854    as_ln_s='ln -s'
17855    # ... but there are two gotchas:
17856    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17857    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17858    # In both cases, we have to default to `cp -p'.
17859    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17860      as_ln_s='cp -p'
17861  elif ln conf$$.file conf$$ 2>/dev/null; then
17862    as_ln_s=ln
17863  else
17864    as_ln_s='cp -p'
17865  fi
17866else
17867  as_ln_s='cp -p'
17868fi
17869rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17870rmdir conf$$.dir 2>/dev/null
17871
17872
17873# as_fn_mkdir_p
17874# -------------
17875# Create "$as_dir" as a directory, including parents if necessary.
17876as_fn_mkdir_p ()
17877{
17878
17879  case $as_dir in #(
17880  -*) as_dir=./$as_dir;;
17881  esac
17882  test -d "$as_dir" || eval $as_mkdir_p || {
17883    as_dirs=
17884    while :; do
17885      case $as_dir in #(
17886      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17887      *) as_qdir=$as_dir;;
17888      esac
17889      as_dirs="'$as_qdir' $as_dirs"
17890      as_dir=`$as_dirname -- "$as_dir" ||
17891$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17892	 X"$as_dir" : 'X\(//\)[^/]' \| \
17893	 X"$as_dir" : 'X\(//\)$' \| \
17894	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17895$as_echo X"$as_dir" |
17896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17897	    s//\1/
17898	    q
17899	  }
17900	  /^X\(\/\/\)[^/].*/{
17901	    s//\1/
17902	    q
17903	  }
17904	  /^X\(\/\/\)$/{
17905	    s//\1/
17906	    q
17907	  }
17908	  /^X\(\/\).*/{
17909	    s//\1/
17910	    q
17911	  }
17912	  s/.*/./; q'`
17913      test -d "$as_dir" && break
17914    done
17915    test -z "$as_dirs" || eval "mkdir $as_dirs"
17916  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17917
17918
17919} # as_fn_mkdir_p
17920if mkdir -p . 2>/dev/null; then
17921  as_mkdir_p='mkdir -p "$as_dir"'
17922else
17923  test -d ./-p && rmdir ./-p
17924  as_mkdir_p=false
17925fi
17926
17927if test -x / >/dev/null 2>&1; then
17928  as_test_x='test -x'
17929else
17930  if ls -dL / >/dev/null 2>&1; then
17931    as_ls_L_option=L
17932  else
17933    as_ls_L_option=
17934  fi
17935  as_test_x='
17936    eval sh -c '\''
17937      if test -d "$1"; then
17938	test -d "$1/.";
17939      else
17940	case $1 in #(
17941	-*)set "./$1";;
17942	esac;
17943	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17944	???[sx]*):;;*)false;;esac;fi
17945    '\'' sh
17946  '
17947fi
17948as_executable_p=$as_test_x
17949
17950# Sed expression to map a string onto a valid CPP name.
17951as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17952
17953# Sed expression to map a string onto a valid variable name.
17954as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17955
17956
17957exec 6>&1
17958## ----------------------------------- ##
17959## Main body of $CONFIG_STATUS script. ##
17960## ----------------------------------- ##
17961_ASEOF
17962test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17963
17964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17965# Save the log message, to keep $0 and so on meaningful, and to
17966# report actual input values of CONFIG_FILES etc. instead of their
17967# values after options handling.
17968ac_log="
17969This file was extended by sntp $as_me 4.2.6, which was
17970generated by GNU Autoconf 2.65.  Invocation command line was
17971
17972  CONFIG_FILES    = $CONFIG_FILES
17973  CONFIG_HEADERS  = $CONFIG_HEADERS
17974  CONFIG_LINKS    = $CONFIG_LINKS
17975  CONFIG_COMMANDS = $CONFIG_COMMANDS
17976  $ $0 $@
17977
17978on `(hostname || uname -n) 2>/dev/null | sed 1q`
17979"
17980
17981_ACEOF
17982
17983case $ac_config_files in *"
17984"*) set x $ac_config_files; shift; ac_config_files=$*;;
17985esac
17986
17987case $ac_config_headers in *"
17988"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17989esac
17990
17991
17992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993# Files that config.status was made for.
17994config_files="$ac_config_files"
17995config_headers="$ac_config_headers"
17996config_commands="$ac_config_commands"
17997
17998_ACEOF
17999
18000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18001ac_cs_usage="\
18002\`$as_me' instantiates files and other configuration actions
18003from templates according to the current configuration.  Unless the files
18004and actions are specified as TAGs, all are instantiated by default.
18005
18006Usage: $0 [OPTION]... [TAG]...
18007
18008  -h, --help       print this help, then exit
18009  -V, --version    print version number and configuration settings, then exit
18010      --config     print configuration, then exit
18011  -q, --quiet, --silent
18012                   do not print progress messages
18013  -d, --debug      don't remove temporary files
18014      --recheck    update $as_me by reconfiguring in the same conditions
18015      --file=FILE[:TEMPLATE]
18016                   instantiate the configuration file FILE
18017      --header=FILE[:TEMPLATE]
18018                   instantiate the configuration header FILE
18019
18020Configuration files:
18021$config_files
18022
18023Configuration headers:
18024$config_headers
18025
18026Configuration commands:
18027$config_commands
18028
18029Report bugs to the package provider."
18030
18031_ACEOF
18032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18033ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18034ac_cs_version="\\
18035sntp config.status 4.2.6
18036configured by $0, generated by GNU Autoconf 2.65,
18037  with options \\"\$ac_cs_config\\"
18038
18039Copyright (C) 2009 Free Software Foundation, Inc.
18040This config.status script is free software; the Free Software Foundation
18041gives unlimited permission to copy, distribute and modify it."
18042
18043ac_pwd='$ac_pwd'
18044srcdir='$srcdir'
18045INSTALL='$INSTALL'
18046MKDIR_P='$MKDIR_P'
18047AWK='$AWK'
18048test -n "\$AWK" || AWK=awk
18049_ACEOF
18050
18051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18052# The default lists apply if the user does not specify any file.
18053ac_need_defaults=:
18054while test $# != 0
18055do
18056  case $1 in
18057  --*=*)
18058    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18059    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18060    ac_shift=:
18061    ;;
18062  *)
18063    ac_option=$1
18064    ac_optarg=$2
18065    ac_shift=shift
18066    ;;
18067  esac
18068
18069  case $ac_option in
18070  # Handling of the options.
18071  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18072    ac_cs_recheck=: ;;
18073  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18074    $as_echo "$ac_cs_version"; exit ;;
18075  --config | --confi | --conf | --con | --co | --c )
18076    $as_echo "$ac_cs_config"; exit ;;
18077  --debug | --debu | --deb | --de | --d | -d )
18078    debug=: ;;
18079  --file | --fil | --fi | --f )
18080    $ac_shift
18081    case $ac_optarg in
18082    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18083    esac
18084    as_fn_append CONFIG_FILES " '$ac_optarg'"
18085    ac_need_defaults=false;;
18086  --header | --heade | --head | --hea )
18087    $ac_shift
18088    case $ac_optarg in
18089    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18090    esac
18091    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18092    ac_need_defaults=false;;
18093  --he | --h)
18094    # Conflict between --help and --header
18095    as_fn_error "ambiguous option: \`$1'
18096Try \`$0 --help' for more information.";;
18097  --help | --hel | -h )
18098    $as_echo "$ac_cs_usage"; exit ;;
18099  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18100  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18101    ac_cs_silent=: ;;
18102
18103  # This is an error.
18104  -*) as_fn_error "unrecognized option: \`$1'
18105Try \`$0 --help' for more information." ;;
18106
18107  *) as_fn_append ac_config_targets " $1"
18108     ac_need_defaults=false ;;
18109
18110  esac
18111  shift
18112done
18113
18114ac_configure_extra_args=
18115
18116if $ac_cs_silent; then
18117  exec 6>/dev/null
18118  ac_configure_extra_args="$ac_configure_extra_args --silent"
18119fi
18120
18121_ACEOF
18122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18123if \$ac_cs_recheck; then
18124  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18125  shift
18126  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18127  CONFIG_SHELL='$SHELL'
18128  export CONFIG_SHELL
18129  exec "\$@"
18130fi
18131
18132_ACEOF
18133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18134exec 5>>config.log
18135{
18136  echo
18137  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18138## Running $as_me. ##
18139_ASBOX
18140  $as_echo "$ac_log"
18141} >&5
18142
18143_ACEOF
18144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18145#
18146# INIT-COMMANDS
18147#
18148AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18149
18150_ACEOF
18151
18152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18153
18154# Handling of arguments.
18155for ac_config_target in $ac_config_targets
18156do
18157  case $ac_config_target in
18158    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18159    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18160    "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
18161    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18162
18163  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18164  esac
18165done
18166
18167
18168# If the user did not use the arguments to specify the items to instantiate,
18169# then the envvar interface is used.  Set only those that are not.
18170# We use the long form for the default assignment because of an extremely
18171# bizarre bug on SunOS 4.1.3.
18172if $ac_need_defaults; then
18173  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18174  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18175  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18176fi
18177
18178# Have a temporary directory for convenience.  Make it in the build tree
18179# simply because there is no reason against having it here, and in addition,
18180# creating and moving files from /tmp can sometimes cause problems.
18181# Hook for its removal unless debugging.
18182# Note that there is a small window in which the directory will not be cleaned:
18183# after its creation but before its name has been assigned to `$tmp'.
18184$debug ||
18185{
18186  tmp=
18187  trap 'exit_status=$?
18188  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18189' 0
18190  trap 'as_fn_exit 1' 1 2 13 15
18191}
18192# Create a (secure) tmp directory for tmp files.
18193
18194{
18195  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18196  test -n "$tmp" && test -d "$tmp"
18197}  ||
18198{
18199  tmp=./conf$$-$RANDOM
18200  (umask 077 && mkdir "$tmp")
18201} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18202
18203# Set up the scripts for CONFIG_FILES section.
18204# No need to generate them if there are no CONFIG_FILES.
18205# This happens for instance with `./config.status config.h'.
18206if test -n "$CONFIG_FILES"; then
18207
18208
18209ac_cr=`echo X | tr X '\015'`
18210# On cygwin, bash can eat \r inside `` if the user requested igncr.
18211# But we know of no other shell where ac_cr would be empty at this
18212# point, so we can use a bashism as a fallback.
18213if test "x$ac_cr" = x; then
18214  eval ac_cr=\$\'\\r\'
18215fi
18216ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18217if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18218  ac_cs_awk_cr='\r'
18219else
18220  ac_cs_awk_cr=$ac_cr
18221fi
18222
18223echo 'BEGIN {' >"$tmp/subs1.awk" &&
18224_ACEOF
18225
18226
18227{
18228  echo "cat >conf$$subs.awk <<_ACEOF" &&
18229  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18230  echo "_ACEOF"
18231} >conf$$subs.sh ||
18232  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18233ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18234ac_delim='%!_!# '
18235for ac_last_try in false false false false false :; do
18236  . ./conf$$subs.sh ||
18237    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18238
18239  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18240  if test $ac_delim_n = $ac_delim_num; then
18241    break
18242  elif $ac_last_try; then
18243    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18244  else
18245    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18246  fi
18247done
18248rm -f conf$$subs.sh
18249
18250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18251cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18252_ACEOF
18253sed -n '
18254h
18255s/^/S["/; s/!.*/"]=/
18256p
18257g
18258s/^[^!]*!//
18259:repl
18260t repl
18261s/'"$ac_delim"'$//
18262t delim
18263:nl
18264h
18265s/\(.\{148\}\)..*/\1/
18266t more1
18267s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18268p
18269n
18270b repl
18271:more1
18272s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18273p
18274g
18275s/.\{148\}//
18276t nl
18277:delim
18278h
18279s/\(.\{148\}\)..*/\1/
18280t more2
18281s/["\\]/\\&/g; s/^/"/; s/$/"/
18282p
18283b
18284:more2
18285s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18286p
18287g
18288s/.\{148\}//
18289t delim
18290' <conf$$subs.awk | sed '
18291/^[^""]/{
18292  N
18293  s/\n//
18294}
18295' >>$CONFIG_STATUS || ac_write_fail=1
18296rm -f conf$$subs.awk
18297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18298_ACAWK
18299cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18300  for (key in S) S_is_set[key] = 1
18301  FS = ""
18302
18303}
18304{
18305  line = $ 0
18306  nfields = split(line, field, "@")
18307  substed = 0
18308  len = length(field[1])
18309  for (i = 2; i < nfields; i++) {
18310    key = field[i]
18311    keylen = length(key)
18312    if (S_is_set[key]) {
18313      value = S[key]
18314      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18315      len += length(value) + length(field[++i])
18316      substed = 1
18317    } else
18318      len += 1 + keylen
18319  }
18320
18321  print line
18322}
18323
18324_ACAWK
18325_ACEOF
18326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18327if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18328  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18329else
18330  cat
18331fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18332  || as_fn_error "could not setup config files machinery" "$LINENO" 5
18333_ACEOF
18334
18335# VPATH may cause trouble with some makes, so we remove $(srcdir),
18336# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18337# trailing colons and then remove the whole line if VPATH becomes empty
18338# (actually we leave an empty line to preserve line numbers).
18339if test "x$srcdir" = x.; then
18340  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18341s/:*\$(srcdir):*/:/
18342s/:*\${srcdir}:*/:/
18343s/:*@srcdir@:*/:/
18344s/^\([^=]*=[	 ]*\):*/\1/
18345s/:*$//
18346s/^[^=]*=[	 ]*$//
18347}'
18348fi
18349
18350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18351fi # test -n "$CONFIG_FILES"
18352
18353# Set up the scripts for CONFIG_HEADERS section.
18354# No need to generate them if there are no CONFIG_HEADERS.
18355# This happens for instance with `./config.status Makefile'.
18356if test -n "$CONFIG_HEADERS"; then
18357cat >"$tmp/defines.awk" <<\_ACAWK ||
18358BEGIN {
18359_ACEOF
18360
18361# Transform confdefs.h into an awk script `defines.awk', embedded as
18362# here-document in config.status, that substitutes the proper values into
18363# config.h.in to produce config.h.
18364
18365# Create a delimiter string that does not exist in confdefs.h, to ease
18366# handling of long lines.
18367ac_delim='%!_!# '
18368for ac_last_try in false false :; do
18369  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18370  if test -z "$ac_t"; then
18371    break
18372  elif $ac_last_try; then
18373    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18374  else
18375    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18376  fi
18377done
18378
18379# For the awk script, D is an array of macro values keyed by name,
18380# likewise P contains macro parameters if any.  Preserve backslash
18381# newline sequences.
18382
18383ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18384sed -n '
18385s/.\{148\}/&'"$ac_delim"'/g
18386t rset
18387:rset
18388s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18389t def
18390d
18391:def
18392s/\\$//
18393t bsnl
18394s/["\\]/\\&/g
18395s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18396D["\1"]=" \3"/p
18397s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18398d
18399:bsnl
18400s/["\\]/\\&/g
18401s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18402D["\1"]=" \3\\\\\\n"\\/p
18403t cont
18404s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18405t cont
18406d
18407:cont
18408n
18409s/.\{148\}/&'"$ac_delim"'/g
18410t clear
18411:clear
18412s/\\$//
18413t bsnlc
18414s/["\\]/\\&/g; s/^/"/; s/$/"/p
18415d
18416:bsnlc
18417s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18418b cont
18419' <confdefs.h | sed '
18420s/'"$ac_delim"'/"\\\
18421"/g' >>$CONFIG_STATUS || ac_write_fail=1
18422
18423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18424  for (key in D) D_is_set[key] = 1
18425  FS = ""
18426}
18427/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18428  line = \$ 0
18429  split(line, arg, " ")
18430  if (arg[1] == "#") {
18431    defundef = arg[2]
18432    mac1 = arg[3]
18433  } else {
18434    defundef = substr(arg[1], 2)
18435    mac1 = arg[2]
18436  }
18437  split(mac1, mac2, "(") #)
18438  macro = mac2[1]
18439  prefix = substr(line, 1, index(line, defundef) - 1)
18440  if (D_is_set[macro]) {
18441    # Preserve the white space surrounding the "#".
18442    print prefix "define", macro P[macro] D[macro]
18443    next
18444  } else {
18445    # Replace #undef with comments.  This is necessary, for example,
18446    # in the case of _POSIX_SOURCE, which is predefined and required
18447    # on some systems where configure will not decide to define it.
18448    if (defundef == "undef") {
18449      print "/*", prefix defundef, macro, "*/"
18450      next
18451    }
18452  }
18453}
18454{ print }
18455_ACAWK
18456_ACEOF
18457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18458  as_fn_error "could not setup config headers machinery" "$LINENO" 5
18459fi # test -n "$CONFIG_HEADERS"
18460
18461
18462eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18463shift
18464for ac_tag
18465do
18466  case $ac_tag in
18467  :[FHLC]) ac_mode=$ac_tag; continue;;
18468  esac
18469  case $ac_mode$ac_tag in
18470  :[FHL]*:*);;
18471  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18472  :[FH]-) ac_tag=-:-;;
18473  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18474  esac
18475  ac_save_IFS=$IFS
18476  IFS=:
18477  set x $ac_tag
18478  IFS=$ac_save_IFS
18479  shift
18480  ac_file=$1
18481  shift
18482
18483  case $ac_mode in
18484  :L) ac_source=$1;;
18485  :[FH])
18486    ac_file_inputs=
18487    for ac_f
18488    do
18489      case $ac_f in
18490      -) ac_f="$tmp/stdin";;
18491      *) # Look for the file first in the build tree, then in the source tree
18492	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18493	 # because $ac_f cannot contain `:'.
18494	 test -f "$ac_f" ||
18495	   case $ac_f in
18496	   [\\/$]*) false;;
18497	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18498	   esac ||
18499	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18500      esac
18501      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18502      as_fn_append ac_file_inputs " '$ac_f'"
18503    done
18504
18505    # Let's still pretend it is `configure' which instantiates (i.e., don't
18506    # use $as_me), people would be surprised to read:
18507    #    /* config.h.  Generated by config.status.  */
18508    configure_input='Generated from '`
18509	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18510	`' by configure.'
18511    if test x"$ac_file" != x-; then
18512      configure_input="$ac_file.  $configure_input"
18513      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18514$as_echo "$as_me: creating $ac_file" >&6;}
18515    fi
18516    # Neutralize special characters interpreted by sed in replacement strings.
18517    case $configure_input in #(
18518    *\&* | *\|* | *\\* )
18519       ac_sed_conf_input=`$as_echo "$configure_input" |
18520       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18521    *) ac_sed_conf_input=$configure_input;;
18522    esac
18523
18524    case $ac_tag in
18525    *:-:* | *:-) cat >"$tmp/stdin" \
18526      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18527    esac
18528    ;;
18529  esac
18530
18531  ac_dir=`$as_dirname -- "$ac_file" ||
18532$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18533	 X"$ac_file" : 'X\(//\)[^/]' \| \
18534	 X"$ac_file" : 'X\(//\)$' \| \
18535	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18536$as_echo X"$ac_file" |
18537    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18538	    s//\1/
18539	    q
18540	  }
18541	  /^X\(\/\/\)[^/].*/{
18542	    s//\1/
18543	    q
18544	  }
18545	  /^X\(\/\/\)$/{
18546	    s//\1/
18547	    q
18548	  }
18549	  /^X\(\/\).*/{
18550	    s//\1/
18551	    q
18552	  }
18553	  s/.*/./; q'`
18554  as_dir="$ac_dir"; as_fn_mkdir_p
18555  ac_builddir=.
18556
18557case "$ac_dir" in
18558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18559*)
18560  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18561  # A ".." for each directory in $ac_dir_suffix.
18562  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18563  case $ac_top_builddir_sub in
18564  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18565  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18566  esac ;;
18567esac
18568ac_abs_top_builddir=$ac_pwd
18569ac_abs_builddir=$ac_pwd$ac_dir_suffix
18570# for backward compatibility:
18571ac_top_builddir=$ac_top_build_prefix
18572
18573case $srcdir in
18574  .)  # We are building in place.
18575    ac_srcdir=.
18576    ac_top_srcdir=$ac_top_builddir_sub
18577    ac_abs_top_srcdir=$ac_pwd ;;
18578  [\\/]* | ?:[\\/]* )  # Absolute name.
18579    ac_srcdir=$srcdir$ac_dir_suffix;
18580    ac_top_srcdir=$srcdir
18581    ac_abs_top_srcdir=$srcdir ;;
18582  *) # Relative name.
18583    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18584    ac_top_srcdir=$ac_top_build_prefix$srcdir
18585    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18586esac
18587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18588
18589
18590  case $ac_mode in
18591  :F)
18592  #
18593  # CONFIG_FILE
18594  #
18595
18596  case $INSTALL in
18597  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18598  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18599  esac
18600  ac_MKDIR_P=$MKDIR_P
18601  case $MKDIR_P in
18602  [\\/$]* | ?:[\\/]* ) ;;
18603  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18604  esac
18605_ACEOF
18606
18607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18608# If the template does not know about datarootdir, expand it.
18609# FIXME: This hack should be removed a few years after 2.60.
18610ac_datarootdir_hack=; ac_datarootdir_seen=
18611ac_sed_dataroot='
18612/datarootdir/ {
18613  p
18614  q
18615}
18616/@datadir@/p
18617/@docdir@/p
18618/@infodir@/p
18619/@localedir@/p
18620/@mandir@/p'
18621case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18622*datarootdir*) ac_datarootdir_seen=yes;;
18623*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18624  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18625$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18626_ACEOF
18627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18628  ac_datarootdir_hack='
18629  s&@datadir@&$datadir&g
18630  s&@docdir@&$docdir&g
18631  s&@infodir@&$infodir&g
18632  s&@localedir@&$localedir&g
18633  s&@mandir@&$mandir&g
18634  s&\\\${datarootdir}&$datarootdir&g' ;;
18635esac
18636_ACEOF
18637
18638# Neutralize VPATH when `$srcdir' = `.'.
18639# Shell code in configure.ac might set extrasub.
18640# FIXME: do we really want to maintain this feature?
18641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18642ac_sed_extra="$ac_vpsub
18643$extrasub
18644_ACEOF
18645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18646:t
18647/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18648s|@configure_input@|$ac_sed_conf_input|;t t
18649s&@top_builddir@&$ac_top_builddir_sub&;t t
18650s&@top_build_prefix@&$ac_top_build_prefix&;t t
18651s&@srcdir@&$ac_srcdir&;t t
18652s&@abs_srcdir@&$ac_abs_srcdir&;t t
18653s&@top_srcdir@&$ac_top_srcdir&;t t
18654s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18655s&@builddir@&$ac_builddir&;t t
18656s&@abs_builddir@&$ac_abs_builddir&;t t
18657s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18658s&@INSTALL@&$ac_INSTALL&;t t
18659s&@MKDIR_P@&$ac_MKDIR_P&;t t
18660$ac_datarootdir_hack
18661"
18662eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18663  || as_fn_error "could not create $ac_file" "$LINENO" 5
18664
18665test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18666  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18667  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18668  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18669which seems to be undefined.  Please make sure it is defined." >&5
18670$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18671which seems to be undefined.  Please make sure it is defined." >&2;}
18672
18673  rm -f "$tmp/stdin"
18674  case $ac_file in
18675  -) cat "$tmp/out" && rm -f "$tmp/out";;
18676  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18677  esac \
18678  || as_fn_error "could not create $ac_file" "$LINENO" 5
18679 ;;
18680  :H)
18681  #
18682  # CONFIG_HEADER
18683  #
18684  if test x"$ac_file" != x-; then
18685    {
18686      $as_echo "/* $configure_input  */" \
18687      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18688    } >"$tmp/config.h" \
18689      || as_fn_error "could not create $ac_file" "$LINENO" 5
18690    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18691      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18692$as_echo "$as_me: $ac_file is unchanged" >&6;}
18693    else
18694      rm -f "$ac_file"
18695      mv "$tmp/config.h" "$ac_file" \
18696	|| as_fn_error "could not create $ac_file" "$LINENO" 5
18697    fi
18698  else
18699    $as_echo "/* $configure_input  */" \
18700      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18701      || as_fn_error "could not create -" "$LINENO" 5
18702  fi
18703# Compute "$ac_file"'s index in $config_headers.
18704_am_arg="$ac_file"
18705_am_stamp_count=1
18706for _am_header in $config_headers :; do
18707  case $_am_header in
18708    $_am_arg | $_am_arg:* )
18709      break ;;
18710    * )
18711      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18712  esac
18713done
18714echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18715$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18716	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18717	 X"$_am_arg" : 'X\(//\)$' \| \
18718	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18719$as_echo X"$_am_arg" |
18720    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18721	    s//\1/
18722	    q
18723	  }
18724	  /^X\(\/\/\)[^/].*/{
18725	    s//\1/
18726	    q
18727	  }
18728	  /^X\(\/\/\)$/{
18729	    s//\1/
18730	    q
18731	  }
18732	  /^X\(\/\).*/{
18733	    s//\1/
18734	    q
18735	  }
18736	  s/.*/./; q'`/stamp-h$_am_stamp_count
18737 ;;
18738
18739  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18740$as_echo "$as_me: executing $ac_file commands" >&6;}
18741 ;;
18742  esac
18743
18744
18745  case $ac_file$ac_mode in
18746    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18747  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18748  # are listed without --file.  Let's play safe and only enable the eval
18749  # if we detect the quoting.
18750  case $CONFIG_FILES in
18751  *\'*) eval set x "$CONFIG_FILES" ;;
18752  *)   set x $CONFIG_FILES ;;
18753  esac
18754  shift
18755  for mf
18756  do
18757    # Strip MF so we end up with the name of the file.
18758    mf=`echo "$mf" | sed -e 's/:.*$//'`
18759    # Check whether this is an Automake generated Makefile or not.
18760    # We used to match only the files named `Makefile.in', but
18761    # some people rename them; so instead we look at the file content.
18762    # Grep'ing the first line is not enough: some people post-process
18763    # each Makefile.in and add a new line on top of each file to say so.
18764    # Grep'ing the whole file is not good either: AIX grep has a line
18765    # limit of 2048, but all sed's we know have understand at least 4000.
18766    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18767      dirpart=`$as_dirname -- "$mf" ||
18768$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18769	 X"$mf" : 'X\(//\)[^/]' \| \
18770	 X"$mf" : 'X\(//\)$' \| \
18771	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18772$as_echo X"$mf" |
18773    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18774	    s//\1/
18775	    q
18776	  }
18777	  /^X\(\/\/\)[^/].*/{
18778	    s//\1/
18779	    q
18780	  }
18781	  /^X\(\/\/\)$/{
18782	    s//\1/
18783	    q
18784	  }
18785	  /^X\(\/\).*/{
18786	    s//\1/
18787	    q
18788	  }
18789	  s/.*/./; q'`
18790    else
18791      continue
18792    fi
18793    # Extract the definition of DEPDIR, am__include, and am__quote
18794    # from the Makefile without running `make'.
18795    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18796    test -z "$DEPDIR" && continue
18797    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18798    test -z "am__include" && continue
18799    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18800    # When using ansi2knr, U may be empty or an underscore; expand it
18801    U=`sed -n 's/^U = //p' < "$mf"`
18802    # Find all dependency output files, they are included files with
18803    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18804    # simplest approach to changing $(DEPDIR) to its actual value in the
18805    # expansion.
18806    for file in `sed -n "
18807      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18808	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18809      # Make sure the directory exists.
18810      test -f "$dirpart/$file" && continue
18811      fdir=`$as_dirname -- "$file" ||
18812$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18813	 X"$file" : 'X\(//\)[^/]' \| \
18814	 X"$file" : 'X\(//\)$' \| \
18815	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18816$as_echo X"$file" |
18817    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18818	    s//\1/
18819	    q
18820	  }
18821	  /^X\(\/\/\)[^/].*/{
18822	    s//\1/
18823	    q
18824	  }
18825	  /^X\(\/\/\)$/{
18826	    s//\1/
18827	    q
18828	  }
18829	  /^X\(\/\).*/{
18830	    s//\1/
18831	    q
18832	  }
18833	  s/.*/./; q'`
18834      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18835      # echo "creating $dirpart/$file"
18836      echo '# dummy' > "$dirpart/$file"
18837    done
18838  done
18839}
18840 ;;
18841
18842  esac
18843done # for ac_tag
18844
18845
18846as_fn_exit 0
18847_ACEOF
18848ac_clean_files=$ac_clean_files_save
18849
18850test $ac_write_fail = 0 ||
18851  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18852
18853
18854# configure is writing to config.log, and then calls config.status.
18855# config.status does its own redirection, appending to config.log.
18856# Unfortunately, on DOS this fails, as config.log is still kept open
18857# by configure, so config.status won't be able to write to it; its
18858# output is simply discarded.  So we exec the FD to /dev/null,
18859# effectively closing config.log, so it can be properly (re)opened and
18860# appended to by config.status.  When coming back to configure, we
18861# need to make the FD available again.
18862if test "$no_create" != yes; then
18863  ac_cs_success=:
18864  ac_config_status_args=
18865  test "$silent" = yes &&
18866    ac_config_status_args="$ac_config_status_args --quiet"
18867  exec 5>/dev/null
18868  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18869  exec 5>>config.log
18870  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18871  # would make configure fail if this is the last instruction.
18872  $ac_cs_success || as_fn_exit $?
18873fi
18874if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18875  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18876$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18877fi
18878
18879